1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
562PACKAGE_URL=
563
564ac_unique_file="ldmain.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
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
611STRINGIFY
612ENABLE_PLUGINS_FALSE
613ENABLE_PLUGINS_TRUE
614NATIVE_LIB_DIRS
615HOSTING_LIBS
616HOSTING_CRT0
617HDEFINES
618do_compare
619GENINSRC_NEVER_FALSE
620GENINSRC_NEVER_TRUE
621LEXLIB
622LEX_OUTPUT_ROOT
623LEX
624YFLAGS
625YACC
626MSGMERGE
627MSGFMT
628MKINSTALLDIRS
629CATOBJEXT
630GENCAT
631INSTOBJEXT
632DATADIRNAME
633CATALOGS
634POSUB
635GMSGFMT
636XGETTEXT
637INCINTL
638LIBINTL_DEP
639LIBINTL
640USE_NLS
641CXXCPP
642OTOOL64
643OTOOL
644LIPO
645NMEDIT
646DSYMUTIL
647RANLIB
648AR
649OBJDUMP
650LN_S
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657LIBTOOL
658am__fastdepCXX_FALSE
659am__fastdepCXX_TRUE
660CXXDEPMODE
661ac_ct_CXX
662CXXFLAGS
663CXX
664NO_WERROR
665WARN_CFLAGS
666EGREP
667GREP
668CPP
669installed_linker
670install_as_default
671TARGET_SYSTEM_ROOT_DEFINE
672TARGET_SYSTEM_ROOT
673use_sysroot
674MAINT
675MAINTAINER_MODE_FALSE
676MAINTAINER_MODE_TRUE
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680AMDEPBACKSLASH
681AMDEP_FALSE
682AMDEP_TRUE
683am__quote
684am__include
685DEPDIR
686am__untar
687am__tar
688AMTAR
689am__leading_dot
690SET_MAKE
691AWK
692mkdir_p
693MKDIR_P
694INSTALL_STRIP_PROGRAM
695STRIP
696install_sh
697MAKEINFO
698AUTOHEADER
699AUTOMAKE
700AUTOCONF
701ACLOCAL
702VERSION
703PACKAGE
704CYGPATH_W
705am__isrc
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716target_os
717target_vendor
718target_cpu
719target
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files='TDIRS'
767ac_user_opts='
768enable_option_checking
769enable_dependency_tracking
770enable_maintainer_mode
771with_lib_path
772enable_targets
773enable_64_bit_bfd
774with_sysroot
775enable_gold
776enable_got
777enable_werror
778enable_build_warnings
779enable_plugins
780enable_largefile
781enable_shared
782enable_static
783with_pic
784enable_fast_install
785with_gnu_ld
786enable_libtool_lock
787enable_nls
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CPP
798CXX
799CXXFLAGS
800CCC
801CXXCPP
802YACC
803YFLAGS'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *)	ac_optarg=yes ;;
868  esac
869
870  # Accept the important Cygnus configure options, so we can diagnose typos.
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error "invalid feature name: $ac_useropt"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094    ac_prev=sbindir ;;
1095  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096  | --sbi=* | --sb=*)
1097    sbindir=$ac_optarg ;;
1098
1099  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101  | --sharedst | --shareds | --shared | --share | --shar \
1102  | --sha | --sh)
1103    ac_prev=sharedstatedir ;;
1104  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107  | --sha=* | --sh=*)
1108    sharedstatedir=$ac_optarg ;;
1109
1110  -site | --site | --sit)
1111    ac_prev=site ;;
1112  -site=* | --site=* | --sit=*)
1113    site=$ac_optarg ;;
1114
1115  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116    ac_prev=srcdir ;;
1117  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118    srcdir=$ac_optarg ;;
1119
1120  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121  | --syscon | --sysco | --sysc | --sys | --sy)
1122    ac_prev=sysconfdir ;;
1123  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125    sysconfdir=$ac_optarg ;;
1126
1127  -target | --target | --targe | --targ | --tar | --ta | --t)
1128    ac_prev=target_alias ;;
1129  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130    target_alias=$ac_optarg ;;
1131
1132  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133    verbose=yes ;;
1134
1135  -version | --version | --versio | --versi | --vers | -V)
1136    ac_init_version=: ;;
1137
1138  -with-* | --with-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) as_fn_error "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information."
1190    ;;
1191
1192  *=*)
1193    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194    # Reject names that are not valid shell variable names.
1195    case $ac_envvar in #(
1196      '' | [0-9]* | *[!_$as_cr_alnum]* )
1197      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1198    esac
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  as_fn_error "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219  case $enable_option_checking in
1220    no) ;;
1221    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1222    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223  esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228		datadir sysconfdir sharedstatedir localstatedir includedir \
1229		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230		libdir localedir mandir
1231do
1232  eval ac_val=\$$ac_var
1233  # Remove trailing slashes.
1234  case $ac_val in
1235    */ )
1236      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237      eval $ac_var=\$ac_val;;
1238  esac
1239  # Be sure to have absolute directory names.
1240  case $ac_val in
1241    [\\/$]* | ?:[\\/]* )  continue;;
1242    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243  esac
1244  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256  if test "x$build_alias" = x; then
1257    cross_compiling=maybe
1258    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1259    If a cross compiler is detected then cross compile mode will be used." >&2
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288$as_echo X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures this package to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --libdir=DIR            object code libraries [EPREFIX/lib]
1386  --includedir=DIR        C header files [PREFIX/include]
1387  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1388  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1389  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1390  --infodir=DIR           info documentation [DATAROOTDIR/info]
1391  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1392  --mandir=DIR            man documentation [DATAROOTDIR/man]
1393  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1394  --htmldir=DIR           html documentation [DOCDIR]
1395  --dvidir=DIR            dvi documentation [DOCDIR]
1396  --pdfdir=DIR            pdf documentation [DOCDIR]
1397  --psdir=DIR             ps documentation [DOCDIR]
1398_ACEOF
1399
1400  cat <<\_ACEOF
1401
1402Program names:
1403  --program-prefix=PREFIX            prepend PREFIX to installed program names
1404  --program-suffix=SUFFIX            append SUFFIX to installed program names
1405  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1406
1407System types:
1408  --build=BUILD     configure for building on BUILD [guessed]
1409  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1410  --target=TARGET   configure for building compilers for TARGET [HOST]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415
1416  cat <<\_ACEOF
1417
1418Optional Features:
1419  --disable-option-checking  ignore unrecognized --enable/--with options
1420  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422  --disable-dependency-tracking  speeds up one-time build
1423  --enable-dependency-tracking   do not reject slow dependency extractors
1424  --enable-maintainer-mode  enable make rules and dependencies not useful
1425			  (and sometimes confusing) to the casual installer
1426  --enable-targets        alternative target configurations
1427  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1428  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1429  --enable-got=<type>     GOT handling scheme (target, single, negative,
1430                          multigot)
1431  --enable-werror         treat compile warnings as errors
1432  --enable-build-warnings enable build-time compiler warnings
1433  --enable-plugins        Enable support for plugins (defaults no)
1434  --disable-largefile     omit support for large files
1435  --enable-shared[=PKGS]  build shared libraries [default=yes]
1436  --enable-static[=PKGS]  build static libraries [default=yes]
1437  --enable-fast-install[=PKGS]
1438                          optimize for fast installation [default=yes]
1439  --disable-libtool-lock  avoid locking (might break parallel builds)
1440  --disable-nls           do not use Native Language Support
1441
1442Optional Packages:
1443  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445  --with-lib-path=dir1:dir2...  set default LIB_PATH
1446  --with-sysroot=DIR Search for usr/lib et al within DIR.
1447  --with-pic              try to use only PIC/non-PIC objects [default=use
1448                          both]
1449  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
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  CXX         C++ compiler command
1461  CXXFLAGS    C++ compiler flags
1462  CXXCPP      C++ preprocessor
1463  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1464              the first program found out of: `bison -y', `byacc', `yacc'.
1465  YFLAGS      The list of arguments that will be passed by default to $YACC.
1466              This script will default YFLAGS to the empty string to avoid a
1467              default value of `-d' given by some make applications.
1468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
1472Report bugs to the package provider.
1473_ACEOF
1474ac_status=$?
1475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478  # If there are subdirs, report their specific --help.
1479  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480    test -d "$ac_dir" ||
1481      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482      continue
1483    ac_builddir=.
1484
1485case "$ac_dir" in
1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487*)
1488  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489  # A ".." for each directory in $ac_dir_suffix.
1490  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491  case $ac_top_builddir_sub in
1492  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494  esac ;;
1495esac
1496ac_abs_top_builddir=$ac_pwd
1497ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498# for backward compatibility:
1499ac_top_builddir=$ac_top_build_prefix
1500
1501case $srcdir in
1502  .)  # We are building in place.
1503    ac_srcdir=.
1504    ac_top_srcdir=$ac_top_builddir_sub
1505    ac_abs_top_srcdir=$ac_pwd ;;
1506  [\\/]* | ?:[\\/]* )  # Absolute name.
1507    ac_srcdir=$srcdir$ac_dir_suffix;
1508    ac_top_srcdir=$srcdir
1509    ac_abs_top_srcdir=$srcdir ;;
1510  *) # Relative name.
1511    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512    ac_top_srcdir=$ac_top_build_prefix$srcdir
1513    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514esac
1515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517    cd "$ac_dir" || { ac_status=$?; continue; }
1518    # Check for guested configure.
1519    if test -f "$ac_srcdir/configure.gnu"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522    elif test -f "$ac_srcdir/configure"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure" --help=recursive
1525    else
1526      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527    fi || ac_status=$?
1528    cd "$ac_pwd" || { ac_status=$?; break; }
1529  done
1530fi
1531
1532test -n "$ac_init_help" && exit $ac_status
1533if $ac_init_version; then
1534  cat <<\_ACEOF
1535configure
1536generated by GNU Autoconf 2.64
1537
1538Copyright (C) 2009 Free Software Foundation, Inc.
1539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
1541_ACEOF
1542  exit
1543fi
1544
1545## ------------------------ ##
1546## Autoconf initialization. ##
1547## ------------------------ ##
1548
1549# ac_fn_c_try_compile LINENO
1550# --------------------------
1551# Try to compile conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_c_try_compile ()
1553{
1554  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555  rm -f conftest.$ac_objext
1556  if { { ac_try="$ac_compile"
1557case "(($ac_try" in
1558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559  *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562$as_echo "$ac_try_echo"; } >&5
1563  (eval "$ac_compile") 2>conftest.err
1564  ac_status=$?
1565  if test -s conftest.err; then
1566    grep -v '^ *+' conftest.err >conftest.er1
1567    cat conftest.er1 >&5
1568    mv -f conftest.er1 conftest.err
1569  fi
1570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571  test $ac_status = 0; } && {
1572	 test -z "$ac_c_werror_flag" ||
1573	 test ! -s conftest.err
1574       } && test -s conftest.$ac_objext; then :
1575  ac_retval=0
1576else
1577  $as_echo "$as_me: failed program was:" >&5
1578sed 's/^/| /' conftest.$ac_ext >&5
1579
1580	ac_retval=1
1581fi
1582  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583  return $ac_retval
1584
1585} # ac_fn_c_try_compile
1586
1587# ac_fn_c_try_link LINENO
1588# -----------------------
1589# Try to link conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_link ()
1591{
1592  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593  rm -f conftest.$ac_objext conftest$ac_exeext
1594  if { { ac_try="$ac_link"
1595case "(($ac_try" in
1596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597  *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601  (eval "$ac_link") 2>conftest.err
1602  ac_status=$?
1603  if test -s conftest.err; then
1604    grep -v '^ *+' conftest.err >conftest.er1
1605    cat conftest.er1 >&5
1606    mv -f conftest.er1 conftest.err
1607  fi
1608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609  test $ac_status = 0; } && {
1610	 test -z "$ac_c_werror_flag" ||
1611	 test ! -s conftest.err
1612       } && test -s conftest$ac_exeext && {
1613	 test "$cross_compiling" = yes ||
1614	 $as_test_x conftest$ac_exeext
1615       }; then :
1616  ac_retval=0
1617else
1618  $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621	ac_retval=1
1622fi
1623  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625  # interfere with the next link command; also delete a directory that is
1626  # left behind by Apple's compiler.  We do this before executing the actions.
1627  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629  return $ac_retval
1630
1631} # ac_fn_c_try_link
1632
1633# ac_fn_c_try_cpp LINENO
1634# ----------------------
1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_c_try_cpp ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  if { { ac_try="$ac_cpp conftest.$ac_ext"
1640case "(($ac_try" in
1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642  *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647  ac_status=$?
1648  if test -s conftest.err; then
1649    grep -v '^ *+' conftest.err >conftest.er1
1650    cat conftest.er1 >&5
1651    mv -f conftest.er1 conftest.err
1652  fi
1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654  test $ac_status = 0; } >/dev/null && {
1655	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656	 test ! -s conftest.err
1657       }; then :
1658  ac_retval=0
1659else
1660  $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663    ac_retval=1
1664fi
1665  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666  return $ac_retval
1667
1668} # ac_fn_c_try_cpp
1669
1670# ac_fn_cxx_try_compile LINENO
1671# ----------------------------
1672# Try to compile conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_cxx_try_compile ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  rm -f conftest.$ac_objext
1677  if { { ac_try="$ac_compile"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_compile") 2>conftest.err
1685  ac_status=$?
1686  if test -s conftest.err; then
1687    grep -v '^ *+' conftest.err >conftest.er1
1688    cat conftest.er1 >&5
1689    mv -f conftest.er1 conftest.err
1690  fi
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && {
1693	 test -z "$ac_cxx_werror_flag" ||
1694	 test ! -s conftest.err
1695       } && test -s conftest.$ac_objext; then :
1696  ac_retval=0
1697else
1698  $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701	ac_retval=1
1702fi
1703  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704  return $ac_retval
1705
1706} # ac_fn_cxx_try_compile
1707
1708# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1711# the include files in INCLUDES and setting the cache variable VAR
1712# accordingly.
1713ac_fn_c_check_header_mongrel ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
1719if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720  $as_echo_n "(cached) " >&6
1721fi
1722eval ac_res=\$$3
1723	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724$as_echo "$ac_res" >&6; }
1725else
1726  # Is the header compilable?
1727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1728$as_echo_n "checking $2 usability... " >&6; }
1729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735  ac_header_compiler=yes
1736else
1737  ac_header_compiler=no
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1741$as_echo "$ac_header_compiler" >&6; }
1742
1743# Is the header present?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1745$as_echo_n "checking $2 presence... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748#include <$2>
1749_ACEOF
1750if ac_fn_c_try_cpp "$LINENO"; then :
1751  ac_header_preproc=yes
1752else
1753  ac_header_preproc=no
1754fi
1755rm -f conftest.err conftest.$ac_ext
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1757$as_echo "$ac_header_preproc" >&6; }
1758
1759# So?  What about this header?
1760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1761  yes:no: )
1762    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1763$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766    ;;
1767  no:yes:* )
1768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1769$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1771$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1773$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1775$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778    ;;
1779esac
1780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783  $as_echo_n "(cached) " >&6
1784else
1785  eval "$3=\$ac_header_compiler"
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790fi
1791  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792
1793} # ac_fn_c_check_header_mongrel
1794
1795# ac_fn_c_try_run LINENO
1796# ----------------------
1797# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1798# that executables *can* be run.
1799ac_fn_c_try_run ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  if { { ac_try="$ac_link"
1803case "(($ac_try" in
1804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805  *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809  (eval "$ac_link") 2>&5
1810  ac_status=$?
1811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1813  { { case "(($ac_try" in
1814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815  *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
1819  (eval "$ac_try") 2>&5
1820  ac_status=$?
1821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822  test $ac_status = 0; }; }; then :
1823  ac_retval=0
1824else
1825  $as_echo "$as_me: program exited with status $ac_status" >&5
1826       $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829       ac_retval=$ac_status
1830fi
1831  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833  return $ac_retval
1834
1835} # ac_fn_c_try_run
1836
1837# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838# -------------------------------------------------------
1839# Tests whether HEADER exists and can be compiled using the include files in
1840# INCLUDES, setting the cache variable VAR accordingly.
1841ac_fn_c_check_header_compile ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
1846if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847  $as_echo_n "(cached) " >&6
1848else
1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855  eval "$3=yes"
1856else
1857  eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
1866} # ac_fn_c_check_header_compile
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877  $as_echo_n "(cached) " >&6
1878else
1879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886    which can conflict with char $2 (); below.
1887    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888    <limits.h> exists even on freestanding compilers.  */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899   Use char because int might match the return type of a GCC
1900   builtin and then its argument prototype would still apply.  */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906    to always fail with ENOSYS.  Some functions are actually named
1907    something starting with __ and the normal name is an alias.  */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916  ;
1917  return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921  eval "$3=yes"
1922else
1923  eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926    conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933} # ac_fn_c_check_func
1934
1935# ac_fn_cxx_try_cpp LINENO
1936# ------------------------
1937# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_cxx_try_cpp ()
1939{
1940  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941  if { { ac_try="$ac_cpp conftest.$ac_ext"
1942case "(($ac_try" in
1943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944  *) ac_try_echo=$ac_try;;
1945esac
1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947$as_echo "$ac_try_echo"; } >&5
1948  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949  ac_status=$?
1950  if test -s conftest.err; then
1951    grep -v '^ *+' conftest.err >conftest.er1
1952    cat conftest.er1 >&5
1953    mv -f conftest.er1 conftest.err
1954  fi
1955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956  test $ac_status = 0; } >/dev/null && {
1957	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958	 test ! -s conftest.err
1959       }; then :
1960  ac_retval=0
1961else
1962  $as_echo "$as_me: failed program was:" >&5
1963sed 's/^/| /' conftest.$ac_ext >&5
1964
1965    ac_retval=1
1966fi
1967  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968  return $ac_retval
1969
1970} # ac_fn_cxx_try_cpp
1971
1972# ac_fn_cxx_try_link LINENO
1973# -------------------------
1974# Try to link conftest.$ac_ext, and return whether this succeeded.
1975ac_fn_cxx_try_link ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  rm -f conftest.$ac_objext conftest$ac_exeext
1979  if { { ac_try="$ac_link"
1980case "(($ac_try" in
1981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982  *) ac_try_echo=$ac_try;;
1983esac
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985$as_echo "$ac_try_echo"; } >&5
1986  (eval "$ac_link") 2>conftest.err
1987  ac_status=$?
1988  if test -s conftest.err; then
1989    grep -v '^ *+' conftest.err >conftest.er1
1990    cat conftest.er1 >&5
1991    mv -f conftest.er1 conftest.err
1992  fi
1993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994  test $ac_status = 0; } && {
1995	 test -z "$ac_cxx_werror_flag" ||
1996	 test ! -s conftest.err
1997       } && test -s conftest$ac_exeext && {
1998	 test "$cross_compiling" = yes ||
1999	 $as_test_x conftest$ac_exeext
2000       }; then :
2001  ac_retval=0
2002else
2003  $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006	ac_retval=1
2007fi
2008  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010  # interfere with the next link command; also delete a directory that is
2011  # left behind by Apple's compiler.  We do this before executing the actions.
2012  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014  return $ac_retval
2015
2016} # ac_fn_cxx_try_link
2017
2018# ac_fn_c_check_decl LINENO SYMBOL VAR
2019# ------------------------------------
2020# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2021ac_fn_c_check_decl ()
2022{
2023  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024  as_decl_name=`echo $2|sed 's/ *(.*//'`
2025  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2027$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2028if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029  $as_echo_n "(cached) " >&6
2030else
2031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033$4
2034int
2035main ()
2036{
2037#ifndef $as_decl_name
2038#ifdef __cplusplus
2039  (void) $as_decl_use;
2040#else
2041  (void) $as_decl_name;
2042#endif
2043#endif
2044
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050  eval "$3=yes"
2051else
2052  eval "$3=no"
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055fi
2056eval ac_res=\$$3
2057	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060
2061} # ac_fn_c_check_decl
2062
2063# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064# --------------------------------------------
2065# Tries to find the compile-time value of EXPR in a program that includes
2066# INCLUDES, setting VAR accordingly. Returns whether the value could be
2067# computed
2068ac_fn_c_compute_int ()
2069{
2070  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071  if test "$cross_compiling" = yes; then
2072    # Depending upon the size, compute the lo and hi bounds.
2073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) >= 0)];
2080test_array [0] = 0
2081
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087  ac_lo=0 ac_mid=0
2088  while :; do
2089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092int
2093main ()
2094{
2095static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096test_array [0] = 0
2097
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103  ac_hi=$ac_mid; break
2104else
2105  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106			if test $ac_lo -le $ac_mid; then
2107			  ac_lo= ac_hi=
2108			  break
2109			fi
2110			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113  done
2114else
2115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h.  */
2117$4
2118int
2119main ()
2120{
2121static int test_array [1 - 2 * !(($2) < 0)];
2122test_array [0] = 0
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  ac_hi=-1 ac_mid=-1
2130  while :; do
2131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133$4
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2138test_array [0] = 0
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_lo=$ac_mid; break
2146else
2147  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148			if test $ac_mid -le $ac_hi; then
2149			  ac_lo= ac_hi=
2150			  break
2151			fi
2152			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155  done
2156else
2157  ac_lo= ac_hi=
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162# Binary search between lo and hi bounds.
2163while test "x$ac_lo" != "x$ac_hi"; do
2164  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172test_array [0] = 0
2173
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179  ac_hi=$ac_mid
2180else
2181  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184done
2185case $ac_lo in #((
2186?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2187'') ac_retval=1 ;;
2188esac
2189  else
2190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$4
2193static long int longval () { return $2; }
2194static unsigned long int ulongval () { return $2; }
2195#include <stdio.h>
2196#include <stdlib.h>
2197int
2198main ()
2199{
2200
2201  FILE *f = fopen ("conftest.val", "w");
2202  if (! f)
2203    return 1;
2204  if (($2) < 0)
2205    {
2206      long int i = longval ();
2207      if (i != ($2))
2208	return 1;
2209      fprintf (f, "%ld", i);
2210    }
2211  else
2212    {
2213      unsigned long int i = ulongval ();
2214      if (i != ($2))
2215	return 1;
2216      fprintf (f, "%lu", i);
2217    }
2218  /* Do not output a trailing newline, as this causes \r\n confusion
2219     on some platforms.  */
2220  return ferror (f) || fclose (f) != 0;
2221
2222  ;
2223  return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_run "$LINENO"; then :
2227  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228else
2229  ac_retval=1
2230fi
2231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232  conftest.$ac_objext conftest.beam conftest.$ac_ext
2233rm -f conftest.val
2234
2235  fi
2236  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237  return $ac_retval
2238
2239} # ac_fn_c_compute_int
2240cat >config.log <<_ACEOF
2241This file contains any messages produced by compilers while
2242running configure, to aid debugging if configure makes a mistake.
2243
2244It was created by $as_me, which was
2245generated by GNU Autoconf 2.64.  Invocation command line was
2246
2247  $ $0 $@
2248
2249_ACEOF
2250exec 5>>config.log
2251{
2252cat <<_ASUNAME
2253## --------- ##
2254## Platform. ##
2255## --------- ##
2256
2257hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258uname -m = `(uname -m) 2>/dev/null || echo unknown`
2259uname -r = `(uname -r) 2>/dev/null || echo unknown`
2260uname -s = `(uname -s) 2>/dev/null || echo unknown`
2261uname -v = `(uname -v) 2>/dev/null || echo unknown`
2262
2263/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2265
2266/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2267/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2268/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2270/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2271/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2272/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2273
2274_ASUNAME
2275
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279  IFS=$as_save_IFS
2280  test -z "$as_dir" && as_dir=.
2281    $as_echo "PATH: $as_dir"
2282  done
2283IFS=$as_save_IFS
2284
2285} >&5
2286
2287cat >&5 <<_ACEOF
2288
2289
2290## ----------- ##
2291## Core tests. ##
2292## ----------- ##
2293
2294_ACEOF
2295
2296
2297# Keep a trace of the command line.
2298# Strip out --no-create and --no-recursion so they do not pile up.
2299# Strip out --silent because we don't want to record it for future runs.
2300# Also quote any args containing shell meta-characters.
2301# Make two passes to allow for proper duplicate-argument suppression.
2302ac_configure_args=
2303ac_configure_args0=
2304ac_configure_args1=
2305ac_must_keep_next=false
2306for ac_pass in 1 2
2307do
2308  for ac_arg
2309  do
2310    case $ac_arg in
2311    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313    | -silent | --silent | --silen | --sile | --sil)
2314      continue ;;
2315    *\'*)
2316      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317    esac
2318    case $ac_pass in
2319    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320    2)
2321      as_fn_append ac_configure_args1 " '$ac_arg'"
2322      if test $ac_must_keep_next = true; then
2323	ac_must_keep_next=false # Got value, back to normal.
2324      else
2325	case $ac_arg in
2326	  *=* | --config-cache | -C | -disable-* | --disable-* \
2327	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329	  | -with-* | --with-* | -without-* | --without-* | --x)
2330	    case "$ac_configure_args0 " in
2331	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332	    esac
2333	    ;;
2334	  -* ) ac_must_keep_next=true ;;
2335	esac
2336      fi
2337      as_fn_append ac_configure_args " '$ac_arg'"
2338      ;;
2339    esac
2340  done
2341done
2342{ ac_configure_args0=; unset ac_configure_args0;}
2343{ ac_configure_args1=; unset ac_configure_args1;}
2344
2345# When interrupted or exit'd, cleanup temporary files, and complete
2346# config.log.  We remove comments because anyway the quotes in there
2347# would cause problems or look ugly.
2348# WARNING: Use '\'' to represent an apostrophe within the trap.
2349# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350trap 'exit_status=$?
2351  # Save into config.log some information that might help in debugging.
2352  {
2353    echo
2354
2355    cat <<\_ASBOX
2356## ---------------- ##
2357## Cache variables. ##
2358## ---------------- ##
2359_ASBOX
2360    echo
2361    # The following way of writing the cache mishandles newlines in values,
2362(
2363  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2364    eval ac_val=\$$ac_var
2365    case $ac_val in #(
2366    *${as_nl}*)
2367      case $ac_var in #(
2368      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2369$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370      esac
2371      case $ac_var in #(
2372      _ | IFS | as_nl) ;; #(
2373      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2374      *) { eval $ac_var=; unset $ac_var;} ;;
2375      esac ;;
2376    esac
2377  done
2378  (set) 2>&1 |
2379    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2380    *${as_nl}ac_space=\ *)
2381      sed -n \
2382	"s/'\''/'\''\\\\'\'''\''/g;
2383	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384      ;; #(
2385    *)
2386      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2387      ;;
2388    esac |
2389    sort
2390)
2391    echo
2392
2393    cat <<\_ASBOX
2394## ----------------- ##
2395## Output variables. ##
2396## ----------------- ##
2397_ASBOX
2398    echo
2399    for ac_var in $ac_subst_vars
2400    do
2401      eval ac_val=\$$ac_var
2402      case $ac_val in
2403      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404      esac
2405      $as_echo "$ac_var='\''$ac_val'\''"
2406    done | sort
2407    echo
2408
2409    if test -n "$ac_subst_files"; then
2410      cat <<\_ASBOX
2411## ------------------- ##
2412## File substitutions. ##
2413## ------------------- ##
2414_ASBOX
2415      echo
2416      for ac_var in $ac_subst_files
2417      do
2418	eval ac_val=\$$ac_var
2419	case $ac_val in
2420	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421	esac
2422	$as_echo "$ac_var='\''$ac_val'\''"
2423      done | sort
2424      echo
2425    fi
2426
2427    if test -s confdefs.h; then
2428      cat <<\_ASBOX
2429## ----------- ##
2430## confdefs.h. ##
2431## ----------- ##
2432_ASBOX
2433      echo
2434      cat confdefs.h
2435      echo
2436    fi
2437    test "$ac_signal" != 0 &&
2438      $as_echo "$as_me: caught signal $ac_signal"
2439    $as_echo "$as_me: exit $exit_status"
2440  } >&5
2441  rm -f core *.core core.conftest.* &&
2442    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2443    exit $exit_status
2444' 0
2445for ac_signal in 1 2 13 15; do
2446  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447done
2448ac_signal=0
2449
2450# confdefs.h avoids OS command line length limits that DEFS can exceed.
2451rm -f -r conftest* confdefs.h
2452
2453$as_echo "/* confdefs.h */" > confdefs.h
2454
2455# Predefined preprocessor variables.
2456
2457cat >>confdefs.h <<_ACEOF
2458#define PACKAGE_NAME "$PACKAGE_NAME"
2459_ACEOF
2460
2461cat >>confdefs.h <<_ACEOF
2462#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2463_ACEOF
2464
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_VERSION "$PACKAGE_VERSION"
2467_ACEOF
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_STRING "$PACKAGE_STRING"
2471_ACEOF
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_URL "$PACKAGE_URL"
2479_ACEOF
2480
2481
2482# Let the site file select an alternate cache file if it wants to.
2483# Prefer an explicitly selected file to automatically selected ones.
2484ac_site_file1=NONE
2485ac_site_file2=NONE
2486if test -n "$CONFIG_SITE"; then
2487  ac_site_file1=$CONFIG_SITE
2488elif test "x$prefix" != xNONE; then
2489  ac_site_file1=$prefix/share/config.site
2490  ac_site_file2=$prefix/etc/config.site
2491else
2492  ac_site_file1=$ac_default_prefix/share/config.site
2493  ac_site_file2=$ac_default_prefix/etc/config.site
2494fi
2495for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2496do
2497  test "x$ac_site_file" = xNONE && continue
2498  if test -r "$ac_site_file"; then
2499    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2500$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2501    sed 's/^/| /' "$ac_site_file" >&5
2502    . "$ac_site_file"
2503  fi
2504done
2505
2506if test -r "$cache_file"; then
2507  # Some versions of bash will fail to source /dev/null (special
2508  # files actually), so we avoid doing that.
2509  if test -f "$cache_file"; then
2510    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511$as_echo "$as_me: loading cache $cache_file" >&6;}
2512    case $cache_file in
2513      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514      *)                      . "./$cache_file";;
2515    esac
2516  fi
2517else
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519$as_echo "$as_me: creating cache $cache_file" >&6;}
2520  >$cache_file
2521fi
2522
2523# Check that the precious variables saved in the cache have kept the same
2524# value.
2525ac_cache_corrupted=false
2526for ac_var in $ac_precious_vars; do
2527  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2528  eval ac_new_set=\$ac_env_${ac_var}_set
2529  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2530  eval ac_new_val=\$ac_env_${ac_var}_value
2531  case $ac_old_set,$ac_new_set in
2532    set,)
2533      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2534$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2535      ac_cache_corrupted=: ;;
2536    ,set)
2537      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2538$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2539      ac_cache_corrupted=: ;;
2540    ,);;
2541    *)
2542      if test "x$ac_old_val" != "x$ac_new_val"; then
2543	# differences in whitespace do not lead to failure.
2544	ac_old_val_w=`echo x $ac_old_val`
2545	ac_new_val_w=`echo x $ac_new_val`
2546	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2547	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2548$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2549	  ac_cache_corrupted=:
2550	else
2551	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2552$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2553	  eval $ac_var=\$ac_old_val
2554	fi
2555	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2556$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2557	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2558$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2559      fi;;
2560  esac
2561  # Pass precious variables to config.status.
2562  if test "$ac_new_set" = set; then
2563    case $ac_new_val in
2564    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2565    *) ac_arg=$ac_var=$ac_new_val ;;
2566    esac
2567    case " $ac_configure_args " in
2568      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2569      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2570    esac
2571  fi
2572done
2573if $ac_cache_corrupted; then
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2577$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2578  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2579fi
2580## -------------------- ##
2581## Main body of script. ##
2582## -------------------- ##
2583
2584ac_ext=c
2585ac_cpp='$CPP $CPPFLAGS'
2586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589
2590
2591
2592
2593
2594
2595
2596ac_aux_dir=
2597for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2598  for ac_t in install-sh install.sh shtool; do
2599    if test -f "$ac_dir/$ac_t"; then
2600      ac_aux_dir=$ac_dir
2601      ac_install_sh="$ac_aux_dir/$ac_t -c"
2602      break 2
2603    fi
2604  done
2605done
2606if test -z "$ac_aux_dir"; then
2607  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2608fi
2609
2610# These three variables are undocumented and unsupported,
2611# and are intended to be withdrawn in a future Autoconf release.
2612# They can cause serious problems if a builder's source tree is in a directory
2613# whose full name contains unusual characters.
2614ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2615ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2616ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2617
2618
2619# Make sure we can run config.sub.
2620$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2621  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2622
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2624$as_echo_n "checking build system type... " >&6; }
2625if test "${ac_cv_build+set}" = set; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  ac_build_alias=$build_alias
2629test "x$ac_build_alias" = x &&
2630  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2631test "x$ac_build_alias" = x &&
2632  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2633ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2634  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2635
2636fi
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2638$as_echo "$ac_cv_build" >&6; }
2639case $ac_cv_build in
2640*-*-*) ;;
2641*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2642esac
2643build=$ac_cv_build
2644ac_save_IFS=$IFS; IFS='-'
2645set x $ac_cv_build
2646shift
2647build_cpu=$1
2648build_vendor=$2
2649shift; shift
2650# Remember, the first character of IFS is used to create $*,
2651# except with old shells:
2652build_os=$*
2653IFS=$ac_save_IFS
2654case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2655
2656
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2658$as_echo_n "checking host system type... " >&6; }
2659if test "${ac_cv_host+set}" = set; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  if test "x$host_alias" = x; then
2663  ac_cv_host=$ac_cv_build
2664else
2665  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2666    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2667fi
2668
2669fi
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2671$as_echo "$ac_cv_host" >&6; }
2672case $ac_cv_host in
2673*-*-*) ;;
2674*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2675esac
2676host=$ac_cv_host
2677ac_save_IFS=$IFS; IFS='-'
2678set x $ac_cv_host
2679shift
2680host_cpu=$1
2681host_vendor=$2
2682shift; shift
2683# Remember, the first character of IFS is used to create $*,
2684# except with old shells:
2685host_os=$*
2686IFS=$ac_save_IFS
2687case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2688
2689
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2691$as_echo_n "checking target system type... " >&6; }
2692if test "${ac_cv_target+set}" = set; then :
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test "x$target_alias" = x; then
2696  ac_cv_target=$ac_cv_host
2697else
2698  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2699    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2700fi
2701
2702fi
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2704$as_echo "$ac_cv_target" >&6; }
2705case $ac_cv_target in
2706*-*-*) ;;
2707*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2708esac
2709target=$ac_cv_target
2710ac_save_IFS=$IFS; IFS='-'
2711set x $ac_cv_target
2712shift
2713target_cpu=$1
2714target_vendor=$2
2715shift; shift
2716# Remember, the first character of IFS is used to create $*,
2717# except with old shells:
2718target_os=$*
2719IFS=$ac_save_IFS
2720case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2721
2722
2723# The aliases save the names the user supplied, while $host etc.
2724# will get canonicalized.
2725test -n "$target_alias" &&
2726  test "$program_prefix$program_suffix$program_transform_name" = \
2727    NONENONEs,x,x, &&
2728  program_prefix=${target_alias}-
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734if test -n "$ac_tool_prefix"; then
2735  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}gcc; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if test "${ac_cv_prog_CC+set}" = set; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  if test -n "$CC"; then
2743  ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750    for ac_exec_ext in '' $ac_executable_extensions; do
2751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757  done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765$as_echo "$CC" >&6; }
2766else
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771
2772fi
2773if test -z "$ac_cv_prog_CC"; then
2774  ac_ct_CC=$CC
2775  # Extract the first word of "gcc", so it can be a program name with args.
2776set dummy gcc; ac_word=$2
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  if test -n "$ac_ct_CC"; then
2783  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788  IFS=$as_save_IFS
2789  test -z "$as_dir" && as_dir=.
2790    for ac_exec_ext in '' $ac_executable_extensions; do
2791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792    ac_cv_prog_ac_ct_CC="gcc"
2793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794    break 2
2795  fi
2796done
2797  done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803if test -n "$ac_ct_CC"; then
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2805$as_echo "$ac_ct_CC" >&6; }
2806else
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
2809fi
2810
2811  if test "x$ac_ct_CC" = x; then
2812    CC=""
2813  else
2814    case $cross_compiling:$ac_tool_warned in
2815yes:)
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2818ac_tool_warned=yes ;;
2819esac
2820    CC=$ac_ct_CC
2821  fi
2822else
2823  CC="$ac_cv_prog_CC"
2824fi
2825
2826if test -z "$CC"; then
2827          if test -n "$ac_tool_prefix"; then
2828    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2829set dummy ${ac_tool_prefix}cc; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if test "${ac_cv_prog_CC+set}" = set; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845    ac_cv_prog_CC="${ac_tool_prefix}cc"
2846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855CC=$ac_cv_prog_CC
2856if test -n "$CC"; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858$as_echo "$CC" >&6; }
2859else
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865  fi
2866fi
2867if test -z "$CC"; then
2868  # Extract the first word of "cc", so it can be a program name with args.
2869set dummy cc; ac_word=$2
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871$as_echo_n "checking for $ac_word... " >&6; }
2872if test "${ac_cv_prog_CC+set}" = set; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  if test -n "$CC"; then
2876  ac_cv_prog_CC="$CC" # Let the user override the test.
2877else
2878  ac_prog_rejected=no
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887       ac_prog_rejected=yes
2888       continue
2889     fi
2890    ac_cv_prog_CC="cc"
2891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892    break 2
2893  fi
2894done
2895  done
2896IFS=$as_save_IFS
2897
2898if test $ac_prog_rejected = yes; then
2899  # We found a bogon in the path, so make sure we never use it.
2900  set dummy $ac_cv_prog_CC
2901  shift
2902  if test $# != 0; then
2903    # We chose a different compiler from the bogus one.
2904    # However, it has the same basename, so the bogon will be chosen
2905    # first if we set CC to just the basename; use the full file name.
2906    shift
2907    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2908  fi
2909fi
2910fi
2911fi
2912CC=$ac_cv_prog_CC
2913if test -n "$CC"; then
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915$as_echo "$CC" >&6; }
2916else
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922fi
2923if test -z "$CC"; then
2924  if test -n "$ac_tool_prefix"; then
2925  for ac_prog in cl.exe
2926  do
2927    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2928set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930$as_echo_n "checking for $ac_word... " >&6; }
2931if test "${ac_cv_prog_CC+set}" = set; then :
2932  $as_echo_n "(cached) " >&6
2933else
2934  if test -n "$CC"; then
2935  ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942    for ac_exec_ext in '' $ac_executable_extensions; do
2943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949  done
2950IFS=$as_save_IFS
2951
2952fi
2953fi
2954CC=$ac_cv_prog_CC
2955if test -n "$CC"; then
2956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957$as_echo "$CC" >&6; }
2958else
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960$as_echo "no" >&6; }
2961fi
2962
2963
2964    test -n "$CC" && break
2965  done
2966fi
2967if test -z "$CC"; then
2968  ac_ct_CC=$CC
2969  for ac_prog in cl.exe
2970do
2971  # Extract the first word of "$ac_prog", so it can be a program name with args.
2972set dummy $ac_prog; ac_word=$2
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974$as_echo_n "checking for $ac_word... " >&6; }
2975if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  if test -n "$ac_ct_CC"; then
2979  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980else
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984  IFS=$as_save_IFS
2985  test -z "$as_dir" && as_dir=.
2986    for ac_exec_ext in '' $ac_executable_extensions; do
2987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988    ac_cv_prog_ac_ct_CC="$ac_prog"
2989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990    break 2
2991  fi
2992done
2993  done
2994IFS=$as_save_IFS
2995
2996fi
2997fi
2998ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999if test -n "$ac_ct_CC"; then
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001$as_echo "$ac_ct_CC" >&6; }
3002else
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004$as_echo "no" >&6; }
3005fi
3006
3007
3008  test -n "$ac_ct_CC" && break
3009done
3010
3011  if test "x$ac_ct_CC" = x; then
3012    CC=""
3013  else
3014    case $cross_compiling:$ac_tool_warned in
3015yes:)
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018ac_tool_warned=yes ;;
3019esac
3020    CC=$ac_ct_CC
3021  fi
3022fi
3023
3024fi
3025
3026
3027test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029as_fn_error "no acceptable C compiler found in \$PATH
3030See \`config.log' for more details." "$LINENO" 5; }
3031
3032# Provide some information about the compiler.
3033$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3034set X $ac_compile
3035ac_compiler=$2
3036for ac_option in --version -v -V -qversion; do
3037  { { ac_try="$ac_compiler $ac_option >&5"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043$as_echo "$ac_try_echo"; } >&5
3044  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3045  ac_status=$?
3046  if test -s conftest.err; then
3047    sed '10a\
3048... rest of stderr output deleted ...
3049         10q' conftest.err >conftest.er1
3050    cat conftest.er1 >&5
3051    rm -f conftest.er1 conftest.err
3052  fi
3053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054  test $ac_status = 0; }
3055done
3056
3057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068ac_clean_files_save=$ac_clean_files
3069ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3070# Try to create an executable without -o first, disregard a.out.
3071# It will help us diagnose broken compilers, and finding out an intuition
3072# of exeext.
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3074$as_echo_n "checking for C compiler default output file name... " >&6; }
3075ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076
3077# The possible output files:
3078ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3079
3080ac_rmfiles=
3081for ac_file in $ac_files
3082do
3083  case $ac_file in
3084    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3085    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3086  esac
3087done
3088rm -f $ac_rmfiles
3089
3090if { { ac_try="$ac_link_default"
3091case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096$as_echo "$ac_try_echo"; } >&5
3097  (eval "$ac_link_default") 2>&5
3098  ac_status=$?
3099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100  test $ac_status = 0; }; then :
3101  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3104# so that the user can short-circuit this test for compilers unknown to
3105# Autoconf.
3106for ac_file in $ac_files ''
3107do
3108  test -f "$ac_file" || continue
3109  case $ac_file in
3110    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3111	;;
3112    [ab].out )
3113	# We found the default executable, but exeext='' is most
3114	# certainly right.
3115	break;;
3116    *.* )
3117	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118	then :; else
3119	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120	fi
3121	# We set ac_cv_exeext here because the later test for it is not
3122	# safe: cross compilers may not add the suffix if given an `-o'
3123	# argument, so we may need to know it at that point already.
3124	# Even if this section looks crufty: it has the advantage of
3125	# actually working.
3126	break;;
3127    * )
3128	break;;
3129  esac
3130done
3131test "$ac_cv_exeext" = no && ac_cv_exeext=
3132
3133else
3134  ac_file=''
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3137$as_echo "$ac_file" >&6; }
3138if test -z "$ac_file"; then :
3139  $as_echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144{ as_fn_set_status 77
3145as_fn_error "C compiler cannot create executables
3146See \`config.log' for more details." "$LINENO" 5; }; }
3147fi
3148ac_exeext=$ac_cv_exeext
3149
3150# Check that the compiler produces executables we can run.  If not, either
3151# the compiler is broken, or we cross compile.
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3153$as_echo_n "checking whether the C compiler works... " >&6; }
3154# If not cross compiling, check that we can run a simple program.
3155if test "$cross_compiling" != yes; then
3156  if { ac_try='./$ac_file'
3157  { { case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162$as_echo "$ac_try_echo"; } >&5
3163  (eval "$ac_try") 2>&5
3164  ac_status=$?
3165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166  test $ac_status = 0; }; }; then
3167    cross_compiling=no
3168  else
3169    if test "$cross_compiling" = maybe; then
3170	cross_compiling=yes
3171    else
3172	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174as_fn_error "cannot run C compiled programs.
3175If you meant to cross compile, use \`--host'.
3176See \`config.log' for more details." "$LINENO" 5; }
3177    fi
3178  fi
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181$as_echo "yes" >&6; }
3182
3183rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3184ac_clean_files=$ac_clean_files_save
3185# Check that the compiler produces executables we can run.  If not, either
3186# the compiler is broken, or we cross compile.
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3188$as_echo_n "checking whether we are cross compiling... " >&6; }
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3190$as_echo "$cross_compiling" >&6; }
3191
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3193$as_echo_n "checking for suffix of executables... " >&6; }
3194if { { ac_try="$ac_link"
3195case "(($ac_try" in
3196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197  *) ac_try_echo=$ac_try;;
3198esac
3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200$as_echo "$ac_try_echo"; } >&5
3201  (eval "$ac_link") 2>&5
3202  ac_status=$?
3203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204  test $ac_status = 0; }; then :
3205  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3207# work properly (i.e., refer to `conftest.exe'), while it won't with
3208# `rm'.
3209for ac_file in conftest.exe conftest conftest.*; do
3210  test -f "$ac_file" || continue
3211  case $ac_file in
3212    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214	  break;;
3215    * ) break;;
3216  esac
3217done
3218else
3219  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221as_fn_error "cannot compute suffix of executables: cannot compile and link
3222See \`config.log' for more details." "$LINENO" 5; }
3223fi
3224rm -f conftest$ac_cv_exeext
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226$as_echo "$ac_cv_exeext" >&6; }
3227
3228rm -f conftest.$ac_ext
3229EXEEXT=$ac_cv_exeext
3230ac_exeext=$EXEEXT
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3232$as_echo_n "checking for suffix of object files... " >&6; }
3233if test "${ac_cv_objext+set}" = set; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h.  */
3238
3239int
3240main ()
3241{
3242
3243  ;
3244  return 0;
3245}
3246_ACEOF
3247rm -f conftest.o conftest.obj
3248if { { ac_try="$ac_compile"
3249case "(($ac_try" in
3250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251  *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254$as_echo "$ac_try_echo"; } >&5
3255  (eval "$ac_compile") 2>&5
3256  ac_status=$?
3257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258  test $ac_status = 0; }; then :
3259  for ac_file in conftest.o conftest.obj conftest.*; do
3260  test -f "$ac_file" || continue;
3261  case $ac_file in
3262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3263    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3264       break;;
3265  esac
3266done
3267else
3268  $as_echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273as_fn_error "cannot compute suffix of object files: cannot compile
3274See \`config.log' for more details." "$LINENO" 5; }
3275fi
3276rm -f conftest.$ac_cv_objext conftest.$ac_ext
3277fi
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3279$as_echo "$ac_cv_objext" >&6; }
3280OBJEXT=$ac_cv_objext
3281ac_objext=$OBJEXT
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3283$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3284if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288/* end confdefs.h.  */
3289
3290int
3291main ()
3292{
3293#ifndef __GNUC__
3294       choke me
3295#endif
3296
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301if ac_fn_c_try_compile "$LINENO"; then :
3302  ac_compiler_gnu=yes
3303else
3304  ac_compiler_gnu=no
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3311$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3312if test $ac_compiler_gnu = yes; then
3313  GCC=yes
3314else
3315  GCC=
3316fi
3317ac_test_CFLAGS=${CFLAGS+set}
3318ac_save_CFLAGS=$CFLAGS
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3320$as_echo_n "checking whether $CC accepts -g... " >&6; }
3321if test "${ac_cv_prog_cc_g+set}" = set; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  ac_save_c_werror_flag=$ac_c_werror_flag
3325   ac_c_werror_flag=yes
3326   ac_cv_prog_cc_g=no
3327   CFLAGS="-g"
3328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339if ac_fn_c_try_compile "$LINENO"; then :
3340  ac_cv_prog_cc_g=yes
3341else
3342  CFLAGS=""
3343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h.  */
3345
3346int
3347main ()
3348{
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354if ac_fn_c_try_compile "$LINENO"; then :
3355
3356else
3357  ac_c_werror_flag=$ac_save_c_werror_flag
3358	 CFLAGS="-g"
3359	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h.  */
3361
3362int
3363main ()
3364{
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370if ac_fn_c_try_compile "$LINENO"; then :
3371  ac_cv_prog_cc_g=yes
3372fi
3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374fi
3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376fi
3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378   ac_c_werror_flag=$ac_save_c_werror_flag
3379fi
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3381$as_echo "$ac_cv_prog_cc_g" >&6; }
3382if test "$ac_test_CFLAGS" = set; then
3383  CFLAGS=$ac_save_CFLAGS
3384elif test $ac_cv_prog_cc_g = yes; then
3385  if test "$GCC" = yes; then
3386    CFLAGS="-g -O2"
3387  else
3388    CFLAGS="-g"
3389  fi
3390else
3391  if test "$GCC" = yes; then
3392    CFLAGS="-O2"
3393  else
3394    CFLAGS=
3395  fi
3396fi
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3398$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3399if test "${ac_cv_prog_cc_c89+set}" = set; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  ac_cv_prog_cc_c89=no
3403ac_save_CC=$CC
3404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h.  */
3406#include <stdarg.h>
3407#include <stdio.h>
3408#include <sys/types.h>
3409#include <sys/stat.h>
3410/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3411struct buf { int x; };
3412FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413static char *e (p, i)
3414     char **p;
3415     int i;
3416{
3417  return p[i];
3418}
3419static char *f (char * (*g) (char **, int), char **p, ...)
3420{
3421  char *s;
3422  va_list v;
3423  va_start (v,p);
3424  s = g (p, va_arg (v,int));
3425  va_end (v);
3426  return s;
3427}
3428
3429/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3430   function prototypes and stuff, but not '\xHH' hex character constants.
3431   These don't provoke an error unfortunately, instead are silently treated
3432   as 'x'.  The following induces an error, until -std is added to get
3433   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3434   array size at least.  It's necessary to write '\x00'==0 to get something
3435   that's true only with -std.  */
3436int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3437
3438/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3439   inside strings and character constants.  */
3440#define FOO(x) 'x'
3441int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3442
3443int test (int i, double x);
3444struct s1 {int (*f) (int a);};
3445struct s2 {int (*f) (double a);};
3446int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447int argc;
3448char **argv;
3449int
3450main ()
3451{
3452return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3458	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3459do
3460  CC="$ac_save_CC $ac_arg"
3461  if ac_fn_c_try_compile "$LINENO"; then :
3462  ac_cv_prog_cc_c89=$ac_arg
3463fi
3464rm -f core conftest.err conftest.$ac_objext
3465  test "x$ac_cv_prog_cc_c89" != "xno" && break
3466done
3467rm -f conftest.$ac_ext
3468CC=$ac_save_CC
3469
3470fi
3471# AC_CACHE_VAL
3472case "x$ac_cv_prog_cc_c89" in
3473  x)
3474    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3475$as_echo "none needed" >&6; } ;;
3476  xno)
3477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3478$as_echo "unsupported" >&6; } ;;
3479  *)
3480    CC="$CC $ac_cv_prog_cc_c89"
3481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3482$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483esac
3484if test "x$ac_cv_prog_cc_c89" != xno; then :
3485
3486fi
3487
3488ac_ext=c
3489ac_cpp='$CPP $CPPFLAGS'
3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3496$as_echo_n "checking for library containing strerror... " >&6; }
3497if test "${ac_cv_search_strerror+set}" = set; then :
3498  $as_echo_n "(cached) " >&6
3499else
3500  ac_func_search_save_LIBS=$LIBS
3501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503
3504/* Override any GCC internal prototype to avoid an error.
3505   Use char because int might match the return type of a GCC
3506   builtin and then its argument prototype would still apply.  */
3507#ifdef __cplusplus
3508extern "C"
3509#endif
3510char strerror ();
3511int
3512main ()
3513{
3514return strerror ();
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519for ac_lib in '' cposix; do
3520  if test -z "$ac_lib"; then
3521    ac_res="none required"
3522  else
3523    ac_res=-l$ac_lib
3524    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3525  fi
3526  if ac_fn_c_try_link "$LINENO"; then :
3527  ac_cv_search_strerror=$ac_res
3528fi
3529rm -f core conftest.err conftest.$ac_objext \
3530    conftest$ac_exeext
3531  if test "${ac_cv_search_strerror+set}" = set; then :
3532  break
3533fi
3534done
3535if test "${ac_cv_search_strerror+set}" = set; then :
3536
3537else
3538  ac_cv_search_strerror=no
3539fi
3540rm conftest.$ac_ext
3541LIBS=$ac_func_search_save_LIBS
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3544$as_echo "$ac_cv_search_strerror" >&6; }
3545ac_res=$ac_cv_search_strerror
3546if test "$ac_res" != no; then :
3547  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3548
3549fi
3550
3551
3552BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3553am__api_version='1.11'
3554
3555# Find a good install program.  We prefer a C program (faster),
3556# so one script is as good as another.  But avoid the broken or
3557# incompatible versions:
3558# SysV /etc/install, /usr/sbin/install
3559# SunOS /usr/etc/install
3560# IRIX /sbin/install
3561# AIX /bin/install
3562# AmigaOS /C/install, which installs bootblocks on floppy discs
3563# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3564# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3565# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3566# OS/2's system install, which has a completely different semantic
3567# ./install, which can be erroneously created by make from ./install.sh.
3568# Reject install programs that cannot install multiple files.
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3570$as_echo_n "checking for a BSD-compatible install... " >&6; }
3571if test -z "$INSTALL"; then
3572if test "${ac_cv_path_install+set}" = set; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH
3577do
3578  IFS=$as_save_IFS
3579  test -z "$as_dir" && as_dir=.
3580    # Account for people who put trailing slashes in PATH elements.
3581case $as_dir/ in #((
3582  ./ | .// | /[cC]/* | \
3583  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3584  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3585  /usr/ucb/* ) ;;
3586  *)
3587    # OSF1 and SCO ODT 3.0 have their own names for install.
3588    # Don't use installbsd from OSF since it installs stuff as root
3589    # by default.
3590    for ac_prog in ginstall scoinst install; do
3591      for ac_exec_ext in '' $ac_executable_extensions; do
3592	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3593	  if test $ac_prog = install &&
3594	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595	    # AIX install.  It has an incompatible calling convention.
3596	    :
3597	  elif test $ac_prog = install &&
3598	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3599	    # program-specific install script used by HP pwplus--don't use.
3600	    :
3601	  else
3602	    rm -rf conftest.one conftest.two conftest.dir
3603	    echo one > conftest.one
3604	    echo two > conftest.two
3605	    mkdir conftest.dir
3606	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3607	      test -s conftest.one && test -s conftest.two &&
3608	      test -s conftest.dir/conftest.one &&
3609	      test -s conftest.dir/conftest.two
3610	    then
3611	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3612	      break 3
3613	    fi
3614	  fi
3615	fi
3616      done
3617    done
3618    ;;
3619esac
3620
3621  done
3622IFS=$as_save_IFS
3623
3624rm -rf conftest.one conftest.two conftest.dir
3625
3626fi
3627  if test "${ac_cv_path_install+set}" = set; then
3628    INSTALL=$ac_cv_path_install
3629  else
3630    # As a last resort, use the slow shell script.  Don't cache a
3631    # value for INSTALL within a source directory, because that will
3632    # break other packages using the cache if that directory is
3633    # removed, or if the value is a relative name.
3634    INSTALL=$ac_install_sh
3635  fi
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3638$as_echo "$INSTALL" >&6; }
3639
3640# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3641# It thinks the first close brace ends the variable substitution.
3642test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3643
3644test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3645
3646test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3647
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3649$as_echo_n "checking whether build environment is sane... " >&6; }
3650# Just in case
3651sleep 1
3652echo timestamp > conftest.file
3653# Reject unsafe characters in $srcdir or the absolute working directory
3654# name.  Accept space and tab only in the latter.
3655am_lf='
3656'
3657case `pwd` in
3658  *[\\\"\#\$\&\'\`$am_lf]*)
3659    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3660esac
3661case $srcdir in
3662  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3663    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3664esac
3665
3666# Do `set' in a subshell so we don't clobber the current shell's
3667# arguments.  Must try -L first in case configure is actually a
3668# symlink; some systems play weird games with the mod time of symlinks
3669# (eg FreeBSD returns the mod time of the symlink's containing
3670# directory).
3671if (
3672   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3673   if test "$*" = "X"; then
3674      # -L didn't work.
3675      set X `ls -t "$srcdir/configure" conftest.file`
3676   fi
3677   rm -f conftest.file
3678   if test "$*" != "X $srcdir/configure conftest.file" \
3679      && test "$*" != "X conftest.file $srcdir/configure"; then
3680
3681      # If neither matched, then we have a broken ls.  This can happen
3682      # if, for instance, CONFIG_SHELL is bash and it inherits a
3683      # broken ls alias from the environment.  This has actually
3684      # happened.  Such a system could not be considered "sane".
3685      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3686alias in your environment" "$LINENO" 5
3687   fi
3688
3689   test "$2" = conftest.file
3690   )
3691then
3692   # Ok.
3693   :
3694else
3695   as_fn_error "newly created file is older than distributed files!
3696Check your system clock" "$LINENO" 5
3697fi
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3699$as_echo "yes" >&6; }
3700test "$program_prefix" != NONE &&
3701  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3702# Use a double $ so make ignores it.
3703test "$program_suffix" != NONE &&
3704  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3705# Double any \ or $.
3706# By default was `s,x,x', remove it if useless.
3707ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3708program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3709
3710# expand $ac_aux_dir to an absolute path
3711am_aux_dir=`cd $ac_aux_dir && pwd`
3712
3713if test x"${MISSING+set}" != xset; then
3714  case $am_aux_dir in
3715  *\ * | *\	*)
3716    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3717  *)
3718    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3719  esac
3720fi
3721# Use eval to expand $SHELL
3722if eval "$MISSING --run true"; then
3723  am_missing_run="$MISSING --run "
3724else
3725  am_missing_run=
3726  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3727$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3728fi
3729
3730if test x"${install_sh}" != xset; then
3731  case $am_aux_dir in
3732  *\ * | *\	*)
3733    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3734  *)
3735    install_sh="\${SHELL} $am_aux_dir/install-sh"
3736  esac
3737fi
3738
3739# Installed binaries are usually stripped using `strip' when the user
3740# run `make install-strip'.  However `strip' might not be the right
3741# tool to use in cross-compilation environments, therefore Automake
3742# will honor the `STRIP' environment variable to overrule this program.
3743if test "$cross_compiling" != no; then
3744  if test -n "$ac_tool_prefix"; then
3745  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3746set dummy ${ac_tool_prefix}strip; ac_word=$2
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748$as_echo_n "checking for $ac_word... " >&6; }
3749if test "${ac_cv_prog_STRIP+set}" = set; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  if test -n "$STRIP"; then
3753  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3754else
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758  IFS=$as_save_IFS
3759  test -z "$as_dir" && as_dir=.
3760    for ac_exec_ext in '' $ac_executable_extensions; do
3761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764    break 2
3765  fi
3766done
3767  done
3768IFS=$as_save_IFS
3769
3770fi
3771fi
3772STRIP=$ac_cv_prog_STRIP
3773if test -n "$STRIP"; then
3774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3775$as_echo "$STRIP" >&6; }
3776else
3777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778$as_echo "no" >&6; }
3779fi
3780
3781
3782fi
3783if test -z "$ac_cv_prog_STRIP"; then
3784  ac_ct_STRIP=$STRIP
3785  # Extract the first word of "strip", so it can be a program name with args.
3786set dummy strip; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
3789if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if test -n "$ac_ct_STRIP"; then
3793  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_exec_ext in '' $ac_executable_extensions; do
3801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802    ac_cv_prog_ac_ct_STRIP="strip"
3803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807  done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3813if test -n "$ac_ct_STRIP"; then
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3815$as_echo "$ac_ct_STRIP" >&6; }
3816else
3817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821  if test "x$ac_ct_STRIP" = x; then
3822    STRIP=":"
3823  else
3824    case $cross_compiling:$ac_tool_warned in
3825yes:)
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828ac_tool_warned=yes ;;
3829esac
3830    STRIP=$ac_ct_STRIP
3831  fi
3832else
3833  STRIP="$ac_cv_prog_STRIP"
3834fi
3835
3836fi
3837INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3838
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3840$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3841if test -z "$MKDIR_P"; then
3842  if test "${ac_cv_path_mkdir+set}" = set; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3847do
3848  IFS=$as_save_IFS
3849  test -z "$as_dir" && as_dir=.
3850    for ac_prog in mkdir gmkdir; do
3851	 for ac_exec_ext in '' $ac_executable_extensions; do
3852	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3853	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3854	     'mkdir (GNU coreutils) '* | \
3855	     'mkdir (coreutils) '* | \
3856	     'mkdir (fileutils) '4.1*)
3857	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3858	       break 3;;
3859	   esac
3860	 done
3861       done
3862  done
3863IFS=$as_save_IFS
3864
3865fi
3866
3867  if test "${ac_cv_path_mkdir+set}" = set; then
3868    MKDIR_P="$ac_cv_path_mkdir -p"
3869  else
3870    # As a last resort, use the slow shell script.  Don't cache a
3871    # value for MKDIR_P within a source directory, because that will
3872    # break other packages using the cache if that directory is
3873    # removed, or if the value is a relative name.
3874    test -d ./--version && rmdir ./--version
3875    MKDIR_P="$ac_install_sh -d"
3876  fi
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3879$as_echo "$MKDIR_P" >&6; }
3880
3881mkdir_p="$MKDIR_P"
3882case $mkdir_p in
3883  [\\/$]* | ?:[\\/]*) ;;
3884  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3885esac
3886
3887for ac_prog in gawk mawk nawk awk
3888do
3889  # Extract the first word of "$ac_prog", so it can be a program name with args.
3890set dummy $ac_prog; ac_word=$2
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
3893if test "${ac_cv_prog_AWK+set}" = set; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  if test -n "$AWK"; then
3897  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902  IFS=$as_save_IFS
3903  test -z "$as_dir" && as_dir=.
3904    for ac_exec_ext in '' $ac_executable_extensions; do
3905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906    ac_cv_prog_AWK="$ac_prog"
3907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908    break 2
3909  fi
3910done
3911  done
3912IFS=$as_save_IFS
3913
3914fi
3915fi
3916AWK=$ac_cv_prog_AWK
3917if test -n "$AWK"; then
3918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3919$as_echo "$AWK" >&6; }
3920else
3921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923fi
3924
3925
3926  test -n "$AWK" && break
3927done
3928
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3930$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3931set x ${MAKE-make}
3932ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3933if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  cat >conftest.make <<\_ACEOF
3937SHELL = /bin/sh
3938all:
3939	@echo '@@@%%%=$(MAKE)=@@@%%%'
3940_ACEOF
3941# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942case `${MAKE-make} -f conftest.make 2>/dev/null` in
3943  *@@@%%%=?*=@@@%%%*)
3944    eval ac_cv_prog_make_${ac_make}_set=yes;;
3945  *)
3946    eval ac_cv_prog_make_${ac_make}_set=no;;
3947esac
3948rm -f conftest.make
3949fi
3950if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952$as_echo "yes" >&6; }
3953  SET_MAKE=
3954else
3955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
3957  SET_MAKE="MAKE=${MAKE-make}"
3958fi
3959
3960rm -rf .tst 2>/dev/null
3961mkdir .tst 2>/dev/null
3962if test -d .tst; then
3963  am__leading_dot=.
3964else
3965  am__leading_dot=_
3966fi
3967rmdir .tst 2>/dev/null
3968
3969DEPDIR="${am__leading_dot}deps"
3970
3971ac_config_commands="$ac_config_commands depfiles"
3972
3973
3974am_make=${MAKE-make}
3975cat > confinc << 'END'
3976am__doit:
3977	@echo this is the am__doit target
3978.PHONY: am__doit
3979END
3980# If we don't find an include directive, just comment out the code.
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3982$as_echo_n "checking for style of include used by $am_make... " >&6; }
3983am__include="#"
3984am__quote=
3985_am_result=none
3986# First try GNU make style include.
3987echo "include confinc" > confmf
3988# Ignore all kinds of additional output from `make'.
3989case `$am_make -s -f confmf 2> /dev/null` in #(
3990*the\ am__doit\ target*)
3991  am__include=include
3992  am__quote=
3993  _am_result=GNU
3994  ;;
3995esac
3996# Now try BSD make style include.
3997if test "$am__include" = "#"; then
3998   echo '.include "confinc"' > confmf
3999   case `$am_make -s -f confmf 2> /dev/null` in #(
4000   *the\ am__doit\ target*)
4001     am__include=.include
4002     am__quote="\""
4003     _am_result=BSD
4004     ;;
4005   esac
4006fi
4007
4008
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4010$as_echo "$_am_result" >&6; }
4011rm -f confinc confmf
4012
4013# Check whether --enable-dependency-tracking was given.
4014if test "${enable_dependency_tracking+set}" = set; then :
4015  enableval=$enable_dependency_tracking;
4016fi
4017
4018if test "x$enable_dependency_tracking" != xno; then
4019  am_depcomp="$ac_aux_dir/depcomp"
4020  AMDEPBACKSLASH='\'
4021fi
4022 if test "x$enable_dependency_tracking" != xno; then
4023  AMDEP_TRUE=
4024  AMDEP_FALSE='#'
4025else
4026  AMDEP_TRUE='#'
4027  AMDEP_FALSE=
4028fi
4029
4030
4031if test "`cd $srcdir && pwd`" != "`pwd`"; then
4032  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4033  # is not polluted with repeated "-I."
4034  am__isrc=' -I$(srcdir)'
4035  # test to see if srcdir already configured
4036  if test -f $srcdir/config.status; then
4037    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4038  fi
4039fi
4040
4041# test whether we have cygpath
4042if test -z "$CYGPATH_W"; then
4043  if (cygpath --version) >/dev/null 2>/dev/null; then
4044    CYGPATH_W='cygpath -w'
4045  else
4046    CYGPATH_W=echo
4047  fi
4048fi
4049
4050
4051# Define the identity of the package.
4052 PACKAGE=ld
4053 VERSION=${BFD_VERSION}
4054
4055
4056cat >>confdefs.h <<_ACEOF
4057#define PACKAGE "$PACKAGE"
4058_ACEOF
4059
4060
4061cat >>confdefs.h <<_ACEOF
4062#define VERSION "$VERSION"
4063_ACEOF
4064
4065# Some tools Automake needs.
4066
4067ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4068
4069
4070AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4071
4072
4073AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4074
4075
4076AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4077
4078
4079MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4080
4081# We need awk for the "check" target.  The system "awk" is bad on
4082# some platforms.
4083# Always define AMTAR for backward compatibility.
4084
4085AMTAR=${AMTAR-"${am_missing_run}tar"}
4086
4087am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4088
4089
4090
4091
4092depcc="$CC"   am_compiler_list=
4093
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4095$as_echo_n "checking dependency style of $depcc... " >&6; }
4096if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4097  $as_echo_n "(cached) " >&6
4098else
4099  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4100  # We make a subdir and do the tests there.  Otherwise we can end up
4101  # making bogus files that we don't know about and never remove.  For
4102  # instance it was reported that on HP-UX the gcc test will end up
4103  # making a dummy file named `D' -- because `-MD' means `put the output
4104  # in D'.
4105  mkdir conftest.dir
4106  # Copy depcomp to subdir because otherwise we won't find it if we're
4107  # using a relative directory.
4108  cp "$am_depcomp" conftest.dir
4109  cd conftest.dir
4110  # We will build objects and dependencies in a subdirectory because
4111  # it helps to detect inapplicable dependency modes.  For instance
4112  # both Tru64's cc and ICC support -MD to output dependencies as a
4113  # side effect of compilation, but ICC will put the dependencies in
4114  # the current directory while Tru64 will put them in the object
4115  # directory.
4116  mkdir sub
4117
4118  am_cv_CC_dependencies_compiler_type=none
4119  if test "$am_compiler_list" = ""; then
4120     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4121  fi
4122  am__universal=false
4123  case " $depcc " in #(
4124     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4125     esac
4126
4127  for depmode in $am_compiler_list; do
4128    # Setup a source with many dependencies, because some compilers
4129    # like to wrap large dependency lists on column 80 (with \), and
4130    # we should not choose a depcomp mode which is confused by this.
4131    #
4132    # We need to recreate these files for each test, as the compiler may
4133    # overwrite some of them when testing with obscure command lines.
4134    # This happens at least with the AIX C compiler.
4135    : > sub/conftest.c
4136    for i in 1 2 3 4 5 6; do
4137      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4138      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4139      # Solaris 8's {/usr,}/bin/sh.
4140      touch sub/conftst$i.h
4141    done
4142    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4143
4144    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4145    # mode.  It turns out that the SunPro C++ compiler does not properly
4146    # handle `-M -o', and we need to detect this.  Also, some Intel
4147    # versions had trouble with output in subdirs
4148    am__obj=sub/conftest.${OBJEXT-o}
4149    am__minus_obj="-o $am__obj"
4150    case $depmode in
4151    gcc)
4152      # This depmode causes a compiler race in universal mode.
4153      test "$am__universal" = false || continue
4154      ;;
4155    nosideeffect)
4156      # after this tag, mechanisms are not by side-effect, so they'll
4157      # only be used when explicitly requested
4158      if test "x$enable_dependency_tracking" = xyes; then
4159	continue
4160      else
4161	break
4162      fi
4163      ;;
4164    msvisualcpp | msvcmsys)
4165      # This compiler won't grok `-c -o', but also, the minuso test has
4166      # not run yet.  These depmodes are late enough in the game, and
4167      # so weak that their functioning should not be impacted.
4168      am__obj=conftest.${OBJEXT-o}
4169      am__minus_obj=
4170      ;;
4171    none) break ;;
4172    esac
4173    if depmode=$depmode \
4174       source=sub/conftest.c object=$am__obj \
4175       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4177         >/dev/null 2>conftest.err &&
4178       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4179       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4180       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4181       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4182      # icc doesn't choke on unknown options, it will just issue warnings
4183      # or remarks (even with -Werror).  So we grep stderr for any message
4184      # that says an option was ignored or not supported.
4185      # When given -MP, icc 7.0 and 7.1 complain thusly:
4186      #   icc: Command line warning: ignoring option '-M'; no argument required
4187      # The diagnosis changed in icc 8.0:
4188      #   icc: Command line remark: option '-MP' not supported
4189      if (grep 'ignoring option' conftest.err ||
4190          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4191        am_cv_CC_dependencies_compiler_type=$depmode
4192        break
4193      fi
4194    fi
4195  done
4196
4197  cd ..
4198  rm -rf conftest.dir
4199else
4200  am_cv_CC_dependencies_compiler_type=none
4201fi
4202
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4205$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4206CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4207
4208 if
4209  test "x$enable_dependency_tracking" != xno \
4210  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4211  am__fastdepCC_TRUE=
4212  am__fastdepCC_FALSE='#'
4213else
4214  am__fastdepCC_TRUE='#'
4215  am__fastdepCC_FALSE=
4216fi
4217
4218
4219
4220
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4222$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4223    # Check whether --enable-maintainer-mode was given.
4224if test "${enable_maintainer_mode+set}" = set; then :
4225  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4226else
4227  USE_MAINTAINER_MODE=no
4228fi
4229
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4231$as_echo "$USE_MAINTAINER_MODE" >&6; }
4232   if test $USE_MAINTAINER_MODE = yes; then
4233  MAINTAINER_MODE_TRUE=
4234  MAINTAINER_MODE_FALSE='#'
4235else
4236  MAINTAINER_MODE_TRUE='#'
4237  MAINTAINER_MODE_FALSE=
4238fi
4239
4240  MAINT=$MAINTAINER_MODE_TRUE
4241
4242
4243
4244
4245# Check whether --with-lib-path was given.
4246if test "${with_lib_path+set}" = set; then :
4247  withval=$with_lib_path; LIB_PATH=$withval
4248fi
4249
4250# Check whether --enable-targets was given.
4251if test "${enable_targets+set}" = set; then :
4252  enableval=$enable_targets; case "${enableval}" in
4253  yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4254            ;;
4255  no)       enable_targets= ;;
4256  *)        enable_targets=$enableval ;;
4257esac
4258fi
4259# Check whether --enable-64-bit-bfd was given.
4260if test "${enable_64_bit_bfd+set}" = set; then :
4261  enableval=$enable_64_bit_bfd; case "${enableval}" in
4262  yes)  want64=true  ;;
4263  no)   want64=false ;;
4264  *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4265esac
4266else
4267  want64=false
4268fi
4269
4270
4271# Check whether --with-sysroot was given.
4272if test "${with_sysroot+set}" = set; then :
4273  withval=$with_sysroot;
4274 case ${with_sysroot} in
4275 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4276 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4277 esac
4278
4279 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4280 use_sysroot=yes
4281
4282 if test "x$prefix" = xNONE; then
4283  test_prefix=/usr/local
4284 else
4285  test_prefix=$prefix
4286 fi
4287 if test "x$exec_prefix" = xNONE; then
4288  test_exec_prefix=$test_prefix
4289 else
4290  test_exec_prefix=$exec_prefix
4291 fi
4292 case ${TARGET_SYSTEM_ROOT} in
4293 "${test_prefix}"|"${test_prefix}/"*|\
4294 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4295 '${prefix}'|'${prefix}/'*|\
4296 '${exec_prefix}'|'${exec_prefix}/'*)
4297   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4298   TARGET_SYSTEM_ROOT_DEFINE="$t"
4299   ;;
4300 esac
4301
4302else
4303
4304 use_sysroot=no
4305 TARGET_SYSTEM_ROOT=
4306 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4307
4308fi
4309
4310
4311
4312
4313
4314# Check whether --enable-gold was given.
4315if test "${enable_gold+set}" = set; then :
4316  enableval=$enable_gold; case "${enableval}" in
4317 default)
4318   install_as_default=no
4319   installed_linker=ld.bfd
4320   ;;
4321 yes|no)
4322   install_as_default=yes
4323   installed_linker=ld.bfd
4324   ;;
4325 *)
4326   as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4327   ;;
4328 esac
4329else
4330  install_as_default=yes
4331 installed_linker=ld.bfd
4332fi
4333
4334
4335
4336
4337# Check whether --enable-got was given.
4338if test "${enable_got+set}" = set; then :
4339  enableval=$enable_got; case "${enableval}" in
4340  target | single | negative | multigot)  got_handling=$enableval ;;
4341  *)  as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4342esac
4343else
4344  got_handling=target
4345fi
4346
4347
4348case "${got_handling}" in
4349  target)
4350
4351$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4352 ;;
4353  single)
4354
4355$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4356 ;;
4357  negative)
4358
4359$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4360 ;;
4361  multigot)
4362
4363$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4364 ;;
4365  *)  as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4366esac
4367
4368ac_ext=c
4369ac_cpp='$CPP $CPPFLAGS'
4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4374$as_echo_n "checking how to run the C preprocessor... " >&6; }
4375# On Suns, sometimes $CPP names a directory.
4376if test -n "$CPP" && test -d "$CPP"; then
4377  CPP=
4378fi
4379if test -z "$CPP"; then
4380  if test "${ac_cv_prog_CPP+set}" = set; then :
4381  $as_echo_n "(cached) " >&6
4382else
4383      # Double quotes because CPP needs to be expanded
4384    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4385    do
4386      ac_preproc_ok=false
4387for ac_c_preproc_warn_flag in '' yes
4388do
4389  # Use a header file that comes with gcc, so configuring glibc
4390  # with a fresh cross-compiler works.
4391  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392  # <limits.h> exists even on freestanding compilers.
4393  # On the NeXT, cc -E runs the code through the compiler's parser,
4394  # not just through cpp. "Syntax error" is here to catch this case.
4395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h.  */
4397#ifdef __STDC__
4398# include <limits.h>
4399#else
4400# include <assert.h>
4401#endif
4402		     Syntax error
4403_ACEOF
4404if ac_fn_c_try_cpp "$LINENO"; then :
4405
4406else
4407  # Broken: fails on valid input.
4408continue
4409fi
4410rm -f conftest.err conftest.$ac_ext
4411
4412  # OK, works on sane cases.  Now check whether nonexistent headers
4413  # can be detected and how.
4414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415/* end confdefs.h.  */
4416#include <ac_nonexistent.h>
4417_ACEOF
4418if ac_fn_c_try_cpp "$LINENO"; then :
4419  # Broken: success on invalid input.
4420continue
4421else
4422  # Passes both tests.
4423ac_preproc_ok=:
4424break
4425fi
4426rm -f conftest.err conftest.$ac_ext
4427
4428done
4429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430rm -f conftest.err conftest.$ac_ext
4431if $ac_preproc_ok; then :
4432  break
4433fi
4434
4435    done
4436    ac_cv_prog_CPP=$CPP
4437
4438fi
4439  CPP=$ac_cv_prog_CPP
4440else
4441  ac_cv_prog_CPP=$CPP
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4444$as_echo "$CPP" >&6; }
4445ac_preproc_ok=false
4446for ac_c_preproc_warn_flag in '' yes
4447do
4448  # Use a header file that comes with gcc, so configuring glibc
4449  # with a fresh cross-compiler works.
4450  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451  # <limits.h> exists even on freestanding compilers.
4452  # On the NeXT, cc -E runs the code through the compiler's parser,
4453  # not just through cpp. "Syntax error" is here to catch this case.
4454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h.  */
4456#ifdef __STDC__
4457# include <limits.h>
4458#else
4459# include <assert.h>
4460#endif
4461		     Syntax error
4462_ACEOF
4463if ac_fn_c_try_cpp "$LINENO"; then :
4464
4465else
4466  # Broken: fails on valid input.
4467continue
4468fi
4469rm -f conftest.err conftest.$ac_ext
4470
4471  # OK, works on sane cases.  Now check whether nonexistent headers
4472  # can be detected and how.
4473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h.  */
4475#include <ac_nonexistent.h>
4476_ACEOF
4477if ac_fn_c_try_cpp "$LINENO"; then :
4478  # Broken: success on invalid input.
4479continue
4480else
4481  # Passes both tests.
4482ac_preproc_ok=:
4483break
4484fi
4485rm -f conftest.err conftest.$ac_ext
4486
4487done
4488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489rm -f conftest.err conftest.$ac_ext
4490if $ac_preproc_ok; then :
4491
4492else
4493  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495as_fn_error "C preprocessor \"$CPP\" fails sanity check
4496See \`config.log' for more details." "$LINENO" 5; }
4497fi
4498
4499ac_ext=c
4500ac_cpp='$CPP $CPPFLAGS'
4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4507$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4508if test "${ac_cv_path_GREP+set}" = set; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  if test -z "$GREP"; then
4512  ac_path_GREP_found=false
4513  # Loop through the user's path and test for each of PROGNAME-LIST
4514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4516do
4517  IFS=$as_save_IFS
4518  test -z "$as_dir" && as_dir=.
4519    for ac_prog in grep ggrep; do
4520    for ac_exec_ext in '' $ac_executable_extensions; do
4521      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4522      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4523# Check for GNU ac_path_GREP and select it if it is found.
4524  # Check for GNU $ac_path_GREP
4525case `"$ac_path_GREP" --version 2>&1` in
4526*GNU*)
4527  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4528*)
4529  ac_count=0
4530  $as_echo_n 0123456789 >"conftest.in"
4531  while :
4532  do
4533    cat "conftest.in" "conftest.in" >"conftest.tmp"
4534    mv "conftest.tmp" "conftest.in"
4535    cp "conftest.in" "conftest.nl"
4536    $as_echo 'GREP' >> "conftest.nl"
4537    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539    as_fn_arith $ac_count + 1 && ac_count=$as_val
4540    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4541      # Best one so far, save it but keep looking for a better one
4542      ac_cv_path_GREP="$ac_path_GREP"
4543      ac_path_GREP_max=$ac_count
4544    fi
4545    # 10*(2^10) chars as input seems more than enough
4546    test $ac_count -gt 10 && break
4547  done
4548  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549esac
4550
4551      $ac_path_GREP_found && break 3
4552    done
4553  done
4554  done
4555IFS=$as_save_IFS
4556  if test -z "$ac_cv_path_GREP"; then
4557    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4558  fi
4559else
4560  ac_cv_path_GREP=$GREP
4561fi
4562
4563fi
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4565$as_echo "$ac_cv_path_GREP" >&6; }
4566 GREP="$ac_cv_path_GREP"
4567
4568
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4570$as_echo_n "checking for egrep... " >&6; }
4571if test "${ac_cv_path_EGREP+set}" = set; then :
4572  $as_echo_n "(cached) " >&6
4573else
4574  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4575   then ac_cv_path_EGREP="$GREP -E"
4576   else
4577     if test -z "$EGREP"; then
4578  ac_path_EGREP_found=false
4579  # Loop through the user's path and test for each of PROGNAME-LIST
4580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585    for ac_prog in egrep; do
4586    for ac_exec_ext in '' $ac_executable_extensions; do
4587      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4588      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4589# Check for GNU ac_path_EGREP and select it if it is found.
4590  # Check for GNU $ac_path_EGREP
4591case `"$ac_path_EGREP" --version 2>&1` in
4592*GNU*)
4593  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4594*)
4595  ac_count=0
4596  $as_echo_n 0123456789 >"conftest.in"
4597  while :
4598  do
4599    cat "conftest.in" "conftest.in" >"conftest.tmp"
4600    mv "conftest.tmp" "conftest.in"
4601    cp "conftest.in" "conftest.nl"
4602    $as_echo 'EGREP' >> "conftest.nl"
4603    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605    as_fn_arith $ac_count + 1 && ac_count=$as_val
4606    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4607      # Best one so far, save it but keep looking for a better one
4608      ac_cv_path_EGREP="$ac_path_EGREP"
4609      ac_path_EGREP_max=$ac_count
4610    fi
4611    # 10*(2^10) chars as input seems more than enough
4612    test $ac_count -gt 10 && break
4613  done
4614  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615esac
4616
4617      $ac_path_EGREP_found && break 3
4618    done
4619  done
4620  done
4621IFS=$as_save_IFS
4622  if test -z "$ac_cv_path_EGREP"; then
4623    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624  fi
4625else
4626  ac_cv_path_EGREP=$EGREP
4627fi
4628
4629   fi
4630fi
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4632$as_echo "$ac_cv_path_EGREP" >&6; }
4633 EGREP="$ac_cv_path_EGREP"
4634
4635
4636
4637GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639/* end confdefs.h.  */
4640__GNUC__
4641_ACEOF
4642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4644
4645else
4646  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4647fi
4648rm -f conftest*
4649
4650
4651# Check whether --enable-werror was given.
4652if test "${enable_werror+set}" = set; then :
4653  enableval=$enable_werror; case "${enableval}" in
4654     yes | y) ERROR_ON_WARNING="yes" ;;
4655     no | n)  ERROR_ON_WARNING="no" ;;
4656     *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4657   esac
4658fi
4659
4660
4661# Disable -Wformat by default when using gcc on mingw
4662case "${host}" in
4663  *-*-mingw32*)
4664    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4665      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4666    fi
4667    ;;
4668  *) ;;
4669esac
4670
4671# Enable -Werror by default when using gcc
4672if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4673    ERROR_ON_WARNING=yes
4674fi
4675
4676NO_WERROR=
4677if test "${ERROR_ON_WARNING}" = yes ; then
4678    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4679    NO_WERROR="-Wno-error"
4680fi
4681
4682if test "${GCC}" = yes ; then
4683  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4684fi
4685
4686# Check whether --enable-build-warnings was given.
4687if test "${enable_build_warnings+set}" = set; then :
4688  enableval=$enable_build_warnings; case "${enableval}" in
4689  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4690  no)	if test "${GCC}" = yes ; then
4691	  WARN_CFLAGS="-w"
4692	fi;;
4693  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4694        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4695  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4696        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4697  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4698esac
4699fi
4700
4701
4702if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4703  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4704fi
4705
4706
4707
4708
4709
4710ac_config_headers="$ac_config_headers config.h:config.in"
4711
4712
4713if test -z "$target" ; then
4714    as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4715fi
4716if test -z "$host" ; then
4717    as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4718fi
4719
4720# host-specific stuff:
4721
4722ac_ext=c
4723ac_cpp='$CPP $CPPFLAGS'
4724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727if test -n "$ac_tool_prefix"; then
4728  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4729set dummy ${ac_tool_prefix}gcc; ac_word=$2
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731$as_echo_n "checking for $ac_word... " >&6; }
4732if test "${ac_cv_prog_CC+set}" = set; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  if test -n "$CC"; then
4736  ac_cv_prog_CC="$CC" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741  IFS=$as_save_IFS
4742  test -z "$as_dir" && as_dir=.
4743    for ac_exec_ext in '' $ac_executable_extensions; do
4744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747    break 2
4748  fi
4749done
4750  done
4751IFS=$as_save_IFS
4752
4753fi
4754fi
4755CC=$ac_cv_prog_CC
4756if test -n "$CC"; then
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758$as_echo "$CC" >&6; }
4759else
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
4762fi
4763
4764
4765fi
4766if test -z "$ac_cv_prog_CC"; then
4767  ac_ct_CC=$CC
4768  # Extract the first word of "gcc", so it can be a program name with args.
4769set dummy gcc; ac_word=$2
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771$as_echo_n "checking for $ac_word... " >&6; }
4772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4773  $as_echo_n "(cached) " >&6
4774else
4775  if test -n "$ac_ct_CC"; then
4776  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781  IFS=$as_save_IFS
4782  test -z "$as_dir" && as_dir=.
4783    for ac_exec_ext in '' $ac_executable_extensions; do
4784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785    ac_cv_prog_ac_ct_CC="gcc"
4786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787    break 2
4788  fi
4789done
4790  done
4791IFS=$as_save_IFS
4792
4793fi
4794fi
4795ac_ct_CC=$ac_cv_prog_ac_ct_CC
4796if test -n "$ac_ct_CC"; then
4797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4798$as_echo "$ac_ct_CC" >&6; }
4799else
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
4802fi
4803
4804  if test "x$ac_ct_CC" = x; then
4805    CC=""
4806  else
4807    case $cross_compiling:$ac_tool_warned in
4808yes:)
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811ac_tool_warned=yes ;;
4812esac
4813    CC=$ac_ct_CC
4814  fi
4815else
4816  CC="$ac_cv_prog_CC"
4817fi
4818
4819if test -z "$CC"; then
4820          if test -n "$ac_tool_prefix"; then
4821    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4822set dummy ${ac_tool_prefix}cc; ac_word=$2
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824$as_echo_n "checking for $ac_word... " >&6; }
4825if test "${ac_cv_prog_CC+set}" = set; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  if test -n "$CC"; then
4829  ac_cv_prog_CC="$CC" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838    ac_cv_prog_CC="${ac_tool_prefix}cc"
4839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843  done
4844IFS=$as_save_IFS
4845
4846fi
4847fi
4848CC=$ac_cv_prog_CC
4849if test -n "$CC"; then
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851$as_echo "$CC" >&6; }
4852else
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856
4857
4858  fi
4859fi
4860if test -z "$CC"; then
4861  # Extract the first word of "cc", so it can be a program name with args.
4862set dummy cc; ac_word=$2
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864$as_echo_n "checking for $ac_word... " >&6; }
4865if test "${ac_cv_prog_CC+set}" = set; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -n "$CC"; then
4869  ac_cv_prog_CC="$CC" # Let the user override the test.
4870else
4871  ac_prog_rejected=no
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875  IFS=$as_save_IFS
4876  test -z "$as_dir" && as_dir=.
4877    for ac_exec_ext in '' $ac_executable_extensions; do
4878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4880       ac_prog_rejected=yes
4881       continue
4882     fi
4883    ac_cv_prog_CC="cc"
4884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888  done
4889IFS=$as_save_IFS
4890
4891if test $ac_prog_rejected = yes; then
4892  # We found a bogon in the path, so make sure we never use it.
4893  set dummy $ac_cv_prog_CC
4894  shift
4895  if test $# != 0; then
4896    # We chose a different compiler from the bogus one.
4897    # However, it has the same basename, so the bogon will be chosen
4898    # first if we set CC to just the basename; use the full file name.
4899    shift
4900    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4901  fi
4902fi
4903fi
4904fi
4905CC=$ac_cv_prog_CC
4906if test -n "$CC"; then
4907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4908$as_echo "$CC" >&6; }
4909else
4910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
4912fi
4913
4914
4915fi
4916if test -z "$CC"; then
4917  if test -n "$ac_tool_prefix"; then
4918  for ac_prog in cl.exe
4919  do
4920    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923$as_echo_n "checking for $ac_word... " >&6; }
4924if test "${ac_cv_prog_CC+set}" = set; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927  if test -n "$CC"; then
4928  ac_cv_prog_CC="$CC" # Let the user override the test.
4929else
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933  IFS=$as_save_IFS
4934  test -z "$as_dir" && as_dir=.
4935    for ac_exec_ext in '' $ac_executable_extensions; do
4936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939    break 2
4940  fi
4941done
4942  done
4943IFS=$as_save_IFS
4944
4945fi
4946fi
4947CC=$ac_cv_prog_CC
4948if test -n "$CC"; then
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4950$as_echo "$CC" >&6; }
4951else
4952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
4954fi
4955
4956
4957    test -n "$CC" && break
4958  done
4959fi
4960if test -z "$CC"; then
4961  ac_ct_CC=$CC
4962  for ac_prog in cl.exe
4963do
4964  # Extract the first word of "$ac_prog", so it can be a program name with args.
4965set dummy $ac_prog; ac_word=$2
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4969  $as_echo_n "(cached) " >&6
4970else
4971  if test -n "$ac_ct_CC"; then
4972  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977  IFS=$as_save_IFS
4978  test -z "$as_dir" && as_dir=.
4979    for ac_exec_ext in '' $ac_executable_extensions; do
4980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981    ac_cv_prog_ac_ct_CC="$ac_prog"
4982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983    break 2
4984  fi
4985done
4986  done
4987IFS=$as_save_IFS
4988
4989fi
4990fi
4991ac_ct_CC=$ac_cv_prog_ac_ct_CC
4992if test -n "$ac_ct_CC"; then
4993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4994$as_echo "$ac_ct_CC" >&6; }
4995else
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998fi
4999
5000
5001  test -n "$ac_ct_CC" && break
5002done
5003
5004  if test "x$ac_ct_CC" = x; then
5005    CC=""
5006  else
5007    case $cross_compiling:$ac_tool_warned in
5008yes:)
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011ac_tool_warned=yes ;;
5012esac
5013    CC=$ac_ct_CC
5014  fi
5015fi
5016
5017fi
5018
5019
5020test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022as_fn_error "no acceptable C compiler found in \$PATH
5023See \`config.log' for more details." "$LINENO" 5; }
5024
5025# Provide some information about the compiler.
5026$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5027set X $ac_compile
5028ac_compiler=$2
5029for ac_option in --version -v -V -qversion; do
5030  { { ac_try="$ac_compiler $ac_option >&5"
5031case "(($ac_try" in
5032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033  *) ac_try_echo=$ac_try;;
5034esac
5035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5036$as_echo "$ac_try_echo"; } >&5
5037  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5038  ac_status=$?
5039  if test -s conftest.err; then
5040    sed '10a\
5041... rest of stderr output deleted ...
5042         10q' conftest.err >conftest.er1
5043    cat conftest.er1 >&5
5044    rm -f conftest.er1 conftest.err
5045  fi
5046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5047  test $ac_status = 0; }
5048done
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5051$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5052if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5053  $as_echo_n "(cached) " >&6
5054else
5055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h.  */
5057
5058int
5059main ()
5060{
5061#ifndef __GNUC__
5062       choke me
5063#endif
5064
5065  ;
5066  return 0;
5067}
5068_ACEOF
5069if ac_fn_c_try_compile "$LINENO"; then :
5070  ac_compiler_gnu=yes
5071else
5072  ac_compiler_gnu=no
5073fi
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075ac_cv_c_compiler_gnu=$ac_compiler_gnu
5076
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5079$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5080if test $ac_compiler_gnu = yes; then
5081  GCC=yes
5082else
5083  GCC=
5084fi
5085ac_test_CFLAGS=${CFLAGS+set}
5086ac_save_CFLAGS=$CFLAGS
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5088$as_echo_n "checking whether $CC accepts -g... " >&6; }
5089if test "${ac_cv_prog_cc_g+set}" = set; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  ac_save_c_werror_flag=$ac_c_werror_flag
5093   ac_c_werror_flag=yes
5094   ac_cv_prog_cc_g=no
5095   CFLAGS="-g"
5096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h.  */
5098
5099int
5100main ()
5101{
5102
5103  ;
5104  return 0;
5105}
5106_ACEOF
5107if ac_fn_c_try_compile "$LINENO"; then :
5108  ac_cv_prog_cc_g=yes
5109else
5110  CFLAGS=""
5111      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113
5114int
5115main ()
5116{
5117
5118  ;
5119  return 0;
5120}
5121_ACEOF
5122if ac_fn_c_try_compile "$LINENO"; then :
5123
5124else
5125  ac_c_werror_flag=$ac_save_c_werror_flag
5126	 CFLAGS="-g"
5127	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129
5130int
5131main ()
5132{
5133
5134  ;
5135  return 0;
5136}
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"; then :
5139  ac_cv_prog_cc_g=yes
5140fi
5141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144fi
5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146   ac_c_werror_flag=$ac_save_c_werror_flag
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5149$as_echo "$ac_cv_prog_cc_g" >&6; }
5150if test "$ac_test_CFLAGS" = set; then
5151  CFLAGS=$ac_save_CFLAGS
5152elif test $ac_cv_prog_cc_g = yes; then
5153  if test "$GCC" = yes; then
5154    CFLAGS="-g -O2"
5155  else
5156    CFLAGS="-g"
5157  fi
5158else
5159  if test "$GCC" = yes; then
5160    CFLAGS="-O2"
5161  else
5162    CFLAGS=
5163  fi
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5166$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5167if test "${ac_cv_prog_cc_c89+set}" = set; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  ac_cv_prog_cc_c89=no
5171ac_save_CC=$CC
5172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174#include <stdarg.h>
5175#include <stdio.h>
5176#include <sys/types.h>
5177#include <sys/stat.h>
5178/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5179struct buf { int x; };
5180FILE * (*rcsopen) (struct buf *, struct stat *, int);
5181static char *e (p, i)
5182     char **p;
5183     int i;
5184{
5185  return p[i];
5186}
5187static char *f (char * (*g) (char **, int), char **p, ...)
5188{
5189  char *s;
5190  va_list v;
5191  va_start (v,p);
5192  s = g (p, va_arg (v,int));
5193  va_end (v);
5194  return s;
5195}
5196
5197/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5198   function prototypes and stuff, but not '\xHH' hex character constants.
5199   These don't provoke an error unfortunately, instead are silently treated
5200   as 'x'.  The following induces an error, until -std is added to get
5201   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5202   array size at least.  It's necessary to write '\x00'==0 to get something
5203   that's true only with -std.  */
5204int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5205
5206/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5207   inside strings and character constants.  */
5208#define FOO(x) 'x'
5209int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5210
5211int test (int i, double x);
5212struct s1 {int (*f) (int a);};
5213struct s2 {int (*f) (double a);};
5214int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5215int argc;
5216char **argv;
5217int
5218main ()
5219{
5220return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5221  ;
5222  return 0;
5223}
5224_ACEOF
5225for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5226	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5227do
5228  CC="$ac_save_CC $ac_arg"
5229  if ac_fn_c_try_compile "$LINENO"; then :
5230  ac_cv_prog_cc_c89=$ac_arg
5231fi
5232rm -f core conftest.err conftest.$ac_objext
5233  test "x$ac_cv_prog_cc_c89" != "xno" && break
5234done
5235rm -f conftest.$ac_ext
5236CC=$ac_save_CC
5237
5238fi
5239# AC_CACHE_VAL
5240case "x$ac_cv_prog_cc_c89" in
5241  x)
5242    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5243$as_echo "none needed" >&6; } ;;
5244  xno)
5245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5246$as_echo "unsupported" >&6; } ;;
5247  *)
5248    CC="$CC $ac_cv_prog_cc_c89"
5249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5250$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5251esac
5252if test "x$ac_cv_prog_cc_c89" != xno; then :
5253
5254fi
5255
5256ac_ext=c
5257ac_cpp='$CPP $CPPFLAGS'
5258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262ac_ext=cpp
5263ac_cpp='$CXXCPP $CPPFLAGS'
5264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5267if test -z "$CXX"; then
5268  if test -n "$CCC"; then
5269    CXX=$CCC
5270  else
5271    if test -n "$ac_tool_prefix"; then
5272  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5273  do
5274    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
5278if test "${ac_cv_prog_CXX+set}" = set; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  if test -n "$CXX"; then
5282  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289    for ac_exec_ext in '' $ac_executable_extensions; do
5290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296  done
5297IFS=$as_save_IFS
5298
5299fi
5300fi
5301CXX=$ac_cv_prog_CXX
5302if test -n "$CXX"; then
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5304$as_echo "$CXX" >&6; }
5305else
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309
5310
5311    test -n "$CXX" && break
5312  done
5313fi
5314if test -z "$CXX"; then
5315  ac_ct_CXX=$CXX
5316  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317do
5318  # Extract the first word of "$ac_prog", so it can be a program name with args.
5319set dummy $ac_prog; ac_word=$2
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  if test -n "$ac_ct_CXX"; then
5326  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333    for ac_exec_ext in '' $ac_executable_extensions; do
5334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335    ac_cv_prog_ac_ct_CXX="$ac_prog"
5336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340  done
5341IFS=$as_save_IFS
5342
5343fi
5344fi
5345ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5346if test -n "$ac_ct_CXX"; then
5347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5348$as_echo "$ac_ct_CXX" >&6; }
5349else
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
5352fi
5353
5354
5355  test -n "$ac_ct_CXX" && break
5356done
5357
5358  if test "x$ac_ct_CXX" = x; then
5359    CXX="g++"
5360  else
5361    case $cross_compiling:$ac_tool_warned in
5362yes:)
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5365ac_tool_warned=yes ;;
5366esac
5367    CXX=$ac_ct_CXX
5368  fi
5369fi
5370
5371  fi
5372fi
5373# Provide some information about the compiler.
5374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5375set X $ac_compile
5376ac_compiler=$2
5377for ac_option in --version -v -V -qversion; do
5378  { { ac_try="$ac_compiler $ac_option >&5"
5379case "(($ac_try" in
5380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381  *) ac_try_echo=$ac_try;;
5382esac
5383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5384$as_echo "$ac_try_echo"; } >&5
5385  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5386  ac_status=$?
5387  if test -s conftest.err; then
5388    sed '10a\
5389... rest of stderr output deleted ...
5390         10q' conftest.err >conftest.er1
5391    cat conftest.er1 >&5
5392    rm -f conftest.er1 conftest.err
5393  fi
5394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5395  test $ac_status = 0; }
5396done
5397
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5399$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5400if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404/* end confdefs.h.  */
5405
5406int
5407main ()
5408{
5409#ifndef __GNUC__
5410       choke me
5411#endif
5412
5413  ;
5414  return 0;
5415}
5416_ACEOF
5417if ac_fn_cxx_try_compile "$LINENO"; then :
5418  ac_compiler_gnu=yes
5419else
5420  ac_compiler_gnu=no
5421fi
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5424
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5427$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5428if test $ac_compiler_gnu = yes; then
5429  GXX=yes
5430else
5431  GXX=
5432fi
5433ac_test_CXXFLAGS=${CXXFLAGS+set}
5434ac_save_CXXFLAGS=$CXXFLAGS
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5436$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5437if test "${ac_cv_prog_cxx_g+set}" = set; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5441   ac_cxx_werror_flag=yes
5442   ac_cv_prog_cxx_g=no
5443   CXXFLAGS="-g"
5444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h.  */
5446
5447int
5448main ()
5449{
5450
5451  ;
5452  return 0;
5453}
5454_ACEOF
5455if ac_fn_cxx_try_compile "$LINENO"; then :
5456  ac_cv_prog_cxx_g=yes
5457else
5458  CXXFLAGS=""
5459      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461
5462int
5463main ()
5464{
5465
5466  ;
5467  return 0;
5468}
5469_ACEOF
5470if ac_fn_cxx_try_compile "$LINENO"; then :
5471
5472else
5473  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5474	 CXXFLAGS="-g"
5475	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477
5478int
5479main ()
5480{
5481
5482  ;
5483  return 0;
5484}
5485_ACEOF
5486if ac_fn_cxx_try_compile "$LINENO"; then :
5487  ac_cv_prog_cxx_g=yes
5488fi
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490fi
5491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5497$as_echo "$ac_cv_prog_cxx_g" >&6; }
5498if test "$ac_test_CXXFLAGS" = set; then
5499  CXXFLAGS=$ac_save_CXXFLAGS
5500elif test $ac_cv_prog_cxx_g = yes; then
5501  if test "$GXX" = yes; then
5502    CXXFLAGS="-g -O2"
5503  else
5504    CXXFLAGS="-g"
5505  fi
5506else
5507  if test "$GXX" = yes; then
5508    CXXFLAGS="-O2"
5509  else
5510    CXXFLAGS=
5511  fi
5512fi
5513ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518
5519depcc="$CXX"  am_compiler_list=
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5522$as_echo_n "checking dependency style of $depcc... " >&6; }
5523if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5527  # We make a subdir and do the tests there.  Otherwise we can end up
5528  # making bogus files that we don't know about and never remove.  For
5529  # instance it was reported that on HP-UX the gcc test will end up
5530  # making a dummy file named `D' -- because `-MD' means `put the output
5531  # in D'.
5532  mkdir conftest.dir
5533  # Copy depcomp to subdir because otherwise we won't find it if we're
5534  # using a relative directory.
5535  cp "$am_depcomp" conftest.dir
5536  cd conftest.dir
5537  # We will build objects and dependencies in a subdirectory because
5538  # it helps to detect inapplicable dependency modes.  For instance
5539  # both Tru64's cc and ICC support -MD to output dependencies as a
5540  # side effect of compilation, but ICC will put the dependencies in
5541  # the current directory while Tru64 will put them in the object
5542  # directory.
5543  mkdir sub
5544
5545  am_cv_CXX_dependencies_compiler_type=none
5546  if test "$am_compiler_list" = ""; then
5547     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5548  fi
5549  am__universal=false
5550  case " $depcc " in #(
5551     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5552     esac
5553
5554  for depmode in $am_compiler_list; do
5555    # Setup a source with many dependencies, because some compilers
5556    # like to wrap large dependency lists on column 80 (with \), and
5557    # we should not choose a depcomp mode which is confused by this.
5558    #
5559    # We need to recreate these files for each test, as the compiler may
5560    # overwrite some of them when testing with obscure command lines.
5561    # This happens at least with the AIX C compiler.
5562    : > sub/conftest.c
5563    for i in 1 2 3 4 5 6; do
5564      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5565      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5566      # Solaris 8's {/usr,}/bin/sh.
5567      touch sub/conftst$i.h
5568    done
5569    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5570
5571    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5572    # mode.  It turns out that the SunPro C++ compiler does not properly
5573    # handle `-M -o', and we need to detect this.  Also, some Intel
5574    # versions had trouble with output in subdirs
5575    am__obj=sub/conftest.${OBJEXT-o}
5576    am__minus_obj="-o $am__obj"
5577    case $depmode in
5578    gcc)
5579      # This depmode causes a compiler race in universal mode.
5580      test "$am__universal" = false || continue
5581      ;;
5582    nosideeffect)
5583      # after this tag, mechanisms are not by side-effect, so they'll
5584      # only be used when explicitly requested
5585      if test "x$enable_dependency_tracking" = xyes; then
5586	continue
5587      else
5588	break
5589      fi
5590      ;;
5591    msvisualcpp | msvcmsys)
5592      # This compiler won't grok `-c -o', but also, the minuso test has
5593      # not run yet.  These depmodes are late enough in the game, and
5594      # so weak that their functioning should not be impacted.
5595      am__obj=conftest.${OBJEXT-o}
5596      am__minus_obj=
5597      ;;
5598    none) break ;;
5599    esac
5600    if depmode=$depmode \
5601       source=sub/conftest.c object=$am__obj \
5602       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5603       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5604         >/dev/null 2>conftest.err &&
5605       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5606       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5607       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5608       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5609      # icc doesn't choke on unknown options, it will just issue warnings
5610      # or remarks (even with -Werror).  So we grep stderr for any message
5611      # that says an option was ignored or not supported.
5612      # When given -MP, icc 7.0 and 7.1 complain thusly:
5613      #   icc: Command line warning: ignoring option '-M'; no argument required
5614      # The diagnosis changed in icc 8.0:
5615      #   icc: Command line remark: option '-MP' not supported
5616      if (grep 'ignoring option' conftest.err ||
5617          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5618        am_cv_CXX_dependencies_compiler_type=$depmode
5619        break
5620      fi
5621    fi
5622  done
5623
5624  cd ..
5625  rm -rf conftest.dir
5626else
5627  am_cv_CXX_dependencies_compiler_type=none
5628fi
5629
5630fi
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5632$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5633CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5634
5635 if
5636  test "x$enable_dependency_tracking" != xno \
5637  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5638  am__fastdepCXX_TRUE=
5639  am__fastdepCXX_FALSE='#'
5640else
5641  am__fastdepCXX_TRUE='#'
5642  am__fastdepCXX_FALSE=
5643fi
5644
5645
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5647$as_echo_n "checking for ANSI C header files... " >&6; }
5648if test "${ac_cv_header_stdc+set}" = set; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653#include <stdlib.h>
5654#include <stdarg.h>
5655#include <string.h>
5656#include <float.h>
5657
5658int
5659main ()
5660{
5661
5662  ;
5663  return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_compile "$LINENO"; then :
5667  ac_cv_header_stdc=yes
5668else
5669  ac_cv_header_stdc=no
5670fi
5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672
5673if test $ac_cv_header_stdc = yes; then
5674  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676/* end confdefs.h.  */
5677#include <string.h>
5678
5679_ACEOF
5680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681  $EGREP "memchr" >/dev/null 2>&1; then :
5682
5683else
5684  ac_cv_header_stdc=no
5685fi
5686rm -f conftest*
5687
5688fi
5689
5690if test $ac_cv_header_stdc = yes; then
5691  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694#include <stdlib.h>
5695
5696_ACEOF
5697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698  $EGREP "free" >/dev/null 2>&1; then :
5699
5700else
5701  ac_cv_header_stdc=no
5702fi
5703rm -f conftest*
5704
5705fi
5706
5707if test $ac_cv_header_stdc = yes; then
5708  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5709  if test "$cross_compiling" = yes; then :
5710  :
5711else
5712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h.  */
5714#include <ctype.h>
5715#include <stdlib.h>
5716#if ((' ' & 0x0FF) == 0x020)
5717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5719#else
5720# define ISLOWER(c) \
5721		   (('a' <= (c) && (c) <= 'i') \
5722		     || ('j' <= (c) && (c) <= 'r') \
5723		     || ('s' <= (c) && (c) <= 'z'))
5724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5725#endif
5726
5727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5728int
5729main ()
5730{
5731  int i;
5732  for (i = 0; i < 256; i++)
5733    if (XOR (islower (i), ISLOWER (i))
5734	|| toupper (i) != TOUPPER (i))
5735      return 2;
5736  return 0;
5737}
5738_ACEOF
5739if ac_fn_c_try_run "$LINENO"; then :
5740
5741else
5742  ac_cv_header_stdc=no
5743fi
5744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5745  conftest.$ac_objext conftest.beam conftest.$ac_ext
5746fi
5747
5748fi
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5751$as_echo "$ac_cv_header_stdc" >&6; }
5752if test $ac_cv_header_stdc = yes; then
5753
5754$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5755
5756fi
5757
5758# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5759for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5760		  inttypes.h stdint.h unistd.h
5761do :
5762  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5764"
5765eval as_val=\$$as_ac_Header
5766   if test "x$as_val" = x""yes; then :
5767  cat >>confdefs.h <<_ACEOF
5768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5769_ACEOF
5770
5771fi
5772
5773done
5774
5775
5776
5777  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5778if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5779  MINIX=yes
5780else
5781  MINIX=
5782fi
5783
5784
5785  if test "$MINIX" = yes; then
5786
5787$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5788
5789
5790$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5791
5792
5793$as_echo "#define _MINIX 1" >>confdefs.h
5794
5795  fi
5796
5797
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5799$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5800if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h.  */
5805
5806#	  define __EXTENSIONS__ 1
5807	  $ac_includes_default
5808int
5809main ()
5810{
5811
5812  ;
5813  return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817  ac_cv_safe_to_define___extensions__=yes
5818else
5819  ac_cv_safe_to_define___extensions__=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5824$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5825  test $ac_cv_safe_to_define___extensions__ = yes &&
5826    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5827
5828  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5829
5830  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5831
5832  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5833
5834  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5835
5836
5837
5838
5839
5840# The tests for host and target for $enable_largefile require
5841# canonical names.
5842
5843
5844
5845# As the $enable_largefile decision depends on --enable-plugins we must set it
5846# even in directories otherwise not depending on the $plugins option.
5847
5848
5849# Check whether --enable-plugins was given.
5850if test "${enable_plugins+set}" = set; then :
5851  enableval=$enable_plugins; case "${enableval}" in
5852  yes | "") plugins=yes ;;
5853  no) plugins=no ;;
5854  *) plugins=yes ;;
5855 esac
5856else
5857  plugins=no
5858fi
5859
5860
5861
5862case "${host}" in
5863  sparc-*-solaris*|i[3-7]86-*-solaris*)
5864    # On native 32bit sparc and ia32 solaris, large-file and procfs support
5865    # are mutually exclusive; and without procfs support, the bfd/ elf module
5866    # cannot provide certain routines such as elfcore_write_prpsinfo
5867    # or elfcore_write_prstatus.  So unless the user explicitly requested
5868    # large-file support through the --enable-largefile switch, disable
5869    # large-file support in favor of procfs support.
5870    test "${target}" = "${host}" -a "x$plugins" = xno \
5871      && : ${enable_largefile="no"}
5872    ;;
5873esac
5874
5875# Check whether --enable-largefile was given.
5876if test "${enable_largefile+set}" = set; then :
5877  enableval=$enable_largefile;
5878fi
5879
5880if test "$enable_largefile" != no; then
5881
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5883$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5884if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  ac_cv_sys_largefile_CC=no
5888     if test "$GCC" != yes; then
5889       ac_save_CC=$CC
5890       while :; do
5891	 # IRIX 6.2 and later do not support large files by default,
5892	 # so use the C compiler's -n32 option if that helps.
5893	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h.  */
5895#include <sys/types.h>
5896 /* Check that off_t can represent 2**63 - 1 correctly.
5897    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5898    since some C++ compilers masquerading as C compilers
5899    incorrectly reject 9223372036854775807.  */
5900#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5901  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5902		       && LARGE_OFF_T % 2147483647 == 1)
5903		      ? 1 : -1];
5904int
5905main ()
5906{
5907
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912	 if ac_fn_c_try_compile "$LINENO"; then :
5913  break
5914fi
5915rm -f core conftest.err conftest.$ac_objext
5916	 CC="$CC -n32"
5917	 if ac_fn_c_try_compile "$LINENO"; then :
5918  ac_cv_sys_largefile_CC=' -n32'; break
5919fi
5920rm -f core conftest.err conftest.$ac_objext
5921	 break
5922       done
5923       CC=$ac_save_CC
5924       rm -f conftest.$ac_ext
5925    fi
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5928$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5929  if test "$ac_cv_sys_largefile_CC" != no; then
5930    CC=$CC$ac_cv_sys_largefile_CC
5931  fi
5932
5933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5934$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5935if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5936  $as_echo_n "(cached) " >&6
5937else
5938  while :; do
5939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h.  */
5941#include <sys/types.h>
5942 /* Check that off_t can represent 2**63 - 1 correctly.
5943    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5944    since some C++ compilers masquerading as C compilers
5945    incorrectly reject 9223372036854775807.  */
5946#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5947  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5948		       && LARGE_OFF_T % 2147483647 == 1)
5949		      ? 1 : -1];
5950int
5951main ()
5952{
5953
5954  ;
5955  return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"; then :
5959  ac_cv_sys_file_offset_bits=no; break
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964#define _FILE_OFFSET_BITS 64
5965#include <sys/types.h>
5966 /* Check that off_t can represent 2**63 - 1 correctly.
5967    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5968    since some C++ compilers masquerading as C compilers
5969    incorrectly reject 9223372036854775807.  */
5970#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5971  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5972		       && LARGE_OFF_T % 2147483647 == 1)
5973		      ? 1 : -1];
5974int
5975main ()
5976{
5977
5978  ;
5979  return 0;
5980}
5981_ACEOF
5982if ac_fn_c_try_compile "$LINENO"; then :
5983  ac_cv_sys_file_offset_bits=64; break
5984fi
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986  ac_cv_sys_file_offset_bits=unknown
5987  break
5988done
5989fi
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5991$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5992case $ac_cv_sys_file_offset_bits in #(
5993  no | unknown) ;;
5994  *)
5995cat >>confdefs.h <<_ACEOF
5996#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5997_ACEOF
5998;;
5999esac
6000rm -rf conftest*
6001  if test $ac_cv_sys_file_offset_bits = unknown; then
6002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6003$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6004if test "${ac_cv_sys_large_files+set}" = set; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  while :; do
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010#include <sys/types.h>
6011 /* Check that off_t can represent 2**63 - 1 correctly.
6012    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6013    since some C++ compilers masquerading as C compilers
6014    incorrectly reject 9223372036854775807.  */
6015#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6016  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6017		       && LARGE_OFF_T % 2147483647 == 1)
6018		      ? 1 : -1];
6019int
6020main ()
6021{
6022
6023  ;
6024  return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028  ac_cv_sys_large_files=no; break
6029fi
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h.  */
6033#define _LARGE_FILES 1
6034#include <sys/types.h>
6035 /* Check that off_t can represent 2**63 - 1 correctly.
6036    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6037    since some C++ compilers masquerading as C compilers
6038    incorrectly reject 9223372036854775807.  */
6039#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6040  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6041		       && LARGE_OFF_T % 2147483647 == 1)
6042		      ? 1 : -1];
6043int
6044main ()
6045{
6046
6047  ;
6048  return 0;
6049}
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052  ac_cv_sys_large_files=1; break
6053fi
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055  ac_cv_sys_large_files=unknown
6056  break
6057done
6058fi
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6060$as_echo "$ac_cv_sys_large_files" >&6; }
6061case $ac_cv_sys_large_files in #(
6062  no | unknown) ;;
6063  *)
6064cat >>confdefs.h <<_ACEOF
6065#define _LARGE_FILES $ac_cv_sys_large_files
6066_ACEOF
6067;;
6068esac
6069rm -rf conftest*
6070  fi
6071fi
6072
6073
6074
6075
6076case `pwd` in
6077  *\ * | *\	*)
6078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6079$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6080esac
6081
6082
6083
6084macro_version='2.2.7a'
6085macro_revision='1.3134'
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099ltmain="$ac_aux_dir/ltmain.sh"
6100
6101# Backslashify metacharacters that are still active within
6102# double-quoted strings.
6103sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6104
6105# Same as above, but do not quote variable references.
6106double_quote_subst='s/\(["`\\]\)/\\\1/g'
6107
6108# Sed substitution to delay expansion of an escaped shell variable in a
6109# double_quote_subst'ed string.
6110delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6111
6112# Sed substitution to delay expansion of an escaped single quote.
6113delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6114
6115# Sed substitution to avoid accidental globbing in evaled expressions
6116no_glob_subst='s/\*/\\\*/g'
6117
6118ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6121
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6123$as_echo_n "checking how to print strings... " >&6; }
6124# Test print first, because it will be a builtin if present.
6125if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6126   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6127  ECHO='print -r --'
6128elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6129  ECHO='printf %s\n'
6130else
6131  # Use this function as a fallback that always works.
6132  func_fallback_echo ()
6133  {
6134    eval 'cat <<_LTECHO_EOF
6135$1
6136_LTECHO_EOF'
6137  }
6138  ECHO='func_fallback_echo'
6139fi
6140
6141# func_echo_all arg...
6142# Invoke $ECHO with all args, space-separated.
6143func_echo_all ()
6144{
6145    $ECHO ""
6146}
6147
6148case "$ECHO" in
6149  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6150$as_echo "printf" >&6; } ;;
6151  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6152$as_echo "print -r" >&6; } ;;
6153  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6154$as_echo "cat" >&6; } ;;
6155esac
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6171$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6172if test "${ac_cv_path_SED+set}" = set; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6176     for ac_i in 1 2 3 4 5 6 7; do
6177       ac_script="$ac_script$as_nl$ac_script"
6178     done
6179     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6180     { ac_script=; unset ac_script;}
6181     if test -z "$SED"; then
6182  ac_path_SED_found=false
6183  # Loop through the user's path and test for each of PROGNAME-LIST
6184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189    for ac_prog in sed gsed; do
6190    for ac_exec_ext in '' $ac_executable_extensions; do
6191      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6192      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6193# Check for GNU ac_path_SED and select it if it is found.
6194  # Check for GNU $ac_path_SED
6195case `"$ac_path_SED" --version 2>&1` in
6196*GNU*)
6197  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6198*)
6199  ac_count=0
6200  $as_echo_n 0123456789 >"conftest.in"
6201  while :
6202  do
6203    cat "conftest.in" "conftest.in" >"conftest.tmp"
6204    mv "conftest.tmp" "conftest.in"
6205    cp "conftest.in" "conftest.nl"
6206    $as_echo '' >> "conftest.nl"
6207    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6208    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6209    as_fn_arith $ac_count + 1 && ac_count=$as_val
6210    if test $ac_count -gt ${ac_path_SED_max-0}; then
6211      # Best one so far, save it but keep looking for a better one
6212      ac_cv_path_SED="$ac_path_SED"
6213      ac_path_SED_max=$ac_count
6214    fi
6215    # 10*(2^10) chars as input seems more than enough
6216    test $ac_count -gt 10 && break
6217  done
6218  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6219esac
6220
6221      $ac_path_SED_found && break 3
6222    done
6223  done
6224  done
6225IFS=$as_save_IFS
6226  if test -z "$ac_cv_path_SED"; then
6227    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6228  fi
6229else
6230  ac_cv_path_SED=$SED
6231fi
6232
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6235$as_echo "$ac_cv_path_SED" >&6; }
6236 SED="$ac_cv_path_SED"
6237  rm -f conftest.sed
6238
6239test -z "$SED" && SED=sed
6240Xsed="$SED -e 1s/^X//"
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6253$as_echo_n "checking for fgrep... " >&6; }
6254if test "${ac_cv_path_FGREP+set}" = set; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6258   then ac_cv_path_FGREP="$GREP -F"
6259   else
6260     if test -z "$FGREP"; then
6261  ac_path_FGREP_found=false
6262  # Loop through the user's path and test for each of PROGNAME-LIST
6263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268    for ac_prog in fgrep; do
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6271      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6272# Check for GNU ac_path_FGREP and select it if it is found.
6273  # Check for GNU $ac_path_FGREP
6274case `"$ac_path_FGREP" --version 2>&1` in
6275*GNU*)
6276  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6277*)
6278  ac_count=0
6279  $as_echo_n 0123456789 >"conftest.in"
6280  while :
6281  do
6282    cat "conftest.in" "conftest.in" >"conftest.tmp"
6283    mv "conftest.tmp" "conftest.in"
6284    cp "conftest.in" "conftest.nl"
6285    $as_echo 'FGREP' >> "conftest.nl"
6286    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6287    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6288    as_fn_arith $ac_count + 1 && ac_count=$as_val
6289    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6290      # Best one so far, save it but keep looking for a better one
6291      ac_cv_path_FGREP="$ac_path_FGREP"
6292      ac_path_FGREP_max=$ac_count
6293    fi
6294    # 10*(2^10) chars as input seems more than enough
6295    test $ac_count -gt 10 && break
6296  done
6297  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6298esac
6299
6300      $ac_path_FGREP_found && break 3
6301    done
6302  done
6303  done
6304IFS=$as_save_IFS
6305  if test -z "$ac_cv_path_FGREP"; then
6306    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6307  fi
6308else
6309  ac_cv_path_FGREP=$FGREP
6310fi
6311
6312   fi
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6315$as_echo "$ac_cv_path_FGREP" >&6; }
6316 FGREP="$ac_cv_path_FGREP"
6317
6318
6319test -z "$GREP" && GREP=grep
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339# Check whether --with-gnu-ld was given.
6340if test "${with_gnu_ld+set}" = set; then :
6341  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6342else
6343  with_gnu_ld=no
6344fi
6345
6346ac_prog=ld
6347if test "$GCC" = yes; then
6348  # Check if gcc -print-prog-name=ld gives a path.
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6350$as_echo_n "checking for ld used by $CC... " >&6; }
6351  case $host in
6352  *-*-mingw*)
6353    # gcc leaves a trailing carriage return which upsets mingw
6354    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6355  *)
6356    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6357  esac
6358  case $ac_prog in
6359    # Accept absolute paths.
6360    [\\/]* | ?:[\\/]*)
6361      re_direlt='/[^/][^/]*/\.\./'
6362      # Canonicalize the pathname of ld
6363      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6364      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6365	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6366      done
6367      test -z "$LD" && LD="$ac_prog"
6368      ;;
6369  "")
6370    # If it fails, then pretend we aren't using GCC.
6371    ac_prog=ld
6372    ;;
6373  *)
6374    # If it is relative, then search for the first ld in PATH.
6375    with_gnu_ld=unknown
6376    ;;
6377  esac
6378elif test "$with_gnu_ld" = yes; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6380$as_echo_n "checking for GNU ld... " >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6383$as_echo_n "checking for non-GNU ld... " >&6; }
6384fi
6385if test "${lt_cv_path_LD+set}" = set; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  if test -z "$LD"; then
6389  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390  for ac_dir in $PATH; do
6391    IFS="$lt_save_ifs"
6392    test -z "$ac_dir" && ac_dir=.
6393    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6394      lt_cv_path_LD="$ac_dir/$ac_prog"
6395      # Check to see if the program is GNU ld.  I'd rather use --version,
6396      # but apparently some variants of GNU ld only accept -v.
6397      # Break only if it was the GNU/non-GNU ld that we prefer.
6398      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6399      *GNU* | *'with BFD'*)
6400	test "$with_gnu_ld" != no && break
6401	;;
6402      *)
6403	test "$with_gnu_ld" != yes && break
6404	;;
6405      esac
6406    fi
6407  done
6408  IFS="$lt_save_ifs"
6409else
6410  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6411fi
6412fi
6413
6414LD="$lt_cv_path_LD"
6415if test -n "$LD"; then
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6417$as_echo "$LD" >&6; }
6418else
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6424$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6425if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6429case `$LD -v 2>&1 </dev/null` in
6430*GNU* | *'with BFD'*)
6431  lt_cv_prog_gnu_ld=yes
6432  ;;
6433*)
6434  lt_cv_prog_gnu_ld=no
6435  ;;
6436esac
6437fi
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6439$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6440with_gnu_ld=$lt_cv_prog_gnu_ld
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6451$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6452if test "${lt_cv_path_NM+set}" = set; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  if test -n "$NM"; then
6456  # Let the user override the test.
6457  lt_cv_path_NM="$NM"
6458else
6459  lt_nm_to_check="${ac_tool_prefix}nm"
6460  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6461    lt_nm_to_check="$lt_nm_to_check nm"
6462  fi
6463  for lt_tmp_nm in $lt_nm_to_check; do
6464    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6465    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6466      IFS="$lt_save_ifs"
6467      test -z "$ac_dir" && ac_dir=.
6468      tmp_nm="$ac_dir/$lt_tmp_nm"
6469      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6470	# Check to see if the nm accepts a BSD-compat flag.
6471	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6472	#   nm: unknown option "B" ignored
6473	# Tru64's nm complains that /dev/null is an invalid object file
6474	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6475	*/dev/null* | *'Invalid file or object type'*)
6476	  lt_cv_path_NM="$tmp_nm -B"
6477	  break
6478	  ;;
6479	*)
6480	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6481	  */dev/null*)
6482	    lt_cv_path_NM="$tmp_nm -p"
6483	    break
6484	    ;;
6485	  *)
6486	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6487	    continue # so that we can try to find one that supports BSD flags
6488	    ;;
6489	  esac
6490	  ;;
6491	esac
6492      fi
6493    done
6494    IFS="$lt_save_ifs"
6495  done
6496  : ${lt_cv_path_NM=no}
6497fi
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6500$as_echo "$lt_cv_path_NM" >&6; }
6501if test "$lt_cv_path_NM" != "no"; then
6502  NM="$lt_cv_path_NM"
6503else
6504  # Didn't find any BSD compatible name lister, look for dumpbin.
6505  if test -n "$DUMPBIN"; then :
6506    # Let the user override the test.
6507  else
6508    if test -n "$ac_tool_prefix"; then
6509  for ac_prog in dumpbin "link -dump"
6510  do
6511    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6512set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6516  $as_echo_n "(cached) " >&6
6517else
6518  if test -n "$DUMPBIN"; then
6519  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524  IFS=$as_save_IFS
6525  test -z "$as_dir" && as_dir=.
6526    for ac_exec_ext in '' $ac_executable_extensions; do
6527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530    break 2
6531  fi
6532done
6533  done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538DUMPBIN=$ac_cv_prog_DUMPBIN
6539if test -n "$DUMPBIN"; then
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6541$as_echo "$DUMPBIN" >&6; }
6542else
6543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547
6548    test -n "$DUMPBIN" && break
6549  done
6550fi
6551if test -z "$DUMPBIN"; then
6552  ac_ct_DUMPBIN=$DUMPBIN
6553  for ac_prog in dumpbin "link -dump"
6554do
6555  # Extract the first word of "$ac_prog", so it can be a program name with args.
6556set dummy $ac_prog; ac_word=$2
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  if test -n "$ac_ct_DUMPBIN"; then
6563  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570    for ac_exec_ext in '' $ac_executable_extensions; do
6571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574    break 2
6575  fi
6576done
6577  done
6578IFS=$as_save_IFS
6579
6580fi
6581fi
6582ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6583if test -n "$ac_ct_DUMPBIN"; then
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6585$as_echo "$ac_ct_DUMPBIN" >&6; }
6586else
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591
6592  test -n "$ac_ct_DUMPBIN" && break
6593done
6594
6595  if test "x$ac_ct_DUMPBIN" = x; then
6596    DUMPBIN=":"
6597  else
6598    case $cross_compiling:$ac_tool_warned in
6599yes:)
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6602ac_tool_warned=yes ;;
6603esac
6604    DUMPBIN=$ac_ct_DUMPBIN
6605  fi
6606fi
6607
6608    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6609    *COFF*)
6610      DUMPBIN="$DUMPBIN -symbols"
6611      ;;
6612    *)
6613      DUMPBIN=:
6614      ;;
6615    esac
6616  fi
6617
6618  if test "$DUMPBIN" != ":"; then
6619    NM="$DUMPBIN"
6620  fi
6621fi
6622test -z "$NM" && NM=nm
6623
6624
6625
6626
6627
6628
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6630$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6631if test "${lt_cv_nm_interface+set}" = set; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  lt_cv_nm_interface="BSD nm"
6635  echo "int some_variable = 0;" > conftest.$ac_ext
6636  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6637  (eval "$ac_compile" 2>conftest.err)
6638  cat conftest.err >&5
6639  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6640  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6641  cat conftest.err >&5
6642  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6643  cat conftest.out >&5
6644  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6645    lt_cv_nm_interface="MS dumpbin"
6646  fi
6647  rm -f conftest*
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6650$as_echo "$lt_cv_nm_interface" >&6; }
6651
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6653$as_echo_n "checking whether ln -s works... " >&6; }
6654LN_S=$as_ln_s
6655if test "$LN_S" = "ln -s"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6657$as_echo "yes" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6660$as_echo "no, using $LN_S" >&6; }
6661fi
6662
6663# find the maximum length of command line arguments
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6665$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6666if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669    i=0
6670  teststring="ABCD"
6671
6672  case $build_os in
6673  msdosdjgpp*)
6674    # On DJGPP, this test can blow up pretty badly due to problems in libc
6675    # (any single argument exceeding 2000 bytes causes a buffer overrun
6676    # during glob expansion).  Even if it were fixed, the result of this
6677    # check would be larger than it should be.
6678    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6679    ;;
6680
6681  gnu*)
6682    # Under GNU Hurd, this test is not required because there is
6683    # no limit to the length of command line arguments.
6684    # Libtool will interpret -1 as no limit whatsoever
6685    lt_cv_sys_max_cmd_len=-1;
6686    ;;
6687
6688  cygwin* | mingw* | cegcc*)
6689    # On Win9x/ME, this test blows up -- it succeeds, but takes
6690    # about 5 minutes as the teststring grows exponentially.
6691    # Worse, since 9x/ME are not pre-emptively multitasking,
6692    # you end up with a "frozen" computer, even though with patience
6693    # the test eventually succeeds (with a max line length of 256k).
6694    # Instead, let's just punt: use the minimum linelength reported by
6695    # all of the supported platforms: 8192 (on NT/2K/XP).
6696    lt_cv_sys_max_cmd_len=8192;
6697    ;;
6698
6699  mint*)
6700    # On MiNT this can take a long time and run out of memory.
6701    lt_cv_sys_max_cmd_len=8192;
6702    ;;
6703
6704  amigaos*)
6705    # On AmigaOS with pdksh, this test takes hours, literally.
6706    # So we just punt and use a minimum line length of 8192.
6707    lt_cv_sys_max_cmd_len=8192;
6708    ;;
6709
6710  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6711    # This has been around since 386BSD, at least.  Likely further.
6712    if test -x /sbin/sysctl; then
6713      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6714    elif test -x /usr/sbin/sysctl; then
6715      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6716    else
6717      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6718    fi
6719    # And add a safety zone
6720    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6721    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6722    ;;
6723
6724  interix*)
6725    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6726    lt_cv_sys_max_cmd_len=196608
6727    ;;
6728
6729  osf*)
6730    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6731    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6732    # nice to cause kernel panics so lets avoid the loop below.
6733    # First set a reasonable default.
6734    lt_cv_sys_max_cmd_len=16384
6735    #
6736    if test -x /sbin/sysconfig; then
6737      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6738        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6739      esac
6740    fi
6741    ;;
6742  sco3.2v5*)
6743    lt_cv_sys_max_cmd_len=102400
6744    ;;
6745  sysv5* | sco5v6* | sysv4.2uw2*)
6746    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6747    if test -n "$kargmax"; then
6748      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6749    else
6750      lt_cv_sys_max_cmd_len=32768
6751    fi
6752    ;;
6753  *)
6754    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6755    if test -n "$lt_cv_sys_max_cmd_len"; then
6756      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6757      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6758    else
6759      # Make teststring a little bigger before we do anything with it.
6760      # a 1K string should be a reasonable start.
6761      for i in 1 2 3 4 5 6 7 8 ; do
6762        teststring=$teststring$teststring
6763      done
6764      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6765      # If test is not a shell built-in, we'll probably end up computing a
6766      # maximum length that is only half of the actual maximum length, but
6767      # we can't tell.
6768      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6769	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6770	      test $i != 17 # 1/2 MB should be enough
6771      do
6772        i=`expr $i + 1`
6773        teststring=$teststring$teststring
6774      done
6775      # Only check the string length outside the loop.
6776      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6777      teststring=
6778      # Add a significant safety factor because C++ compilers can tack on
6779      # massive amounts of additional arguments before passing them to the
6780      # linker.  It appears as though 1/2 is a usable value.
6781      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6782    fi
6783    ;;
6784  esac
6785
6786fi
6787
6788if test -n $lt_cv_sys_max_cmd_len ; then
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6790$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6791else
6792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6793$as_echo "none" >&6; }
6794fi
6795max_cmd_len=$lt_cv_sys_max_cmd_len
6796
6797
6798
6799
6800
6801
6802: ${CP="cp -f"}
6803: ${MV="mv -f"}
6804: ${RM="rm -f"}
6805
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6807$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6808# Try some XSI features
6809xsi_shell=no
6810( _lt_dummy="a/b/c"
6811  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6812      = c,a/b,, \
6813    && eval 'test $(( 1 + 1 )) -eq 2 \
6814    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6815  && xsi_shell=yes
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6817$as_echo "$xsi_shell" >&6; }
6818
6819
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6821$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6822lt_shell_append=no
6823( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6824    >/dev/null 2>&1 \
6825  && lt_shell_append=yes
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6827$as_echo "$lt_shell_append" >&6; }
6828
6829
6830if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6831  lt_unset=unset
6832else
6833  lt_unset=false
6834fi
6835
6836
6837
6838
6839
6840# test EBCDIC or ASCII
6841case `echo X|tr X '\101'` in
6842 A) # ASCII based system
6843    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6844  lt_SP2NL='tr \040 \012'
6845  lt_NL2SP='tr \015\012 \040\040'
6846  ;;
6847 *) # EBCDIC based system
6848  lt_SP2NL='tr \100 \n'
6849  lt_NL2SP='tr \r\n \100\100'
6850  ;;
6851esac
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6862$as_echo_n "checking for $LD option to reload object files... " >&6; }
6863if test "${lt_cv_ld_reload_flag+set}" = set; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  lt_cv_ld_reload_flag='-r'
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6869$as_echo "$lt_cv_ld_reload_flag" >&6; }
6870reload_flag=$lt_cv_ld_reload_flag
6871case $reload_flag in
6872"" | " "*) ;;
6873*) reload_flag=" $reload_flag" ;;
6874esac
6875reload_cmds='$LD$reload_flag -o $output$reload_objs'
6876case $host_os in
6877  darwin*)
6878    if test "$GCC" = yes; then
6879      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6880    else
6881      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6882    fi
6883    ;;
6884esac
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894if test -n "$ac_tool_prefix"; then
6895  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6896set dummy ${ac_tool_prefix}objdump; ac_word=$2
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  if test -n "$OBJDUMP"; then
6903  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908  IFS=$as_save_IFS
6909  test -z "$as_dir" && as_dir=.
6910    for ac_exec_ext in '' $ac_executable_extensions; do
6911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917  done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922OBJDUMP=$ac_cv_prog_OBJDUMP
6923if test -n "$OBJDUMP"; then
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6925$as_echo "$OBJDUMP" >&6; }
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931
6932fi
6933if test -z "$ac_cv_prog_OBJDUMP"; then
6934  ac_ct_OBJDUMP=$OBJDUMP
6935  # Extract the first word of "objdump", so it can be a program name with args.
6936set dummy objdump; ac_word=$2
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  if test -n "$ac_ct_OBJDUMP"; then
6943  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6963if test -n "$ac_ct_OBJDUMP"; then
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6965$as_echo "$ac_ct_OBJDUMP" >&6; }
6966else
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971  if test "x$ac_ct_OBJDUMP" = x; then
6972    OBJDUMP="false"
6973  else
6974    case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978ac_tool_warned=yes ;;
6979esac
6980    OBJDUMP=$ac_ct_OBJDUMP
6981  fi
6982else
6983  OBJDUMP="$ac_cv_prog_OBJDUMP"
6984fi
6985
6986test -z "$OBJDUMP" && OBJDUMP=objdump
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6997$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6998if test "${lt_cv_deplibs_check_method+set}" = set; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  lt_cv_file_magic_cmd='$MAGIC_CMD'
7002lt_cv_file_magic_test_file=
7003lt_cv_deplibs_check_method='unknown'
7004# Need to set the preceding variable on all platforms that support
7005# interlibrary dependencies.
7006# 'none' -- dependencies not supported.
7007# `unknown' -- same as none, but documents that we really don't know.
7008# 'pass_all' -- all dependencies passed with no checks.
7009# 'test_compile' -- check by making test program.
7010# 'file_magic [[regex]]' -- check by looking for files in library path
7011# which responds to the $file_magic_cmd with a given extended regex.
7012# If you have `file' or equivalent on your system and you're not sure
7013# whether `pass_all' will *always* work, you probably want this one.
7014
7015case $host_os in
7016aix[4-9]*)
7017  lt_cv_deplibs_check_method=pass_all
7018  ;;
7019
7020beos*)
7021  lt_cv_deplibs_check_method=pass_all
7022  ;;
7023
7024bsdi[45]*)
7025  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7026  lt_cv_file_magic_cmd='/usr/bin/file -L'
7027  lt_cv_file_magic_test_file=/shlib/libc.so
7028  ;;
7029
7030cygwin*)
7031  # func_win32_libid is a shell function defined in ltmain.sh
7032  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7033  lt_cv_file_magic_cmd='func_win32_libid'
7034  ;;
7035
7036mingw* | pw32*)
7037  # Base MSYS/MinGW do not provide the 'file' command needed by
7038  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7039  # unless we find 'file', for example because we are cross-compiling.
7040  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7041  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7042    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7043    lt_cv_file_magic_cmd='func_win32_libid'
7044  else
7045    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7046    lt_cv_file_magic_cmd='$OBJDUMP -f'
7047  fi
7048  ;;
7049
7050cegcc*)
7051  # use the weaker test based on 'objdump'. See mingw*.
7052  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7053  lt_cv_file_magic_cmd='$OBJDUMP -f'
7054  ;;
7055
7056darwin* | rhapsody*)
7057  lt_cv_deplibs_check_method=pass_all
7058  ;;
7059
7060freebsd* | dragonfly*)
7061  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7062    case $host_cpu in
7063    i*86 )
7064      # Not sure whether the presence of OpenBSD here was a mistake.
7065      # Let's accept both of them until this is cleared up.
7066      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7067      lt_cv_file_magic_cmd=/usr/bin/file
7068      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7069      ;;
7070    esac
7071  else
7072    lt_cv_deplibs_check_method=pass_all
7073  fi
7074  ;;
7075
7076gnu*)
7077  lt_cv_deplibs_check_method=pass_all
7078  ;;
7079
7080haiku*)
7081  lt_cv_deplibs_check_method=pass_all
7082  ;;
7083
7084hpux10.20* | hpux11*)
7085  lt_cv_file_magic_cmd=/usr/bin/file
7086  case $host_cpu in
7087  ia64*)
7088    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7089    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7090    ;;
7091  hppa*64*)
7092    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]'
7093    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7094    ;;
7095  *)
7096    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7097    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7098    ;;
7099  esac
7100  ;;
7101
7102interix[3-9]*)
7103  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7104  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7105  ;;
7106
7107irix5* | irix6* | nonstopux*)
7108  case $LD in
7109  *-32|*"-32 ") libmagic=32-bit;;
7110  *-n32|*"-n32 ") libmagic=N32;;
7111  *-64|*"-64 ") libmagic=64-bit;;
7112  *) libmagic=never-match;;
7113  esac
7114  lt_cv_deplibs_check_method=pass_all
7115  ;;
7116
7117# This must be Linux ELF.
7118linux* | k*bsd*-gnu | kopensolaris*-gnu)
7119  lt_cv_deplibs_check_method=pass_all
7120  ;;
7121
7122netbsd*)
7123  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7124    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7125  else
7126    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7127  fi
7128  ;;
7129
7130newos6*)
7131  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7132  lt_cv_file_magic_cmd=/usr/bin/file
7133  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7134  ;;
7135
7136*nto* | *qnx*)
7137  lt_cv_deplibs_check_method=pass_all
7138  ;;
7139
7140openbsd*)
7141  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7142    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7143  else
7144    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7145  fi
7146  ;;
7147
7148osf3* | osf4* | osf5*)
7149  lt_cv_deplibs_check_method=pass_all
7150  ;;
7151
7152rdos*)
7153  lt_cv_deplibs_check_method=pass_all
7154  ;;
7155
7156solaris*)
7157  lt_cv_deplibs_check_method=pass_all
7158  ;;
7159
7160sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7161  lt_cv_deplibs_check_method=pass_all
7162  ;;
7163
7164sysv4 | sysv4.3*)
7165  case $host_vendor in
7166  motorola)
7167    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]'
7168    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7169    ;;
7170  ncr)
7171    lt_cv_deplibs_check_method=pass_all
7172    ;;
7173  sequent)
7174    lt_cv_file_magic_cmd='/bin/file'
7175    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7176    ;;
7177  sni)
7178    lt_cv_file_magic_cmd='/bin/file'
7179    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7180    lt_cv_file_magic_test_file=/lib/libc.so
7181    ;;
7182  siemens)
7183    lt_cv_deplibs_check_method=pass_all
7184    ;;
7185  pc)
7186    lt_cv_deplibs_check_method=pass_all
7187    ;;
7188  esac
7189  ;;
7190
7191tpf*)
7192  lt_cv_deplibs_check_method=pass_all
7193  ;;
7194esac
7195
7196fi
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7198$as_echo "$lt_cv_deplibs_check_method" >&6; }
7199file_magic_cmd=$lt_cv_file_magic_cmd
7200deplibs_check_method=$lt_cv_deplibs_check_method
7201test -z "$deplibs_check_method" && deplibs_check_method=unknown
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214if test -n "$ac_tool_prefix"; then
7215  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7216set dummy ${ac_tool_prefix}ar; ac_word=$2
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
7219if test "${ac_cv_prog_AR+set}" = set; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  if test -n "$AR"; then
7223  ac_cv_prog_AR="$AR" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230    for ac_exec_ext in '' $ac_executable_extensions; do
7231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232    ac_cv_prog_AR="${ac_tool_prefix}ar"
7233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237  done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242AR=$ac_cv_prog_AR
7243if test -n "$AR"; then
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7245$as_echo "$AR" >&6; }
7246else
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248$as_echo "no" >&6; }
7249fi
7250
7251
7252fi
7253if test -z "$ac_cv_prog_AR"; then
7254  ac_ct_AR=$AR
7255  # Extract the first word of "ar", so it can be a program name with args.
7256set dummy ar; ac_word=$2
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
7259if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -n "$ac_ct_AR"; then
7263  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  test -z "$as_dir" && as_dir=.
7270    for ac_exec_ext in '' $ac_executable_extensions; do
7271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272    ac_cv_prog_ac_ct_AR="ar"
7273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277  done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282ac_ct_AR=$ac_cv_prog_ac_ct_AR
7283if test -n "$ac_ct_AR"; then
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7285$as_echo "$ac_ct_AR" >&6; }
7286else
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
7289fi
7290
7291  if test "x$ac_ct_AR" = x; then
7292    AR="false"
7293  else
7294    case $cross_compiling:$ac_tool_warned in
7295yes:)
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298ac_tool_warned=yes ;;
7299esac
7300    AR=$ac_ct_AR
7301  fi
7302else
7303  AR="$ac_cv_prog_AR"
7304fi
7305
7306test -z "$AR" && AR=ar
7307test -z "$AR_FLAGS" && AR_FLAGS=cru
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319if test -n "$ac_tool_prefix"; then
7320  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7321set dummy ${ac_tool_prefix}strip; ac_word=$2
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323$as_echo_n "checking for $ac_word... " >&6; }
7324if test "${ac_cv_prog_STRIP+set}" = set; then :
7325  $as_echo_n "(cached) " >&6
7326else
7327  if test -n "$STRIP"; then
7328  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7329else
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333  IFS=$as_save_IFS
7334  test -z "$as_dir" && as_dir=.
7335    for ac_exec_ext in '' $ac_executable_extensions; do
7336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339    break 2
7340  fi
7341done
7342  done
7343IFS=$as_save_IFS
7344
7345fi
7346fi
7347STRIP=$ac_cv_prog_STRIP
7348if test -n "$STRIP"; then
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7350$as_echo "$STRIP" >&6; }
7351else
7352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353$as_echo "no" >&6; }
7354fi
7355
7356
7357fi
7358if test -z "$ac_cv_prog_STRIP"; then
7359  ac_ct_STRIP=$STRIP
7360  # Extract the first word of "strip", so it can be a program name with args.
7361set dummy strip; ac_word=$2
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363$as_echo_n "checking for $ac_word... " >&6; }
7364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  if test -n "$ac_ct_STRIP"; then
7368  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7369else
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373  IFS=$as_save_IFS
7374  test -z "$as_dir" && as_dir=.
7375    for ac_exec_ext in '' $ac_executable_extensions; do
7376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377    ac_cv_prog_ac_ct_STRIP="strip"
7378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379    break 2
7380  fi
7381done
7382  done
7383IFS=$as_save_IFS
7384
7385fi
7386fi
7387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7388if test -n "$ac_ct_STRIP"; then
7389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7390$as_echo "$ac_ct_STRIP" >&6; }
7391else
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393$as_echo "no" >&6; }
7394fi
7395
7396  if test "x$ac_ct_STRIP" = x; then
7397    STRIP=":"
7398  else
7399    case $cross_compiling:$ac_tool_warned in
7400yes:)
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403ac_tool_warned=yes ;;
7404esac
7405    STRIP=$ac_ct_STRIP
7406  fi
7407else
7408  STRIP="$ac_cv_prog_STRIP"
7409fi
7410
7411test -z "$STRIP" && STRIP=:
7412
7413
7414
7415
7416
7417
7418if test -n "$ac_tool_prefix"; then
7419  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7420set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if test "${ac_cv_prog_RANLIB+set}" = set; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  if test -n "$RANLIB"; then
7427  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432  IFS=$as_save_IFS
7433  test -z "$as_dir" && as_dir=.
7434    for ac_exec_ext in '' $ac_executable_extensions; do
7435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438    break 2
7439  fi
7440done
7441  done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446RANLIB=$ac_cv_prog_RANLIB
7447if test -n "$RANLIB"; then
7448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7449$as_echo "$RANLIB" >&6; }
7450else
7451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
7453fi
7454
7455
7456fi
7457if test -z "$ac_cv_prog_RANLIB"; then
7458  ac_ct_RANLIB=$RANLIB
7459  # Extract the first word of "ranlib", so it can be a program name with args.
7460set dummy ranlib; ac_word=$2
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
7463if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7464  $as_echo_n "(cached) " >&6
7465else
7466  if test -n "$ac_ct_RANLIB"; then
7467  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472  IFS=$as_save_IFS
7473  test -z "$as_dir" && as_dir=.
7474    for ac_exec_ext in '' $ac_executable_extensions; do
7475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476    ac_cv_prog_ac_ct_RANLIB="ranlib"
7477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478    break 2
7479  fi
7480done
7481  done
7482IFS=$as_save_IFS
7483
7484fi
7485fi
7486ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7487if test -n "$ac_ct_RANLIB"; then
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7489$as_echo "$ac_ct_RANLIB" >&6; }
7490else
7491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
7493fi
7494
7495  if test "x$ac_ct_RANLIB" = x; then
7496    RANLIB=":"
7497  else
7498    case $cross_compiling:$ac_tool_warned in
7499yes:)
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502ac_tool_warned=yes ;;
7503esac
7504    RANLIB=$ac_ct_RANLIB
7505  fi
7506else
7507  RANLIB="$ac_cv_prog_RANLIB"
7508fi
7509
7510test -z "$RANLIB" && RANLIB=:
7511
7512
7513
7514
7515
7516
7517# Determine commands to create old-style static archives.
7518old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7519old_postinstall_cmds='chmod 644 $oldlib'
7520old_postuninstall_cmds=
7521
7522if test -n "$RANLIB"; then
7523  case $host_os in
7524  openbsd*)
7525    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7526    ;;
7527  *)
7528    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7529    ;;
7530  esac
7531  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7532fi
7533
7534case $host_os in
7535  darwin*)
7536    lock_old_archive_extraction=yes ;;
7537  *)
7538    lock_old_archive_extraction=no ;;
7539esac
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579# If no C compiler was specified, use CC.
7580LTCC=${LTCC-"$CC"}
7581
7582# If no C compiler flags were specified, use CFLAGS.
7583LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7584
7585# Allow CC to be a program name with arguments.
7586compiler=$CC
7587
7588
7589# Check for command to grab the raw symbol name followed by C symbol from nm.
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7591$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7592if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595
7596# These are sane defaults that work on at least a few old systems.
7597# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7598
7599# Character class describing NM global symbol codes.
7600symcode='[BCDEGRST]'
7601
7602# Regexp to match symbols that can be accessed directly from C.
7603sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7604
7605# Define system-specific variables.
7606case $host_os in
7607aix*)
7608  symcode='[BCDT]'
7609  ;;
7610cygwin* | mingw* | pw32* | cegcc*)
7611  symcode='[ABCDGISTW]'
7612  ;;
7613hpux*)
7614  if test "$host_cpu" = ia64; then
7615    symcode='[ABCDEGRST]'
7616  fi
7617  ;;
7618irix* | nonstopux*)
7619  symcode='[BCDEGRST]'
7620  ;;
7621osf*)
7622  symcode='[BCDEGQRST]'
7623  ;;
7624solaris*)
7625  symcode='[BDRT]'
7626  ;;
7627sco3.2v5*)
7628  symcode='[DT]'
7629  ;;
7630sysv4.2uw2*)
7631  symcode='[DT]'
7632  ;;
7633sysv5* | sco5v6* | unixware* | OpenUNIX*)
7634  symcode='[ABDT]'
7635  ;;
7636sysv4)
7637  symcode='[DFNSTU]'
7638  ;;
7639esac
7640
7641# If we're using GNU nm, then use its standard symbol codes.
7642case `$NM -V 2>&1` in
7643*GNU* | *'with BFD'*)
7644  symcode='[ABCDGIRSTW]' ;;
7645esac
7646
7647# Transform an extracted symbol line into a proper C declaration.
7648# Some systems (esp. on ia64) link data and code symbols differently,
7649# so use this general approach.
7650lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7651
7652# Transform an extracted symbol line into symbol name and symbol address
7653lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7654lt_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'"
7655
7656# Handle CRLF in mingw tool chain
7657opt_cr=
7658case $build_os in
7659mingw*)
7660  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7661  ;;
7662esac
7663
7664# Try without a prefix underscore, then with it.
7665for ac_symprfx in "" "_"; do
7666
7667  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7668  symxfrm="\\1 $ac_symprfx\\2 \\2"
7669
7670  # Write the raw and C identifiers.
7671  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7672    # Fake it for dumpbin and say T for any non-static function
7673    # and D for any global variable.
7674    # Also find C++ and __fastcall symbols from MSVC++,
7675    # which start with @ or ?.
7676    lt_cv_sys_global_symbol_pipe="$AWK '"\
7677"     {last_section=section; section=\$ 3};"\
7678"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7679"     \$ 0!~/External *\|/{next};"\
7680"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7681"     {if(hide[section]) next};"\
7682"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7683"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7684"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7685"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7686"     ' prfx=^$ac_symprfx"
7687  else
7688    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7689  fi
7690
7691  # Check to see that the pipe works correctly.
7692  pipe_works=no
7693
7694  rm -f conftest*
7695  cat > conftest.$ac_ext <<_LT_EOF
7696#ifdef __cplusplus
7697extern "C" {
7698#endif
7699char nm_test_var;
7700void nm_test_func(void);
7701void nm_test_func(void){}
7702#ifdef __cplusplus
7703}
7704#endif
7705int main(){nm_test_var='a';nm_test_func();return(0);}
7706_LT_EOF
7707
7708  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7709  (eval $ac_compile) 2>&5
7710  ac_status=$?
7711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712  test $ac_status = 0; }; then
7713    # Now try to grab the symbols.
7714    nlist=conftest.nm
7715    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7716  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7717  ac_status=$?
7718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719  test $ac_status = 0; } && test -s "$nlist"; then
7720      # Try sorting and uniquifying the output.
7721      if sort "$nlist" | uniq > "$nlist"T; then
7722	mv -f "$nlist"T "$nlist"
7723      else
7724	rm -f "$nlist"T
7725      fi
7726
7727      # Make sure that we snagged all the symbols we need.
7728      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7729	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7730	  cat <<_LT_EOF > conftest.$ac_ext
7731#ifdef __cplusplus
7732extern "C" {
7733#endif
7734
7735_LT_EOF
7736	  # Now generate the symbol file.
7737	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7738
7739	  cat <<_LT_EOF >> conftest.$ac_ext
7740
7741/* The mapping between symbol names and symbols.  */
7742const struct {
7743  const char *name;
7744  void       *address;
7745}
7746lt__PROGRAM__LTX_preloaded_symbols[] =
7747{
7748  { "@PROGRAM@", (void *) 0 },
7749_LT_EOF
7750	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7751	  cat <<\_LT_EOF >> conftest.$ac_ext
7752  {0, (void *) 0}
7753};
7754
7755/* This works around a problem in FreeBSD linker */
7756#ifdef FREEBSD_WORKAROUND
7757static const void *lt_preloaded_setup() {
7758  return lt__PROGRAM__LTX_preloaded_symbols;
7759}
7760#endif
7761
7762#ifdef __cplusplus
7763}
7764#endif
7765_LT_EOF
7766	  # Now try linking the two files.
7767	  mv conftest.$ac_objext conftstm.$ac_objext
7768	  lt_save_LIBS="$LIBS"
7769	  lt_save_CFLAGS="$CFLAGS"
7770	  LIBS="conftstm.$ac_objext"
7771	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7772	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7773  (eval $ac_link) 2>&5
7774  ac_status=$?
7775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7776  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7777	    pipe_works=yes
7778	  fi
7779	  LIBS="$lt_save_LIBS"
7780	  CFLAGS="$lt_save_CFLAGS"
7781	else
7782	  echo "cannot find nm_test_func in $nlist" >&5
7783	fi
7784      else
7785	echo "cannot find nm_test_var in $nlist" >&5
7786      fi
7787    else
7788      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7789    fi
7790  else
7791    echo "$progname: failed program was:" >&5
7792    cat conftest.$ac_ext >&5
7793  fi
7794  rm -rf conftest* conftst*
7795
7796  # Do not use the global_symbol_pipe unless it works.
7797  if test "$pipe_works" = yes; then
7798    break
7799  else
7800    lt_cv_sys_global_symbol_pipe=
7801  fi
7802done
7803
7804fi
7805
7806if test -z "$lt_cv_sys_global_symbol_pipe"; then
7807  lt_cv_sys_global_symbol_to_cdecl=
7808fi
7809if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7811$as_echo "failed" >&6; }
7812else
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7814$as_echo "ok" >&6; }
7815fi
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838# Check whether --enable-libtool-lock was given.
7839if test "${enable_libtool_lock+set}" = set; then :
7840  enableval=$enable_libtool_lock;
7841fi
7842
7843test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7844
7845# Some flags need to be propagated to the compiler or linker for good
7846# libtool support.
7847case $host in
7848ia64-*-hpux*)
7849  # Find out which ABI we are using.
7850  echo 'int i;' > conftest.$ac_ext
7851  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7852  (eval $ac_compile) 2>&5
7853  ac_status=$?
7854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855  test $ac_status = 0; }; then
7856    case `/usr/bin/file conftest.$ac_objext` in
7857      *ELF-32*)
7858	HPUX_IA64_MODE="32"
7859	;;
7860      *ELF-64*)
7861	HPUX_IA64_MODE="64"
7862	;;
7863    esac
7864  fi
7865  rm -rf conftest*
7866  ;;
7867*-*-irix6*)
7868  # Find out which ABI we are using.
7869  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7870  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7871  (eval $ac_compile) 2>&5
7872  ac_status=$?
7873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874  test $ac_status = 0; }; then
7875    if test "$lt_cv_prog_gnu_ld" = yes; then
7876      case `/usr/bin/file conftest.$ac_objext` in
7877	*32-bit*)
7878	  LD="${LD-ld} -melf32bsmip"
7879	  ;;
7880	*N32*)
7881	  LD="${LD-ld} -melf32bmipn32"
7882	  ;;
7883	*64-bit*)
7884	  LD="${LD-ld} -melf64bmip"
7885	;;
7886      esac
7887    else
7888      case `/usr/bin/file conftest.$ac_objext` in
7889	*32-bit*)
7890	  LD="${LD-ld} -32"
7891	  ;;
7892	*N32*)
7893	  LD="${LD-ld} -n32"
7894	  ;;
7895	*64-bit*)
7896	  LD="${LD-ld} -64"
7897	  ;;
7898      esac
7899    fi
7900  fi
7901  rm -rf conftest*
7902  ;;
7903
7904x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7905s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7906  # Find out which ABI we are using.
7907  echo 'int i;' > conftest.$ac_ext
7908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7909  (eval $ac_compile) 2>&5
7910  ac_status=$?
7911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7912  test $ac_status = 0; }; then
7913    case `/usr/bin/file conftest.o` in
7914      *32-bit*)
7915	case $host in
7916	  x86_64-*kfreebsd*-gnu)
7917	    LD="${LD-ld} -m elf_i386_fbsd"
7918	    ;;
7919	  x86_64-*linux*)
7920	    LD="${LD-ld} -m elf_i386"
7921	    ;;
7922	  ppc64-*linux*|powerpc64-*linux*)
7923	    LD="${LD-ld} -m elf32ppclinux"
7924	    ;;
7925	  s390x-*linux*)
7926	    LD="${LD-ld} -m elf_s390"
7927	    ;;
7928	  sparc64-*linux*)
7929	    LD="${LD-ld} -m elf32_sparc"
7930	    ;;
7931	esac
7932	;;
7933      *64-bit*)
7934	case $host in
7935	  x86_64-*kfreebsd*-gnu)
7936	    LD="${LD-ld} -m elf_x86_64_fbsd"
7937	    ;;
7938	  x86_64-*linux*)
7939	    LD="${LD-ld} -m elf_x86_64"
7940	    ;;
7941	  ppc*-*linux*|powerpc*-*linux*)
7942	    LD="${LD-ld} -m elf64ppc"
7943	    ;;
7944	  s390*-*linux*|s390*-*tpf*)
7945	    LD="${LD-ld} -m elf64_s390"
7946	    ;;
7947	  sparc*-*linux*)
7948	    LD="${LD-ld} -m elf64_sparc"
7949	    ;;
7950	esac
7951	;;
7952    esac
7953  fi
7954  rm -rf conftest*
7955  ;;
7956
7957*-*-sco3.2v5*)
7958  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7959  SAVE_CFLAGS="$CFLAGS"
7960  CFLAGS="$CFLAGS -belf"
7961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7962$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7963if test "${lt_cv_cc_needs_belf+set}" = set; then :
7964  $as_echo_n "(cached) " >&6
7965else
7966  ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974
7975int
7976main ()
7977{
7978
7979  ;
7980  return 0;
7981}
7982_ACEOF
7983if ac_fn_c_try_link "$LINENO"; then :
7984  lt_cv_cc_needs_belf=yes
7985else
7986  lt_cv_cc_needs_belf=no
7987fi
7988rm -f core conftest.err conftest.$ac_objext \
7989    conftest$ac_exeext conftest.$ac_ext
7990     ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996fi
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7998$as_echo "$lt_cv_cc_needs_belf" >&6; }
7999  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8000    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8001    CFLAGS="$SAVE_CFLAGS"
8002  fi
8003  ;;
8004sparc*-*solaris*)
8005  # Find out which ABI we are using.
8006  echo 'int i;' > conftest.$ac_ext
8007  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8008  (eval $ac_compile) 2>&5
8009  ac_status=$?
8010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011  test $ac_status = 0; }; then
8012    case `/usr/bin/file conftest.o` in
8013    *64-bit*)
8014      case $lt_cv_prog_gnu_ld in
8015      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8016      *)
8017	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8018	  LD="${LD-ld} -64"
8019	fi
8020	;;
8021      esac
8022      ;;
8023    esac
8024  fi
8025  rm -rf conftest*
8026  ;;
8027esac
8028
8029need_locks="$enable_libtool_lock"
8030
8031
8032  case $host_os in
8033    rhapsody* | darwin*)
8034    if test -n "$ac_tool_prefix"; then
8035  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8036set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038$as_echo_n "checking for $ac_word... " >&6; }
8039if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  if test -n "$DSYMUTIL"; then
8043  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8044else
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048  IFS=$as_save_IFS
8049  test -z "$as_dir" && as_dir=.
8050    for ac_exec_ext in '' $ac_executable_extensions; do
8051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054    break 2
8055  fi
8056done
8057  done
8058IFS=$as_save_IFS
8059
8060fi
8061fi
8062DSYMUTIL=$ac_cv_prog_DSYMUTIL
8063if test -n "$DSYMUTIL"; then
8064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8065$as_echo "$DSYMUTIL" >&6; }
8066else
8067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068$as_echo "no" >&6; }
8069fi
8070
8071
8072fi
8073if test -z "$ac_cv_prog_DSYMUTIL"; then
8074  ac_ct_DSYMUTIL=$DSYMUTIL
8075  # Extract the first word of "dsymutil", so it can be a program name with args.
8076set dummy dsymutil; ac_word=$2
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078$as_echo_n "checking for $ac_word... " >&6; }
8079if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  if test -n "$ac_ct_DSYMUTIL"; then
8083  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088  IFS=$as_save_IFS
8089  test -z "$as_dir" && as_dir=.
8090    for ac_exec_ext in '' $ac_executable_extensions; do
8091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094    break 2
8095  fi
8096done
8097  done
8098IFS=$as_save_IFS
8099
8100fi
8101fi
8102ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8103if test -n "$ac_ct_DSYMUTIL"; then
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8105$as_echo "$ac_ct_DSYMUTIL" >&6; }
8106else
8107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
8111  if test "x$ac_ct_DSYMUTIL" = x; then
8112    DSYMUTIL=":"
8113  else
8114    case $cross_compiling:$ac_tool_warned in
8115yes:)
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118ac_tool_warned=yes ;;
8119esac
8120    DSYMUTIL=$ac_ct_DSYMUTIL
8121  fi
8122else
8123  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8124fi
8125
8126    if test -n "$ac_tool_prefix"; then
8127  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8128set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8132  $as_echo_n "(cached) " >&6
8133else
8134  if test -n "$NMEDIT"; then
8135  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8136else
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140  IFS=$as_save_IFS
8141  test -z "$as_dir" && as_dir=.
8142    for ac_exec_ext in '' $ac_executable_extensions; do
8143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146    break 2
8147  fi
8148done
8149  done
8150IFS=$as_save_IFS
8151
8152fi
8153fi
8154NMEDIT=$ac_cv_prog_NMEDIT
8155if test -n "$NMEDIT"; then
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8157$as_echo "$NMEDIT" >&6; }
8158else
8159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
8161fi
8162
8163
8164fi
8165if test -z "$ac_cv_prog_NMEDIT"; then
8166  ac_ct_NMEDIT=$NMEDIT
8167  # Extract the first word of "nmedit", so it can be a program name with args.
8168set dummy nmedit; ac_word=$2
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
8171if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8172  $as_echo_n "(cached) " >&6
8173else
8174  if test -n "$ac_ct_NMEDIT"; then
8175  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8176else
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180  IFS=$as_save_IFS
8181  test -z "$as_dir" && as_dir=.
8182    for ac_exec_ext in '' $ac_executable_extensions; do
8183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186    break 2
8187  fi
8188done
8189  done
8190IFS=$as_save_IFS
8191
8192fi
8193fi
8194ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8195if test -n "$ac_ct_NMEDIT"; then
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8197$as_echo "$ac_ct_NMEDIT" >&6; }
8198else
8199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
8202
8203  if test "x$ac_ct_NMEDIT" = x; then
8204    NMEDIT=":"
8205  else
8206    case $cross_compiling:$ac_tool_warned in
8207yes:)
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210ac_tool_warned=yes ;;
8211esac
8212    NMEDIT=$ac_ct_NMEDIT
8213  fi
8214else
8215  NMEDIT="$ac_cv_prog_NMEDIT"
8216fi
8217
8218    if test -n "$ac_tool_prefix"; then
8219  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8220set dummy ${ac_tool_prefix}lipo; ac_word=$2
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
8223if test "${ac_cv_prog_LIPO+set}" = set; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  if test -n "$LIPO"; then
8227  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232  IFS=$as_save_IFS
8233  test -z "$as_dir" && as_dir=.
8234    for ac_exec_ext in '' $ac_executable_extensions; do
8235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238    break 2
8239  fi
8240done
8241  done
8242IFS=$as_save_IFS
8243
8244fi
8245fi
8246LIPO=$ac_cv_prog_LIPO
8247if test -n "$LIPO"; then
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8249$as_echo "$LIPO" >&6; }
8250else
8251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253fi
8254
8255
8256fi
8257if test -z "$ac_cv_prog_LIPO"; then
8258  ac_ct_LIPO=$LIPO
8259  # Extract the first word of "lipo", so it can be a program name with args.
8260set dummy lipo; ac_word=$2
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  if test -n "$ac_ct_LIPO"; then
8267  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  test -z "$as_dir" && as_dir=.
8274    for ac_exec_ext in '' $ac_executable_extensions; do
8275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276    ac_cv_prog_ac_ct_LIPO="lipo"
8277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281  done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8287if test -n "$ac_ct_LIPO"; then
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8289$as_echo "$ac_ct_LIPO" >&6; }
8290else
8291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
8293fi
8294
8295  if test "x$ac_ct_LIPO" = x; then
8296    LIPO=":"
8297  else
8298    case $cross_compiling:$ac_tool_warned in
8299yes:)
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8302ac_tool_warned=yes ;;
8303esac
8304    LIPO=$ac_ct_LIPO
8305  fi
8306else
8307  LIPO="$ac_cv_prog_LIPO"
8308fi
8309
8310    if test -n "$ac_tool_prefix"; then
8311  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8312set dummy ${ac_tool_prefix}otool; ac_word=$2
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314$as_echo_n "checking for $ac_word... " >&6; }
8315if test "${ac_cv_prog_OTOOL+set}" = set; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318  if test -n "$OTOOL"; then
8319  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324  IFS=$as_save_IFS
8325  test -z "$as_dir" && as_dir=.
8326    for ac_exec_ext in '' $ac_executable_extensions; do
8327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330    break 2
8331  fi
8332done
8333  done
8334IFS=$as_save_IFS
8335
8336fi
8337fi
8338OTOOL=$ac_cv_prog_OTOOL
8339if test -n "$OTOOL"; then
8340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8341$as_echo "$OTOOL" >&6; }
8342else
8343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
8345fi
8346
8347
8348fi
8349if test -z "$ac_cv_prog_OTOOL"; then
8350  ac_ct_OTOOL=$OTOOL
8351  # Extract the first word of "otool", so it can be a program name with args.
8352set dummy otool; ac_word=$2
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
8355if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  if test -n "$ac_ct_OTOOL"; then
8359  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364  IFS=$as_save_IFS
8365  test -z "$as_dir" && as_dir=.
8366    for ac_exec_ext in '' $ac_executable_extensions; do
8367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368    ac_cv_prog_ac_ct_OTOOL="otool"
8369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370    break 2
8371  fi
8372done
8373  done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8379if test -n "$ac_ct_OTOOL"; then
8380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8381$as_echo "$ac_ct_OTOOL" >&6; }
8382else
8383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
8385fi
8386
8387  if test "x$ac_ct_OTOOL" = x; then
8388    OTOOL=":"
8389  else
8390    case $cross_compiling:$ac_tool_warned in
8391yes:)
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8394ac_tool_warned=yes ;;
8395esac
8396    OTOOL=$ac_ct_OTOOL
8397  fi
8398else
8399  OTOOL="$ac_cv_prog_OTOOL"
8400fi
8401
8402    if test -n "$ac_tool_prefix"; then
8403  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8404set dummy ${ac_tool_prefix}otool64; ac_word=$2
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
8407if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  if test -n "$OTOOL64"; then
8411  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416  IFS=$as_save_IFS
8417  test -z "$as_dir" && as_dir=.
8418    for ac_exec_ext in '' $ac_executable_extensions; do
8419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422    break 2
8423  fi
8424done
8425  done
8426IFS=$as_save_IFS
8427
8428fi
8429fi
8430OTOOL64=$ac_cv_prog_OTOOL64
8431if test -n "$OTOOL64"; then
8432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8433$as_echo "$OTOOL64" >&6; }
8434else
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
8437fi
8438
8439
8440fi
8441if test -z "$ac_cv_prog_OTOOL64"; then
8442  ac_ct_OTOOL64=$OTOOL64
8443  # Extract the first word of "otool64", so it can be a program name with args.
8444set dummy otool64; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
8447if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  if test -n "$ac_ct_OTOOL64"; then
8451  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8452else
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456  IFS=$as_save_IFS
8457  test -z "$as_dir" && as_dir=.
8458    for ac_exec_ext in '' $ac_executable_extensions; do
8459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460    ac_cv_prog_ac_ct_OTOOL64="otool64"
8461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462    break 2
8463  fi
8464done
8465  done
8466IFS=$as_save_IFS
8467
8468fi
8469fi
8470ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8471if test -n "$ac_ct_OTOOL64"; then
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8473$as_echo "$ac_ct_OTOOL64" >&6; }
8474else
8475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479  if test "x$ac_ct_OTOOL64" = x; then
8480    OTOOL64=":"
8481  else
8482    case $cross_compiling:$ac_tool_warned in
8483yes:)
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8486ac_tool_warned=yes ;;
8487esac
8488    OTOOL64=$ac_ct_OTOOL64
8489  fi
8490else
8491  OTOOL64="$ac_cv_prog_OTOOL64"
8492fi
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8521$as_echo_n "checking for -single_module linker flag... " >&6; }
8522if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8523  $as_echo_n "(cached) " >&6
8524else
8525  lt_cv_apple_cc_single_mod=no
8526      if test -z "${LT_MULTI_MODULE}"; then
8527	# By default we will add the -single_module flag. You can override
8528	# by either setting the environment variable LT_MULTI_MODULE
8529	# non-empty at configure time, or by adding -multi_module to the
8530	# link flags.
8531	rm -rf libconftest.dylib*
8532	echo "int foo(void){return 1;}" > conftest.c
8533	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8534-dynamiclib -Wl,-single_module conftest.c" >&5
8535	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8536	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8537        _lt_result=$?
8538	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8539	  lt_cv_apple_cc_single_mod=yes
8540	else
8541	  cat conftest.err >&5
8542	fi
8543	rm -rf libconftest.dylib*
8544	rm -f conftest.*
8545      fi
8546fi
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8548$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8550$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8551if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8552  $as_echo_n "(cached) " >&6
8553else
8554  lt_cv_ld_exported_symbols_list=no
8555      save_LDFLAGS=$LDFLAGS
8556      echo "_main" > conftest.sym
8557      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8558      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560
8561int
8562main ()
8563{
8564
8565  ;
8566  return 0;
8567}
8568_ACEOF
8569if ac_fn_c_try_link "$LINENO"; then :
8570  lt_cv_ld_exported_symbols_list=yes
8571else
8572  lt_cv_ld_exported_symbols_list=no
8573fi
8574rm -f core conftest.err conftest.$ac_objext \
8575    conftest$ac_exeext conftest.$ac_ext
8576	LDFLAGS="$save_LDFLAGS"
8577
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8580$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8582$as_echo_n "checking for -force_load linker flag... " >&6; }
8583if test "${lt_cv_ld_force_load+set}" = set; then :
8584  $as_echo_n "(cached) " >&6
8585else
8586  lt_cv_ld_force_load=no
8587      cat > conftest.c << _LT_EOF
8588int forced_loaded() { return 2;}
8589_LT_EOF
8590      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8591      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8592      echo "$AR cru libconftest.a conftest.o" >&5
8593      $AR cru libconftest.a conftest.o 2>&5
8594      cat > conftest.c << _LT_EOF
8595int main() { return 0;}
8596_LT_EOF
8597      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8598      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8599      _lt_result=$?
8600      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8601	lt_cv_ld_force_load=yes
8602      else
8603	cat conftest.err >&5
8604      fi
8605        rm -f conftest.err libconftest.a conftest conftest.c
8606        rm -rf conftest.dSYM
8607
8608fi
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8610$as_echo "$lt_cv_ld_force_load" >&6; }
8611    case $host_os in
8612    rhapsody* | darwin1.[012])
8613      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8614    darwin1.*)
8615      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8616    darwin*) # darwin 5.x on
8617      # if running on 10.5 or later, the deployment target defaults
8618      # to the OS version, if on x86, and 10.4, the deployment
8619      # target defaults to 10.4. Don't you love it?
8620      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8621	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8622	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8623	10.[012]*)
8624	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8625	10.*)
8626	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8627      esac
8628    ;;
8629  esac
8630    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8631      _lt_dar_single_mod='$single_module'
8632    fi
8633    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8634      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8635    else
8636      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8637    fi
8638    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8639      _lt_dsymutil='~$DSYMUTIL $lib || :'
8640    else
8641      _lt_dsymutil=
8642    fi
8643    ;;
8644  esac
8645
8646for ac_header in dlfcn.h
8647do :
8648  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8649"
8650if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8651  cat >>confdefs.h <<_ACEOF
8652#define HAVE_DLFCN_H 1
8653_ACEOF
8654
8655fi
8656
8657done
8658
8659
8660
8661
8662
8663
8664# Set options
8665
8666
8667
8668        enable_dlopen=no
8669
8670
8671  enable_win32_dll=no
8672
8673
8674            # Check whether --enable-shared was given.
8675if test "${enable_shared+set}" = set; then :
8676  enableval=$enable_shared; p=${PACKAGE-default}
8677    case $enableval in
8678    yes) enable_shared=yes ;;
8679    no) enable_shared=no ;;
8680    *)
8681      enable_shared=no
8682      # Look at the argument we got.  We use all the common list separators.
8683      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8684      for pkg in $enableval; do
8685	IFS="$lt_save_ifs"
8686	if test "X$pkg" = "X$p"; then
8687	  enable_shared=yes
8688	fi
8689      done
8690      IFS="$lt_save_ifs"
8691      ;;
8692    esac
8693else
8694  enable_shared=yes
8695fi
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705  # Check whether --enable-static was given.
8706if test "${enable_static+set}" = set; then :
8707  enableval=$enable_static; p=${PACKAGE-default}
8708    case $enableval in
8709    yes) enable_static=yes ;;
8710    no) enable_static=no ;;
8711    *)
8712     enable_static=no
8713      # Look at the argument we got.  We use all the common list separators.
8714      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8715      for pkg in $enableval; do
8716	IFS="$lt_save_ifs"
8717	if test "X$pkg" = "X$p"; then
8718	  enable_static=yes
8719	fi
8720      done
8721      IFS="$lt_save_ifs"
8722      ;;
8723    esac
8724else
8725  enable_static=yes
8726fi
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737# Check whether --with-pic was given.
8738if test "${with_pic+set}" = set; then :
8739  withval=$with_pic; pic_mode="$withval"
8740else
8741  pic_mode=default
8742fi
8743
8744
8745test -z "$pic_mode" && pic_mode=default
8746
8747
8748
8749
8750
8751
8752
8753  # Check whether --enable-fast-install was given.
8754if test "${enable_fast_install+set}" = set; then :
8755  enableval=$enable_fast_install; p=${PACKAGE-default}
8756    case $enableval in
8757    yes) enable_fast_install=yes ;;
8758    no) enable_fast_install=no ;;
8759    *)
8760      enable_fast_install=no
8761      # Look at the argument we got.  We use all the common list separators.
8762      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8763      for pkg in $enableval; do
8764	IFS="$lt_save_ifs"
8765	if test "X$pkg" = "X$p"; then
8766	  enable_fast_install=yes
8767	fi
8768      done
8769      IFS="$lt_save_ifs"
8770      ;;
8771    esac
8772else
8773  enable_fast_install=yes
8774fi
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786# This can be used to rebuild libtool when needed
8787LIBTOOL_DEPS="$ltmain"
8788
8789# Always use our own libtool.
8790LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817test -z "$LN_S" && LN_S="ln -s"
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832if test -n "${ZSH_VERSION+set}" ; then
8833   setopt NO_GLOB_SUBST
8834fi
8835
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8837$as_echo_n "checking for objdir... " >&6; }
8838if test "${lt_cv_objdir+set}" = set; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  rm -f .libs 2>/dev/null
8842mkdir .libs 2>/dev/null
8843if test -d .libs; then
8844  lt_cv_objdir=.libs
8845else
8846  # MS-DOS does not allow filenames that begin with a dot.
8847  lt_cv_objdir=_libs
8848fi
8849rmdir .libs 2>/dev/null
8850fi
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8852$as_echo "$lt_cv_objdir" >&6; }
8853objdir=$lt_cv_objdir
8854
8855
8856
8857
8858
8859cat >>confdefs.h <<_ACEOF
8860#define LT_OBJDIR "$lt_cv_objdir/"
8861_ACEOF
8862
8863
8864
8865
8866case $host_os in
8867aix3*)
8868  # AIX sometimes has problems with the GCC collect2 program.  For some
8869  # reason, if we set the COLLECT_NAMES environment variable, the problems
8870  # vanish in a puff of smoke.
8871  if test "X${COLLECT_NAMES+set}" != Xset; then
8872    COLLECT_NAMES=
8873    export COLLECT_NAMES
8874  fi
8875  ;;
8876esac
8877
8878# Global variables:
8879ofile=libtool
8880can_build_shared=yes
8881
8882# All known linkers require a `.a' archive for static linking (except MSVC,
8883# which needs '.lib').
8884libext=a
8885
8886with_gnu_ld="$lt_cv_prog_gnu_ld"
8887
8888old_CC="$CC"
8889old_CFLAGS="$CFLAGS"
8890
8891# Set sane defaults for various variables
8892test -z "$CC" && CC=cc
8893test -z "$LTCC" && LTCC=$CC
8894test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8895test -z "$LD" && LD=ld
8896test -z "$ac_objext" && ac_objext=o
8897
8898for cc_temp in $compiler""; do
8899  case $cc_temp in
8900    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8901    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8902    \-*) ;;
8903    *) break;;
8904  esac
8905done
8906cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8907
8908
8909# Only perform the check for file, if the check method requires it
8910test -z "$MAGIC_CMD" && MAGIC_CMD=file
8911case $deplibs_check_method in
8912file_magic*)
8913  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8915$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8916if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919  case $MAGIC_CMD in
8920[\\/*] |  ?:[\\/]*)
8921  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8922  ;;
8923*)
8924  lt_save_MAGIC_CMD="$MAGIC_CMD"
8925  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8926  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8927  for ac_dir in $ac_dummy; do
8928    IFS="$lt_save_ifs"
8929    test -z "$ac_dir" && ac_dir=.
8930    if test -f $ac_dir/${ac_tool_prefix}file; then
8931      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8932      if test -n "$file_magic_test_file"; then
8933	case $deplibs_check_method in
8934	"file_magic "*)
8935	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8936	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8937	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8938	    $EGREP "$file_magic_regex" > /dev/null; then
8939	    :
8940	  else
8941	    cat <<_LT_EOF 1>&2
8942
8943*** Warning: the command libtool uses to detect shared libraries,
8944*** $file_magic_cmd, produces output that libtool cannot recognize.
8945*** The result is that libtool may fail to recognize shared libraries
8946*** as such.  This will affect the creation of libtool libraries that
8947*** depend on shared libraries, but programs linked with such libtool
8948*** libraries will work regardless of this problem.  Nevertheless, you
8949*** may want to report the problem to your system manager and/or to
8950*** bug-libtool@gnu.org
8951
8952_LT_EOF
8953	  fi ;;
8954	esac
8955      fi
8956      break
8957    fi
8958  done
8959  IFS="$lt_save_ifs"
8960  MAGIC_CMD="$lt_save_MAGIC_CMD"
8961  ;;
8962esac
8963fi
8964
8965MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8966if test -n "$MAGIC_CMD"; then
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8968$as_echo "$MAGIC_CMD" >&6; }
8969else
8970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971$as_echo "no" >&6; }
8972fi
8973
8974
8975
8976
8977
8978if test -z "$lt_cv_path_MAGIC_CMD"; then
8979  if test -n "$ac_tool_prefix"; then
8980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8981$as_echo_n "checking for file... " >&6; }
8982if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8983  $as_echo_n "(cached) " >&6
8984else
8985  case $MAGIC_CMD in
8986[\\/*] |  ?:[\\/]*)
8987  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8988  ;;
8989*)
8990  lt_save_MAGIC_CMD="$MAGIC_CMD"
8991  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8992  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8993  for ac_dir in $ac_dummy; do
8994    IFS="$lt_save_ifs"
8995    test -z "$ac_dir" && ac_dir=.
8996    if test -f $ac_dir/file; then
8997      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8998      if test -n "$file_magic_test_file"; then
8999	case $deplibs_check_method in
9000	"file_magic "*)
9001	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9002	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9003	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9004	    $EGREP "$file_magic_regex" > /dev/null; then
9005	    :
9006	  else
9007	    cat <<_LT_EOF 1>&2
9008
9009*** Warning: the command libtool uses to detect shared libraries,
9010*** $file_magic_cmd, produces output that libtool cannot recognize.
9011*** The result is that libtool may fail to recognize shared libraries
9012*** as such.  This will affect the creation of libtool libraries that
9013*** depend on shared libraries, but programs linked with such libtool
9014*** libraries will work regardless of this problem.  Nevertheless, you
9015*** may want to report the problem to your system manager and/or to
9016*** bug-libtool@gnu.org
9017
9018_LT_EOF
9019	  fi ;;
9020	esac
9021      fi
9022      break
9023    fi
9024  done
9025  IFS="$lt_save_ifs"
9026  MAGIC_CMD="$lt_save_MAGIC_CMD"
9027  ;;
9028esac
9029fi
9030
9031MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9032if test -n "$MAGIC_CMD"; then
9033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9034$as_echo "$MAGIC_CMD" >&6; }
9035else
9036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9038fi
9039
9040
9041  else
9042    MAGIC_CMD=:
9043  fi
9044fi
9045
9046  fi
9047  ;;
9048esac
9049
9050# Use C for the default configuration in the libtool script
9051
9052lt_save_CC="$CC"
9053ac_ext=c
9054ac_cpp='$CPP $CPPFLAGS'
9055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9057ac_compiler_gnu=$ac_cv_c_compiler_gnu
9058
9059
9060# Source file extension for C test sources.
9061ac_ext=c
9062
9063# Object file extension for compiled C test sources.
9064objext=o
9065objext=$objext
9066
9067# Code to be used in simple compile tests
9068lt_simple_compile_test_code="int some_variable = 0;"
9069
9070# Code to be used in simple link tests
9071lt_simple_link_test_code='int main(){return(0);}'
9072
9073
9074
9075
9076
9077
9078
9079# If no C compiler was specified, use CC.
9080LTCC=${LTCC-"$CC"}
9081
9082# If no C compiler flags were specified, use CFLAGS.
9083LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9084
9085# Allow CC to be a program name with arguments.
9086compiler=$CC
9087
9088# Save the default compiler, since it gets overwritten when the other
9089# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9090compiler_DEFAULT=$CC
9091
9092# save warnings/boilerplate of simple test code
9093ac_outfile=conftest.$ac_objext
9094echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9095eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9096_lt_compiler_boilerplate=`cat conftest.err`
9097$RM conftest*
9098
9099ac_outfile=conftest.$ac_objext
9100echo "$lt_simple_link_test_code" >conftest.$ac_ext
9101eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9102_lt_linker_boilerplate=`cat conftest.err`
9103$RM -r conftest*
9104
9105
9106## CAVEAT EMPTOR:
9107## There is no encapsulation within the following macros, do not change
9108## the running order or otherwise move them around unless you know exactly
9109## what you are doing...
9110if test -n "$compiler"; then
9111
9112lt_prog_compiler_no_builtin_flag=
9113
9114if test "$GCC" = yes; then
9115  case $cc_basename in
9116  nvcc*)
9117    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9118  *)
9119    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9120  esac
9121
9122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9123$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9124if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  lt_cv_prog_compiler_rtti_exceptions=no
9128   ac_outfile=conftest.$ac_objext
9129   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9130   lt_compiler_flag="-fno-rtti -fno-exceptions"
9131   # Insert the option either (1) after the last *FLAGS variable, or
9132   # (2) before a word containing "conftest.", or (3) at the end.
9133   # Note that $ac_compile itself does not contain backslashes and begins
9134   # with a dollar sign (not a hyphen), so the echo should work correctly.
9135   # The option is referenced via a variable to avoid confusing sed.
9136   lt_compile=`echo "$ac_compile" | $SED \
9137   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9138   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9139   -e 's:$: $lt_compiler_flag:'`
9140   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9141   (eval "$lt_compile" 2>conftest.err)
9142   ac_status=$?
9143   cat conftest.err >&5
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   if (exit $ac_status) && test -s "$ac_outfile"; then
9146     # The compiler can only warn and ignore the option if not recognized
9147     # So say no if there are warnings other than the usual output.
9148     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9149     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9150     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9151       lt_cv_prog_compiler_rtti_exceptions=yes
9152     fi
9153   fi
9154   $RM conftest*
9155
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9158$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9159
9160if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9161    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9162else
9163    :
9164fi
9165
9166fi
9167
9168
9169
9170
9171
9172
9173  lt_prog_compiler_wl=
9174lt_prog_compiler_pic=
9175lt_prog_compiler_static=
9176
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9178$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9179
9180  if test "$GCC" = yes; then
9181    lt_prog_compiler_wl='-Wl,'
9182    lt_prog_compiler_static='-static'
9183
9184    case $host_os in
9185      aix*)
9186      # All AIX code is PIC.
9187      if test "$host_cpu" = ia64; then
9188	# AIX 5 now supports IA64 processor
9189	lt_prog_compiler_static='-Bstatic'
9190      fi
9191      ;;
9192
9193    amigaos*)
9194      case $host_cpu in
9195      powerpc)
9196            # see comment about AmigaOS4 .so support
9197            lt_prog_compiler_pic='-fPIC'
9198        ;;
9199      m68k)
9200            # FIXME: we need at least 68020 code to build shared libraries, but
9201            # adding the `-m68020' flag to GCC prevents building anything better,
9202            # like `-m68040'.
9203            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9204        ;;
9205      esac
9206      ;;
9207
9208    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9209      # PIC is the default for these OSes.
9210      ;;
9211
9212    mingw* | cygwin* | pw32* | os2* | cegcc*)
9213      # This hack is so that the source file can tell whether it is being
9214      # built for inclusion in a dll (and should export symbols for example).
9215      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9216      # (--disable-auto-import) libraries
9217      lt_prog_compiler_pic='-DDLL_EXPORT'
9218      ;;
9219
9220    darwin* | rhapsody*)
9221      # PIC is the default on this platform
9222      # Common symbols not allowed in MH_DYLIB files
9223      lt_prog_compiler_pic='-fno-common'
9224      ;;
9225
9226    haiku*)
9227      # PIC is the default for Haiku.
9228      # The "-static" flag exists, but is broken.
9229      lt_prog_compiler_static=
9230      ;;
9231
9232    hpux*)
9233      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9234      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9235      # sets the default TLS model and affects inlining.
9236      case $host_cpu in
9237      hppa*64*)
9238	# +Z the default
9239	;;
9240      *)
9241	lt_prog_compiler_pic='-fPIC'
9242	;;
9243      esac
9244      ;;
9245
9246    interix[3-9]*)
9247      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9248      # Instead, we relocate shared libraries at runtime.
9249      ;;
9250
9251    msdosdjgpp*)
9252      # Just because we use GCC doesn't mean we suddenly get shared libraries
9253      # on systems that don't support them.
9254      lt_prog_compiler_can_build_shared=no
9255      enable_shared=no
9256      ;;
9257
9258    *nto* | *qnx*)
9259      # QNX uses GNU C++, but need to define -shared option too, otherwise
9260      # it will coredump.
9261      lt_prog_compiler_pic='-fPIC -shared'
9262      ;;
9263
9264    sysv4*MP*)
9265      if test -d /usr/nec; then
9266	lt_prog_compiler_pic=-Kconform_pic
9267      fi
9268      ;;
9269
9270    *)
9271      lt_prog_compiler_pic='-fPIC'
9272      ;;
9273    esac
9274
9275    case $cc_basename in
9276    nvcc*) # Cuda Compiler Driver 2.2
9277      lt_prog_compiler_wl='-Xlinker '
9278      lt_prog_compiler_pic='-Xcompiler -fPIC'
9279      ;;
9280    esac
9281  else
9282    # PORTME Check for flag to pass linker flags through the system compiler.
9283    case $host_os in
9284    aix*)
9285      lt_prog_compiler_wl='-Wl,'
9286      if test "$host_cpu" = ia64; then
9287	# AIX 5 now supports IA64 processor
9288	lt_prog_compiler_static='-Bstatic'
9289      else
9290	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9291      fi
9292      ;;
9293
9294    mingw* | cygwin* | pw32* | os2* | cegcc*)
9295      # This hack is so that the source file can tell whether it is being
9296      # built for inclusion in a dll (and should export symbols for example).
9297      lt_prog_compiler_pic='-DDLL_EXPORT'
9298      ;;
9299
9300    hpux9* | hpux10* | hpux11*)
9301      lt_prog_compiler_wl='-Wl,'
9302      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9303      # not for PA HP-UX.
9304      case $host_cpu in
9305      hppa*64*|ia64*)
9306	# +Z the default
9307	;;
9308      *)
9309	lt_prog_compiler_pic='+Z'
9310	;;
9311      esac
9312      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9313      lt_prog_compiler_static='${wl}-a ${wl}archive'
9314      ;;
9315
9316    irix5* | irix6* | nonstopux*)
9317      lt_prog_compiler_wl='-Wl,'
9318      # PIC (with -KPIC) is the default.
9319      lt_prog_compiler_static='-non_shared'
9320      ;;
9321
9322    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9323      case $cc_basename in
9324      # old Intel for x86_64 which still supported -KPIC.
9325      ecc*)
9326	lt_prog_compiler_wl='-Wl,'
9327	lt_prog_compiler_pic='-KPIC'
9328	lt_prog_compiler_static='-static'
9329        ;;
9330      # icc used to be incompatible with GCC.
9331      # ICC 10 doesn't accept -KPIC any more.
9332      icc* | ifort*)
9333	lt_prog_compiler_wl='-Wl,'
9334	lt_prog_compiler_pic='-fPIC'
9335	lt_prog_compiler_static='-static'
9336        ;;
9337      # Lahey Fortran 8.1.
9338      lf95*)
9339	lt_prog_compiler_wl='-Wl,'
9340	lt_prog_compiler_pic='--shared'
9341	lt_prog_compiler_static='--static'
9342	;;
9343      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9344        # Portland Group compilers (*not* the Pentium gcc compiler,
9345	# which looks to be a dead project)
9346	lt_prog_compiler_wl='-Wl,'
9347	lt_prog_compiler_pic='-fpic'
9348	lt_prog_compiler_static='-Bstatic'
9349        ;;
9350      ccc*)
9351        lt_prog_compiler_wl='-Wl,'
9352        # All Alpha code is PIC.
9353        lt_prog_compiler_static='-non_shared'
9354        ;;
9355      xl* | bgxl* | bgf* | mpixl*)
9356	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9357	lt_prog_compiler_wl='-Wl,'
9358	lt_prog_compiler_pic='-qpic'
9359	lt_prog_compiler_static='-qstaticlink'
9360	;;
9361      *)
9362	case `$CC -V 2>&1 | sed 5q` in
9363	*Sun\ F* | *Sun*Fortran*)
9364	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9365	  lt_prog_compiler_pic='-KPIC'
9366	  lt_prog_compiler_static='-Bstatic'
9367	  lt_prog_compiler_wl=''
9368	  ;;
9369	*Sun\ C*)
9370	  # Sun C 5.9
9371	  lt_prog_compiler_pic='-KPIC'
9372	  lt_prog_compiler_static='-Bstatic'
9373	  lt_prog_compiler_wl='-Wl,'
9374	  ;;
9375	esac
9376	;;
9377      esac
9378      ;;
9379
9380    newsos6)
9381      lt_prog_compiler_pic='-KPIC'
9382      lt_prog_compiler_static='-Bstatic'
9383      ;;
9384
9385    *nto* | *qnx*)
9386      # QNX uses GNU C++, but need to define -shared option too, otherwise
9387      # it will coredump.
9388      lt_prog_compiler_pic='-fPIC -shared'
9389      ;;
9390
9391    osf3* | osf4* | osf5*)
9392      lt_prog_compiler_wl='-Wl,'
9393      # All OSF/1 code is PIC.
9394      lt_prog_compiler_static='-non_shared'
9395      ;;
9396
9397    rdos*)
9398      lt_prog_compiler_static='-non_shared'
9399      ;;
9400
9401    solaris*)
9402      lt_prog_compiler_pic='-KPIC'
9403      lt_prog_compiler_static='-Bstatic'
9404      case $cc_basename in
9405      f77* | f90* | f95*)
9406	lt_prog_compiler_wl='-Qoption ld ';;
9407      *)
9408	lt_prog_compiler_wl='-Wl,';;
9409      esac
9410      ;;
9411
9412    sunos4*)
9413      lt_prog_compiler_wl='-Qoption ld '
9414      lt_prog_compiler_pic='-PIC'
9415      lt_prog_compiler_static='-Bstatic'
9416      ;;
9417
9418    sysv4 | sysv4.2uw2* | sysv4.3*)
9419      lt_prog_compiler_wl='-Wl,'
9420      lt_prog_compiler_pic='-KPIC'
9421      lt_prog_compiler_static='-Bstatic'
9422      ;;
9423
9424    sysv4*MP*)
9425      if test -d /usr/nec ;then
9426	lt_prog_compiler_pic='-Kconform_pic'
9427	lt_prog_compiler_static='-Bstatic'
9428      fi
9429      ;;
9430
9431    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9432      lt_prog_compiler_wl='-Wl,'
9433      lt_prog_compiler_pic='-KPIC'
9434      lt_prog_compiler_static='-Bstatic'
9435      ;;
9436
9437    unicos*)
9438      lt_prog_compiler_wl='-Wl,'
9439      lt_prog_compiler_can_build_shared=no
9440      ;;
9441
9442    uts4*)
9443      lt_prog_compiler_pic='-pic'
9444      lt_prog_compiler_static='-Bstatic'
9445      ;;
9446
9447    *)
9448      lt_prog_compiler_can_build_shared=no
9449      ;;
9450    esac
9451  fi
9452
9453case $host_os in
9454  # For platforms which do not support PIC, -DPIC is meaningless:
9455  *djgpp*)
9456    lt_prog_compiler_pic=
9457    ;;
9458  *)
9459    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9460    ;;
9461esac
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9463$as_echo "$lt_prog_compiler_pic" >&6; }
9464
9465
9466
9467
9468
9469
9470#
9471# Check to make sure the PIC flag actually works.
9472#
9473if test -n "$lt_prog_compiler_pic"; then
9474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9475$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9476if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9477  $as_echo_n "(cached) " >&6
9478else
9479  lt_cv_prog_compiler_pic_works=no
9480   ac_outfile=conftest.$ac_objext
9481   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9482   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9483   # Insert the option either (1) after the last *FLAGS variable, or
9484   # (2) before a word containing "conftest.", or (3) at the end.
9485   # Note that $ac_compile itself does not contain backslashes and begins
9486   # with a dollar sign (not a hyphen), so the echo should work correctly.
9487   # The option is referenced via a variable to avoid confusing sed.
9488   lt_compile=`echo "$ac_compile" | $SED \
9489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9491   -e 's:$: $lt_compiler_flag:'`
9492   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9493   (eval "$lt_compile" 2>conftest.err)
9494   ac_status=$?
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   if (exit $ac_status) && test -s "$ac_outfile"; then
9498     # The compiler can only warn and ignore the option if not recognized
9499     # So say no if there are warnings other than the usual output.
9500     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9501     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9502     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9503       lt_cv_prog_compiler_pic_works=yes
9504     fi
9505   fi
9506   $RM conftest*
9507
9508fi
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9510$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9511
9512if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9513    case $lt_prog_compiler_pic in
9514     "" | " "*) ;;
9515     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9516     esac
9517else
9518    lt_prog_compiler_pic=
9519     lt_prog_compiler_can_build_shared=no
9520fi
9521
9522fi
9523
9524
9525
9526
9527
9528
9529#
9530# Check to make sure the static flag actually works.
9531#
9532wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9534$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9535if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  lt_cv_prog_compiler_static_works=no
9539   save_LDFLAGS="$LDFLAGS"
9540   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9541   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9542   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9543     # The linker can only warn and ignore the option if not recognized
9544     # So say no if there are warnings
9545     if test -s conftest.err; then
9546       # Append any errors to the config.log.
9547       cat conftest.err 1>&5
9548       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9549       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9550       if diff conftest.exp conftest.er2 >/dev/null; then
9551         lt_cv_prog_compiler_static_works=yes
9552       fi
9553     else
9554       lt_cv_prog_compiler_static_works=yes
9555     fi
9556   fi
9557   $RM -r conftest*
9558   LDFLAGS="$save_LDFLAGS"
9559
9560fi
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9562$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9563
9564if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9565    :
9566else
9567    lt_prog_compiler_static=
9568fi
9569
9570
9571
9572
9573
9574
9575
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9577$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9578if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  lt_cv_prog_compiler_c_o=no
9582   $RM -r conftest 2>/dev/null
9583   mkdir conftest
9584   cd conftest
9585   mkdir out
9586   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587
9588   lt_compiler_flag="-o out/conftest2.$ac_objext"
9589   # Insert the option either (1) after the last *FLAGS variable, or
9590   # (2) before a word containing "conftest.", or (3) at the end.
9591   # Note that $ac_compile itself does not contain backslashes and begins
9592   # with a dollar sign (not a hyphen), so the echo should work correctly.
9593   lt_compile=`echo "$ac_compile" | $SED \
9594   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596   -e 's:$: $lt_compiler_flag:'`
9597   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598   (eval "$lt_compile" 2>out/conftest.err)
9599   ac_status=$?
9600   cat out/conftest.err >&5
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9603   then
9604     # The compiler can only warn and ignore the option if not recognized
9605     # So say no if there are warnings
9606     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9607     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9608     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9609       lt_cv_prog_compiler_c_o=yes
9610     fi
9611   fi
9612   chmod u+w . 2>&5
9613   $RM conftest*
9614   # SGI C++ compiler will create directory out/ii_files/ for
9615   # template instantiation
9616   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9617   $RM out/* && rmdir out
9618   cd ..
9619   $RM -r conftest
9620   $RM conftest*
9621
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9624$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9625
9626
9627
9628
9629
9630
9631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9632$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9633if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9634  $as_echo_n "(cached) " >&6
9635else
9636  lt_cv_prog_compiler_c_o=no
9637   $RM -r conftest 2>/dev/null
9638   mkdir conftest
9639   cd conftest
9640   mkdir out
9641   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9642
9643   lt_compiler_flag="-o out/conftest2.$ac_objext"
9644   # Insert the option either (1) after the last *FLAGS variable, or
9645   # (2) before a word containing "conftest.", or (3) at the end.
9646   # Note that $ac_compile itself does not contain backslashes and begins
9647   # with a dollar sign (not a hyphen), so the echo should work correctly.
9648   lt_compile=`echo "$ac_compile" | $SED \
9649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9651   -e 's:$: $lt_compiler_flag:'`
9652   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9653   (eval "$lt_compile" 2>out/conftest.err)
9654   ac_status=$?
9655   cat out/conftest.err >&5
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9658   then
9659     # The compiler can only warn and ignore the option if not recognized
9660     # So say no if there are warnings
9661     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9662     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9663     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9664       lt_cv_prog_compiler_c_o=yes
9665     fi
9666   fi
9667   chmod u+w . 2>&5
9668   $RM conftest*
9669   # SGI C++ compiler will create directory out/ii_files/ for
9670   # template instantiation
9671   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9672   $RM out/* && rmdir out
9673   cd ..
9674   $RM -r conftest
9675   $RM conftest*
9676
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9679$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9680
9681
9682
9683
9684hard_links="nottested"
9685if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9686  # do not overwrite the value of need_locks provided by the user
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9688$as_echo_n "checking if we can lock with hard links... " >&6; }
9689  hard_links=yes
9690  $RM conftest*
9691  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9692  touch conftest.a
9693  ln conftest.a conftest.b 2>&5 || hard_links=no
9694  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9696$as_echo "$hard_links" >&6; }
9697  if test "$hard_links" = no; then
9698    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9699$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9700    need_locks=warn
9701  fi
9702else
9703  need_locks=no
9704fi
9705
9706
9707
9708
9709
9710
9711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9712$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9713
9714  runpath_var=
9715  allow_undefined_flag=
9716  always_export_symbols=no
9717  archive_cmds=
9718  archive_expsym_cmds=
9719  compiler_needs_object=no
9720  enable_shared_with_static_runtimes=no
9721  export_dynamic_flag_spec=
9722  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9723  hardcode_automatic=no
9724  hardcode_direct=no
9725  hardcode_direct_absolute=no
9726  hardcode_libdir_flag_spec=
9727  hardcode_libdir_flag_spec_ld=
9728  hardcode_libdir_separator=
9729  hardcode_minus_L=no
9730  hardcode_shlibpath_var=unsupported
9731  inherit_rpath=no
9732  link_all_deplibs=unknown
9733  module_cmds=
9734  module_expsym_cmds=
9735  old_archive_from_new_cmds=
9736  old_archive_from_expsyms_cmds=
9737  thread_safe_flag_spec=
9738  whole_archive_flag_spec=
9739  # include_expsyms should be a list of space-separated symbols to be *always*
9740  # included in the symbol list
9741  include_expsyms=
9742  # exclude_expsyms can be an extended regexp of symbols to exclude
9743  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9744  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9745  # as well as any symbol that contains `d'.
9746  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9747  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9748  # platforms (ab)use it in PIC code, but their linkers get confused if
9749  # the symbol is explicitly referenced.  Since portable code cannot
9750  # rely on this symbol name, it's probably fine to never include it in
9751  # preloaded symbol tables.
9752  # Exclude shared library initialization/finalization symbols.
9753  extract_expsyms_cmds=
9754
9755  case $host_os in
9756  cygwin* | mingw* | pw32* | cegcc*)
9757    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9758    # When not using gcc, we currently assume that we are using
9759    # Microsoft Visual C++.
9760    if test "$GCC" != yes; then
9761      with_gnu_ld=no
9762    fi
9763    ;;
9764  interix*)
9765    # we just hope/assume this is gcc and not c89 (= MSVC++)
9766    with_gnu_ld=yes
9767    ;;
9768  openbsd*)
9769    with_gnu_ld=no
9770    ;;
9771  esac
9772
9773  ld_shlibs=yes
9774
9775  # On some targets, GNU ld is compatible enough with the native linker
9776  # that we're better off using the native interface for both.
9777  lt_use_gnu_ld_interface=no
9778  if test "$with_gnu_ld" = yes; then
9779    case $host_os in
9780      aix*)
9781	# The AIX port of GNU ld has always aspired to compatibility
9782	# with the native linker.  However, as the warning in the GNU ld
9783	# block says, versions before 2.19.5* couldn't really create working
9784	# shared libraries, regardless of the interface used.
9785	case `$LD -v 2>&1` in
9786	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9787	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9788	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9789	  *)
9790	    lt_use_gnu_ld_interface=yes
9791	    ;;
9792	esac
9793	;;
9794      *)
9795	lt_use_gnu_ld_interface=yes
9796	;;
9797    esac
9798  fi
9799
9800  if test "$lt_use_gnu_ld_interface" = yes; then
9801    # If archive_cmds runs LD, not CC, wlarc should be empty
9802    wlarc='${wl}'
9803
9804    # Set some defaults for GNU ld with shared library support. These
9805    # are reset later if shared libraries are not supported. Putting them
9806    # here allows them to be overridden if necessary.
9807    runpath_var=LD_RUN_PATH
9808    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9809    export_dynamic_flag_spec='${wl}--export-dynamic'
9810    # ancient GNU ld didn't support --whole-archive et. al.
9811    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9812      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9813    else
9814      whole_archive_flag_spec=
9815    fi
9816    supports_anon_versioning=no
9817    case `$LD -v 2>&1` in
9818      *GNU\ gold*) supports_anon_versioning=yes ;;
9819      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9820      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9821      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9822      *\ 2.11.*) ;; # other 2.11 versions
9823      *) supports_anon_versioning=yes ;;
9824    esac
9825
9826    # See if GNU ld supports shared libraries.
9827    case $host_os in
9828    aix[3-9]*)
9829      # On AIX/PPC, the GNU linker is very broken
9830      if test "$host_cpu" != ia64; then
9831	ld_shlibs=no
9832	cat <<_LT_EOF 1>&2
9833
9834*** Warning: the GNU linker, at least up to release 2.19, is reported
9835*** to be unable to reliably create shared libraries on AIX.
9836*** Therefore, libtool is disabling shared libraries support.  If you
9837*** really care for shared libraries, you may want to install binutils
9838*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9839*** You will then need to restart the configuration process.
9840
9841_LT_EOF
9842      fi
9843      ;;
9844
9845    amigaos*)
9846      case $host_cpu in
9847      powerpc)
9848            # see comment about AmigaOS4 .so support
9849            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850            archive_expsym_cmds=''
9851        ;;
9852      m68k)
9853            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)'
9854            hardcode_libdir_flag_spec='-L$libdir'
9855            hardcode_minus_L=yes
9856        ;;
9857      esac
9858      ;;
9859
9860    beos*)
9861      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9862	allow_undefined_flag=unsupported
9863	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9864	# support --undefined.  This deserves some investigation.  FIXME
9865	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866      else
9867	ld_shlibs=no
9868      fi
9869      ;;
9870
9871    cygwin* | mingw* | pw32* | cegcc*)
9872      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9873      # as there is no search path for DLLs.
9874      hardcode_libdir_flag_spec='-L$libdir'
9875      export_dynamic_flag_spec='${wl}--export-all-symbols'
9876      allow_undefined_flag=unsupported
9877      always_export_symbols=no
9878      enable_shared_with_static_runtimes=yes
9879      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9880
9881      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9882        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9883	# If the export-symbols file already is a .def file (1st line
9884	# is EXPORTS), use it as is; otherwise, prepend...
9885	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9886	  cp $export_symbols $output_objdir/$soname.def;
9887	else
9888	  echo EXPORTS > $output_objdir/$soname.def;
9889	  cat $export_symbols >> $output_objdir/$soname.def;
9890	fi~
9891	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9892      else
9893	ld_shlibs=no
9894      fi
9895      ;;
9896
9897    haiku*)
9898      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899      link_all_deplibs=yes
9900      ;;
9901
9902    interix[3-9]*)
9903      hardcode_direct=no
9904      hardcode_shlibpath_var=no
9905      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9906      export_dynamic_flag_spec='${wl}-E'
9907      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9908      # Instead, shared libraries are loaded at an image base (0x10000000 by
9909      # default) and relocated if they conflict, which is a slow very memory
9910      # consuming and fragmenting process.  To avoid this, we pick a random,
9911      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9912      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9913      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9914      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'
9915      ;;
9916
9917    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9918      tmp_diet=no
9919      if test "$host_os" = linux-dietlibc; then
9920	case $cc_basename in
9921	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9922	esac
9923      fi
9924      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9925	 && test "$tmp_diet" = no
9926      then
9927	tmp_addflag=
9928	tmp_sharedflag='-shared'
9929	case $cc_basename,$host_cpu in
9930        pgcc*)				# Portland Group C compiler
9931	  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'
9932	  tmp_addflag=' $pic_flag'
9933	  ;;
9934	pgf77* | pgf90* | pgf95* | pgfortran*)
9935					# Portland Group f77 and f90 compilers
9936	  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'
9937	  tmp_addflag=' $pic_flag -Mnomain' ;;
9938	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9939	  tmp_addflag=' -i_dynamic' ;;
9940	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9941	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9942	ifc* | ifort*)			# Intel Fortran compiler
9943	  tmp_addflag=' -nofor_main' ;;
9944	lf95*)				# Lahey Fortran 8.1
9945	  whole_archive_flag_spec=
9946	  tmp_sharedflag='--shared' ;;
9947	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9948	  tmp_sharedflag='-qmkshrobj'
9949	  tmp_addflag= ;;
9950	nvcc*)	# Cuda Compiler Driver 2.2
9951	  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'
9952	  compiler_needs_object=yes
9953	  ;;
9954	esac
9955	case `$CC -V 2>&1 | sed 5q` in
9956	*Sun\ C*)			# Sun C 5.9
9957	  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'
9958	  compiler_needs_object=yes
9959	  tmp_sharedflag='-G' ;;
9960	*Sun\ F*)			# Sun Fortran 8.3
9961	  tmp_sharedflag='-G' ;;
9962	esac
9963	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964
9965        if test "x$supports_anon_versioning" = xyes; then
9966          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9967	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9968	    echo "local: *; };" >> $output_objdir/$libname.ver~
9969	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9970        fi
9971
9972	case $cc_basename in
9973	xlf* | bgf* | bgxlf* | mpixlf*)
9974	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9975	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9976	  hardcode_libdir_flag_spec=
9977	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9978	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9979	  if test "x$supports_anon_versioning" = xyes; then
9980	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9981	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9982	      echo "local: *; };" >> $output_objdir/$libname.ver~
9983	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9984	  fi
9985	  ;;
9986	esac
9987      else
9988        ld_shlibs=no
9989      fi
9990      ;;
9991
9992    netbsd*)
9993      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9994	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9995	wlarc=
9996      else
9997	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999      fi
10000      ;;
10001
10002    solaris*)
10003      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10004	ld_shlibs=no
10005	cat <<_LT_EOF 1>&2
10006
10007*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10008*** create shared libraries on Solaris systems.  Therefore, libtool
10009*** is disabling shared libraries support.  We urge you to upgrade GNU
10010*** binutils to release 2.9.1 or newer.  Another option is to modify
10011*** your PATH or compiler configuration so that the native linker is
10012*** used, and then restart.
10013
10014_LT_EOF
10015      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10016	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10017	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10018      else
10019	ld_shlibs=no
10020      fi
10021      ;;
10022
10023    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10024      case `$LD -v 2>&1` in
10025        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10026	ld_shlibs=no
10027	cat <<_LT_EOF 1>&2
10028
10029*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10030*** reliably create shared libraries on SCO systems.  Therefore, libtool
10031*** is disabling shared libraries support.  We urge you to upgrade GNU
10032*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10033*** your PATH or compiler configuration so that the native linker is
10034*** used, and then restart.
10035
10036_LT_EOF
10037	;;
10038	*)
10039	  # For security reasons, it is highly recommended that you always
10040	  # use absolute paths for naming shared libraries, and exclude the
10041	  # DT_RUNPATH tag from executables and libraries.  But doing so
10042	  # requires that you compile everything twice, which is a pain.
10043	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10044	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10045	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10046	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10047	  else
10048	    ld_shlibs=no
10049	  fi
10050	;;
10051      esac
10052      ;;
10053
10054    sunos4*)
10055      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10056      wlarc=
10057      hardcode_direct=yes
10058      hardcode_shlibpath_var=no
10059      ;;
10060
10061    *)
10062      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10063	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10064	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10065      else
10066	ld_shlibs=no
10067      fi
10068      ;;
10069    esac
10070
10071    if test "$ld_shlibs" = no; then
10072      runpath_var=
10073      hardcode_libdir_flag_spec=
10074      export_dynamic_flag_spec=
10075      whole_archive_flag_spec=
10076    fi
10077  else
10078    # PORTME fill in a description of your system's linker (not GNU ld)
10079    case $host_os in
10080    aix3*)
10081      allow_undefined_flag=unsupported
10082      always_export_symbols=yes
10083      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'
10084      # Note: this linker hardcodes the directories in LIBPATH if there
10085      # are no directories specified by -L.
10086      hardcode_minus_L=yes
10087      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10088	# Neither direct hardcoding nor static linking is supported with a
10089	# broken collect2.
10090	hardcode_direct=unsupported
10091      fi
10092      ;;
10093
10094    aix[4-9]*)
10095      if test "$host_cpu" = ia64; then
10096	# On IA64, the linker does run time linking by default, so we don't
10097	# have to do anything special.
10098	aix_use_runtimelinking=no
10099	exp_sym_flag='-Bexport'
10100	no_entry_flag=""
10101      else
10102	# If we're using GNU nm, then we don't want the "-C" option.
10103	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10104	# Also, AIX nm treats weak defined symbols like other global
10105	# defined symbols, whereas GNU nm marks them as "W".
10106	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10107	  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'
10108	else
10109	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10110	fi
10111	aix_use_runtimelinking=no
10112
10113	# Test if we are trying to use run time linking or normal
10114	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10115	# need to do runtime linking.
10116	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10117	  for ld_flag in $LDFLAGS; do
10118	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10119	    aix_use_runtimelinking=yes
10120	    break
10121	  fi
10122	  done
10123	  ;;
10124	esac
10125
10126	exp_sym_flag='-bexport'
10127	no_entry_flag='-bnoentry'
10128      fi
10129
10130      # When large executables or shared objects are built, AIX ld can
10131      # have problems creating the table of contents.  If linking a library
10132      # or program results in "error TOC overflow" add -mminimal-toc to
10133      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10134      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10135
10136      archive_cmds=''
10137      hardcode_direct=yes
10138      hardcode_direct_absolute=yes
10139      hardcode_libdir_separator=':'
10140      link_all_deplibs=yes
10141      file_list_spec='${wl}-f,'
10142
10143      if test "$GCC" = yes; then
10144	case $host_os in aix4.[012]|aix4.[012].*)
10145	# We only want to do this on AIX 4.2 and lower, the check
10146	# below for broken collect2 doesn't work under 4.3+
10147	  collect2name=`${CC} -print-prog-name=collect2`
10148	  if test -f "$collect2name" &&
10149	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10150	  then
10151	  # We have reworked collect2
10152	  :
10153	  else
10154	  # We have old collect2
10155	  hardcode_direct=unsupported
10156	  # It fails to find uninstalled libraries when the uninstalled
10157	  # path is not listed in the libpath.  Setting hardcode_minus_L
10158	  # to unsupported forces relinking
10159	  hardcode_minus_L=yes
10160	  hardcode_libdir_flag_spec='-L$libdir'
10161	  hardcode_libdir_separator=
10162	  fi
10163	  ;;
10164	esac
10165	shared_flag='-shared'
10166	if test "$aix_use_runtimelinking" = yes; then
10167	  shared_flag="$shared_flag "'${wl}-G'
10168	fi
10169      else
10170	# not using gcc
10171	if test "$host_cpu" = ia64; then
10172	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10173	# chokes on -Wl,-G. The following line is correct:
10174	  shared_flag='-G'
10175	else
10176	  if test "$aix_use_runtimelinking" = yes; then
10177	    shared_flag='${wl}-G'
10178	  else
10179	    shared_flag='${wl}-bM:SRE'
10180	  fi
10181	fi
10182      fi
10183
10184      export_dynamic_flag_spec='${wl}-bexpall'
10185      # It seems that -bexpall does not export symbols beginning with
10186      # underscore (_), so it is better to generate a list of symbols to export.
10187      always_export_symbols=yes
10188      if test "$aix_use_runtimelinking" = yes; then
10189	# Warning - without using the other runtime loading flags (-brtl),
10190	# -berok will link without error, but may produce a broken library.
10191	allow_undefined_flag='-berok'
10192        # Determine the default libpath from the value encoded in an
10193        # empty executable.
10194        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h.  */
10196
10197int
10198main ()
10199{
10200
10201  ;
10202  return 0;
10203}
10204_ACEOF
10205if ac_fn_c_try_link "$LINENO"; then :
10206
10207lt_aix_libpath_sed='
10208    /Import File Strings/,/^$/ {
10209	/^0/ {
10210	    s/^0  *\(.*\)$/\1/
10211	    p
10212	}
10213    }'
10214aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10215# Check for a 64-bit object if we didn't find anything.
10216if test -z "$aix_libpath"; then
10217  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10218fi
10219fi
10220rm -f core conftest.err conftest.$ac_objext \
10221    conftest$ac_exeext conftest.$ac_ext
10222if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10223
10224        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10225        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"
10226      else
10227	if test "$host_cpu" = ia64; then
10228	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10229	  allow_undefined_flag="-z nodefs"
10230	  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"
10231	else
10232	 # Determine the default libpath from the value encoded in an
10233	 # empty executable.
10234	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236
10237int
10238main ()
10239{
10240
10241  ;
10242  return 0;
10243}
10244_ACEOF
10245if ac_fn_c_try_link "$LINENO"; then :
10246
10247lt_aix_libpath_sed='
10248    /Import File Strings/,/^$/ {
10249	/^0/ {
10250	    s/^0  *\(.*\)$/\1/
10251	    p
10252	}
10253    }'
10254aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10255# Check for a 64-bit object if we didn't find anything.
10256if test -z "$aix_libpath"; then
10257  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10258fi
10259fi
10260rm -f core conftest.err conftest.$ac_objext \
10261    conftest$ac_exeext conftest.$ac_ext
10262if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10263
10264	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10265	  # Warning - without using the other run time loading flags,
10266	  # -berok will link without error, but may produce a broken library.
10267	  no_undefined_flag=' ${wl}-bernotok'
10268	  allow_undefined_flag=' ${wl}-berok'
10269	  if test "$with_gnu_ld" = yes; then
10270	    # We only use this code for GNU lds that support --whole-archive.
10271	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10272	  else
10273	    # Exported symbols can be pulled into shared objects from archives
10274	    whole_archive_flag_spec='$convenience'
10275	  fi
10276	  archive_cmds_need_lc=yes
10277	  # This is similar to how AIX traditionally builds its shared libraries.
10278	  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'
10279	fi
10280      fi
10281      ;;
10282
10283    amigaos*)
10284      case $host_cpu in
10285      powerpc)
10286            # see comment about AmigaOS4 .so support
10287            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10288            archive_expsym_cmds=''
10289        ;;
10290      m68k)
10291            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)'
10292            hardcode_libdir_flag_spec='-L$libdir'
10293            hardcode_minus_L=yes
10294        ;;
10295      esac
10296      ;;
10297
10298    bsdi[45]*)
10299      export_dynamic_flag_spec=-rdynamic
10300      ;;
10301
10302    cygwin* | mingw* | pw32* | cegcc*)
10303      # When not using gcc, we currently assume that we are using
10304      # Microsoft Visual C++.
10305      # hardcode_libdir_flag_spec is actually meaningless, as there is
10306      # no search path for DLLs.
10307      hardcode_libdir_flag_spec=' '
10308      allow_undefined_flag=unsupported
10309      # Tell ltmain to make .lib files, not .a files.
10310      libext=lib
10311      # Tell ltmain to make .dll files, not .so files.
10312      shrext_cmds=".dll"
10313      # FIXME: Setting linknames here is a bad hack.
10314      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10315      # The linker will automatically build a .lib file if we build a DLL.
10316      old_archive_from_new_cmds='true'
10317      # FIXME: Should let the user specify the lib program.
10318      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10319      fix_srcfile_path='`cygpath -w "$srcfile"`'
10320      enable_shared_with_static_runtimes=yes
10321      ;;
10322
10323    darwin* | rhapsody*)
10324
10325
10326  archive_cmds_need_lc=no
10327  hardcode_direct=no
10328  hardcode_automatic=yes
10329  hardcode_shlibpath_var=unsupported
10330  if test "$lt_cv_ld_force_load" = "yes"; then
10331    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\"`'
10332  else
10333    whole_archive_flag_spec=''
10334  fi
10335  link_all_deplibs=yes
10336  allow_undefined_flag="$_lt_dar_allow_undefined"
10337  case $cc_basename in
10338     ifort*) _lt_dar_can_shared=yes ;;
10339     *) _lt_dar_can_shared=$GCC ;;
10340  esac
10341  if test "$_lt_dar_can_shared" = "yes"; then
10342    output_verbose_link_cmd=func_echo_all
10343    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10344    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10345    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}"
10346    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}"
10347
10348  else
10349  ld_shlibs=no
10350  fi
10351
10352      ;;
10353
10354    dgux*)
10355      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356      hardcode_libdir_flag_spec='-L$libdir'
10357      hardcode_shlibpath_var=no
10358      ;;
10359
10360    freebsd1*)
10361      ld_shlibs=no
10362      ;;
10363
10364    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10365    # support.  Future versions do this automatically, but an explicit c++rt0.o
10366    # does not break anything, and helps significantly (at the cost of a little
10367    # extra space).
10368    freebsd2.2*)
10369      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10370      hardcode_libdir_flag_spec='-R$libdir'
10371      hardcode_direct=yes
10372      hardcode_shlibpath_var=no
10373      ;;
10374
10375    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10376    freebsd2*)
10377      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378      hardcode_direct=yes
10379      hardcode_minus_L=yes
10380      hardcode_shlibpath_var=no
10381      ;;
10382
10383    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10384    freebsd* | dragonfly*)
10385      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10386      hardcode_libdir_flag_spec='-R$libdir'
10387      hardcode_direct=yes
10388      hardcode_shlibpath_var=no
10389      ;;
10390
10391    hpux9*)
10392      if test "$GCC" = yes; then
10393	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'
10394      else
10395	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'
10396      fi
10397      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10398      hardcode_libdir_separator=:
10399      hardcode_direct=yes
10400
10401      # hardcode_minus_L: Not really in the search PATH,
10402      # but as the default location of the library.
10403      hardcode_minus_L=yes
10404      export_dynamic_flag_spec='${wl}-E'
10405      ;;
10406
10407    hpux10*)
10408      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10409	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10410      else
10411	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10412      fi
10413      if test "$with_gnu_ld" = no; then
10414	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10415	hardcode_libdir_flag_spec_ld='+b $libdir'
10416	hardcode_libdir_separator=:
10417	hardcode_direct=yes
10418	hardcode_direct_absolute=yes
10419	export_dynamic_flag_spec='${wl}-E'
10420	# hardcode_minus_L: Not really in the search PATH,
10421	# but as the default location of the library.
10422	hardcode_minus_L=yes
10423      fi
10424      ;;
10425
10426    hpux11*)
10427      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10428	case $host_cpu in
10429	hppa*64*)
10430	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10431	  ;;
10432	ia64*)
10433	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10434	  ;;
10435	*)
10436	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10437	  ;;
10438	esac
10439      else
10440	case $host_cpu in
10441	hppa*64*)
10442	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10443	  ;;
10444	ia64*)
10445	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10446	  ;;
10447	*)
10448
10449	  # Older versions of the 11.00 compiler do not understand -b yet
10450	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10451	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10452$as_echo_n "checking if $CC understands -b... " >&6; }
10453if test "${lt_cv_prog_compiler__b+set}" = set; then :
10454  $as_echo_n "(cached) " >&6
10455else
10456  lt_cv_prog_compiler__b=no
10457   save_LDFLAGS="$LDFLAGS"
10458   LDFLAGS="$LDFLAGS -b"
10459   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10460   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10461     # The linker can only warn and ignore the option if not recognized
10462     # So say no if there are warnings
10463     if test -s conftest.err; then
10464       # Append any errors to the config.log.
10465       cat conftest.err 1>&5
10466       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10467       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10468       if diff conftest.exp conftest.er2 >/dev/null; then
10469         lt_cv_prog_compiler__b=yes
10470       fi
10471     else
10472       lt_cv_prog_compiler__b=yes
10473     fi
10474   fi
10475   $RM -r conftest*
10476   LDFLAGS="$save_LDFLAGS"
10477
10478fi
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10480$as_echo "$lt_cv_prog_compiler__b" >&6; }
10481
10482if test x"$lt_cv_prog_compiler__b" = xyes; then
10483    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10484else
10485    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10486fi
10487
10488	  ;;
10489	esac
10490      fi
10491      if test "$with_gnu_ld" = no; then
10492	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10493	hardcode_libdir_separator=:
10494
10495	case $host_cpu in
10496	hppa*64*|ia64*)
10497	  hardcode_direct=no
10498	  hardcode_shlibpath_var=no
10499	  ;;
10500	*)
10501	  hardcode_direct=yes
10502	  hardcode_direct_absolute=yes
10503	  export_dynamic_flag_spec='${wl}-E'
10504
10505	  # hardcode_minus_L: Not really in the search PATH,
10506	  # but as the default location of the library.
10507	  hardcode_minus_L=yes
10508	  ;;
10509	esac
10510      fi
10511      ;;
10512
10513    irix5* | irix6* | nonstopux*)
10514      if test "$GCC" = yes; then
10515	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'
10516	# Try to use the -exported_symbol ld option, if it does not
10517	# work, assume that -exports_file does not work either and
10518	# implicitly export all symbols.
10519        save_LDFLAGS="$LDFLAGS"
10520        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10521        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h.  */
10523int foo(void) {}
10524_ACEOF
10525if ac_fn_c_try_link "$LINENO"; then :
10526  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'
10527
10528fi
10529rm -f core conftest.err conftest.$ac_objext \
10530    conftest$ac_exeext conftest.$ac_ext
10531        LDFLAGS="$save_LDFLAGS"
10532      else
10533	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'
10534	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'
10535      fi
10536      archive_cmds_need_lc='no'
10537      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538      hardcode_libdir_separator=:
10539      inherit_rpath=yes
10540      link_all_deplibs=yes
10541      ;;
10542
10543    netbsd*)
10544      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10545	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10546      else
10547	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10548      fi
10549      hardcode_libdir_flag_spec='-R$libdir'
10550      hardcode_direct=yes
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    newsos6)
10555      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556      hardcode_direct=yes
10557      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558      hardcode_libdir_separator=:
10559      hardcode_shlibpath_var=no
10560      ;;
10561
10562    *nto* | *qnx*)
10563      ;;
10564
10565    openbsd*)
10566      if test -f /usr/libexec/ld.so; then
10567	hardcode_direct=yes
10568	hardcode_shlibpath_var=no
10569	hardcode_direct_absolute=yes
10570	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10572	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10573	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10574	  export_dynamic_flag_spec='${wl}-E'
10575	else
10576	  case $host_os in
10577	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10578	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579	     hardcode_libdir_flag_spec='-R$libdir'
10580	     ;;
10581	   *)
10582	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10584	     ;;
10585	  esac
10586	fi
10587      else
10588	ld_shlibs=no
10589      fi
10590      ;;
10591
10592    os2*)
10593      hardcode_libdir_flag_spec='-L$libdir'
10594      hardcode_minus_L=yes
10595      allow_undefined_flag=unsupported
10596      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'
10597      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10598      ;;
10599
10600    osf3*)
10601      if test "$GCC" = yes; then
10602	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10603	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'
10604      else
10605	allow_undefined_flag=' -expect_unresolved \*'
10606	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'
10607      fi
10608      archive_cmds_need_lc='no'
10609      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610      hardcode_libdir_separator=:
10611      ;;
10612
10613    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10614      if test "$GCC" = yes; then
10615	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10616	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'
10617	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10618      else
10619	allow_undefined_flag=' -expect_unresolved \*'
10620	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'
10621	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~
10622	$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'
10623
10624	# Both c and cxx compiler support -rpath directly
10625	hardcode_libdir_flag_spec='-rpath $libdir'
10626      fi
10627      archive_cmds_need_lc='no'
10628      hardcode_libdir_separator=:
10629      ;;
10630
10631    solaris*)
10632      no_undefined_flag=' -z defs'
10633      if test "$GCC" = yes; then
10634	wlarc='${wl}'
10635	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10636	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10637	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10638      else
10639	case `$CC -V 2>&1` in
10640	*"Compilers 5.0"*)
10641	  wlarc=''
10642	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10645	  ;;
10646	*)
10647	  wlarc='${wl}'
10648	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10650	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10651	  ;;
10652	esac
10653      fi
10654      hardcode_libdir_flag_spec='-R$libdir'
10655      hardcode_shlibpath_var=no
10656      case $host_os in
10657      solaris2.[0-5] | solaris2.[0-5].*) ;;
10658      *)
10659	# The compiler driver will combine and reorder linker options,
10660	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10661	# but is careful enough not to reorder.
10662	# Supported since Solaris 2.6 (maybe 2.5.1?)
10663	if test "$GCC" = yes; then
10664	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10665	else
10666	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10667	fi
10668	;;
10669      esac
10670      link_all_deplibs=yes
10671      ;;
10672
10673    sunos4*)
10674      if test "x$host_vendor" = xsequent; then
10675	# Use $CC to link under sequent, because it throws in some extra .o
10676	# files that make .init and .fini sections work.
10677	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678      else
10679	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10680      fi
10681      hardcode_libdir_flag_spec='-L$libdir'
10682      hardcode_direct=yes
10683      hardcode_minus_L=yes
10684      hardcode_shlibpath_var=no
10685      ;;
10686
10687    sysv4)
10688      case $host_vendor in
10689	sni)
10690	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691	  hardcode_direct=yes # is this really true???
10692	;;
10693	siemens)
10694	  ## LD is ld it makes a PLAMLIB
10695	  ## CC just makes a GrossModule.
10696	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10697	  reload_cmds='$CC -r -o $output$reload_objs'
10698	  hardcode_direct=no
10699        ;;
10700	motorola)
10701	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10702	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10703	;;
10704      esac
10705      runpath_var='LD_RUN_PATH'
10706      hardcode_shlibpath_var=no
10707      ;;
10708
10709    sysv4.3*)
10710      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711      hardcode_shlibpath_var=no
10712      export_dynamic_flag_spec='-Bexport'
10713      ;;
10714
10715    sysv4*MP*)
10716      if test -d /usr/nec; then
10717	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718	hardcode_shlibpath_var=no
10719	runpath_var=LD_RUN_PATH
10720	hardcode_runpath_var=yes
10721	ld_shlibs=yes
10722      fi
10723      ;;
10724
10725    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10726      no_undefined_flag='${wl}-z,text'
10727      archive_cmds_need_lc=no
10728      hardcode_shlibpath_var=no
10729      runpath_var='LD_RUN_PATH'
10730
10731      if test "$GCC" = yes; then
10732	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734      else
10735	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737      fi
10738      ;;
10739
10740    sysv5* | sco3.2v5* | sco5v6*)
10741      # Note: We can NOT use -z defs as we might desire, because we do not
10742      # link with -lc, and that would cause any symbols used from libc to
10743      # always be unresolved, which means just about no library would
10744      # ever link correctly.  If we're not using GNU ld we use -z text
10745      # though, which does catch some bad symbols but isn't as heavy-handed
10746      # as -z defs.
10747      no_undefined_flag='${wl}-z,text'
10748      allow_undefined_flag='${wl}-z,nodefs'
10749      archive_cmds_need_lc=no
10750      hardcode_shlibpath_var=no
10751      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10752      hardcode_libdir_separator=':'
10753      link_all_deplibs=yes
10754      export_dynamic_flag_spec='${wl}-Bexport'
10755      runpath_var='LD_RUN_PATH'
10756
10757      if test "$GCC" = yes; then
10758	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760      else
10761	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763      fi
10764      ;;
10765
10766    uts4*)
10767      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768      hardcode_libdir_flag_spec='-L$libdir'
10769      hardcode_shlibpath_var=no
10770      ;;
10771
10772    *)
10773      ld_shlibs=no
10774      ;;
10775    esac
10776
10777    if test x$host_vendor = xsni; then
10778      case $host in
10779      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10780	export_dynamic_flag_spec='${wl}-Blargedynsym'
10781	;;
10782      esac
10783    fi
10784  fi
10785
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10787$as_echo "$ld_shlibs" >&6; }
10788test "$ld_shlibs" = no && can_build_shared=no
10789
10790with_gnu_ld=$with_gnu_ld
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806#
10807# Do we need to explicitly link libc?
10808#
10809case "x$archive_cmds_need_lc" in
10810x|xyes)
10811  # Assume -lc should be added
10812  archive_cmds_need_lc=yes
10813
10814  if test "$enable_shared" = yes && test "$GCC" = yes; then
10815    case $archive_cmds in
10816    *'~'*)
10817      # FIXME: we may have to deal with multi-command sequences.
10818      ;;
10819    '$CC '*)
10820      # Test whether the compiler implicitly links with -lc since on some
10821      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822      # to ld, don't add -lc before -lgcc.
10823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10824$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10825if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10826  $as_echo_n "(cached) " >&6
10827else
10828  $RM conftest*
10829	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10830
10831	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10832  (eval $ac_compile) 2>&5
10833  ac_status=$?
10834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835  test $ac_status = 0; } 2>conftest.err; then
10836	  soname=conftest
10837	  lib=conftest
10838	  libobjs=conftest.$ac_objext
10839	  deplibs=
10840	  wl=$lt_prog_compiler_wl
10841	  pic_flag=$lt_prog_compiler_pic
10842	  compiler_flags=-v
10843	  linker_flags=-v
10844	  verstring=
10845	  output_objdir=.
10846	  libname=conftest
10847	  lt_save_allow_undefined_flag=$allow_undefined_flag
10848	  allow_undefined_flag=
10849	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10850  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10851  ac_status=$?
10852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853  test $ac_status = 0; }
10854	  then
10855	    lt_cv_archive_cmds_need_lc=no
10856	  else
10857	    lt_cv_archive_cmds_need_lc=yes
10858	  fi
10859	  allow_undefined_flag=$lt_save_allow_undefined_flag
10860	else
10861	  cat conftest.err 1>&5
10862	fi
10863	$RM conftest*
10864
10865fi
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10867$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10868      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10869      ;;
10870    esac
10871  fi
10872  ;;
10873esac
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
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11032$as_echo_n "checking dynamic linker characteristics... " >&6; }
11033
11034if test "$GCC" = yes; then
11035  case $host_os in
11036    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11037    *) lt_awk_arg="/^libraries:/" ;;
11038  esac
11039  case $host_os in
11040    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11041    *) lt_sed_strip_eq="s,=/,/,g" ;;
11042  esac
11043  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11044  case $lt_search_path_spec in
11045  *\;*)
11046    # if the path contains ";" then we assume it to be the separator
11047    # otherwise default to the standard path separator (i.e. ":") - it is
11048    # assumed that no part of a normal pathname contains ";" but that should
11049    # okay in the real world where ";" in dirpaths is itself problematic.
11050    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11051    ;;
11052  *)
11053    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11054    ;;
11055  esac
11056  # Ok, now we have the path, separated by spaces, we can step through it
11057  # and add multilib dir if necessary.
11058  lt_tmp_lt_search_path_spec=
11059  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11060  for lt_sys_path in $lt_search_path_spec; do
11061    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11062      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11063    else
11064      test -d "$lt_sys_path" && \
11065	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11066    fi
11067  done
11068  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11069BEGIN {RS=" "; FS="/|\n";} {
11070  lt_foo="";
11071  lt_count=0;
11072  for (lt_i = NF; lt_i > 0; lt_i--) {
11073    if ($lt_i != "" && $lt_i != ".") {
11074      if ($lt_i == "..") {
11075        lt_count++;
11076      } else {
11077        if (lt_count == 0) {
11078          lt_foo="/" $lt_i lt_foo;
11079        } else {
11080          lt_count--;
11081        }
11082      }
11083    }
11084  }
11085  if (lt_foo != "") { lt_freq[lt_foo]++; }
11086  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11087}'`
11088  # AWK program above erroneously prepends '/' to C:/dos/paths
11089  # for these hosts.
11090  case $host_os in
11091    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11092      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11093  esac
11094  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11095else
11096  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11097fi
11098library_names_spec=
11099libname_spec='lib$name'
11100soname_spec=
11101shrext_cmds=".so"
11102postinstall_cmds=
11103postuninstall_cmds=
11104finish_cmds=
11105finish_eval=
11106shlibpath_var=
11107shlibpath_overrides_runpath=unknown
11108version_type=none
11109dynamic_linker="$host_os ld.so"
11110sys_lib_dlsearch_path_spec="/lib /usr/lib"
11111need_lib_prefix=unknown
11112hardcode_into_libs=no
11113
11114# when you set need_version to no, make sure it does not cause -set_version
11115# flags to be left without arguments
11116need_version=unknown
11117
11118case $host_os in
11119aix3*)
11120  version_type=linux
11121  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11122  shlibpath_var=LIBPATH
11123
11124  # AIX 3 has no versioning support, so we append a major version to the name.
11125  soname_spec='${libname}${release}${shared_ext}$major'
11126  ;;
11127
11128aix[4-9]*)
11129  version_type=linux
11130  need_lib_prefix=no
11131  need_version=no
11132  hardcode_into_libs=yes
11133  if test "$host_cpu" = ia64; then
11134    # AIX 5 supports IA64
11135    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11136    shlibpath_var=LD_LIBRARY_PATH
11137  else
11138    # With GCC up to 2.95.x, collect2 would create an import file
11139    # for dependence libraries.  The import file would start with
11140    # the line `#! .'.  This would cause the generated library to
11141    # depend on `.', always an invalid library.  This was fixed in
11142    # development snapshots of GCC prior to 3.0.
11143    case $host_os in
11144      aix4 | aix4.[01] | aix4.[01].*)
11145      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146	   echo ' yes '
11147	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11148	:
11149      else
11150	can_build_shared=no
11151      fi
11152      ;;
11153    esac
11154    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11155    # soname into executable. Probably we can add versioning support to
11156    # collect2, so additional links can be useful in future.
11157    if test "$aix_use_runtimelinking" = yes; then
11158      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159      # instead of lib<name>.a to let people know that these are not
11160      # typical AIX shared libraries.
11161      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162    else
11163      # We preserve .a as extension for shared libraries through AIX4.2
11164      # and later when we are not doing run time linking.
11165      library_names_spec='${libname}${release}.a $libname.a'
11166      soname_spec='${libname}${release}${shared_ext}$major'
11167    fi
11168    shlibpath_var=LIBPATH
11169  fi
11170  ;;
11171
11172amigaos*)
11173  case $host_cpu in
11174  powerpc)
11175    # Since July 2007 AmigaOS4 officially supports .so libraries.
11176    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11177    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178    ;;
11179  m68k)
11180    library_names_spec='$libname.ixlibrary $libname.a'
11181    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11182    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'
11183    ;;
11184  esac
11185  ;;
11186
11187beos*)
11188  library_names_spec='${libname}${shared_ext}'
11189  dynamic_linker="$host_os ld.so"
11190  shlibpath_var=LIBRARY_PATH
11191  ;;
11192
11193bsdi[45]*)
11194  version_type=linux
11195  need_version=no
11196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197  soname_spec='${libname}${release}${shared_ext}$major'
11198  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11199  shlibpath_var=LD_LIBRARY_PATH
11200  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11201  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11202  # the default ld.so.conf also contains /usr/contrib/lib and
11203  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11204  # libtool to hard-code these into programs
11205  ;;
11206
11207cygwin* | mingw* | pw32* | cegcc*)
11208  version_type=windows
11209  shrext_cmds=".dll"
11210  need_version=no
11211  need_lib_prefix=no
11212
11213  case $GCC,$host_os in
11214  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11215    library_names_spec='$libname.dll.a'
11216    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11217    postinstall_cmds='base_file=`basename \${file}`~
11218      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11219      dldir=$destdir/`dirname \$dlpath`~
11220      test -d \$dldir || mkdir -p \$dldir~
11221      $install_prog $dir/$dlname \$dldir/$dlname~
11222      chmod a+x \$dldir/$dlname~
11223      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11224        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11225      fi'
11226    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11227      dlpath=$dir/\$dldll~
11228       $RM \$dlpath'
11229    shlibpath_overrides_runpath=yes
11230
11231    case $host_os in
11232    cygwin*)
11233      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11234      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11235
11236      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11237      ;;
11238    mingw* | cegcc*)
11239      # MinGW DLLs use traditional 'lib' prefix
11240      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11241      ;;
11242    pw32*)
11243      # pw32 DLLs use 'pw' prefix rather than 'lib'
11244      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11245      ;;
11246    esac
11247    ;;
11248
11249  *)
11250    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11251    ;;
11252  esac
11253  dynamic_linker='Win32 ld.exe'
11254  # FIXME: first we should search . and the directory the executable is in
11255  shlibpath_var=PATH
11256  ;;
11257
11258darwin* | rhapsody*)
11259  dynamic_linker="$host_os dyld"
11260  version_type=darwin
11261  need_lib_prefix=no
11262  need_version=no
11263  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11264  soname_spec='${libname}${release}${major}$shared_ext'
11265  shlibpath_overrides_runpath=yes
11266  shlibpath_var=DYLD_LIBRARY_PATH
11267  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11268
11269  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11270  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11271  ;;
11272
11273dgux*)
11274  version_type=linux
11275  need_lib_prefix=no
11276  need_version=no
11277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11278  soname_spec='${libname}${release}${shared_ext}$major'
11279  shlibpath_var=LD_LIBRARY_PATH
11280  ;;
11281
11282freebsd1*)
11283  dynamic_linker=no
11284  ;;
11285
11286freebsd* | dragonfly*)
11287  # DragonFly does not have aout.  When/if they implement a new
11288  # versioning mechanism, adjust this.
11289  if test -x /usr/bin/objformat; then
11290    objformat=`/usr/bin/objformat`
11291  else
11292    case $host_os in
11293    freebsd[123]*) objformat=aout ;;
11294    *) objformat=elf ;;
11295    esac
11296  fi
11297  version_type=freebsd-$objformat
11298  case $version_type in
11299    freebsd-elf*)
11300      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11301      need_version=no
11302      need_lib_prefix=no
11303      ;;
11304    freebsd-*)
11305      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11306      need_version=yes
11307      ;;
11308  esac
11309  shlibpath_var=LD_LIBRARY_PATH
11310  case $host_os in
11311  freebsd2*)
11312    shlibpath_overrides_runpath=yes
11313    ;;
11314  freebsd3.[01]* | freebsdelf3.[01]*)
11315    shlibpath_overrides_runpath=yes
11316    hardcode_into_libs=yes
11317    ;;
11318  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11319  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11320    shlibpath_overrides_runpath=no
11321    hardcode_into_libs=yes
11322    ;;
11323  *) # from 4.6 on, and DragonFly
11324    shlibpath_overrides_runpath=yes
11325    hardcode_into_libs=yes
11326    ;;
11327  esac
11328  ;;
11329
11330gnu*)
11331  version_type=linux
11332  need_lib_prefix=no
11333  need_version=no
11334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11335  soname_spec='${libname}${release}${shared_ext}$major'
11336  shlibpath_var=LD_LIBRARY_PATH
11337  hardcode_into_libs=yes
11338  ;;
11339
11340haiku*)
11341  version_type=linux
11342  need_lib_prefix=no
11343  need_version=no
11344  dynamic_linker="$host_os runtime_loader"
11345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11346  soname_spec='${libname}${release}${shared_ext}$major'
11347  shlibpath_var=LIBRARY_PATH
11348  shlibpath_overrides_runpath=yes
11349  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11350  hardcode_into_libs=yes
11351  ;;
11352
11353hpux9* | hpux10* | hpux11*)
11354  # Give a soname corresponding to the major version so that dld.sl refuses to
11355  # link against other versions.
11356  version_type=sunos
11357  need_lib_prefix=no
11358  need_version=no
11359  case $host_cpu in
11360  ia64*)
11361    shrext_cmds='.so'
11362    hardcode_into_libs=yes
11363    dynamic_linker="$host_os dld.so"
11364    shlibpath_var=LD_LIBRARY_PATH
11365    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367    soname_spec='${libname}${release}${shared_ext}$major'
11368    if test "X$HPUX_IA64_MODE" = X32; then
11369      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11370    else
11371      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11372    fi
11373    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11374    ;;
11375  hppa*64*)
11376    shrext_cmds='.sl'
11377    hardcode_into_libs=yes
11378    dynamic_linker="$host_os dld.sl"
11379    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11380    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11381    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382    soname_spec='${libname}${release}${shared_ext}$major'
11383    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11384    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11385    ;;
11386  *)
11387    shrext_cmds='.sl'
11388    dynamic_linker="$host_os dld.sl"
11389    shlibpath_var=SHLIB_PATH
11390    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11391    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392    soname_spec='${libname}${release}${shared_ext}$major'
11393    ;;
11394  esac
11395  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11396  postinstall_cmds='chmod 555 $lib'
11397  # or fails outright, so override atomically:
11398  install_override_mode=555
11399  ;;
11400
11401interix[3-9]*)
11402  version_type=linux
11403  need_lib_prefix=no
11404  need_version=no
11405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11406  soname_spec='${libname}${release}${shared_ext}$major'
11407  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11408  shlibpath_var=LD_LIBRARY_PATH
11409  shlibpath_overrides_runpath=no
11410  hardcode_into_libs=yes
11411  ;;
11412
11413irix5* | irix6* | nonstopux*)
11414  case $host_os in
11415    nonstopux*) version_type=nonstopux ;;
11416    *)
11417	if test "$lt_cv_prog_gnu_ld" = yes; then
11418		version_type=linux
11419	else
11420		version_type=irix
11421	fi ;;
11422  esac
11423  need_lib_prefix=no
11424  need_version=no
11425  soname_spec='${libname}${release}${shared_ext}$major'
11426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11427  case $host_os in
11428  irix5* | nonstopux*)
11429    libsuff= shlibsuff=
11430    ;;
11431  *)
11432    case $LD in # libtool.m4 will add one of these switches to LD
11433    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11434      libsuff= shlibsuff= libmagic=32-bit;;
11435    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11436      libsuff=32 shlibsuff=N32 libmagic=N32;;
11437    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11438      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11439    *) libsuff= shlibsuff= libmagic=never-match;;
11440    esac
11441    ;;
11442  esac
11443  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11444  shlibpath_overrides_runpath=no
11445  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11446  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11447  hardcode_into_libs=yes
11448  ;;
11449
11450# No shared lib support for Linux oldld, aout, or coff.
11451linux*oldld* | linux*aout* | linux*coff*)
11452  dynamic_linker=no
11453  ;;
11454
11455# This must be Linux ELF.
11456linux* | k*bsd*-gnu | kopensolaris*-gnu)
11457  version_type=linux
11458  need_lib_prefix=no
11459  need_version=no
11460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461  soname_spec='${libname}${release}${shared_ext}$major'
11462  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11463  shlibpath_var=LD_LIBRARY_PATH
11464  shlibpath_overrides_runpath=no
11465
11466  # Some binutils ld are patched to set DT_RUNPATH
11467  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11468  $as_echo_n "(cached) " >&6
11469else
11470  lt_cv_shlibpath_overrides_runpath=no
11471    save_LDFLAGS=$LDFLAGS
11472    save_libdir=$libdir
11473    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11474	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11475    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476/* end confdefs.h.  */
11477
11478int
11479main ()
11480{
11481
11482  ;
11483  return 0;
11484}
11485_ACEOF
11486if ac_fn_c_try_link "$LINENO"; then :
11487  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11488  lt_cv_shlibpath_overrides_runpath=yes
11489fi
11490fi
11491rm -f core conftest.err conftest.$ac_objext \
11492    conftest$ac_exeext conftest.$ac_ext
11493    LDFLAGS=$save_LDFLAGS
11494    libdir=$save_libdir
11495
11496fi
11497
11498  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11499
11500  # This implies no fast_install, which is unacceptable.
11501  # Some rework will be needed to allow for fast_install
11502  # before this can be enabled.
11503  hardcode_into_libs=yes
11504
11505  # Append ld.so.conf contents to the search path
11506  if test -f /etc/ld.so.conf; then
11507    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' ' '`
11508    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11509  fi
11510
11511  # We used to test for /lib/ld.so.1 and disable shared libraries on
11512  # powerpc, because MkLinux only supported shared libraries with the
11513  # GNU dynamic linker.  Since this was broken with cross compilers,
11514  # most powerpc-linux boxes support dynamic linking these days and
11515  # people can always --disable-shared, the test was removed, and we
11516  # assume the GNU/Linux dynamic linker is in use.
11517  dynamic_linker='GNU/Linux ld.so'
11518  ;;
11519
11520netbsd*)
11521  version_type=sunos
11522  need_lib_prefix=no
11523  need_version=no
11524  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11525    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527    dynamic_linker='NetBSD (a.out) ld.so'
11528  else
11529    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11530    soname_spec='${libname}${release}${shared_ext}$major'
11531    dynamic_linker='NetBSD ld.elf_so'
11532  fi
11533  shlibpath_var=LD_LIBRARY_PATH
11534  shlibpath_overrides_runpath=yes
11535  hardcode_into_libs=yes
11536  ;;
11537
11538newsos6)
11539  version_type=linux
11540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541  shlibpath_var=LD_LIBRARY_PATH
11542  shlibpath_overrides_runpath=yes
11543  ;;
11544
11545*nto* | *qnx*)
11546  version_type=qnx
11547  need_lib_prefix=no
11548  need_version=no
11549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550  soname_spec='${libname}${release}${shared_ext}$major'
11551  shlibpath_var=LD_LIBRARY_PATH
11552  shlibpath_overrides_runpath=no
11553  hardcode_into_libs=yes
11554  dynamic_linker='ldqnx.so'
11555  ;;
11556
11557openbsd*)
11558  version_type=sunos
11559  sys_lib_dlsearch_path_spec="/usr/lib"
11560  need_lib_prefix=no
11561  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11562  case $host_os in
11563    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11564    *)				need_version=no  ;;
11565  esac
11566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11570    case $host_os in
11571      openbsd2.[89] | openbsd2.[89].*)
11572	shlibpath_overrides_runpath=no
11573	;;
11574      *)
11575	shlibpath_overrides_runpath=yes
11576	;;
11577      esac
11578  else
11579    shlibpath_overrides_runpath=yes
11580  fi
11581  ;;
11582
11583os2*)
11584  libname_spec='$name'
11585  shrext_cmds=".dll"
11586  need_lib_prefix=no
11587  library_names_spec='$libname${shared_ext} $libname.a'
11588  dynamic_linker='OS/2 ld.exe'
11589  shlibpath_var=LIBPATH
11590  ;;
11591
11592osf3* | osf4* | osf5*)
11593  version_type=osf
11594  need_lib_prefix=no
11595  need_version=no
11596  soname_spec='${libname}${release}${shared_ext}$major'
11597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598  shlibpath_var=LD_LIBRARY_PATH
11599  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11600  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11601  ;;
11602
11603rdos*)
11604  dynamic_linker=no
11605  ;;
11606
11607solaris*)
11608  version_type=linux
11609  need_lib_prefix=no
11610  need_version=no
11611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612  soname_spec='${libname}${release}${shared_ext}$major'
11613  shlibpath_var=LD_LIBRARY_PATH
11614  shlibpath_overrides_runpath=yes
11615  hardcode_into_libs=yes
11616  # ldd complains unless libraries are executable
11617  postinstall_cmds='chmod +x $lib'
11618  ;;
11619
11620sunos4*)
11621  version_type=sunos
11622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11623  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11624  shlibpath_var=LD_LIBRARY_PATH
11625  shlibpath_overrides_runpath=yes
11626  if test "$with_gnu_ld" = yes; then
11627    need_lib_prefix=no
11628  fi
11629  need_version=yes
11630  ;;
11631
11632sysv4 | sysv4.3*)
11633  version_type=linux
11634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635  soname_spec='${libname}${release}${shared_ext}$major'
11636  shlibpath_var=LD_LIBRARY_PATH
11637  case $host_vendor in
11638    sni)
11639      shlibpath_overrides_runpath=no
11640      need_lib_prefix=no
11641      runpath_var=LD_RUN_PATH
11642      ;;
11643    siemens)
11644      need_lib_prefix=no
11645      ;;
11646    motorola)
11647      need_lib_prefix=no
11648      need_version=no
11649      shlibpath_overrides_runpath=no
11650      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11651      ;;
11652  esac
11653  ;;
11654
11655sysv4*MP*)
11656  if test -d /usr/nec ;then
11657    version_type=linux
11658    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11659    soname_spec='$libname${shared_ext}.$major'
11660    shlibpath_var=LD_LIBRARY_PATH
11661  fi
11662  ;;
11663
11664sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11665  version_type=freebsd-elf
11666  need_lib_prefix=no
11667  need_version=no
11668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11669  soname_spec='${libname}${release}${shared_ext}$major'
11670  shlibpath_var=LD_LIBRARY_PATH
11671  shlibpath_overrides_runpath=yes
11672  hardcode_into_libs=yes
11673  if test "$with_gnu_ld" = yes; then
11674    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11675  else
11676    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11677    case $host_os in
11678      sco3.2v5*)
11679        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11680	;;
11681    esac
11682  fi
11683  sys_lib_dlsearch_path_spec='/usr/lib'
11684  ;;
11685
11686tpf*)
11687  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11688  version_type=linux
11689  need_lib_prefix=no
11690  need_version=no
11691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692  shlibpath_var=LD_LIBRARY_PATH
11693  shlibpath_overrides_runpath=no
11694  hardcode_into_libs=yes
11695  ;;
11696
11697uts4*)
11698  version_type=linux
11699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700  soname_spec='${libname}${release}${shared_ext}$major'
11701  shlibpath_var=LD_LIBRARY_PATH
11702  ;;
11703
11704*)
11705  dynamic_linker=no
11706  ;;
11707esac
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11709$as_echo "$dynamic_linker" >&6; }
11710test "$dynamic_linker" = no && can_build_shared=no
11711
11712variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11713if test "$GCC" = yes; then
11714  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11715fi
11716
11717if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11718  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11719fi
11720if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11721  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11722fi
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11816$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11817hardcode_action=
11818if test -n "$hardcode_libdir_flag_spec" ||
11819   test -n "$runpath_var" ||
11820   test "X$hardcode_automatic" = "Xyes" ; then
11821
11822  # We can hardcode non-existent directories.
11823  if test "$hardcode_direct" != no &&
11824     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11825     # have to relink, otherwise we might link with an installed library
11826     # when we should be linking with a yet-to-be-installed one
11827     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11828     test "$hardcode_minus_L" != no; then
11829    # Linking always hardcodes the temporary library directory.
11830    hardcode_action=relink
11831  else
11832    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11833    hardcode_action=immediate
11834  fi
11835else
11836  # We cannot hardcode anything, or else we can only hardcode existing
11837  # directories.
11838  hardcode_action=unsupported
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11841$as_echo "$hardcode_action" >&6; }
11842
11843if test "$hardcode_action" = relink ||
11844   test "$inherit_rpath" = yes; then
11845  # Fast installation is not supported
11846  enable_fast_install=no
11847elif test "$shlibpath_overrides_runpath" = yes ||
11848     test "$enable_shared" = no; then
11849  # Fast installation is not necessary
11850  enable_fast_install=needless
11851fi
11852
11853
11854
11855
11856
11857
11858  if test "x$enable_dlopen" != xyes; then
11859  enable_dlopen=unknown
11860  enable_dlopen_self=unknown
11861  enable_dlopen_self_static=unknown
11862else
11863  lt_cv_dlopen=no
11864  lt_cv_dlopen_libs=
11865
11866  case $host_os in
11867  beos*)
11868    lt_cv_dlopen="load_add_on"
11869    lt_cv_dlopen_libs=
11870    lt_cv_dlopen_self=yes
11871    ;;
11872
11873  mingw* | pw32* | cegcc*)
11874    lt_cv_dlopen="LoadLibrary"
11875    lt_cv_dlopen_libs=
11876    ;;
11877
11878  cygwin*)
11879    lt_cv_dlopen="dlopen"
11880    lt_cv_dlopen_libs=
11881    ;;
11882
11883  darwin*)
11884  # if libdl is installed we need to link against it
11885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11886$as_echo_n "checking for dlopen in -ldl... " >&6; }
11887if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11888  $as_echo_n "(cached) " >&6
11889else
11890  ac_check_lib_save_LIBS=$LIBS
11891LIBS="-ldl  $LIBS"
11892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893/* end confdefs.h.  */
11894
11895/* Override any GCC internal prototype to avoid an error.
11896   Use char because int might match the return type of a GCC
11897   builtin and then its argument prototype would still apply.  */
11898#ifdef __cplusplus
11899extern "C"
11900#endif
11901char dlopen ();
11902int
11903main ()
11904{
11905return dlopen ();
11906  ;
11907  return 0;
11908}
11909_ACEOF
11910if ac_fn_c_try_link "$LINENO"; then :
11911  ac_cv_lib_dl_dlopen=yes
11912else
11913  ac_cv_lib_dl_dlopen=no
11914fi
11915rm -f core conftest.err conftest.$ac_objext \
11916    conftest$ac_exeext conftest.$ac_ext
11917LIBS=$ac_check_lib_save_LIBS
11918fi
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11920$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11921if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11922  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11923else
11924
11925    lt_cv_dlopen="dyld"
11926    lt_cv_dlopen_libs=
11927    lt_cv_dlopen_self=yes
11928
11929fi
11930
11931    ;;
11932
11933  *)
11934    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11935if test "x$ac_cv_func_shl_load" = x""yes; then :
11936  lt_cv_dlopen="shl_load"
11937else
11938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11939$as_echo_n "checking for shl_load in -ldld... " >&6; }
11940if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11941  $as_echo_n "(cached) " >&6
11942else
11943  ac_check_lib_save_LIBS=$LIBS
11944LIBS="-ldld  $LIBS"
11945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h.  */
11947
11948/* Override any GCC internal prototype to avoid an error.
11949   Use char because int might match the return type of a GCC
11950   builtin and then its argument prototype would still apply.  */
11951#ifdef __cplusplus
11952extern "C"
11953#endif
11954char shl_load ();
11955int
11956main ()
11957{
11958return shl_load ();
11959  ;
11960  return 0;
11961}
11962_ACEOF
11963if ac_fn_c_try_link "$LINENO"; then :
11964  ac_cv_lib_dld_shl_load=yes
11965else
11966  ac_cv_lib_dld_shl_load=no
11967fi
11968rm -f core conftest.err conftest.$ac_objext \
11969    conftest$ac_exeext conftest.$ac_ext
11970LIBS=$ac_check_lib_save_LIBS
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11973$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11974if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11975  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11976else
11977  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11978if test "x$ac_cv_func_dlopen" = x""yes; then :
11979  lt_cv_dlopen="dlopen"
11980else
11981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11982$as_echo_n "checking for dlopen in -ldl... " >&6; }
11983if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11984  $as_echo_n "(cached) " >&6
11985else
11986  ac_check_lib_save_LIBS=$LIBS
11987LIBS="-ldl  $LIBS"
11988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989/* end confdefs.h.  */
11990
11991/* Override any GCC internal prototype to avoid an error.
11992   Use char because int might match the return type of a GCC
11993   builtin and then its argument prototype would still apply.  */
11994#ifdef __cplusplus
11995extern "C"
11996#endif
11997char dlopen ();
11998int
11999main ()
12000{
12001return dlopen ();
12002  ;
12003  return 0;
12004}
12005_ACEOF
12006if ac_fn_c_try_link "$LINENO"; then :
12007  ac_cv_lib_dl_dlopen=yes
12008else
12009  ac_cv_lib_dl_dlopen=no
12010fi
12011rm -f core conftest.err conftest.$ac_objext \
12012    conftest$ac_exeext conftest.$ac_ext
12013LIBS=$ac_check_lib_save_LIBS
12014fi
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12016$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12017if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12018  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12019else
12020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12021$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12022if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025  ac_check_lib_save_LIBS=$LIBS
12026LIBS="-lsvld  $LIBS"
12027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h.  */
12029
12030/* Override any GCC internal prototype to avoid an error.
12031   Use char because int might match the return type of a GCC
12032   builtin and then its argument prototype would still apply.  */
12033#ifdef __cplusplus
12034extern "C"
12035#endif
12036char dlopen ();
12037int
12038main ()
12039{
12040return dlopen ();
12041  ;
12042  return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_link "$LINENO"; then :
12046  ac_cv_lib_svld_dlopen=yes
12047else
12048  ac_cv_lib_svld_dlopen=no
12049fi
12050rm -f core conftest.err conftest.$ac_objext \
12051    conftest$ac_exeext conftest.$ac_ext
12052LIBS=$ac_check_lib_save_LIBS
12053fi
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12055$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12056if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12057  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12058else
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12060$as_echo_n "checking for dld_link in -ldld... " >&6; }
12061if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12062  $as_echo_n "(cached) " >&6
12063else
12064  ac_check_lib_save_LIBS=$LIBS
12065LIBS="-ldld  $LIBS"
12066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h.  */
12068
12069/* Override any GCC internal prototype to avoid an error.
12070   Use char because int might match the return type of a GCC
12071   builtin and then its argument prototype would still apply.  */
12072#ifdef __cplusplus
12073extern "C"
12074#endif
12075char dld_link ();
12076int
12077main ()
12078{
12079return dld_link ();
12080  ;
12081  return 0;
12082}
12083_ACEOF
12084if ac_fn_c_try_link "$LINENO"; then :
12085  ac_cv_lib_dld_dld_link=yes
12086else
12087  ac_cv_lib_dld_dld_link=no
12088fi
12089rm -f core conftest.err conftest.$ac_objext \
12090    conftest$ac_exeext conftest.$ac_ext
12091LIBS=$ac_check_lib_save_LIBS
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12094$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12095if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12096  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12097fi
12098
12099
12100fi
12101
12102
12103fi
12104
12105
12106fi
12107
12108
12109fi
12110
12111
12112fi
12113
12114    ;;
12115  esac
12116
12117  if test "x$lt_cv_dlopen" != xno; then
12118    enable_dlopen=yes
12119  else
12120    enable_dlopen=no
12121  fi
12122
12123  case $lt_cv_dlopen in
12124  dlopen)
12125    save_CPPFLAGS="$CPPFLAGS"
12126    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12127
12128    save_LDFLAGS="$LDFLAGS"
12129    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12130
12131    save_LIBS="$LIBS"
12132    LIBS="$lt_cv_dlopen_libs $LIBS"
12133
12134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12135$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12136if test "${lt_cv_dlopen_self+set}" = set; then :
12137  $as_echo_n "(cached) " >&6
12138else
12139  	  if test "$cross_compiling" = yes; then :
12140  lt_cv_dlopen_self=cross
12141else
12142  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12143  lt_status=$lt_dlunknown
12144  cat > conftest.$ac_ext <<_LT_EOF
12145#line 12145 "configure"
12146#include "confdefs.h"
12147
12148#if HAVE_DLFCN_H
12149#include <dlfcn.h>
12150#endif
12151
12152#include <stdio.h>
12153
12154#ifdef RTLD_GLOBAL
12155#  define LT_DLGLOBAL		RTLD_GLOBAL
12156#else
12157#  ifdef DL_GLOBAL
12158#    define LT_DLGLOBAL		DL_GLOBAL
12159#  else
12160#    define LT_DLGLOBAL		0
12161#  endif
12162#endif
12163
12164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12165   find out it does not work in some platform. */
12166#ifndef LT_DLLAZY_OR_NOW
12167#  ifdef RTLD_LAZY
12168#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12169#  else
12170#    ifdef DL_LAZY
12171#      define LT_DLLAZY_OR_NOW		DL_LAZY
12172#    else
12173#      ifdef RTLD_NOW
12174#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12175#      else
12176#        ifdef DL_NOW
12177#          define LT_DLLAZY_OR_NOW	DL_NOW
12178#        else
12179#          define LT_DLLAZY_OR_NOW	0
12180#        endif
12181#      endif
12182#    endif
12183#  endif
12184#endif
12185
12186/* When -fvisbility=hidden is used, assume the code has been annotated
12187   correspondingly for the symbols needed.  */
12188#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12189void fnord () __attribute__((visibility("default")));
12190#endif
12191
12192void fnord () { int i=42; }
12193int main ()
12194{
12195  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12196  int status = $lt_dlunknown;
12197
12198  if (self)
12199    {
12200      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12201      else
12202        {
12203	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12204          else puts (dlerror ());
12205	}
12206      /* dlclose (self); */
12207    }
12208  else
12209    puts (dlerror ());
12210
12211  return status;
12212}
12213_LT_EOF
12214  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12215  (eval $ac_link) 2>&5
12216  ac_status=$?
12217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12219    (./conftest; exit; ) >&5 2>/dev/null
12220    lt_status=$?
12221    case x$lt_status in
12222      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12223      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12224      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12225    esac
12226  else :
12227    # compilation failed
12228    lt_cv_dlopen_self=no
12229  fi
12230fi
12231rm -fr conftest*
12232
12233
12234fi
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12236$as_echo "$lt_cv_dlopen_self" >&6; }
12237
12238    if test "x$lt_cv_dlopen_self" = xyes; then
12239      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12240      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12241$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12242if test "${lt_cv_dlopen_self_static+set}" = set; then :
12243  $as_echo_n "(cached) " >&6
12244else
12245  	  if test "$cross_compiling" = yes; then :
12246  lt_cv_dlopen_self_static=cross
12247else
12248  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12249  lt_status=$lt_dlunknown
12250  cat > conftest.$ac_ext <<_LT_EOF
12251#line 12251 "configure"
12252#include "confdefs.h"
12253
12254#if HAVE_DLFCN_H
12255#include <dlfcn.h>
12256#endif
12257
12258#include <stdio.h>
12259
12260#ifdef RTLD_GLOBAL
12261#  define LT_DLGLOBAL		RTLD_GLOBAL
12262#else
12263#  ifdef DL_GLOBAL
12264#    define LT_DLGLOBAL		DL_GLOBAL
12265#  else
12266#    define LT_DLGLOBAL		0
12267#  endif
12268#endif
12269
12270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12271   find out it does not work in some platform. */
12272#ifndef LT_DLLAZY_OR_NOW
12273#  ifdef RTLD_LAZY
12274#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12275#  else
12276#    ifdef DL_LAZY
12277#      define LT_DLLAZY_OR_NOW		DL_LAZY
12278#    else
12279#      ifdef RTLD_NOW
12280#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12281#      else
12282#        ifdef DL_NOW
12283#          define LT_DLLAZY_OR_NOW	DL_NOW
12284#        else
12285#          define LT_DLLAZY_OR_NOW	0
12286#        endif
12287#      endif
12288#    endif
12289#  endif
12290#endif
12291
12292/* When -fvisbility=hidden is used, assume the code has been annotated
12293   correspondingly for the symbols needed.  */
12294#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12295void fnord () __attribute__((visibility("default")));
12296#endif
12297
12298void fnord () { int i=42; }
12299int main ()
12300{
12301  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12302  int status = $lt_dlunknown;
12303
12304  if (self)
12305    {
12306      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12307      else
12308        {
12309	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12310          else puts (dlerror ());
12311	}
12312      /* dlclose (self); */
12313    }
12314  else
12315    puts (dlerror ());
12316
12317  return status;
12318}
12319_LT_EOF
12320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12321  (eval $ac_link) 2>&5
12322  ac_status=$?
12323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12325    (./conftest; exit; ) >&5 2>/dev/null
12326    lt_status=$?
12327    case x$lt_status in
12328      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12329      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12330      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12331    esac
12332  else :
12333    # compilation failed
12334    lt_cv_dlopen_self_static=no
12335  fi
12336fi
12337rm -fr conftest*
12338
12339
12340fi
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12342$as_echo "$lt_cv_dlopen_self_static" >&6; }
12343    fi
12344
12345    CPPFLAGS="$save_CPPFLAGS"
12346    LDFLAGS="$save_LDFLAGS"
12347    LIBS="$save_LIBS"
12348    ;;
12349  esac
12350
12351  case $lt_cv_dlopen_self in
12352  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12353  *) enable_dlopen_self=unknown ;;
12354  esac
12355
12356  case $lt_cv_dlopen_self_static in
12357  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12358  *) enable_dlopen_self_static=unknown ;;
12359  esac
12360fi
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378striplib=
12379old_striplib=
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12381$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12382if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12383  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12384  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386$as_echo "yes" >&6; }
12387else
12388# FIXME - insert some real tests, host_os isn't really good enough
12389  case $host_os in
12390  darwin*)
12391    if test -n "$STRIP" ; then
12392      striplib="$STRIP -x"
12393      old_striplib="$STRIP -S"
12394      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12395$as_echo "yes" >&6; }
12396    else
12397      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398$as_echo "no" >&6; }
12399    fi
12400    ;;
12401  *)
12402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
12404    ;;
12405  esac
12406fi
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419  # Report which library types will actually be built
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12421$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12423$as_echo "$can_build_shared" >&6; }
12424
12425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12426$as_echo_n "checking whether to build shared libraries... " >&6; }
12427  test "$can_build_shared" = "no" && enable_shared=no
12428
12429  # On AIX, shared libraries and static libraries use the same namespace, and
12430  # are all built from PIC.
12431  case $host_os in
12432  aix3*)
12433    test "$enable_shared" = yes && enable_static=no
12434    if test -n "$RANLIB"; then
12435      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12436      postinstall_cmds='$RANLIB $lib'
12437    fi
12438    ;;
12439
12440  aix[4-9]*)
12441    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12442      test "$enable_shared" = yes && enable_static=no
12443    fi
12444    ;;
12445  esac
12446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12447$as_echo "$enable_shared" >&6; }
12448
12449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12450$as_echo_n "checking whether to build static libraries... " >&6; }
12451  # Make sure either enable_shared or enable_static is yes.
12452  test "$enable_shared" = yes || enable_static=yes
12453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12454$as_echo "$enable_static" >&6; }
12455
12456
12457
12458
12459fi
12460ac_ext=c
12461ac_cpp='$CPP $CPPFLAGS'
12462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
12466CC="$lt_save_CC"
12467
12468      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12469    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12470    (test "X$CXX" != "Xg++"))) ; then
12471  ac_ext=cpp
12472ac_cpp='$CXXCPP $CPPFLAGS'
12473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12477$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12478if test -z "$CXXCPP"; then
12479  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12480  $as_echo_n "(cached) " >&6
12481else
12482      # Double quotes because CXXCPP needs to be expanded
12483    for CXXCPP in "$CXX -E" "/lib/cpp"
12484    do
12485      ac_preproc_ok=false
12486for ac_cxx_preproc_warn_flag in '' yes
12487do
12488  # Use a header file that comes with gcc, so configuring glibc
12489  # with a fresh cross-compiler works.
12490  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491  # <limits.h> exists even on freestanding compilers.
12492  # On the NeXT, cc -E runs the code through the compiler's parser,
12493  # not just through cpp. "Syntax error" is here to catch this case.
12494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h.  */
12496#ifdef __STDC__
12497# include <limits.h>
12498#else
12499# include <assert.h>
12500#endif
12501		     Syntax error
12502_ACEOF
12503if ac_fn_cxx_try_cpp "$LINENO"; then :
12504
12505else
12506  # Broken: fails on valid input.
12507continue
12508fi
12509rm -f conftest.err conftest.$ac_ext
12510
12511  # OK, works on sane cases.  Now check whether nonexistent headers
12512  # can be detected and how.
12513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h.  */
12515#include <ac_nonexistent.h>
12516_ACEOF
12517if ac_fn_cxx_try_cpp "$LINENO"; then :
12518  # Broken: success on invalid input.
12519continue
12520else
12521  # Passes both tests.
12522ac_preproc_ok=:
12523break
12524fi
12525rm -f conftest.err conftest.$ac_ext
12526
12527done
12528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12529rm -f conftest.err conftest.$ac_ext
12530if $ac_preproc_ok; then :
12531  break
12532fi
12533
12534    done
12535    ac_cv_prog_CXXCPP=$CXXCPP
12536
12537fi
12538  CXXCPP=$ac_cv_prog_CXXCPP
12539else
12540  ac_cv_prog_CXXCPP=$CXXCPP
12541fi
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12543$as_echo "$CXXCPP" >&6; }
12544ac_preproc_ok=false
12545for ac_cxx_preproc_warn_flag in '' yes
12546do
12547  # Use a header file that comes with gcc, so configuring glibc
12548  # with a fresh cross-compiler works.
12549  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12550  # <limits.h> exists even on freestanding compilers.
12551  # On the NeXT, cc -E runs the code through the compiler's parser,
12552  # not just through cpp. "Syntax error" is here to catch this case.
12553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554/* end confdefs.h.  */
12555#ifdef __STDC__
12556# include <limits.h>
12557#else
12558# include <assert.h>
12559#endif
12560		     Syntax error
12561_ACEOF
12562if ac_fn_cxx_try_cpp "$LINENO"; then :
12563
12564else
12565  # Broken: fails on valid input.
12566continue
12567fi
12568rm -f conftest.err conftest.$ac_ext
12569
12570  # OK, works on sane cases.  Now check whether nonexistent headers
12571  # can be detected and how.
12572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573/* end confdefs.h.  */
12574#include <ac_nonexistent.h>
12575_ACEOF
12576if ac_fn_cxx_try_cpp "$LINENO"; then :
12577  # Broken: success on invalid input.
12578continue
12579else
12580  # Passes both tests.
12581ac_preproc_ok=:
12582break
12583fi
12584rm -f conftest.err conftest.$ac_ext
12585
12586done
12587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12588rm -f conftest.err conftest.$ac_ext
12589if $ac_preproc_ok; then :
12590
12591else
12592  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12594as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12595See \`config.log' for more details." "$LINENO" 5; }
12596fi
12597
12598ac_ext=c
12599ac_cpp='$CPP $CPPFLAGS'
12600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602ac_compiler_gnu=$ac_cv_c_compiler_gnu
12603
12604else
12605  _lt_caught_CXX_error=yes
12606fi
12607
12608ac_ext=cpp
12609ac_cpp='$CXXCPP $CPPFLAGS'
12610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12613
12614archive_cmds_need_lc_CXX=no
12615allow_undefined_flag_CXX=
12616always_export_symbols_CXX=no
12617archive_expsym_cmds_CXX=
12618compiler_needs_object_CXX=no
12619export_dynamic_flag_spec_CXX=
12620hardcode_direct_CXX=no
12621hardcode_direct_absolute_CXX=no
12622hardcode_libdir_flag_spec_CXX=
12623hardcode_libdir_flag_spec_ld_CXX=
12624hardcode_libdir_separator_CXX=
12625hardcode_minus_L_CXX=no
12626hardcode_shlibpath_var_CXX=unsupported
12627hardcode_automatic_CXX=no
12628inherit_rpath_CXX=no
12629module_cmds_CXX=
12630module_expsym_cmds_CXX=
12631link_all_deplibs_CXX=unknown
12632old_archive_cmds_CXX=$old_archive_cmds
12633reload_flag_CXX=$reload_flag
12634reload_cmds_CXX=$reload_cmds
12635no_undefined_flag_CXX=
12636whole_archive_flag_spec_CXX=
12637enable_shared_with_static_runtimes_CXX=no
12638
12639# Source file extension for C++ test sources.
12640ac_ext=cpp
12641
12642# Object file extension for compiled C++ test sources.
12643objext=o
12644objext_CXX=$objext
12645
12646# No sense in running all these tests if we already determined that
12647# the CXX compiler isn't working.  Some variables (like enable_shared)
12648# are currently assumed to apply to all compilers on this platform,
12649# and will be corrupted by setting them based on a non-working compiler.
12650if test "$_lt_caught_CXX_error" != yes; then
12651  # Code to be used in simple compile tests
12652  lt_simple_compile_test_code="int some_variable = 0;"
12653
12654  # Code to be used in simple link tests
12655  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12656
12657  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12658
12659
12660
12661
12662
12663
12664# If no C compiler was specified, use CC.
12665LTCC=${LTCC-"$CC"}
12666
12667# If no C compiler flags were specified, use CFLAGS.
12668LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12669
12670# Allow CC to be a program name with arguments.
12671compiler=$CC
12672
12673
12674  # save warnings/boilerplate of simple test code
12675  ac_outfile=conftest.$ac_objext
12676echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12677eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12678_lt_compiler_boilerplate=`cat conftest.err`
12679$RM conftest*
12680
12681  ac_outfile=conftest.$ac_objext
12682echo "$lt_simple_link_test_code" >conftest.$ac_ext
12683eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12684_lt_linker_boilerplate=`cat conftest.err`
12685$RM -r conftest*
12686
12687
12688  # Allow CC to be a program name with arguments.
12689  lt_save_CC=$CC
12690  lt_save_LD=$LD
12691  lt_save_GCC=$GCC
12692  GCC=$GXX
12693  lt_save_with_gnu_ld=$with_gnu_ld
12694  lt_save_path_LD=$lt_cv_path_LD
12695  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12696    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12697  else
12698    $as_unset lt_cv_prog_gnu_ld
12699  fi
12700  if test -n "${lt_cv_path_LDCXX+set}"; then
12701    lt_cv_path_LD=$lt_cv_path_LDCXX
12702  else
12703    $as_unset lt_cv_path_LD
12704  fi
12705  test -z "${LDCXX+set}" || LD=$LDCXX
12706  CC=${CXX-"c++"}
12707  compiler=$CC
12708  compiler_CXX=$CC
12709  for cc_temp in $compiler""; do
12710  case $cc_temp in
12711    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12712    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12713    \-*) ;;
12714    *) break;;
12715  esac
12716done
12717cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12718
12719
12720  if test -n "$compiler"; then
12721    # We don't want -fno-exception when compiling C++ code, so set the
12722    # no_builtin_flag separately
12723    if test "$GXX" = yes; then
12724      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12725    else
12726      lt_prog_compiler_no_builtin_flag_CXX=
12727    fi
12728
12729    if test "$GXX" = yes; then
12730      # Set up default GNU C++ configuration
12731
12732
12733
12734# Check whether --with-gnu-ld was given.
12735if test "${with_gnu_ld+set}" = set; then :
12736  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12737else
12738  with_gnu_ld=no
12739fi
12740
12741ac_prog=ld
12742if test "$GCC" = yes; then
12743  # Check if gcc -print-prog-name=ld gives a path.
12744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12745$as_echo_n "checking for ld used by $CC... " >&6; }
12746  case $host in
12747  *-*-mingw*)
12748    # gcc leaves a trailing carriage return which upsets mingw
12749    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12750  *)
12751    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12752  esac
12753  case $ac_prog in
12754    # Accept absolute paths.
12755    [\\/]* | ?:[\\/]*)
12756      re_direlt='/[^/][^/]*/\.\./'
12757      # Canonicalize the pathname of ld
12758      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12759      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12760	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12761      done
12762      test -z "$LD" && LD="$ac_prog"
12763      ;;
12764  "")
12765    # If it fails, then pretend we aren't using GCC.
12766    ac_prog=ld
12767    ;;
12768  *)
12769    # If it is relative, then search for the first ld in PATH.
12770    with_gnu_ld=unknown
12771    ;;
12772  esac
12773elif test "$with_gnu_ld" = yes; then
12774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12775$as_echo_n "checking for GNU ld... " >&6; }
12776else
12777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12778$as_echo_n "checking for non-GNU ld... " >&6; }
12779fi
12780if test "${lt_cv_path_LD+set}" = set; then :
12781  $as_echo_n "(cached) " >&6
12782else
12783  if test -z "$LD"; then
12784  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12785  for ac_dir in $PATH; do
12786    IFS="$lt_save_ifs"
12787    test -z "$ac_dir" && ac_dir=.
12788    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12789      lt_cv_path_LD="$ac_dir/$ac_prog"
12790      # Check to see if the program is GNU ld.  I'd rather use --version,
12791      # but apparently some variants of GNU ld only accept -v.
12792      # Break only if it was the GNU/non-GNU ld that we prefer.
12793      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12794      *GNU* | *'with BFD'*)
12795	test "$with_gnu_ld" != no && break
12796	;;
12797      *)
12798	test "$with_gnu_ld" != yes && break
12799	;;
12800      esac
12801    fi
12802  done
12803  IFS="$lt_save_ifs"
12804else
12805  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12806fi
12807fi
12808
12809LD="$lt_cv_path_LD"
12810if test -n "$LD"; then
12811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12812$as_echo "$LD" >&6; }
12813else
12814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815$as_echo "no" >&6; }
12816fi
12817test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12819$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12820if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12821  $as_echo_n "(cached) " >&6
12822else
12823  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12824case `$LD -v 2>&1 </dev/null` in
12825*GNU* | *'with BFD'*)
12826  lt_cv_prog_gnu_ld=yes
12827  ;;
12828*)
12829  lt_cv_prog_gnu_ld=no
12830  ;;
12831esac
12832fi
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12834$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12835with_gnu_ld=$lt_cv_prog_gnu_ld
12836
12837
12838
12839
12840
12841
12842
12843      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12844      # archiving commands below assume that GNU ld is being used.
12845      if test "$with_gnu_ld" = yes; then
12846        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12848
12849        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12850        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12851
12852        # If archive_cmds runs LD, not CC, wlarc should be empty
12853        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12854        #     investigate it a little bit more. (MM)
12855        wlarc='${wl}'
12856
12857        # ancient GNU ld didn't support --whole-archive et. al.
12858        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12859	  $GREP 'no-whole-archive' > /dev/null; then
12860          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12861        else
12862          whole_archive_flag_spec_CXX=
12863        fi
12864      else
12865        with_gnu_ld=no
12866        wlarc=
12867
12868        # A generic and very simple default shared library creation
12869        # command for GNU C++ for the case where it uses the native
12870        # linker, instead of GNU ld.  If possible, this setting should
12871        # overridden to take advantage of the native linker features on
12872        # the platform it is being used on.
12873        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12874      fi
12875
12876      # Commands to make compiler produce verbose output that lists
12877      # what "hidden" libraries, object files and flags are used when
12878      # linking a shared library.
12879      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12880
12881    else
12882      GXX=no
12883      with_gnu_ld=no
12884      wlarc=
12885    fi
12886
12887    # PORTME: fill in a description of your system's C++ link characteristics
12888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12889$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12890    ld_shlibs_CXX=yes
12891    case $host_os in
12892      aix3*)
12893        # FIXME: insert proper C++ library support
12894        ld_shlibs_CXX=no
12895        ;;
12896      aix[4-9]*)
12897        if test "$host_cpu" = ia64; then
12898          # On IA64, the linker does run time linking by default, so we don't
12899          # have to do anything special.
12900          aix_use_runtimelinking=no
12901          exp_sym_flag='-Bexport'
12902          no_entry_flag=""
12903        else
12904          aix_use_runtimelinking=no
12905
12906          # Test if we are trying to use run time linking or normal
12907          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12908          # need to do runtime linking.
12909          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12910	    for ld_flag in $LDFLAGS; do
12911	      case $ld_flag in
12912	      *-brtl*)
12913	        aix_use_runtimelinking=yes
12914	        break
12915	        ;;
12916	      esac
12917	    done
12918	    ;;
12919          esac
12920
12921          exp_sym_flag='-bexport'
12922          no_entry_flag='-bnoentry'
12923        fi
12924
12925        # When large executables or shared objects are built, AIX ld can
12926        # have problems creating the table of contents.  If linking a library
12927        # or program results in "error TOC overflow" add -mminimal-toc to
12928        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12929        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12930
12931        archive_cmds_CXX=''
12932        hardcode_direct_CXX=yes
12933        hardcode_direct_absolute_CXX=yes
12934        hardcode_libdir_separator_CXX=':'
12935        link_all_deplibs_CXX=yes
12936        file_list_spec_CXX='${wl}-f,'
12937
12938        if test "$GXX" = yes; then
12939          case $host_os in aix4.[012]|aix4.[012].*)
12940          # We only want to do this on AIX 4.2 and lower, the check
12941          # below for broken collect2 doesn't work under 4.3+
12942	  collect2name=`${CC} -print-prog-name=collect2`
12943	  if test -f "$collect2name" &&
12944	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12945	  then
12946	    # We have reworked collect2
12947	    :
12948	  else
12949	    # We have old collect2
12950	    hardcode_direct_CXX=unsupported
12951	    # It fails to find uninstalled libraries when the uninstalled
12952	    # path is not listed in the libpath.  Setting hardcode_minus_L
12953	    # to unsupported forces relinking
12954	    hardcode_minus_L_CXX=yes
12955	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12956	    hardcode_libdir_separator_CXX=
12957	  fi
12958          esac
12959          shared_flag='-shared'
12960	  if test "$aix_use_runtimelinking" = yes; then
12961	    shared_flag="$shared_flag "'${wl}-G'
12962	  fi
12963        else
12964          # not using gcc
12965          if test "$host_cpu" = ia64; then
12966	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12967	  # chokes on -Wl,-G. The following line is correct:
12968	  shared_flag='-G'
12969          else
12970	    if test "$aix_use_runtimelinking" = yes; then
12971	      shared_flag='${wl}-G'
12972	    else
12973	      shared_flag='${wl}-bM:SRE'
12974	    fi
12975          fi
12976        fi
12977
12978        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12979        # It seems that -bexpall does not export symbols beginning with
12980        # underscore (_), so it is better to generate a list of symbols to
12981	# export.
12982        always_export_symbols_CXX=yes
12983        if test "$aix_use_runtimelinking" = yes; then
12984          # Warning - without using the other runtime loading flags (-brtl),
12985          # -berok will link without error, but may produce a broken library.
12986          allow_undefined_flag_CXX='-berok'
12987          # Determine the default libpath from the value encoded in an empty
12988          # executable.
12989          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990/* end confdefs.h.  */
12991
12992int
12993main ()
12994{
12995
12996  ;
12997  return 0;
12998}
12999_ACEOF
13000if ac_fn_cxx_try_link "$LINENO"; then :
13001
13002lt_aix_libpath_sed='
13003    /Import File Strings/,/^$/ {
13004	/^0/ {
13005	    s/^0  *\(.*\)$/\1/
13006	    p
13007	}
13008    }'
13009aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13010# Check for a 64-bit object if we didn't find anything.
13011if test -z "$aix_libpath"; then
13012  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13013fi
13014fi
13015rm -f core conftest.err conftest.$ac_objext \
13016    conftest$ac_exeext conftest.$ac_ext
13017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13018
13019          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13020
13021          archive_expsym_cmds_CXX='$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"
13022        else
13023          if test "$host_cpu" = ia64; then
13024	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13025	    allow_undefined_flag_CXX="-z nodefs"
13026	    archive_expsym_cmds_CXX="\$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"
13027          else
13028	    # Determine the default libpath from the value encoded in an
13029	    # empty executable.
13030	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031/* end confdefs.h.  */
13032
13033int
13034main ()
13035{
13036
13037  ;
13038  return 0;
13039}
13040_ACEOF
13041if ac_fn_cxx_try_link "$LINENO"; then :
13042
13043lt_aix_libpath_sed='
13044    /Import File Strings/,/^$/ {
13045	/^0/ {
13046	    s/^0  *\(.*\)$/\1/
13047	    p
13048	}
13049    }'
13050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13051# Check for a 64-bit object if we didn't find anything.
13052if test -z "$aix_libpath"; then
13053  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054fi
13055fi
13056rm -f core conftest.err conftest.$ac_objext \
13057    conftest$ac_exeext conftest.$ac_ext
13058if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13059
13060	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13061	    # Warning - without using the other run time loading flags,
13062	    # -berok will link without error, but may produce a broken library.
13063	    no_undefined_flag_CXX=' ${wl}-bernotok'
13064	    allow_undefined_flag_CXX=' ${wl}-berok'
13065	    if test "$with_gnu_ld" = yes; then
13066	      # We only use this code for GNU lds that support --whole-archive.
13067	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13068	    else
13069	      # Exported symbols can be pulled into shared objects from archives
13070	      whole_archive_flag_spec_CXX='$convenience'
13071	    fi
13072	    archive_cmds_need_lc_CXX=yes
13073	    # This is similar to how AIX traditionally builds its shared
13074	    # libraries.
13075	    archive_expsym_cmds_CXX="\$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'
13076          fi
13077        fi
13078        ;;
13079
13080      beos*)
13081	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13082	  allow_undefined_flag_CXX=unsupported
13083	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13084	  # support --undefined.  This deserves some investigation.  FIXME
13085	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086	else
13087	  ld_shlibs_CXX=no
13088	fi
13089	;;
13090
13091      chorus*)
13092        case $cc_basename in
13093          *)
13094	  # FIXME: insert proper C++ library support
13095	  ld_shlibs_CXX=no
13096	  ;;
13097        esac
13098        ;;
13099
13100      cygwin* | mingw* | pw32* | cegcc*)
13101        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13102        # as there is no search path for DLLs.
13103        hardcode_libdir_flag_spec_CXX='-L$libdir'
13104        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13105        allow_undefined_flag_CXX=unsupported
13106        always_export_symbols_CXX=no
13107        enable_shared_with_static_runtimes_CXX=yes
13108
13109        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13110          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13111          # If the export-symbols file already is a .def file (1st line
13112          # is EXPORTS), use it as is; otherwise, prepend...
13113          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13114	    cp $export_symbols $output_objdir/$soname.def;
13115          else
13116	    echo EXPORTS > $output_objdir/$soname.def;
13117	    cat $export_symbols >> $output_objdir/$soname.def;
13118          fi~
13119          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13120        else
13121          ld_shlibs_CXX=no
13122        fi
13123        ;;
13124      darwin* | rhapsody*)
13125
13126
13127  archive_cmds_need_lc_CXX=no
13128  hardcode_direct_CXX=no
13129  hardcode_automatic_CXX=yes
13130  hardcode_shlibpath_var_CXX=unsupported
13131  if test "$lt_cv_ld_force_load" = "yes"; then
13132    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13133  else
13134    whole_archive_flag_spec_CXX=''
13135  fi
13136  link_all_deplibs_CXX=yes
13137  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13138  case $cc_basename in
13139     ifort*) _lt_dar_can_shared=yes ;;
13140     *) _lt_dar_can_shared=$GCC ;;
13141  esac
13142  if test "$_lt_dar_can_shared" = "yes"; then
13143    output_verbose_link_cmd=func_echo_all
13144    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13145    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13146    archive_expsym_cmds_CXX="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}"
13147    module_expsym_cmds_CXX="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}"
13148       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13149      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13150      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13151    fi
13152
13153  else
13154  ld_shlibs_CXX=no
13155  fi
13156
13157	;;
13158
13159      dgux*)
13160        case $cc_basename in
13161          ec++*)
13162	    # FIXME: insert proper C++ library support
13163	    ld_shlibs_CXX=no
13164	    ;;
13165          ghcx*)
13166	    # Green Hills C++ Compiler
13167	    # FIXME: insert proper C++ library support
13168	    ld_shlibs_CXX=no
13169	    ;;
13170          *)
13171	    # FIXME: insert proper C++ library support
13172	    ld_shlibs_CXX=no
13173	    ;;
13174        esac
13175        ;;
13176
13177      freebsd[12]*)
13178        # C++ shared libraries reported to be fairly broken before
13179	# switch to ELF
13180        ld_shlibs_CXX=no
13181        ;;
13182
13183      freebsd-elf*)
13184        archive_cmds_need_lc_CXX=no
13185        ;;
13186
13187      freebsd* | dragonfly*)
13188        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13189        # conventions
13190        ld_shlibs_CXX=yes
13191        ;;
13192
13193      gnu*)
13194        ;;
13195
13196      haiku*)
13197        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198        link_all_deplibs_CXX=yes
13199        ;;
13200
13201      hpux9*)
13202        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13203        hardcode_libdir_separator_CXX=:
13204        export_dynamic_flag_spec_CXX='${wl}-E'
13205        hardcode_direct_CXX=yes
13206        hardcode_minus_L_CXX=yes # Not in the search PATH,
13207				             # but as the default
13208				             # location of the library.
13209
13210        case $cc_basename in
13211          CC*)
13212            # FIXME: insert proper C++ library support
13213            ld_shlibs_CXX=no
13214            ;;
13215          aCC*)
13216            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13217            # Commands to make compiler produce verbose output that lists
13218            # what "hidden" libraries, object files and flags are used when
13219            # linking a shared library.
13220            #
13221            # There doesn't appear to be a way to prevent this compiler from
13222            # explicitly linking system object files so we need to strip them
13223            # from the output so that they don't get included in the library
13224            # dependencies.
13225            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13226            ;;
13227          *)
13228            if test "$GXX" = yes; then
13229              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13230            else
13231              # FIXME: insert proper C++ library support
13232              ld_shlibs_CXX=no
13233            fi
13234            ;;
13235        esac
13236        ;;
13237
13238      hpux10*|hpux11*)
13239        if test $with_gnu_ld = no; then
13240	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13241	  hardcode_libdir_separator_CXX=:
13242
13243          case $host_cpu in
13244            hppa*64*|ia64*)
13245              ;;
13246            *)
13247	      export_dynamic_flag_spec_CXX='${wl}-E'
13248              ;;
13249          esac
13250        fi
13251        case $host_cpu in
13252          hppa*64*|ia64*)
13253            hardcode_direct_CXX=no
13254            hardcode_shlibpath_var_CXX=no
13255            ;;
13256          *)
13257            hardcode_direct_CXX=yes
13258            hardcode_direct_absolute_CXX=yes
13259            hardcode_minus_L_CXX=yes # Not in the search PATH,
13260					         # but as the default
13261					         # location of the library.
13262            ;;
13263        esac
13264
13265        case $cc_basename in
13266          CC*)
13267	    # FIXME: insert proper C++ library support
13268	    ld_shlibs_CXX=no
13269	    ;;
13270          aCC*)
13271	    case $host_cpu in
13272	      hppa*64*)
13273	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274	        ;;
13275	      ia64*)
13276	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13277	        ;;
13278	      *)
13279	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13280	        ;;
13281	    esac
13282	    # Commands to make compiler produce verbose output that lists
13283	    # what "hidden" libraries, object files and flags are used when
13284	    # linking a shared library.
13285	    #
13286	    # There doesn't appear to be a way to prevent this compiler from
13287	    # explicitly linking system object files so we need to strip them
13288	    # from the output so that they don't get included in the library
13289	    # dependencies.
13290	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13291	    ;;
13292          *)
13293	    if test "$GXX" = yes; then
13294	      if test $with_gnu_ld = no; then
13295	        case $host_cpu in
13296	          hppa*64*)
13297	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13298	            ;;
13299	          ia64*)
13300	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13301	            ;;
13302	          *)
13303	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13304	            ;;
13305	        esac
13306	      fi
13307	    else
13308	      # FIXME: insert proper C++ library support
13309	      ld_shlibs_CXX=no
13310	    fi
13311	    ;;
13312        esac
13313        ;;
13314
13315      interix[3-9]*)
13316	hardcode_direct_CXX=no
13317	hardcode_shlibpath_var_CXX=no
13318	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13319	export_dynamic_flag_spec_CXX='${wl}-E'
13320	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13321	# Instead, shared libraries are loaded at an image base (0x10000000 by
13322	# default) and relocated if they conflict, which is a slow very memory
13323	# consuming and fragmenting process.  To avoid this, we pick a random,
13324	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13325	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13326	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13327	archive_expsym_cmds_CXX='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'
13328	;;
13329      irix5* | irix6*)
13330        case $cc_basename in
13331          CC*)
13332	    # SGI C++
13333	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13334
13335	    # Archives containing C++ object files must be created using
13336	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13337	    # necessary to make sure instantiated templates are included
13338	    # in the archive.
13339	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13340	    ;;
13341          *)
13342	    if test "$GXX" = yes; then
13343	      if test "$with_gnu_ld" = no; then
13344	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13345	      else
13346	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13347	      fi
13348	    fi
13349	    link_all_deplibs_CXX=yes
13350	    ;;
13351        esac
13352        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13353        hardcode_libdir_separator_CXX=:
13354        inherit_rpath_CXX=yes
13355        ;;
13356
13357      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13358        case $cc_basename in
13359          KCC*)
13360	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13361
13362	    # KCC will only create a shared library if the output file
13363	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13364	    # to its proper name (with version) after linking.
13365	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13366	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13367	    # Commands to make compiler produce verbose output that lists
13368	    # what "hidden" libraries, object files and flags are used when
13369	    # linking a shared library.
13370	    #
13371	    # There doesn't appear to be a way to prevent this compiler from
13372	    # explicitly linking system object files so we need to strip them
13373	    # from the output so that they don't get included in the library
13374	    # dependencies.
13375	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13376
13377	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13378	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13379
13380	    # Archives containing C++ object files must be created using
13381	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13382	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13383	    ;;
13384	  icpc* | ecpc* )
13385	    # Intel C++
13386	    with_gnu_ld=yes
13387	    # version 8.0 and above of icpc choke on multiply defined symbols
13388	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13389	    # earlier do not add the objects themselves.
13390	    case `$CC -V 2>&1` in
13391	      *"Version 7."*)
13392	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13394		;;
13395	      *)  # Version 8.0 or newer
13396	        tmp_idyn=
13397	        case $host_cpu in
13398		  ia64*) tmp_idyn=' -i_dynamic';;
13399		esac
13400	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13402		;;
13403	    esac
13404	    archive_cmds_need_lc_CXX=no
13405	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13406	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13407	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13408	    ;;
13409          pgCC* | pgcpp*)
13410            # Portland Group C++ compiler
13411	    case `$CC -V` in
13412	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13413	      prelink_cmds_CXX='tpldir=Template.dir~
13414		rm -rf $tpldir~
13415		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13416		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13417	      old_archive_cmds_CXX='tpldir=Template.dir~
13418		rm -rf $tpldir~
13419		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13420		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13421		$RANLIB $oldlib'
13422	      archive_cmds_CXX='tpldir=Template.dir~
13423		rm -rf $tpldir~
13424		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13425		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13426	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13427		rm -rf $tpldir~
13428		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13429		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13430	      ;;
13431	    *) # Version 6 and above use weak symbols
13432	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13433	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13434	      ;;
13435	    esac
13436
13437	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13438	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13439	    whole_archive_flag_spec_CXX='${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'
13440            ;;
13441	  cxx*)
13442	    # Compaq C++
13443	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13445
13446	    runpath_var=LD_RUN_PATH
13447	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13448	    hardcode_libdir_separator_CXX=:
13449
13450	    # Commands to make compiler produce verbose output that lists
13451	    # what "hidden" libraries, object files and flags are used when
13452	    # linking a shared library.
13453	    #
13454	    # There doesn't appear to be a way to prevent this compiler from
13455	    # explicitly linking system object files so we need to strip them
13456	    # from the output so that they don't get included in the library
13457	    # dependencies.
13458	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13459	    ;;
13460	  xl* | mpixl* | bgxl*)
13461	    # IBM XL 8.0 on PPC, with GNU ld
13462	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13463	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13464	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13465	    if test "x$supports_anon_versioning" = xyes; then
13466	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13467		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13468		echo "local: *; };" >> $output_objdir/$libname.ver~
13469		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13470	    fi
13471	    ;;
13472	  *)
13473	    case `$CC -V 2>&1 | sed 5q` in
13474	    *Sun\ C*)
13475	      # Sun C++ 5.9
13476	      no_undefined_flag_CXX=' -zdefs'
13477	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13478	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13479	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13480	      whole_archive_flag_spec_CXX='${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'
13481	      compiler_needs_object_CXX=yes
13482
13483	      # Not sure whether something based on
13484	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13485	      # would be better.
13486	      output_verbose_link_cmd='func_echo_all'
13487
13488	      # Archives containing C++ object files must be created using
13489	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13490	      # necessary to make sure instantiated templates are included
13491	      # in the archive.
13492	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13493	      ;;
13494	    esac
13495	    ;;
13496	esac
13497	;;
13498
13499      lynxos*)
13500        # FIXME: insert proper C++ library support
13501	ld_shlibs_CXX=no
13502	;;
13503
13504      m88k*)
13505        # FIXME: insert proper C++ library support
13506        ld_shlibs_CXX=no
13507	;;
13508
13509      mvs*)
13510        case $cc_basename in
13511          cxx*)
13512	    # FIXME: insert proper C++ library support
13513	    ld_shlibs_CXX=no
13514	    ;;
13515	  *)
13516	    # FIXME: insert proper C++ library support
13517	    ld_shlibs_CXX=no
13518	    ;;
13519	esac
13520	;;
13521
13522      netbsd*)
13523        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13524	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13525	  wlarc=
13526	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13527	  hardcode_direct_CXX=yes
13528	  hardcode_shlibpath_var_CXX=no
13529	fi
13530	# Workaround some broken pre-1.5 toolchains
13531	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13532	;;
13533
13534      *nto* | *qnx*)
13535        ld_shlibs_CXX=yes
13536	;;
13537
13538      openbsd2*)
13539        # C++ shared libraries are fairly broken
13540	ld_shlibs_CXX=no
13541	;;
13542
13543      openbsd*)
13544	if test -f /usr/libexec/ld.so; then
13545	  hardcode_direct_CXX=yes
13546	  hardcode_shlibpath_var_CXX=no
13547	  hardcode_direct_absolute_CXX=yes
13548	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13549	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13550	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13551	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13552	    export_dynamic_flag_spec_CXX='${wl}-E'
13553	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13554	  fi
13555	  output_verbose_link_cmd=func_echo_all
13556	else
13557	  ld_shlibs_CXX=no
13558	fi
13559	;;
13560
13561      osf3* | osf4* | osf5*)
13562        case $cc_basename in
13563          KCC*)
13564	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13565
13566	    # KCC will only create a shared library if the output file
13567	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13568	    # to its proper name (with version) after linking.
13569	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13570
13571	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13572	    hardcode_libdir_separator_CXX=:
13573
13574	    # Archives containing C++ object files must be created using
13575	    # the KAI C++ compiler.
13576	    case $host in
13577	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13578	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13579	    esac
13580	    ;;
13581          RCC*)
13582	    # Rational C++ 2.4.1
13583	    # FIXME: insert proper C++ library support
13584	    ld_shlibs_CXX=no
13585	    ;;
13586          cxx*)
13587	    case $host in
13588	      osf3*)
13589	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13590	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13591	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13592		;;
13593	      *)
13594	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13595	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13596	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13597	          echo "-hidden">> $lib.exp~
13598	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13599	          $RM $lib.exp'
13600	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13601		;;
13602	    esac
13603
13604	    hardcode_libdir_separator_CXX=:
13605
13606	    # Commands to make compiler produce verbose output that lists
13607	    # what "hidden" libraries, object files and flags are used when
13608	    # linking a shared library.
13609	    #
13610	    # There doesn't appear to be a way to prevent this compiler from
13611	    # explicitly linking system object files so we need to strip them
13612	    # from the output so that they don't get included in the library
13613	    # dependencies.
13614	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13615	    ;;
13616	  *)
13617	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13618	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13619	      case $host in
13620	        osf3*)
13621	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13622		  ;;
13623	        *)
13624	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13625		  ;;
13626	      esac
13627
13628	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13629	      hardcode_libdir_separator_CXX=:
13630
13631	      # Commands to make compiler produce verbose output that lists
13632	      # what "hidden" libraries, object files and flags are used when
13633	      # linking a shared library.
13634	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13635
13636	    else
13637	      # FIXME: insert proper C++ library support
13638	      ld_shlibs_CXX=no
13639	    fi
13640	    ;;
13641        esac
13642        ;;
13643
13644      psos*)
13645        # FIXME: insert proper C++ library support
13646        ld_shlibs_CXX=no
13647        ;;
13648
13649      sunos4*)
13650        case $cc_basename in
13651          CC*)
13652	    # Sun C++ 4.x
13653	    # FIXME: insert proper C++ library support
13654	    ld_shlibs_CXX=no
13655	    ;;
13656          lcc*)
13657	    # Lucid
13658	    # FIXME: insert proper C++ library support
13659	    ld_shlibs_CXX=no
13660	    ;;
13661          *)
13662	    # FIXME: insert proper C++ library support
13663	    ld_shlibs_CXX=no
13664	    ;;
13665        esac
13666        ;;
13667
13668      solaris*)
13669        case $cc_basename in
13670          CC*)
13671	    # Sun C++ 4.2, 5.x and Centerline C++
13672            archive_cmds_need_lc_CXX=yes
13673	    no_undefined_flag_CXX=' -zdefs'
13674	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13675	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13677
13678	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13679	    hardcode_shlibpath_var_CXX=no
13680	    case $host_os in
13681	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13682	      *)
13683		# The compiler driver will combine and reorder linker options,
13684		# but understands `-z linker_flag'.
13685	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13686		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13687	        ;;
13688	    esac
13689	    link_all_deplibs_CXX=yes
13690
13691	    output_verbose_link_cmd='func_echo_all'
13692
13693	    # Archives containing C++ object files must be created using
13694	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13695	    # necessary to make sure instantiated templates are included
13696	    # in the archive.
13697	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13698	    ;;
13699          gcx*)
13700	    # Green Hills C++ Compiler
13701	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13702
13703	    # The C++ compiler must be used to create the archive.
13704	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13705	    ;;
13706          *)
13707	    # GNU C++ compiler with Solaris linker
13708	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13709	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13710	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13711	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13712	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13713		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13714
13715	        # Commands to make compiler produce verbose output that lists
13716	        # what "hidden" libraries, object files and flags are used when
13717	        # linking a shared library.
13718	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13719	      else
13720	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13721	        # platform.
13722	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13723	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13725
13726	        # Commands to make compiler produce verbose output that lists
13727	        # what "hidden" libraries, object files and flags are used when
13728	        # linking a shared library.
13729	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13730	      fi
13731
13732	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13733	      case $host_os in
13734		solaris2.[0-5] | solaris2.[0-5].*) ;;
13735		*)
13736		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13737		  ;;
13738	      esac
13739	    fi
13740	    ;;
13741        esac
13742        ;;
13743
13744    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13745      no_undefined_flag_CXX='${wl}-z,text'
13746      archive_cmds_need_lc_CXX=no
13747      hardcode_shlibpath_var_CXX=no
13748      runpath_var='LD_RUN_PATH'
13749
13750      case $cc_basename in
13751        CC*)
13752	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13753	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13754	  ;;
13755	*)
13756	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13758	  ;;
13759      esac
13760      ;;
13761
13762      sysv5* | sco3.2v5* | sco5v6*)
13763	# Note: We can NOT use -z defs as we might desire, because we do not
13764	# link with -lc, and that would cause any symbols used from libc to
13765	# always be unresolved, which means just about no library would
13766	# ever link correctly.  If we're not using GNU ld we use -z text
13767	# though, which does catch some bad symbols but isn't as heavy-handed
13768	# as -z defs.
13769	no_undefined_flag_CXX='${wl}-z,text'
13770	allow_undefined_flag_CXX='${wl}-z,nodefs'
13771	archive_cmds_need_lc_CXX=no
13772	hardcode_shlibpath_var_CXX=no
13773	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13774	hardcode_libdir_separator_CXX=':'
13775	link_all_deplibs_CXX=yes
13776	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13777	runpath_var='LD_RUN_PATH'
13778
13779	case $cc_basename in
13780          CC*)
13781	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13782	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13784	      '"$old_archive_cmds_CXX"
13785	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13786	      '"$reload_cmds_CXX"
13787	    ;;
13788	  *)
13789	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13791	    ;;
13792	esac
13793      ;;
13794
13795      tandem*)
13796        case $cc_basename in
13797          NCC*)
13798	    # NonStop-UX NCC 3.20
13799	    # FIXME: insert proper C++ library support
13800	    ld_shlibs_CXX=no
13801	    ;;
13802          *)
13803	    # FIXME: insert proper C++ library support
13804	    ld_shlibs_CXX=no
13805	    ;;
13806        esac
13807        ;;
13808
13809      vxworks*)
13810        # FIXME: insert proper C++ library support
13811        ld_shlibs_CXX=no
13812        ;;
13813
13814      *)
13815        # FIXME: insert proper C++ library support
13816        ld_shlibs_CXX=no
13817        ;;
13818    esac
13819
13820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13821$as_echo "$ld_shlibs_CXX" >&6; }
13822    test "$ld_shlibs_CXX" = no && can_build_shared=no
13823
13824    GCC_CXX="$GXX"
13825    LD_CXX="$LD"
13826
13827    ## CAVEAT EMPTOR:
13828    ## There is no encapsulation within the following macros, do not change
13829    ## the running order or otherwise move them around unless you know exactly
13830    ## what you are doing...
13831    # Dependencies to place before and after the object being linked:
13832predep_objects_CXX=
13833postdep_objects_CXX=
13834predeps_CXX=
13835postdeps_CXX=
13836compiler_lib_search_path_CXX=
13837
13838cat > conftest.$ac_ext <<_LT_EOF
13839class Foo
13840{
13841public:
13842  Foo (void) { a = 0; }
13843private:
13844  int a;
13845};
13846_LT_EOF
13847
13848if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13849  (eval $ac_compile) 2>&5
13850  ac_status=$?
13851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852  test $ac_status = 0; }; then
13853  # Parse the compiler output and extract the necessary
13854  # objects, libraries and library flags.
13855
13856  # Sentinel used to keep track of whether or not we are before
13857  # the conftest object file.
13858  pre_test_object_deps_done=no
13859
13860  for p in `eval "$output_verbose_link_cmd"`; do
13861    case $p in
13862
13863    -L* | -R* | -l*)
13864       # Some compilers place space between "-{L,R}" and the path.
13865       # Remove the space.
13866       if test $p = "-L" ||
13867          test $p = "-R"; then
13868	 prev=$p
13869	 continue
13870       else
13871	 prev=
13872       fi
13873
13874       if test "$pre_test_object_deps_done" = no; then
13875	 case $p in
13876	 -L* | -R*)
13877	   # Internal compiler library paths should come after those
13878	   # provided the user.  The postdeps already come after the
13879	   # user supplied libs so there is no need to process them.
13880	   if test -z "$compiler_lib_search_path_CXX"; then
13881	     compiler_lib_search_path_CXX="${prev}${p}"
13882	   else
13883	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13884	   fi
13885	   ;;
13886	 # The "-l" case would never come before the object being
13887	 # linked, so don't bother handling this case.
13888	 esac
13889       else
13890	 if test -z "$postdeps_CXX"; then
13891	   postdeps_CXX="${prev}${p}"
13892	 else
13893	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13894	 fi
13895       fi
13896       ;;
13897
13898    *.$objext)
13899       # This assumes that the test object file only shows up
13900       # once in the compiler output.
13901       if test "$p" = "conftest.$objext"; then
13902	 pre_test_object_deps_done=yes
13903	 continue
13904       fi
13905
13906       if test "$pre_test_object_deps_done" = no; then
13907	 if test -z "$predep_objects_CXX"; then
13908	   predep_objects_CXX="$p"
13909	 else
13910	   predep_objects_CXX="$predep_objects_CXX $p"
13911	 fi
13912       else
13913	 if test -z "$postdep_objects_CXX"; then
13914	   postdep_objects_CXX="$p"
13915	 else
13916	   postdep_objects_CXX="$postdep_objects_CXX $p"
13917	 fi
13918       fi
13919       ;;
13920
13921    *) ;; # Ignore the rest.
13922
13923    esac
13924  done
13925
13926  # Clean up.
13927  rm -f a.out a.exe
13928else
13929  echo "libtool.m4: error: problem compiling CXX test program"
13930fi
13931
13932$RM -f confest.$objext
13933
13934# PORTME: override above test on systems where it is broken
13935case $host_os in
13936interix[3-9]*)
13937  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13938  # hack all around it, let's just trust "g++" to DTRT.
13939  predep_objects_CXX=
13940  postdep_objects_CXX=
13941  postdeps_CXX=
13942  ;;
13943
13944linux*)
13945  case `$CC -V 2>&1 | sed 5q` in
13946  *Sun\ C*)
13947    # Sun C++ 5.9
13948
13949    # The more standards-conforming stlport4 library is
13950    # incompatible with the Cstd library. Avoid specifying
13951    # it if it's in CXXFLAGS. Ignore libCrun as
13952    # -library=stlport4 depends on it.
13953    case " $CXX $CXXFLAGS " in
13954    *" -library=stlport4 "*)
13955      solaris_use_stlport4=yes
13956      ;;
13957    esac
13958
13959    if test "$solaris_use_stlport4" != yes; then
13960      postdeps_CXX='-library=Cstd -library=Crun'
13961    fi
13962    ;;
13963  esac
13964  ;;
13965
13966solaris*)
13967  case $cc_basename in
13968  CC*)
13969    # The more standards-conforming stlport4 library is
13970    # incompatible with the Cstd library. Avoid specifying
13971    # it if it's in CXXFLAGS. Ignore libCrun as
13972    # -library=stlport4 depends on it.
13973    case " $CXX $CXXFLAGS " in
13974    *" -library=stlport4 "*)
13975      solaris_use_stlport4=yes
13976      ;;
13977    esac
13978
13979    # Adding this requires a known-good setup of shared libraries for
13980    # Sun compiler versions before 5.6, else PIC objects from an old
13981    # archive will be linked into the output, leading to subtle bugs.
13982    if test "$solaris_use_stlport4" != yes; then
13983      postdeps_CXX='-library=Cstd -library=Crun'
13984    fi
13985    ;;
13986  esac
13987  ;;
13988esac
13989
13990
13991case " $postdeps_CXX " in
13992*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13993esac
13994 compiler_lib_search_dirs_CXX=
13995if test -n "${compiler_lib_search_path_CXX}"; then
13996 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13997fi
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029    lt_prog_compiler_wl_CXX=
14030lt_prog_compiler_pic_CXX=
14031lt_prog_compiler_static_CXX=
14032
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14034$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14035
14036  # C++ specific cases for pic, static, wl, etc.
14037  if test "$GXX" = yes; then
14038    lt_prog_compiler_wl_CXX='-Wl,'
14039    lt_prog_compiler_static_CXX='-static'
14040
14041    case $host_os in
14042    aix*)
14043      # All AIX code is PIC.
14044      if test "$host_cpu" = ia64; then
14045	# AIX 5 now supports IA64 processor
14046	lt_prog_compiler_static_CXX='-Bstatic'
14047      fi
14048      ;;
14049
14050    amigaos*)
14051      case $host_cpu in
14052      powerpc)
14053            # see comment about AmigaOS4 .so support
14054            lt_prog_compiler_pic_CXX='-fPIC'
14055        ;;
14056      m68k)
14057            # FIXME: we need at least 68020 code to build shared libraries, but
14058            # adding the `-m68020' flag to GCC prevents building anything better,
14059            # like `-m68040'.
14060            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14061        ;;
14062      esac
14063      ;;
14064
14065    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14066      # PIC is the default for these OSes.
14067      ;;
14068    mingw* | cygwin* | os2* | pw32* | cegcc*)
14069      # This hack is so that the source file can tell whether it is being
14070      # built for inclusion in a dll (and should export symbols for example).
14071      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14072      # (--disable-auto-import) libraries
14073      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14074      ;;
14075    darwin* | rhapsody*)
14076      # PIC is the default on this platform
14077      # Common symbols not allowed in MH_DYLIB files
14078      lt_prog_compiler_pic_CXX='-fno-common'
14079      ;;
14080    *djgpp*)
14081      # DJGPP does not support shared libraries at all
14082      lt_prog_compiler_pic_CXX=
14083      ;;
14084    haiku*)
14085      # PIC is the default for Haiku.
14086      # The "-static" flag exists, but is broken.
14087      lt_prog_compiler_static_CXX=
14088      ;;
14089    interix[3-9]*)
14090      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14091      # Instead, we relocate shared libraries at runtime.
14092      ;;
14093    sysv4*MP*)
14094      if test -d /usr/nec; then
14095	lt_prog_compiler_pic_CXX=-Kconform_pic
14096      fi
14097      ;;
14098    hpux*)
14099      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14100      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14101      # sets the default TLS model and affects inlining.
14102      case $host_cpu in
14103      hppa*64*)
14104	;;
14105      *)
14106	lt_prog_compiler_pic_CXX='-fPIC'
14107	;;
14108      esac
14109      ;;
14110    *qnx* | *nto*)
14111      # QNX uses GNU C++, but need to define -shared option too, otherwise
14112      # it will coredump.
14113      lt_prog_compiler_pic_CXX='-fPIC -shared'
14114      ;;
14115    *)
14116      lt_prog_compiler_pic_CXX='-fPIC'
14117      ;;
14118    esac
14119  else
14120    case $host_os in
14121      aix[4-9]*)
14122	# All AIX code is PIC.
14123	if test "$host_cpu" = ia64; then
14124	  # AIX 5 now supports IA64 processor
14125	  lt_prog_compiler_static_CXX='-Bstatic'
14126	else
14127	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14128	fi
14129	;;
14130      chorus*)
14131	case $cc_basename in
14132	cxch68*)
14133	  # Green Hills C++ Compiler
14134	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14135	  ;;
14136	esac
14137	;;
14138      dgux*)
14139	case $cc_basename in
14140	  ec++*)
14141	    lt_prog_compiler_pic_CXX='-KPIC'
14142	    ;;
14143	  ghcx*)
14144	    # Green Hills C++ Compiler
14145	    lt_prog_compiler_pic_CXX='-pic'
14146	    ;;
14147	  *)
14148	    ;;
14149	esac
14150	;;
14151      freebsd* | dragonfly*)
14152	# FreeBSD uses GNU C++
14153	;;
14154      hpux9* | hpux10* | hpux11*)
14155	case $cc_basename in
14156	  CC*)
14157	    lt_prog_compiler_wl_CXX='-Wl,'
14158	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14159	    if test "$host_cpu" != ia64; then
14160	      lt_prog_compiler_pic_CXX='+Z'
14161	    fi
14162	    ;;
14163	  aCC*)
14164	    lt_prog_compiler_wl_CXX='-Wl,'
14165	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14166	    case $host_cpu in
14167	    hppa*64*|ia64*)
14168	      # +Z the default
14169	      ;;
14170	    *)
14171	      lt_prog_compiler_pic_CXX='+Z'
14172	      ;;
14173	    esac
14174	    ;;
14175	  *)
14176	    ;;
14177	esac
14178	;;
14179      interix*)
14180	# This is c89, which is MS Visual C++ (no shared libs)
14181	# Anyone wants to do a port?
14182	;;
14183      irix5* | irix6* | nonstopux*)
14184	case $cc_basename in
14185	  CC*)
14186	    lt_prog_compiler_wl_CXX='-Wl,'
14187	    lt_prog_compiler_static_CXX='-non_shared'
14188	    # CC pic flag -KPIC is the default.
14189	    ;;
14190	  *)
14191	    ;;
14192	esac
14193	;;
14194      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14195	case $cc_basename in
14196	  KCC*)
14197	    # KAI C++ Compiler
14198	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14199	    lt_prog_compiler_pic_CXX='-fPIC'
14200	    ;;
14201	  ecpc* )
14202	    # old Intel C++ for x86_64 which still supported -KPIC.
14203	    lt_prog_compiler_wl_CXX='-Wl,'
14204	    lt_prog_compiler_pic_CXX='-KPIC'
14205	    lt_prog_compiler_static_CXX='-static'
14206	    ;;
14207	  icpc* )
14208	    # Intel C++, used to be incompatible with GCC.
14209	    # ICC 10 doesn't accept -KPIC any more.
14210	    lt_prog_compiler_wl_CXX='-Wl,'
14211	    lt_prog_compiler_pic_CXX='-fPIC'
14212	    lt_prog_compiler_static_CXX='-static'
14213	    ;;
14214	  pgCC* | pgcpp*)
14215	    # Portland Group C++ compiler
14216	    lt_prog_compiler_wl_CXX='-Wl,'
14217	    lt_prog_compiler_pic_CXX='-fpic'
14218	    lt_prog_compiler_static_CXX='-Bstatic'
14219	    ;;
14220	  cxx*)
14221	    # Compaq C++
14222	    # Make sure the PIC flag is empty.  It appears that all Alpha
14223	    # Linux and Compaq Tru64 Unix objects are PIC.
14224	    lt_prog_compiler_pic_CXX=
14225	    lt_prog_compiler_static_CXX='-non_shared'
14226	    ;;
14227	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14228	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14229	    lt_prog_compiler_wl_CXX='-Wl,'
14230	    lt_prog_compiler_pic_CXX='-qpic'
14231	    lt_prog_compiler_static_CXX='-qstaticlink'
14232	    ;;
14233	  *)
14234	    case `$CC -V 2>&1 | sed 5q` in
14235	    *Sun\ C*)
14236	      # Sun C++ 5.9
14237	      lt_prog_compiler_pic_CXX='-KPIC'
14238	      lt_prog_compiler_static_CXX='-Bstatic'
14239	      lt_prog_compiler_wl_CXX='-Qoption ld '
14240	      ;;
14241	    esac
14242	    ;;
14243	esac
14244	;;
14245      lynxos*)
14246	;;
14247      m88k*)
14248	;;
14249      mvs*)
14250	case $cc_basename in
14251	  cxx*)
14252	    lt_prog_compiler_pic_CXX='-W c,exportall'
14253	    ;;
14254	  *)
14255	    ;;
14256	esac
14257	;;
14258      netbsd*)
14259	;;
14260      *qnx* | *nto*)
14261        # QNX uses GNU C++, but need to define -shared option too, otherwise
14262        # it will coredump.
14263        lt_prog_compiler_pic_CXX='-fPIC -shared'
14264        ;;
14265      osf3* | osf4* | osf5*)
14266	case $cc_basename in
14267	  KCC*)
14268	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14269	    ;;
14270	  RCC*)
14271	    # Rational C++ 2.4.1
14272	    lt_prog_compiler_pic_CXX='-pic'
14273	    ;;
14274	  cxx*)
14275	    # Digital/Compaq C++
14276	    lt_prog_compiler_wl_CXX='-Wl,'
14277	    # Make sure the PIC flag is empty.  It appears that all Alpha
14278	    # Linux and Compaq Tru64 Unix objects are PIC.
14279	    lt_prog_compiler_pic_CXX=
14280	    lt_prog_compiler_static_CXX='-non_shared'
14281	    ;;
14282	  *)
14283	    ;;
14284	esac
14285	;;
14286      psos*)
14287	;;
14288      solaris*)
14289	case $cc_basename in
14290	  CC*)
14291	    # Sun C++ 4.2, 5.x and Centerline C++
14292	    lt_prog_compiler_pic_CXX='-KPIC'
14293	    lt_prog_compiler_static_CXX='-Bstatic'
14294	    lt_prog_compiler_wl_CXX='-Qoption ld '
14295	    ;;
14296	  gcx*)
14297	    # Green Hills C++ Compiler
14298	    lt_prog_compiler_pic_CXX='-PIC'
14299	    ;;
14300	  *)
14301	    ;;
14302	esac
14303	;;
14304      sunos4*)
14305	case $cc_basename in
14306	  CC*)
14307	    # Sun C++ 4.x
14308	    lt_prog_compiler_pic_CXX='-pic'
14309	    lt_prog_compiler_static_CXX='-Bstatic'
14310	    ;;
14311	  lcc*)
14312	    # Lucid
14313	    lt_prog_compiler_pic_CXX='-pic'
14314	    ;;
14315	  *)
14316	    ;;
14317	esac
14318	;;
14319      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14320	case $cc_basename in
14321	  CC*)
14322	    lt_prog_compiler_wl_CXX='-Wl,'
14323	    lt_prog_compiler_pic_CXX='-KPIC'
14324	    lt_prog_compiler_static_CXX='-Bstatic'
14325	    ;;
14326	esac
14327	;;
14328      tandem*)
14329	case $cc_basename in
14330	  NCC*)
14331	    # NonStop-UX NCC 3.20
14332	    lt_prog_compiler_pic_CXX='-KPIC'
14333	    ;;
14334	  *)
14335	    ;;
14336	esac
14337	;;
14338      vxworks*)
14339	;;
14340      *)
14341	lt_prog_compiler_can_build_shared_CXX=no
14342	;;
14343    esac
14344  fi
14345
14346case $host_os in
14347  # For platforms which do not support PIC, -DPIC is meaningless:
14348  *djgpp*)
14349    lt_prog_compiler_pic_CXX=
14350    ;;
14351  *)
14352    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14353    ;;
14354esac
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14356$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14357
14358
14359
14360#
14361# Check to make sure the PIC flag actually works.
14362#
14363if test -n "$lt_prog_compiler_pic_CXX"; then
14364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14365$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14366if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14367  $as_echo_n "(cached) " >&6
14368else
14369  lt_cv_prog_compiler_pic_works_CXX=no
14370   ac_outfile=conftest.$ac_objext
14371   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14372   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14373   # Insert the option either (1) after the last *FLAGS variable, or
14374   # (2) before a word containing "conftest.", or (3) at the end.
14375   # Note that $ac_compile itself does not contain backslashes and begins
14376   # with a dollar sign (not a hyphen), so the echo should work correctly.
14377   # The option is referenced via a variable to avoid confusing sed.
14378   lt_compile=`echo "$ac_compile" | $SED \
14379   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14380   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14381   -e 's:$: $lt_compiler_flag:'`
14382   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14383   (eval "$lt_compile" 2>conftest.err)
14384   ac_status=$?
14385   cat conftest.err >&5
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   if (exit $ac_status) && test -s "$ac_outfile"; then
14388     # The compiler can only warn and ignore the option if not recognized
14389     # So say no if there are warnings other than the usual output.
14390     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14391     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14392     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14393       lt_cv_prog_compiler_pic_works_CXX=yes
14394     fi
14395   fi
14396   $RM conftest*
14397
14398fi
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14400$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14401
14402if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14403    case $lt_prog_compiler_pic_CXX in
14404     "" | " "*) ;;
14405     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14406     esac
14407else
14408    lt_prog_compiler_pic_CXX=
14409     lt_prog_compiler_can_build_shared_CXX=no
14410fi
14411
14412fi
14413
14414
14415
14416#
14417# Check to make sure the static flag actually works.
14418#
14419wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14421$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14422if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14423  $as_echo_n "(cached) " >&6
14424else
14425  lt_cv_prog_compiler_static_works_CXX=no
14426   save_LDFLAGS="$LDFLAGS"
14427   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14428   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14429   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14430     # The linker can only warn and ignore the option if not recognized
14431     # So say no if there are warnings
14432     if test -s conftest.err; then
14433       # Append any errors to the config.log.
14434       cat conftest.err 1>&5
14435       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14436       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14437       if diff conftest.exp conftest.er2 >/dev/null; then
14438         lt_cv_prog_compiler_static_works_CXX=yes
14439       fi
14440     else
14441       lt_cv_prog_compiler_static_works_CXX=yes
14442     fi
14443   fi
14444   $RM -r conftest*
14445   LDFLAGS="$save_LDFLAGS"
14446
14447fi
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14449$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14450
14451if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14452    :
14453else
14454    lt_prog_compiler_static_CXX=
14455fi
14456
14457
14458
14459
14460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14461$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14462if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14463  $as_echo_n "(cached) " >&6
14464else
14465  lt_cv_prog_compiler_c_o_CXX=no
14466   $RM -r conftest 2>/dev/null
14467   mkdir conftest
14468   cd conftest
14469   mkdir out
14470   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471
14472   lt_compiler_flag="-o out/conftest2.$ac_objext"
14473   # Insert the option either (1) after the last *FLAGS variable, or
14474   # (2) before a word containing "conftest.", or (3) at the end.
14475   # Note that $ac_compile itself does not contain backslashes and begins
14476   # with a dollar sign (not a hyphen), so the echo should work correctly.
14477   lt_compile=`echo "$ac_compile" | $SED \
14478   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480   -e 's:$: $lt_compiler_flag:'`
14481   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14482   (eval "$lt_compile" 2>out/conftest.err)
14483   ac_status=$?
14484   cat out/conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487   then
14488     # The compiler can only warn and ignore the option if not recognized
14489     # So say no if there are warnings
14490     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14491     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14492     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14493       lt_cv_prog_compiler_c_o_CXX=yes
14494     fi
14495   fi
14496   chmod u+w . 2>&5
14497   $RM conftest*
14498   # SGI C++ compiler will create directory out/ii_files/ for
14499   # template instantiation
14500   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14501   $RM out/* && rmdir out
14502   cd ..
14503   $RM -r conftest
14504   $RM conftest*
14505
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14508$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14509
14510
14511
14512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14513$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14514if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14515  $as_echo_n "(cached) " >&6
14516else
14517  lt_cv_prog_compiler_c_o_CXX=no
14518   $RM -r conftest 2>/dev/null
14519   mkdir conftest
14520   cd conftest
14521   mkdir out
14522   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523
14524   lt_compiler_flag="-o out/conftest2.$ac_objext"
14525   # Insert the option either (1) after the last *FLAGS variable, or
14526   # (2) before a word containing "conftest.", or (3) at the end.
14527   # Note that $ac_compile itself does not contain backslashes and begins
14528   # with a dollar sign (not a hyphen), so the echo should work correctly.
14529   lt_compile=`echo "$ac_compile" | $SED \
14530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532   -e 's:$: $lt_compiler_flag:'`
14533   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14534   (eval "$lt_compile" 2>out/conftest.err)
14535   ac_status=$?
14536   cat out/conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14539   then
14540     # The compiler can only warn and ignore the option if not recognized
14541     # So say no if there are warnings
14542     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14543     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14544     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14545       lt_cv_prog_compiler_c_o_CXX=yes
14546     fi
14547   fi
14548   chmod u+w . 2>&5
14549   $RM conftest*
14550   # SGI C++ compiler will create directory out/ii_files/ for
14551   # template instantiation
14552   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14553   $RM out/* && rmdir out
14554   cd ..
14555   $RM -r conftest
14556   $RM conftest*
14557
14558fi
14559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14560$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14561
14562
14563
14564
14565hard_links="nottested"
14566if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14567  # do not overwrite the value of need_locks provided by the user
14568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14569$as_echo_n "checking if we can lock with hard links... " >&6; }
14570  hard_links=yes
14571  $RM conftest*
14572  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14573  touch conftest.a
14574  ln conftest.a conftest.b 2>&5 || hard_links=no
14575  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14577$as_echo "$hard_links" >&6; }
14578  if test "$hard_links" = no; then
14579    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14580$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14581    need_locks=warn
14582  fi
14583else
14584  need_locks=no
14585fi
14586
14587
14588
14589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14590$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14591
14592  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14593  case $host_os in
14594  aix[4-9]*)
14595    # If we're using GNU nm, then we don't want the "-C" option.
14596    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14597    # Also, AIX nm treats weak defined symbols like other global defined
14598    # symbols, whereas GNU nm marks them as "W".
14599    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14600      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14601    else
14602      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14603    fi
14604    ;;
14605  pw32*)
14606    export_symbols_cmds_CXX="$ltdll_cmds"
14607  ;;
14608  cygwin* | mingw* | cegcc*)
14609    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14610  ;;
14611  *)
14612    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14613  ;;
14614  esac
14615  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14616
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14618$as_echo "$ld_shlibs_CXX" >&6; }
14619test "$ld_shlibs_CXX" = no && can_build_shared=no
14620
14621with_gnu_ld_CXX=$with_gnu_ld
14622
14623
14624
14625
14626
14627
14628#
14629# Do we need to explicitly link libc?
14630#
14631case "x$archive_cmds_need_lc_CXX" in
14632x|xyes)
14633  # Assume -lc should be added
14634  archive_cmds_need_lc_CXX=yes
14635
14636  if test "$enable_shared" = yes && test "$GCC" = yes; then
14637    case $archive_cmds_CXX in
14638    *'~'*)
14639      # FIXME: we may have to deal with multi-command sequences.
14640      ;;
14641    '$CC '*)
14642      # Test whether the compiler implicitly links with -lc since on some
14643      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14644      # to ld, don't add -lc before -lgcc.
14645      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14646$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14647if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14648  $as_echo_n "(cached) " >&6
14649else
14650  $RM conftest*
14651	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14652
14653	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14654  (eval $ac_compile) 2>&5
14655  ac_status=$?
14656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14657  test $ac_status = 0; } 2>conftest.err; then
14658	  soname=conftest
14659	  lib=conftest
14660	  libobjs=conftest.$ac_objext
14661	  deplibs=
14662	  wl=$lt_prog_compiler_wl_CXX
14663	  pic_flag=$lt_prog_compiler_pic_CXX
14664	  compiler_flags=-v
14665	  linker_flags=-v
14666	  verstring=
14667	  output_objdir=.
14668	  libname=conftest
14669	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14670	  allow_undefined_flag_CXX=
14671	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14672  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14673  ac_status=$?
14674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14675  test $ac_status = 0; }
14676	  then
14677	    lt_cv_archive_cmds_need_lc_CXX=no
14678	  else
14679	    lt_cv_archive_cmds_need_lc_CXX=yes
14680	  fi
14681	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14682	else
14683	  cat conftest.err 1>&5
14684	fi
14685	$RM conftest*
14686
14687fi
14688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14689$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14690      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14691      ;;
14692    esac
14693  fi
14694  ;;
14695esac
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14761$as_echo_n "checking dynamic linker characteristics... " >&6; }
14762
14763library_names_spec=
14764libname_spec='lib$name'
14765soname_spec=
14766shrext_cmds=".so"
14767postinstall_cmds=
14768postuninstall_cmds=
14769finish_cmds=
14770finish_eval=
14771shlibpath_var=
14772shlibpath_overrides_runpath=unknown
14773version_type=none
14774dynamic_linker="$host_os ld.so"
14775sys_lib_dlsearch_path_spec="/lib /usr/lib"
14776need_lib_prefix=unknown
14777hardcode_into_libs=no
14778
14779# when you set need_version to no, make sure it does not cause -set_version
14780# flags to be left without arguments
14781need_version=unknown
14782
14783case $host_os in
14784aix3*)
14785  version_type=linux
14786  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14787  shlibpath_var=LIBPATH
14788
14789  # AIX 3 has no versioning support, so we append a major version to the name.
14790  soname_spec='${libname}${release}${shared_ext}$major'
14791  ;;
14792
14793aix[4-9]*)
14794  version_type=linux
14795  need_lib_prefix=no
14796  need_version=no
14797  hardcode_into_libs=yes
14798  if test "$host_cpu" = ia64; then
14799    # AIX 5 supports IA64
14800    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14801    shlibpath_var=LD_LIBRARY_PATH
14802  else
14803    # With GCC up to 2.95.x, collect2 would create an import file
14804    # for dependence libraries.  The import file would start with
14805    # the line `#! .'.  This would cause the generated library to
14806    # depend on `.', always an invalid library.  This was fixed in
14807    # development snapshots of GCC prior to 3.0.
14808    case $host_os in
14809      aix4 | aix4.[01] | aix4.[01].*)
14810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14811	   echo ' yes '
14812	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14813	:
14814      else
14815	can_build_shared=no
14816      fi
14817      ;;
14818    esac
14819    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14820    # soname into executable. Probably we can add versioning support to
14821    # collect2, so additional links can be useful in future.
14822    if test "$aix_use_runtimelinking" = yes; then
14823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14824      # instead of lib<name>.a to let people know that these are not
14825      # typical AIX shared libraries.
14826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827    else
14828      # We preserve .a as extension for shared libraries through AIX4.2
14829      # and later when we are not doing run time linking.
14830      library_names_spec='${libname}${release}.a $libname.a'
14831      soname_spec='${libname}${release}${shared_ext}$major'
14832    fi
14833    shlibpath_var=LIBPATH
14834  fi
14835  ;;
14836
14837amigaos*)
14838  case $host_cpu in
14839  powerpc)
14840    # Since July 2007 AmigaOS4 officially supports .so libraries.
14841    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14842    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843    ;;
14844  m68k)
14845    library_names_spec='$libname.ixlibrary $libname.a'
14846    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14847    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'
14848    ;;
14849  esac
14850  ;;
14851
14852beos*)
14853  library_names_spec='${libname}${shared_ext}'
14854  dynamic_linker="$host_os ld.so"
14855  shlibpath_var=LIBRARY_PATH
14856  ;;
14857
14858bsdi[45]*)
14859  version_type=linux
14860  need_version=no
14861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862  soname_spec='${libname}${release}${shared_ext}$major'
14863  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14864  shlibpath_var=LD_LIBRARY_PATH
14865  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14866  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14867  # the default ld.so.conf also contains /usr/contrib/lib and
14868  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14869  # libtool to hard-code these into programs
14870  ;;
14871
14872cygwin* | mingw* | pw32* | cegcc*)
14873  version_type=windows
14874  shrext_cmds=".dll"
14875  need_version=no
14876  need_lib_prefix=no
14877
14878  case $GCC,$host_os in
14879  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14880    library_names_spec='$libname.dll.a'
14881    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14882    postinstall_cmds='base_file=`basename \${file}`~
14883      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14884      dldir=$destdir/`dirname \$dlpath`~
14885      test -d \$dldir || mkdir -p \$dldir~
14886      $install_prog $dir/$dlname \$dldir/$dlname~
14887      chmod a+x \$dldir/$dlname~
14888      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14889        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14890      fi'
14891    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14892      dlpath=$dir/\$dldll~
14893       $RM \$dlpath'
14894    shlibpath_overrides_runpath=yes
14895
14896    case $host_os in
14897    cygwin*)
14898      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14899      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14900
14901      ;;
14902    mingw* | cegcc*)
14903      # MinGW DLLs use traditional 'lib' prefix
14904      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14905      ;;
14906    pw32*)
14907      # pw32 DLLs use 'pw' prefix rather than 'lib'
14908      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14909      ;;
14910    esac
14911    ;;
14912
14913  *)
14914    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14915    ;;
14916  esac
14917  dynamic_linker='Win32 ld.exe'
14918  # FIXME: first we should search . and the directory the executable is in
14919  shlibpath_var=PATH
14920  ;;
14921
14922darwin* | rhapsody*)
14923  dynamic_linker="$host_os dyld"
14924  version_type=darwin
14925  need_lib_prefix=no
14926  need_version=no
14927  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14928  soname_spec='${libname}${release}${major}$shared_ext'
14929  shlibpath_overrides_runpath=yes
14930  shlibpath_var=DYLD_LIBRARY_PATH
14931  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14932
14933  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14934  ;;
14935
14936dgux*)
14937  version_type=linux
14938  need_lib_prefix=no
14939  need_version=no
14940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14941  soname_spec='${libname}${release}${shared_ext}$major'
14942  shlibpath_var=LD_LIBRARY_PATH
14943  ;;
14944
14945freebsd1*)
14946  dynamic_linker=no
14947  ;;
14948
14949freebsd* | dragonfly*)
14950  # DragonFly does not have aout.  When/if they implement a new
14951  # versioning mechanism, adjust this.
14952  if test -x /usr/bin/objformat; then
14953    objformat=`/usr/bin/objformat`
14954  else
14955    case $host_os in
14956    freebsd[123]*) objformat=aout ;;
14957    *) objformat=elf ;;
14958    esac
14959  fi
14960  version_type=freebsd-$objformat
14961  case $version_type in
14962    freebsd-elf*)
14963      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14964      need_version=no
14965      need_lib_prefix=no
14966      ;;
14967    freebsd-*)
14968      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14969      need_version=yes
14970      ;;
14971  esac
14972  shlibpath_var=LD_LIBRARY_PATH
14973  case $host_os in
14974  freebsd2*)
14975    shlibpath_overrides_runpath=yes
14976    ;;
14977  freebsd3.[01]* | freebsdelf3.[01]*)
14978    shlibpath_overrides_runpath=yes
14979    hardcode_into_libs=yes
14980    ;;
14981  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14982  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14983    shlibpath_overrides_runpath=no
14984    hardcode_into_libs=yes
14985    ;;
14986  *) # from 4.6 on, and DragonFly
14987    shlibpath_overrides_runpath=yes
14988    hardcode_into_libs=yes
14989    ;;
14990  esac
14991  ;;
14992
14993gnu*)
14994  version_type=linux
14995  need_lib_prefix=no
14996  need_version=no
14997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14998  soname_spec='${libname}${release}${shared_ext}$major'
14999  shlibpath_var=LD_LIBRARY_PATH
15000  hardcode_into_libs=yes
15001  ;;
15002
15003haiku*)
15004  version_type=linux
15005  need_lib_prefix=no
15006  need_version=no
15007  dynamic_linker="$host_os runtime_loader"
15008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15009  soname_spec='${libname}${release}${shared_ext}$major'
15010  shlibpath_var=LIBRARY_PATH
15011  shlibpath_overrides_runpath=yes
15012  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15013  hardcode_into_libs=yes
15014  ;;
15015
15016hpux9* | hpux10* | hpux11*)
15017  # Give a soname corresponding to the major version so that dld.sl refuses to
15018  # link against other versions.
15019  version_type=sunos
15020  need_lib_prefix=no
15021  need_version=no
15022  case $host_cpu in
15023  ia64*)
15024    shrext_cmds='.so'
15025    hardcode_into_libs=yes
15026    dynamic_linker="$host_os dld.so"
15027    shlibpath_var=LD_LIBRARY_PATH
15028    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15029    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030    soname_spec='${libname}${release}${shared_ext}$major'
15031    if test "X$HPUX_IA64_MODE" = X32; then
15032      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15033    else
15034      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15035    fi
15036    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15037    ;;
15038  hppa*64*)
15039    shrext_cmds='.sl'
15040    hardcode_into_libs=yes
15041    dynamic_linker="$host_os dld.sl"
15042    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15043    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15044    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15045    soname_spec='${libname}${release}${shared_ext}$major'
15046    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15047    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15048    ;;
15049  *)
15050    shrext_cmds='.sl'
15051    dynamic_linker="$host_os dld.sl"
15052    shlibpath_var=SHLIB_PATH
15053    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15054    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055    soname_spec='${libname}${release}${shared_ext}$major'
15056    ;;
15057  esac
15058  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15059  postinstall_cmds='chmod 555 $lib'
15060  # or fails outright, so override atomically:
15061  install_override_mode=555
15062  ;;
15063
15064interix[3-9]*)
15065  version_type=linux
15066  need_lib_prefix=no
15067  need_version=no
15068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15069  soname_spec='${libname}${release}${shared_ext}$major'
15070  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15071  shlibpath_var=LD_LIBRARY_PATH
15072  shlibpath_overrides_runpath=no
15073  hardcode_into_libs=yes
15074  ;;
15075
15076irix5* | irix6* | nonstopux*)
15077  case $host_os in
15078    nonstopux*) version_type=nonstopux ;;
15079    *)
15080	if test "$lt_cv_prog_gnu_ld" = yes; then
15081		version_type=linux
15082	else
15083		version_type=irix
15084	fi ;;
15085  esac
15086  need_lib_prefix=no
15087  need_version=no
15088  soname_spec='${libname}${release}${shared_ext}$major'
15089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15090  case $host_os in
15091  irix5* | nonstopux*)
15092    libsuff= shlibsuff=
15093    ;;
15094  *)
15095    case $LD in # libtool.m4 will add one of these switches to LD
15096    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15097      libsuff= shlibsuff= libmagic=32-bit;;
15098    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15099      libsuff=32 shlibsuff=N32 libmagic=N32;;
15100    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15101      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15102    *) libsuff= shlibsuff= libmagic=never-match;;
15103    esac
15104    ;;
15105  esac
15106  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15107  shlibpath_overrides_runpath=no
15108  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15109  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15110  hardcode_into_libs=yes
15111  ;;
15112
15113# No shared lib support for Linux oldld, aout, or coff.
15114linux*oldld* | linux*aout* | linux*coff*)
15115  dynamic_linker=no
15116  ;;
15117
15118# This must be Linux ELF.
15119linux* | k*bsd*-gnu | kopensolaris*-gnu)
15120  version_type=linux
15121  need_lib_prefix=no
15122  need_version=no
15123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124  soname_spec='${libname}${release}${shared_ext}$major'
15125  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15126  shlibpath_var=LD_LIBRARY_PATH
15127  shlibpath_overrides_runpath=no
15128
15129  # Some binutils ld are patched to set DT_RUNPATH
15130  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15131  $as_echo_n "(cached) " >&6
15132else
15133  lt_cv_shlibpath_overrides_runpath=no
15134    save_LDFLAGS=$LDFLAGS
15135    save_libdir=$libdir
15136    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15137	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15138    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h.  */
15140
15141int
15142main ()
15143{
15144
15145  ;
15146  return 0;
15147}
15148_ACEOF
15149if ac_fn_cxx_try_link "$LINENO"; then :
15150  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15151  lt_cv_shlibpath_overrides_runpath=yes
15152fi
15153fi
15154rm -f core conftest.err conftest.$ac_objext \
15155    conftest$ac_exeext conftest.$ac_ext
15156    LDFLAGS=$save_LDFLAGS
15157    libdir=$save_libdir
15158
15159fi
15160
15161  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15162
15163  # This implies no fast_install, which is unacceptable.
15164  # Some rework will be needed to allow for fast_install
15165  # before this can be enabled.
15166  hardcode_into_libs=yes
15167
15168  # Append ld.so.conf contents to the search path
15169  if test -f /etc/ld.so.conf; then
15170    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' ' '`
15171    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15172  fi
15173
15174  # We used to test for /lib/ld.so.1 and disable shared libraries on
15175  # powerpc, because MkLinux only supported shared libraries with the
15176  # GNU dynamic linker.  Since this was broken with cross compilers,
15177  # most powerpc-linux boxes support dynamic linking these days and
15178  # people can always --disable-shared, the test was removed, and we
15179  # assume the GNU/Linux dynamic linker is in use.
15180  dynamic_linker='GNU/Linux ld.so'
15181  ;;
15182
15183netbsd*)
15184  version_type=sunos
15185  need_lib_prefix=no
15186  need_version=no
15187  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15189    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15190    dynamic_linker='NetBSD (a.out) ld.so'
15191  else
15192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15193    soname_spec='${libname}${release}${shared_ext}$major'
15194    dynamic_linker='NetBSD ld.elf_so'
15195  fi
15196  shlibpath_var=LD_LIBRARY_PATH
15197  shlibpath_overrides_runpath=yes
15198  hardcode_into_libs=yes
15199  ;;
15200
15201newsos6)
15202  version_type=linux
15203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204  shlibpath_var=LD_LIBRARY_PATH
15205  shlibpath_overrides_runpath=yes
15206  ;;
15207
15208*nto* | *qnx*)
15209  version_type=qnx
15210  need_lib_prefix=no
15211  need_version=no
15212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213  soname_spec='${libname}${release}${shared_ext}$major'
15214  shlibpath_var=LD_LIBRARY_PATH
15215  shlibpath_overrides_runpath=no
15216  hardcode_into_libs=yes
15217  dynamic_linker='ldqnx.so'
15218  ;;
15219
15220openbsd*)
15221  version_type=sunos
15222  sys_lib_dlsearch_path_spec="/usr/lib"
15223  need_lib_prefix=no
15224  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15225  case $host_os in
15226    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15227    *)				need_version=no  ;;
15228  esac
15229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15230  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15231  shlibpath_var=LD_LIBRARY_PATH
15232  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15233    case $host_os in
15234      openbsd2.[89] | openbsd2.[89].*)
15235	shlibpath_overrides_runpath=no
15236	;;
15237      *)
15238	shlibpath_overrides_runpath=yes
15239	;;
15240      esac
15241  else
15242    shlibpath_overrides_runpath=yes
15243  fi
15244  ;;
15245
15246os2*)
15247  libname_spec='$name'
15248  shrext_cmds=".dll"
15249  need_lib_prefix=no
15250  library_names_spec='$libname${shared_ext} $libname.a'
15251  dynamic_linker='OS/2 ld.exe'
15252  shlibpath_var=LIBPATH
15253  ;;
15254
15255osf3* | osf4* | osf5*)
15256  version_type=osf
15257  need_lib_prefix=no
15258  need_version=no
15259  soname_spec='${libname}${release}${shared_ext}$major'
15260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261  shlibpath_var=LD_LIBRARY_PATH
15262  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15263  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15264  ;;
15265
15266rdos*)
15267  dynamic_linker=no
15268  ;;
15269
15270solaris*)
15271  version_type=linux
15272  need_lib_prefix=no
15273  need_version=no
15274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275  soname_spec='${libname}${release}${shared_ext}$major'
15276  shlibpath_var=LD_LIBRARY_PATH
15277  shlibpath_overrides_runpath=yes
15278  hardcode_into_libs=yes
15279  # ldd complains unless libraries are executable
15280  postinstall_cmds='chmod +x $lib'
15281  ;;
15282
15283sunos4*)
15284  version_type=sunos
15285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15286  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15287  shlibpath_var=LD_LIBRARY_PATH
15288  shlibpath_overrides_runpath=yes
15289  if test "$with_gnu_ld" = yes; then
15290    need_lib_prefix=no
15291  fi
15292  need_version=yes
15293  ;;
15294
15295sysv4 | sysv4.3*)
15296  version_type=linux
15297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298  soname_spec='${libname}${release}${shared_ext}$major'
15299  shlibpath_var=LD_LIBRARY_PATH
15300  case $host_vendor in
15301    sni)
15302      shlibpath_overrides_runpath=no
15303      need_lib_prefix=no
15304      runpath_var=LD_RUN_PATH
15305      ;;
15306    siemens)
15307      need_lib_prefix=no
15308      ;;
15309    motorola)
15310      need_lib_prefix=no
15311      need_version=no
15312      shlibpath_overrides_runpath=no
15313      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15314      ;;
15315  esac
15316  ;;
15317
15318sysv4*MP*)
15319  if test -d /usr/nec ;then
15320    version_type=linux
15321    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15322    soname_spec='$libname${shared_ext}.$major'
15323    shlibpath_var=LD_LIBRARY_PATH
15324  fi
15325  ;;
15326
15327sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15328  version_type=freebsd-elf
15329  need_lib_prefix=no
15330  need_version=no
15331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15332  soname_spec='${libname}${release}${shared_ext}$major'
15333  shlibpath_var=LD_LIBRARY_PATH
15334  shlibpath_overrides_runpath=yes
15335  hardcode_into_libs=yes
15336  if test "$with_gnu_ld" = yes; then
15337    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15338  else
15339    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15340    case $host_os in
15341      sco3.2v5*)
15342        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15343	;;
15344    esac
15345  fi
15346  sys_lib_dlsearch_path_spec='/usr/lib'
15347  ;;
15348
15349tpf*)
15350  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15351  version_type=linux
15352  need_lib_prefix=no
15353  need_version=no
15354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355  shlibpath_var=LD_LIBRARY_PATH
15356  shlibpath_overrides_runpath=no
15357  hardcode_into_libs=yes
15358  ;;
15359
15360uts4*)
15361  version_type=linux
15362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363  soname_spec='${libname}${release}${shared_ext}$major'
15364  shlibpath_var=LD_LIBRARY_PATH
15365  ;;
15366
15367*)
15368  dynamic_linker=no
15369  ;;
15370esac
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15372$as_echo "$dynamic_linker" >&6; }
15373test "$dynamic_linker" = no && can_build_shared=no
15374
15375variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15376if test "$GCC" = yes; then
15377  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15378fi
15379
15380if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15381  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15382fi
15383if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15384  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15385fi
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15425$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15426hardcode_action_CXX=
15427if test -n "$hardcode_libdir_flag_spec_CXX" ||
15428   test -n "$runpath_var_CXX" ||
15429   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15430
15431  # We can hardcode non-existent directories.
15432  if test "$hardcode_direct_CXX" != no &&
15433     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15434     # have to relink, otherwise we might link with an installed library
15435     # when we should be linking with a yet-to-be-installed one
15436     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15437     test "$hardcode_minus_L_CXX" != no; then
15438    # Linking always hardcodes the temporary library directory.
15439    hardcode_action_CXX=relink
15440  else
15441    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15442    hardcode_action_CXX=immediate
15443  fi
15444else
15445  # We cannot hardcode anything, or else we can only hardcode existing
15446  # directories.
15447  hardcode_action_CXX=unsupported
15448fi
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15450$as_echo "$hardcode_action_CXX" >&6; }
15451
15452if test "$hardcode_action_CXX" = relink ||
15453   test "$inherit_rpath_CXX" = yes; then
15454  # Fast installation is not supported
15455  enable_fast_install=no
15456elif test "$shlibpath_overrides_runpath" = yes ||
15457     test "$enable_shared" = no; then
15458  # Fast installation is not necessary
15459  enable_fast_install=needless
15460fi
15461
15462
15463
15464
15465
15466
15467
15468  fi # test -n "$compiler"
15469
15470  CC=$lt_save_CC
15471  LDCXX=$LD
15472  LD=$lt_save_LD
15473  GCC=$lt_save_GCC
15474  with_gnu_ld=$lt_save_with_gnu_ld
15475  lt_cv_path_LDCXX=$lt_cv_path_LD
15476  lt_cv_path_LD=$lt_save_path_LD
15477  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15478  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15479fi # test "$_lt_caught_CXX_error" != yes
15480
15481ac_ext=c
15482ac_cpp='$CPP $CPPFLAGS'
15483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15485ac_compiler_gnu=$ac_cv_c_compiler_gnu
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499        ac_config_commands="$ac_config_commands libtool"
15500
15501
15502
15503
15504# Only expand once:
15505
15506
15507
15508ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
15509# If we haven't got the data from the intl directory,
15510# assume NLS is disabled.
15511USE_NLS=no
15512LIBINTL=
15513LIBINTL_DEP=
15514INCINTL=
15515XGETTEXT=
15516GMSGFMT=
15517POSUB=
15518
15519if test -f  ../intl/config.intl; then
15520  .  ../intl/config.intl
15521fi
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15523$as_echo_n "checking whether NLS is requested... " >&6; }
15524if test x"$USE_NLS" != xyes; then
15525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15526$as_echo "no" >&6; }
15527else
15528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15529$as_echo "yes" >&6; }
15530
15531$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15532
15533
15534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15535$as_echo_n "checking for catalogs to be installed... " >&6; }
15536  # Look for .po and .gmo files in the source directory.
15537  CATALOGS=
15538  XLINGUAS=
15539  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15540    # If there aren't any .gmo files the shell will give us the
15541    # literal string "../path/to/srcdir/po/*.gmo" which has to be
15542    # weeded out.
15543    case "$cat" in *\**)
15544      continue;;
15545    esac
15546    # The quadruple backslash is collapsed to a double backslash
15547    # by the backticks, then collapsed again by the double quotes,
15548    # leaving us with one backslash in the sed expression (right
15549    # before the dot that mustn't act as a wildcard).
15550    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15551    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15552    # The user is allowed to set LINGUAS to a list of languages to
15553    # install catalogs for.  If it's empty that means "all of them."
15554    if test "x$LINGUAS" = x; then
15555      CATALOGS="$CATALOGS $cat"
15556      XLINGUAS="$XLINGUAS $lang"
15557    else
15558      case "$LINGUAS" in *$lang*)
15559        CATALOGS="$CATALOGS $cat"
15560        XLINGUAS="$XLINGUAS $lang"
15561        ;;
15562      esac
15563    fi
15564  done
15565  LINGUAS="$XLINGUAS"
15566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15567$as_echo "$LINGUAS" >&6; }
15568
15569
15570    DATADIRNAME=share
15571
15572  INSTOBJEXT=.mo
15573
15574  GENCAT=gencat
15575
15576  CATOBJEXT=.gmo
15577
15578fi
15579
15580        MKINSTALLDIRS=
15581  if test -n "$ac_aux_dir"; then
15582    case "$ac_aux_dir" in
15583      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15584      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15585    esac
15586  fi
15587  if test -z "$MKINSTALLDIRS"; then
15588    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15589  fi
15590
15591
15592
15593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15594$as_echo_n "checking whether NLS is requested... " >&6; }
15595    # Check whether --enable-nls was given.
15596if test "${enable_nls+set}" = set; then :
15597  enableval=$enable_nls; USE_NLS=$enableval
15598else
15599  USE_NLS=yes
15600fi
15601
15602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15603$as_echo "$USE_NLS" >&6; }
15604
15605
15606
15607
15608
15609
15610# Prepare PATH_SEPARATOR.
15611# The user is always right.
15612if test "${PATH_SEPARATOR+set}" != set; then
15613  echo "#! /bin/sh" >conf$$.sh
15614  echo  "exit 0"   >>conf$$.sh
15615  chmod +x conf$$.sh
15616  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15617    PATH_SEPARATOR=';'
15618  else
15619    PATH_SEPARATOR=:
15620  fi
15621  rm -f conf$$.sh
15622fi
15623
15624# Find out how to test for executable files. Don't use a zero-byte file,
15625# as systems may use methods other than mode bits to determine executability.
15626cat >conf$$.file <<_ASEOF
15627#! /bin/sh
15628exit 0
15629_ASEOF
15630chmod +x conf$$.file
15631if test -x conf$$.file >/dev/null 2>&1; then
15632  ac_executable_p="test -x"
15633else
15634  ac_executable_p="test -f"
15635fi
15636rm -f conf$$.file
15637
15638# Extract the first word of "msgfmt", so it can be a program name with args.
15639set dummy msgfmt; ac_word=$2
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15641$as_echo_n "checking for $ac_word... " >&6; }
15642if test "${ac_cv_path_MSGFMT+set}" = set; then :
15643  $as_echo_n "(cached) " >&6
15644else
15645  case "$MSGFMT" in
15646  [\\/]* | ?:[\\/]*)
15647    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15648    ;;
15649  *)
15650    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15651    for ac_dir in $PATH; do
15652      IFS="$ac_save_IFS"
15653      test -z "$ac_dir" && ac_dir=.
15654      for ac_exec_ext in '' $ac_executable_extensions; do
15655        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15656          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15657     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15658            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15659            break 2
15660          fi
15661        fi
15662      done
15663    done
15664    IFS="$ac_save_IFS"
15665  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15666    ;;
15667esac
15668fi
15669MSGFMT="$ac_cv_path_MSGFMT"
15670if test "$MSGFMT" != ":"; then
15671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15672$as_echo "$MSGFMT" >&6; }
15673else
15674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675$as_echo "no" >&6; }
15676fi
15677
15678  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15679set dummy gmsgfmt; ac_word=$2
15680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15681$as_echo_n "checking for $ac_word... " >&6; }
15682if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15683  $as_echo_n "(cached) " >&6
15684else
15685  case $GMSGFMT in
15686  [\\/]* | ?:[\\/]*)
15687  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15688  ;;
15689  *)
15690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15691for as_dir in $PATH
15692do
15693  IFS=$as_save_IFS
15694  test -z "$as_dir" && as_dir=.
15695    for ac_exec_ext in '' $ac_executable_extensions; do
15696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15697    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15699    break 2
15700  fi
15701done
15702  done
15703IFS=$as_save_IFS
15704
15705  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15706  ;;
15707esac
15708fi
15709GMSGFMT=$ac_cv_path_GMSGFMT
15710if test -n "$GMSGFMT"; then
15711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15712$as_echo "$GMSGFMT" >&6; }
15713else
15714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15715$as_echo "no" >&6; }
15716fi
15717
15718
15719
15720
15721# Prepare PATH_SEPARATOR.
15722# The user is always right.
15723if test "${PATH_SEPARATOR+set}" != set; then
15724  echo "#! /bin/sh" >conf$$.sh
15725  echo  "exit 0"   >>conf$$.sh
15726  chmod +x conf$$.sh
15727  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15728    PATH_SEPARATOR=';'
15729  else
15730    PATH_SEPARATOR=:
15731  fi
15732  rm -f conf$$.sh
15733fi
15734
15735# Find out how to test for executable files. Don't use a zero-byte file,
15736# as systems may use methods other than mode bits to determine executability.
15737cat >conf$$.file <<_ASEOF
15738#! /bin/sh
15739exit 0
15740_ASEOF
15741chmod +x conf$$.file
15742if test -x conf$$.file >/dev/null 2>&1; then
15743  ac_executable_p="test -x"
15744else
15745  ac_executable_p="test -f"
15746fi
15747rm -f conf$$.file
15748
15749# Extract the first word of "xgettext", so it can be a program name with args.
15750set dummy xgettext; ac_word=$2
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15752$as_echo_n "checking for $ac_word... " >&6; }
15753if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15754  $as_echo_n "(cached) " >&6
15755else
15756  case "$XGETTEXT" in
15757  [\\/]* | ?:[\\/]*)
15758    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15759    ;;
15760  *)
15761    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15762    for ac_dir in $PATH; do
15763      IFS="$ac_save_IFS"
15764      test -z "$ac_dir" && ac_dir=.
15765      for ac_exec_ext in '' $ac_executable_extensions; do
15766        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15767          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15768     (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
15769            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15770            break 2
15771          fi
15772        fi
15773      done
15774    done
15775    IFS="$ac_save_IFS"
15776  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15777    ;;
15778esac
15779fi
15780XGETTEXT="$ac_cv_path_XGETTEXT"
15781if test "$XGETTEXT" != ":"; then
15782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15783$as_echo "$XGETTEXT" >&6; }
15784else
15785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786$as_echo "no" >&6; }
15787fi
15788
15789    rm -f messages.po
15790
15791
15792# Prepare PATH_SEPARATOR.
15793# The user is always right.
15794if test "${PATH_SEPARATOR+set}" != set; then
15795  echo "#! /bin/sh" >conf$$.sh
15796  echo  "exit 0"   >>conf$$.sh
15797  chmod +x conf$$.sh
15798  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15799    PATH_SEPARATOR=';'
15800  else
15801    PATH_SEPARATOR=:
15802  fi
15803  rm -f conf$$.sh
15804fi
15805
15806# Find out how to test for executable files. Don't use a zero-byte file,
15807# as systems may use methods other than mode bits to determine executability.
15808cat >conf$$.file <<_ASEOF
15809#! /bin/sh
15810exit 0
15811_ASEOF
15812chmod +x conf$$.file
15813if test -x conf$$.file >/dev/null 2>&1; then
15814  ac_executable_p="test -x"
15815else
15816  ac_executable_p="test -f"
15817fi
15818rm -f conf$$.file
15819
15820# Extract the first word of "msgmerge", so it can be a program name with args.
15821set dummy msgmerge; ac_word=$2
15822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15823$as_echo_n "checking for $ac_word... " >&6; }
15824if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15825  $as_echo_n "(cached) " >&6
15826else
15827  case "$MSGMERGE" in
15828  [\\/]* | ?:[\\/]*)
15829    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15830    ;;
15831  *)
15832    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15833    for ac_dir in $PATH; do
15834      IFS="$ac_save_IFS"
15835      test -z "$ac_dir" && ac_dir=.
15836      for ac_exec_ext in '' $ac_executable_extensions; do
15837        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15838          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15839            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15840            break 2
15841          fi
15842        fi
15843      done
15844    done
15845    IFS="$ac_save_IFS"
15846  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15847    ;;
15848esac
15849fi
15850MSGMERGE="$ac_cv_path_MSGMERGE"
15851if test "$MSGMERGE" != ":"; then
15852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15853$as_echo "$MSGMERGE" >&6; }
15854else
15855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856$as_echo "no" >&6; }
15857fi
15858
15859
15860      if test "$GMSGFMT" != ":"; then
15861            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15862       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15863      : ;
15864    else
15865      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15867$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15868      GMSGFMT=":"
15869    fi
15870  fi
15871
15872      if test "$XGETTEXT" != ":"; then
15873            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15874       (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
15875      : ;
15876    else
15877      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15878$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15879      XGETTEXT=":"
15880    fi
15881        rm -f messages.po
15882  fi
15883
15884  ac_config_commands="$ac_config_commands default-1"
15885
15886
15887
15888
15889
15890for ac_prog in 'bison -y' byacc
15891do
15892  # Extract the first word of "$ac_prog", so it can be a program name with args.
15893set dummy $ac_prog; ac_word=$2
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15895$as_echo_n "checking for $ac_word... " >&6; }
15896if test "${ac_cv_prog_YACC+set}" = set; then :
15897  $as_echo_n "(cached) " >&6
15898else
15899  if test -n "$YACC"; then
15900  ac_cv_prog_YACC="$YACC" # Let the user override the test.
15901else
15902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15903for as_dir in $PATH
15904do
15905  IFS=$as_save_IFS
15906  test -z "$as_dir" && as_dir=.
15907    for ac_exec_ext in '' $ac_executable_extensions; do
15908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15909    ac_cv_prog_YACC="$ac_prog"
15910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15911    break 2
15912  fi
15913done
15914  done
15915IFS=$as_save_IFS
15916
15917fi
15918fi
15919YACC=$ac_cv_prog_YACC
15920if test -n "$YACC"; then
15921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15922$as_echo "$YACC" >&6; }
15923else
15924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15925$as_echo "no" >&6; }
15926fi
15927
15928
15929  test -n "$YACC" && break
15930done
15931test -n "$YACC" || YACC="yacc"
15932
15933for ac_prog in flex lex
15934do
15935  # Extract the first word of "$ac_prog", so it can be a program name with args.
15936set dummy $ac_prog; ac_word=$2
15937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15938$as_echo_n "checking for $ac_word... " >&6; }
15939if test "${ac_cv_prog_LEX+set}" = set; then :
15940  $as_echo_n "(cached) " >&6
15941else
15942  if test -n "$LEX"; then
15943  ac_cv_prog_LEX="$LEX" # Let the user override the test.
15944else
15945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946for as_dir in $PATH
15947do
15948  IFS=$as_save_IFS
15949  test -z "$as_dir" && as_dir=.
15950    for ac_exec_ext in '' $ac_executable_extensions; do
15951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15952    ac_cv_prog_LEX="$ac_prog"
15953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15954    break 2
15955  fi
15956done
15957  done
15958IFS=$as_save_IFS
15959
15960fi
15961fi
15962LEX=$ac_cv_prog_LEX
15963if test -n "$LEX"; then
15964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15965$as_echo "$LEX" >&6; }
15966else
15967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968$as_echo "no" >&6; }
15969fi
15970
15971
15972  test -n "$LEX" && break
15973done
15974test -n "$LEX" || LEX=":"
15975
15976if test "x$LEX" != "x:"; then
15977  cat >conftest.l <<_ACEOF
15978%%
15979a { ECHO; }
15980b { REJECT; }
15981c { yymore (); }
15982d { yyless (1); }
15983e { yyless (input () != 0); }
15984f { unput (yytext[0]); }
15985. { BEGIN INITIAL; }
15986%%
15987#ifdef YYTEXT_POINTER
15988extern char *yytext;
15989#endif
15990int
15991main (void)
15992{
15993  return ! yylex () + ! yywrap ();
15994}
15995_ACEOF
15996{ { ac_try="$LEX conftest.l"
15997case "(($ac_try" in
15998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999  *) ac_try_echo=$ac_try;;
16000esac
16001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16002$as_echo "$ac_try_echo"; } >&5
16003  (eval "$LEX conftest.l") 2>&5
16004  ac_status=$?
16005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16006  test $ac_status = 0; }
16007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16008$as_echo_n "checking lex output file root... " >&6; }
16009if test "${ac_cv_prog_lex_root+set}" = set; then :
16010  $as_echo_n "(cached) " >&6
16011else
16012
16013if test -f lex.yy.c; then
16014  ac_cv_prog_lex_root=lex.yy
16015elif test -f lexyy.c; then
16016  ac_cv_prog_lex_root=lexyy
16017else
16018  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16019fi
16020fi
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16022$as_echo "$ac_cv_prog_lex_root" >&6; }
16023LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16024
16025if test -z "${LEXLIB+set}"; then
16026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16027$as_echo_n "checking lex library... " >&6; }
16028if test "${ac_cv_lib_lex+set}" = set; then :
16029  $as_echo_n "(cached) " >&6
16030else
16031
16032    ac_save_LIBS=$LIBS
16033    ac_cv_lib_lex='none needed'
16034    for ac_lib in '' -lfl -ll; do
16035      LIBS="$ac_lib $ac_save_LIBS"
16036      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037/* end confdefs.h.  */
16038`cat $LEX_OUTPUT_ROOT.c`
16039_ACEOF
16040if ac_fn_c_try_link "$LINENO"; then :
16041  ac_cv_lib_lex=$ac_lib
16042fi
16043rm -f core conftest.err conftest.$ac_objext \
16044    conftest$ac_exeext conftest.$ac_ext
16045      test "$ac_cv_lib_lex" != 'none needed' && break
16046    done
16047    LIBS=$ac_save_LIBS
16048
16049fi
16050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16051$as_echo "$ac_cv_lib_lex" >&6; }
16052  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16053fi
16054
16055
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16057$as_echo_n "checking whether yytext is a pointer... " >&6; }
16058if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16059  $as_echo_n "(cached) " >&6
16060else
16061  # POSIX says lex can declare yytext either as a pointer or an array; the
16062# default is implementation-dependent.  Figure out which it is, since
16063# not all implementations provide the %pointer and %array declarations.
16064ac_cv_prog_lex_yytext_pointer=no
16065ac_save_LIBS=$LIBS
16066LIBS="$LEXLIB $ac_save_LIBS"
16067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068/* end confdefs.h.  */
16069#define YYTEXT_POINTER 1
16070`cat $LEX_OUTPUT_ROOT.c`
16071_ACEOF
16072if ac_fn_c_try_link "$LINENO"; then :
16073  ac_cv_prog_lex_yytext_pointer=yes
16074fi
16075rm -f core conftest.err conftest.$ac_objext \
16076    conftest$ac_exeext conftest.$ac_ext
16077LIBS=$ac_save_LIBS
16078
16079fi
16080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16081$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16082if test $ac_cv_prog_lex_yytext_pointer = yes; then
16083
16084$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16085
16086fi
16087rm -f conftest.l $LEX_OUTPUT_ROOT.c
16088
16089fi
16090if test "$LEX" = :; then
16091  LEX=${am_missing_run}flex
16092fi
16093
16094
16095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16096$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16097    # Check whether --enable-maintainer-mode was given.
16098if test "${enable_maintainer_mode+set}" = set; then :
16099  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16100else
16101  USE_MAINTAINER_MODE=no
16102fi
16103
16104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16105$as_echo "$USE_MAINTAINER_MODE" >&6; }
16106   if test $USE_MAINTAINER_MODE = yes; then
16107  MAINTAINER_MODE_TRUE=
16108  MAINTAINER_MODE_FALSE='#'
16109else
16110  MAINTAINER_MODE_TRUE='#'
16111  MAINTAINER_MODE_FALSE=
16112fi
16113
16114  MAINT=$MAINTAINER_MODE_TRUE
16115
16116
16117 if false; then
16118  GENINSRC_NEVER_TRUE=
16119  GENINSRC_NEVER_FALSE='#'
16120else
16121  GENINSRC_NEVER_TRUE='#'
16122  GENINSRC_NEVER_FALSE=
16123fi
16124
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16126$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16127if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16128  $as_echo_n "(cached) " >&6
16129else
16130   echo abfoo >t1
16131  echo cdfoo >t2
16132  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16133  if cmp t1 t2 2 2 > /dev/null 2>&1; then
16134    if cmp t1 t2 1 1 > /dev/null 2>&1; then
16135      :
16136    else
16137      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16138    fi
16139  fi
16140  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16141    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16142      :
16143    else
16144      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16145    fi
16146  fi
16147  rm t1 t2
16148
16149fi
16150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16151$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16152do_compare="$gcc_cv_prog_cmp_skip"
16153
16154
16155
16156. ${srcdir}/configure.host
16157
16158
16159
16160
16161
16162
16163for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
16164do :
16165  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16166ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16167eval as_val=\$$as_ac_Header
16168   if test "x$as_val" = x""yes; then :
16169  cat >>confdefs.h <<_ACEOF
16170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16171_ACEOF
16172
16173fi
16174
16175done
16176
16177for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16178do :
16179  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16180ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16181eval as_val=\$$as_ac_Header
16182   if test "x$as_val" = x""yes; then :
16183  cat >>confdefs.h <<_ACEOF
16184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16185_ACEOF
16186
16187fi
16188
16189done
16190
16191for ac_func in glob mkstemp realpath sbrk waitpid
16192do :
16193  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16195eval as_val=\$$as_ac_var
16196   if test "x$as_val" = x""yes; then :
16197  cat >>confdefs.h <<_ACEOF
16198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16199_ACEOF
16200
16201fi
16202done
16203
16204for ac_func in open lseek close
16205do :
16206  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16207ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16208eval as_val=\$$as_ac_var
16209   if test "x$as_val" = x""yes; then :
16210  cat >>confdefs.h <<_ACEOF
16211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16212_ACEOF
16213
16214fi
16215done
16216
16217ac_header_dirent=no
16218for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16219  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16221$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16223  $as_echo_n "(cached) " >&6
16224else
16225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226/* end confdefs.h.  */
16227#include <sys/types.h>
16228#include <$ac_hdr>
16229
16230int
16231main ()
16232{
16233if ((DIR *) 0)
16234return 0;
16235  ;
16236  return 0;
16237}
16238_ACEOF
16239if ac_fn_c_try_compile "$LINENO"; then :
16240  eval "$as_ac_Header=yes"
16241else
16242  eval "$as_ac_Header=no"
16243fi
16244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245fi
16246eval ac_res=\$$as_ac_Header
16247	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16248$as_echo "$ac_res" >&6; }
16249eval as_val=\$$as_ac_Header
16250   if test "x$as_val" = x""yes; then :
16251  cat >>confdefs.h <<_ACEOF
16252#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16253_ACEOF
16254
16255ac_header_dirent=$ac_hdr; break
16256fi
16257
16258done
16259# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16260if test $ac_header_dirent = dirent.h; then
16261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16262$as_echo_n "checking for library containing opendir... " >&6; }
16263if test "${ac_cv_search_opendir+set}" = set; then :
16264  $as_echo_n "(cached) " >&6
16265else
16266  ac_func_search_save_LIBS=$LIBS
16267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268/* end confdefs.h.  */
16269
16270/* Override any GCC internal prototype to avoid an error.
16271   Use char because int might match the return type of a GCC
16272   builtin and then its argument prototype would still apply.  */
16273#ifdef __cplusplus
16274extern "C"
16275#endif
16276char opendir ();
16277int
16278main ()
16279{
16280return opendir ();
16281  ;
16282  return 0;
16283}
16284_ACEOF
16285for ac_lib in '' dir; do
16286  if test -z "$ac_lib"; then
16287    ac_res="none required"
16288  else
16289    ac_res=-l$ac_lib
16290    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16291  fi
16292  if ac_fn_c_try_link "$LINENO"; then :
16293  ac_cv_search_opendir=$ac_res
16294fi
16295rm -f core conftest.err conftest.$ac_objext \
16296    conftest$ac_exeext
16297  if test "${ac_cv_search_opendir+set}" = set; then :
16298  break
16299fi
16300done
16301if test "${ac_cv_search_opendir+set}" = set; then :
16302
16303else
16304  ac_cv_search_opendir=no
16305fi
16306rm conftest.$ac_ext
16307LIBS=$ac_func_search_save_LIBS
16308fi
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16310$as_echo "$ac_cv_search_opendir" >&6; }
16311ac_res=$ac_cv_search_opendir
16312if test "$ac_res" != no; then :
16313  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16314
16315fi
16316
16317else
16318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16319$as_echo_n "checking for library containing opendir... " >&6; }
16320if test "${ac_cv_search_opendir+set}" = set; then :
16321  $as_echo_n "(cached) " >&6
16322else
16323  ac_func_search_save_LIBS=$LIBS
16324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325/* end confdefs.h.  */
16326
16327/* Override any GCC internal prototype to avoid an error.
16328   Use char because int might match the return type of a GCC
16329   builtin and then its argument prototype would still apply.  */
16330#ifdef __cplusplus
16331extern "C"
16332#endif
16333char opendir ();
16334int
16335main ()
16336{
16337return opendir ();
16338  ;
16339  return 0;
16340}
16341_ACEOF
16342for ac_lib in '' x; do
16343  if test -z "$ac_lib"; then
16344    ac_res="none required"
16345  else
16346    ac_res=-l$ac_lib
16347    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16348  fi
16349  if ac_fn_c_try_link "$LINENO"; then :
16350  ac_cv_search_opendir=$ac_res
16351fi
16352rm -f core conftest.err conftest.$ac_objext \
16353    conftest$ac_exeext
16354  if test "${ac_cv_search_opendir+set}" = set; then :
16355  break
16356fi
16357done
16358if test "${ac_cv_search_opendir+set}" = set; then :
16359
16360else
16361  ac_cv_search_opendir=no
16362fi
16363rm conftest.$ac_ext
16364LIBS=$ac_func_search_save_LIBS
16365fi
16366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16367$as_echo "$ac_cv_search_opendir" >&6; }
16368ac_res=$ac_cv_search_opendir
16369if test "$ac_res" != no; then :
16370  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16371
16372fi
16373
16374fi
16375
16376
16377# Check for dlopen support and enable plugins if possible.
16378enable_plugins=yes
16379ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16380"
16381if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16382
16383else
16384  enable_plugins=no
16385fi
16386
16387
16388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16389$as_echo_n "checking for library containing dlopen... " >&6; }
16390if test "${ac_cv_search_dlopen+set}" = set; then :
16391  $as_echo_n "(cached) " >&6
16392else
16393  ac_func_search_save_LIBS=$LIBS
16394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395/* end confdefs.h.  */
16396
16397/* Override any GCC internal prototype to avoid an error.
16398   Use char because int might match the return type of a GCC
16399   builtin and then its argument prototype would still apply.  */
16400#ifdef __cplusplus
16401extern "C"
16402#endif
16403char dlopen ();
16404int
16405main ()
16406{
16407return dlopen ();
16408  ;
16409  return 0;
16410}
16411_ACEOF
16412for ac_lib in '' dl; do
16413  if test -z "$ac_lib"; then
16414    ac_res="none required"
16415  else
16416    ac_res=-l$ac_lib
16417    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16418  fi
16419  if ac_fn_c_try_link "$LINENO"; then :
16420  ac_cv_search_dlopen=$ac_res
16421fi
16422rm -f core conftest.err conftest.$ac_objext \
16423    conftest$ac_exeext
16424  if test "${ac_cv_search_dlopen+set}" = set; then :
16425  break
16426fi
16427done
16428if test "${ac_cv_search_dlopen+set}" = set; then :
16429
16430else
16431  ac_cv_search_dlopen=no
16432fi
16433rm conftest.$ac_ext
16434LIBS=$ac_func_search_save_LIBS
16435fi
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16437$as_echo "$ac_cv_search_dlopen" >&6; }
16438ac_res=$ac_cv_search_dlopen
16439if test "$ac_res" != no; then :
16440  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16441
16442else
16443  enable_plugins=no
16444fi
16445
16446for ac_func in dlopen dlsym dlclose
16447do :
16448  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16449ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16450eval as_val=\$$as_ac_var
16451   if test "x$as_val" = x""yes; then :
16452  cat >>confdefs.h <<_ACEOF
16453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16454_ACEOF
16455
16456else
16457  enable_plugins=no
16458fi
16459done
16460
16461# We also support plugins on Windows (MinGW).
16462if test x$enable_plugins = xno ; then
16463  for ac_header in Windows.h
16464do :
16465  ac_fn_c_check_header_compile "$LINENO" "Windows.h" "ac_cv_header_Windows_h" "$ac_includes_default
16466"
16467if test "x$ac_cv_header_Windows_h" = x""yes; then :
16468  cat >>confdefs.h <<_ACEOF
16469#define HAVE_WINDOWS_H 1
16470_ACEOF
16471 enable_plugins=yes
16472fi
16473
16474done
16475
16476fi
16477 if test x$enable_plugins = xyes; then
16478  ENABLE_PLUGINS_TRUE=
16479  ENABLE_PLUGINS_FALSE='#'
16480else
16481  ENABLE_PLUGINS_TRUE='#'
16482  ENABLE_PLUGINS_FALSE=
16483fi
16484
16485
16486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16487$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16488if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16489  $as_echo_n "(cached) " >&6
16490else
16491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492/* end confdefs.h.  */
16493#include <unistd.h>
16494int
16495main ()
16496{
16497extern int getopt (int, char *const*, const char *);
16498  ;
16499  return 0;
16500}
16501_ACEOF
16502if ac_fn_c_try_compile "$LINENO"; then :
16503  ld_cv_decl_getopt_unistd_h=yes
16504else
16505  ld_cv_decl_getopt_unistd_h=no
16506fi
16507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508fi
16509
16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16511$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16512if test $ld_cv_decl_getopt_unistd_h = yes; then
16513
16514$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16515
16516fi
16517
16518
16519case "${host}" in
16520*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16521
16522$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16523 ;;
16524esac
16525
16526ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16527if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16528  ac_have_decl=1
16529else
16530  ac_have_decl=0
16531fi
16532
16533cat >>confdefs.h <<_ACEOF
16534#define HAVE_DECL_STRSTR $ac_have_decl
16535_ACEOF
16536ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16537if test "x$ac_cv_have_decl_free" = x""yes; then :
16538  ac_have_decl=1
16539else
16540  ac_have_decl=0
16541fi
16542
16543cat >>confdefs.h <<_ACEOF
16544#define HAVE_DECL_FREE $ac_have_decl
16545_ACEOF
16546ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16547if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16548  ac_have_decl=1
16549else
16550  ac_have_decl=0
16551fi
16552
16553cat >>confdefs.h <<_ACEOF
16554#define HAVE_DECL_SBRK $ac_have_decl
16555_ACEOF
16556ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16557if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16558  ac_have_decl=1
16559else
16560  ac_have_decl=0
16561fi
16562
16563cat >>confdefs.h <<_ACEOF
16564#define HAVE_DECL_GETENV $ac_have_decl
16565_ACEOF
16566ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16567if test "x$ac_cv_have_decl_environ" = x""yes; then :
16568  ac_have_decl=1
16569else
16570  ac_have_decl=0
16571fi
16572
16573cat >>confdefs.h <<_ACEOF
16574#define HAVE_DECL_ENVIRON $ac_have_decl
16575_ACEOF
16576
16577
16578# Link in zlib if we can.  This is needed only for the bootstrap tests
16579# right now, since those tests use libbfd, which depends on zlib.
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16581$as_echo_n "checking for library containing zlibVersion... " >&6; }
16582if test "${ac_cv_search_zlibVersion+set}" = set; then :
16583  $as_echo_n "(cached) " >&6
16584else
16585  ac_func_search_save_LIBS=$LIBS
16586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587/* end confdefs.h.  */
16588
16589/* Override any GCC internal prototype to avoid an error.
16590   Use char because int might match the return type of a GCC
16591   builtin and then its argument prototype would still apply.  */
16592#ifdef __cplusplus
16593extern "C"
16594#endif
16595char zlibVersion ();
16596int
16597main ()
16598{
16599return zlibVersion ();
16600  ;
16601  return 0;
16602}
16603_ACEOF
16604for ac_lib in '' z; do
16605  if test -z "$ac_lib"; then
16606    ac_res="none required"
16607  else
16608    ac_res=-l$ac_lib
16609    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16610  fi
16611  if ac_fn_c_try_link "$LINENO"; then :
16612  ac_cv_search_zlibVersion=$ac_res
16613fi
16614rm -f core conftest.err conftest.$ac_objext \
16615    conftest$ac_exeext
16616  if test "${ac_cv_search_zlibVersion+set}" = set; then :
16617  break
16618fi
16619done
16620if test "${ac_cv_search_zlibVersion+set}" = set; then :
16621
16622else
16623  ac_cv_search_zlibVersion=no
16624fi
16625rm conftest.$ac_ext
16626LIBS=$ac_func_search_save_LIBS
16627fi
16628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16629$as_echo "$ac_cv_search_zlibVersion" >&6; }
16630ac_res=$ac_cv_search_zlibVersion
16631if test "$ac_res" != no; then :
16632  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16633  for ac_header in zlib.h
16634do :
16635  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16636if test "x$ac_cv_header_zlib_h" = x""yes; then :
16637  cat >>confdefs.h <<_ACEOF
16638#define HAVE_ZLIB_H 1
16639_ACEOF
16640
16641fi
16642
16643done
16644
16645fi
16646
16647
16648# When converting linker scripts into strings for use in emulation
16649# files, use astring.sed if the compiler supports ANSI string
16650# concatenation, or ostring.sed otherwise.  This is to support the
16651# broken Microsoft MSVC compiler, which limits the length of string
16652# constants, while still supporting pre-ANSI compilers which do not
16653# support string concatenation.
16654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16655$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16656if test "${ld_cv_string_concatenation+set}" = set; then :
16657  $as_echo_n "(cached) " >&6
16658else
16659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660/* end confdefs.h.  */
16661
16662int
16663main ()
16664{
16665char *a = "a" "a";
16666  ;
16667  return 0;
16668}
16669_ACEOF
16670if ac_fn_c_try_compile "$LINENO"; then :
16671  ld_cv_string_concatenation=yes
16672else
16673  ld_cv_string_concatenation=no
16674fi
16675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676fi
16677
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16679$as_echo "$ld_cv_string_concatenation" >&6; }
16680if test "$ld_cv_string_concatenation" = "yes"; then
16681  STRINGIFY=astring.sed
16682else
16683  STRINGIFY=ostring.sed
16684fi
16685
16686
16687# target-specific stuff:
16688
16689all_targets=
16690EMUL=
16691all_emuls=
16692all_emul_extras=
16693all_libpath=
16694
16695rm -f tdirs
16696
16697for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16698do
16699  if test "$targ_alias" = "all"; then
16700    all_targets=true
16701  else
16702    # Canonicalize the secondary target names.
16703    result=`$ac_config_sub $targ_alias 2>/dev/null`
16704    if test -n "$result"; then
16705	targ=$result
16706    else
16707	targ=$targ_alias
16708    fi
16709
16710    . ${srcdir}/configure.tgt
16711
16712    if test "$targ" = "$target"; then
16713      EMUL=$targ_emul
16714    fi
16715
16716    if test x${want64} = xfalse; then
16717      . ${srcdir}/../bfd/config.bfd
16718    fi
16719
16720    if test x${want64} = xtrue; then
16721      targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16722      targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16723    fi
16724
16725    for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16726	case " $all_emuls " in
16727	*" e${i}.o "*) ;;
16728	*)
16729	  all_emuls="$all_emuls e${i}.o"
16730	  eval result=\$tdir_$i
16731	  test -z "$result" && result=$targ_alias
16732	  echo tdir_$i=$result >> tdirs
16733	  ;;
16734	esac
16735    done
16736
16737    for i in $targ_emul $targ_extra_libpath; do
16738	case " $all_libpath " in
16739	*" ${i} "*) ;;
16740	*)
16741	  if test -z "$all_libpath"; then
16742	    all_libpath=${i}
16743	  else
16744	    all_libpath="$all_libpath ${i}"
16745	  fi
16746	  ;;
16747	esac
16748    done
16749
16750    for i in $targ_extra_ofiles; do
16751	case " $all_emul_extras " in
16752	*" ${i} "*) ;;
16753	*)
16754	  all_emul_extras="$all_emul_extras ${i}"
16755	  ;;
16756	esac
16757    done
16758  fi
16759done
16760
16761
16762
16763TDIRS=tdirs
16764
16765
16766if test x${all_targets} = xtrue; then
16767  if test x${want64} = xfalse; then
16768    # The cast to long int works around a bug in the HP C Compiler
16769# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16770# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16771# This bug is HP SR number 8606223364.
16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16773$as_echo_n "checking size of long... " >&6; }
16774if test "${ac_cv_sizeof_long+set}" = set; then :
16775  $as_echo_n "(cached) " >&6
16776else
16777  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16778
16779else
16780  if test "$ac_cv_type_long" = yes; then
16781     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16783{ as_fn_set_status 77
16784as_fn_error "cannot compute sizeof (long)
16785See \`config.log' for more details." "$LINENO" 5; }; }
16786   else
16787     ac_cv_sizeof_long=0
16788   fi
16789fi
16790
16791fi
16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16793$as_echo "$ac_cv_sizeof_long" >&6; }
16794
16795
16796
16797cat >>confdefs.h <<_ACEOF
16798#define SIZEOF_LONG $ac_cv_sizeof_long
16799_ACEOF
16800
16801
16802    if test "x${ac_cv_sizeof_long}" = "x8"; then
16803      want64=true
16804    fi
16805  fi
16806  if test x${want64} = xtrue; then
16807    EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16808  else
16809    EMULATION_OFILES='$(ALL_EMULATIONS)'
16810  fi
16811  EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
16812else
16813  EMULATION_OFILES=$all_emuls
16814  EMUL_EXTRA_OFILES=$all_emul_extras
16815fi
16816
16817
16818
16819
16820EMULATION_LIBPATH=$all_libpath
16821
16822
16823if test x${enable_static} = xno; then
16824  TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16825else
16826  TESTBFDLIB="../bfd/.libs/libbfd.a"
16827fi
16828
16829
16830target_vendor=${target_vendor=$host_vendor}
16831case "$target_vendor" in
16832  hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16833  *)  EXTRA_SHLIB_EXTENSION= ;;
16834esac
16835
16836case "$target_os" in
16837  lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
16838esac
16839
16840if test x${EXTRA_SHLIB_EXTENSION} != x ; then
16841
16842cat >>confdefs.h <<_ACEOF
16843#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
16844_ACEOF
16845
16846fi
16847
16848
16849
16850
16851
16852
16853ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16854
16855cat >confcache <<\_ACEOF
16856# This file is a shell script that caches the results of configure
16857# tests run on this system so they can be shared between configure
16858# scripts and configure runs, see configure's option --config-cache.
16859# It is not useful on other systems.  If it contains results you don't
16860# want to keep, you may remove or edit it.
16861#
16862# config.status only pays attention to the cache file if you give it
16863# the --recheck option to rerun configure.
16864#
16865# `ac_cv_env_foo' variables (set or unset) will be overridden when
16866# loading this file, other *unset* `ac_cv_foo' will be assigned the
16867# following values.
16868
16869_ACEOF
16870
16871# The following way of writing the cache mishandles newlines in values,
16872# but we know of no workaround that is simple, portable, and efficient.
16873# So, we kill variables containing newlines.
16874# Ultrix sh set writes to stderr and can't be redirected directly,
16875# and sets the high bit in the cache file unless we assign to the vars.
16876(
16877  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16878    eval ac_val=\$$ac_var
16879    case $ac_val in #(
16880    *${as_nl}*)
16881      case $ac_var in #(
16882      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16883$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16884      esac
16885      case $ac_var in #(
16886      _ | IFS | as_nl) ;; #(
16887      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16888      *) { eval $ac_var=; unset $ac_var;} ;;
16889      esac ;;
16890    esac
16891  done
16892
16893  (set) 2>&1 |
16894    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16895    *${as_nl}ac_space=\ *)
16896      # `set' does not quote correctly, so add quotes: double-quote
16897      # substitution turns \\\\ into \\, and sed turns \\ into \.
16898      sed -n \
16899	"s/'/'\\\\''/g;
16900	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16901      ;; #(
16902    *)
16903      # `set' quotes correctly as required by POSIX, so do not add quotes.
16904      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16905      ;;
16906    esac |
16907    sort
16908) |
16909  sed '
16910     /^ac_cv_env_/b end
16911     t clear
16912     :clear
16913     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16914     t end
16915     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16916     :end' >>confcache
16917if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16918  if test -w "$cache_file"; then
16919    test "x$cache_file" != "x/dev/null" &&
16920      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16921$as_echo "$as_me: updating cache $cache_file" >&6;}
16922    cat confcache >$cache_file
16923  else
16924    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16925$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16926  fi
16927fi
16928rm -f confcache
16929
16930test "x$prefix" = xNONE && prefix=$ac_default_prefix
16931# Let make expand exec_prefix.
16932test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16933
16934DEFS=-DHAVE_CONFIG_H
16935
16936ac_libobjs=
16937ac_ltlibobjs=
16938for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16939  # 1. Remove the extension, and $U if already installed.
16940  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16941  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16942  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16943  #    will be set to the directory where LIBOBJS objects are built.
16944  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16945  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16946done
16947LIBOBJS=$ac_libobjs
16948
16949LTLIBOBJS=$ac_ltlibobjs
16950
16951
16952if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16953  as_fn_error "conditional \"AMDEP\" was never defined.
16954Usually this means the macro was only invoked conditionally." "$LINENO" 5
16955fi
16956if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16957  as_fn_error "conditional \"am__fastdepCC\" was never defined.
16958Usually this means the macro was only invoked conditionally." "$LINENO" 5
16959fi
16960 if test -n "$EXEEXT"; then
16961  am__EXEEXT_TRUE=
16962  am__EXEEXT_FALSE='#'
16963else
16964  am__EXEEXT_TRUE='#'
16965  am__EXEEXT_FALSE=
16966fi
16967
16968if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16969  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16970Usually this means the macro was only invoked conditionally." "$LINENO" 5
16971fi
16972if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16973  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16974Usually this means the macro was only invoked conditionally." "$LINENO" 5
16975fi
16976if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16977  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16978Usually this means the macro was only invoked conditionally." "$LINENO" 5
16979fi
16980if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16981  as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
16982Usually this means the macro was only invoked conditionally." "$LINENO" 5
16983fi
16984if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
16985  as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
16986Usually this means the macro was only invoked conditionally." "$LINENO" 5
16987fi
16988
16989: ${CONFIG_STATUS=./config.status}
16990ac_write_fail=0
16991ac_clean_files_save=$ac_clean_files
16992ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16994$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16995as_write_fail=0
16996cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16997#! $SHELL
16998# Generated by $as_me.
16999# Run this file to recreate the current configuration.
17000# Compiler output produced by configure, useful for debugging
17001# configure, is in config.log if it exists.
17002
17003debug=false
17004ac_cs_recheck=false
17005ac_cs_silent=false
17006
17007SHELL=\${CONFIG_SHELL-$SHELL}
17008export SHELL
17009_ASEOF
17010cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17011## -------------------- ##
17012## M4sh Initialization. ##
17013## -------------------- ##
17014
17015# Be more Bourne compatible
17016DUALCASE=1; export DUALCASE # for MKS sh
17017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17018  emulate sh
17019  NULLCMD=:
17020  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17021  # is contrary to our usage.  Disable this feature.
17022  alias -g '${1+"$@"}'='"$@"'
17023  setopt NO_GLOB_SUBST
17024else
17025  case `(set -o) 2>/dev/null` in #(
17026  *posix*) :
17027    set -o posix ;; #(
17028  *) :
17029     ;;
17030esac
17031fi
17032
17033
17034as_nl='
17035'
17036export as_nl
17037# Printing a long string crashes Solaris 7 /usr/bin/printf.
17038as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17039as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17040as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17041# Prefer a ksh shell builtin over an external printf program on Solaris,
17042# but without wasting forks for bash or zsh.
17043if test -z "$BASH_VERSION$ZSH_VERSION" \
17044    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17045  as_echo='print -r --'
17046  as_echo_n='print -rn --'
17047elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17048  as_echo='printf %s\n'
17049  as_echo_n='printf %s'
17050else
17051  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17052    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17053    as_echo_n='/usr/ucb/echo -n'
17054  else
17055    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17056    as_echo_n_body='eval
17057      arg=$1;
17058      case $arg in #(
17059      *"$as_nl"*)
17060	expr "X$arg" : "X\\(.*\\)$as_nl";
17061	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17062      esac;
17063      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17064    '
17065    export as_echo_n_body
17066    as_echo_n='sh -c $as_echo_n_body as_echo'
17067  fi
17068  export as_echo_body
17069  as_echo='sh -c $as_echo_body as_echo'
17070fi
17071
17072# The user is always right.
17073if test "${PATH_SEPARATOR+set}" != set; then
17074  PATH_SEPARATOR=:
17075  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17076    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17077      PATH_SEPARATOR=';'
17078  }
17079fi
17080
17081
17082# IFS
17083# We need space, tab and new line, in precisely that order.  Quoting is
17084# there to prevent editors from complaining about space-tab.
17085# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17086# splitting by setting IFS to empty value.)
17087IFS=" ""	$as_nl"
17088
17089# Find who we are.  Look in the path if we contain no directory separator.
17090case $0 in #((
17091  *[\\/]* ) as_myself=$0 ;;
17092  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093for as_dir in $PATH
17094do
17095  IFS=$as_save_IFS
17096  test -z "$as_dir" && as_dir=.
17097    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17098  done
17099IFS=$as_save_IFS
17100
17101     ;;
17102esac
17103# We did not find ourselves, most probably we were run as `sh COMMAND'
17104# in which case we are not to be found in the path.
17105if test "x$as_myself" = x; then
17106  as_myself=$0
17107fi
17108if test ! -f "$as_myself"; then
17109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17110  exit 1
17111fi
17112
17113# Unset variables that we do not need and which cause bugs (e.g. in
17114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17115# suppresses any "Segmentation fault" message there.  '((' could
17116# trigger a bug in pdksh 5.2.14.
17117for as_var in BASH_ENV ENV MAIL MAILPATH
17118do eval test x\${$as_var+set} = xset \
17119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17120done
17121PS1='$ '
17122PS2='> '
17123PS4='+ '
17124
17125# NLS nuisances.
17126LC_ALL=C
17127export LC_ALL
17128LANGUAGE=C
17129export LANGUAGE
17130
17131# CDPATH.
17132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17133
17134
17135# as_fn_error ERROR [LINENO LOG_FD]
17136# ---------------------------------
17137# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17138# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17139# script with status $?, using 1 if that was 0.
17140as_fn_error ()
17141{
17142  as_status=$?; test $as_status -eq 0 && as_status=1
17143  if test "$3"; then
17144    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17145    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17146  fi
17147  $as_echo "$as_me: error: $1" >&2
17148  as_fn_exit $as_status
17149} # as_fn_error
17150
17151
17152# as_fn_set_status STATUS
17153# -----------------------
17154# Set $? to STATUS, without forking.
17155as_fn_set_status ()
17156{
17157  return $1
17158} # as_fn_set_status
17159
17160# as_fn_exit STATUS
17161# -----------------
17162# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17163as_fn_exit ()
17164{
17165  set +e
17166  as_fn_set_status $1
17167  exit $1
17168} # as_fn_exit
17169
17170# as_fn_unset VAR
17171# ---------------
17172# Portably unset VAR.
17173as_fn_unset ()
17174{
17175  { eval $1=; unset $1;}
17176}
17177as_unset=as_fn_unset
17178# as_fn_append VAR VALUE
17179# ----------------------
17180# Append the text in VALUE to the end of the definition contained in VAR. Take
17181# advantage of any shell optimizations that allow amortized linear growth over
17182# repeated appends, instead of the typical quadratic growth present in naive
17183# implementations.
17184if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17185  eval 'as_fn_append ()
17186  {
17187    eval $1+=\$2
17188  }'
17189else
17190  as_fn_append ()
17191  {
17192    eval $1=\$$1\$2
17193  }
17194fi # as_fn_append
17195
17196# as_fn_arith ARG...
17197# ------------------
17198# Perform arithmetic evaluation on the ARGs, and store the result in the
17199# global $as_val. Take advantage of shells that can avoid forks. The arguments
17200# must be portable across $(()) and expr.
17201if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17202  eval 'as_fn_arith ()
17203  {
17204    as_val=$(( $* ))
17205  }'
17206else
17207  as_fn_arith ()
17208  {
17209    as_val=`expr "$@" || test $? -eq 1`
17210  }
17211fi # as_fn_arith
17212
17213
17214if expr a : '\(a\)' >/dev/null 2>&1 &&
17215   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17216  as_expr=expr
17217else
17218  as_expr=false
17219fi
17220
17221if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17222  as_basename=basename
17223else
17224  as_basename=false
17225fi
17226
17227if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17228  as_dirname=dirname
17229else
17230  as_dirname=false
17231fi
17232
17233as_me=`$as_basename -- "$0" ||
17234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17235	 X"$0" : 'X\(//\)$' \| \
17236	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17237$as_echo X/"$0" |
17238    sed '/^.*\/\([^/][^/]*\)\/*$/{
17239	    s//\1/
17240	    q
17241	  }
17242	  /^X\/\(\/\/\)$/{
17243	    s//\1/
17244	    q
17245	  }
17246	  /^X\/\(\/\).*/{
17247	    s//\1/
17248	    q
17249	  }
17250	  s/.*/./; q'`
17251
17252# Avoid depending upon Character Ranges.
17253as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17254as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17255as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17256as_cr_digits='0123456789'
17257as_cr_alnum=$as_cr_Letters$as_cr_digits
17258
17259ECHO_C= ECHO_N= ECHO_T=
17260case `echo -n x` in #(((((
17261-n*)
17262  case `echo 'xy\c'` in
17263  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17264  xy)  ECHO_C='\c';;
17265  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17266       ECHO_T='	';;
17267  esac;;
17268*)
17269  ECHO_N='-n';;
17270esac
17271
17272rm -f conf$$ conf$$.exe conf$$.file
17273if test -d conf$$.dir; then
17274  rm -f conf$$.dir/conf$$.file
17275else
17276  rm -f conf$$.dir
17277  mkdir conf$$.dir 2>/dev/null
17278fi
17279if (echo >conf$$.file) 2>/dev/null; then
17280  if ln -s conf$$.file conf$$ 2>/dev/null; then
17281    as_ln_s='ln -s'
17282    # ... but there are two gotchas:
17283    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17284    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17285    # In both cases, we have to default to `cp -p'.
17286    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17287      as_ln_s='cp -p'
17288  elif ln conf$$.file conf$$ 2>/dev/null; then
17289    as_ln_s=ln
17290  else
17291    as_ln_s='cp -p'
17292  fi
17293else
17294  as_ln_s='cp -p'
17295fi
17296rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17297rmdir conf$$.dir 2>/dev/null
17298
17299
17300# as_fn_mkdir_p
17301# -------------
17302# Create "$as_dir" as a directory, including parents if necessary.
17303as_fn_mkdir_p ()
17304{
17305
17306  case $as_dir in #(
17307  -*) as_dir=./$as_dir;;
17308  esac
17309  test -d "$as_dir" || eval $as_mkdir_p || {
17310    as_dirs=
17311    while :; do
17312      case $as_dir in #(
17313      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17314      *) as_qdir=$as_dir;;
17315      esac
17316      as_dirs="'$as_qdir' $as_dirs"
17317      as_dir=`$as_dirname -- "$as_dir" ||
17318$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319	 X"$as_dir" : 'X\(//\)[^/]' \| \
17320	 X"$as_dir" : 'X\(//\)$' \| \
17321	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17322$as_echo X"$as_dir" |
17323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17324	    s//\1/
17325	    q
17326	  }
17327	  /^X\(\/\/\)[^/].*/{
17328	    s//\1/
17329	    q
17330	  }
17331	  /^X\(\/\/\)$/{
17332	    s//\1/
17333	    q
17334	  }
17335	  /^X\(\/\).*/{
17336	    s//\1/
17337	    q
17338	  }
17339	  s/.*/./; q'`
17340      test -d "$as_dir" && break
17341    done
17342    test -z "$as_dirs" || eval "mkdir $as_dirs"
17343  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17344
17345
17346} # as_fn_mkdir_p
17347if mkdir -p . 2>/dev/null; then
17348  as_mkdir_p='mkdir -p "$as_dir"'
17349else
17350  test -d ./-p && rmdir ./-p
17351  as_mkdir_p=false
17352fi
17353
17354if test -x / >/dev/null 2>&1; then
17355  as_test_x='test -x'
17356else
17357  if ls -dL / >/dev/null 2>&1; then
17358    as_ls_L_option=L
17359  else
17360    as_ls_L_option=
17361  fi
17362  as_test_x='
17363    eval sh -c '\''
17364      if test -d "$1"; then
17365	test -d "$1/.";
17366      else
17367	case $1 in #(
17368	-*)set "./$1";;
17369	esac;
17370	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17371	???[sx]*):;;*)false;;esac;fi
17372    '\'' sh
17373  '
17374fi
17375as_executable_p=$as_test_x
17376
17377# Sed expression to map a string onto a valid CPP name.
17378as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17379
17380# Sed expression to map a string onto a valid variable name.
17381as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17382
17383
17384exec 6>&1
17385## ----------------------------------- ##
17386## Main body of $CONFIG_STATUS script. ##
17387## ----------------------------------- ##
17388_ASEOF
17389test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17390
17391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17392# Save the log message, to keep $0 and so on meaningful, and to
17393# report actual input values of CONFIG_FILES etc. instead of their
17394# values after options handling.
17395ac_log="
17396This file was extended by $as_me, which was
17397generated by GNU Autoconf 2.64.  Invocation command line was
17398
17399  CONFIG_FILES    = $CONFIG_FILES
17400  CONFIG_HEADERS  = $CONFIG_HEADERS
17401  CONFIG_LINKS    = $CONFIG_LINKS
17402  CONFIG_COMMANDS = $CONFIG_COMMANDS
17403  $ $0 $@
17404
17405on `(hostname || uname -n) 2>/dev/null | sed 1q`
17406"
17407
17408_ACEOF
17409
17410case $ac_config_files in *"
17411"*) set x $ac_config_files; shift; ac_config_files=$*;;
17412esac
17413
17414case $ac_config_headers in *"
17415"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17416esac
17417
17418
17419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17420# Files that config.status was made for.
17421config_files="$ac_config_files"
17422config_headers="$ac_config_headers"
17423config_commands="$ac_config_commands"
17424
17425_ACEOF
17426
17427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17428ac_cs_usage="\
17429\`$as_me' instantiates files and other configuration actions
17430from templates according to the current configuration.  Unless the files
17431and actions are specified as TAGs, all are instantiated by default.
17432
17433Usage: $0 [OPTION]... [TAG]...
17434
17435  -h, --help       print this help, then exit
17436  -V, --version    print version number and configuration settings, then exit
17437  -q, --quiet, --silent
17438                   do not print progress messages
17439  -d, --debug      don't remove temporary files
17440      --recheck    update $as_me by reconfiguring in the same conditions
17441      --file=FILE[:TEMPLATE]
17442                   instantiate the configuration file FILE
17443      --header=FILE[:TEMPLATE]
17444                   instantiate the configuration header FILE
17445
17446Configuration files:
17447$config_files
17448
17449Configuration headers:
17450$config_headers
17451
17452Configuration commands:
17453$config_commands
17454
17455Report bugs to the package provider."
17456
17457_ACEOF
17458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17459ac_cs_version="\\
17460config.status
17461configured by $0, generated by GNU Autoconf 2.64,
17462  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17463
17464Copyright (C) 2009 Free Software Foundation, Inc.
17465This config.status script is free software; the Free Software Foundation
17466gives unlimited permission to copy, distribute and modify it."
17467
17468ac_pwd='$ac_pwd'
17469srcdir='$srcdir'
17470INSTALL='$INSTALL'
17471MKDIR_P='$MKDIR_P'
17472AWK='$AWK'
17473test -n "\$AWK" || AWK=awk
17474_ACEOF
17475
17476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17477# The default lists apply if the user does not specify any file.
17478ac_need_defaults=:
17479while test $# != 0
17480do
17481  case $1 in
17482  --*=*)
17483    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17484    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17485    ac_shift=:
17486    ;;
17487  *)
17488    ac_option=$1
17489    ac_optarg=$2
17490    ac_shift=shift
17491    ;;
17492  esac
17493
17494  case $ac_option in
17495  # Handling of the options.
17496  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17497    ac_cs_recheck=: ;;
17498  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17499    $as_echo "$ac_cs_version"; exit ;;
17500  --debug | --debu | --deb | --de | --d | -d )
17501    debug=: ;;
17502  --file | --fil | --fi | --f )
17503    $ac_shift
17504    case $ac_optarg in
17505    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17506    esac
17507    as_fn_append CONFIG_FILES " '$ac_optarg'"
17508    ac_need_defaults=false;;
17509  --header | --heade | --head | --hea )
17510    $ac_shift
17511    case $ac_optarg in
17512    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17513    esac
17514    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17515    ac_need_defaults=false;;
17516  --he | --h)
17517    # Conflict between --help and --header
17518    as_fn_error "ambiguous option: \`$1'
17519Try \`$0 --help' for more information.";;
17520  --help | --hel | -h )
17521    $as_echo "$ac_cs_usage"; exit ;;
17522  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17523  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17524    ac_cs_silent=: ;;
17525
17526  # This is an error.
17527  -*) as_fn_error "unrecognized option: \`$1'
17528Try \`$0 --help' for more information." ;;
17529
17530  *) as_fn_append ac_config_targets " $1"
17531     ac_need_defaults=false ;;
17532
17533  esac
17534  shift
17535done
17536
17537ac_configure_extra_args=
17538
17539if $ac_cs_silent; then
17540  exec 6>/dev/null
17541  ac_configure_extra_args="$ac_configure_extra_args --silent"
17542fi
17543
17544_ACEOF
17545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546if \$ac_cs_recheck; then
17547  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17548  shift
17549  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17550  CONFIG_SHELL='$SHELL'
17551  export CONFIG_SHELL
17552  exec "\$@"
17553fi
17554
17555_ACEOF
17556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17557exec 5>>config.log
17558{
17559  echo
17560  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17561## Running $as_me. ##
17562_ASBOX
17563  $as_echo "$ac_log"
17564} >&5
17565
17566_ACEOF
17567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17568#
17569# INIT-COMMANDS
17570#
17571AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17572
17573
17574# The HP-UX ksh and POSIX shell print the target directory to stdout
17575# if CDPATH is set.
17576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17577
17578sed_quote_subst='$sed_quote_subst'
17579double_quote_subst='$double_quote_subst'
17580delay_variable_subst='$delay_variable_subst'
17581macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17582macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17583enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17584enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17585pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17586enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17587SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17588ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17589host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17590host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17591host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17592build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17593build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17594build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17595SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17596Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17597GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17598EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17599FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17600LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17601NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17602LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17603max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17604ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17605exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17606lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17607lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17608lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17609reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17610reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17611OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17612deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17613file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17614AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17615AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17616STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17617RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17618old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17619old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17620old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17621lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17622CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17623CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17624compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17625GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17626lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17627lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17628lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17629lt_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"`'
17630objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17631MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17632lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17633lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17634lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17635lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17636lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17637need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17638DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17639NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17640LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17641OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17642OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17643libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17644shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17645extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17646archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17647enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17648export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17649whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17650compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17651old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17652old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17653archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17654archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17655module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17656module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17657with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17658allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17659no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17660hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17661hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17662hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17663hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17664hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17665hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17666hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17667hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17668inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17669link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17670fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17671always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17672export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17673exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17674include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17675prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17676file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17677variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17678need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17679need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17680version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17681runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17682shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17683shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17684libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17685library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17686soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17687install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17688postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17689postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17690finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17691finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17692hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17693sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17694sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17695hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17696enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17697enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17698enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17699old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17700striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17701compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17702predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17703postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17704predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17705postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17706compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17707LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17708reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17709reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17710old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17711compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17712GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17713lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17714lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17715lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17716lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17717lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17718archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17719enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17720export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17721whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17722compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17723old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17724old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17725archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17726archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17727module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17728module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17729with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17730allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17731no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17732hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17733hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17734hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17735hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17736hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17737hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17738hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17739hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17740inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17741link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17742fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17743always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17744export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17745exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17746include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17747prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17748file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17749hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17750compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17751predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17752postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17753predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17754postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17755compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17756
17757LTCC='$LTCC'
17758LTCFLAGS='$LTCFLAGS'
17759compiler='$compiler_DEFAULT'
17760
17761# A function that is used when there is no print builtin or printf.
17762func_fallback_echo ()
17763{
17764  eval 'cat <<_LTECHO_EOF
17765\$1
17766_LTECHO_EOF'
17767}
17768
17769# Quote evaled strings.
17770for var in SHELL \
17771ECHO \
17772SED \
17773GREP \
17774EGREP \
17775FGREP \
17776LD \
17777NM \
17778LN_S \
17779lt_SP2NL \
17780lt_NL2SP \
17781reload_flag \
17782OBJDUMP \
17783deplibs_check_method \
17784file_magic_cmd \
17785AR \
17786AR_FLAGS \
17787STRIP \
17788RANLIB \
17789CC \
17790CFLAGS \
17791compiler \
17792lt_cv_sys_global_symbol_pipe \
17793lt_cv_sys_global_symbol_to_cdecl \
17794lt_cv_sys_global_symbol_to_c_name_address \
17795lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17796lt_prog_compiler_no_builtin_flag \
17797lt_prog_compiler_wl \
17798lt_prog_compiler_pic \
17799lt_prog_compiler_static \
17800lt_cv_prog_compiler_c_o \
17801need_locks \
17802DSYMUTIL \
17803NMEDIT \
17804LIPO \
17805OTOOL \
17806OTOOL64 \
17807shrext_cmds \
17808export_dynamic_flag_spec \
17809whole_archive_flag_spec \
17810compiler_needs_object \
17811with_gnu_ld \
17812allow_undefined_flag \
17813no_undefined_flag \
17814hardcode_libdir_flag_spec \
17815hardcode_libdir_flag_spec_ld \
17816hardcode_libdir_separator \
17817fix_srcfile_path \
17818exclude_expsyms \
17819include_expsyms \
17820file_list_spec \
17821variables_saved_for_relink \
17822libname_spec \
17823library_names_spec \
17824soname_spec \
17825install_override_mode \
17826finish_eval \
17827old_striplib \
17828striplib \
17829compiler_lib_search_dirs \
17830predep_objects \
17831postdep_objects \
17832predeps \
17833postdeps \
17834compiler_lib_search_path \
17835LD_CXX \
17836reload_flag_CXX \
17837compiler_CXX \
17838lt_prog_compiler_no_builtin_flag_CXX \
17839lt_prog_compiler_wl_CXX \
17840lt_prog_compiler_pic_CXX \
17841lt_prog_compiler_static_CXX \
17842lt_cv_prog_compiler_c_o_CXX \
17843export_dynamic_flag_spec_CXX \
17844whole_archive_flag_spec_CXX \
17845compiler_needs_object_CXX \
17846with_gnu_ld_CXX \
17847allow_undefined_flag_CXX \
17848no_undefined_flag_CXX \
17849hardcode_libdir_flag_spec_CXX \
17850hardcode_libdir_flag_spec_ld_CXX \
17851hardcode_libdir_separator_CXX \
17852fix_srcfile_path_CXX \
17853exclude_expsyms_CXX \
17854include_expsyms_CXX \
17855file_list_spec_CXX \
17856compiler_lib_search_dirs_CXX \
17857predep_objects_CXX \
17858postdep_objects_CXX \
17859predeps_CXX \
17860postdeps_CXX \
17861compiler_lib_search_path_CXX; do
17862    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17863    *[\\\\\\\`\\"\\\$]*)
17864      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17865      ;;
17866    *)
17867      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17868      ;;
17869    esac
17870done
17871
17872# Double-quote double-evaled strings.
17873for var in reload_cmds \
17874old_postinstall_cmds \
17875old_postuninstall_cmds \
17876old_archive_cmds \
17877extract_expsyms_cmds \
17878old_archive_from_new_cmds \
17879old_archive_from_expsyms_cmds \
17880archive_cmds \
17881archive_expsym_cmds \
17882module_cmds \
17883module_expsym_cmds \
17884export_symbols_cmds \
17885prelink_cmds \
17886postinstall_cmds \
17887postuninstall_cmds \
17888finish_cmds \
17889sys_lib_search_path_spec \
17890sys_lib_dlsearch_path_spec \
17891reload_cmds_CXX \
17892old_archive_cmds_CXX \
17893old_archive_from_new_cmds_CXX \
17894old_archive_from_expsyms_cmds_CXX \
17895archive_cmds_CXX \
17896archive_expsym_cmds_CXX \
17897module_cmds_CXX \
17898module_expsym_cmds_CXX \
17899export_symbols_cmds_CXX \
17900prelink_cmds_CXX; do
17901    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17902    *[\\\\\\\`\\"\\\$]*)
17903      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17904      ;;
17905    *)
17906      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17907      ;;
17908    esac
17909done
17910
17911ac_aux_dir='$ac_aux_dir'
17912xsi_shell='$xsi_shell'
17913lt_shell_append='$lt_shell_append'
17914
17915# See if we are running on zsh, and set the options which allow our
17916# commands through without removal of \ escapes INIT.
17917if test -n "\${ZSH_VERSION+set}" ; then
17918   setopt NO_GLOB_SUBST
17919fi
17920
17921
17922    PACKAGE='$PACKAGE'
17923    VERSION='$VERSION'
17924    TIMESTAMP='$TIMESTAMP'
17925    RM='$RM'
17926    ofile='$ofile'
17927
17928
17929
17930
17931
17932# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17933    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17934    # from automake.
17935    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17936    # Capture the value of LINGUAS because we need it to compute CATALOGS.
17937    LINGUAS="${LINGUAS-%UNSET%}"
17938
17939
17940_ACEOF
17941
17942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17943
17944# Handling of arguments.
17945for ac_config_target in $ac_config_targets
17946do
17947  case $ac_config_target in
17948    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17949    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17950    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17951    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17952    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17953    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17954
17955  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17956  esac
17957done
17958
17959
17960# If the user did not use the arguments to specify the items to instantiate,
17961# then the envvar interface is used.  Set only those that are not.
17962# We use the long form for the default assignment because of an extremely
17963# bizarre bug on SunOS 4.1.3.
17964if $ac_need_defaults; then
17965  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17966  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17967  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17968fi
17969
17970# Have a temporary directory for convenience.  Make it in the build tree
17971# simply because there is no reason against having it here, and in addition,
17972# creating and moving files from /tmp can sometimes cause problems.
17973# Hook for its removal unless debugging.
17974# Note that there is a small window in which the directory will not be cleaned:
17975# after its creation but before its name has been assigned to `$tmp'.
17976$debug ||
17977{
17978  tmp=
17979  trap 'exit_status=$?
17980  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17981' 0
17982  trap 'as_fn_exit 1' 1 2 13 15
17983}
17984# Create a (secure) tmp directory for tmp files.
17985
17986{
17987  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17988  test -n "$tmp" && test -d "$tmp"
17989}  ||
17990{
17991  tmp=./conf$$-$RANDOM
17992  (umask 077 && mkdir "$tmp")
17993} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17994
17995# Set up the scripts for CONFIG_FILES section.
17996# No need to generate them if there are no CONFIG_FILES.
17997# This happens for instance with `./config.status config.h'.
17998if test -n "$CONFIG_FILES"; then
17999
18000if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18001  ac_cs_awk_getline=:
18002  ac_cs_awk_pipe_init=
18003  ac_cs_awk_read_file='
18004      while ((getline aline < (F[key])) > 0)
18005	print(aline)
18006      close(F[key])'
18007  ac_cs_awk_pipe_fini=
18008else
18009  ac_cs_awk_getline=false
18010  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18011  ac_cs_awk_read_file='
18012      print "|#_!!_#|"
18013      print "cat " F[key] " &&"
18014      '$ac_cs_awk_pipe_init
18015  # The final `:' finishes the AND list.
18016  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18017fi
18018ac_cr=`echo X | tr X '\015'`
18019# On cygwin, bash can eat \r inside `` if the user requested igncr.
18020# But we know of no other shell where ac_cr would be empty at this
18021# point, so we can use a bashism as a fallback.
18022if test "x$ac_cr" = x; then
18023  eval ac_cr=\$\'\\r\'
18024fi
18025ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18026if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18027  ac_cs_awk_cr='\r'
18028else
18029  ac_cs_awk_cr=$ac_cr
18030fi
18031
18032echo 'BEGIN {' >"$tmp/subs1.awk" &&
18033_ACEOF
18034
18035# Create commands to substitute file output variables.
18036{
18037  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18038  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18039  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18040  echo "_ACAWK" &&
18041  echo "_ACEOF"
18042} >conf$$files.sh &&
18043. ./conf$$files.sh ||
18044  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18045rm -f conf$$files.sh
18046
18047{
18048  echo "cat >conf$$subs.awk <<_ACEOF" &&
18049  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18050  echo "_ACEOF"
18051} >conf$$subs.sh ||
18052  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18053ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18054ac_delim='%!_!# '
18055for ac_last_try in false false false false false :; do
18056  . ./conf$$subs.sh ||
18057    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18058
18059  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18060  if test $ac_delim_n = $ac_delim_num; then
18061    break
18062  elif $ac_last_try; then
18063    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18064  else
18065    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18066  fi
18067done
18068rm -f conf$$subs.sh
18069
18070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18071cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18072_ACEOF
18073sed -n '
18074h
18075s/^/S["/; s/!.*/"]=/
18076p
18077g
18078s/^[^!]*!//
18079:repl
18080t repl
18081s/'"$ac_delim"'$//
18082t delim
18083:nl
18084h
18085s/\(.\{148\}\).*/\1/
18086t more1
18087s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18088p
18089n
18090b repl
18091:more1
18092s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18093p
18094g
18095s/.\{148\}//
18096t nl
18097:delim
18098h
18099s/\(.\{148\}\).*/\1/
18100t more2
18101s/["\\]/\\&/g; s/^/"/; s/$/"/
18102p
18103b
18104:more2
18105s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18106p
18107g
18108s/.\{148\}//
18109t delim
18110' <conf$$subs.awk | sed '
18111/^[^""]/{
18112  N
18113  s/\n//
18114}
18115' >>$CONFIG_STATUS || ac_write_fail=1
18116rm -f conf$$subs.awk
18117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18118_ACAWK
18119cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18120  for (key in S) S_is_set[key] = 1
18121  FS = ""
18122  \$ac_cs_awk_pipe_init
18123}
18124{
18125  line = $ 0
18126  nfields = split(line, field, "@")
18127  substed = 0
18128  len = length(field[1])
18129  for (i = 2; i < nfields; i++) {
18130    key = field[i]
18131    keylen = length(key)
18132    if (S_is_set[key]) {
18133      value = S[key]
18134      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18135      len += length(value) + length(field[++i])
18136      substed = 1
18137    } else
18138      len += 1 + keylen
18139  }
18140  if (nfields == 3 && !substed) {
18141    key = field[2]
18142    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
18143      \$ac_cs_awk_read_file
18144      next
18145    }
18146  }
18147  print line
18148}
18149\$ac_cs_awk_pipe_fini
18150_ACAWK
18151_ACEOF
18152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18153if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18154  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18155else
18156  cat
18157fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18158  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18159_ACEOF
18160
18161# VPATH may cause trouble with some makes, so we remove $(srcdir),
18162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18163# trailing colons and then remove the whole line if VPATH becomes empty
18164# (actually we leave an empty line to preserve line numbers).
18165if test "x$srcdir" = x.; then
18166  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18167s/:*\$(srcdir):*/:/
18168s/:*\${srcdir}:*/:/
18169s/:*@srcdir@:*/:/
18170s/^\([^=]*=[	 ]*\):*/\1/
18171s/:*$//
18172s/^[^=]*=[	 ]*$//
18173}'
18174fi
18175
18176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18177fi # test -n "$CONFIG_FILES"
18178
18179# Set up the scripts for CONFIG_HEADERS section.
18180# No need to generate them if there are no CONFIG_HEADERS.
18181# This happens for instance with `./config.status Makefile'.
18182if test -n "$CONFIG_HEADERS"; then
18183cat >"$tmp/defines.awk" <<\_ACAWK ||
18184BEGIN {
18185_ACEOF
18186
18187# Transform confdefs.h into an awk script `defines.awk', embedded as
18188# here-document in config.status, that substitutes the proper values into
18189# config.h.in to produce config.h.
18190
18191# Create a delimiter string that does not exist in confdefs.h, to ease
18192# handling of long lines.
18193ac_delim='%!_!# '
18194for ac_last_try in false false :; do
18195  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18196  if test -z "$ac_t"; then
18197    break
18198  elif $ac_last_try; then
18199    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18200  else
18201    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18202  fi
18203done
18204
18205# For the awk script, D is an array of macro values keyed by name,
18206# likewise P contains macro parameters if any.  Preserve backslash
18207# newline sequences.
18208
18209ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18210sed -n '
18211s/.\{148\}/&'"$ac_delim"'/g
18212t rset
18213:rset
18214s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18215t def
18216d
18217:def
18218s/\\$//
18219t bsnl
18220s/["\\]/\\&/g
18221s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18222D["\1"]=" \3"/p
18223s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18224d
18225:bsnl
18226s/["\\]/\\&/g
18227s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18228D["\1"]=" \3\\\\\\n"\\/p
18229t cont
18230s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18231t cont
18232d
18233:cont
18234n
18235s/.\{148\}/&'"$ac_delim"'/g
18236t clear
18237:clear
18238s/\\$//
18239t bsnlc
18240s/["\\]/\\&/g; s/^/"/; s/$/"/p
18241d
18242:bsnlc
18243s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18244b cont
18245' <confdefs.h | sed '
18246s/'"$ac_delim"'/"\\\
18247"/g' >>$CONFIG_STATUS || ac_write_fail=1
18248
18249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18250  for (key in D) D_is_set[key] = 1
18251  FS = ""
18252}
18253/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18254  line = \$ 0
18255  split(line, arg, " ")
18256  if (arg[1] == "#") {
18257    defundef = arg[2]
18258    mac1 = arg[3]
18259  } else {
18260    defundef = substr(arg[1], 2)
18261    mac1 = arg[2]
18262  }
18263  split(mac1, mac2, "(") #)
18264  macro = mac2[1]
18265  prefix = substr(line, 1, index(line, defundef) - 1)
18266  if (D_is_set[macro]) {
18267    # Preserve the white space surrounding the "#".
18268    print prefix "define", macro P[macro] D[macro]
18269    next
18270  } else {
18271    # Replace #undef with comments.  This is necessary, for example,
18272    # in the case of _POSIX_SOURCE, which is predefined and required
18273    # on some systems where configure will not decide to define it.
18274    if (defundef == "undef") {
18275      print "/*", prefix defundef, macro, "*/"
18276      next
18277    }
18278  }
18279}
18280{ print }
18281_ACAWK
18282_ACEOF
18283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18284  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18285fi # test -n "$CONFIG_HEADERS"
18286
18287
18288eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18289shift
18290for ac_tag
18291do
18292  case $ac_tag in
18293  :[FHLC]) ac_mode=$ac_tag; continue;;
18294  esac
18295  case $ac_mode$ac_tag in
18296  :[FHL]*:*);;
18297  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18298  :[FH]-) ac_tag=-:-;;
18299  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18300  esac
18301  ac_save_IFS=$IFS
18302  IFS=:
18303  set x $ac_tag
18304  IFS=$ac_save_IFS
18305  shift
18306  ac_file=$1
18307  shift
18308
18309  case $ac_mode in
18310  :L) ac_source=$1;;
18311  :[FH])
18312    ac_file_inputs=
18313    for ac_f
18314    do
18315      case $ac_f in
18316      -) ac_f="$tmp/stdin";;
18317      *) # Look for the file first in the build tree, then in the source tree
18318	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18319	 # because $ac_f cannot contain `:'.
18320	 test -f "$ac_f" ||
18321	   case $ac_f in
18322	   [\\/$]*) false;;
18323	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18324	   esac ||
18325	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18326      esac
18327      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18328      as_fn_append ac_file_inputs " '$ac_f'"
18329    done
18330
18331    # Let's still pretend it is `configure' which instantiates (i.e., don't
18332    # use $as_me), people would be surprised to read:
18333    #    /* config.h.  Generated by config.status.  */
18334    configure_input='Generated from '`
18335	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18336	`' by configure.'
18337    if test x"$ac_file" != x-; then
18338      configure_input="$ac_file.  $configure_input"
18339      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18340$as_echo "$as_me: creating $ac_file" >&6;}
18341    fi
18342    # Neutralize special characters interpreted by sed in replacement strings.
18343    case $configure_input in #(
18344    *\&* | *\|* | *\\* )
18345       ac_sed_conf_input=`$as_echo "$configure_input" |
18346       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18347    *) ac_sed_conf_input=$configure_input;;
18348    esac
18349
18350    case $ac_tag in
18351    *:-:* | *:-) cat >"$tmp/stdin" \
18352      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18353    esac
18354    ;;
18355  esac
18356
18357  ac_dir=`$as_dirname -- "$ac_file" ||
18358$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18359	 X"$ac_file" : 'X\(//\)[^/]' \| \
18360	 X"$ac_file" : 'X\(//\)$' \| \
18361	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18362$as_echo X"$ac_file" |
18363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18364	    s//\1/
18365	    q
18366	  }
18367	  /^X\(\/\/\)[^/].*/{
18368	    s//\1/
18369	    q
18370	  }
18371	  /^X\(\/\/\)$/{
18372	    s//\1/
18373	    q
18374	  }
18375	  /^X\(\/\).*/{
18376	    s//\1/
18377	    q
18378	  }
18379	  s/.*/./; q'`
18380  as_dir="$ac_dir"; as_fn_mkdir_p
18381  ac_builddir=.
18382
18383case "$ac_dir" in
18384.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18385*)
18386  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18387  # A ".." for each directory in $ac_dir_suffix.
18388  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18389  case $ac_top_builddir_sub in
18390  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18391  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18392  esac ;;
18393esac
18394ac_abs_top_builddir=$ac_pwd
18395ac_abs_builddir=$ac_pwd$ac_dir_suffix
18396# for backward compatibility:
18397ac_top_builddir=$ac_top_build_prefix
18398
18399case $srcdir in
18400  .)  # We are building in place.
18401    ac_srcdir=.
18402    ac_top_srcdir=$ac_top_builddir_sub
18403    ac_abs_top_srcdir=$ac_pwd ;;
18404  [\\/]* | ?:[\\/]* )  # Absolute name.
18405    ac_srcdir=$srcdir$ac_dir_suffix;
18406    ac_top_srcdir=$srcdir
18407    ac_abs_top_srcdir=$srcdir ;;
18408  *) # Relative name.
18409    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18410    ac_top_srcdir=$ac_top_build_prefix$srcdir
18411    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18412esac
18413ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18414
18415
18416  case $ac_mode in
18417  :F)
18418  #
18419  # CONFIG_FILE
18420  #
18421
18422  case $INSTALL in
18423  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18424  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18425  esac
18426  ac_MKDIR_P=$MKDIR_P
18427  case $MKDIR_P in
18428  [\\/$]* | ?:[\\/]* ) ;;
18429  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18430  esac
18431_ACEOF
18432
18433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18434# If the template does not know about datarootdir, expand it.
18435# FIXME: This hack should be removed a few years after 2.60.
18436ac_datarootdir_hack=; ac_datarootdir_seen=
18437ac_sed_dataroot='
18438/datarootdir/ {
18439  p
18440  q
18441}
18442/@datadir@/p
18443/@docdir@/p
18444/@infodir@/p
18445/@localedir@/p
18446/@mandir@/p'
18447case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18448*datarootdir*) ac_datarootdir_seen=yes;;
18449*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18450  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18451$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18452_ACEOF
18453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18454  ac_datarootdir_hack='
18455  s&@datadir@&$datadir&g
18456  s&@docdir@&$docdir&g
18457  s&@infodir@&$infodir&g
18458  s&@localedir@&$localedir&g
18459  s&@mandir@&$mandir&g
18460  s&\\\${datarootdir}&$datarootdir&g' ;;
18461esac
18462_ACEOF
18463
18464# Neutralize VPATH when `$srcdir' = `.'.
18465# Shell code in configure.ac might set extrasub.
18466# FIXME: do we really want to maintain this feature?
18467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18468ac_sed_extra="$ac_vpsub
18469$extrasub
18470_ACEOF
18471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18472:t
18473/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18474s|@configure_input@|$ac_sed_conf_input|;t t
18475s&@top_builddir@&$ac_top_builddir_sub&;t t
18476s&@top_build_prefix@&$ac_top_build_prefix&;t t
18477s&@srcdir@&$ac_srcdir&;t t
18478s&@abs_srcdir@&$ac_abs_srcdir&;t t
18479s&@top_srcdir@&$ac_top_srcdir&;t t
18480s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18481s&@builddir@&$ac_builddir&;t t
18482s&@abs_builddir@&$ac_abs_builddir&;t t
18483s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18484s&@INSTALL@&$ac_INSTALL&;t t
18485s&@MKDIR_P@&$ac_MKDIR_P&;t t
18486$ac_datarootdir_hack
18487"
18488eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18489if $ac_cs_awk_getline; then
18490  $AWK -f "$tmp/subs.awk"
18491else
18492  $AWK -f "$tmp/subs.awk" | $SHELL
18493fi >$tmp/out \
18494  || as_fn_error "could not create $ac_file" "$LINENO" 5
18495
18496test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18497  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18498  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18499  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18500which seems to be undefined.  Please make sure it is defined." >&5
18501$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18502which seems to be undefined.  Please make sure it is defined." >&2;}
18503
18504  rm -f "$tmp/stdin"
18505  case $ac_file in
18506  -) cat "$tmp/out" && rm -f "$tmp/out";;
18507  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18508  esac \
18509  || as_fn_error "could not create $ac_file" "$LINENO" 5
18510 ;;
18511  :H)
18512  #
18513  # CONFIG_HEADER
18514  #
18515  if test x"$ac_file" != x-; then
18516    {
18517      $as_echo "/* $configure_input  */" \
18518      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18519    } >"$tmp/config.h" \
18520      || as_fn_error "could not create $ac_file" "$LINENO" 5
18521    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18522      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18523$as_echo "$as_me: $ac_file is unchanged" >&6;}
18524    else
18525      rm -f "$ac_file"
18526      mv "$tmp/config.h" "$ac_file" \
18527	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18528    fi
18529  else
18530    $as_echo "/* $configure_input  */" \
18531      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18532      || as_fn_error "could not create -" "$LINENO" 5
18533  fi
18534# Compute "$ac_file"'s index in $config_headers.
18535_am_arg="$ac_file"
18536_am_stamp_count=1
18537for _am_header in $config_headers :; do
18538  case $_am_header in
18539    $_am_arg | $_am_arg:* )
18540      break ;;
18541    * )
18542      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18543  esac
18544done
18545echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18546$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18547	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18548	 X"$_am_arg" : 'X\(//\)$' \| \
18549	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18550$as_echo X"$_am_arg" |
18551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18552	    s//\1/
18553	    q
18554	  }
18555	  /^X\(\/\/\)[^/].*/{
18556	    s//\1/
18557	    q
18558	  }
18559	  /^X\(\/\/\)$/{
18560	    s//\1/
18561	    q
18562	  }
18563	  /^X\(\/\).*/{
18564	    s//\1/
18565	    q
18566	  }
18567	  s/.*/./; q'`/stamp-h$_am_stamp_count
18568 ;;
18569
18570  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18571$as_echo "$as_me: executing $ac_file commands" >&6;}
18572 ;;
18573  esac
18574
18575
18576  case $ac_file$ac_mode in
18577    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18578  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18579  # are listed without --file.  Let's play safe and only enable the eval
18580  # if we detect the quoting.
18581  case $CONFIG_FILES in
18582  *\'*) eval set x "$CONFIG_FILES" ;;
18583  *)   set x $CONFIG_FILES ;;
18584  esac
18585  shift
18586  for mf
18587  do
18588    # Strip MF so we end up with the name of the file.
18589    mf=`echo "$mf" | sed -e 's/:.*$//'`
18590    # Check whether this is an Automake generated Makefile or not.
18591    # We used to match only the files named `Makefile.in', but
18592    # some people rename them; so instead we look at the file content.
18593    # Grep'ing the first line is not enough: some people post-process
18594    # each Makefile.in and add a new line on top of each file to say so.
18595    # Grep'ing the whole file is not good either: AIX grep has a line
18596    # limit of 2048, but all sed's we know have understand at least 4000.
18597    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18598      dirpart=`$as_dirname -- "$mf" ||
18599$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18600	 X"$mf" : 'X\(//\)[^/]' \| \
18601	 X"$mf" : 'X\(//\)$' \| \
18602	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18603$as_echo X"$mf" |
18604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18605	    s//\1/
18606	    q
18607	  }
18608	  /^X\(\/\/\)[^/].*/{
18609	    s//\1/
18610	    q
18611	  }
18612	  /^X\(\/\/\)$/{
18613	    s//\1/
18614	    q
18615	  }
18616	  /^X\(\/\).*/{
18617	    s//\1/
18618	    q
18619	  }
18620	  s/.*/./; q'`
18621    else
18622      continue
18623    fi
18624    # Extract the definition of DEPDIR, am__include, and am__quote
18625    # from the Makefile without running `make'.
18626    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18627    test -z "$DEPDIR" && continue
18628    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18629    test -z "am__include" && continue
18630    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18631    # When using ansi2knr, U may be empty or an underscore; expand it
18632    U=`sed -n 's/^U = //p' < "$mf"`
18633    # Find all dependency output files, they are included files with
18634    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18635    # simplest approach to changing $(DEPDIR) to its actual value in the
18636    # expansion.
18637    for file in `sed -n "
18638      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18639	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18640      # Make sure the directory exists.
18641      test -f "$dirpart/$file" && continue
18642      fdir=`$as_dirname -- "$file" ||
18643$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18644	 X"$file" : 'X\(//\)[^/]' \| \
18645	 X"$file" : 'X\(//\)$' \| \
18646	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18647$as_echo X"$file" |
18648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18649	    s//\1/
18650	    q
18651	  }
18652	  /^X\(\/\/\)[^/].*/{
18653	    s//\1/
18654	    q
18655	  }
18656	  /^X\(\/\/\)$/{
18657	    s//\1/
18658	    q
18659	  }
18660	  /^X\(\/\).*/{
18661	    s//\1/
18662	    q
18663	  }
18664	  s/.*/./; q'`
18665      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18666      # echo "creating $dirpart/$file"
18667      echo '# dummy' > "$dirpart/$file"
18668    done
18669  done
18670}
18671 ;;
18672    "libtool":C)
18673
18674    # See if we are running on zsh, and set the options which allow our
18675    # commands through without removal of \ escapes.
18676    if test -n "${ZSH_VERSION+set}" ; then
18677      setopt NO_GLOB_SUBST
18678    fi
18679
18680    cfgfile="${ofile}T"
18681    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18682    $RM "$cfgfile"
18683
18684    cat <<_LT_EOF >> "$cfgfile"
18685#! $SHELL
18686
18687# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18688# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18689# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18690# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18691#
18692#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18693#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18694#   Written by Gordon Matzigkeit, 1996
18695#
18696#   This file is part of GNU Libtool.
18697#
18698# GNU Libtool is free software; you can redistribute it and/or
18699# modify it under the terms of the GNU General Public License as
18700# published by the Free Software Foundation; either version 2 of
18701# the License, or (at your option) any later version.
18702#
18703# As a special exception to the GNU General Public License,
18704# if you distribute this file as part of a program or library that
18705# is built using GNU Libtool, you may include this file under the
18706# same distribution terms that you use for the rest of that program.
18707#
18708# GNU Libtool is distributed in the hope that it will be useful,
18709# but WITHOUT ANY WARRANTY; without even the implied warranty of
18710# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18711# GNU General Public License for more details.
18712#
18713# You should have received a copy of the GNU General Public License
18714# along with GNU Libtool; see the file COPYING.  If not, a copy
18715# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18716# obtained by writing to the Free Software Foundation, Inc.,
18717# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18718
18719
18720# The names of the tagged configurations supported by this script.
18721available_tags="CXX "
18722
18723# ### BEGIN LIBTOOL CONFIG
18724
18725# Which release of libtool.m4 was used?
18726macro_version=$macro_version
18727macro_revision=$macro_revision
18728
18729# Whether or not to build shared libraries.
18730build_libtool_libs=$enable_shared
18731
18732# Whether or not to build static libraries.
18733build_old_libs=$enable_static
18734
18735# What type of objects to build.
18736pic_mode=$pic_mode
18737
18738# Whether or not to optimize for fast installation.
18739fast_install=$enable_fast_install
18740
18741# Shell to use when invoking shell scripts.
18742SHELL=$lt_SHELL
18743
18744# An echo program that protects backslashes.
18745ECHO=$lt_ECHO
18746
18747# The host system.
18748host_alias=$host_alias
18749host=$host
18750host_os=$host_os
18751
18752# The build system.
18753build_alias=$build_alias
18754build=$build
18755build_os=$build_os
18756
18757# A sed program that does not truncate output.
18758SED=$lt_SED
18759
18760# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18761Xsed="\$SED -e 1s/^X//"
18762
18763# A grep program that handles long lines.
18764GREP=$lt_GREP
18765
18766# An ERE matcher.
18767EGREP=$lt_EGREP
18768
18769# A literal string matcher.
18770FGREP=$lt_FGREP
18771
18772# A BSD- or MS-compatible name lister.
18773NM=$lt_NM
18774
18775# Whether we need soft or hard links.
18776LN_S=$lt_LN_S
18777
18778# What is the maximum length of a command?
18779max_cmd_len=$max_cmd_len
18780
18781# Object file suffix (normally "o").
18782objext=$ac_objext
18783
18784# Executable file suffix (normally "").
18785exeext=$exeext
18786
18787# whether the shell understands "unset".
18788lt_unset=$lt_unset
18789
18790# turn spaces into newlines.
18791SP2NL=$lt_lt_SP2NL
18792
18793# turn newlines into spaces.
18794NL2SP=$lt_lt_NL2SP
18795
18796# An object symbol dumper.
18797OBJDUMP=$lt_OBJDUMP
18798
18799# Method to check whether dependent libraries are shared objects.
18800deplibs_check_method=$lt_deplibs_check_method
18801
18802# Command to use when deplibs_check_method == "file_magic".
18803file_magic_cmd=$lt_file_magic_cmd
18804
18805# The archiver.
18806AR=$lt_AR
18807AR_FLAGS=$lt_AR_FLAGS
18808
18809# A symbol stripping program.
18810STRIP=$lt_STRIP
18811
18812# Commands used to install an old-style archive.
18813RANLIB=$lt_RANLIB
18814old_postinstall_cmds=$lt_old_postinstall_cmds
18815old_postuninstall_cmds=$lt_old_postuninstall_cmds
18816
18817# Whether to use a lock for old archive extraction.
18818lock_old_archive_extraction=$lock_old_archive_extraction
18819
18820# A C compiler.
18821LTCC=$lt_CC
18822
18823# LTCC compiler flags.
18824LTCFLAGS=$lt_CFLAGS
18825
18826# Take the output of nm and produce a listing of raw symbols and C names.
18827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18828
18829# Transform the output of nm in a proper C declaration.
18830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18831
18832# Transform the output of nm in a C name address pair.
18833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18834
18835# Transform the output of nm in a C name address pair when lib prefix is needed.
18836global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18837
18838# The name of the directory that contains temporary libtool files.
18839objdir=$objdir
18840
18841# Used to examine libraries when file_magic_cmd begins with "file".
18842MAGIC_CMD=$MAGIC_CMD
18843
18844# Must we lock files when doing compilation?
18845need_locks=$lt_need_locks
18846
18847# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18848DSYMUTIL=$lt_DSYMUTIL
18849
18850# Tool to change global to local symbols on Mac OS X.
18851NMEDIT=$lt_NMEDIT
18852
18853# Tool to manipulate fat objects and archives on Mac OS X.
18854LIPO=$lt_LIPO
18855
18856# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18857OTOOL=$lt_OTOOL
18858
18859# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18860OTOOL64=$lt_OTOOL64
18861
18862# Old archive suffix (normally "a").
18863libext=$libext
18864
18865# Shared library suffix (normally ".so").
18866shrext_cmds=$lt_shrext_cmds
18867
18868# The commands to extract the exported symbol list from a shared archive.
18869extract_expsyms_cmds=$lt_extract_expsyms_cmds
18870
18871# Variables whose values should be saved in libtool wrapper scripts and
18872# restored at link time.
18873variables_saved_for_relink=$lt_variables_saved_for_relink
18874
18875# Do we need the "lib" prefix for modules?
18876need_lib_prefix=$need_lib_prefix
18877
18878# Do we need a version for libraries?
18879need_version=$need_version
18880
18881# Library versioning type.
18882version_type=$version_type
18883
18884# Shared library runtime path variable.
18885runpath_var=$runpath_var
18886
18887# Shared library path variable.
18888shlibpath_var=$shlibpath_var
18889
18890# Is shlibpath searched before the hard-coded library search path?
18891shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18892
18893# Format of library name prefix.
18894libname_spec=$lt_libname_spec
18895
18896# List of archive names.  First name is the real one, the rest are links.
18897# The last name is the one that the linker finds with -lNAME
18898library_names_spec=$lt_library_names_spec
18899
18900# The coded name of the library, if different from the real name.
18901soname_spec=$lt_soname_spec
18902
18903# Permission mode override for installation of shared libraries.
18904install_override_mode=$lt_install_override_mode
18905
18906# Command to use after installation of a shared archive.
18907postinstall_cmds=$lt_postinstall_cmds
18908
18909# Command to use after uninstallation of a shared archive.
18910postuninstall_cmds=$lt_postuninstall_cmds
18911
18912# Commands used to finish a libtool library installation in a directory.
18913finish_cmds=$lt_finish_cmds
18914
18915# As "finish_cmds", except a single script fragment to be evaled but
18916# not shown.
18917finish_eval=$lt_finish_eval
18918
18919# Whether we should hardcode library paths into libraries.
18920hardcode_into_libs=$hardcode_into_libs
18921
18922# Compile-time system search path for libraries.
18923sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18924
18925# Run-time system search path for libraries.
18926sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18927
18928# Whether dlopen is supported.
18929dlopen_support=$enable_dlopen
18930
18931# Whether dlopen of programs is supported.
18932dlopen_self=$enable_dlopen_self
18933
18934# Whether dlopen of statically linked programs is supported.
18935dlopen_self_static=$enable_dlopen_self_static
18936
18937# Commands to strip libraries.
18938old_striplib=$lt_old_striplib
18939striplib=$lt_striplib
18940
18941
18942# The linker used to build libraries.
18943LD=$lt_LD
18944
18945# How to create reloadable object files.
18946reload_flag=$lt_reload_flag
18947reload_cmds=$lt_reload_cmds
18948
18949# Commands used to build an old-style archive.
18950old_archive_cmds=$lt_old_archive_cmds
18951
18952# A language specific compiler.
18953CC=$lt_compiler
18954
18955# Is the compiler the GNU compiler?
18956with_gcc=$GCC
18957
18958# Compiler flag to turn off builtin functions.
18959no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18960
18961# How to pass a linker flag through the compiler.
18962wl=$lt_lt_prog_compiler_wl
18963
18964# Additional compiler flags for building library objects.
18965pic_flag=$lt_lt_prog_compiler_pic
18966
18967# Compiler flag to prevent dynamic linking.
18968link_static_flag=$lt_lt_prog_compiler_static
18969
18970# Does compiler simultaneously support -c and -o options?
18971compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18972
18973# Whether or not to add -lc for building shared libraries.
18974build_libtool_need_lc=$archive_cmds_need_lc
18975
18976# Whether or not to disallow shared libs when runtime libs are static.
18977allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18978
18979# Compiler flag to allow reflexive dlopens.
18980export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18981
18982# Compiler flag to generate shared objects directly from archives.
18983whole_archive_flag_spec=$lt_whole_archive_flag_spec
18984
18985# Whether the compiler copes with passing no objects directly.
18986compiler_needs_object=$lt_compiler_needs_object
18987
18988# Create an old-style archive from a shared archive.
18989old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18990
18991# Create a temporary old-style archive to link instead of a shared archive.
18992old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18993
18994# Commands used to build a shared archive.
18995archive_cmds=$lt_archive_cmds
18996archive_expsym_cmds=$lt_archive_expsym_cmds
18997
18998# Commands used to build a loadable module if different from building
18999# a shared archive.
19000module_cmds=$lt_module_cmds
19001module_expsym_cmds=$lt_module_expsym_cmds
19002
19003# Whether we are building with GNU ld or not.
19004with_gnu_ld=$lt_with_gnu_ld
19005
19006# Flag that allows shared libraries with undefined symbols to be built.
19007allow_undefined_flag=$lt_allow_undefined_flag
19008
19009# Flag that enforces no undefined symbols.
19010no_undefined_flag=$lt_no_undefined_flag
19011
19012# Flag to hardcode \$libdir into a binary during linking.
19013# This must work even if \$libdir does not exist
19014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19015
19016# If ld is used when linking, flag to hardcode \$libdir into a binary
19017# during linking.  This must work even if \$libdir does not exist.
19018hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19019
19020# Whether we need a single "-rpath" flag with a separated argument.
19021hardcode_libdir_separator=$lt_hardcode_libdir_separator
19022
19023# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19024# DIR into the resulting binary.
19025hardcode_direct=$hardcode_direct
19026
19027# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19028# DIR into the resulting binary and the resulting library dependency is
19029# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19030# library is relocated.
19031hardcode_direct_absolute=$hardcode_direct_absolute
19032
19033# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19034# into the resulting binary.
19035hardcode_minus_L=$hardcode_minus_L
19036
19037# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19038# into the resulting binary.
19039hardcode_shlibpath_var=$hardcode_shlibpath_var
19040
19041# Set to "yes" if building a shared library automatically hardcodes DIR
19042# into the library and all subsequent libraries and executables linked
19043# against it.
19044hardcode_automatic=$hardcode_automatic
19045
19046# Set to yes if linker adds runtime paths of dependent libraries
19047# to runtime path list.
19048inherit_rpath=$inherit_rpath
19049
19050# Whether libtool must link a program against all its dependency libraries.
19051link_all_deplibs=$link_all_deplibs
19052
19053# Fix the shell variable \$srcfile for the compiler.
19054fix_srcfile_path=$lt_fix_srcfile_path
19055
19056# Set to "yes" if exported symbols are required.
19057always_export_symbols=$always_export_symbols
19058
19059# The commands to list exported symbols.
19060export_symbols_cmds=$lt_export_symbols_cmds
19061
19062# Symbols that should not be listed in the preloaded symbols.
19063exclude_expsyms=$lt_exclude_expsyms
19064
19065# Symbols that must always be exported.
19066include_expsyms=$lt_include_expsyms
19067
19068# Commands necessary for linking programs (against libraries) with templates.
19069prelink_cmds=$lt_prelink_cmds
19070
19071# Specify filename containing input files.
19072file_list_spec=$lt_file_list_spec
19073
19074# How to hardcode a shared library path into an executable.
19075hardcode_action=$hardcode_action
19076
19077# The directories searched by this compiler when creating a shared library.
19078compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19079
19080# Dependencies to place before and after the objects being linked to
19081# create a shared library.
19082predep_objects=$lt_predep_objects
19083postdep_objects=$lt_postdep_objects
19084predeps=$lt_predeps
19085postdeps=$lt_postdeps
19086
19087# The library search path used internally by the compiler when linking
19088# a shared library.
19089compiler_lib_search_path=$lt_compiler_lib_search_path
19090
19091# ### END LIBTOOL CONFIG
19092
19093_LT_EOF
19094
19095  case $host_os in
19096  aix3*)
19097    cat <<\_LT_EOF >> "$cfgfile"
19098# AIX sometimes has problems with the GCC collect2 program.  For some
19099# reason, if we set the COLLECT_NAMES environment variable, the problems
19100# vanish in a puff of smoke.
19101if test "X${COLLECT_NAMES+set}" != Xset; then
19102  COLLECT_NAMES=
19103  export COLLECT_NAMES
19104fi
19105_LT_EOF
19106    ;;
19107  esac
19108
19109
19110ltmain="$ac_aux_dir/ltmain.sh"
19111
19112
19113  # We use sed instead of cat because bash on DJGPP gets confused if
19114  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19115  # text mode, it properly converts lines to CR/LF.  This bash problem
19116  # is reportedly fixed, but why not run on old versions too?
19117  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19118    || (rm -f "$cfgfile"; exit 1)
19119
19120  case $xsi_shell in
19121  yes)
19122    cat << \_LT_EOF >> "$cfgfile"
19123
19124# func_dirname file append nondir_replacement
19125# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19126# otherwise set result to NONDIR_REPLACEMENT.
19127func_dirname ()
19128{
19129  case ${1} in
19130    */*) func_dirname_result="${1%/*}${2}" ;;
19131    *  ) func_dirname_result="${3}" ;;
19132  esac
19133}
19134
19135# func_basename file
19136func_basename ()
19137{
19138  func_basename_result="${1##*/}"
19139}
19140
19141# func_dirname_and_basename file append nondir_replacement
19142# perform func_basename and func_dirname in a single function
19143# call:
19144#   dirname:  Compute the dirname of FILE.  If nonempty,
19145#             add APPEND to the result, otherwise set result
19146#             to NONDIR_REPLACEMENT.
19147#             value returned in "$func_dirname_result"
19148#   basename: Compute filename of FILE.
19149#             value retuned in "$func_basename_result"
19150# Implementation must be kept synchronized with func_dirname
19151# and func_basename. For efficiency, we do not delegate to
19152# those functions but instead duplicate the functionality here.
19153func_dirname_and_basename ()
19154{
19155  case ${1} in
19156    */*) func_dirname_result="${1%/*}${2}" ;;
19157    *  ) func_dirname_result="${3}" ;;
19158  esac
19159  func_basename_result="${1##*/}"
19160}
19161
19162# func_stripname prefix suffix name
19163# strip PREFIX and SUFFIX off of NAME.
19164# PREFIX and SUFFIX must not contain globbing or regex special
19165# characters, hashes, percent signs, but SUFFIX may contain a leading
19166# dot (in which case that matches only a dot).
19167func_stripname ()
19168{
19169  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19170  # positional parameters, so assign one to ordinary parameter first.
19171  func_stripname_result=${3}
19172  func_stripname_result=${func_stripname_result#"${1}"}
19173  func_stripname_result=${func_stripname_result%"${2}"}
19174}
19175
19176# func_opt_split
19177func_opt_split ()
19178{
19179  func_opt_split_opt=${1%%=*}
19180  func_opt_split_arg=${1#*=}
19181}
19182
19183# func_lo2o object
19184func_lo2o ()
19185{
19186  case ${1} in
19187    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19188    *)    func_lo2o_result=${1} ;;
19189  esac
19190}
19191
19192# func_xform libobj-or-source
19193func_xform ()
19194{
19195  func_xform_result=${1%.*}.lo
19196}
19197
19198# func_arith arithmetic-term...
19199func_arith ()
19200{
19201  func_arith_result=$(( $* ))
19202}
19203
19204# func_len string
19205# STRING may not start with a hyphen.
19206func_len ()
19207{
19208  func_len_result=${#1}
19209}
19210
19211_LT_EOF
19212    ;;
19213  *) # Bourne compatible functions.
19214    cat << \_LT_EOF >> "$cfgfile"
19215
19216# func_dirname file append nondir_replacement
19217# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19218# otherwise set result to NONDIR_REPLACEMENT.
19219func_dirname ()
19220{
19221  # Extract subdirectory from the argument.
19222  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19223  if test "X$func_dirname_result" = "X${1}"; then
19224    func_dirname_result="${3}"
19225  else
19226    func_dirname_result="$func_dirname_result${2}"
19227  fi
19228}
19229
19230# func_basename file
19231func_basename ()
19232{
19233  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19234}
19235
19236
19237# func_stripname prefix suffix name
19238# strip PREFIX and SUFFIX off of NAME.
19239# PREFIX and SUFFIX must not contain globbing or regex special
19240# characters, hashes, percent signs, but SUFFIX may contain a leading
19241# dot (in which case that matches only a dot).
19242# func_strip_suffix prefix name
19243func_stripname ()
19244{
19245  case ${2} in
19246    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19247    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19248  esac
19249}
19250
19251# sed scripts:
19252my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19253my_sed_long_arg='1s/^-[^=]*=//'
19254
19255# func_opt_split
19256func_opt_split ()
19257{
19258  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19259  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19260}
19261
19262# func_lo2o object
19263func_lo2o ()
19264{
19265  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19266}
19267
19268# func_xform libobj-or-source
19269func_xform ()
19270{
19271  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19272}
19273
19274# func_arith arithmetic-term...
19275func_arith ()
19276{
19277  func_arith_result=`expr "$@"`
19278}
19279
19280# func_len string
19281# STRING may not start with a hyphen.
19282func_len ()
19283{
19284  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19285}
19286
19287_LT_EOF
19288esac
19289
19290case $lt_shell_append in
19291  yes)
19292    cat << \_LT_EOF >> "$cfgfile"
19293
19294# func_append var value
19295# Append VALUE to the end of shell variable VAR.
19296func_append ()
19297{
19298  eval "$1+=\$2"
19299}
19300_LT_EOF
19301    ;;
19302  *)
19303    cat << \_LT_EOF >> "$cfgfile"
19304
19305# func_append var value
19306# Append VALUE to the end of shell variable VAR.
19307func_append ()
19308{
19309  eval "$1=\$$1\$2"
19310}
19311
19312_LT_EOF
19313    ;;
19314  esac
19315
19316
19317  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19318    || (rm -f "$cfgfile"; exit 1)
19319
19320  mv -f "$cfgfile" "$ofile" ||
19321    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19322  chmod +x "$ofile"
19323
19324
19325    cat <<_LT_EOF >> "$ofile"
19326
19327# ### BEGIN LIBTOOL TAG CONFIG: CXX
19328
19329# The linker used to build libraries.
19330LD=$lt_LD_CXX
19331
19332# How to create reloadable object files.
19333reload_flag=$lt_reload_flag_CXX
19334reload_cmds=$lt_reload_cmds_CXX
19335
19336# Commands used to build an old-style archive.
19337old_archive_cmds=$lt_old_archive_cmds_CXX
19338
19339# A language specific compiler.
19340CC=$lt_compiler_CXX
19341
19342# Is the compiler the GNU compiler?
19343with_gcc=$GCC_CXX
19344
19345# Compiler flag to turn off builtin functions.
19346no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19347
19348# How to pass a linker flag through the compiler.
19349wl=$lt_lt_prog_compiler_wl_CXX
19350
19351# Additional compiler flags for building library objects.
19352pic_flag=$lt_lt_prog_compiler_pic_CXX
19353
19354# Compiler flag to prevent dynamic linking.
19355link_static_flag=$lt_lt_prog_compiler_static_CXX
19356
19357# Does compiler simultaneously support -c and -o options?
19358compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19359
19360# Whether or not to add -lc for building shared libraries.
19361build_libtool_need_lc=$archive_cmds_need_lc_CXX
19362
19363# Whether or not to disallow shared libs when runtime libs are static.
19364allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19365
19366# Compiler flag to allow reflexive dlopens.
19367export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19368
19369# Compiler flag to generate shared objects directly from archives.
19370whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19371
19372# Whether the compiler copes with passing no objects directly.
19373compiler_needs_object=$lt_compiler_needs_object_CXX
19374
19375# Create an old-style archive from a shared archive.
19376old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19377
19378# Create a temporary old-style archive to link instead of a shared archive.
19379old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19380
19381# Commands used to build a shared archive.
19382archive_cmds=$lt_archive_cmds_CXX
19383archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19384
19385# Commands used to build a loadable module if different from building
19386# a shared archive.
19387module_cmds=$lt_module_cmds_CXX
19388module_expsym_cmds=$lt_module_expsym_cmds_CXX
19389
19390# Whether we are building with GNU ld or not.
19391with_gnu_ld=$lt_with_gnu_ld_CXX
19392
19393# Flag that allows shared libraries with undefined symbols to be built.
19394allow_undefined_flag=$lt_allow_undefined_flag_CXX
19395
19396# Flag that enforces no undefined symbols.
19397no_undefined_flag=$lt_no_undefined_flag_CXX
19398
19399# Flag to hardcode \$libdir into a binary during linking.
19400# This must work even if \$libdir does not exist
19401hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19402
19403# If ld is used when linking, flag to hardcode \$libdir into a binary
19404# during linking.  This must work even if \$libdir does not exist.
19405hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19406
19407# Whether we need a single "-rpath" flag with a separated argument.
19408hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19409
19410# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19411# DIR into the resulting binary.
19412hardcode_direct=$hardcode_direct_CXX
19413
19414# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19415# DIR into the resulting binary and the resulting library dependency is
19416# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19417# library is relocated.
19418hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19419
19420# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19421# into the resulting binary.
19422hardcode_minus_L=$hardcode_minus_L_CXX
19423
19424# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19425# into the resulting binary.
19426hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19427
19428# Set to "yes" if building a shared library automatically hardcodes DIR
19429# into the library and all subsequent libraries and executables linked
19430# against it.
19431hardcode_automatic=$hardcode_automatic_CXX
19432
19433# Set to yes if linker adds runtime paths of dependent libraries
19434# to runtime path list.
19435inherit_rpath=$inherit_rpath_CXX
19436
19437# Whether libtool must link a program against all its dependency libraries.
19438link_all_deplibs=$link_all_deplibs_CXX
19439
19440# Fix the shell variable \$srcfile for the compiler.
19441fix_srcfile_path=$lt_fix_srcfile_path_CXX
19442
19443# Set to "yes" if exported symbols are required.
19444always_export_symbols=$always_export_symbols_CXX
19445
19446# The commands to list exported symbols.
19447export_symbols_cmds=$lt_export_symbols_cmds_CXX
19448
19449# Symbols that should not be listed in the preloaded symbols.
19450exclude_expsyms=$lt_exclude_expsyms_CXX
19451
19452# Symbols that must always be exported.
19453include_expsyms=$lt_include_expsyms_CXX
19454
19455# Commands necessary for linking programs (against libraries) with templates.
19456prelink_cmds=$lt_prelink_cmds_CXX
19457
19458# Specify filename containing input files.
19459file_list_spec=$lt_file_list_spec_CXX
19460
19461# How to hardcode a shared library path into an executable.
19462hardcode_action=$hardcode_action_CXX
19463
19464# The directories searched by this compiler when creating a shared library.
19465compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19466
19467# Dependencies to place before and after the objects being linked to
19468# create a shared library.
19469predep_objects=$lt_predep_objects_CXX
19470postdep_objects=$lt_postdep_objects_CXX
19471predeps=$lt_predeps_CXX
19472postdeps=$lt_postdeps_CXX
19473
19474# The library search path used internally by the compiler when linking
19475# a shared library.
19476compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19477
19478# ### END LIBTOOL TAG CONFIG: CXX
19479_LT_EOF
19480
19481 ;;
19482    "default-1":C)
19483    for ac_file in $CONFIG_FILES; do
19484      # Support "outfile[:infile[:infile...]]"
19485      case "$ac_file" in
19486        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19487      esac
19488      # PO directories have a Makefile.in generated from Makefile.in.in.
19489      case "$ac_file" in */Makefile.in)
19490        # Adjust a relative srcdir.
19491        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19492        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19493        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19494        # In autoconf-2.13 it is called $ac_given_srcdir.
19495        # In autoconf-2.50 it is called $srcdir.
19496        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19497        case "$ac_given_srcdir" in
19498          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19499          /*) top_srcdir="$ac_given_srcdir" ;;
19500          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19501        esac
19502        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19503          rm -f "$ac_dir/POTFILES"
19504          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19505          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19506          POMAKEFILEDEPS="POTFILES.in"
19507          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19508          # on $ac_dir but don't depend on user-specified configuration
19509          # parameters.
19510          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19511            # The LINGUAS file contains the set of available languages.
19512            if test -n "$OBSOLETE_ALL_LINGUAS"; then
19513              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19514            fi
19515            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19516            # Hide the ALL_LINGUAS assigment from automake.
19517            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19518            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19519          else
19520            # The set of available languages was given in configure.in.
19521            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19522          fi
19523          case "$ac_given_srcdir" in
19524            .) srcdirpre= ;;
19525            *) srcdirpre='$(srcdir)/' ;;
19526          esac
19527          POFILES=
19528          GMOFILES=
19529          UPDATEPOFILES=
19530          DUMMYPOFILES=
19531          for lang in $ALL_LINGUAS; do
19532            POFILES="$POFILES $srcdirpre$lang.po"
19533            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19534            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19535            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19536          done
19537          # CATALOGS depends on both $ac_dir and the user's LINGUAS
19538          # environment variable.
19539          INST_LINGUAS=
19540          if test -n "$ALL_LINGUAS"; then
19541            for presentlang in $ALL_LINGUAS; do
19542              useit=no
19543              if test "%UNSET%" != "$LINGUAS"; then
19544                desiredlanguages="$LINGUAS"
19545              else
19546                desiredlanguages="$ALL_LINGUAS"
19547              fi
19548              for desiredlang in $desiredlanguages; do
19549                # Use the presentlang catalog if desiredlang is
19550                #   a. equal to presentlang, or
19551                #   b. a variant of presentlang (because in this case,
19552                #      presentlang can be used as a fallback for messages
19553                #      which are not translated in the desiredlang catalog).
19554                case "$desiredlang" in
19555                  "$presentlang"*) useit=yes;;
19556                esac
19557              done
19558              if test $useit = yes; then
19559                INST_LINGUAS="$INST_LINGUAS $presentlang"
19560              fi
19561            done
19562          fi
19563          CATALOGS=
19564          if test -n "$INST_LINGUAS"; then
19565            for lang in $INST_LINGUAS; do
19566              CATALOGS="$CATALOGS $lang.gmo"
19567            done
19568          fi
19569          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19570          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"
19571          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19572            if test -f "$f"; then
19573              case "$f" in
19574                *.orig | *.bak | *~) ;;
19575                *) cat "$f" >> "$ac_dir/Makefile" ;;
19576              esac
19577            fi
19578          done
19579        fi
19580        ;;
19581      esac
19582    done ;;
19583
19584  esac
19585done # for ac_tag
19586
19587
19588as_fn_exit 0
19589_ACEOF
19590ac_clean_files=$ac_clean_files_save
19591
19592test $ac_write_fail = 0 ||
19593  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19594
19595
19596# configure is writing to config.log, and then calls config.status.
19597# config.status does its own redirection, appending to config.log.
19598# Unfortunately, on DOS this fails, as config.log is still kept open
19599# by configure, so config.status won't be able to write to it; its
19600# output is simply discarded.  So we exec the FD to /dev/null,
19601# effectively closing config.log, so it can be properly (re)opened and
19602# appended to by config.status.  When coming back to configure, we
19603# need to make the FD available again.
19604if test "$no_create" != yes; then
19605  ac_cs_success=:
19606  ac_config_status_args=
19607  test "$silent" = yes &&
19608    ac_config_status_args="$ac_config_status_args --quiet"
19609  exec 5>/dev/null
19610  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19611  exec 5>>config.log
19612  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19613  # would make configure fail if this is the last instruction.
19614  $ac_cs_success || as_fn_exit $?
19615fi
19616if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19617  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19618$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19619fi
19620
19621