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="Makefile.in"
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='LTLIBOBJS
602LIBOBJS
603TARGET_SUBDIR
604CPP_FOR_TARGET
605REPORT_BUGS_TEXI
606REPORT_BUGS_TO
607PKGVERSION
608sim_profile
609sim_trace
610sim_stdio
611sim_debug
612sim_cflags
613sim_bswap
614MAINT
615lt_cv_dlopen_libs
616OTOOL64
617OTOOL
618LIPO
619NMEDIT
620DSYMUTIL
621AWK
622STRIP
623OBJDUMP
624LN_S
625NM
626ac_ct_DUMPBIN
627DUMPBIN
628LD
629FGREP
630SED
631LIBTOOL
632PLUGINS_FALSE
633PLUGINS_TRUE
634CATOBJEXT
635GENCAT
636INSTOBJEXT
637DATADIRNAME
638CATALOGS
639POSUB
640GMSGFMT
641XGETTEXT
642INCINTL
643LIBINTL_DEP
644LIBINTL
645USE_NLS
646GMAKE_FALSE
647GMAKE_TRUE
648MAKE
649CCDEPMODE
650DEPDIR
651am__leading_dot
652PACKAGE
653RANLIB
654AR
655HDEFINES
656CC_FOR_BUILD
657INSTALL_DATA
658INSTALL_SCRIPT
659INSTALL_PROGRAM
660EGREP
661GREP
662CPP
663target_os
664target_vendor
665target_cpu
666target
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682target_alias
683host_alias
684build_alias
685LIBS
686ECHO_T
687ECHO_N
688ECHO_C
689DEFS
690mandir
691localedir
692libdir
693psdir
694pdfdir
695dvidir
696htmldir
697infodir
698docdir
699oldincludedir
700includedir
701localstatedir
702sharedstatedir
703sysconfdir
704datadir
705datarootdir
706libexecdir
707sbindir
708bindir
709program_transform_name
710prefix
711exec_prefix
712PACKAGE_URL
713PACKAGE_BUGREPORT
714PACKAGE_STRING
715PACKAGE_VERSION
716PACKAGE_TARNAME
717PACKAGE_NAME
718PATH_SEPARATOR
719SHELL
720WERROR_CFLAGS
721WARN_CFLAGS
722sim_xor_endian
723sim_stdcall
724sim_smp
725sim_reserved_bits
726sim_regparm
727sim_packages
728sim_inline
729sim_hw
730sim_hw_objs
731sim_hw_cflags
732sim_default_model
733sim_scache
734sim_float
735sim_hostendian
736sim_endian
737sim_bitsize
738sim_assert
739sim_alignment
740sim_environment'
741ac_subst_files=''
742ac_user_opts='
743enable_option_checking
744with_zlib
745enable_plugins
746enable_shared
747enable_static
748with_pic
749enable_fast_install
750with_gnu_ld
751enable_libtool_lock
752enable_maintainer_mode
753enable_sim_bswap
754enable_sim_cflags
755enable_sim_debug
756enable_sim_stdio
757enable_sim_trace
758enable_sim_profile
759with_pkgversion
760with_bugurl
761'
762      ac_precious_vars='build_alias
763host_alias
764target_alias
765CC
766CFLAGS
767LDFLAGS
768LIBS
769CPPFLAGS
770CPP'
771
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825  # If the previous option needs an argument, assign it.
826  if test -n "$ac_prev"; then
827    eval $ac_prev=\$ac_option
828    ac_prev=
829    continue
830  fi
831
832  case $ac_option in
833  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834  *)	ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information."
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226    If a cross compiler is detected then cross compile mode will be used." >&2
1227  elif test "x$build_alias" != "x$host_alias"; then
1228    cross_compiling=yes
1229  fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241  as_fn_error "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243  as_fn_error "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248  ac_srcdir_defaulted=yes
1249  # Try the directory containing this script, then the parent directory.
1250  ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252	 X"$as_myself" : 'X\(//\)[^/]' \| \
1253	 X"$as_myself" : 'X\(//\)$' \| \
1254	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\/\)[^/].*/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\).*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  s/.*/./; q'`
1273  srcdir=$ac_confdir
1274  if test ! -r "$srcdir/$ac_unique_file"; then
1275    srcdir=..
1276  fi
1277else
1278  ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287	pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290  srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_env_${ac_var}_value=\$${ac_var}
1301  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309  # Omit some internal or obsolete options to make the list less imposing.
1310  # This message is too long to be a string in the A/UX 3.1 sh.
1311  cat <<_ACEOF
1312\`configure' configures this package to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322  -h, --help              display this help and exit
1323      --help=short        display options specific to this package
1324      --help=recursive    display the short help of all the included packages
1325  -V, --version           display version information and exit
1326  -q, --quiet, --silent   do not print \`checking...' messages
1327      --cache-file=FILE   cache test results in FILE [disabled]
1328  -C, --config-cache      alias for \`--cache-file=config.cache'
1329  -n, --no-create         do not create output files
1330      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333  --prefix=PREFIX         install architecture-independent files in PREFIX
1334                          [$ac_default_prefix]
1335  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                          [PREFIX]
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346  --bindir=DIR            user executables [EPREFIX/bin]
1347  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348  --libexecdir=DIR        program executables [EPREFIX/libexec]
1349  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352  --libdir=DIR            object code libraries [EPREFIX/lib]
1353  --includedir=DIR        C header files [PREFIX/include]
1354  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357  --infodir=DIR           info documentation [DATAROOTDIR/info]
1358  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359  --mandir=DIR            man documentation [DATAROOTDIR/man]
1360  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1361  --htmldir=DIR           html documentation [DOCDIR]
1362  --dvidir=DIR            dvi documentation [DOCDIR]
1363  --pdfdir=DIR            pdf documentation [DOCDIR]
1364  --psdir=DIR             ps documentation [DOCDIR]
1365_ACEOF
1366
1367  cat <<\_ACEOF
1368
1369Program names:
1370  --program-prefix=PREFIX            prepend PREFIX to installed program names
1371  --program-suffix=SUFFIX            append SUFFIX to installed program names
1372  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1373
1374System types:
1375  --build=BUILD     configure for building on BUILD [guessed]
1376  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377  --target=TARGET   configure for building compilers for TARGET [HOST]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382
1383  cat <<\_ACEOF
1384
1385Optional Features:
1386  --disable-option-checking  ignore unrecognized --enable/--with options
1387  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389  --enable-plugins        Enable support for plugins (defaults no)
1390  --enable-shared[=PKGS]  build shared libraries [default=yes]
1391  --enable-static[=PKGS]  build static libraries [default=yes]
1392  --enable-fast-install[=PKGS]
1393                          optimize for fast installation [default=yes]
1394  --disable-libtool-lock  avoid locking (might break parallel builds)
1395  --enable-maintainer-mode		Enable developer functionality.
1396  --enable-sim-bswap			Use Host specific BSWAP instruction.
1397  --enable-sim-cflags=opts		Extra CFLAGS for use in building simulator
1398  --enable-sim-debug=opts		Enable debugging flags
1399  --enable-sim-stdio			Specify whether to use stdio for console input/output.
1400  --enable-sim-trace=opts		Enable tracing flags
1401  --enable-sim-profile=opts		Enable profiling flags
1402
1403Optional Packages:
1404  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1405  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1406  --with-zlib             include zlib support (auto/yes/no) default=auto
1407  --with-pic              try to use only PIC/non-PIC objects [default=use
1408                          both]
1409  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1410  --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1411  --with-bugurl=URL       Direct users to URL to report a bug
1412
1413Some influential environment variables:
1414  CC          C compiler command
1415  CFLAGS      C compiler flags
1416  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1417              nonstandard directory <lib dir>
1418  LIBS        libraries to pass to the linker, e.g. -l<library>
1419  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1420              you have headers in a nonstandard directory <include dir>
1421  CPP         C preprocessor
1422
1423Use these variables to override the choices made by `configure' or to help
1424it to find libraries and programs with nonstandard names/locations.
1425
1426Report bugs to the package provider.
1427_ACEOF
1428ac_status=$?
1429fi
1430
1431if test "$ac_init_help" = "recursive"; then
1432  # If there are subdirs, report their specific --help.
1433  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434    test -d "$ac_dir" ||
1435      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436      continue
1437    ac_builddir=.
1438
1439case "$ac_dir" in
1440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441*)
1442  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443  # A ".." for each directory in $ac_dir_suffix.
1444  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445  case $ac_top_builddir_sub in
1446  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448  esac ;;
1449esac
1450ac_abs_top_builddir=$ac_pwd
1451ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452# for backward compatibility:
1453ac_top_builddir=$ac_top_build_prefix
1454
1455case $srcdir in
1456  .)  # We are building in place.
1457    ac_srcdir=.
1458    ac_top_srcdir=$ac_top_builddir_sub
1459    ac_abs_top_srcdir=$ac_pwd ;;
1460  [\\/]* | ?:[\\/]* )  # Absolute name.
1461    ac_srcdir=$srcdir$ac_dir_suffix;
1462    ac_top_srcdir=$srcdir
1463    ac_abs_top_srcdir=$srcdir ;;
1464  *) # Relative name.
1465    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466    ac_top_srcdir=$ac_top_build_prefix$srcdir
1467    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468esac
1469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470
1471    cd "$ac_dir" || { ac_status=$?; continue; }
1472    # Check for guested configure.
1473    if test -f "$ac_srcdir/configure.gnu"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476    elif test -f "$ac_srcdir/configure"; then
1477      echo &&
1478      $SHELL "$ac_srcdir/configure" --help=recursive
1479    else
1480      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481    fi || ac_status=$?
1482    cd "$ac_pwd" || { ac_status=$?; break; }
1483  done
1484fi
1485
1486test -n "$ac_init_help" && exit $ac_status
1487if $ac_init_version; then
1488  cat <<\_ACEOF
1489configure
1490generated by GNU Autoconf 2.64
1491
1492Copyright (C) 2009 Free Software Foundation, Inc.
1493This configure script is free software; the Free Software Foundation
1494gives unlimited permission to copy, distribute and modify it.
1495_ACEOF
1496  exit
1497fi
1498
1499## ------------------------ ##
1500## Autoconf initialization. ##
1501## ------------------------ ##
1502
1503# ac_fn_c_try_compile LINENO
1504# --------------------------
1505# Try to compile conftest.$ac_ext, and return whether this succeeded.
1506ac_fn_c_try_compile ()
1507{
1508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509  rm -f conftest.$ac_objext
1510  if { { ac_try="$ac_compile"
1511case "(($ac_try" in
1512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513  *) ac_try_echo=$ac_try;;
1514esac
1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516$as_echo "$ac_try_echo"; } >&5
1517  (eval "$ac_compile") 2>conftest.err
1518  ac_status=$?
1519  if test -s conftest.err; then
1520    grep -v '^ *+' conftest.err >conftest.er1
1521    cat conftest.er1 >&5
1522    mv -f conftest.er1 conftest.err
1523  fi
1524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525  test $ac_status = 0; } && {
1526	 test -z "$ac_c_werror_flag" ||
1527	 test ! -s conftest.err
1528       } && test -s conftest.$ac_objext; then :
1529  ac_retval=0
1530else
1531  $as_echo "$as_me: failed program was:" >&5
1532sed 's/^/| /' conftest.$ac_ext >&5
1533
1534	ac_retval=1
1535fi
1536  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1537  return $ac_retval
1538
1539} # ac_fn_c_try_compile
1540
1541# ac_fn_c_try_cpp LINENO
1542# ----------------------
1543# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_cpp ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  if { { ac_try="$ac_cpp conftest.$ac_ext"
1548case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1555  ac_status=$?
1556  if test -s conftest.err; then
1557    grep -v '^ *+' conftest.err >conftest.er1
1558    cat conftest.er1 >&5
1559    mv -f conftest.er1 conftest.err
1560  fi
1561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562  test $ac_status = 0; } >/dev/null && {
1563	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1564	 test ! -s conftest.err
1565       }; then :
1566  ac_retval=0
1567else
1568  $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571    ac_retval=1
1572fi
1573  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574  return $ac_retval
1575
1576} # ac_fn_c_try_cpp
1577
1578# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1579# -------------------------------------------------------
1580# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1581# the include files in INCLUDES and setting the cache variable VAR
1582# accordingly.
1583ac_fn_c_check_header_mongrel ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588$as_echo_n "checking for $2... " >&6; }
1589if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1590  $as_echo_n "(cached) " >&6
1591fi
1592eval ac_res=\$$3
1593	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594$as_echo "$ac_res" >&6; }
1595else
1596  # Is the header compilable?
1597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1598$as_echo_n "checking $2 usability... " >&6; }
1599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600/* end confdefs.h.  */
1601$4
1602#include <$2>
1603_ACEOF
1604if ac_fn_c_try_compile "$LINENO"; then :
1605  ac_header_compiler=yes
1606else
1607  ac_header_compiler=no
1608fi
1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1611$as_echo "$ac_header_compiler" >&6; }
1612
1613# Is the header present?
1614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1615$as_echo_n "checking $2 presence... " >&6; }
1616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617/* end confdefs.h.  */
1618#include <$2>
1619_ACEOF
1620if ac_fn_c_try_cpp "$LINENO"; then :
1621  ac_header_preproc=yes
1622else
1623  ac_header_preproc=no
1624fi
1625rm -f conftest.err conftest.$ac_ext
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1627$as_echo "$ac_header_preproc" >&6; }
1628
1629# So?  What about this header?
1630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1631  yes:no: )
1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1633$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1634    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636    ;;
1637  no:yes:* )
1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1639$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1641$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1642    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1643$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1645$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648    ;;
1649esac
1650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651$as_echo_n "checking for $2... " >&6; }
1652if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653  $as_echo_n "(cached) " >&6
1654else
1655  eval "$3=\$ac_header_compiler"
1656fi
1657eval ac_res=\$$3
1658	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659$as_echo "$ac_res" >&6; }
1660fi
1661  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662
1663} # ac_fn_c_check_header_mongrel
1664
1665# ac_fn_c_try_run LINENO
1666# ----------------------
1667# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668# that executables *can* be run.
1669ac_fn_c_try_run ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  if { { ac_try="$ac_link"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_link") 2>&5
1680  ac_status=$?
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683  { { case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_try") 2>&5
1690  ac_status=$?
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; }; }; then :
1693  ac_retval=0
1694else
1695  $as_echo "$as_me: program exited with status $ac_status" >&5
1696       $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699       ac_retval=$ac_status
1700fi
1701  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703  return $ac_retval
1704
1705} # ac_fn_c_try_run
1706
1707# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708# -------------------------------------------------------
1709# Tests whether HEADER exists and can be compiled using the include files in
1710# INCLUDES, setting the cache variable VAR accordingly.
1711ac_fn_c_check_header_compile ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715$as_echo_n "checking for $2... " >&6; }
1716if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1717  $as_echo_n "(cached) " >&6
1718else
1719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721$4
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_compile "$LINENO"; then :
1725  eval "$3=yes"
1726else
1727  eval "$3=no"
1728fi
1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730fi
1731eval ac_res=\$$3
1732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735
1736} # ac_fn_c_check_header_compile
1737
1738# ac_fn_c_try_link LINENO
1739# -----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded.
1741ac_fn_c_try_link ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  rm -f conftest.$ac_objext conftest$ac_exeext
1745  if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748  *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752  (eval "$ac_link") 2>conftest.err
1753  ac_status=$?
1754  if test -s conftest.err; then
1755    grep -v '^ *+' conftest.err >conftest.er1
1756    cat conftest.er1 >&5
1757    mv -f conftest.er1 conftest.err
1758  fi
1759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760  test $ac_status = 0; } && {
1761	 test -z "$ac_c_werror_flag" ||
1762	 test ! -s conftest.err
1763       } && test -s conftest$ac_exeext && {
1764	 test "$cross_compiling" = yes ||
1765	 $as_test_x conftest$ac_exeext
1766       }; then :
1767  ac_retval=0
1768else
1769  $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772	ac_retval=1
1773fi
1774  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776  # interfere with the next link command; also delete a directory that is
1777  # left behind by Apple's compiler.  We do this before executing the actions.
1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780  return $ac_retval
1781
1782} # ac_fn_c_try_link
1783
1784# ac_fn_c_check_func LINENO FUNC VAR
1785# ----------------------------------
1786# Tests whether FUNC exists, setting the cache variable VAR accordingly
1787ac_fn_c_check_func ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793  $as_echo_n "(cached) " >&6
1794else
1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1799#define $2 innocuous_$2
1800
1801/* System header to define __stub macros and hopefully few prototypes,
1802    which can conflict with char $2 (); below.
1803    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804    <limits.h> exists even on freestanding compilers.  */
1805
1806#ifdef __STDC__
1807# include <limits.h>
1808#else
1809# include <assert.h>
1810#endif
1811
1812#undef $2
1813
1814/* Override any GCC internal prototype to avoid an error.
1815   Use char because int might match the return type of a GCC
1816   builtin and then its argument prototype would still apply.  */
1817#ifdef __cplusplus
1818extern "C"
1819#endif
1820char $2 ();
1821/* The GNU C library defines this for functions which it implements
1822    to always fail with ENOSYS.  Some functions are actually named
1823    something starting with __ and the normal name is an alias.  */
1824#if defined __stub_$2 || defined __stub___$2
1825choke me
1826#endif
1827
1828int
1829main ()
1830{
1831return $2 ();
1832  ;
1833  return 0;
1834}
1835_ACEOF
1836if ac_fn_c_try_link "$LINENO"; then :
1837  eval "$3=yes"
1838else
1839  eval "$3=no"
1840fi
1841rm -f core conftest.err conftest.$ac_objext \
1842    conftest$ac_exeext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849} # ac_fn_c_check_func
1850
1851# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1852# ----------------------------------------------------
1853# Tries to find if the field MEMBER exists in type AGGR, after including
1854# INCLUDES, setting cache variable VAR accordingly.
1855ac_fn_c_check_member ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1859$as_echo_n "checking for $2.$3... " >&6; }
1860if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1861  $as_echo_n "(cached) " >&6
1862else
1863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865$5
1866int
1867main ()
1868{
1869static $2 ac_aggr;
1870if (ac_aggr.$3)
1871return 0;
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then :
1877  eval "$4=yes"
1878else
1879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881$5
1882int
1883main ()
1884{
1885static $2 ac_aggr;
1886if (sizeof ac_aggr.$3)
1887return 0;
1888  ;
1889  return 0;
1890}
1891_ACEOF
1892if ac_fn_c_try_compile "$LINENO"; then :
1893  eval "$4=yes"
1894else
1895  eval "$4=no"
1896fi
1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi
1901eval ac_res=\$$4
1902	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906} # ac_fn_c_check_member
1907
1908# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909# -------------------------------------------
1910# Tests whether TYPE exists after having included INCLUDES, setting cache
1911# variable VAR accordingly.
1912ac_fn_c_check_type ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918  $as_echo_n "(cached) " >&6
1919else
1920  eval "$3=no"
1921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923$4
1924int
1925main ()
1926{
1927if (sizeof ($2))
1928	 return 0;
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937int
1938main ()
1939{
1940if (sizeof (($2)))
1941	    return 0;
1942  ;
1943  return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947
1948else
1949  eval "$3=yes"
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955eval ac_res=\$$3
1956	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957$as_echo "$ac_res" >&6; }
1958  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960} # ac_fn_c_check_type
1961cat >config.log <<_ACEOF
1962This file contains any messages produced by compilers while
1963running configure, to aid debugging if configure makes a mistake.
1964
1965It was created by $as_me, which was
1966generated by GNU Autoconf 2.64.  Invocation command line was
1967
1968  $ $0 $@
1969
1970_ACEOF
1971exec 5>>config.log
1972{
1973cat <<_ASUNAME
1974## --------- ##
1975## Platform. ##
1976## --------- ##
1977
1978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1986
1987/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1988/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1990/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1991/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1992/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1993/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1994
1995_ASUNAME
1996
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000  IFS=$as_save_IFS
2001  test -z "$as_dir" && as_dir=.
2002    $as_echo "PATH: $as_dir"
2003  done
2004IFS=$as_save_IFS
2005
2006} >&5
2007
2008cat >&5 <<_ACEOF
2009
2010
2011## ----------- ##
2012## Core tests. ##
2013## ----------- ##
2014
2015_ACEOF
2016
2017
2018# Keep a trace of the command line.
2019# Strip out --no-create and --no-recursion so they do not pile up.
2020# Strip out --silent because we don't want to record it for future runs.
2021# Also quote any args containing shell meta-characters.
2022# Make two passes to allow for proper duplicate-argument suppression.
2023ac_configure_args=
2024ac_configure_args0=
2025ac_configure_args1=
2026ac_must_keep_next=false
2027for ac_pass in 1 2
2028do
2029  for ac_arg
2030  do
2031    case $ac_arg in
2032    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2033    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2034    | -silent | --silent | --silen | --sile | --sil)
2035      continue ;;
2036    *\'*)
2037      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2038    esac
2039    case $ac_pass in
2040    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2041    2)
2042      as_fn_append ac_configure_args1 " '$ac_arg'"
2043      if test $ac_must_keep_next = true; then
2044	ac_must_keep_next=false # Got value, back to normal.
2045      else
2046	case $ac_arg in
2047	  *=* | --config-cache | -C | -disable-* | --disable-* \
2048	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2049	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2050	  | -with-* | --with-* | -without-* | --without-* | --x)
2051	    case "$ac_configure_args0 " in
2052	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2053	    esac
2054	    ;;
2055	  -* ) ac_must_keep_next=true ;;
2056	esac
2057      fi
2058      as_fn_append ac_configure_args " '$ac_arg'"
2059      ;;
2060    esac
2061  done
2062done
2063{ ac_configure_args0=; unset ac_configure_args0;}
2064{ ac_configure_args1=; unset ac_configure_args1;}
2065
2066# When interrupted or exit'd, cleanup temporary files, and complete
2067# config.log.  We remove comments because anyway the quotes in there
2068# would cause problems or look ugly.
2069# WARNING: Use '\'' to represent an apostrophe within the trap.
2070# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2071trap 'exit_status=$?
2072  # Save into config.log some information that might help in debugging.
2073  {
2074    echo
2075
2076    cat <<\_ASBOX
2077## ---------------- ##
2078## Cache variables. ##
2079## ---------------- ##
2080_ASBOX
2081    echo
2082    # The following way of writing the cache mishandles newlines in values,
2083(
2084  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2085    eval ac_val=\$$ac_var
2086    case $ac_val in #(
2087    *${as_nl}*)
2088      case $ac_var in #(
2089      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2091      esac
2092      case $ac_var in #(
2093      _ | IFS | as_nl) ;; #(
2094      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095      *) { eval $ac_var=; unset $ac_var;} ;;
2096      esac ;;
2097    esac
2098  done
2099  (set) 2>&1 |
2100    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2101    *${as_nl}ac_space=\ *)
2102      sed -n \
2103	"s/'\''/'\''\\\\'\'''\''/g;
2104	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2105      ;; #(
2106    *)
2107      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2108      ;;
2109    esac |
2110    sort
2111)
2112    echo
2113
2114    cat <<\_ASBOX
2115## ----------------- ##
2116## Output variables. ##
2117## ----------------- ##
2118_ASBOX
2119    echo
2120    for ac_var in $ac_subst_vars
2121    do
2122      eval ac_val=\$$ac_var
2123      case $ac_val in
2124      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125      esac
2126      $as_echo "$ac_var='\''$ac_val'\''"
2127    done | sort
2128    echo
2129
2130    if test -n "$ac_subst_files"; then
2131      cat <<\_ASBOX
2132## ------------------- ##
2133## File substitutions. ##
2134## ------------------- ##
2135_ASBOX
2136      echo
2137      for ac_var in $ac_subst_files
2138      do
2139	eval ac_val=\$$ac_var
2140	case $ac_val in
2141	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142	esac
2143	$as_echo "$ac_var='\''$ac_val'\''"
2144      done | sort
2145      echo
2146    fi
2147
2148    if test -s confdefs.h; then
2149      cat <<\_ASBOX
2150## ----------- ##
2151## confdefs.h. ##
2152## ----------- ##
2153_ASBOX
2154      echo
2155      cat confdefs.h
2156      echo
2157    fi
2158    test "$ac_signal" != 0 &&
2159      $as_echo "$as_me: caught signal $ac_signal"
2160    $as_echo "$as_me: exit $exit_status"
2161  } >&5
2162  rm -f core *.core core.conftest.* &&
2163    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164    exit $exit_status
2165' 0
2166for ac_signal in 1 2 13 15; do
2167  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168done
2169ac_signal=0
2170
2171# confdefs.h avoids OS command line length limits that DEFS can exceed.
2172rm -f -r conftest* confdefs.h
2173
2174$as_echo "/* confdefs.h */" > confdefs.h
2175
2176# Predefined preprocessor variables.
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_NAME "$PACKAGE_NAME"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_VERSION "$PACKAGE_VERSION"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_STRING "$PACKAGE_STRING"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_URL "$PACKAGE_URL"
2200_ACEOF
2201
2202
2203# Let the site file select an alternate cache file if it wants to.
2204# Prefer an explicitly selected file to automatically selected ones.
2205ac_site_file1=NONE
2206ac_site_file2=NONE
2207if test -n "$CONFIG_SITE"; then
2208  ac_site_file1=$CONFIG_SITE
2209elif test "x$prefix" != xNONE; then
2210  ac_site_file1=$prefix/share/config.site
2211  ac_site_file2=$prefix/etc/config.site
2212else
2213  ac_site_file1=$ac_default_prefix/share/config.site
2214  ac_site_file2=$ac_default_prefix/etc/config.site
2215fi
2216for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217do
2218  test "x$ac_site_file" = xNONE && continue
2219  if test -r "$ac_site_file"; then
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222    sed 's/^/| /' "$ac_site_file" >&5
2223    . "$ac_site_file"
2224  fi
2225done
2226
2227if test -r "$cache_file"; then
2228  # Some versions of bash will fail to source /dev/null (special
2229  # files actually), so we avoid doing that.
2230  if test -f "$cache_file"; then
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232$as_echo "$as_me: loading cache $cache_file" >&6;}
2233    case $cache_file in
2234      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235      *)                      . "./$cache_file";;
2236    esac
2237  fi
2238else
2239  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240$as_echo "$as_me: creating cache $cache_file" >&6;}
2241  >$cache_file
2242fi
2243
2244# Check that the precious variables saved in the cache have kept the same
2245# value.
2246ac_cache_corrupted=false
2247for ac_var in $ac_precious_vars; do
2248  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249  eval ac_new_set=\$ac_env_${ac_var}_set
2250  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251  eval ac_new_val=\$ac_env_${ac_var}_value
2252  case $ac_old_set,$ac_new_set in
2253    set,)
2254      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256      ac_cache_corrupted=: ;;
2257    ,set)
2258      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260      ac_cache_corrupted=: ;;
2261    ,);;
2262    *)
2263      if test "x$ac_old_val" != "x$ac_new_val"; then
2264	# differences in whitespace do not lead to failure.
2265	ac_old_val_w=`echo x $ac_old_val`
2266	ac_new_val_w=`echo x $ac_new_val`
2267	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270	  ac_cache_corrupted=:
2271	else
2272	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274	  eval $ac_var=\$ac_old_val
2275	fi
2276	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2277$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2278	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2279$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2280      fi;;
2281  esac
2282  # Pass precious variables to config.status.
2283  if test "$ac_new_set" = set; then
2284    case $ac_new_val in
2285    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286    *) ac_arg=$ac_var=$ac_new_val ;;
2287    esac
2288    case " $ac_configure_args " in
2289      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2290      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2291    esac
2292  fi
2293done
2294if $ac_cache_corrupted; then
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2300fi
2301## -------------------- ##
2302## Main body of script. ##
2303## -------------------- ##
2304
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
2311
2312
2313
2314
2315
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321if test -n "$ac_tool_prefix"; then
2322  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325$as_echo_n "checking for $ac_word... " >&6; }
2326if test "${ac_cv_prog_CC+set}" = set; then :
2327  $as_echo_n "(cached) " >&6
2328else
2329  if test -n "$CC"; then
2330  ac_cv_prog_CC="$CC" # Let the user override the test.
2331else
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335  IFS=$as_save_IFS
2336  test -z "$as_dir" && as_dir=.
2337    for ac_exec_ext in '' $ac_executable_extensions; do
2338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2341    break 2
2342  fi
2343done
2344  done
2345IFS=$as_save_IFS
2346
2347fi
2348fi
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2352$as_echo "$CC" >&6; }
2353else
2354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2355$as_echo "no" >&6; }
2356fi
2357
2358
2359fi
2360if test -z "$ac_cv_prog_CC"; then
2361  ac_ct_CC=$CC
2362  # Extract the first word of "gcc", so it can be a program name with args.
2363set dummy gcc; ac_word=$2
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365$as_echo_n "checking for $ac_word... " >&6; }
2366if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2367  $as_echo_n "(cached) " >&6
2368else
2369  if test -n "$ac_ct_CC"; then
2370  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375  IFS=$as_save_IFS
2376  test -z "$as_dir" && as_dir=.
2377    for ac_exec_ext in '' $ac_executable_extensions; do
2378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379    ac_cv_prog_ac_ct_CC="gcc"
2380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2381    break 2
2382  fi
2383done
2384  done
2385IFS=$as_save_IFS
2386
2387fi
2388fi
2389ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390if test -n "$ac_ct_CC"; then
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2392$as_echo "$ac_ct_CC" >&6; }
2393else
2394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395$as_echo "no" >&6; }
2396fi
2397
2398  if test "x$ac_ct_CC" = x; then
2399    CC=""
2400  else
2401    case $cross_compiling:$ac_tool_warned in
2402yes:)
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2405ac_tool_warned=yes ;;
2406esac
2407    CC=$ac_ct_CC
2408  fi
2409else
2410  CC="$ac_cv_prog_CC"
2411fi
2412
2413if test -z "$CC"; then
2414          if test -n "$ac_tool_prefix"; then
2415    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}cc; ac_word=$2
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2418$as_echo_n "checking for $ac_word... " >&6; }
2419if test "${ac_cv_prog_CC+set}" = set; then :
2420  $as_echo_n "(cached) " >&6
2421else
2422  if test -n "$CC"; then
2423  ac_cv_prog_CC="$CC" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428  IFS=$as_save_IFS
2429  test -z "$as_dir" && as_dir=.
2430    for ac_exec_ext in '' $ac_executable_extensions; do
2431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432    ac_cv_prog_CC="${ac_tool_prefix}cc"
2433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434    break 2
2435  fi
2436done
2437  done
2438IFS=$as_save_IFS
2439
2440fi
2441fi
2442CC=$ac_cv_prog_CC
2443if test -n "$CC"; then
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2445$as_echo "$CC" >&6; }
2446else
2447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448$as_echo "no" >&6; }
2449fi
2450
2451
2452  fi
2453fi
2454if test -z "$CC"; then
2455  # Extract the first word of "cc", so it can be a program name with args.
2456set dummy cc; ac_word=$2
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2458$as_echo_n "checking for $ac_word... " >&6; }
2459if test "${ac_cv_prog_CC+set}" = set; then :
2460  $as_echo_n "(cached) " >&6
2461else
2462  if test -n "$CC"; then
2463  ac_cv_prog_CC="$CC" # Let the user override the test.
2464else
2465  ac_prog_rejected=no
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471    for ac_exec_ext in '' $ac_executable_extensions; do
2472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2474       ac_prog_rejected=yes
2475       continue
2476     fi
2477    ac_cv_prog_CC="cc"
2478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482  done
2483IFS=$as_save_IFS
2484
2485if test $ac_prog_rejected = yes; then
2486  # We found a bogon in the path, so make sure we never use it.
2487  set dummy $ac_cv_prog_CC
2488  shift
2489  if test $# != 0; then
2490    # We chose a different compiler from the bogus one.
2491    # However, it has the same basename, so the bogon will be chosen
2492    # first if we set CC to just the basename; use the full file name.
2493    shift
2494    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2495  fi
2496fi
2497fi
2498fi
2499CC=$ac_cv_prog_CC
2500if test -n "$CC"; then
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2502$as_echo "$CC" >&6; }
2503else
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
2506fi
2507
2508
2509fi
2510if test -z "$CC"; then
2511  if test -n "$ac_tool_prefix"; then
2512  for ac_prog in cl.exe
2513  do
2514    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517$as_echo_n "checking for $ac_word... " >&6; }
2518if test "${ac_cv_prog_CC+set}" = set; then :
2519  $as_echo_n "(cached) " >&6
2520else
2521  if test -n "$CC"; then
2522  ac_cv_prog_CC="$CC" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529    for ac_exec_ext in '' $ac_executable_extensions; do
2530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533    break 2
2534  fi
2535done
2536  done
2537IFS=$as_save_IFS
2538
2539fi
2540fi
2541CC=$ac_cv_prog_CC
2542if test -n "$CC"; then
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2544$as_echo "$CC" >&6; }
2545else
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547$as_echo "no" >&6; }
2548fi
2549
2550
2551    test -n "$CC" && break
2552  done
2553fi
2554if test -z "$CC"; then
2555  ac_ct_CC=$CC
2556  for ac_prog in cl.exe
2557do
2558  # Extract the first word of "$ac_prog", so it can be a program name with args.
2559set dummy $ac_prog; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2563  $as_echo_n "(cached) " >&6
2564else
2565  if test -n "$ac_ct_CC"; then
2566  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    for ac_exec_ext in '' $ac_executable_extensions; do
2574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575    ac_cv_prog_ac_ct_CC="$ac_prog"
2576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580  done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586if test -n "$ac_ct_CC"; then
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2588$as_echo "$ac_ct_CC" >&6; }
2589else
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595  test -n "$ac_ct_CC" && break
2596done
2597
2598  if test "x$ac_ct_CC" = x; then
2599    CC=""
2600  else
2601    case $cross_compiling:$ac_tool_warned in
2602yes:)
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2605ac_tool_warned=yes ;;
2606esac
2607    CC=$ac_ct_CC
2608  fi
2609fi
2610
2611fi
2612
2613
2614test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616as_fn_error "no acceptable C compiler found in \$PATH
2617See \`config.log' for more details." "$LINENO" 5; }
2618
2619# Provide some information about the compiler.
2620$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2621set X $ac_compile
2622ac_compiler=$2
2623for ac_option in --version -v -V -qversion; do
2624  { { ac_try="$ac_compiler $ac_option >&5"
2625case "(($ac_try" in
2626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627  *) ac_try_echo=$ac_try;;
2628esac
2629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630$as_echo "$ac_try_echo"; } >&5
2631  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2632  ac_status=$?
2633  if test -s conftest.err; then
2634    sed '10a\
2635... rest of stderr output deleted ...
2636         10q' conftest.err >conftest.er1
2637    cat conftest.er1 >&5
2638    rm -f conftest.er1 conftest.err
2639  fi
2640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641  test $ac_status = 0; }
2642done
2643
2644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645/* end confdefs.h.  */
2646
2647int
2648main ()
2649{
2650
2651  ;
2652  return 0;
2653}
2654_ACEOF
2655ac_clean_files_save=$ac_clean_files
2656ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2657# Try to create an executable without -o first, disregard a.out.
2658# It will help us diagnose broken compilers, and finding out an intuition
2659# of exeext.
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2661$as_echo_n "checking for C compiler default output file name... " >&6; }
2662ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2663
2664# The possible output files:
2665ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2666
2667ac_rmfiles=
2668for ac_file in $ac_files
2669do
2670  case $ac_file in
2671    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2672    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2673  esac
2674done
2675rm -f $ac_rmfiles
2676
2677if { { ac_try="$ac_link_default"
2678case "(($ac_try" in
2679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680  *) ac_try_echo=$ac_try;;
2681esac
2682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2683$as_echo "$ac_try_echo"; } >&5
2684  (eval "$ac_link_default") 2>&5
2685  ac_status=$?
2686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2687  test $ac_status = 0; }; then :
2688  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2689# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2690# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2691# so that the user can short-circuit this test for compilers unknown to
2692# Autoconf.
2693for ac_file in $ac_files ''
2694do
2695  test -f "$ac_file" || continue
2696  case $ac_file in
2697    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2698	;;
2699    [ab].out )
2700	# We found the default executable, but exeext='' is most
2701	# certainly right.
2702	break;;
2703    *.* )
2704	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2705	then :; else
2706	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2707	fi
2708	# We set ac_cv_exeext here because the later test for it is not
2709	# safe: cross compilers may not add the suffix if given an `-o'
2710	# argument, so we may need to know it at that point already.
2711	# Even if this section looks crufty: it has the advantage of
2712	# actually working.
2713	break;;
2714    * )
2715	break;;
2716  esac
2717done
2718test "$ac_cv_exeext" = no && ac_cv_exeext=
2719
2720else
2721  ac_file=''
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2724$as_echo "$ac_file" >&6; }
2725if test -z "$ac_file"; then :
2726  $as_echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731{ as_fn_set_status 77
2732as_fn_error "C compiler cannot create executables
2733See \`config.log' for more details." "$LINENO" 5; }; }
2734fi
2735ac_exeext=$ac_cv_exeext
2736
2737# Check that the compiler produces executables we can run.  If not, either
2738# the compiler is broken, or we cross compile.
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2740$as_echo_n "checking whether the C compiler works... " >&6; }
2741# If not cross compiling, check that we can run a simple program.
2742if test "$cross_compiling" != yes; then
2743  if { ac_try='./$ac_file'
2744  { { case "(($ac_try" in
2745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746  *) ac_try_echo=$ac_try;;
2747esac
2748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749$as_echo "$ac_try_echo"; } >&5
2750  (eval "$ac_try") 2>&5
2751  ac_status=$?
2752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2753  test $ac_status = 0; }; }; then
2754    cross_compiling=no
2755  else
2756    if test "$cross_compiling" = maybe; then
2757	cross_compiling=yes
2758    else
2759	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761as_fn_error "cannot run C compiled programs.
2762If you meant to cross compile, use \`--host'.
2763See \`config.log' for more details." "$LINENO" 5; }
2764    fi
2765  fi
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768$as_echo "yes" >&6; }
2769
2770rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2771ac_clean_files=$ac_clean_files_save
2772# Check that the compiler produces executables we can run.  If not, either
2773# the compiler is broken, or we cross compile.
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2775$as_echo_n "checking whether we are cross compiling... " >&6; }
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2777$as_echo "$cross_compiling" >&6; }
2778
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2780$as_echo_n "checking for suffix of executables... " >&6; }
2781if { { ac_try="$ac_link"
2782case "(($ac_try" in
2783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784  *) ac_try_echo=$ac_try;;
2785esac
2786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2787$as_echo "$ac_try_echo"; } >&5
2788  (eval "$ac_link") 2>&5
2789  ac_status=$?
2790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791  test $ac_status = 0; }; then :
2792  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2793# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2794# work properly (i.e., refer to `conftest.exe'), while it won't with
2795# `rm'.
2796for ac_file in conftest.exe conftest conftest.*; do
2797  test -f "$ac_file" || continue
2798  case $ac_file in
2799    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2800    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2801	  break;;
2802    * ) break;;
2803  esac
2804done
2805else
2806  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808as_fn_error "cannot compute suffix of executables: cannot compile and link
2809See \`config.log' for more details." "$LINENO" 5; }
2810fi
2811rm -f conftest$ac_cv_exeext
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2813$as_echo "$ac_cv_exeext" >&6; }
2814
2815rm -f conftest.$ac_ext
2816EXEEXT=$ac_cv_exeext
2817ac_exeext=$EXEEXT
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2819$as_echo_n "checking for suffix of object files... " >&6; }
2820if test "${ac_cv_objext+set}" = set; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.o conftest.obj
2835if { { ac_try="$ac_compile"
2836case "(($ac_try" in
2837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838  *) ac_try_echo=$ac_try;;
2839esac
2840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841$as_echo "$ac_try_echo"; } >&5
2842  (eval "$ac_compile") 2>&5
2843  ac_status=$?
2844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2845  test $ac_status = 0; }; then :
2846  for ac_file in conftest.o conftest.obj conftest.*; do
2847  test -f "$ac_file" || continue;
2848  case $ac_file in
2849    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2850    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2851       break;;
2852  esac
2853done
2854else
2855  $as_echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860as_fn_error "cannot compute suffix of object files: cannot compile
2861See \`config.log' for more details." "$LINENO" 5; }
2862fi
2863rm -f conftest.$ac_cv_objext conftest.$ac_ext
2864fi
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2866$as_echo "$ac_cv_objext" >&6; }
2867OBJEXT=$ac_cv_objext
2868ac_objext=$OBJEXT
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2870$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2871if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2872  $as_echo_n "(cached) " >&6
2873else
2874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875/* end confdefs.h.  */
2876
2877int
2878main ()
2879{
2880#ifndef __GNUC__
2881       choke me
2882#endif
2883
2884  ;
2885  return 0;
2886}
2887_ACEOF
2888if ac_fn_c_try_compile "$LINENO"; then :
2889  ac_compiler_gnu=yes
2890else
2891  ac_compiler_gnu=no
2892fi
2893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894ac_cv_c_compiler_gnu=$ac_compiler_gnu
2895
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2898$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2899if test $ac_compiler_gnu = yes; then
2900  GCC=yes
2901else
2902  GCC=
2903fi
2904ac_test_CFLAGS=${CFLAGS+set}
2905ac_save_CFLAGS=$CFLAGS
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2907$as_echo_n "checking whether $CC accepts -g... " >&6; }
2908if test "${ac_cv_prog_cc_g+set}" = set; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  ac_save_c_werror_flag=$ac_c_werror_flag
2912   ac_c_werror_flag=yes
2913   ac_cv_prog_cc_g=no
2914   CFLAGS="-g"
2915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916/* end confdefs.h.  */
2917
2918int
2919main ()
2920{
2921
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926if ac_fn_c_try_compile "$LINENO"; then :
2927  ac_cv_prog_cc_g=yes
2928else
2929  CFLAGS=""
2930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931/* end confdefs.h.  */
2932
2933int
2934main ()
2935{
2936
2937  ;
2938  return 0;
2939}
2940_ACEOF
2941if ac_fn_c_try_compile "$LINENO"; then :
2942
2943else
2944  ac_c_werror_flag=$ac_save_c_werror_flag
2945	 CFLAGS="-g"
2946	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952
2953  ;
2954  return 0;
2955}
2956_ACEOF
2957if ac_fn_c_try_compile "$LINENO"; then :
2958  ac_cv_prog_cc_g=yes
2959fi
2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961fi
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963fi
2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965   ac_c_werror_flag=$ac_save_c_werror_flag
2966fi
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2968$as_echo "$ac_cv_prog_cc_g" >&6; }
2969if test "$ac_test_CFLAGS" = set; then
2970  CFLAGS=$ac_save_CFLAGS
2971elif test $ac_cv_prog_cc_g = yes; then
2972  if test "$GCC" = yes; then
2973    CFLAGS="-g -O2"
2974  else
2975    CFLAGS="-g"
2976  fi
2977else
2978  if test "$GCC" = yes; then
2979    CFLAGS="-O2"
2980  else
2981    CFLAGS=
2982  fi
2983fi
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2985$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2986if test "${ac_cv_prog_cc_c89+set}" = set; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  ac_cv_prog_cc_c89=no
2990ac_save_CC=$CC
2991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h.  */
2993#include <stdarg.h>
2994#include <stdio.h>
2995#include <sys/types.h>
2996#include <sys/stat.h>
2997/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2998struct buf { int x; };
2999FILE * (*rcsopen) (struct buf *, struct stat *, int);
3000static char *e (p, i)
3001     char **p;
3002     int i;
3003{
3004  return p[i];
3005}
3006static char *f (char * (*g) (char **, int), char **p, ...)
3007{
3008  char *s;
3009  va_list v;
3010  va_start (v,p);
3011  s = g (p, va_arg (v,int));
3012  va_end (v);
3013  return s;
3014}
3015
3016/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3017   function prototypes and stuff, but not '\xHH' hex character constants.
3018   These don't provoke an error unfortunately, instead are silently treated
3019   as 'x'.  The following induces an error, until -std is added to get
3020   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3021   array size at least.  It's necessary to write '\x00'==0 to get something
3022   that's true only with -std.  */
3023int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3024
3025/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3026   inside strings and character constants.  */
3027#define FOO(x) 'x'
3028int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3029
3030int test (int i, double x);
3031struct s1 {int (*f) (int a);};
3032struct s2 {int (*f) (double a);};
3033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3034int argc;
3035char **argv;
3036int
3037main ()
3038{
3039return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3045	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3046do
3047  CC="$ac_save_CC $ac_arg"
3048  if ac_fn_c_try_compile "$LINENO"; then :
3049  ac_cv_prog_cc_c89=$ac_arg
3050fi
3051rm -f core conftest.err conftest.$ac_objext
3052  test "x$ac_cv_prog_cc_c89" != "xno" && break
3053done
3054rm -f conftest.$ac_ext
3055CC=$ac_save_CC
3056
3057fi
3058# AC_CACHE_VAL
3059case "x$ac_cv_prog_cc_c89" in
3060  x)
3061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3062$as_echo "none needed" >&6; } ;;
3063  xno)
3064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3065$as_echo "unsupported" >&6; } ;;
3066  *)
3067    CC="$CC $ac_cv_prog_cc_c89"
3068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3069$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3070esac
3071if test "x$ac_cv_prog_cc_c89" != xno; then :
3072
3073fi
3074
3075ac_ext=c
3076ac_cpp='$CPP $CPPFLAGS'
3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080
3081ac_aux_dir=
3082for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3083  for ac_t in install-sh install.sh shtool; do
3084    if test -f "$ac_dir/$ac_t"; then
3085      ac_aux_dir=$ac_dir
3086      ac_install_sh="$ac_aux_dir/$ac_t -c"
3087      break 2
3088    fi
3089  done
3090done
3091if test -z "$ac_aux_dir"; then
3092  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3093fi
3094
3095# These three variables are undocumented and unsupported,
3096# and are intended to be withdrawn in a future Autoconf release.
3097# They can cause serious problems if a builder's source tree is in a directory
3098# whose full name contains unusual characters.
3099ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3100ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3101ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3102
3103
3104# Make sure we can run config.sub.
3105$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3106  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3107
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3109$as_echo_n "checking build system type... " >&6; }
3110if test "${ac_cv_build+set}" = set; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  ac_build_alias=$build_alias
3114test "x$ac_build_alias" = x &&
3115  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3116test "x$ac_build_alias" = x &&
3117  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3118ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3119  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3120
3121fi
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3123$as_echo "$ac_cv_build" >&6; }
3124case $ac_cv_build in
3125*-*-*) ;;
3126*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3127esac
3128build=$ac_cv_build
3129ac_save_IFS=$IFS; IFS='-'
3130set x $ac_cv_build
3131shift
3132build_cpu=$1
3133build_vendor=$2
3134shift; shift
3135# Remember, the first character of IFS is used to create $*,
3136# except with old shells:
3137build_os=$*
3138IFS=$ac_save_IFS
3139case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3140
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3143$as_echo_n "checking host system type... " >&6; }
3144if test "${ac_cv_host+set}" = set; then :
3145  $as_echo_n "(cached) " >&6
3146else
3147  if test "x$host_alias" = x; then
3148  ac_cv_host=$ac_cv_build
3149else
3150  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3151    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3152fi
3153
3154fi
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3156$as_echo "$ac_cv_host" >&6; }
3157case $ac_cv_host in
3158*-*-*) ;;
3159*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3160esac
3161host=$ac_cv_host
3162ac_save_IFS=$IFS; IFS='-'
3163set x $ac_cv_host
3164shift
3165host_cpu=$1
3166host_vendor=$2
3167shift; shift
3168# Remember, the first character of IFS is used to create $*,
3169# except with old shells:
3170host_os=$*
3171IFS=$ac_save_IFS
3172case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3173
3174
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3176$as_echo_n "checking target system type... " >&6; }
3177if test "${ac_cv_target+set}" = set; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if test "x$target_alias" = x; then
3181  ac_cv_target=$ac_cv_host
3182else
3183  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3184    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3185fi
3186
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3189$as_echo "$ac_cv_target" >&6; }
3190case $ac_cv_target in
3191*-*-*) ;;
3192*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3193esac
3194target=$ac_cv_target
3195ac_save_IFS=$IFS; IFS='-'
3196set x $ac_cv_target
3197shift
3198target_cpu=$1
3199target_vendor=$2
3200shift; shift
3201# Remember, the first character of IFS is used to create $*,
3202# except with old shells:
3203target_os=$*
3204IFS=$ac_save_IFS
3205case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3206
3207
3208# The aliases save the names the user supplied, while $host etc.
3209# will get canonicalized.
3210test -n "$target_alias" &&
3211  test "$program_prefix$program_suffix$program_transform_name" = \
3212    NONENONEs,x,x, &&
3213  program_prefix=${target_alias}-
3214
3215ac_ext=c
3216ac_cpp='$CPP $CPPFLAGS'
3217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3221$as_echo_n "checking how to run the C preprocessor... " >&6; }
3222# On Suns, sometimes $CPP names a directory.
3223if test -n "$CPP" && test -d "$CPP"; then
3224  CPP=
3225fi
3226if test -z "$CPP"; then
3227  if test "${ac_cv_prog_CPP+set}" = set; then :
3228  $as_echo_n "(cached) " >&6
3229else
3230      # Double quotes because CPP needs to be expanded
3231    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3232    do
3233      ac_preproc_ok=false
3234for ac_c_preproc_warn_flag in '' yes
3235do
3236  # Use a header file that comes with gcc, so configuring glibc
3237  # with a fresh cross-compiler works.
3238  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239  # <limits.h> exists even on freestanding compilers.
3240  # On the NeXT, cc -E runs the code through the compiler's parser,
3241  # not just through cpp. "Syntax error" is here to catch this case.
3242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h.  */
3244#ifdef __STDC__
3245# include <limits.h>
3246#else
3247# include <assert.h>
3248#endif
3249		     Syntax error
3250_ACEOF
3251if ac_fn_c_try_cpp "$LINENO"; then :
3252
3253else
3254  # Broken: fails on valid input.
3255continue
3256fi
3257rm -f conftest.err conftest.$ac_ext
3258
3259  # OK, works on sane cases.  Now check whether nonexistent headers
3260  # can be detected and how.
3261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263#include <ac_nonexistent.h>
3264_ACEOF
3265if ac_fn_c_try_cpp "$LINENO"; then :
3266  # Broken: success on invalid input.
3267continue
3268else
3269  # Passes both tests.
3270ac_preproc_ok=:
3271break
3272fi
3273rm -f conftest.err conftest.$ac_ext
3274
3275done
3276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277rm -f conftest.err conftest.$ac_ext
3278if $ac_preproc_ok; then :
3279  break
3280fi
3281
3282    done
3283    ac_cv_prog_CPP=$CPP
3284
3285fi
3286  CPP=$ac_cv_prog_CPP
3287else
3288  ac_cv_prog_CPP=$CPP
3289fi
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3291$as_echo "$CPP" >&6; }
3292ac_preproc_ok=false
3293for ac_c_preproc_warn_flag in '' yes
3294do
3295  # Use a header file that comes with gcc, so configuring glibc
3296  # with a fresh cross-compiler works.
3297  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3298  # <limits.h> exists even on freestanding compilers.
3299  # On the NeXT, cc -E runs the code through the compiler's parser,
3300  # not just through cpp. "Syntax error" is here to catch this case.
3301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h.  */
3303#ifdef __STDC__
3304# include <limits.h>
3305#else
3306# include <assert.h>
3307#endif
3308		     Syntax error
3309_ACEOF
3310if ac_fn_c_try_cpp "$LINENO"; then :
3311
3312else
3313  # Broken: fails on valid input.
3314continue
3315fi
3316rm -f conftest.err conftest.$ac_ext
3317
3318  # OK, works on sane cases.  Now check whether nonexistent headers
3319  # can be detected and how.
3320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h.  */
3322#include <ac_nonexistent.h>
3323_ACEOF
3324if ac_fn_c_try_cpp "$LINENO"; then :
3325  # Broken: success on invalid input.
3326continue
3327else
3328  # Passes both tests.
3329ac_preproc_ok=:
3330break
3331fi
3332rm -f conftest.err conftest.$ac_ext
3333
3334done
3335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3336rm -f conftest.err conftest.$ac_ext
3337if $ac_preproc_ok; then :
3338
3339else
3340  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342as_fn_error "C preprocessor \"$CPP\" fails sanity check
3343See \`config.log' for more details." "$LINENO" 5; }
3344fi
3345
3346ac_ext=c
3347ac_cpp='$CPP $CPPFLAGS'
3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3354$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3355if test "${ac_cv_path_GREP+set}" = set; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  if test -z "$GREP"; then
3359  ac_path_GREP_found=false
3360  # Loop through the user's path and test for each of PROGNAME-LIST
3361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3363do
3364  IFS=$as_save_IFS
3365  test -z "$as_dir" && as_dir=.
3366    for ac_prog in grep ggrep; do
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3369      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3370# Check for GNU ac_path_GREP and select it if it is found.
3371  # Check for GNU $ac_path_GREP
3372case `"$ac_path_GREP" --version 2>&1` in
3373*GNU*)
3374  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3375*)
3376  ac_count=0
3377  $as_echo_n 0123456789 >"conftest.in"
3378  while :
3379  do
3380    cat "conftest.in" "conftest.in" >"conftest.tmp"
3381    mv "conftest.tmp" "conftest.in"
3382    cp "conftest.in" "conftest.nl"
3383    $as_echo 'GREP' >> "conftest.nl"
3384    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3385    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3386    as_fn_arith $ac_count + 1 && ac_count=$as_val
3387    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3388      # Best one so far, save it but keep looking for a better one
3389      ac_cv_path_GREP="$ac_path_GREP"
3390      ac_path_GREP_max=$ac_count
3391    fi
3392    # 10*(2^10) chars as input seems more than enough
3393    test $ac_count -gt 10 && break
3394  done
3395  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3396esac
3397
3398      $ac_path_GREP_found && break 3
3399    done
3400  done
3401  done
3402IFS=$as_save_IFS
3403  if test -z "$ac_cv_path_GREP"; then
3404    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3405  fi
3406else
3407  ac_cv_path_GREP=$GREP
3408fi
3409
3410fi
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3412$as_echo "$ac_cv_path_GREP" >&6; }
3413 GREP="$ac_cv_path_GREP"
3414
3415
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3417$as_echo_n "checking for egrep... " >&6; }
3418if test "${ac_cv_path_EGREP+set}" = set; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3422   then ac_cv_path_EGREP="$GREP -E"
3423   else
3424     if test -z "$EGREP"; then
3425  ac_path_EGREP_found=false
3426  # Loop through the user's path and test for each of PROGNAME-LIST
3427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3429do
3430  IFS=$as_save_IFS
3431  test -z "$as_dir" && as_dir=.
3432    for ac_prog in egrep; do
3433    for ac_exec_ext in '' $ac_executable_extensions; do
3434      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3435      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3436# Check for GNU ac_path_EGREP and select it if it is found.
3437  # Check for GNU $ac_path_EGREP
3438case `"$ac_path_EGREP" --version 2>&1` in
3439*GNU*)
3440  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3441*)
3442  ac_count=0
3443  $as_echo_n 0123456789 >"conftest.in"
3444  while :
3445  do
3446    cat "conftest.in" "conftest.in" >"conftest.tmp"
3447    mv "conftest.tmp" "conftest.in"
3448    cp "conftest.in" "conftest.nl"
3449    $as_echo 'EGREP' >> "conftest.nl"
3450    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3451    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3452    as_fn_arith $ac_count + 1 && ac_count=$as_val
3453    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3454      # Best one so far, save it but keep looking for a better one
3455      ac_cv_path_EGREP="$ac_path_EGREP"
3456      ac_path_EGREP_max=$ac_count
3457    fi
3458    # 10*(2^10) chars as input seems more than enough
3459    test $ac_count -gt 10 && break
3460  done
3461  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3462esac
3463
3464      $ac_path_EGREP_found && break 3
3465    done
3466  done
3467  done
3468IFS=$as_save_IFS
3469  if test -z "$ac_cv_path_EGREP"; then
3470    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3471  fi
3472else
3473  ac_cv_path_EGREP=$EGREP
3474fi
3475
3476   fi
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3479$as_echo "$ac_cv_path_EGREP" >&6; }
3480 EGREP="$ac_cv_path_EGREP"
3481
3482
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3484$as_echo_n "checking for ANSI C header files... " >&6; }
3485if test "${ac_cv_header_stdc+set}" = set; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490#include <stdlib.h>
3491#include <stdarg.h>
3492#include <string.h>
3493#include <float.h>
3494
3495int
3496main ()
3497{
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503if ac_fn_c_try_compile "$LINENO"; then :
3504  ac_cv_header_stdc=yes
3505else
3506  ac_cv_header_stdc=no
3507fi
3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509
3510if test $ac_cv_header_stdc = yes; then
3511  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514#include <string.h>
3515
3516_ACEOF
3517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3518  $EGREP "memchr" >/dev/null 2>&1; then :
3519
3520else
3521  ac_cv_header_stdc=no
3522fi
3523rm -f conftest*
3524
3525fi
3526
3527if test $ac_cv_header_stdc = yes; then
3528  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h.  */
3531#include <stdlib.h>
3532
3533_ACEOF
3534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535  $EGREP "free" >/dev/null 2>&1; then :
3536
3537else
3538  ac_cv_header_stdc=no
3539fi
3540rm -f conftest*
3541
3542fi
3543
3544if test $ac_cv_header_stdc = yes; then
3545  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3546  if test "$cross_compiling" = yes; then :
3547  :
3548else
3549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551#include <ctype.h>
3552#include <stdlib.h>
3553#if ((' ' & 0x0FF) == 0x020)
3554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3556#else
3557# define ISLOWER(c) \
3558		   (('a' <= (c) && (c) <= 'i') \
3559		     || ('j' <= (c) && (c) <= 'r') \
3560		     || ('s' <= (c) && (c) <= 'z'))
3561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3562#endif
3563
3564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3565int
3566main ()
3567{
3568  int i;
3569  for (i = 0; i < 256; i++)
3570    if (XOR (islower (i), ISLOWER (i))
3571	|| toupper (i) != TOUPPER (i))
3572      return 2;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_run "$LINENO"; then :
3577
3578else
3579  ac_cv_header_stdc=no
3580fi
3581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3582  conftest.$ac_objext conftest.beam conftest.$ac_ext
3583fi
3584
3585fi
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3588$as_echo "$ac_cv_header_stdc" >&6; }
3589if test $ac_cv_header_stdc = yes; then
3590
3591$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3592
3593fi
3594
3595# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3596for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3597		  inttypes.h stdint.h unistd.h
3598do :
3599  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3600ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3601"
3602eval as_val=\$$as_ac_Header
3603   if test "x$as_val" = x""yes; then :
3604  cat >>confdefs.h <<_ACEOF
3605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606_ACEOF
3607
3608fi
3609
3610done
3611
3612
3613
3614  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3615if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3616  MINIX=yes
3617else
3618  MINIX=
3619fi
3620
3621
3622  if test "$MINIX" = yes; then
3623
3624$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3625
3626
3627$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3628
3629
3630$as_echo "#define _MINIX 1" >>confdefs.h
3631
3632  fi
3633
3634
3635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3636$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3637if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3638  $as_echo_n "(cached) " >&6
3639else
3640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642
3643#	  define __EXTENSIONS__ 1
3644	  $ac_includes_default
3645int
3646main ()
3647{
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653if ac_fn_c_try_compile "$LINENO"; then :
3654  ac_cv_safe_to_define___extensions__=yes
3655else
3656  ac_cv_safe_to_define___extensions__=no
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3661$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3662  test $ac_cv_safe_to_define___extensions__ = yes &&
3663    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3664
3665  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3666
3667  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3668
3669  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3670
3671  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3672
3673
3674test "$program_prefix" != NONE &&
3675  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3676# Use a double $ so make ignores it.
3677test "$program_suffix" != NONE &&
3678  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3679# Double any \ or $.
3680# By default was `s,x,x', remove it if useless.
3681ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3682program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3683
3684# Find a good install program.  We prefer a C program (faster),
3685# so one script is as good as another.  But avoid the broken or
3686# incompatible versions:
3687# SysV /etc/install, /usr/sbin/install
3688# SunOS /usr/etc/install
3689# IRIX /sbin/install
3690# AIX /bin/install
3691# AmigaOS /C/install, which installs bootblocks on floppy discs
3692# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3693# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3694# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3695# OS/2's system install, which has a completely different semantic
3696# ./install, which can be erroneously created by make from ./install.sh.
3697# Reject install programs that cannot install multiple files.
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3699$as_echo_n "checking for a BSD-compatible install... " >&6; }
3700if test -z "$INSTALL"; then
3701if test "${ac_cv_path_install+set}" = set; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707  IFS=$as_save_IFS
3708  test -z "$as_dir" && as_dir=.
3709    # Account for people who put trailing slashes in PATH elements.
3710case $as_dir/ in #((
3711  ./ | .// | /[cC]/* | \
3712  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3713  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3714  /usr/ucb/* ) ;;
3715  *)
3716    # OSF1 and SCO ODT 3.0 have their own names for install.
3717    # Don't use installbsd from OSF since it installs stuff as root
3718    # by default.
3719    for ac_prog in ginstall scoinst install; do
3720      for ac_exec_ext in '' $ac_executable_extensions; do
3721	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3722	  if test $ac_prog = install &&
3723	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724	    # AIX install.  It has an incompatible calling convention.
3725	    :
3726	  elif test $ac_prog = install &&
3727	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3728	    # program-specific install script used by HP pwplus--don't use.
3729	    :
3730	  else
3731	    rm -rf conftest.one conftest.two conftest.dir
3732	    echo one > conftest.one
3733	    echo two > conftest.two
3734	    mkdir conftest.dir
3735	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3736	      test -s conftest.one && test -s conftest.two &&
3737	      test -s conftest.dir/conftest.one &&
3738	      test -s conftest.dir/conftest.two
3739	    then
3740	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3741	      break 3
3742	    fi
3743	  fi
3744	fi
3745      done
3746    done
3747    ;;
3748esac
3749
3750  done
3751IFS=$as_save_IFS
3752
3753rm -rf conftest.one conftest.two conftest.dir
3754
3755fi
3756  if test "${ac_cv_path_install+set}" = set; then
3757    INSTALL=$ac_cv_path_install
3758  else
3759    # As a last resort, use the slow shell script.  Don't cache a
3760    # value for INSTALL within a source directory, because that will
3761    # break other packages using the cache if that directory is
3762    # removed, or if the value is a relative name.
3763    INSTALL=$ac_install_sh
3764  fi
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3767$as_echo "$INSTALL" >&6; }
3768
3769# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3770# It thinks the first close brace ends the variable substitution.
3771test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3772
3773test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3774
3775test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3776
3777rm -rf .tst 2>/dev/null
3778mkdir .tst 2>/dev/null
3779if test -d .tst; then
3780  am__leading_dot=.
3781else
3782  am__leading_dot=_
3783fi
3784rmdir .tst 2>/dev/null
3785
3786DEPDIR="${am__leading_dot}deps"
3787
3788case `pwd` in
3789  *\ * | *\	*)
3790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3791$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3792esac
3793
3794
3795
3796macro_version='2.2.7a'
3797macro_revision='1.3134'
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811ltmain="$ac_aux_dir/ltmain.sh"
3812
3813# Backslashify metacharacters that are still active within
3814# double-quoted strings.
3815sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3816
3817# Same as above, but do not quote variable references.
3818double_quote_subst='s/\(["`\\]\)/\\\1/g'
3819
3820# Sed substitution to delay expansion of an escaped shell variable in a
3821# double_quote_subst'ed string.
3822delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3823
3824# Sed substitution to delay expansion of an escaped single quote.
3825delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3826
3827# Sed substitution to avoid accidental globbing in evaled expressions
3828no_glob_subst='s/\*/\\\*/g'
3829
3830ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3831ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3832ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3833
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3835$as_echo_n "checking how to print strings... " >&6; }
3836# Test print first, because it will be a builtin if present.
3837if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3838   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3839  ECHO='print -r --'
3840elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3841  ECHO='printf %s\n'
3842else
3843  # Use this function as a fallback that always works.
3844  func_fallback_echo ()
3845  {
3846    eval 'cat <<_LTECHO_EOF
3847$1
3848_LTECHO_EOF'
3849  }
3850  ECHO='func_fallback_echo'
3851fi
3852
3853# func_echo_all arg...
3854# Invoke $ECHO with all args, space-separated.
3855func_echo_all ()
3856{
3857    $ECHO ""
3858}
3859
3860case "$ECHO" in
3861  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3862$as_echo "printf" >&6; } ;;
3863  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3864$as_echo "print -r" >&6; } ;;
3865  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3866$as_echo "cat" >&6; } ;;
3867esac
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3883$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3884if test "${ac_cv_path_SED+set}" = set; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3888     for ac_i in 1 2 3 4 5 6 7; do
3889       ac_script="$ac_script$as_nl$ac_script"
3890     done
3891     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3892     { ac_script=; unset ac_script;}
3893     if test -z "$SED"; then
3894  ac_path_SED_found=false
3895  # Loop through the user's path and test for each of PROGNAME-LIST
3896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899  IFS=$as_save_IFS
3900  test -z "$as_dir" && as_dir=.
3901    for ac_prog in sed gsed; do
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3904      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3905# Check for GNU ac_path_SED and select it if it is found.
3906  # Check for GNU $ac_path_SED
3907case `"$ac_path_SED" --version 2>&1` in
3908*GNU*)
3909  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3910*)
3911  ac_count=0
3912  $as_echo_n 0123456789 >"conftest.in"
3913  while :
3914  do
3915    cat "conftest.in" "conftest.in" >"conftest.tmp"
3916    mv "conftest.tmp" "conftest.in"
3917    cp "conftest.in" "conftest.nl"
3918    $as_echo '' >> "conftest.nl"
3919    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921    as_fn_arith $ac_count + 1 && ac_count=$as_val
3922    if test $ac_count -gt ${ac_path_SED_max-0}; then
3923      # Best one so far, save it but keep looking for a better one
3924      ac_cv_path_SED="$ac_path_SED"
3925      ac_path_SED_max=$ac_count
3926    fi
3927    # 10*(2^10) chars as input seems more than enough
3928    test $ac_count -gt 10 && break
3929  done
3930  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931esac
3932
3933      $ac_path_SED_found && break 3
3934    done
3935  done
3936  done
3937IFS=$as_save_IFS
3938  if test -z "$ac_cv_path_SED"; then
3939    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3940  fi
3941else
3942  ac_cv_path_SED=$SED
3943fi
3944
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3947$as_echo "$ac_cv_path_SED" >&6; }
3948 SED="$ac_cv_path_SED"
3949  rm -f conftest.sed
3950
3951test -z "$SED" && SED=sed
3952Xsed="$SED -e 1s/^X//"
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3965$as_echo_n "checking for fgrep... " >&6; }
3966if test "${ac_cv_path_FGREP+set}" = set; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3970   then ac_cv_path_FGREP="$GREP -F"
3971   else
3972     if test -z "$FGREP"; then
3973  ac_path_FGREP_found=false
3974  # Loop through the user's path and test for each of PROGNAME-LIST
3975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977do
3978  IFS=$as_save_IFS
3979  test -z "$as_dir" && as_dir=.
3980    for ac_prog in fgrep; do
3981    for ac_exec_ext in '' $ac_executable_extensions; do
3982      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3983      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3984# Check for GNU ac_path_FGREP and select it if it is found.
3985  # Check for GNU $ac_path_FGREP
3986case `"$ac_path_FGREP" --version 2>&1` in
3987*GNU*)
3988  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3989*)
3990  ac_count=0
3991  $as_echo_n 0123456789 >"conftest.in"
3992  while :
3993  do
3994    cat "conftest.in" "conftest.in" >"conftest.tmp"
3995    mv "conftest.tmp" "conftest.in"
3996    cp "conftest.in" "conftest.nl"
3997    $as_echo 'FGREP' >> "conftest.nl"
3998    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000    as_fn_arith $ac_count + 1 && ac_count=$as_val
4001    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4002      # Best one so far, save it but keep looking for a better one
4003      ac_cv_path_FGREP="$ac_path_FGREP"
4004      ac_path_FGREP_max=$ac_count
4005    fi
4006    # 10*(2^10) chars as input seems more than enough
4007    test $ac_count -gt 10 && break
4008  done
4009  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010esac
4011
4012      $ac_path_FGREP_found && break 3
4013    done
4014  done
4015  done
4016IFS=$as_save_IFS
4017  if test -z "$ac_cv_path_FGREP"; then
4018    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019  fi
4020else
4021  ac_cv_path_FGREP=$FGREP
4022fi
4023
4024   fi
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4027$as_echo "$ac_cv_path_FGREP" >&6; }
4028 FGREP="$ac_cv_path_FGREP"
4029
4030
4031test -z "$GREP" && GREP=grep
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051# Check whether --with-gnu-ld was given.
4052if test "${with_gnu_ld+set}" = set; then :
4053  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4054else
4055  with_gnu_ld=no
4056fi
4057
4058ac_prog=ld
4059if test "$GCC" = yes; then
4060  # Check if gcc -print-prog-name=ld gives a path.
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4062$as_echo_n "checking for ld used by $CC... " >&6; }
4063  case $host in
4064  *-*-mingw*)
4065    # gcc leaves a trailing carriage return which upsets mingw
4066    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4067  *)
4068    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4069  esac
4070  case $ac_prog in
4071    # Accept absolute paths.
4072    [\\/]* | ?:[\\/]*)
4073      re_direlt='/[^/][^/]*/\.\./'
4074      # Canonicalize the pathname of ld
4075      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4076      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4077	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4078      done
4079      test -z "$LD" && LD="$ac_prog"
4080      ;;
4081  "")
4082    # If it fails, then pretend we aren't using GCC.
4083    ac_prog=ld
4084    ;;
4085  *)
4086    # If it is relative, then search for the first ld in PATH.
4087    with_gnu_ld=unknown
4088    ;;
4089  esac
4090elif test "$with_gnu_ld" = yes; then
4091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4092$as_echo_n "checking for GNU ld... " >&6; }
4093else
4094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4095$as_echo_n "checking for non-GNU ld... " >&6; }
4096fi
4097if test "${lt_cv_path_LD+set}" = set; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  if test -z "$LD"; then
4101  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4102  for ac_dir in $PATH; do
4103    IFS="$lt_save_ifs"
4104    test -z "$ac_dir" && ac_dir=.
4105    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4106      lt_cv_path_LD="$ac_dir/$ac_prog"
4107      # Check to see if the program is GNU ld.  I'd rather use --version,
4108      # but apparently some variants of GNU ld only accept -v.
4109      # Break only if it was the GNU/non-GNU ld that we prefer.
4110      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4111      *GNU* | *'with BFD'*)
4112	test "$with_gnu_ld" != no && break
4113	;;
4114      *)
4115	test "$with_gnu_ld" != yes && break
4116	;;
4117      esac
4118    fi
4119  done
4120  IFS="$lt_save_ifs"
4121else
4122  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4123fi
4124fi
4125
4126LD="$lt_cv_path_LD"
4127if test -n "$LD"; then
4128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4129$as_echo "$LD" >&6; }
4130else
4131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
4133fi
4134test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4136$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4137if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4141case `$LD -v 2>&1 </dev/null` in
4142*GNU* | *'with BFD'*)
4143  lt_cv_prog_gnu_ld=yes
4144  ;;
4145*)
4146  lt_cv_prog_gnu_ld=no
4147  ;;
4148esac
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4151$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4152with_gnu_ld=$lt_cv_prog_gnu_ld
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4163$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4164if test "${lt_cv_path_NM+set}" = set; then :
4165  $as_echo_n "(cached) " >&6
4166else
4167  if test -n "$NM"; then
4168  # Let the user override the test.
4169  lt_cv_path_NM="$NM"
4170else
4171  lt_nm_to_check="${ac_tool_prefix}nm"
4172  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4173    lt_nm_to_check="$lt_nm_to_check nm"
4174  fi
4175  for lt_tmp_nm in $lt_nm_to_check; do
4176    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4177    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4178      IFS="$lt_save_ifs"
4179      test -z "$ac_dir" && ac_dir=.
4180      tmp_nm="$ac_dir/$lt_tmp_nm"
4181      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4182	# Check to see if the nm accepts a BSD-compat flag.
4183	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4184	#   nm: unknown option "B" ignored
4185	# Tru64's nm complains that /dev/null is an invalid object file
4186	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4187	*/dev/null* | *'Invalid file or object type'*)
4188	  lt_cv_path_NM="$tmp_nm -B"
4189	  break
4190	  ;;
4191	*)
4192	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4193	  */dev/null*)
4194	    lt_cv_path_NM="$tmp_nm -p"
4195	    break
4196	    ;;
4197	  *)
4198	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4199	    continue # so that we can try to find one that supports BSD flags
4200	    ;;
4201	  esac
4202	  ;;
4203	esac
4204      fi
4205    done
4206    IFS="$lt_save_ifs"
4207  done
4208  : ${lt_cv_path_NM=no}
4209fi
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4212$as_echo "$lt_cv_path_NM" >&6; }
4213if test "$lt_cv_path_NM" != "no"; then
4214  NM="$lt_cv_path_NM"
4215else
4216  # Didn't find any BSD compatible name lister, look for dumpbin.
4217  if test -n "$DUMPBIN"; then :
4218    # Let the user override the test.
4219  else
4220    if test -n "$ac_tool_prefix"; then
4221  for ac_prog in dumpbin "link -dump"
4222  do
4223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
4227if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230  if test -n "$DUMPBIN"; then
4231  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236  IFS=$as_save_IFS
4237  test -z "$as_dir" && as_dir=.
4238    for ac_exec_ext in '' $ac_executable_extensions; do
4239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242    break 2
4243  fi
4244done
4245  done
4246IFS=$as_save_IFS
4247
4248fi
4249fi
4250DUMPBIN=$ac_cv_prog_DUMPBIN
4251if test -n "$DUMPBIN"; then
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4253$as_echo "$DUMPBIN" >&6; }
4254else
4255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
4257fi
4258
4259
4260    test -n "$DUMPBIN" && break
4261  done
4262fi
4263if test -z "$DUMPBIN"; then
4264  ac_ct_DUMPBIN=$DUMPBIN
4265  for ac_prog in dumpbin "link -dump"
4266do
4267  # Extract the first word of "$ac_prog", so it can be a program name with args.
4268set dummy $ac_prog; ac_word=$2
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
4271if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4272  $as_echo_n "(cached) " >&6
4273else
4274  if test -n "$ac_ct_DUMPBIN"; then
4275  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282    for ac_exec_ext in '' $ac_executable_extensions; do
4283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286    break 2
4287  fi
4288done
4289  done
4290IFS=$as_save_IFS
4291
4292fi
4293fi
4294ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4295if test -n "$ac_ct_DUMPBIN"; then
4296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4297$as_echo "$ac_ct_DUMPBIN" >&6; }
4298else
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
4301fi
4302
4303
4304  test -n "$ac_ct_DUMPBIN" && break
4305done
4306
4307  if test "x$ac_ct_DUMPBIN" = x; then
4308    DUMPBIN=":"
4309  else
4310    case $cross_compiling:$ac_tool_warned in
4311yes:)
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314ac_tool_warned=yes ;;
4315esac
4316    DUMPBIN=$ac_ct_DUMPBIN
4317  fi
4318fi
4319
4320    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4321    *COFF*)
4322      DUMPBIN="$DUMPBIN -symbols"
4323      ;;
4324    *)
4325      DUMPBIN=:
4326      ;;
4327    esac
4328  fi
4329
4330  if test "$DUMPBIN" != ":"; then
4331    NM="$DUMPBIN"
4332  fi
4333fi
4334test -z "$NM" && NM=nm
4335
4336
4337
4338
4339
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4342$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4343if test "${lt_cv_nm_interface+set}" = set; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  lt_cv_nm_interface="BSD nm"
4347  echo "int some_variable = 0;" > conftest.$ac_ext
4348  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4349  (eval "$ac_compile" 2>conftest.err)
4350  cat conftest.err >&5
4351  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4352  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4353  cat conftest.err >&5
4354  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4355  cat conftest.out >&5
4356  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4357    lt_cv_nm_interface="MS dumpbin"
4358  fi
4359  rm -f conftest*
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4362$as_echo "$lt_cv_nm_interface" >&6; }
4363
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4365$as_echo_n "checking whether ln -s works... " >&6; }
4366LN_S=$as_ln_s
4367if test "$LN_S" = "ln -s"; then
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369$as_echo "yes" >&6; }
4370else
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4372$as_echo "no, using $LN_S" >&6; }
4373fi
4374
4375# find the maximum length of command line arguments
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4377$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4378if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4379  $as_echo_n "(cached) " >&6
4380else
4381    i=0
4382  teststring="ABCD"
4383
4384  case $build_os in
4385  msdosdjgpp*)
4386    # On DJGPP, this test can blow up pretty badly due to problems in libc
4387    # (any single argument exceeding 2000 bytes causes a buffer overrun
4388    # during glob expansion).  Even if it were fixed, the result of this
4389    # check would be larger than it should be.
4390    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4391    ;;
4392
4393  gnu*)
4394    # Under GNU Hurd, this test is not required because there is
4395    # no limit to the length of command line arguments.
4396    # Libtool will interpret -1 as no limit whatsoever
4397    lt_cv_sys_max_cmd_len=-1;
4398    ;;
4399
4400  cygwin* | mingw* | cegcc*)
4401    # On Win9x/ME, this test blows up -- it succeeds, but takes
4402    # about 5 minutes as the teststring grows exponentially.
4403    # Worse, since 9x/ME are not pre-emptively multitasking,
4404    # you end up with a "frozen" computer, even though with patience
4405    # the test eventually succeeds (with a max line length of 256k).
4406    # Instead, let's just punt: use the minimum linelength reported by
4407    # all of the supported platforms: 8192 (on NT/2K/XP).
4408    lt_cv_sys_max_cmd_len=8192;
4409    ;;
4410
4411  mint*)
4412    # On MiNT this can take a long time and run out of memory.
4413    lt_cv_sys_max_cmd_len=8192;
4414    ;;
4415
4416  amigaos*)
4417    # On AmigaOS with pdksh, this test takes hours, literally.
4418    # So we just punt and use a minimum line length of 8192.
4419    lt_cv_sys_max_cmd_len=8192;
4420    ;;
4421
4422  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4423    # This has been around since 386BSD, at least.  Likely further.
4424    if test -x /sbin/sysctl; then
4425      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4426    elif test -x /usr/sbin/sysctl; then
4427      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4428    else
4429      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4430    fi
4431    # And add a safety zone
4432    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4433    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4434    ;;
4435
4436  interix*)
4437    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4438    lt_cv_sys_max_cmd_len=196608
4439    ;;
4440
4441  osf*)
4442    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4443    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4444    # nice to cause kernel panics so lets avoid the loop below.
4445    # First set a reasonable default.
4446    lt_cv_sys_max_cmd_len=16384
4447    #
4448    if test -x /sbin/sysconfig; then
4449      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4450        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4451      esac
4452    fi
4453    ;;
4454  sco3.2v5*)
4455    lt_cv_sys_max_cmd_len=102400
4456    ;;
4457  sysv5* | sco5v6* | sysv4.2uw2*)
4458    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4459    if test -n "$kargmax"; then
4460      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4461    else
4462      lt_cv_sys_max_cmd_len=32768
4463    fi
4464    ;;
4465  *)
4466    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4467    if test -n "$lt_cv_sys_max_cmd_len"; then
4468      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4469      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4470    else
4471      # Make teststring a little bigger before we do anything with it.
4472      # a 1K string should be a reasonable start.
4473      for i in 1 2 3 4 5 6 7 8 ; do
4474        teststring=$teststring$teststring
4475      done
4476      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4477      # If test is not a shell built-in, we'll probably end up computing a
4478      # maximum length that is only half of the actual maximum length, but
4479      # we can't tell.
4480      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4481	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4482	      test $i != 17 # 1/2 MB should be enough
4483      do
4484        i=`expr $i + 1`
4485        teststring=$teststring$teststring
4486      done
4487      # Only check the string length outside the loop.
4488      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4489      teststring=
4490      # Add a significant safety factor because C++ compilers can tack on
4491      # massive amounts of additional arguments before passing them to the
4492      # linker.  It appears as though 1/2 is a usable value.
4493      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4494    fi
4495    ;;
4496  esac
4497
4498fi
4499
4500if test -n $lt_cv_sys_max_cmd_len ; then
4501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4502$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4503else
4504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4505$as_echo "none" >&6; }
4506fi
4507max_cmd_len=$lt_cv_sys_max_cmd_len
4508
4509
4510
4511
4512
4513
4514: ${CP="cp -f"}
4515: ${MV="mv -f"}
4516: ${RM="rm -f"}
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4519$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4520# Try some XSI features
4521xsi_shell=no
4522( _lt_dummy="a/b/c"
4523  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4524      = c,a/b,, \
4525    && eval 'test $(( 1 + 1 )) -eq 2 \
4526    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4527  && xsi_shell=yes
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4529$as_echo "$xsi_shell" >&6; }
4530
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4533$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4534lt_shell_append=no
4535( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4536    >/dev/null 2>&1 \
4537  && lt_shell_append=yes
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4539$as_echo "$lt_shell_append" >&6; }
4540
4541
4542if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4543  lt_unset=unset
4544else
4545  lt_unset=false
4546fi
4547
4548
4549
4550
4551
4552# test EBCDIC or ASCII
4553case `echo X|tr X '\101'` in
4554 A) # ASCII based system
4555    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4556  lt_SP2NL='tr \040 \012'
4557  lt_NL2SP='tr \015\012 \040\040'
4558  ;;
4559 *) # EBCDIC based system
4560  lt_SP2NL='tr \100 \n'
4561  lt_NL2SP='tr \r\n \100\100'
4562  ;;
4563esac
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4574$as_echo_n "checking for $LD option to reload object files... " >&6; }
4575if test "${lt_cv_ld_reload_flag+set}" = set; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578  lt_cv_ld_reload_flag='-r'
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4581$as_echo "$lt_cv_ld_reload_flag" >&6; }
4582reload_flag=$lt_cv_ld_reload_flag
4583case $reload_flag in
4584"" | " "*) ;;
4585*) reload_flag=" $reload_flag" ;;
4586esac
4587reload_cmds='$LD$reload_flag -o $output$reload_objs'
4588case $host_os in
4589  darwin*)
4590    if test "$GCC" = yes; then
4591      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4592    else
4593      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4594    fi
4595    ;;
4596esac
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606if test -n "$ac_tool_prefix"; then
4607  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4608set dummy ${ac_tool_prefix}objdump; ac_word=$2
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
4611if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  if test -n "$OBJDUMP"; then
4615  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620  IFS=$as_save_IFS
4621  test -z "$as_dir" && as_dir=.
4622    for ac_exec_ext in '' $ac_executable_extensions; do
4623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626    break 2
4627  fi
4628done
4629  done
4630IFS=$as_save_IFS
4631
4632fi
4633fi
4634OBJDUMP=$ac_cv_prog_OBJDUMP
4635if test -n "$OBJDUMP"; then
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4637$as_echo "$OBJDUMP" >&6; }
4638else
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644fi
4645if test -z "$ac_cv_prog_OBJDUMP"; then
4646  ac_ct_OBJDUMP=$OBJDUMP
4647  # Extract the first word of "objdump", so it can be a program name with args.
4648set dummy objdump; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -n "$ac_ct_OBJDUMP"; then
4655  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669  done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4675if test -n "$ac_ct_OBJDUMP"; then
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4677$as_echo "$ac_ct_OBJDUMP" >&6; }
4678else
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683  if test "x$ac_ct_OBJDUMP" = x; then
4684    OBJDUMP="false"
4685  else
4686    case $cross_compiling:$ac_tool_warned in
4687yes:)
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690ac_tool_warned=yes ;;
4691esac
4692    OBJDUMP=$ac_ct_OBJDUMP
4693  fi
4694else
4695  OBJDUMP="$ac_cv_prog_OBJDUMP"
4696fi
4697
4698test -z "$OBJDUMP" && OBJDUMP=objdump
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4709$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4710if test "${lt_cv_deplibs_check_method+set}" = set; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  lt_cv_file_magic_cmd='$MAGIC_CMD'
4714lt_cv_file_magic_test_file=
4715lt_cv_deplibs_check_method='unknown'
4716# Need to set the preceding variable on all platforms that support
4717# interlibrary dependencies.
4718# 'none' -- dependencies not supported.
4719# `unknown' -- same as none, but documents that we really don't know.
4720# 'pass_all' -- all dependencies passed with no checks.
4721# 'test_compile' -- check by making test program.
4722# 'file_magic [[regex]]' -- check by looking for files in library path
4723# which responds to the $file_magic_cmd with a given extended regex.
4724# If you have `file' or equivalent on your system and you're not sure
4725# whether `pass_all' will *always* work, you probably want this one.
4726
4727case $host_os in
4728aix[4-9]*)
4729  lt_cv_deplibs_check_method=pass_all
4730  ;;
4731
4732beos*)
4733  lt_cv_deplibs_check_method=pass_all
4734  ;;
4735
4736bsdi[45]*)
4737  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4738  lt_cv_file_magic_cmd='/usr/bin/file -L'
4739  lt_cv_file_magic_test_file=/shlib/libc.so
4740  ;;
4741
4742cygwin*)
4743  # func_win32_libid is a shell function defined in ltmain.sh
4744  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4745  lt_cv_file_magic_cmd='func_win32_libid'
4746  ;;
4747
4748mingw* | pw32*)
4749  # Base MSYS/MinGW do not provide the 'file' command needed by
4750  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4751  # unless we find 'file', for example because we are cross-compiling.
4752  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4753  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4754    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4755    lt_cv_file_magic_cmd='func_win32_libid'
4756  else
4757    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4758    lt_cv_file_magic_cmd='$OBJDUMP -f'
4759  fi
4760  ;;
4761
4762cegcc*)
4763  # use the weaker test based on 'objdump'. See mingw*.
4764  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4765  lt_cv_file_magic_cmd='$OBJDUMP -f'
4766  ;;
4767
4768darwin* | rhapsody*)
4769  lt_cv_deplibs_check_method=pass_all
4770  ;;
4771
4772freebsd* | dragonfly*)
4773  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4774    case $host_cpu in
4775    i*86 )
4776      # Not sure whether the presence of OpenBSD here was a mistake.
4777      # Let's accept both of them until this is cleared up.
4778      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4779      lt_cv_file_magic_cmd=/usr/bin/file
4780      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4781      ;;
4782    esac
4783  else
4784    lt_cv_deplibs_check_method=pass_all
4785  fi
4786  ;;
4787
4788gnu*)
4789  lt_cv_deplibs_check_method=pass_all
4790  ;;
4791
4792haiku*)
4793  lt_cv_deplibs_check_method=pass_all
4794  ;;
4795
4796hpux10.20* | hpux11*)
4797  lt_cv_file_magic_cmd=/usr/bin/file
4798  case $host_cpu in
4799  ia64*)
4800    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4801    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4802    ;;
4803  hppa*64*)
4804    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]'
4805    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4806    ;;
4807  *)
4808    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4809    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4810    ;;
4811  esac
4812  ;;
4813
4814interix[3-9]*)
4815  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4816  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4817  ;;
4818
4819irix5* | irix6* | nonstopux*)
4820  case $LD in
4821  *-32|*"-32 ") libmagic=32-bit;;
4822  *-n32|*"-n32 ") libmagic=N32;;
4823  *-64|*"-64 ") libmagic=64-bit;;
4824  *) libmagic=never-match;;
4825  esac
4826  lt_cv_deplibs_check_method=pass_all
4827  ;;
4828
4829# This must be Linux ELF.
4830linux* | k*bsd*-gnu | kopensolaris*-gnu)
4831  lt_cv_deplibs_check_method=pass_all
4832  ;;
4833
4834netbsd*)
4835  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4836    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4837  else
4838    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4839  fi
4840  ;;
4841
4842newos6*)
4843  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4844  lt_cv_file_magic_cmd=/usr/bin/file
4845  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4846  ;;
4847
4848*nto* | *qnx*)
4849  lt_cv_deplibs_check_method=pass_all
4850  ;;
4851
4852openbsd*)
4853  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4854    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4855  else
4856    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4857  fi
4858  ;;
4859
4860osf3* | osf4* | osf5*)
4861  lt_cv_deplibs_check_method=pass_all
4862  ;;
4863
4864rdos*)
4865  lt_cv_deplibs_check_method=pass_all
4866  ;;
4867
4868solaris*)
4869  lt_cv_deplibs_check_method=pass_all
4870  ;;
4871
4872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4873  lt_cv_deplibs_check_method=pass_all
4874  ;;
4875
4876sysv4 | sysv4.3*)
4877  case $host_vendor in
4878  motorola)
4879    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]'
4880    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4881    ;;
4882  ncr)
4883    lt_cv_deplibs_check_method=pass_all
4884    ;;
4885  sequent)
4886    lt_cv_file_magic_cmd='/bin/file'
4887    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4888    ;;
4889  sni)
4890    lt_cv_file_magic_cmd='/bin/file'
4891    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4892    lt_cv_file_magic_test_file=/lib/libc.so
4893    ;;
4894  siemens)
4895    lt_cv_deplibs_check_method=pass_all
4896    ;;
4897  pc)
4898    lt_cv_deplibs_check_method=pass_all
4899    ;;
4900  esac
4901  ;;
4902
4903tpf*)
4904  lt_cv_deplibs_check_method=pass_all
4905  ;;
4906esac
4907
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4910$as_echo "$lt_cv_deplibs_check_method" >&6; }
4911file_magic_cmd=$lt_cv_file_magic_cmd
4912deplibs_check_method=$lt_cv_deplibs_check_method
4913test -z "$deplibs_check_method" && deplibs_check_method=unknown
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926if test -n "$ac_tool_prefix"; then
4927  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4928set dummy ${ac_tool_prefix}ar; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if test "${ac_cv_prog_AR+set}" = set; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  if test -n "$AR"; then
4935  ac_cv_prog_AR="$AR" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942    for ac_exec_ext in '' $ac_executable_extensions; do
4943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944    ac_cv_prog_AR="${ac_tool_prefix}ar"
4945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946    break 2
4947  fi
4948done
4949  done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954AR=$ac_cv_prog_AR
4955if test -n "$AR"; then
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4957$as_echo "$AR" >&6; }
4958else
4959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963
4964fi
4965if test -z "$ac_cv_prog_AR"; then
4966  ac_ct_AR=$AR
4967  # Extract the first word of "ar", so it can be a program name with args.
4968set dummy ar; ac_word=$2
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970$as_echo_n "checking for $ac_word... " >&6; }
4971if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  if test -n "$ac_ct_AR"; then
4975  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982    for ac_exec_ext in '' $ac_executable_extensions; do
4983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984    ac_cv_prog_ac_ct_AR="ar"
4985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989  done
4990IFS=$as_save_IFS
4991
4992fi
4993fi
4994ac_ct_AR=$ac_cv_prog_ac_ct_AR
4995if test -n "$ac_ct_AR"; then
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4997$as_echo "$ac_ct_AR" >&6; }
4998else
4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001fi
5002
5003  if test "x$ac_ct_AR" = x; then
5004    AR="false"
5005  else
5006    case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010ac_tool_warned=yes ;;
5011esac
5012    AR=$ac_ct_AR
5013  fi
5014else
5015  AR="$ac_cv_prog_AR"
5016fi
5017
5018test -z "$AR" && AR=ar
5019test -z "$AR_FLAGS" && AR_FLAGS=cru
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031if test -n "$ac_tool_prefix"; then
5032  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5033set dummy ${ac_tool_prefix}strip; ac_word=$2
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035$as_echo_n "checking for $ac_word... " >&6; }
5036if test "${ac_cv_prog_STRIP+set}" = set; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  if test -n "$STRIP"; then
5040  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5041else
5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045  IFS=$as_save_IFS
5046  test -z "$as_dir" && as_dir=.
5047    for ac_exec_ext in '' $ac_executable_extensions; do
5048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051    break 2
5052  fi
5053done
5054  done
5055IFS=$as_save_IFS
5056
5057fi
5058fi
5059STRIP=$ac_cv_prog_STRIP
5060if test -n "$STRIP"; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5062$as_echo "$STRIP" >&6; }
5063else
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065$as_echo "no" >&6; }
5066fi
5067
5068
5069fi
5070if test -z "$ac_cv_prog_STRIP"; then
5071  ac_ct_STRIP=$STRIP
5072  # Extract the first word of "strip", so it can be a program name with args.
5073set dummy strip; ac_word=$2
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075$as_echo_n "checking for $ac_word... " >&6; }
5076if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  if test -n "$ac_ct_STRIP"; then
5080  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  test -z "$as_dir" && as_dir=.
5087    for ac_exec_ext in '' $ac_executable_extensions; do
5088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089    ac_cv_prog_ac_ct_STRIP="strip"
5090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094  done
5095IFS=$as_save_IFS
5096
5097fi
5098fi
5099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5100if test -n "$ac_ct_STRIP"; then
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5102$as_echo "$ac_ct_STRIP" >&6; }
5103else
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105$as_echo "no" >&6; }
5106fi
5107
5108  if test "x$ac_ct_STRIP" = x; then
5109    STRIP=":"
5110  else
5111    case $cross_compiling:$ac_tool_warned in
5112yes:)
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115ac_tool_warned=yes ;;
5116esac
5117    STRIP=$ac_ct_STRIP
5118  fi
5119else
5120  STRIP="$ac_cv_prog_STRIP"
5121fi
5122
5123test -z "$STRIP" && STRIP=:
5124
5125
5126
5127
5128
5129
5130if test -n "$ac_tool_prefix"; then
5131  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
5135if test "${ac_cv_prog_RANLIB+set}" = set; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  if test -n "$RANLIB"; then
5139  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146    for ac_exec_ext in '' $ac_executable_extensions; do
5147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153  done
5154IFS=$as_save_IFS
5155
5156fi
5157fi
5158RANLIB=$ac_cv_prog_RANLIB
5159if test -n "$RANLIB"; then
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5161$as_echo "$RANLIB" >&6; }
5162else
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164$as_echo "no" >&6; }
5165fi
5166
5167
5168fi
5169if test -z "$ac_cv_prog_RANLIB"; then
5170  ac_ct_RANLIB=$RANLIB
5171  # Extract the first word of "ranlib", so it can be a program name with args.
5172set dummy ranlib; ac_word=$2
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  if test -n "$ac_ct_RANLIB"; then
5179  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186    for ac_exec_ext in '' $ac_executable_extensions; do
5187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188    ac_cv_prog_ac_ct_RANLIB="ranlib"
5189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193  done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5199if test -n "$ac_ct_RANLIB"; then
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5201$as_echo "$ac_ct_RANLIB" >&6; }
5202else
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205fi
5206
5207  if test "x$ac_ct_RANLIB" = x; then
5208    RANLIB=":"
5209  else
5210    case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214ac_tool_warned=yes ;;
5215esac
5216    RANLIB=$ac_ct_RANLIB
5217  fi
5218else
5219  RANLIB="$ac_cv_prog_RANLIB"
5220fi
5221
5222test -z "$RANLIB" && RANLIB=:
5223
5224
5225
5226
5227
5228
5229# Determine commands to create old-style static archives.
5230old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5231old_postinstall_cmds='chmod 644 $oldlib'
5232old_postuninstall_cmds=
5233
5234if test -n "$RANLIB"; then
5235  case $host_os in
5236  openbsd*)
5237    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5238    ;;
5239  *)
5240    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5241    ;;
5242  esac
5243  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5244fi
5245
5246case $host_os in
5247  darwin*)
5248    lock_old_archive_extraction=yes ;;
5249  *)
5250    lock_old_archive_extraction=no ;;
5251esac
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273for ac_prog in gawk mawk nawk awk
5274do
5275  # Extract the first word of "$ac_prog", so it can be a program name with args.
5276set dummy $ac_prog; ac_word=$2
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278$as_echo_n "checking for $ac_word... " >&6; }
5279if test "${ac_cv_prog_AWK+set}" = set; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  if test -n "$AWK"; then
5283  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5284else
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288  IFS=$as_save_IFS
5289  test -z "$as_dir" && as_dir=.
5290    for ac_exec_ext in '' $ac_executable_extensions; do
5291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292    ac_cv_prog_AWK="$ac_prog"
5293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294    break 2
5295  fi
5296done
5297  done
5298IFS=$as_save_IFS
5299
5300fi
5301fi
5302AWK=$ac_cv_prog_AWK
5303if test -n "$AWK"; then
5304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5305$as_echo "$AWK" >&6; }
5306else
5307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308$as_echo "no" >&6; }
5309fi
5310
5311
5312  test -n "$AWK" && break
5313done
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333# If no C compiler was specified, use CC.
5334LTCC=${LTCC-"$CC"}
5335
5336# If no C compiler flags were specified, use CFLAGS.
5337LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5338
5339# Allow CC to be a program name with arguments.
5340compiler=$CC
5341
5342
5343# Check for command to grab the raw symbol name followed by C symbol from nm.
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5345$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5346if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349
5350# These are sane defaults that work on at least a few old systems.
5351# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5352
5353# Character class describing NM global symbol codes.
5354symcode='[BCDEGRST]'
5355
5356# Regexp to match symbols that can be accessed directly from C.
5357sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5358
5359# Define system-specific variables.
5360case $host_os in
5361aix*)
5362  symcode='[BCDT]'
5363  ;;
5364cygwin* | mingw* | pw32* | cegcc*)
5365  symcode='[ABCDGISTW]'
5366  ;;
5367hpux*)
5368  if test "$host_cpu" = ia64; then
5369    symcode='[ABCDEGRST]'
5370  fi
5371  ;;
5372irix* | nonstopux*)
5373  symcode='[BCDEGRST]'
5374  ;;
5375osf*)
5376  symcode='[BCDEGQRST]'
5377  ;;
5378solaris*)
5379  symcode='[BDRT]'
5380  ;;
5381sco3.2v5*)
5382  symcode='[DT]'
5383  ;;
5384sysv4.2uw2*)
5385  symcode='[DT]'
5386  ;;
5387sysv5* | sco5v6* | unixware* | OpenUNIX*)
5388  symcode='[ABDT]'
5389  ;;
5390sysv4)
5391  symcode='[DFNSTU]'
5392  ;;
5393esac
5394
5395# If we're using GNU nm, then use its standard symbol codes.
5396case `$NM -V 2>&1` in
5397*GNU* | *'with BFD'*)
5398  symcode='[ABCDGIRSTW]' ;;
5399esac
5400
5401# Transform an extracted symbol line into a proper C declaration.
5402# Some systems (esp. on ia64) link data and code symbols differently,
5403# so use this general approach.
5404lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5405
5406# Transform an extracted symbol line into symbol name and symbol address
5407lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5408lt_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'"
5409
5410# Handle CRLF in mingw tool chain
5411opt_cr=
5412case $build_os in
5413mingw*)
5414  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5415  ;;
5416esac
5417
5418# Try without a prefix underscore, then with it.
5419for ac_symprfx in "" "_"; do
5420
5421  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5422  symxfrm="\\1 $ac_symprfx\\2 \\2"
5423
5424  # Write the raw and C identifiers.
5425  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5426    # Fake it for dumpbin and say T for any non-static function
5427    # and D for any global variable.
5428    # Also find C++ and __fastcall symbols from MSVC++,
5429    # which start with @ or ?.
5430    lt_cv_sys_global_symbol_pipe="$AWK '"\
5431"     {last_section=section; section=\$ 3};"\
5432"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5433"     \$ 0!~/External *\|/{next};"\
5434"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5435"     {if(hide[section]) next};"\
5436"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5437"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5438"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5439"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5440"     ' prfx=^$ac_symprfx"
5441  else
5442    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5443  fi
5444
5445  # Check to see that the pipe works correctly.
5446  pipe_works=no
5447
5448  rm -f conftest*
5449  cat > conftest.$ac_ext <<_LT_EOF
5450#ifdef __cplusplus
5451extern "C" {
5452#endif
5453char nm_test_var;
5454void nm_test_func(void);
5455void nm_test_func(void){}
5456#ifdef __cplusplus
5457}
5458#endif
5459int main(){nm_test_var='a';nm_test_func();return(0);}
5460_LT_EOF
5461
5462  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5463  (eval $ac_compile) 2>&5
5464  ac_status=$?
5465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466  test $ac_status = 0; }; then
5467    # Now try to grab the symbols.
5468    nlist=conftest.nm
5469    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5470  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5471  ac_status=$?
5472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473  test $ac_status = 0; } && test -s "$nlist"; then
5474      # Try sorting and uniquifying the output.
5475      if sort "$nlist" | uniq > "$nlist"T; then
5476	mv -f "$nlist"T "$nlist"
5477      else
5478	rm -f "$nlist"T
5479      fi
5480
5481      # Make sure that we snagged all the symbols we need.
5482      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5483	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5484	  cat <<_LT_EOF > conftest.$ac_ext
5485#ifdef __cplusplus
5486extern "C" {
5487#endif
5488
5489_LT_EOF
5490	  # Now generate the symbol file.
5491	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5492
5493	  cat <<_LT_EOF >> conftest.$ac_ext
5494
5495/* The mapping between symbol names and symbols.  */
5496const struct {
5497  const char *name;
5498  void       *address;
5499}
5500lt__PROGRAM__LTX_preloaded_symbols[] =
5501{
5502  { "@PROGRAM@", (void *) 0 },
5503_LT_EOF
5504	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5505	  cat <<\_LT_EOF >> conftest.$ac_ext
5506  {0, (void *) 0}
5507};
5508
5509/* This works around a problem in FreeBSD linker */
5510#ifdef FREEBSD_WORKAROUND
5511static const void *lt_preloaded_setup() {
5512  return lt__PROGRAM__LTX_preloaded_symbols;
5513}
5514#endif
5515
5516#ifdef __cplusplus
5517}
5518#endif
5519_LT_EOF
5520	  # Now try linking the two files.
5521	  mv conftest.$ac_objext conftstm.$ac_objext
5522	  lt_save_LIBS="$LIBS"
5523	  lt_save_CFLAGS="$CFLAGS"
5524	  LIBS="conftstm.$ac_objext"
5525	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5526	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5527  (eval $ac_link) 2>&5
5528  ac_status=$?
5529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5530  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5531	    pipe_works=yes
5532	  fi
5533	  LIBS="$lt_save_LIBS"
5534	  CFLAGS="$lt_save_CFLAGS"
5535	else
5536	  echo "cannot find nm_test_func in $nlist" >&5
5537	fi
5538      else
5539	echo "cannot find nm_test_var in $nlist" >&5
5540      fi
5541    else
5542      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5543    fi
5544  else
5545    echo "$progname: failed program was:" >&5
5546    cat conftest.$ac_ext >&5
5547  fi
5548  rm -rf conftest* conftst*
5549
5550  # Do not use the global_symbol_pipe unless it works.
5551  if test "$pipe_works" = yes; then
5552    break
5553  else
5554    lt_cv_sys_global_symbol_pipe=
5555  fi
5556done
5557
5558fi
5559
5560if test -z "$lt_cv_sys_global_symbol_pipe"; then
5561  lt_cv_sys_global_symbol_to_cdecl=
5562fi
5563if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5565$as_echo "failed" >&6; }
5566else
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5568$as_echo "ok" >&6; }
5569fi
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592# Check whether --enable-libtool-lock was given.
5593if test "${enable_libtool_lock+set}" = set; then :
5594  enableval=$enable_libtool_lock;
5595fi
5596
5597test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5598
5599# Some flags need to be propagated to the compiler or linker for good
5600# libtool support.
5601case $host in
5602ia64-*-hpux*)
5603  # Find out which ABI we are using.
5604  echo 'int i;' > conftest.$ac_ext
5605  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5606  (eval $ac_compile) 2>&5
5607  ac_status=$?
5608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5609  test $ac_status = 0; }; then
5610    case `/usr/bin/file conftest.$ac_objext` in
5611      *ELF-32*)
5612	HPUX_IA64_MODE="32"
5613	;;
5614      *ELF-64*)
5615	HPUX_IA64_MODE="64"
5616	;;
5617    esac
5618  fi
5619  rm -rf conftest*
5620  ;;
5621*-*-irix6*)
5622  # Find out which ABI we are using.
5623  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5624  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5625  (eval $ac_compile) 2>&5
5626  ac_status=$?
5627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628  test $ac_status = 0; }; then
5629    if test "$lt_cv_prog_gnu_ld" = yes; then
5630      case `/usr/bin/file conftest.$ac_objext` in
5631	*32-bit*)
5632	  LD="${LD-ld} -melf32bsmip"
5633	  ;;
5634	*N32*)
5635	  LD="${LD-ld} -melf32bmipn32"
5636	  ;;
5637	*64-bit*)
5638	  LD="${LD-ld} -melf64bmip"
5639	;;
5640      esac
5641    else
5642      case `/usr/bin/file conftest.$ac_objext` in
5643	*32-bit*)
5644	  LD="${LD-ld} -32"
5645	  ;;
5646	*N32*)
5647	  LD="${LD-ld} -n32"
5648	  ;;
5649	*64-bit*)
5650	  LD="${LD-ld} -64"
5651	  ;;
5652      esac
5653    fi
5654  fi
5655  rm -rf conftest*
5656  ;;
5657
5658x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5659s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5660  # Find out which ABI we are using.
5661  echo 'int i;' > conftest.$ac_ext
5662  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5663  (eval $ac_compile) 2>&5
5664  ac_status=$?
5665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666  test $ac_status = 0; }; then
5667    case `/usr/bin/file conftest.o` in
5668      *32-bit*)
5669	case $host in
5670	  x86_64-*kfreebsd*-gnu)
5671	    LD="${LD-ld} -m elf_i386_fbsd"
5672	    ;;
5673	  x86_64-*linux*)
5674	    case `/usr/bin/file conftest.o` in
5675	      *x86-64*)
5676		LD="${LD-ld} -m elf32_x86_64"
5677		;;
5678	      *)
5679		LD="${LD-ld} -m elf_i386"
5680		;;
5681	    esac
5682	    ;;
5683	  ppc64-*linux*|powerpc64-*linux*)
5684	    LD="${LD-ld} -m elf32ppclinux"
5685	    ;;
5686	  s390x-*linux*)
5687	    LD="${LD-ld} -m elf_s390"
5688	    ;;
5689	  sparc64-*linux*)
5690	    LD="${LD-ld} -m elf32_sparc"
5691	    ;;
5692	esac
5693	;;
5694      *64-bit*)
5695	case $host in
5696	  x86_64-*kfreebsd*-gnu)
5697	    LD="${LD-ld} -m elf_x86_64_fbsd"
5698	    ;;
5699	  x86_64-*linux*)
5700	    LD="${LD-ld} -m elf_x86_64"
5701	    ;;
5702	  ppc*-*linux*|powerpc*-*linux*)
5703	    LD="${LD-ld} -m elf64ppc"
5704	    ;;
5705	  s390*-*linux*|s390*-*tpf*)
5706	    LD="${LD-ld} -m elf64_s390"
5707	    ;;
5708	  sparc*-*linux*)
5709	    LD="${LD-ld} -m elf64_sparc"
5710	    ;;
5711	esac
5712	;;
5713    esac
5714  fi
5715  rm -rf conftest*
5716  ;;
5717
5718*-*-sco3.2v5*)
5719  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5720  SAVE_CFLAGS="$CFLAGS"
5721  CFLAGS="$CFLAGS -belf"
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5723$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5724if test "${lt_cv_cc_needs_belf+set}" = set; then :
5725  $as_echo_n "(cached) " >&6
5726else
5727  ac_ext=c
5728ac_cpp='$CPP $CPPFLAGS'
5729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h.  */
5735
5736int
5737main ()
5738{
5739
5740  ;
5741  return 0;
5742}
5743_ACEOF
5744if ac_fn_c_try_link "$LINENO"; then :
5745  lt_cv_cc_needs_belf=yes
5746else
5747  lt_cv_cc_needs_belf=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext \
5750    conftest$ac_exeext conftest.$ac_ext
5751     ac_ext=c
5752ac_cpp='$CPP $CPPFLAGS'
5753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755ac_compiler_gnu=$ac_cv_c_compiler_gnu
5756
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5759$as_echo "$lt_cv_cc_needs_belf" >&6; }
5760  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5761    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5762    CFLAGS="$SAVE_CFLAGS"
5763  fi
5764  ;;
5765sparc*-*solaris*)
5766  # Find out which ABI we are using.
5767  echo 'int i;' > conftest.$ac_ext
5768  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5769  (eval $ac_compile) 2>&5
5770  ac_status=$?
5771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772  test $ac_status = 0; }; then
5773    case `/usr/bin/file conftest.o` in
5774    *64-bit*)
5775      case $lt_cv_prog_gnu_ld in
5776      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5777      *)
5778	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5779	  LD="${LD-ld} -64"
5780	fi
5781	;;
5782      esac
5783      ;;
5784    esac
5785  fi
5786  rm -rf conftest*
5787  ;;
5788esac
5789
5790need_locks="$enable_libtool_lock"
5791
5792
5793  case $host_os in
5794    rhapsody* | darwin*)
5795    if test -n "$ac_tool_prefix"; then
5796  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5797set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  if test -n "$DSYMUTIL"; then
5804  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818  done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823DSYMUTIL=$ac_cv_prog_DSYMUTIL
5824if test -n "$DSYMUTIL"; then
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5826$as_echo "$DSYMUTIL" >&6; }
5827else
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832
5833fi
5834if test -z "$ac_cv_prog_DSYMUTIL"; then
5835  ac_ct_DSYMUTIL=$DSYMUTIL
5836  # Extract the first word of "dsymutil", so it can be a program name with args.
5837set dummy dsymutil; ac_word=$2
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839$as_echo_n "checking for $ac_word... " >&6; }
5840if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5841  $as_echo_n "(cached) " >&6
5842else
5843  if test -n "$ac_ct_DSYMUTIL"; then
5844  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849  IFS=$as_save_IFS
5850  test -z "$as_dir" && as_dir=.
5851    for ac_exec_ext in '' $ac_executable_extensions; do
5852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855    break 2
5856  fi
5857done
5858  done
5859IFS=$as_save_IFS
5860
5861fi
5862fi
5863ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5864if test -n "$ac_ct_DSYMUTIL"; then
5865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5866$as_echo "$ac_ct_DSYMUTIL" >&6; }
5867else
5868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869$as_echo "no" >&6; }
5870fi
5871
5872  if test "x$ac_ct_DSYMUTIL" = x; then
5873    DSYMUTIL=":"
5874  else
5875    case $cross_compiling:$ac_tool_warned in
5876yes:)
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879ac_tool_warned=yes ;;
5880esac
5881    DSYMUTIL=$ac_ct_DSYMUTIL
5882  fi
5883else
5884  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5885fi
5886
5887    if test -n "$ac_tool_prefix"; then
5888  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5889set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891$as_echo_n "checking for $ac_word... " >&6; }
5892if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5893  $as_echo_n "(cached) " >&6
5894else
5895  if test -n "$NMEDIT"; then
5896  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901  IFS=$as_save_IFS
5902  test -z "$as_dir" && as_dir=.
5903    for ac_exec_ext in '' $ac_executable_extensions; do
5904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907    break 2
5908  fi
5909done
5910  done
5911IFS=$as_save_IFS
5912
5913fi
5914fi
5915NMEDIT=$ac_cv_prog_NMEDIT
5916if test -n "$NMEDIT"; then
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5918$as_echo "$NMEDIT" >&6; }
5919else
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921$as_echo "no" >&6; }
5922fi
5923
5924
5925fi
5926if test -z "$ac_cv_prog_NMEDIT"; then
5927  ac_ct_NMEDIT=$NMEDIT
5928  # Extract the first word of "nmedit", so it can be a program name with args.
5929set dummy nmedit; ac_word=$2
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931$as_echo_n "checking for $ac_word... " >&6; }
5932if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  if test -n "$ac_ct_NMEDIT"; then
5936  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5937else
5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941  IFS=$as_save_IFS
5942  test -z "$as_dir" && as_dir=.
5943    for ac_exec_ext in '' $ac_executable_extensions; do
5944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947    break 2
5948  fi
5949done
5950  done
5951IFS=$as_save_IFS
5952
5953fi
5954fi
5955ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5956if test -n "$ac_ct_NMEDIT"; then
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5958$as_echo "$ac_ct_NMEDIT" >&6; }
5959else
5960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
5962fi
5963
5964  if test "x$ac_ct_NMEDIT" = x; then
5965    NMEDIT=":"
5966  else
5967    case $cross_compiling:$ac_tool_warned in
5968yes:)
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5971ac_tool_warned=yes ;;
5972esac
5973    NMEDIT=$ac_ct_NMEDIT
5974  fi
5975else
5976  NMEDIT="$ac_cv_prog_NMEDIT"
5977fi
5978
5979    if test -n "$ac_tool_prefix"; then
5980  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5981set dummy ${ac_tool_prefix}lipo; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if test "${ac_cv_prog_LIPO+set}" = set; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  if test -n "$LIPO"; then
5988  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_exec_ext in '' $ac_executable_extensions; do
5996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002  done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007LIPO=$ac_cv_prog_LIPO
6008if test -n "$LIPO"; then
6009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6010$as_echo "$LIPO" >&6; }
6011else
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016
6017fi
6018if test -z "$ac_cv_prog_LIPO"; then
6019  ac_ct_LIPO=$LIPO
6020  # Extract the first word of "lipo", so it can be a program name with args.
6021set dummy lipo; ac_word=$2
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
6024if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  if test -n "$ac_ct_LIPO"; then
6028  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033  IFS=$as_save_IFS
6034  test -z "$as_dir" && as_dir=.
6035    for ac_exec_ext in '' $ac_executable_extensions; do
6036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037    ac_cv_prog_ac_ct_LIPO="lipo"
6038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039    break 2
6040  fi
6041done
6042  done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6048if test -n "$ac_ct_LIPO"; then
6049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6050$as_echo "$ac_ct_LIPO" >&6; }
6051else
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056  if test "x$ac_ct_LIPO" = x; then
6057    LIPO=":"
6058  else
6059    case $cross_compiling:$ac_tool_warned in
6060yes:)
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063ac_tool_warned=yes ;;
6064esac
6065    LIPO=$ac_ct_LIPO
6066  fi
6067else
6068  LIPO="$ac_cv_prog_LIPO"
6069fi
6070
6071    if test -n "$ac_tool_prefix"; then
6072  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6073set dummy ${ac_tool_prefix}otool; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if test "${ac_cv_prog_OTOOL+set}" = set; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  if test -n "$OTOOL"; then
6080  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099OTOOL=$ac_cv_prog_OTOOL
6100if test -n "$OTOOL"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6102$as_echo "$OTOOL" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109fi
6110if test -z "$ac_cv_prog_OTOOL"; then
6111  ac_ct_OTOOL=$OTOOL
6112  # Extract the first word of "otool", so it can be a program name with args.
6113set dummy otool; ac_word=$2
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115$as_echo_n "checking for $ac_word... " >&6; }
6116if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  if test -n "$ac_ct_OTOOL"; then
6120  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125  IFS=$as_save_IFS
6126  test -z "$as_dir" && as_dir=.
6127    for ac_exec_ext in '' $ac_executable_extensions; do
6128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129    ac_cv_prog_ac_ct_OTOOL="otool"
6130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131    break 2
6132  fi
6133done
6134  done
6135IFS=$as_save_IFS
6136
6137fi
6138fi
6139ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6140if test -n "$ac_ct_OTOOL"; then
6141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6142$as_echo "$ac_ct_OTOOL" >&6; }
6143else
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145$as_echo "no" >&6; }
6146fi
6147
6148  if test "x$ac_ct_OTOOL" = x; then
6149    OTOOL=":"
6150  else
6151    case $cross_compiling:$ac_tool_warned in
6152yes:)
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155ac_tool_warned=yes ;;
6156esac
6157    OTOOL=$ac_ct_OTOOL
6158  fi
6159else
6160  OTOOL="$ac_cv_prog_OTOOL"
6161fi
6162
6163    if test -n "$ac_tool_prefix"; then
6164  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6165set dummy ${ac_tool_prefix}otool64; ac_word=$2
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
6168if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  if test -n "$OTOOL64"; then
6172  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177  IFS=$as_save_IFS
6178  test -z "$as_dir" && as_dir=.
6179    for ac_exec_ext in '' $ac_executable_extensions; do
6180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183    break 2
6184  fi
6185done
6186  done
6187IFS=$as_save_IFS
6188
6189fi
6190fi
6191OTOOL64=$ac_cv_prog_OTOOL64
6192if test -n "$OTOOL64"; then
6193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6194$as_echo "$OTOOL64" >&6; }
6195else
6196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197$as_echo "no" >&6; }
6198fi
6199
6200
6201fi
6202if test -z "$ac_cv_prog_OTOOL64"; then
6203  ac_ct_OTOOL64=$OTOOL64
6204  # Extract the first word of "otool64", so it can be a program name with args.
6205set dummy otool64; ac_word=$2
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207$as_echo_n "checking for $ac_word... " >&6; }
6208if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  if test -n "$ac_ct_OTOOL64"; then
6212  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217  IFS=$as_save_IFS
6218  test -z "$as_dir" && as_dir=.
6219    for ac_exec_ext in '' $ac_executable_extensions; do
6220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221    ac_cv_prog_ac_ct_OTOOL64="otool64"
6222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223    break 2
6224  fi
6225done
6226  done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6232if test -n "$ac_ct_OTOOL64"; then
6233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6234$as_echo "$ac_ct_OTOOL64" >&6; }
6235else
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237$as_echo "no" >&6; }
6238fi
6239
6240  if test "x$ac_ct_OTOOL64" = x; then
6241    OTOOL64=":"
6242  else
6243    case $cross_compiling:$ac_tool_warned in
6244yes:)
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6247ac_tool_warned=yes ;;
6248esac
6249    OTOOL64=$ac_ct_OTOOL64
6250  fi
6251else
6252  OTOOL64="$ac_cv_prog_OTOOL64"
6253fi
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6282$as_echo_n "checking for -single_module linker flag... " >&6; }
6283if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  lt_cv_apple_cc_single_mod=no
6287      if test -z "${LT_MULTI_MODULE}"; then
6288	# By default we will add the -single_module flag. You can override
6289	# by either setting the environment variable LT_MULTI_MODULE
6290	# non-empty at configure time, or by adding -multi_module to the
6291	# link flags.
6292	rm -rf libconftest.dylib*
6293	echo "int foo(void){return 1;}" > conftest.c
6294	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6295-dynamiclib -Wl,-single_module conftest.c" >&5
6296	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6297	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6298        _lt_result=$?
6299	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6300	  lt_cv_apple_cc_single_mod=yes
6301	else
6302	  cat conftest.err >&5
6303	fi
6304	rm -rf libconftest.dylib*
6305	rm -f conftest.*
6306      fi
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6309$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6311$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6312if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6313  $as_echo_n "(cached) " >&6
6314else
6315  lt_cv_ld_exported_symbols_list=no
6316      save_LDFLAGS=$LDFLAGS
6317      echo "_main" > conftest.sym
6318      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6319      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320/* end confdefs.h.  */
6321
6322int
6323main ()
6324{
6325
6326  ;
6327  return 0;
6328}
6329_ACEOF
6330if ac_fn_c_try_link "$LINENO"; then :
6331  lt_cv_ld_exported_symbols_list=yes
6332else
6333  lt_cv_ld_exported_symbols_list=no
6334fi
6335rm -f core conftest.err conftest.$ac_objext \
6336    conftest$ac_exeext conftest.$ac_ext
6337	LDFLAGS="$save_LDFLAGS"
6338
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6341$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6343$as_echo_n "checking for -force_load linker flag... " >&6; }
6344if test "${lt_cv_ld_force_load+set}" = set; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  lt_cv_ld_force_load=no
6348      cat > conftest.c << _LT_EOF
6349int forced_loaded() { return 2;}
6350_LT_EOF
6351      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6352      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6353      echo "$AR cru libconftest.a conftest.o" >&5
6354      $AR cru libconftest.a conftest.o 2>&5
6355      cat > conftest.c << _LT_EOF
6356int main() { return 0;}
6357_LT_EOF
6358      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6359      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6360      _lt_result=$?
6361      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6362	lt_cv_ld_force_load=yes
6363      else
6364	cat conftest.err >&5
6365      fi
6366        rm -f conftest.err libconftest.a conftest conftest.c
6367        rm -rf conftest.dSYM
6368
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6371$as_echo "$lt_cv_ld_force_load" >&6; }
6372    case $host_os in
6373    rhapsody* | darwin1.[012])
6374      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6375    darwin1.*)
6376      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6377    darwin*) # darwin 5.x on
6378      # if running on 10.5 or later, the deployment target defaults
6379      # to the OS version, if on x86, and 10.4, the deployment
6380      # target defaults to 10.4. Don't you love it?
6381      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6382	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6383	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6384	10.[012]*)
6385	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6386	10.*)
6387	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6388      esac
6389    ;;
6390  esac
6391    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6392      _lt_dar_single_mod='$single_module'
6393    fi
6394    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6395      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6396    else
6397      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6398    fi
6399    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6400      _lt_dsymutil='~$DSYMUTIL $lib || :'
6401    else
6402      _lt_dsymutil=
6403    fi
6404    ;;
6405  esac
6406
6407for ac_header in dlfcn.h
6408do :
6409  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6410"
6411if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6412  cat >>confdefs.h <<_ACEOF
6413#define HAVE_DLFCN_H 1
6414_ACEOF
6415
6416fi
6417
6418done
6419
6420
6421
6422# autoconf.info says this should be called right after AC_INIT.
6423ac_config_headers="$ac_config_headers cconfig.h:config.in"
6424
6425
6426
6427
6428
6429
6430# Put a plausible default for CC_FOR_BUILD in Makefile.
6431if test "x$cross_compiling" = "xno"; then
6432  CC_FOR_BUILD='$(CC)'
6433else
6434  CC_FOR_BUILD=gcc
6435fi
6436
6437
6438
6439
6440AR=${AR-ar}
6441
6442if test -n "$ac_tool_prefix"; then
6443  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
6447if test "${ac_cv_prog_RANLIB+set}" = set; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  if test -n "$RANLIB"; then
6451  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456  IFS=$as_save_IFS
6457  test -z "$as_dir" && as_dir=.
6458    for ac_exec_ext in '' $ac_executable_extensions; do
6459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462    break 2
6463  fi
6464done
6465  done
6466IFS=$as_save_IFS
6467
6468fi
6469fi
6470RANLIB=$ac_cv_prog_RANLIB
6471if test -n "$RANLIB"; then
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6473$as_echo "$RANLIB" >&6; }
6474else
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479
6480fi
6481if test -z "$ac_cv_prog_RANLIB"; then
6482  ac_ct_RANLIB=$RANLIB
6483  # Extract the first word of "ranlib", so it can be a program name with args.
6484set dummy ranlib; ac_word=$2
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486$as_echo_n "checking for $ac_word... " >&6; }
6487if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  if test -n "$ac_ct_RANLIB"; then
6491  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496  IFS=$as_save_IFS
6497  test -z "$as_dir" && as_dir=.
6498    for ac_exec_ext in '' $ac_executable_extensions; do
6499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500    ac_cv_prog_ac_ct_RANLIB="ranlib"
6501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502    break 2
6503  fi
6504done
6505  done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511if test -n "$ac_ct_RANLIB"; then
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6513$as_echo "$ac_ct_RANLIB" >&6; }
6514else
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
6517fi
6518
6519  if test "x$ac_ct_RANLIB" = x; then
6520    RANLIB=":"
6521  else
6522    case $cross_compiling:$ac_tool_warned in
6523yes:)
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526ac_tool_warned=yes ;;
6527esac
6528    RANLIB=$ac_ct_RANLIB
6529  fi
6530else
6531  RANLIB="$ac_cv_prog_RANLIB"
6532fi
6533
6534
6535# Some of the common include files depend on bfd.h, and bfd.h checks
6536# that config.h is included first by testing that the PACKAGE macro
6537# is defined.
6538PACKAGE=sim
6539
6540cat >>confdefs.h <<_ACEOF
6541#define PACKAGE "$PACKAGE"
6542_ACEOF
6543
6544
6545
6546# Dependency checking.
6547ac_config_commands="$ac_config_commands depdir"
6548
6549
6550depcc="$CC"   am_compiler_list=
6551
6552am_depcomp=$ac_aux_dir/depcomp
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6554$as_echo_n "checking dependency style of $depcc... " >&6; }
6555if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6556  $as_echo_n "(cached) " >&6
6557else
6558  if test -f "$am_depcomp"; then
6559  # We make a subdir and do the tests there.  Otherwise we can end up
6560  # making bogus files that we don't know about and never remove.  For
6561  # instance it was reported that on HP-UX the gcc test will end up
6562  # making a dummy file named `D' -- because `-MD' means `put the output
6563  # in D'.
6564  mkdir conftest.dir
6565  # Copy depcomp to subdir because otherwise we won't find it if we're
6566  # using a relative directory.
6567  cp "$am_depcomp" conftest.dir
6568  cd conftest.dir
6569  # We will build objects and dependencies in a subdirectory because
6570  # it helps to detect inapplicable dependency modes.  For instance
6571  # both Tru64's cc and ICC support -MD to output dependencies as a
6572  # side effect of compilation, but ICC will put the dependencies in
6573  # the current directory while Tru64 will put them in the object
6574  # directory.
6575  mkdir sub
6576
6577  am_cv_CC_dependencies_compiler_type=none
6578  if test "$am_compiler_list" = ""; then
6579     am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6580  fi
6581  for depmode in $am_compiler_list; do
6582    if test $depmode = none; then break; fi
6583
6584    $as_echo "$as_me:$LINENO: trying $depmode" >&5
6585    # Setup a source with many dependencies, because some compilers
6586    # like to wrap large dependency lists on column 80 (with \), and
6587    # we should not choose a depcomp mode which is confused by this.
6588    #
6589    # We need to recreate these files for each test, as the compiler may
6590    # overwrite some of them when testing with obscure command lines.
6591    # This happens at least with the AIX C compiler.
6592    : > sub/conftest.c
6593    for i in 1 2 3 4 5 6; do
6594      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6595      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6596      # Solaris 8's {/usr,}/bin/sh.
6597      touch sub/conftst$i.h
6598    done
6599    echo "include sub/conftest.Po" > confmf
6600
6601    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6602    # mode.  It turns out that the SunPro C++ compiler does not properly
6603    # handle `-M -o', and we need to detect this.
6604    depcmd="depmode=$depmode \
6605       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6606       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6607       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6608    echo "| $depcmd" | sed -e 's/  */ /g' >&5
6609    if env $depcmd > conftest.err 2>&1 &&
6610       grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6611       grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6612       ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6613      # icc doesn't choke on unknown options, it will just issue warnings
6614      # or remarks (even with -Werror).  So we grep stderr for any message
6615      # that says an option was ignored or not supported.
6616      # When given -MP, icc 7.0 and 7.1 complain thusly:
6617      #   icc: Command line warning: ignoring option '-M'; no argument required
6618      # The diagnosis changed in icc 8.0:
6619      #   icc: Command line remark: option '-MP' not supported
6620      if (grep 'ignoring option' conftest.err ||
6621          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6622        am_cv_CC_dependencies_compiler_type=$depmode
6623	$as_echo "$as_me:$LINENO: success" >&5
6624        break
6625      fi
6626    fi
6627    $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6628    sed -e 's/^/| /' < conftest.err >&5
6629  done
6630
6631  cd ..
6632  rm -rf conftest.dir
6633else
6634  am_cv_CC_dependencies_compiler_type=none
6635fi
6636
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6639$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6640if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6641then as_fn_error "no usable dependency style found" "$LINENO" 5
6642else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6643
6644fi
6645
6646
6647# Check for the 'make' the user wants to use.
6648for ac_prog in make
6649do
6650  # Extract the first word of "$ac_prog", so it can be a program name with args.
6651set dummy $ac_prog; ac_word=$2
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653$as_echo_n "checking for $ac_word... " >&6; }
6654if test "${ac_cv_prog_MAKE+set}" = set; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  if test -n "$MAKE"; then
6658  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
6659else
6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663  IFS=$as_save_IFS
6664  test -z "$as_dir" && as_dir=.
6665    for ac_exec_ext in '' $ac_executable_extensions; do
6666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667    ac_cv_prog_MAKE="$ac_prog"
6668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669    break 2
6670  fi
6671done
6672  done
6673IFS=$as_save_IFS
6674
6675fi
6676fi
6677MAKE=$ac_cv_prog_MAKE
6678if test -n "$MAKE"; then
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
6680$as_echo "$MAKE" >&6; }
6681else
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683$as_echo "no" >&6; }
6684fi
6685
6686
6687  test -n "$MAKE" && break
6688done
6689
6690MAKE_IS_GNU=
6691case "`$MAKE --version 2>&1 | sed 1q`" in
6692  *GNU*)
6693    MAKE_IS_GNU=yes
6694    ;;
6695esac
6696 if test "$MAKE_IS_GNU" = yes; then
6697  GMAKE_TRUE=
6698  GMAKE_FALSE='#'
6699else
6700  GMAKE_TRUE='#'
6701  GMAKE_FALSE=
6702fi
6703
6704
6705ALL_LINGUAS=
6706# If we haven't got the data from the intl directory,
6707# assume NLS is disabled.
6708USE_NLS=no
6709LIBINTL=
6710LIBINTL_DEP=
6711INCINTL=
6712XGETTEXT=
6713GMSGFMT=
6714POSUB=
6715
6716if test -f  ../../intl/config.intl; then
6717  .  ../../intl/config.intl
6718fi
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6720$as_echo_n "checking whether NLS is requested... " >&6; }
6721if test x"$USE_NLS" != xyes; then
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723$as_echo "no" >&6; }
6724else
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6726$as_echo "yes" >&6; }
6727
6728$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6729
6730
6731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6732$as_echo_n "checking for catalogs to be installed... " >&6; }
6733  # Look for .po and .gmo files in the source directory.
6734  CATALOGS=
6735  XLINGUAS=
6736  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6737    # If there aren't any .gmo files the shell will give us the
6738    # literal string "../path/to/srcdir/po/*.gmo" which has to be
6739    # weeded out.
6740    case "$cat" in *\**)
6741      continue;;
6742    esac
6743    # The quadruple backslash is collapsed to a double backslash
6744    # by the backticks, then collapsed again by the double quotes,
6745    # leaving us with one backslash in the sed expression (right
6746    # before the dot that mustn't act as a wildcard).
6747    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6748    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6749    # The user is allowed to set LINGUAS to a list of languages to
6750    # install catalogs for.  If it's empty that means "all of them."
6751    if test "x$LINGUAS" = x; then
6752      CATALOGS="$CATALOGS $cat"
6753      XLINGUAS="$XLINGUAS $lang"
6754    else
6755      case "$LINGUAS" in *$lang*)
6756        CATALOGS="$CATALOGS $cat"
6757        XLINGUAS="$XLINGUAS $lang"
6758        ;;
6759      esac
6760    fi
6761  done
6762  LINGUAS="$XLINGUAS"
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6764$as_echo "$LINGUAS" >&6; }
6765
6766
6767    DATADIRNAME=share
6768
6769  INSTOBJEXT=.mo
6770
6771  GENCAT=gencat
6772
6773  CATOBJEXT=.gmo
6774
6775fi
6776
6777# Check for common headers.
6778# FIXME: Seems to me this can cause problems for i386-windows hosts.
6779# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
6780for ac_header in stdlib.h string.h strings.h unistd.h time.h
6781do :
6782  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6783ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6784eval as_val=\$$as_ac_Header
6785   if test "x$as_val" = x""yes; then :
6786  cat >>confdefs.h <<_ACEOF
6787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6788_ACEOF
6789
6790fi
6791
6792done
6793
6794for ac_header in sys/time.h sys/resource.h
6795do :
6796  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6797ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6798eval as_val=\$$as_ac_Header
6799   if test "x$as_val" = x""yes; then :
6800  cat >>confdefs.h <<_ACEOF
6801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6802_ACEOF
6803
6804fi
6805
6806done
6807
6808for ac_header in fcntl.h fpu_control.h
6809do :
6810  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6811ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6812eval as_val=\$$as_ac_Header
6813   if test "x$as_val" = x""yes; then :
6814  cat >>confdefs.h <<_ACEOF
6815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6816_ACEOF
6817
6818fi
6819
6820done
6821
6822for ac_header in dlfcn.h errno.h sys/stat.h
6823do :
6824  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6825ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6826eval as_val=\$$as_ac_Header
6827   if test "x$as_val" = x""yes; then :
6828  cat >>confdefs.h <<_ACEOF
6829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6830_ACEOF
6831
6832fi
6833
6834done
6835
6836for ac_func in getrusage time sigaction __setfpucw
6837do :
6838  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6839ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6840eval as_val=\$$as_ac_var
6841   if test "x$as_val" = x""yes; then :
6842  cat >>confdefs.h <<_ACEOF
6843#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6844_ACEOF
6845
6846fi
6847done
6848
6849
6850# Check for socket libraries
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
6852$as_echo_n "checking for bind in -lsocket... " >&6; }
6853if test "${ac_cv_lib_socket_bind+set}" = set; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  ac_check_lib_save_LIBS=$LIBS
6857LIBS="-lsocket  $LIBS"
6858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860
6861/* Override any GCC internal prototype to avoid an error.
6862   Use char because int might match the return type of a GCC
6863   builtin and then its argument prototype would still apply.  */
6864#ifdef __cplusplus
6865extern "C"
6866#endif
6867char bind ();
6868int
6869main ()
6870{
6871return bind ();
6872  ;
6873  return 0;
6874}
6875_ACEOF
6876if ac_fn_c_try_link "$LINENO"; then :
6877  ac_cv_lib_socket_bind=yes
6878else
6879  ac_cv_lib_socket_bind=no
6880fi
6881rm -f core conftest.err conftest.$ac_objext \
6882    conftest$ac_exeext conftest.$ac_ext
6883LIBS=$ac_check_lib_save_LIBS
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
6886$as_echo "$ac_cv_lib_socket_bind" >&6; }
6887if test "x$ac_cv_lib_socket_bind" = x""yes; then :
6888  cat >>confdefs.h <<_ACEOF
6889#define HAVE_LIBSOCKET 1
6890_ACEOF
6891
6892  LIBS="-lsocket $LIBS"
6893
6894fi
6895
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6897$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6898if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  ac_check_lib_save_LIBS=$LIBS
6902LIBS="-lnsl  $LIBS"
6903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905
6906/* Override any GCC internal prototype to avoid an error.
6907   Use char because int might match the return type of a GCC
6908   builtin and then its argument prototype would still apply.  */
6909#ifdef __cplusplus
6910extern "C"
6911#endif
6912char gethostbyname ();
6913int
6914main ()
6915{
6916return gethostbyname ();
6917  ;
6918  return 0;
6919}
6920_ACEOF
6921if ac_fn_c_try_link "$LINENO"; then :
6922  ac_cv_lib_nsl_gethostbyname=yes
6923else
6924  ac_cv_lib_nsl_gethostbyname=no
6925fi
6926rm -f core conftest.err conftest.$ac_objext \
6927    conftest$ac_exeext conftest.$ac_ext
6928LIBS=$ac_check_lib_save_LIBS
6929fi
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6931$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6932if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6933  cat >>confdefs.h <<_ACEOF
6934#define HAVE_LIBNSL 1
6935_ACEOF
6936
6937  LIBS="-lnsl $LIBS"
6938
6939fi
6940
6941
6942# BFD conditionally uses zlib, so we must link it in if libbfd does, by
6943# using the same condition.
6944
6945  # See if the user specified whether he wants zlib support or not.
6946
6947# Check whether --with-zlib was given.
6948if test "${with_zlib+set}" = set; then :
6949  withval=$with_zlib;
6950else
6951  with_zlib=auto
6952fi
6953
6954
6955  if test "$with_zlib" != "no"; then
6956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6957$as_echo_n "checking for library containing zlibVersion... " >&6; }
6958if test "${ac_cv_search_zlibVersion+set}" = set; then :
6959  $as_echo_n "(cached) " >&6
6960else
6961  ac_func_search_save_LIBS=$LIBS
6962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964
6965/* Override any GCC internal prototype to avoid an error.
6966   Use char because int might match the return type of a GCC
6967   builtin and then its argument prototype would still apply.  */
6968#ifdef __cplusplus
6969extern "C"
6970#endif
6971char zlibVersion ();
6972int
6973main ()
6974{
6975return zlibVersion ();
6976  ;
6977  return 0;
6978}
6979_ACEOF
6980for ac_lib in '' z; do
6981  if test -z "$ac_lib"; then
6982    ac_res="none required"
6983  else
6984    ac_res=-l$ac_lib
6985    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6986  fi
6987  if ac_fn_c_try_link "$LINENO"; then :
6988  ac_cv_search_zlibVersion=$ac_res
6989fi
6990rm -f core conftest.err conftest.$ac_objext \
6991    conftest$ac_exeext
6992  if test "${ac_cv_search_zlibVersion+set}" = set; then :
6993  break
6994fi
6995done
6996if test "${ac_cv_search_zlibVersion+set}" = set; then :
6997
6998else
6999  ac_cv_search_zlibVersion=no
7000fi
7001rm conftest.$ac_ext
7002LIBS=$ac_func_search_save_LIBS
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
7005$as_echo "$ac_cv_search_zlibVersion" >&6; }
7006ac_res=$ac_cv_search_zlibVersion
7007if test "$ac_res" != no; then :
7008  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7009  for ac_header in zlib.h
7010do :
7011  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7012if test "x$ac_cv_header_zlib_h" = x""yes; then :
7013  cat >>confdefs.h <<_ACEOF
7014#define HAVE_ZLIB_H 1
7015_ACEOF
7016
7017fi
7018
7019done
7020
7021fi
7022
7023    if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
7024      as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
7025    fi
7026  fi
7027
7028
7029# BFD uses libdl when when plugins enabled.
7030
7031# Check whether --enable-plugins was given.
7032if test "${enable_plugins+set}" = set; then :
7033  enableval=$enable_plugins; case "${enableval}" in
7034  yes | "") plugins=yes ;;
7035  no) plugins=no ;;
7036  *) plugins=yes ;;
7037 esac
7038else
7039  plugins=no
7040fi
7041
7042
7043 if test "$plugins" = yes; then
7044  PLUGINS_TRUE=
7045  PLUGINS_FALSE='#'
7046else
7047  PLUGINS_TRUE='#'
7048  PLUGINS_FALSE=
7049fi
7050
7051
7052
7053
7054
7055# Set options
7056enable_dlopen=yes
7057
7058
7059
7060
7061  enable_win32_dll=no
7062
7063
7064            # Check whether --enable-shared was given.
7065if test "${enable_shared+set}" = set; then :
7066  enableval=$enable_shared; p=${PACKAGE-default}
7067    case $enableval in
7068    yes) enable_shared=yes ;;
7069    no) enable_shared=no ;;
7070    *)
7071      enable_shared=no
7072      # Look at the argument we got.  We use all the common list separators.
7073      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7074      for pkg in $enableval; do
7075	IFS="$lt_save_ifs"
7076	if test "X$pkg" = "X$p"; then
7077	  enable_shared=yes
7078	fi
7079      done
7080      IFS="$lt_save_ifs"
7081      ;;
7082    esac
7083else
7084  enable_shared=yes
7085fi
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095  # Check whether --enable-static was given.
7096if test "${enable_static+set}" = set; then :
7097  enableval=$enable_static; p=${PACKAGE-default}
7098    case $enableval in
7099    yes) enable_static=yes ;;
7100    no) enable_static=no ;;
7101    *)
7102     enable_static=no
7103      # Look at the argument we got.  We use all the common list separators.
7104      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7105      for pkg in $enableval; do
7106	IFS="$lt_save_ifs"
7107	if test "X$pkg" = "X$p"; then
7108	  enable_static=yes
7109	fi
7110      done
7111      IFS="$lt_save_ifs"
7112      ;;
7113    esac
7114else
7115  enable_static=yes
7116fi
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127# Check whether --with-pic was given.
7128if test "${with_pic+set}" = set; then :
7129  withval=$with_pic; pic_mode="$withval"
7130else
7131  pic_mode=default
7132fi
7133
7134
7135test -z "$pic_mode" && pic_mode=default
7136
7137
7138
7139
7140
7141
7142
7143  # Check whether --enable-fast-install was given.
7144if test "${enable_fast_install+set}" = set; then :
7145  enableval=$enable_fast_install; p=${PACKAGE-default}
7146    case $enableval in
7147    yes) enable_fast_install=yes ;;
7148    no) enable_fast_install=no ;;
7149    *)
7150      enable_fast_install=no
7151      # Look at the argument we got.  We use all the common list separators.
7152      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7153      for pkg in $enableval; do
7154	IFS="$lt_save_ifs"
7155	if test "X$pkg" = "X$p"; then
7156	  enable_fast_install=yes
7157	fi
7158      done
7159      IFS="$lt_save_ifs"
7160      ;;
7161    esac
7162else
7163  enable_fast_install=yes
7164fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176# This can be used to rebuild libtool when needed
7177LIBTOOL_DEPS="$ltmain"
7178
7179# Always use our own libtool.
7180LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207test -z "$LN_S" && LN_S="ln -s"
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222if test -n "${ZSH_VERSION+set}" ; then
7223   setopt NO_GLOB_SUBST
7224fi
7225
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7227$as_echo_n "checking for objdir... " >&6; }
7228if test "${lt_cv_objdir+set}" = set; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  rm -f .libs 2>/dev/null
7232mkdir .libs 2>/dev/null
7233if test -d .libs; then
7234  lt_cv_objdir=.libs
7235else
7236  # MS-DOS does not allow filenames that begin with a dot.
7237  lt_cv_objdir=_libs
7238fi
7239rmdir .libs 2>/dev/null
7240fi
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7242$as_echo "$lt_cv_objdir" >&6; }
7243objdir=$lt_cv_objdir
7244
7245
7246
7247
7248
7249cat >>confdefs.h <<_ACEOF
7250#define LT_OBJDIR "$lt_cv_objdir/"
7251_ACEOF
7252
7253
7254
7255
7256case $host_os in
7257aix3*)
7258  # AIX sometimes has problems with the GCC collect2 program.  For some
7259  # reason, if we set the COLLECT_NAMES environment variable, the problems
7260  # vanish in a puff of smoke.
7261  if test "X${COLLECT_NAMES+set}" != Xset; then
7262    COLLECT_NAMES=
7263    export COLLECT_NAMES
7264  fi
7265  ;;
7266esac
7267
7268# Global variables:
7269ofile=libtool
7270can_build_shared=yes
7271
7272# All known linkers require a `.a' archive for static linking (except MSVC,
7273# which needs '.lib').
7274libext=a
7275
7276with_gnu_ld="$lt_cv_prog_gnu_ld"
7277
7278old_CC="$CC"
7279old_CFLAGS="$CFLAGS"
7280
7281# Set sane defaults for various variables
7282test -z "$CC" && CC=cc
7283test -z "$LTCC" && LTCC=$CC
7284test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7285test -z "$LD" && LD=ld
7286test -z "$ac_objext" && ac_objext=o
7287
7288for cc_temp in $compiler""; do
7289  case $cc_temp in
7290    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7291    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7292    \-*) ;;
7293    *) break;;
7294  esac
7295done
7296cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7297
7298
7299# Only perform the check for file, if the check method requires it
7300test -z "$MAGIC_CMD" && MAGIC_CMD=file
7301case $deplibs_check_method in
7302file_magic*)
7303  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7305$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7306if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  case $MAGIC_CMD in
7310[\\/*] |  ?:[\\/]*)
7311  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7312  ;;
7313*)
7314  lt_save_MAGIC_CMD="$MAGIC_CMD"
7315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7316  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7317  for ac_dir in $ac_dummy; do
7318    IFS="$lt_save_ifs"
7319    test -z "$ac_dir" && ac_dir=.
7320    if test -f $ac_dir/${ac_tool_prefix}file; then
7321      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7322      if test -n "$file_magic_test_file"; then
7323	case $deplibs_check_method in
7324	"file_magic "*)
7325	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7326	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7327	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7328	    $EGREP "$file_magic_regex" > /dev/null; then
7329	    :
7330	  else
7331	    cat <<_LT_EOF 1>&2
7332
7333*** Warning: the command libtool uses to detect shared libraries,
7334*** $file_magic_cmd, produces output that libtool cannot recognize.
7335*** The result is that libtool may fail to recognize shared libraries
7336*** as such.  This will affect the creation of libtool libraries that
7337*** depend on shared libraries, but programs linked with such libtool
7338*** libraries will work regardless of this problem.  Nevertheless, you
7339*** may want to report the problem to your system manager and/or to
7340*** bug-libtool@gnu.org
7341
7342_LT_EOF
7343	  fi ;;
7344	esac
7345      fi
7346      break
7347    fi
7348  done
7349  IFS="$lt_save_ifs"
7350  MAGIC_CMD="$lt_save_MAGIC_CMD"
7351  ;;
7352esac
7353fi
7354
7355MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7356if test -n "$MAGIC_CMD"; then
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7358$as_echo "$MAGIC_CMD" >&6; }
7359else
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365
7366
7367
7368if test -z "$lt_cv_path_MAGIC_CMD"; then
7369  if test -n "$ac_tool_prefix"; then
7370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7371$as_echo_n "checking for file... " >&6; }
7372if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  case $MAGIC_CMD in
7376[\\/*] |  ?:[\\/]*)
7377  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7378  ;;
7379*)
7380  lt_save_MAGIC_CMD="$MAGIC_CMD"
7381  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7382  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7383  for ac_dir in $ac_dummy; do
7384    IFS="$lt_save_ifs"
7385    test -z "$ac_dir" && ac_dir=.
7386    if test -f $ac_dir/file; then
7387      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7388      if test -n "$file_magic_test_file"; then
7389	case $deplibs_check_method in
7390	"file_magic "*)
7391	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7392	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7393	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7394	    $EGREP "$file_magic_regex" > /dev/null; then
7395	    :
7396	  else
7397	    cat <<_LT_EOF 1>&2
7398
7399*** Warning: the command libtool uses to detect shared libraries,
7400*** $file_magic_cmd, produces output that libtool cannot recognize.
7401*** The result is that libtool may fail to recognize shared libraries
7402*** as such.  This will affect the creation of libtool libraries that
7403*** depend on shared libraries, but programs linked with such libtool
7404*** libraries will work regardless of this problem.  Nevertheless, you
7405*** may want to report the problem to your system manager and/or to
7406*** bug-libtool@gnu.org
7407
7408_LT_EOF
7409	  fi ;;
7410	esac
7411      fi
7412      break
7413    fi
7414  done
7415  IFS="$lt_save_ifs"
7416  MAGIC_CMD="$lt_save_MAGIC_CMD"
7417  ;;
7418esac
7419fi
7420
7421MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7422if test -n "$MAGIC_CMD"; then
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7424$as_echo "$MAGIC_CMD" >&6; }
7425else
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
7428fi
7429
7430
7431  else
7432    MAGIC_CMD=:
7433  fi
7434fi
7435
7436  fi
7437  ;;
7438esac
7439
7440# Use C for the default configuration in the libtool script
7441
7442lt_save_CC="$CC"
7443ac_ext=c
7444ac_cpp='$CPP $CPPFLAGS'
7445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7447ac_compiler_gnu=$ac_cv_c_compiler_gnu
7448
7449
7450# Source file extension for C test sources.
7451ac_ext=c
7452
7453# Object file extension for compiled C test sources.
7454objext=o
7455objext=$objext
7456
7457# Code to be used in simple compile tests
7458lt_simple_compile_test_code="int some_variable = 0;"
7459
7460# Code to be used in simple link tests
7461lt_simple_link_test_code='int main(){return(0);}'
7462
7463
7464
7465
7466
7467
7468
7469# If no C compiler was specified, use CC.
7470LTCC=${LTCC-"$CC"}
7471
7472# If no C compiler flags were specified, use CFLAGS.
7473LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7474
7475# Allow CC to be a program name with arguments.
7476compiler=$CC
7477
7478# Save the default compiler, since it gets overwritten when the other
7479# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7480compiler_DEFAULT=$CC
7481
7482# save warnings/boilerplate of simple test code
7483ac_outfile=conftest.$ac_objext
7484echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7485eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7486_lt_compiler_boilerplate=`cat conftest.err`
7487$RM conftest*
7488
7489ac_outfile=conftest.$ac_objext
7490echo "$lt_simple_link_test_code" >conftest.$ac_ext
7491eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7492_lt_linker_boilerplate=`cat conftest.err`
7493$RM -r conftest*
7494
7495
7496## CAVEAT EMPTOR:
7497## There is no encapsulation within the following macros, do not change
7498## the running order or otherwise move them around unless you know exactly
7499## what you are doing...
7500if test -n "$compiler"; then
7501
7502lt_prog_compiler_no_builtin_flag=
7503
7504if test "$GCC" = yes; then
7505  case $cc_basename in
7506  nvcc*)
7507    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7508  *)
7509    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7510  esac
7511
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7513$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7514if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  lt_cv_prog_compiler_rtti_exceptions=no
7518   ac_outfile=conftest.$ac_objext
7519   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7520   lt_compiler_flag="-fno-rtti -fno-exceptions"
7521   # Insert the option either (1) after the last *FLAGS variable, or
7522   # (2) before a word containing "conftest.", or (3) at the end.
7523   # Note that $ac_compile itself does not contain backslashes and begins
7524   # with a dollar sign (not a hyphen), so the echo should work correctly.
7525   # The option is referenced via a variable to avoid confusing sed.
7526   lt_compile=`echo "$ac_compile" | $SED \
7527   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7528   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7529   -e 's:$: $lt_compiler_flag:'`
7530   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7531   (eval "$lt_compile" 2>conftest.err)
7532   ac_status=$?
7533   cat conftest.err >&5
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   if (exit $ac_status) && test -s "$ac_outfile"; then
7536     # The compiler can only warn and ignore the option if not recognized
7537     # So say no if there are warnings other than the usual output.
7538     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7539     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7540     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7541       lt_cv_prog_compiler_rtti_exceptions=yes
7542     fi
7543   fi
7544   $RM conftest*
7545
7546fi
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7548$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7549
7550if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7551    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7552else
7553    :
7554fi
7555
7556fi
7557
7558
7559
7560
7561
7562
7563  lt_prog_compiler_wl=
7564lt_prog_compiler_pic=
7565lt_prog_compiler_static=
7566
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7568$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7569
7570  if test "$GCC" = yes; then
7571    lt_prog_compiler_wl='-Wl,'
7572    lt_prog_compiler_static='-static'
7573
7574    case $host_os in
7575      aix*)
7576      # All AIX code is PIC.
7577      if test "$host_cpu" = ia64; then
7578	# AIX 5 now supports IA64 processor
7579	lt_prog_compiler_static='-Bstatic'
7580      fi
7581      lt_prog_compiler_pic='-fPIC'
7582      ;;
7583
7584    amigaos*)
7585      case $host_cpu in
7586      powerpc)
7587            # see comment about AmigaOS4 .so support
7588            lt_prog_compiler_pic='-fPIC'
7589        ;;
7590      m68k)
7591            # FIXME: we need at least 68020 code to build shared libraries, but
7592            # adding the `-m68020' flag to GCC prevents building anything better,
7593            # like `-m68040'.
7594            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7595        ;;
7596      esac
7597      ;;
7598
7599    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7600      # PIC is the default for these OSes.
7601      ;;
7602
7603    mingw* | cygwin* | pw32* | os2* | cegcc*)
7604      # This hack is so that the source file can tell whether it is being
7605      # built for inclusion in a dll (and should export symbols for example).
7606      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7607      # (--disable-auto-import) libraries
7608      lt_prog_compiler_pic='-DDLL_EXPORT'
7609      ;;
7610
7611    darwin* | rhapsody*)
7612      # PIC is the default on this platform
7613      # Common symbols not allowed in MH_DYLIB files
7614      lt_prog_compiler_pic='-fno-common'
7615      ;;
7616
7617    haiku*)
7618      # PIC is the default for Haiku.
7619      # The "-static" flag exists, but is broken.
7620      lt_prog_compiler_static=
7621      ;;
7622
7623    hpux*)
7624      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7625      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7626      # sets the default TLS model and affects inlining.
7627      case $host_cpu in
7628      hppa*64*)
7629	# +Z the default
7630	;;
7631      *)
7632	lt_prog_compiler_pic='-fPIC'
7633	;;
7634      esac
7635      ;;
7636
7637    interix[3-9]*)
7638      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7639      # Instead, we relocate shared libraries at runtime.
7640      ;;
7641
7642    msdosdjgpp*)
7643      # Just because we use GCC doesn't mean we suddenly get shared libraries
7644      # on systems that don't support them.
7645      lt_prog_compiler_can_build_shared=no
7646      enable_shared=no
7647      ;;
7648
7649    *nto* | *qnx*)
7650      # QNX uses GNU C++, but need to define -shared option too, otherwise
7651      # it will coredump.
7652      lt_prog_compiler_pic='-fPIC -shared'
7653      ;;
7654
7655    sysv4*MP*)
7656      if test -d /usr/nec; then
7657	lt_prog_compiler_pic=-Kconform_pic
7658      fi
7659      ;;
7660
7661    *)
7662      lt_prog_compiler_pic='-fPIC'
7663      ;;
7664    esac
7665
7666    case $cc_basename in
7667    nvcc*) # Cuda Compiler Driver 2.2
7668      lt_prog_compiler_wl='-Xlinker '
7669      lt_prog_compiler_pic='-Xcompiler -fPIC'
7670      ;;
7671    esac
7672  else
7673    # PORTME Check for flag to pass linker flags through the system compiler.
7674    case $host_os in
7675    aix*)
7676      lt_prog_compiler_wl='-Wl,'
7677      if test "$host_cpu" = ia64; then
7678	# AIX 5 now supports IA64 processor
7679	lt_prog_compiler_static='-Bstatic'
7680      else
7681	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7682      fi
7683      ;;
7684
7685    mingw* | cygwin* | pw32* | os2* | cegcc*)
7686      # This hack is so that the source file can tell whether it is being
7687      # built for inclusion in a dll (and should export symbols for example).
7688      lt_prog_compiler_pic='-DDLL_EXPORT'
7689      ;;
7690
7691    hpux9* | hpux10* | hpux11*)
7692      lt_prog_compiler_wl='-Wl,'
7693      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7694      # not for PA HP-UX.
7695      case $host_cpu in
7696      hppa*64*|ia64*)
7697	# +Z the default
7698	;;
7699      *)
7700	lt_prog_compiler_pic='+Z'
7701	;;
7702      esac
7703      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7704      lt_prog_compiler_static='${wl}-a ${wl}archive'
7705      ;;
7706
7707    irix5* | irix6* | nonstopux*)
7708      lt_prog_compiler_wl='-Wl,'
7709      # PIC (with -KPIC) is the default.
7710      lt_prog_compiler_static='-non_shared'
7711      ;;
7712
7713    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7714      case $cc_basename in
7715      # old Intel for x86_64 which still supported -KPIC.
7716      ecc*)
7717	lt_prog_compiler_wl='-Wl,'
7718	lt_prog_compiler_pic='-KPIC'
7719	lt_prog_compiler_static='-static'
7720        ;;
7721      # icc used to be incompatible with GCC.
7722      # ICC 10 doesn't accept -KPIC any more.
7723      icc* | ifort*)
7724	lt_prog_compiler_wl='-Wl,'
7725	lt_prog_compiler_pic='-fPIC'
7726	lt_prog_compiler_static='-static'
7727        ;;
7728      # Lahey Fortran 8.1.
7729      lf95*)
7730	lt_prog_compiler_wl='-Wl,'
7731	lt_prog_compiler_pic='--shared'
7732	lt_prog_compiler_static='--static'
7733	;;
7734      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7735        # Portland Group compilers (*not* the Pentium gcc compiler,
7736	# which looks to be a dead project)
7737	lt_prog_compiler_wl='-Wl,'
7738	lt_prog_compiler_pic='-fpic'
7739	lt_prog_compiler_static='-Bstatic'
7740        ;;
7741      ccc*)
7742        lt_prog_compiler_wl='-Wl,'
7743        # All Alpha code is PIC.
7744        lt_prog_compiler_static='-non_shared'
7745        ;;
7746      xl* | bgxl* | bgf* | mpixl*)
7747	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7748	lt_prog_compiler_wl='-Wl,'
7749	lt_prog_compiler_pic='-qpic'
7750	lt_prog_compiler_static='-qstaticlink'
7751	;;
7752      *)
7753	case `$CC -V 2>&1 | sed 5q` in
7754	*Sun\ F* | *Sun*Fortran*)
7755	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7756	  lt_prog_compiler_pic='-KPIC'
7757	  lt_prog_compiler_static='-Bstatic'
7758	  lt_prog_compiler_wl=''
7759	  ;;
7760	*Sun\ C*)
7761	  # Sun C 5.9
7762	  lt_prog_compiler_pic='-KPIC'
7763	  lt_prog_compiler_static='-Bstatic'
7764	  lt_prog_compiler_wl='-Wl,'
7765	  ;;
7766	esac
7767	;;
7768      esac
7769      ;;
7770
7771    newsos6)
7772      lt_prog_compiler_pic='-KPIC'
7773      lt_prog_compiler_static='-Bstatic'
7774      ;;
7775
7776    *nto* | *qnx*)
7777      # QNX uses GNU C++, but need to define -shared option too, otherwise
7778      # it will coredump.
7779      lt_prog_compiler_pic='-fPIC -shared'
7780      ;;
7781
7782    osf3* | osf4* | osf5*)
7783      lt_prog_compiler_wl='-Wl,'
7784      # All OSF/1 code is PIC.
7785      lt_prog_compiler_static='-non_shared'
7786      ;;
7787
7788    rdos*)
7789      lt_prog_compiler_static='-non_shared'
7790      ;;
7791
7792    solaris*)
7793      lt_prog_compiler_pic='-KPIC'
7794      lt_prog_compiler_static='-Bstatic'
7795      case $cc_basename in
7796      f77* | f90* | f95*)
7797	lt_prog_compiler_wl='-Qoption ld ';;
7798      *)
7799	lt_prog_compiler_wl='-Wl,';;
7800      esac
7801      ;;
7802
7803    sunos4*)
7804      lt_prog_compiler_wl='-Qoption ld '
7805      lt_prog_compiler_pic='-PIC'
7806      lt_prog_compiler_static='-Bstatic'
7807      ;;
7808
7809    sysv4 | sysv4.2uw2* | sysv4.3*)
7810      lt_prog_compiler_wl='-Wl,'
7811      lt_prog_compiler_pic='-KPIC'
7812      lt_prog_compiler_static='-Bstatic'
7813      ;;
7814
7815    sysv4*MP*)
7816      if test -d /usr/nec ;then
7817	lt_prog_compiler_pic='-Kconform_pic'
7818	lt_prog_compiler_static='-Bstatic'
7819      fi
7820      ;;
7821
7822    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7823      lt_prog_compiler_wl='-Wl,'
7824      lt_prog_compiler_pic='-KPIC'
7825      lt_prog_compiler_static='-Bstatic'
7826      ;;
7827
7828    unicos*)
7829      lt_prog_compiler_wl='-Wl,'
7830      lt_prog_compiler_can_build_shared=no
7831      ;;
7832
7833    uts4*)
7834      lt_prog_compiler_pic='-pic'
7835      lt_prog_compiler_static='-Bstatic'
7836      ;;
7837
7838    *)
7839      lt_prog_compiler_can_build_shared=no
7840      ;;
7841    esac
7842  fi
7843
7844case $host_os in
7845  # For platforms which do not support PIC, -DPIC is meaningless:
7846  *djgpp*)
7847    lt_prog_compiler_pic=
7848    ;;
7849  *)
7850    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7851    ;;
7852esac
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7854$as_echo "$lt_prog_compiler_pic" >&6; }
7855
7856
7857
7858
7859
7860
7861#
7862# Check to make sure the PIC flag actually works.
7863#
7864if test -n "$lt_prog_compiler_pic"; then
7865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7866$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7867if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  lt_cv_prog_compiler_pic_works=no
7871   ac_outfile=conftest.$ac_objext
7872   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7873   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7874   # Insert the option either (1) after the last *FLAGS variable, or
7875   # (2) before a word containing "conftest.", or (3) at the end.
7876   # Note that $ac_compile itself does not contain backslashes and begins
7877   # with a dollar sign (not a hyphen), so the echo should work correctly.
7878   # The option is referenced via a variable to avoid confusing sed.
7879   lt_compile=`echo "$ac_compile" | $SED \
7880   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7881   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7882   -e 's:$: $lt_compiler_flag:'`
7883   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7884   (eval "$lt_compile" 2>conftest.err)
7885   ac_status=$?
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   if (exit $ac_status) && test -s "$ac_outfile"; then
7889     # The compiler can only warn and ignore the option if not recognized
7890     # So say no if there are warnings other than the usual output.
7891     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7892     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7893     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7894       lt_cv_prog_compiler_pic_works=yes
7895     fi
7896   fi
7897   $RM conftest*
7898
7899fi
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7901$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7902
7903if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7904    case $lt_prog_compiler_pic in
7905     "" | " "*) ;;
7906     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7907     esac
7908else
7909    lt_prog_compiler_pic=
7910     lt_prog_compiler_can_build_shared=no
7911fi
7912
7913fi
7914
7915
7916
7917
7918
7919
7920#
7921# Check to make sure the static flag actually works.
7922#
7923wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7925$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7926if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7927  $as_echo_n "(cached) " >&6
7928else
7929  lt_cv_prog_compiler_static_works=no
7930   save_LDFLAGS="$LDFLAGS"
7931   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7932   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7933   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7934     # The linker can only warn and ignore the option if not recognized
7935     # So say no if there are warnings
7936     if test -s conftest.err; then
7937       # Append any errors to the config.log.
7938       cat conftest.err 1>&5
7939       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7940       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7941       if diff conftest.exp conftest.er2 >/dev/null; then
7942         lt_cv_prog_compiler_static_works=yes
7943       fi
7944     else
7945       lt_cv_prog_compiler_static_works=yes
7946     fi
7947   fi
7948   $RM -r conftest*
7949   LDFLAGS="$save_LDFLAGS"
7950
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7953$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7954
7955if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7956    :
7957else
7958    lt_prog_compiler_static=
7959fi
7960
7961
7962
7963
7964
7965
7966
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7968$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7969if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7970  $as_echo_n "(cached) " >&6
7971else
7972  lt_cv_prog_compiler_c_o=no
7973   $RM -r conftest 2>/dev/null
7974   mkdir conftest
7975   cd conftest
7976   mkdir out
7977   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7978
7979   lt_compiler_flag="-o out/conftest2.$ac_objext"
7980   # Insert the option either (1) after the last *FLAGS variable, or
7981   # (2) before a word containing "conftest.", or (3) at the end.
7982   # Note that $ac_compile itself does not contain backslashes and begins
7983   # with a dollar sign (not a hyphen), so the echo should work correctly.
7984   lt_compile=`echo "$ac_compile" | $SED \
7985   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7986   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7987   -e 's:$: $lt_compiler_flag:'`
7988   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7989   (eval "$lt_compile" 2>out/conftest.err)
7990   ac_status=$?
7991   cat out/conftest.err >&5
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7994   then
7995     # The compiler can only warn and ignore the option if not recognized
7996     # So say no if there are warnings
7997     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7998     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7999     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8000       lt_cv_prog_compiler_c_o=yes
8001     fi
8002   fi
8003   chmod u+w . 2>&5
8004   $RM conftest*
8005   # SGI C++ compiler will create directory out/ii_files/ for
8006   # template instantiation
8007   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8008   $RM out/* && rmdir out
8009   cd ..
8010   $RM -r conftest
8011   $RM conftest*
8012
8013fi
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8015$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8016
8017
8018
8019
8020
8021
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8023$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8024if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  lt_cv_prog_compiler_c_o=no
8028   $RM -r conftest 2>/dev/null
8029   mkdir conftest
8030   cd conftest
8031   mkdir out
8032   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8033
8034   lt_compiler_flag="-o out/conftest2.$ac_objext"
8035   # Insert the option either (1) after the last *FLAGS variable, or
8036   # (2) before a word containing "conftest.", or (3) at the end.
8037   # Note that $ac_compile itself does not contain backslashes and begins
8038   # with a dollar sign (not a hyphen), so the echo should work correctly.
8039   lt_compile=`echo "$ac_compile" | $SED \
8040   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8042   -e 's:$: $lt_compiler_flag:'`
8043   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8044   (eval "$lt_compile" 2>out/conftest.err)
8045   ac_status=$?
8046   cat out/conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8049   then
8050     # The compiler can only warn and ignore the option if not recognized
8051     # So say no if there are warnings
8052     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8053     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8054     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8055       lt_cv_prog_compiler_c_o=yes
8056     fi
8057   fi
8058   chmod u+w . 2>&5
8059   $RM conftest*
8060   # SGI C++ compiler will create directory out/ii_files/ for
8061   # template instantiation
8062   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8063   $RM out/* && rmdir out
8064   cd ..
8065   $RM -r conftest
8066   $RM conftest*
8067
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8070$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8071
8072
8073
8074
8075hard_links="nottested"
8076if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8077  # do not overwrite the value of need_locks provided by the user
8078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8079$as_echo_n "checking if we can lock with hard links... " >&6; }
8080  hard_links=yes
8081  $RM conftest*
8082  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8083  touch conftest.a
8084  ln conftest.a conftest.b 2>&5 || hard_links=no
8085  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8087$as_echo "$hard_links" >&6; }
8088  if test "$hard_links" = no; then
8089    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8090$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8091    need_locks=warn
8092  fi
8093else
8094  need_locks=no
8095fi
8096
8097
8098
8099
8100
8101
8102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8103$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8104
8105  runpath_var=
8106  allow_undefined_flag=
8107  always_export_symbols=no
8108  archive_cmds=
8109  archive_expsym_cmds=
8110  compiler_needs_object=no
8111  enable_shared_with_static_runtimes=no
8112  export_dynamic_flag_spec=
8113  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8114  hardcode_automatic=no
8115  hardcode_direct=no
8116  hardcode_direct_absolute=no
8117  hardcode_libdir_flag_spec=
8118  hardcode_libdir_flag_spec_ld=
8119  hardcode_libdir_separator=
8120  hardcode_minus_L=no
8121  hardcode_shlibpath_var=unsupported
8122  inherit_rpath=no
8123  link_all_deplibs=unknown
8124  module_cmds=
8125  module_expsym_cmds=
8126  old_archive_from_new_cmds=
8127  old_archive_from_expsyms_cmds=
8128  thread_safe_flag_spec=
8129  whole_archive_flag_spec=
8130  # include_expsyms should be a list of space-separated symbols to be *always*
8131  # included in the symbol list
8132  include_expsyms=
8133  # exclude_expsyms can be an extended regexp of symbols to exclude
8134  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8135  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8136  # as well as any symbol that contains `d'.
8137  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8138  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8139  # platforms (ab)use it in PIC code, but their linkers get confused if
8140  # the symbol is explicitly referenced.  Since portable code cannot
8141  # rely on this symbol name, it's probably fine to never include it in
8142  # preloaded symbol tables.
8143  # Exclude shared library initialization/finalization symbols.
8144  extract_expsyms_cmds=
8145
8146  case $host_os in
8147  cygwin* | mingw* | pw32* | cegcc*)
8148    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8149    # When not using gcc, we currently assume that we are using
8150    # Microsoft Visual C++.
8151    if test "$GCC" != yes; then
8152      with_gnu_ld=no
8153    fi
8154    ;;
8155  interix*)
8156    # we just hope/assume this is gcc and not c89 (= MSVC++)
8157    with_gnu_ld=yes
8158    ;;
8159  openbsd*)
8160    with_gnu_ld=no
8161    ;;
8162  esac
8163
8164  ld_shlibs=yes
8165
8166  # On some targets, GNU ld is compatible enough with the native linker
8167  # that we're better off using the native interface for both.
8168  lt_use_gnu_ld_interface=no
8169  if test "$with_gnu_ld" = yes; then
8170    case $host_os in
8171      aix*)
8172	# The AIX port of GNU ld has always aspired to compatibility
8173	# with the native linker.  However, as the warning in the GNU ld
8174	# block says, versions before 2.19.5* couldn't really create working
8175	# shared libraries, regardless of the interface used.
8176	case `$LD -v 2>&1` in
8177	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8178	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8179	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8180	  *)
8181	    lt_use_gnu_ld_interface=yes
8182	    ;;
8183	esac
8184	;;
8185      *)
8186	lt_use_gnu_ld_interface=yes
8187	;;
8188    esac
8189  fi
8190
8191  if test "$lt_use_gnu_ld_interface" = yes; then
8192    # If archive_cmds runs LD, not CC, wlarc should be empty
8193    wlarc='${wl}'
8194
8195    # Set some defaults for GNU ld with shared library support. These
8196    # are reset later if shared libraries are not supported. Putting them
8197    # here allows them to be overridden if necessary.
8198    runpath_var=LD_RUN_PATH
8199    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8200    export_dynamic_flag_spec='${wl}--export-dynamic'
8201    # ancient GNU ld didn't support --whole-archive et. al.
8202    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8203      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8204    else
8205      whole_archive_flag_spec=
8206    fi
8207    supports_anon_versioning=no
8208    case `$LD -v 2>&1` in
8209      *GNU\ gold*) supports_anon_versioning=yes ;;
8210      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8211      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8212      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8213      *\ 2.11.*) ;; # other 2.11 versions
8214      *) supports_anon_versioning=yes ;;
8215    esac
8216
8217    # See if GNU ld supports shared libraries.
8218    case $host_os in
8219    aix[3-9]*)
8220      # On AIX/PPC, the GNU linker is very broken
8221      if test "$host_cpu" != ia64; then
8222	ld_shlibs=no
8223	cat <<_LT_EOF 1>&2
8224
8225*** Warning: the GNU linker, at least up to release 2.19, is reported
8226*** to be unable to reliably create shared libraries on AIX.
8227*** Therefore, libtool is disabling shared libraries support.  If you
8228*** really care for shared libraries, you may want to install binutils
8229*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8230*** You will then need to restart the configuration process.
8231
8232_LT_EOF
8233      fi
8234      ;;
8235
8236    amigaos*)
8237      case $host_cpu in
8238      powerpc)
8239            # see comment about AmigaOS4 .so support
8240            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241            archive_expsym_cmds=''
8242        ;;
8243      m68k)
8244            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)'
8245            hardcode_libdir_flag_spec='-L$libdir'
8246            hardcode_minus_L=yes
8247        ;;
8248      esac
8249      ;;
8250
8251    beos*)
8252      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8253	allow_undefined_flag=unsupported
8254	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8255	# support --undefined.  This deserves some investigation.  FIXME
8256	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257      else
8258	ld_shlibs=no
8259      fi
8260      ;;
8261
8262    cygwin* | mingw* | pw32* | cegcc*)
8263      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8264      # as there is no search path for DLLs.
8265      hardcode_libdir_flag_spec='-L$libdir'
8266      export_dynamic_flag_spec='${wl}--export-all-symbols'
8267      allow_undefined_flag=unsupported
8268      always_export_symbols=no
8269      enable_shared_with_static_runtimes=yes
8270      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8271
8272      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8273        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8274	# If the export-symbols file already is a .def file (1st line
8275	# is EXPORTS), use it as is; otherwise, prepend...
8276	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8277	  cp $export_symbols $output_objdir/$soname.def;
8278	else
8279	  echo EXPORTS > $output_objdir/$soname.def;
8280	  cat $export_symbols >> $output_objdir/$soname.def;
8281	fi~
8282	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8283      else
8284	ld_shlibs=no
8285      fi
8286      ;;
8287
8288    haiku*)
8289      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290      link_all_deplibs=yes
8291      ;;
8292
8293    interix[3-9]*)
8294      hardcode_direct=no
8295      hardcode_shlibpath_var=no
8296      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8297      export_dynamic_flag_spec='${wl}-E'
8298      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8299      # Instead, shared libraries are loaded at an image base (0x10000000 by
8300      # default) and relocated if they conflict, which is a slow very memory
8301      # consuming and fragmenting process.  To avoid this, we pick a random,
8302      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8303      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8304      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8305      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'
8306      ;;
8307
8308    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8309      tmp_diet=no
8310      if test "$host_os" = linux-dietlibc; then
8311	case $cc_basename in
8312	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8313	esac
8314      fi
8315      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8316	 && test "$tmp_diet" = no
8317      then
8318	tmp_addflag=
8319	tmp_sharedflag='-shared'
8320	case $cc_basename,$host_cpu in
8321        pgcc*)				# Portland Group C compiler
8322	  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'
8323	  tmp_addflag=' $pic_flag'
8324	  ;;
8325	pgf77* | pgf90* | pgf95* | pgfortran*)
8326					# Portland Group f77 and f90 compilers
8327	  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'
8328	  tmp_addflag=' $pic_flag -Mnomain' ;;
8329	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8330	  tmp_addflag=' -i_dynamic' ;;
8331	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8332	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8333	ifc* | ifort*)			# Intel Fortran compiler
8334	  tmp_addflag=' -nofor_main' ;;
8335	lf95*)				# Lahey Fortran 8.1
8336	  whole_archive_flag_spec=
8337	  tmp_sharedflag='--shared' ;;
8338	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8339	  tmp_sharedflag='-qmkshrobj'
8340	  tmp_addflag= ;;
8341	nvcc*)	# Cuda Compiler Driver 2.2
8342	  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'
8343	  compiler_needs_object=yes
8344	  ;;
8345	esac
8346	case `$CC -V 2>&1 | sed 5q` in
8347	*Sun\ C*)			# Sun C 5.9
8348	  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'
8349	  compiler_needs_object=yes
8350	  tmp_sharedflag='-G' ;;
8351	*Sun\ F*)			# Sun Fortran 8.3
8352	  tmp_sharedflag='-G' ;;
8353	esac
8354	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355
8356        if test "x$supports_anon_versioning" = xyes; then
8357          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8358	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8359	    echo "local: *; };" >> $output_objdir/$libname.ver~
8360	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8361        fi
8362
8363	case $cc_basename in
8364	xlf* | bgf* | bgxlf* | mpixlf*)
8365	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8366	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8367	  hardcode_libdir_flag_spec=
8368	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8369	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8370	  if test "x$supports_anon_versioning" = xyes; then
8371	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8372	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8373	      echo "local: *; };" >> $output_objdir/$libname.ver~
8374	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8375	  fi
8376	  ;;
8377	esac
8378      else
8379        ld_shlibs=no
8380      fi
8381      ;;
8382
8383    netbsd*)
8384      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8385	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8386	wlarc=
8387      else
8388	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8389	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8390      fi
8391      ;;
8392
8393    solaris*)
8394      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8395	ld_shlibs=no
8396	cat <<_LT_EOF 1>&2
8397
8398*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8399*** create shared libraries on Solaris systems.  Therefore, libtool
8400*** is disabling shared libraries support.  We urge you to upgrade GNU
8401*** binutils to release 2.9.1 or newer.  Another option is to modify
8402*** your PATH or compiler configuration so that the native linker is
8403*** used, and then restart.
8404
8405_LT_EOF
8406      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8407	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409      else
8410	ld_shlibs=no
8411      fi
8412      ;;
8413
8414    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8415      case `$LD -v 2>&1` in
8416        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8417	ld_shlibs=no
8418	cat <<_LT_EOF 1>&2
8419
8420*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8421*** reliably create shared libraries on SCO systems.  Therefore, libtool
8422*** is disabling shared libraries support.  We urge you to upgrade GNU
8423*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8424*** your PATH or compiler configuration so that the native linker is
8425*** used, and then restart.
8426
8427_LT_EOF
8428	;;
8429	*)
8430	  # For security reasons, it is highly recommended that you always
8431	  # use absolute paths for naming shared libraries, and exclude the
8432	  # DT_RUNPATH tag from executables and libraries.  But doing so
8433	  # requires that you compile everything twice, which is a pain.
8434	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8435	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8438	  else
8439	    ld_shlibs=no
8440	  fi
8441	;;
8442      esac
8443      ;;
8444
8445    sunos4*)
8446      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8447      wlarc=
8448      hardcode_direct=yes
8449      hardcode_shlibpath_var=no
8450      ;;
8451
8452    *)
8453      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8455	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8456      else
8457	ld_shlibs=no
8458      fi
8459      ;;
8460    esac
8461
8462    if test "$ld_shlibs" = no; then
8463      runpath_var=
8464      hardcode_libdir_flag_spec=
8465      export_dynamic_flag_spec=
8466      whole_archive_flag_spec=
8467    fi
8468  else
8469    # PORTME fill in a description of your system's linker (not GNU ld)
8470    case $host_os in
8471    aix3*)
8472      allow_undefined_flag=unsupported
8473      always_export_symbols=yes
8474      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'
8475      # Note: this linker hardcodes the directories in LIBPATH if there
8476      # are no directories specified by -L.
8477      hardcode_minus_L=yes
8478      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8479	# Neither direct hardcoding nor static linking is supported with a
8480	# broken collect2.
8481	hardcode_direct=unsupported
8482      fi
8483      ;;
8484
8485    aix[4-9]*)
8486      if test "$host_cpu" = ia64; then
8487	# On IA64, the linker does run time linking by default, so we don't
8488	# have to do anything special.
8489	aix_use_runtimelinking=no
8490	exp_sym_flag='-Bexport'
8491	no_entry_flag=""
8492      else
8493	# If we're using GNU nm, then we don't want the "-C" option.
8494	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8495	# Also, AIX nm treats weak defined symbols like other global
8496	# defined symbols, whereas GNU nm marks them as "W".
8497	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8498	  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'
8499	else
8500	  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'
8501	fi
8502	aix_use_runtimelinking=no
8503
8504	# Test if we are trying to use run time linking or normal
8505	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8506	# need to do runtime linking.
8507	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8508	  for ld_flag in $LDFLAGS; do
8509	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8510	    aix_use_runtimelinking=yes
8511	    break
8512	  fi
8513	  done
8514	  ;;
8515	esac
8516
8517	exp_sym_flag='-bexport'
8518	no_entry_flag='-bnoentry'
8519      fi
8520
8521      # When large executables or shared objects are built, AIX ld can
8522      # have problems creating the table of contents.  If linking a library
8523      # or program results in "error TOC overflow" add -mminimal-toc to
8524      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8525      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8526
8527      archive_cmds=''
8528      hardcode_direct=yes
8529      hardcode_direct_absolute=yes
8530      hardcode_libdir_separator=':'
8531      link_all_deplibs=yes
8532      file_list_spec='${wl}-f,'
8533
8534      if test "$GCC" = yes; then
8535	case $host_os in aix4.[012]|aix4.[012].*)
8536	# We only want to do this on AIX 4.2 and lower, the check
8537	# below for broken collect2 doesn't work under 4.3+
8538	  collect2name=`${CC} -print-prog-name=collect2`
8539	  if test -f "$collect2name" &&
8540	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8541	  then
8542	  # We have reworked collect2
8543	  :
8544	  else
8545	  # We have old collect2
8546	  hardcode_direct=unsupported
8547	  # It fails to find uninstalled libraries when the uninstalled
8548	  # path is not listed in the libpath.  Setting hardcode_minus_L
8549	  # to unsupported forces relinking
8550	  hardcode_minus_L=yes
8551	  hardcode_libdir_flag_spec='-L$libdir'
8552	  hardcode_libdir_separator=
8553	  fi
8554	  ;;
8555	esac
8556	shared_flag='-shared'
8557	if test "$aix_use_runtimelinking" = yes; then
8558	  shared_flag="$shared_flag "'${wl}-G'
8559	fi
8560      else
8561	# not using gcc
8562	if test "$host_cpu" = ia64; then
8563	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8564	# chokes on -Wl,-G. The following line is correct:
8565	  shared_flag='-G'
8566	else
8567	  if test "$aix_use_runtimelinking" = yes; then
8568	    shared_flag='${wl}-G'
8569	  else
8570	    shared_flag='${wl}-bM:SRE'
8571	  fi
8572	fi
8573      fi
8574
8575      export_dynamic_flag_spec='${wl}-bexpall'
8576      # It seems that -bexpall does not export symbols beginning with
8577      # underscore (_), so it is better to generate a list of symbols to export.
8578      always_export_symbols=yes
8579      if test "$aix_use_runtimelinking" = yes; then
8580	# Warning - without using the other runtime loading flags (-brtl),
8581	# -berok will link without error, but may produce a broken library.
8582	allow_undefined_flag='-berok'
8583        # Determine the default libpath from the value encoded in an
8584        # empty executable.
8585        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587
8588int
8589main ()
8590{
8591
8592  ;
8593  return 0;
8594}
8595_ACEOF
8596if ac_fn_c_try_link "$LINENO"; then :
8597
8598lt_aix_libpath_sed='
8599    /Import File Strings/,/^$/ {
8600	/^0/ {
8601	    s/^0  *\(.*\)$/\1/
8602	    p
8603	}
8604    }'
8605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8606# Check for a 64-bit object if we didn't find anything.
8607if test -z "$aix_libpath"; then
8608  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8609fi
8610fi
8611rm -f core conftest.err conftest.$ac_objext \
8612    conftest$ac_exeext conftest.$ac_ext
8613if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8614
8615        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616        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"
8617      else
8618	if test "$host_cpu" = ia64; then
8619	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8620	  allow_undefined_flag="-z nodefs"
8621	  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"
8622	else
8623	 # Determine the default libpath from the value encoded in an
8624	 # empty executable.
8625	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h.  */
8627
8628int
8629main ()
8630{
8631
8632  ;
8633  return 0;
8634}
8635_ACEOF
8636if ac_fn_c_try_link "$LINENO"; then :
8637
8638lt_aix_libpath_sed='
8639    /Import File Strings/,/^$/ {
8640	/^0/ {
8641	    s/^0  *\(.*\)$/\1/
8642	    p
8643	}
8644    }'
8645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646# Check for a 64-bit object if we didn't find anything.
8647if test -z "$aix_libpath"; then
8648  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8649fi
8650fi
8651rm -f core conftest.err conftest.$ac_objext \
8652    conftest$ac_exeext conftest.$ac_ext
8653if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8654
8655	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8656	  # Warning - without using the other run time loading flags,
8657	  # -berok will link without error, but may produce a broken library.
8658	  no_undefined_flag=' ${wl}-bernotok'
8659	  allow_undefined_flag=' ${wl}-berok'
8660	  if test "$with_gnu_ld" = yes; then
8661	    # We only use this code for GNU lds that support --whole-archive.
8662	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8663	  else
8664	    # Exported symbols can be pulled into shared objects from archives
8665	    whole_archive_flag_spec='$convenience'
8666	  fi
8667	  archive_cmds_need_lc=yes
8668	  # This is similar to how AIX traditionally builds its shared libraries.
8669	  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'
8670	fi
8671      fi
8672      ;;
8673
8674    amigaos*)
8675      case $host_cpu in
8676      powerpc)
8677            # see comment about AmigaOS4 .so support
8678            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679            archive_expsym_cmds=''
8680        ;;
8681      m68k)
8682            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)'
8683            hardcode_libdir_flag_spec='-L$libdir'
8684            hardcode_minus_L=yes
8685        ;;
8686      esac
8687      ;;
8688
8689    bsdi[45]*)
8690      export_dynamic_flag_spec=-rdynamic
8691      ;;
8692
8693    cygwin* | mingw* | pw32* | cegcc*)
8694      # When not using gcc, we currently assume that we are using
8695      # Microsoft Visual C++.
8696      # hardcode_libdir_flag_spec is actually meaningless, as there is
8697      # no search path for DLLs.
8698      hardcode_libdir_flag_spec=' '
8699      allow_undefined_flag=unsupported
8700      # Tell ltmain to make .lib files, not .a files.
8701      libext=lib
8702      # Tell ltmain to make .dll files, not .so files.
8703      shrext_cmds=".dll"
8704      # FIXME: Setting linknames here is a bad hack.
8705      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8706      # The linker will automatically build a .lib file if we build a DLL.
8707      old_archive_from_new_cmds='true'
8708      # FIXME: Should let the user specify the lib program.
8709      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8710      fix_srcfile_path='`cygpath -w "$srcfile"`'
8711      enable_shared_with_static_runtimes=yes
8712      ;;
8713
8714    darwin* | rhapsody*)
8715
8716
8717  archive_cmds_need_lc=no
8718  hardcode_direct=no
8719  hardcode_automatic=yes
8720  hardcode_shlibpath_var=unsupported
8721  if test "$lt_cv_ld_force_load" = "yes"; then
8722    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\"`'
8723  else
8724    whole_archive_flag_spec=''
8725  fi
8726  link_all_deplibs=yes
8727  allow_undefined_flag="$_lt_dar_allow_undefined"
8728  case $cc_basename in
8729     ifort*) _lt_dar_can_shared=yes ;;
8730     *) _lt_dar_can_shared=$GCC ;;
8731  esac
8732  if test "$_lt_dar_can_shared" = "yes"; then
8733    output_verbose_link_cmd=func_echo_all
8734    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8735    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8736    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}"
8737    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}"
8738
8739  else
8740  ld_shlibs=no
8741  fi
8742
8743      ;;
8744
8745    dgux*)
8746      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747      hardcode_libdir_flag_spec='-L$libdir'
8748      hardcode_shlibpath_var=no
8749      ;;
8750
8751    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8752    # support.  Future versions do this automatically, but an explicit c++rt0.o
8753    # does not break anything, and helps significantly (at the cost of a little
8754    # extra space).
8755    freebsd2.2*)
8756      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8757      hardcode_libdir_flag_spec='-R$libdir'
8758      hardcode_direct=yes
8759      hardcode_shlibpath_var=no
8760      ;;
8761
8762    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8763    freebsd2.*)
8764      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8765      hardcode_direct=yes
8766      hardcode_minus_L=yes
8767      hardcode_shlibpath_var=no
8768      ;;
8769
8770    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8771    freebsd* | dragonfly*)
8772      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8773      hardcode_libdir_flag_spec='-R$libdir'
8774      hardcode_direct=yes
8775      hardcode_shlibpath_var=no
8776      ;;
8777
8778    hpux9*)
8779      if test "$GCC" = yes; then
8780	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'
8781      else
8782	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'
8783      fi
8784      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8785      hardcode_libdir_separator=:
8786      hardcode_direct=yes
8787
8788      # hardcode_minus_L: Not really in the search PATH,
8789      # but as the default location of the library.
8790      hardcode_minus_L=yes
8791      export_dynamic_flag_spec='${wl}-E'
8792      ;;
8793
8794    hpux10*)
8795      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8796	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8797      else
8798	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8799      fi
8800      if test "$with_gnu_ld" = no; then
8801	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8802	hardcode_libdir_flag_spec_ld='+b $libdir'
8803	hardcode_libdir_separator=:
8804	hardcode_direct=yes
8805	hardcode_direct_absolute=yes
8806	export_dynamic_flag_spec='${wl}-E'
8807	# hardcode_minus_L: Not really in the search PATH,
8808	# but as the default location of the library.
8809	hardcode_minus_L=yes
8810      fi
8811      ;;
8812
8813    hpux11*)
8814      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8815	case $host_cpu in
8816	hppa*64*)
8817	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818	  ;;
8819	ia64*)
8820	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8821	  ;;
8822	*)
8823	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8824	  ;;
8825	esac
8826      else
8827	case $host_cpu in
8828	hppa*64*)
8829	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830	  ;;
8831	ia64*)
8832	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8833	  ;;
8834	*)
8835
8836	  # Older versions of the 11.00 compiler do not understand -b yet
8837	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8838	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8839$as_echo_n "checking if $CC understands -b... " >&6; }
8840if test "${lt_cv_prog_compiler__b+set}" = set; then :
8841  $as_echo_n "(cached) " >&6
8842else
8843  lt_cv_prog_compiler__b=no
8844   save_LDFLAGS="$LDFLAGS"
8845   LDFLAGS="$LDFLAGS -b"
8846   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8847   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8848     # The linker can only warn and ignore the option if not recognized
8849     # So say no if there are warnings
8850     if test -s conftest.err; then
8851       # Append any errors to the config.log.
8852       cat conftest.err 1>&5
8853       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8854       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8855       if diff conftest.exp conftest.er2 >/dev/null; then
8856         lt_cv_prog_compiler__b=yes
8857       fi
8858     else
8859       lt_cv_prog_compiler__b=yes
8860     fi
8861   fi
8862   $RM -r conftest*
8863   LDFLAGS="$save_LDFLAGS"
8864
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8867$as_echo "$lt_cv_prog_compiler__b" >&6; }
8868
8869if test x"$lt_cv_prog_compiler__b" = xyes; then
8870    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8871else
8872    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8873fi
8874
8875	  ;;
8876	esac
8877      fi
8878      if test "$with_gnu_ld" = no; then
8879	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8880	hardcode_libdir_separator=:
8881
8882	case $host_cpu in
8883	hppa*64*|ia64*)
8884	  hardcode_direct=no
8885	  hardcode_shlibpath_var=no
8886	  ;;
8887	*)
8888	  hardcode_direct=yes
8889	  hardcode_direct_absolute=yes
8890	  export_dynamic_flag_spec='${wl}-E'
8891
8892	  # hardcode_minus_L: Not really in the search PATH,
8893	  # but as the default location of the library.
8894	  hardcode_minus_L=yes
8895	  ;;
8896	esac
8897      fi
8898      ;;
8899
8900    irix5* | irix6* | nonstopux*)
8901      if test "$GCC" = yes; then
8902	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'
8903	# Try to use the -exported_symbol ld option, if it does not
8904	# work, assume that -exports_file does not work either and
8905	# implicitly export all symbols.
8906        save_LDFLAGS="$LDFLAGS"
8907        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8908        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h.  */
8910int foo(void) {}
8911_ACEOF
8912if ac_fn_c_try_link "$LINENO"; then :
8913  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'
8914
8915fi
8916rm -f core conftest.err conftest.$ac_objext \
8917    conftest$ac_exeext conftest.$ac_ext
8918        LDFLAGS="$save_LDFLAGS"
8919      else
8920	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'
8921	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'
8922      fi
8923      archive_cmds_need_lc='no'
8924      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8925      hardcode_libdir_separator=:
8926      inherit_rpath=yes
8927      link_all_deplibs=yes
8928      ;;
8929
8930    netbsd*)
8931      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8932	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8933      else
8934	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8935      fi
8936      hardcode_libdir_flag_spec='-R$libdir'
8937      hardcode_direct=yes
8938      hardcode_shlibpath_var=no
8939      ;;
8940
8941    newsos6)
8942      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943      hardcode_direct=yes
8944      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945      hardcode_libdir_separator=:
8946      hardcode_shlibpath_var=no
8947      ;;
8948
8949    *nto* | *qnx*)
8950      ;;
8951
8952    openbsd*)
8953      if test -f /usr/libexec/ld.so; then
8954	hardcode_direct=yes
8955	hardcode_shlibpath_var=no
8956	hardcode_direct_absolute=yes
8957	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8958	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8959	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8960	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8961	  export_dynamic_flag_spec='${wl}-E'
8962	else
8963	  case $host_os in
8964	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8965	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8966	     hardcode_libdir_flag_spec='-R$libdir'
8967	     ;;
8968	   *)
8969	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8970	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8971	     ;;
8972	  esac
8973	fi
8974      else
8975	ld_shlibs=no
8976      fi
8977      ;;
8978
8979    os2*)
8980      hardcode_libdir_flag_spec='-L$libdir'
8981      hardcode_minus_L=yes
8982      allow_undefined_flag=unsupported
8983      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'
8984      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8985      ;;
8986
8987    osf3*)
8988      if test "$GCC" = yes; then
8989	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8990	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'
8991      else
8992	allow_undefined_flag=' -expect_unresolved \*'
8993	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'
8994      fi
8995      archive_cmds_need_lc='no'
8996      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997      hardcode_libdir_separator=:
8998      ;;
8999
9000    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9001      if test "$GCC" = yes; then
9002	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9003	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'
9004	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9005      else
9006	allow_undefined_flag=' -expect_unresolved \*'
9007	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'
9008	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~
9009	$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'
9010
9011	# Both c and cxx compiler support -rpath directly
9012	hardcode_libdir_flag_spec='-rpath $libdir'
9013      fi
9014      archive_cmds_need_lc='no'
9015      hardcode_libdir_separator=:
9016      ;;
9017
9018    solaris*)
9019      no_undefined_flag=' -z defs'
9020      if test "$GCC" = yes; then
9021	wlarc='${wl}'
9022	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9024	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9025      else
9026	case `$CC -V 2>&1` in
9027	*"Compilers 5.0"*)
9028	  wlarc=''
9029	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9031	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9032	  ;;
9033	*)
9034	  wlarc='${wl}'
9035	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9036	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9037	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9038	  ;;
9039	esac
9040      fi
9041      hardcode_libdir_flag_spec='-R$libdir'
9042      hardcode_shlibpath_var=no
9043      case $host_os in
9044      solaris2.[0-5] | solaris2.[0-5].*) ;;
9045      *)
9046	# The compiler driver will combine and reorder linker options,
9047	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9048	# but is careful enough not to reorder.
9049	# Supported since Solaris 2.6 (maybe 2.5.1?)
9050	if test "$GCC" = yes; then
9051	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9052	else
9053	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9054	fi
9055	;;
9056      esac
9057      link_all_deplibs=yes
9058      ;;
9059
9060    sunos4*)
9061      if test "x$host_vendor" = xsequent; then
9062	# Use $CC to link under sequent, because it throws in some extra .o
9063	# files that make .init and .fini sections work.
9064	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9065      else
9066	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9067      fi
9068      hardcode_libdir_flag_spec='-L$libdir'
9069      hardcode_direct=yes
9070      hardcode_minus_L=yes
9071      hardcode_shlibpath_var=no
9072      ;;
9073
9074    sysv4)
9075      case $host_vendor in
9076	sni)
9077	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9078	  hardcode_direct=yes # is this really true???
9079	;;
9080	siemens)
9081	  ## LD is ld it makes a PLAMLIB
9082	  ## CC just makes a GrossModule.
9083	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9084	  reload_cmds='$CC -r -o $output$reload_objs'
9085	  hardcode_direct=no
9086        ;;
9087	motorola)
9088	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9089	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9090	;;
9091      esac
9092      runpath_var='LD_RUN_PATH'
9093      hardcode_shlibpath_var=no
9094      ;;
9095
9096    sysv4.3*)
9097      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098      hardcode_shlibpath_var=no
9099      export_dynamic_flag_spec='-Bexport'
9100      ;;
9101
9102    sysv4*MP*)
9103      if test -d /usr/nec; then
9104	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105	hardcode_shlibpath_var=no
9106	runpath_var=LD_RUN_PATH
9107	hardcode_runpath_var=yes
9108	ld_shlibs=yes
9109      fi
9110      ;;
9111
9112    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9113      no_undefined_flag='${wl}-z,text'
9114      archive_cmds_need_lc=no
9115      hardcode_shlibpath_var=no
9116      runpath_var='LD_RUN_PATH'
9117
9118      if test "$GCC" = yes; then
9119	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121      else
9122	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124      fi
9125      ;;
9126
9127    sysv5* | sco3.2v5* | sco5v6*)
9128      # Note: We can NOT use -z defs as we might desire, because we do not
9129      # link with -lc, and that would cause any symbols used from libc to
9130      # always be unresolved, which means just about no library would
9131      # ever link correctly.  If we're not using GNU ld we use -z text
9132      # though, which does catch some bad symbols but isn't as heavy-handed
9133      # as -z defs.
9134      no_undefined_flag='${wl}-z,text'
9135      allow_undefined_flag='${wl}-z,nodefs'
9136      archive_cmds_need_lc=no
9137      hardcode_shlibpath_var=no
9138      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9139      hardcode_libdir_separator=':'
9140      link_all_deplibs=yes
9141      export_dynamic_flag_spec='${wl}-Bexport'
9142      runpath_var='LD_RUN_PATH'
9143
9144      if test "$GCC" = yes; then
9145	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147      else
9148	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150      fi
9151      ;;
9152
9153    uts4*)
9154      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9155      hardcode_libdir_flag_spec='-L$libdir'
9156      hardcode_shlibpath_var=no
9157      ;;
9158
9159    *)
9160      ld_shlibs=no
9161      ;;
9162    esac
9163
9164    if test x$host_vendor = xsni; then
9165      case $host in
9166      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9167	export_dynamic_flag_spec='${wl}-Blargedynsym'
9168	;;
9169      esac
9170    fi
9171  fi
9172
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9174$as_echo "$ld_shlibs" >&6; }
9175test "$ld_shlibs" = no && can_build_shared=no
9176
9177with_gnu_ld=$with_gnu_ld
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193#
9194# Do we need to explicitly link libc?
9195#
9196case "x$archive_cmds_need_lc" in
9197x|xyes)
9198  # Assume -lc should be added
9199  archive_cmds_need_lc=yes
9200
9201  if test "$enable_shared" = yes && test "$GCC" = yes; then
9202    case $archive_cmds in
9203    *'~'*)
9204      # FIXME: we may have to deal with multi-command sequences.
9205      ;;
9206    '$CC '*)
9207      # Test whether the compiler implicitly links with -lc since on some
9208      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9209      # to ld, don't add -lc before -lgcc.
9210      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9211$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9212if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  $RM conftest*
9216	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9217
9218	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9219  (eval $ac_compile) 2>&5
9220  ac_status=$?
9221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9222  test $ac_status = 0; } 2>conftest.err; then
9223	  soname=conftest
9224	  lib=conftest
9225	  libobjs=conftest.$ac_objext
9226	  deplibs=
9227	  wl=$lt_prog_compiler_wl
9228	  pic_flag=$lt_prog_compiler_pic
9229	  compiler_flags=-v
9230	  linker_flags=-v
9231	  verstring=
9232	  output_objdir=.
9233	  libname=conftest
9234	  lt_save_allow_undefined_flag=$allow_undefined_flag
9235	  allow_undefined_flag=
9236	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9237  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9238  ac_status=$?
9239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9240  test $ac_status = 0; }
9241	  then
9242	    lt_cv_archive_cmds_need_lc=no
9243	  else
9244	    lt_cv_archive_cmds_need_lc=yes
9245	  fi
9246	  allow_undefined_flag=$lt_save_allow_undefined_flag
9247	else
9248	  cat conftest.err 1>&5
9249	fi
9250	$RM conftest*
9251
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9254$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9255      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9256      ;;
9257    esac
9258  fi
9259  ;;
9260esac
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9419$as_echo_n "checking dynamic linker characteristics... " >&6; }
9420
9421if test "$GCC" = yes; then
9422  case $host_os in
9423    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9424    *) lt_awk_arg="/^libraries:/" ;;
9425  esac
9426  case $host_os in
9427    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9428    *) lt_sed_strip_eq="s,=/,/,g" ;;
9429  esac
9430  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9431  case $lt_search_path_spec in
9432  *\;*)
9433    # if the path contains ";" then we assume it to be the separator
9434    # otherwise default to the standard path separator (i.e. ":") - it is
9435    # assumed that no part of a normal pathname contains ";" but that should
9436    # okay in the real world where ";" in dirpaths is itself problematic.
9437    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9438    ;;
9439  *)
9440    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9441    ;;
9442  esac
9443  # Ok, now we have the path, separated by spaces, we can step through it
9444  # and add multilib dir if necessary.
9445  lt_tmp_lt_search_path_spec=
9446  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9447  for lt_sys_path in $lt_search_path_spec; do
9448    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9449      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9450    else
9451      test -d "$lt_sys_path" && \
9452	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9453    fi
9454  done
9455  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9456BEGIN {RS=" "; FS="/|\n";} {
9457  lt_foo="";
9458  lt_count=0;
9459  for (lt_i = NF; lt_i > 0; lt_i--) {
9460    if ($lt_i != "" && $lt_i != ".") {
9461      if ($lt_i == "..") {
9462        lt_count++;
9463      } else {
9464        if (lt_count == 0) {
9465          lt_foo="/" $lt_i lt_foo;
9466        } else {
9467          lt_count--;
9468        }
9469      }
9470    }
9471  }
9472  if (lt_foo != "") { lt_freq[lt_foo]++; }
9473  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9474}'`
9475  # AWK program above erroneously prepends '/' to C:/dos/paths
9476  # for these hosts.
9477  case $host_os in
9478    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9479      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9480  esac
9481  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9482else
9483  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9484fi
9485library_names_spec=
9486libname_spec='lib$name'
9487soname_spec=
9488shrext_cmds=".so"
9489postinstall_cmds=
9490postuninstall_cmds=
9491finish_cmds=
9492finish_eval=
9493shlibpath_var=
9494shlibpath_overrides_runpath=unknown
9495version_type=none
9496dynamic_linker="$host_os ld.so"
9497sys_lib_dlsearch_path_spec="/lib /usr/lib"
9498need_lib_prefix=unknown
9499hardcode_into_libs=no
9500
9501# when you set need_version to no, make sure it does not cause -set_version
9502# flags to be left without arguments
9503need_version=unknown
9504
9505case $host_os in
9506aix3*)
9507  version_type=linux
9508  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9509  shlibpath_var=LIBPATH
9510
9511  # AIX 3 has no versioning support, so we append a major version to the name.
9512  soname_spec='${libname}${release}${shared_ext}$major'
9513  ;;
9514
9515aix[4-9]*)
9516  version_type=linux
9517  need_lib_prefix=no
9518  need_version=no
9519  hardcode_into_libs=yes
9520  if test "$host_cpu" = ia64; then
9521    # AIX 5 supports IA64
9522    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9523    shlibpath_var=LD_LIBRARY_PATH
9524  else
9525    # With GCC up to 2.95.x, collect2 would create an import file
9526    # for dependence libraries.  The import file would start with
9527    # the line `#! .'.  This would cause the generated library to
9528    # depend on `.', always an invalid library.  This was fixed in
9529    # development snapshots of GCC prior to 3.0.
9530    case $host_os in
9531      aix4 | aix4.[01] | aix4.[01].*)
9532      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9533	   echo ' yes '
9534	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9535	:
9536      else
9537	can_build_shared=no
9538      fi
9539      ;;
9540    esac
9541    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9542    # soname into executable. Probably we can add versioning support to
9543    # collect2, so additional links can be useful in future.
9544    if test "$aix_use_runtimelinking" = yes; then
9545      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9546      # instead of lib<name>.a to let people know that these are not
9547      # typical AIX shared libraries.
9548      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549    else
9550      # We preserve .a as extension for shared libraries through AIX4.2
9551      # and later when we are not doing run time linking.
9552      library_names_spec='${libname}${release}.a $libname.a'
9553      soname_spec='${libname}${release}${shared_ext}$major'
9554    fi
9555    shlibpath_var=LIBPATH
9556  fi
9557  ;;
9558
9559amigaos*)
9560  case $host_cpu in
9561  powerpc)
9562    # Since July 2007 AmigaOS4 officially supports .so libraries.
9563    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9564    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565    ;;
9566  m68k)
9567    library_names_spec='$libname.ixlibrary $libname.a'
9568    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9569    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'
9570    ;;
9571  esac
9572  ;;
9573
9574beos*)
9575  library_names_spec='${libname}${shared_ext}'
9576  dynamic_linker="$host_os ld.so"
9577  shlibpath_var=LIBRARY_PATH
9578  ;;
9579
9580bsdi[45]*)
9581  version_type=linux
9582  need_version=no
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584  soname_spec='${libname}${release}${shared_ext}$major'
9585  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9586  shlibpath_var=LD_LIBRARY_PATH
9587  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9588  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9589  # the default ld.so.conf also contains /usr/contrib/lib and
9590  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9591  # libtool to hard-code these into programs
9592  ;;
9593
9594cygwin* | mingw* | pw32* | cegcc*)
9595  version_type=windows
9596  shrext_cmds=".dll"
9597  need_version=no
9598  need_lib_prefix=no
9599
9600  case $GCC,$host_os in
9601  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9602    library_names_spec='$libname.dll.a'
9603    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9604    postinstall_cmds='base_file=`basename \${file}`~
9605      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9606      dldir=$destdir/`dirname \$dlpath`~
9607      test -d \$dldir || mkdir -p \$dldir~
9608      $install_prog $dir/$dlname \$dldir/$dlname~
9609      chmod a+x \$dldir/$dlname~
9610      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9611        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9612      fi'
9613    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9614      dlpath=$dir/\$dldll~
9615       $RM \$dlpath'
9616    shlibpath_overrides_runpath=yes
9617
9618    case $host_os in
9619    cygwin*)
9620      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9621      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9622
9623      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9624      ;;
9625    mingw* | cegcc*)
9626      # MinGW DLLs use traditional 'lib' prefix
9627      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9628      ;;
9629    pw32*)
9630      # pw32 DLLs use 'pw' prefix rather than 'lib'
9631      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9632      ;;
9633    esac
9634    ;;
9635
9636  *)
9637    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9638    ;;
9639  esac
9640  dynamic_linker='Win32 ld.exe'
9641  # FIXME: first we should search . and the directory the executable is in
9642  shlibpath_var=PATH
9643  ;;
9644
9645darwin* | rhapsody*)
9646  dynamic_linker="$host_os dyld"
9647  version_type=darwin
9648  need_lib_prefix=no
9649  need_version=no
9650  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9651  soname_spec='${libname}${release}${major}$shared_ext'
9652  shlibpath_overrides_runpath=yes
9653  shlibpath_var=DYLD_LIBRARY_PATH
9654  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9655
9656  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9657  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9658  ;;
9659
9660dgux*)
9661  version_type=linux
9662  need_lib_prefix=no
9663  need_version=no
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  shlibpath_var=LD_LIBRARY_PATH
9667  ;;
9668
9669freebsd* | dragonfly*)
9670  # DragonFly does not have aout.  When/if they implement a new
9671  # versioning mechanism, adjust this.
9672  if test -x /usr/bin/objformat; then
9673    objformat=`/usr/bin/objformat`
9674  else
9675    case $host_os in
9676    freebsd[23].*) objformat=aout ;;
9677    *) objformat=elf ;;
9678    esac
9679  fi
9680  version_type=freebsd-$objformat
9681  case $version_type in
9682    freebsd-elf*)
9683      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9684      need_version=no
9685      need_lib_prefix=no
9686      ;;
9687    freebsd-*)
9688      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9689      need_version=yes
9690      ;;
9691  esac
9692  shlibpath_var=LD_LIBRARY_PATH
9693  case $host_os in
9694  freebsd2.*)
9695    shlibpath_overrides_runpath=yes
9696    ;;
9697  freebsd3.[01]* | freebsdelf3.[01]*)
9698    shlibpath_overrides_runpath=yes
9699    hardcode_into_libs=yes
9700    ;;
9701  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9702  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9703    shlibpath_overrides_runpath=no
9704    hardcode_into_libs=yes
9705    ;;
9706  *) # from 4.6 on, and DragonFly
9707    shlibpath_overrides_runpath=yes
9708    hardcode_into_libs=yes
9709    ;;
9710  esac
9711  ;;
9712
9713gnu*)
9714  version_type=linux
9715  need_lib_prefix=no
9716  need_version=no
9717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9718  soname_spec='${libname}${release}${shared_ext}$major'
9719  shlibpath_var=LD_LIBRARY_PATH
9720  hardcode_into_libs=yes
9721  ;;
9722
9723haiku*)
9724  version_type=linux
9725  need_lib_prefix=no
9726  need_version=no
9727  dynamic_linker="$host_os runtime_loader"
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9729  soname_spec='${libname}${release}${shared_ext}$major'
9730  shlibpath_var=LIBRARY_PATH
9731  shlibpath_overrides_runpath=yes
9732  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9733  hardcode_into_libs=yes
9734  ;;
9735
9736hpux9* | hpux10* | hpux11*)
9737  # Give a soname corresponding to the major version so that dld.sl refuses to
9738  # link against other versions.
9739  version_type=sunos
9740  need_lib_prefix=no
9741  need_version=no
9742  case $host_cpu in
9743  ia64*)
9744    shrext_cmds='.so'
9745    hardcode_into_libs=yes
9746    dynamic_linker="$host_os dld.so"
9747    shlibpath_var=LD_LIBRARY_PATH
9748    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9749    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750    soname_spec='${libname}${release}${shared_ext}$major'
9751    if test "X$HPUX_IA64_MODE" = X32; then
9752      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9753    else
9754      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9755    fi
9756    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9757    ;;
9758  hppa*64*)
9759    shrext_cmds='.sl'
9760    hardcode_into_libs=yes
9761    dynamic_linker="$host_os dld.sl"
9762    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9763    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9764    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765    soname_spec='${libname}${release}${shared_ext}$major'
9766    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9767    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9768    ;;
9769  *)
9770    shrext_cmds='.sl'
9771    dynamic_linker="$host_os dld.sl"
9772    shlibpath_var=SHLIB_PATH
9773    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9774    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775    soname_spec='${libname}${release}${shared_ext}$major'
9776    ;;
9777  esac
9778  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9779  postinstall_cmds='chmod 555 $lib'
9780  # or fails outright, so override atomically:
9781  install_override_mode=555
9782  ;;
9783
9784interix[3-9]*)
9785  version_type=linux
9786  need_lib_prefix=no
9787  need_version=no
9788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9789  soname_spec='${libname}${release}${shared_ext}$major'
9790  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9791  shlibpath_var=LD_LIBRARY_PATH
9792  shlibpath_overrides_runpath=no
9793  hardcode_into_libs=yes
9794  ;;
9795
9796irix5* | irix6* | nonstopux*)
9797  case $host_os in
9798    nonstopux*) version_type=nonstopux ;;
9799    *)
9800	if test "$lt_cv_prog_gnu_ld" = yes; then
9801		version_type=linux
9802	else
9803		version_type=irix
9804	fi ;;
9805  esac
9806  need_lib_prefix=no
9807  need_version=no
9808  soname_spec='${libname}${release}${shared_ext}$major'
9809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9810  case $host_os in
9811  irix5* | nonstopux*)
9812    libsuff= shlibsuff=
9813    ;;
9814  *)
9815    case $LD in # libtool.m4 will add one of these switches to LD
9816    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9817      libsuff= shlibsuff= libmagic=32-bit;;
9818    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9819      libsuff=32 shlibsuff=N32 libmagic=N32;;
9820    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9821      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9822    *) libsuff= shlibsuff= libmagic=never-match;;
9823    esac
9824    ;;
9825  esac
9826  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9827  shlibpath_overrides_runpath=no
9828  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9829  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9830  hardcode_into_libs=yes
9831  ;;
9832
9833# No shared lib support for Linux oldld, aout, or coff.
9834linux*oldld* | linux*aout* | linux*coff*)
9835  dynamic_linker=no
9836  ;;
9837
9838# This must be Linux ELF.
9839linux* | k*bsd*-gnu | kopensolaris*-gnu)
9840  version_type=linux
9841  need_lib_prefix=no
9842  need_version=no
9843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844  soname_spec='${libname}${release}${shared_ext}$major'
9845  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  shlibpath_overrides_runpath=no
9848
9849  # Some binutils ld are patched to set DT_RUNPATH
9850  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  lt_cv_shlibpath_overrides_runpath=no
9854    save_LDFLAGS=$LDFLAGS
9855    save_libdir=$libdir
9856    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9857	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9858    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h.  */
9860
9861int
9862main ()
9863{
9864
9865  ;
9866  return 0;
9867}
9868_ACEOF
9869if ac_fn_c_try_link "$LINENO"; then :
9870  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9871  lt_cv_shlibpath_overrides_runpath=yes
9872fi
9873fi
9874rm -f core conftest.err conftest.$ac_objext \
9875    conftest$ac_exeext conftest.$ac_ext
9876    LDFLAGS=$save_LDFLAGS
9877    libdir=$save_libdir
9878
9879fi
9880
9881  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9882
9883  # This implies no fast_install, which is unacceptable.
9884  # Some rework will be needed to allow for fast_install
9885  # before this can be enabled.
9886  hardcode_into_libs=yes
9887
9888  # Append ld.so.conf contents to the search path
9889  if test -f /etc/ld.so.conf; then
9890    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' ' '`
9891    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9892  fi
9893
9894  # We used to test for /lib/ld.so.1 and disable shared libraries on
9895  # powerpc, because MkLinux only supported shared libraries with the
9896  # GNU dynamic linker.  Since this was broken with cross compilers,
9897  # most powerpc-linux boxes support dynamic linking these days and
9898  # people can always --disable-shared, the test was removed, and we
9899  # assume the GNU/Linux dynamic linker is in use.
9900  dynamic_linker='GNU/Linux ld.so'
9901  ;;
9902
9903netbsd*)
9904  version_type=sunos
9905  need_lib_prefix=no
9906  need_version=no
9907  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9909    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9910    dynamic_linker='NetBSD (a.out) ld.so'
9911  else
9912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913    soname_spec='${libname}${release}${shared_ext}$major'
9914    dynamic_linker='NetBSD ld.elf_so'
9915  fi
9916  shlibpath_var=LD_LIBRARY_PATH
9917  shlibpath_overrides_runpath=yes
9918  hardcode_into_libs=yes
9919  ;;
9920
9921newsos6)
9922  version_type=linux
9923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924  shlibpath_var=LD_LIBRARY_PATH
9925  shlibpath_overrides_runpath=yes
9926  ;;
9927
9928*nto* | *qnx*)
9929  version_type=qnx
9930  need_lib_prefix=no
9931  need_version=no
9932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933  soname_spec='${libname}${release}${shared_ext}$major'
9934  shlibpath_var=LD_LIBRARY_PATH
9935  shlibpath_overrides_runpath=no
9936  hardcode_into_libs=yes
9937  dynamic_linker='ldqnx.so'
9938  ;;
9939
9940openbsd*)
9941  version_type=sunos
9942  sys_lib_dlsearch_path_spec="/usr/lib"
9943  need_lib_prefix=no
9944  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9945  case $host_os in
9946    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9947    *)				need_version=no  ;;
9948  esac
9949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9950  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9951  shlibpath_var=LD_LIBRARY_PATH
9952  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9953    case $host_os in
9954      openbsd2.[89] | openbsd2.[89].*)
9955	shlibpath_overrides_runpath=no
9956	;;
9957      *)
9958	shlibpath_overrides_runpath=yes
9959	;;
9960      esac
9961  else
9962    shlibpath_overrides_runpath=yes
9963  fi
9964  ;;
9965
9966os2*)
9967  libname_spec='$name'
9968  shrext_cmds=".dll"
9969  need_lib_prefix=no
9970  library_names_spec='$libname${shared_ext} $libname.a'
9971  dynamic_linker='OS/2 ld.exe'
9972  shlibpath_var=LIBPATH
9973  ;;
9974
9975osf3* | osf4* | osf5*)
9976  version_type=osf
9977  need_lib_prefix=no
9978  need_version=no
9979  soname_spec='${libname}${release}${shared_ext}$major'
9980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981  shlibpath_var=LD_LIBRARY_PATH
9982  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9983  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9984  ;;
9985
9986rdos*)
9987  dynamic_linker=no
9988  ;;
9989
9990solaris*)
9991  version_type=linux
9992  need_lib_prefix=no
9993  need_version=no
9994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995  soname_spec='${libname}${release}${shared_ext}$major'
9996  shlibpath_var=LD_LIBRARY_PATH
9997  shlibpath_overrides_runpath=yes
9998  hardcode_into_libs=yes
9999  # ldd complains unless libraries are executable
10000  postinstall_cmds='chmod +x $lib'
10001  ;;
10002
10003sunos4*)
10004  version_type=sunos
10005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10006  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10007  shlibpath_var=LD_LIBRARY_PATH
10008  shlibpath_overrides_runpath=yes
10009  if test "$with_gnu_ld" = yes; then
10010    need_lib_prefix=no
10011  fi
10012  need_version=yes
10013  ;;
10014
10015sysv4 | sysv4.3*)
10016  version_type=linux
10017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018  soname_spec='${libname}${release}${shared_ext}$major'
10019  shlibpath_var=LD_LIBRARY_PATH
10020  case $host_vendor in
10021    sni)
10022      shlibpath_overrides_runpath=no
10023      need_lib_prefix=no
10024      runpath_var=LD_RUN_PATH
10025      ;;
10026    siemens)
10027      need_lib_prefix=no
10028      ;;
10029    motorola)
10030      need_lib_prefix=no
10031      need_version=no
10032      shlibpath_overrides_runpath=no
10033      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10034      ;;
10035  esac
10036  ;;
10037
10038sysv4*MP*)
10039  if test -d /usr/nec ;then
10040    version_type=linux
10041    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10042    soname_spec='$libname${shared_ext}.$major'
10043    shlibpath_var=LD_LIBRARY_PATH
10044  fi
10045  ;;
10046
10047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10048  version_type=freebsd-elf
10049  need_lib_prefix=no
10050  need_version=no
10051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10052  soname_spec='${libname}${release}${shared_ext}$major'
10053  shlibpath_var=LD_LIBRARY_PATH
10054  shlibpath_overrides_runpath=yes
10055  hardcode_into_libs=yes
10056  if test "$with_gnu_ld" = yes; then
10057    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10058  else
10059    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10060    case $host_os in
10061      sco3.2v5*)
10062        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10063	;;
10064    esac
10065  fi
10066  sys_lib_dlsearch_path_spec='/usr/lib'
10067  ;;
10068
10069tpf*)
10070  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10071  version_type=linux
10072  need_lib_prefix=no
10073  need_version=no
10074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075  shlibpath_var=LD_LIBRARY_PATH
10076  shlibpath_overrides_runpath=no
10077  hardcode_into_libs=yes
10078  ;;
10079
10080uts4*)
10081  version_type=linux
10082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083  soname_spec='${libname}${release}${shared_ext}$major'
10084  shlibpath_var=LD_LIBRARY_PATH
10085  ;;
10086
10087*)
10088  dynamic_linker=no
10089  ;;
10090esac
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10092$as_echo "$dynamic_linker" >&6; }
10093test "$dynamic_linker" = no && can_build_shared=no
10094
10095variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10096if test "$GCC" = yes; then
10097  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10098fi
10099
10100if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10101  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10102fi
10103if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10104  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10105fi
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10199$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10200hardcode_action=
10201if test -n "$hardcode_libdir_flag_spec" ||
10202   test -n "$runpath_var" ||
10203   test "X$hardcode_automatic" = "Xyes" ; then
10204
10205  # We can hardcode non-existent directories.
10206  if test "$hardcode_direct" != no &&
10207     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10208     # have to relink, otherwise we might link with an installed library
10209     # when we should be linking with a yet-to-be-installed one
10210     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10211     test "$hardcode_minus_L" != no; then
10212    # Linking always hardcodes the temporary library directory.
10213    hardcode_action=relink
10214  else
10215    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10216    hardcode_action=immediate
10217  fi
10218else
10219  # We cannot hardcode anything, or else we can only hardcode existing
10220  # directories.
10221  hardcode_action=unsupported
10222fi
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10224$as_echo "$hardcode_action" >&6; }
10225
10226if test "$hardcode_action" = relink ||
10227   test "$inherit_rpath" = yes; then
10228  # Fast installation is not supported
10229  enable_fast_install=no
10230elif test "$shlibpath_overrides_runpath" = yes ||
10231     test "$enable_shared" = no; then
10232  # Fast installation is not necessary
10233  enable_fast_install=needless
10234fi
10235
10236
10237
10238
10239
10240
10241  if test "x$enable_dlopen" != xyes; then
10242  enable_dlopen=unknown
10243  enable_dlopen_self=unknown
10244  enable_dlopen_self_static=unknown
10245else
10246  lt_cv_dlopen=no
10247  lt_cv_dlopen_libs=
10248
10249  case $host_os in
10250  beos*)
10251    lt_cv_dlopen="load_add_on"
10252    lt_cv_dlopen_libs=
10253    lt_cv_dlopen_self=yes
10254    ;;
10255
10256  mingw* | pw32* | cegcc*)
10257    lt_cv_dlopen="LoadLibrary"
10258    lt_cv_dlopen_libs=
10259    ;;
10260
10261  cygwin*)
10262    lt_cv_dlopen="dlopen"
10263    lt_cv_dlopen_libs=
10264    ;;
10265
10266  darwin*)
10267  # if libdl is installed we need to link against it
10268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10269$as_echo_n "checking for dlopen in -ldl... " >&6; }
10270if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  ac_check_lib_save_LIBS=$LIBS
10274LIBS="-ldl  $LIBS"
10275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277
10278/* Override any GCC internal prototype to avoid an error.
10279   Use char because int might match the return type of a GCC
10280   builtin and then its argument prototype would still apply.  */
10281#ifdef __cplusplus
10282extern "C"
10283#endif
10284char dlopen ();
10285int
10286main ()
10287{
10288return dlopen ();
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293if ac_fn_c_try_link "$LINENO"; then :
10294  ac_cv_lib_dl_dlopen=yes
10295else
10296  ac_cv_lib_dl_dlopen=no
10297fi
10298rm -f core conftest.err conftest.$ac_objext \
10299    conftest$ac_exeext conftest.$ac_ext
10300LIBS=$ac_check_lib_save_LIBS
10301fi
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10303$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10304if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10305  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10306else
10307
10308    lt_cv_dlopen="dyld"
10309    lt_cv_dlopen_libs=
10310    lt_cv_dlopen_self=yes
10311
10312fi
10313
10314    ;;
10315
10316  *)
10317    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10318if test "x$ac_cv_func_shl_load" = x""yes; then :
10319  lt_cv_dlopen="shl_load"
10320else
10321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10322$as_echo_n "checking for shl_load in -ldld... " >&6; }
10323if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  ac_check_lib_save_LIBS=$LIBS
10327LIBS="-ldld  $LIBS"
10328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h.  */
10330
10331/* Override any GCC internal prototype to avoid an error.
10332   Use char because int might match the return type of a GCC
10333   builtin and then its argument prototype would still apply.  */
10334#ifdef __cplusplus
10335extern "C"
10336#endif
10337char shl_load ();
10338int
10339main ()
10340{
10341return shl_load ();
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346if ac_fn_c_try_link "$LINENO"; then :
10347  ac_cv_lib_dld_shl_load=yes
10348else
10349  ac_cv_lib_dld_shl_load=no
10350fi
10351rm -f core conftest.err conftest.$ac_objext \
10352    conftest$ac_exeext conftest.$ac_ext
10353LIBS=$ac_check_lib_save_LIBS
10354fi
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10356$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10357if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10358  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10359else
10360  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10361if test "x$ac_cv_func_dlopen" = x""yes; then :
10362  lt_cv_dlopen="dlopen"
10363else
10364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10365$as_echo_n "checking for dlopen in -ldl... " >&6; }
10366if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10367  $as_echo_n "(cached) " >&6
10368else
10369  ac_check_lib_save_LIBS=$LIBS
10370LIBS="-ldl  $LIBS"
10371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372/* end confdefs.h.  */
10373
10374/* Override any GCC internal prototype to avoid an error.
10375   Use char because int might match the return type of a GCC
10376   builtin and then its argument prototype would still apply.  */
10377#ifdef __cplusplus
10378extern "C"
10379#endif
10380char dlopen ();
10381int
10382main ()
10383{
10384return dlopen ();
10385  ;
10386  return 0;
10387}
10388_ACEOF
10389if ac_fn_c_try_link "$LINENO"; then :
10390  ac_cv_lib_dl_dlopen=yes
10391else
10392  ac_cv_lib_dl_dlopen=no
10393fi
10394rm -f core conftest.err conftest.$ac_objext \
10395    conftest$ac_exeext conftest.$ac_ext
10396LIBS=$ac_check_lib_save_LIBS
10397fi
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10399$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10400if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10401  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10402else
10403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10404$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10405if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10406  $as_echo_n "(cached) " >&6
10407else
10408  ac_check_lib_save_LIBS=$LIBS
10409LIBS="-lsvld  $LIBS"
10410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411/* end confdefs.h.  */
10412
10413/* Override any GCC internal prototype to avoid an error.
10414   Use char because int might match the return type of a GCC
10415   builtin and then its argument prototype would still apply.  */
10416#ifdef __cplusplus
10417extern "C"
10418#endif
10419char dlopen ();
10420int
10421main ()
10422{
10423return dlopen ();
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428if ac_fn_c_try_link "$LINENO"; then :
10429  ac_cv_lib_svld_dlopen=yes
10430else
10431  ac_cv_lib_svld_dlopen=no
10432fi
10433rm -f core conftest.err conftest.$ac_objext \
10434    conftest$ac_exeext conftest.$ac_ext
10435LIBS=$ac_check_lib_save_LIBS
10436fi
10437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10438$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10439if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10440  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10441else
10442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10443$as_echo_n "checking for dld_link in -ldld... " >&6; }
10444if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10445  $as_echo_n "(cached) " >&6
10446else
10447  ac_check_lib_save_LIBS=$LIBS
10448LIBS="-ldld  $LIBS"
10449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451
10452/* Override any GCC internal prototype to avoid an error.
10453   Use char because int might match the return type of a GCC
10454   builtin and then its argument prototype would still apply.  */
10455#ifdef __cplusplus
10456extern "C"
10457#endif
10458char dld_link ();
10459int
10460main ()
10461{
10462return dld_link ();
10463  ;
10464  return 0;
10465}
10466_ACEOF
10467if ac_fn_c_try_link "$LINENO"; then :
10468  ac_cv_lib_dld_dld_link=yes
10469else
10470  ac_cv_lib_dld_dld_link=no
10471fi
10472rm -f core conftest.err conftest.$ac_objext \
10473    conftest$ac_exeext conftest.$ac_ext
10474LIBS=$ac_check_lib_save_LIBS
10475fi
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10477$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10478if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10479  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10480fi
10481
10482
10483fi
10484
10485
10486fi
10487
10488
10489fi
10490
10491
10492fi
10493
10494
10495fi
10496
10497    ;;
10498  esac
10499
10500  if test "x$lt_cv_dlopen" != xno; then
10501    enable_dlopen=yes
10502  else
10503    enable_dlopen=no
10504  fi
10505
10506  case $lt_cv_dlopen in
10507  dlopen)
10508    save_CPPFLAGS="$CPPFLAGS"
10509    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10510
10511    save_LDFLAGS="$LDFLAGS"
10512    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10513
10514    save_LIBS="$LIBS"
10515    LIBS="$lt_cv_dlopen_libs $LIBS"
10516
10517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10518$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10519if test "${lt_cv_dlopen_self+set}" = set; then :
10520  $as_echo_n "(cached) " >&6
10521else
10522  	  if test "$cross_compiling" = yes; then :
10523  lt_cv_dlopen_self=cross
10524else
10525  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10526  lt_status=$lt_dlunknown
10527  cat > conftest.$ac_ext <<_LT_EOF
10528#line 10528 "configure"
10529#include "confdefs.h"
10530
10531#if HAVE_DLFCN_H
10532#include <dlfcn.h>
10533#endif
10534
10535#include <stdio.h>
10536
10537#ifdef RTLD_GLOBAL
10538#  define LT_DLGLOBAL		RTLD_GLOBAL
10539#else
10540#  ifdef DL_GLOBAL
10541#    define LT_DLGLOBAL		DL_GLOBAL
10542#  else
10543#    define LT_DLGLOBAL		0
10544#  endif
10545#endif
10546
10547/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10548   find out it does not work in some platform. */
10549#ifndef LT_DLLAZY_OR_NOW
10550#  ifdef RTLD_LAZY
10551#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10552#  else
10553#    ifdef DL_LAZY
10554#      define LT_DLLAZY_OR_NOW		DL_LAZY
10555#    else
10556#      ifdef RTLD_NOW
10557#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10558#      else
10559#        ifdef DL_NOW
10560#          define LT_DLLAZY_OR_NOW	DL_NOW
10561#        else
10562#          define LT_DLLAZY_OR_NOW	0
10563#        endif
10564#      endif
10565#    endif
10566#  endif
10567#endif
10568
10569/* When -fvisbility=hidden is used, assume the code has been annotated
10570   correspondingly for the symbols needed.  */
10571#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10572void fnord () __attribute__((visibility("default")));
10573#endif
10574
10575void fnord () { int i=42; }
10576int main ()
10577{
10578  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10579  int status = $lt_dlunknown;
10580
10581  if (self)
10582    {
10583      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10584      else
10585        {
10586	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10587          else puts (dlerror ());
10588	}
10589      /* dlclose (self); */
10590    }
10591  else
10592    puts (dlerror ());
10593
10594  return status;
10595}
10596_LT_EOF
10597  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10598  (eval $ac_link) 2>&5
10599  ac_status=$?
10600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10601  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10602    (./conftest; exit; ) >&5 2>/dev/null
10603    lt_status=$?
10604    case x$lt_status in
10605      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10606      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10607      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10608    esac
10609  else :
10610    # compilation failed
10611    lt_cv_dlopen_self=no
10612  fi
10613fi
10614rm -fr conftest*
10615
10616
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10619$as_echo "$lt_cv_dlopen_self" >&6; }
10620
10621    if test "x$lt_cv_dlopen_self" = xyes; then
10622      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10623      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10624$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10625if test "${lt_cv_dlopen_self_static+set}" = set; then :
10626  $as_echo_n "(cached) " >&6
10627else
10628  	  if test "$cross_compiling" = yes; then :
10629  lt_cv_dlopen_self_static=cross
10630else
10631  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10632  lt_status=$lt_dlunknown
10633  cat > conftest.$ac_ext <<_LT_EOF
10634#line 10634 "configure"
10635#include "confdefs.h"
10636
10637#if HAVE_DLFCN_H
10638#include <dlfcn.h>
10639#endif
10640
10641#include <stdio.h>
10642
10643#ifdef RTLD_GLOBAL
10644#  define LT_DLGLOBAL		RTLD_GLOBAL
10645#else
10646#  ifdef DL_GLOBAL
10647#    define LT_DLGLOBAL		DL_GLOBAL
10648#  else
10649#    define LT_DLGLOBAL		0
10650#  endif
10651#endif
10652
10653/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10654   find out it does not work in some platform. */
10655#ifndef LT_DLLAZY_OR_NOW
10656#  ifdef RTLD_LAZY
10657#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10658#  else
10659#    ifdef DL_LAZY
10660#      define LT_DLLAZY_OR_NOW		DL_LAZY
10661#    else
10662#      ifdef RTLD_NOW
10663#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10664#      else
10665#        ifdef DL_NOW
10666#          define LT_DLLAZY_OR_NOW	DL_NOW
10667#        else
10668#          define LT_DLLAZY_OR_NOW	0
10669#        endif
10670#      endif
10671#    endif
10672#  endif
10673#endif
10674
10675/* When -fvisbility=hidden is used, assume the code has been annotated
10676   correspondingly for the symbols needed.  */
10677#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10678void fnord () __attribute__((visibility("default")));
10679#endif
10680
10681void fnord () { int i=42; }
10682int main ()
10683{
10684  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10685  int status = $lt_dlunknown;
10686
10687  if (self)
10688    {
10689      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10690      else
10691        {
10692	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10693          else puts (dlerror ());
10694	}
10695      /* dlclose (self); */
10696    }
10697  else
10698    puts (dlerror ());
10699
10700  return status;
10701}
10702_LT_EOF
10703  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10704  (eval $ac_link) 2>&5
10705  ac_status=$?
10706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10707  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10708    (./conftest; exit; ) >&5 2>/dev/null
10709    lt_status=$?
10710    case x$lt_status in
10711      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10712      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10713      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10714    esac
10715  else :
10716    # compilation failed
10717    lt_cv_dlopen_self_static=no
10718  fi
10719fi
10720rm -fr conftest*
10721
10722
10723fi
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10725$as_echo "$lt_cv_dlopen_self_static" >&6; }
10726    fi
10727
10728    CPPFLAGS="$save_CPPFLAGS"
10729    LDFLAGS="$save_LDFLAGS"
10730    LIBS="$save_LIBS"
10731    ;;
10732  esac
10733
10734  case $lt_cv_dlopen_self in
10735  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10736  *) enable_dlopen_self=unknown ;;
10737  esac
10738
10739  case $lt_cv_dlopen_self_static in
10740  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10741  *) enable_dlopen_self_static=unknown ;;
10742  esac
10743fi
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761striplib=
10762old_striplib=
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10764$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10765if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10766  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10767  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10769$as_echo "yes" >&6; }
10770else
10771# FIXME - insert some real tests, host_os isn't really good enough
10772  case $host_os in
10773  darwin*)
10774    if test -n "$STRIP" ; then
10775      striplib="$STRIP -x"
10776      old_striplib="$STRIP -S"
10777      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778$as_echo "yes" >&6; }
10779    else
10780      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
10782    fi
10783    ;;
10784  *)
10785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
10787    ;;
10788  esac
10789fi
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802  # Report which library types will actually be built
10803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10804$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10806$as_echo "$can_build_shared" >&6; }
10807
10808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10809$as_echo_n "checking whether to build shared libraries... " >&6; }
10810  test "$can_build_shared" = "no" && enable_shared=no
10811
10812  # On AIX, shared libraries and static libraries use the same namespace, and
10813  # are all built from PIC.
10814  case $host_os in
10815  aix3*)
10816    test "$enable_shared" = yes && enable_static=no
10817    if test -n "$RANLIB"; then
10818      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10819      postinstall_cmds='$RANLIB $lib'
10820    fi
10821    ;;
10822
10823  aix[4-9]*)
10824    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10825      test "$enable_shared" = yes && enable_static=no
10826    fi
10827    ;;
10828  esac
10829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10830$as_echo "$enable_shared" >&6; }
10831
10832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10833$as_echo_n "checking whether to build static libraries... " >&6; }
10834  # Make sure either enable_shared or enable_static is yes.
10835  test "$enable_shared" = yes || enable_static=yes
10836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10837$as_echo "$enable_static" >&6; }
10838
10839
10840
10841
10842fi
10843ac_ext=c
10844ac_cpp='$CPP $CPPFLAGS'
10845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847ac_compiler_gnu=$ac_cv_c_compiler_gnu
10848
10849CC="$lt_save_CC"
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863        ac_config_commands="$ac_config_commands libtool"
10864
10865
10866
10867
10868# Only expand once:
10869
10870
10871
10872
10873. ${srcdir}/../../bfd/configure.host
10874
10875
10876
10877USE_MAINTAINER_MODE=no
10878# Check whether --enable-maintainer-mode was given.
10879if test "${enable_maintainer_mode+set}" = set; then :
10880  enableval=$enable_maintainer_mode; case "${enableval}" in
10881  yes)	MAINT="" USE_MAINTAINER_MODE=yes ;;
10882  no)	MAINT="#" ;;
10883  *)	as_fn_error "\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT="#" ;;
10884esac
10885if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
10886  echo "Setting maintainer mode" 6>&1
10887fi
10888else
10889  MAINT="#"
10890fi
10891
10892
10893
10894# Check whether --enable-sim-bswap was given.
10895if test "${enable_sim_bswap+set}" = set; then :
10896  enableval=$enable_sim_bswap; case "${enableval}" in
10897  yes)	sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
10898  no)	sim_bswap="-DWITH_BSWAP=0";;
10899  *)	as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
10900esac
10901if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
10902  echo "Setting bswap flags = $sim_bswap" 6>&1
10903fi
10904else
10905  sim_bswap=""
10906fi
10907
10908
10909
10910# Check whether --enable-sim-cflags was given.
10911if test "${enable_sim_cflags+set}" = set; then :
10912  enableval=$enable_sim_cflags; case "${enableval}" in
10913  yes)	 sim_cflags="-O2 -fomit-frame-pointer";;
10914  trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
10915  no)	 sim_cflags="";;
10916  *)	 sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10917esac
10918if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
10919  echo "Setting sim cflags = $sim_cflags" 6>&1
10920fi
10921else
10922  sim_cflags=""
10923fi
10924
10925
10926
10927# Check whether --enable-sim-debug was given.
10928if test "${enable_sim_debug+set}" = set; then :
10929  enableval=$enable_sim_debug; case "${enableval}" in
10930  yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
10931  no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
10932  *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
10933esac
10934if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
10935  echo "Setting sim debug = $sim_debug" 6>&1
10936fi
10937else
10938  sim_debug=""
10939fi
10940
10941
10942
10943# Check whether --enable-sim-stdio was given.
10944if test "${enable_sim_stdio+set}" = set; then :
10945  enableval=$enable_sim_stdio; case "${enableval}" in
10946  yes)	sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
10947  no)	sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
10948  *)	as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
10949esac
10950if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
10951  echo "Setting stdio flags = $sim_stdio" 6>&1
10952fi
10953else
10954  sim_stdio=""
10955fi
10956
10957
10958
10959# Check whether --enable-sim-trace was given.
10960if test "${enable_sim_trace+set}" = set; then :
10961  enableval=$enable_sim_trace; case "${enableval}" in
10962  yes)	sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
10963  no)	sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
10964  [-0-9]*)
10965	sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
10966  [[:lower:]]*)
10967	sim_trace=""
10968	for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
10969	  if test x"$sim_trace" = x; then
10970	    sim_trace="-DWITH_TRACE='(TRACE_$x"
10971	  else
10972	    sim_trace="${sim_trace}|TRACE_$x"
10973	  fi
10974	done
10975	sim_trace="$sim_trace)'" ;;
10976esac
10977if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
10978  echo "Setting sim trace = $sim_trace" 6>&1
10979fi
10980else
10981  sim_trace=""
10982fi
10983
10984
10985
10986# Check whether --enable-sim-profile was given.
10987if test "${enable_sim_profile+set}" = set; then :
10988  enableval=$enable_sim_profile; case "${enableval}" in
10989  yes)	sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
10990  no)	sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
10991  [-0-9]*)
10992	sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
10993  [a-z]*)
10994	sim_profile=""
10995	for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
10996	  if test x"$sim_profile" = x; then
10997	    sim_profile="-DWITH_PROFILE='(PROFILE_$x"
10998	  else
10999	    sim_profile="${sim_profile}|PROFILE_$x"
11000	  fi
11001	done
11002	sim_profile="$sim_profile)'" ;;
11003esac
11004if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
11005  echo "Setting sim profile = $sim_profile" 6>&1
11006fi
11007else
11008  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
11009fi
11010
11011
11012
11013
11014# Check whether --with-pkgversion was given.
11015if test "${with_pkgversion+set}" = set; then :
11016  withval=$with_pkgversion; case "$withval" in
11017      yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
11018      no)  PKGVERSION= ;;
11019      *)   PKGVERSION="($withval) " ;;
11020     esac
11021else
11022  PKGVERSION="(GDB) "
11023
11024fi
11025
11026
11027
11028
11029
11030# Check whether --with-bugurl was given.
11031if test "${with_bugurl+set}" = set; then :
11032  withval=$with_bugurl; case "$withval" in
11033      yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
11034      no)  BUGURL=
11035	   ;;
11036      *)   BUGURL="$withval"
11037	   ;;
11038     esac
11039else
11040  BUGURL="http://www.gnu.org/software/gdb/bugs/"
11041
11042fi
11043
11044  case ${BUGURL} in
11045  "")
11046    REPORT_BUGS_TO=
11047    REPORT_BUGS_TEXI=
11048    ;;
11049  *)
11050    REPORT_BUGS_TO="<$BUGURL>"
11051    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11052    ;;
11053  esac;
11054
11055
11056
11057
11058cat >>confdefs.h <<_ACEOF
11059#define PKGVERSION "$PKGVERSION"
11060_ACEOF
11061
11062
11063cat >>confdefs.h <<_ACEOF
11064#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11065_ACEOF
11066
11067
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11069$as_echo_n "checking return type of signal handlers... " >&6; }
11070if test "${ac_cv_type_signal+set}" = set; then :
11071  $as_echo_n "(cached) " >&6
11072else
11073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075#include <sys/types.h>
11076#include <signal.h>
11077
11078int
11079main ()
11080{
11081return *(signal (0, 0)) (0) == 1;
11082  ;
11083  return 0;
11084}
11085_ACEOF
11086if ac_fn_c_try_compile "$LINENO"; then :
11087  ac_cv_type_signal=int
11088else
11089  ac_cv_type_signal=void
11090fi
11091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092fi
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11094$as_echo "$ac_cv_type_signal" >&6; }
11095
11096cat >>confdefs.h <<_ACEOF
11097#define RETSIGTYPE $ac_cv_type_signal
11098_ACEOF
11099
11100
11101
11102
11103
11104sim_link_files=
11105sim_link_links=
11106
11107sim_link_links=tconfig.h
11108if test -f ${srcdir}/tconfig.in
11109then
11110  sim_link_files=tconfig.in
11111else
11112  sim_link_files=../common/tconfig.in
11113fi
11114
11115# targ-vals.def points to the libc macro description file.
11116case "${target}" in
11117*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
11118esac
11119sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
11120sim_link_links="${sim_link_links} targ-vals.def"
11121
11122
11123
11124# Put a useful copy of CPP_FOR_TARGET in Makefile.
11125# This is only used to build the target values header files.  These files are
11126# shipped with distributions so CPP_FOR_TARGET only needs to work in
11127# developer's trees.  This value is borrowed from ../../Makefile.in.
11128CPP_FOR_TARGET="\` \
11129  if test -f \$\${rootme}/../../gcc/Makefile ; then \
11130    if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
11131      echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
11132    else \
11133      echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
11134    fi; \
11135  else \
11136    if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
11137      echo \$(CC); \
11138    else \
11139      t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
11140    fi; \
11141  fi\` -E"
11142
11143
11144# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
11145if test x"${host}" = x"${target}" ; then
11146	TARGET_SUBDIR="."
11147else
11148	TARGET_SUBDIR=${target_alias}
11149fi
11150
11151
11152# These aren't all needed yet, but will be eventually.
11153for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h
11154do :
11155  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11156ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11157eval as_val=\$$as_ac_Header
11158   if test "x$as_val" = x""yes; then :
11159  cat >>confdefs.h <<_ACEOF
11160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11161_ACEOF
11162
11163fi
11164
11165done
11166
11167for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
11168do :
11169  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11170ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11171eval as_val=\$$as_ac_var
11172   if test "x$as_val" = x""yes; then :
11173  cat >>confdefs.h <<_ACEOF
11174#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11175_ACEOF
11176
11177fi
11178done
11179
11180ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
11181#include <sys/types.h>
11182#endif
11183#ifdef HAVE_SYS_STAT_H
11184#include <sys/stat.h>
11185#endif
11186"
11187if test "x$ac_cv_member_struct_stat_st_dev" = x""yes; then :
11188
11189cat >>confdefs.h <<_ACEOF
11190#define HAVE_STRUCT_STAT_ST_DEV 1
11191_ACEOF
11192
11193
11194fi
11195ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
11196#include <sys/types.h>
11197#endif
11198#ifdef HAVE_SYS_STAT_H
11199#include <sys/stat.h>
11200#endif
11201"
11202if test "x$ac_cv_member_struct_stat_st_ino" = x""yes; then :
11203
11204cat >>confdefs.h <<_ACEOF
11205#define HAVE_STRUCT_STAT_ST_INO 1
11206_ACEOF
11207
11208
11209fi
11210ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
11211#include <sys/types.h>
11212#endif
11213#ifdef HAVE_SYS_STAT_H
11214#include <sys/stat.h>
11215#endif
11216"
11217if test "x$ac_cv_member_struct_stat_st_mode" = x""yes; then :
11218
11219cat >>confdefs.h <<_ACEOF
11220#define HAVE_STRUCT_STAT_ST_MODE 1
11221_ACEOF
11222
11223
11224fi
11225ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
11226#include <sys/types.h>
11227#endif
11228#ifdef HAVE_SYS_STAT_H
11229#include <sys/stat.h>
11230#endif
11231"
11232if test "x$ac_cv_member_struct_stat_st_nlink" = x""yes; then :
11233
11234cat >>confdefs.h <<_ACEOF
11235#define HAVE_STRUCT_STAT_ST_NLINK 1
11236_ACEOF
11237
11238
11239fi
11240ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
11241#include <sys/types.h>
11242#endif
11243#ifdef HAVE_SYS_STAT_H
11244#include <sys/stat.h>
11245#endif
11246"
11247if test "x$ac_cv_member_struct_stat_st_uid" = x""yes; then :
11248
11249cat >>confdefs.h <<_ACEOF
11250#define HAVE_STRUCT_STAT_ST_UID 1
11251_ACEOF
11252
11253
11254fi
11255ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
11256#include <sys/types.h>
11257#endif
11258#ifdef HAVE_SYS_STAT_H
11259#include <sys/stat.h>
11260#endif
11261"
11262if test "x$ac_cv_member_struct_stat_st_gid" = x""yes; then :
11263
11264cat >>confdefs.h <<_ACEOF
11265#define HAVE_STRUCT_STAT_ST_GID 1
11266_ACEOF
11267
11268
11269fi
11270ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
11271#include <sys/types.h>
11272#endif
11273#ifdef HAVE_SYS_STAT_H
11274#include <sys/stat.h>
11275#endif
11276"
11277if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
11278
11279cat >>confdefs.h <<_ACEOF
11280#define HAVE_STRUCT_STAT_ST_RDEV 1
11281_ACEOF
11282
11283
11284fi
11285ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
11286#include <sys/types.h>
11287#endif
11288#ifdef HAVE_SYS_STAT_H
11289#include <sys/stat.h>
11290#endif
11291"
11292if test "x$ac_cv_member_struct_stat_st_size" = x""yes; then :
11293
11294cat >>confdefs.h <<_ACEOF
11295#define HAVE_STRUCT_STAT_ST_SIZE 1
11296_ACEOF
11297
11298
11299fi
11300ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
11301#include <sys/types.h>
11302#endif
11303#ifdef HAVE_SYS_STAT_H
11304#include <sys/stat.h>
11305#endif
11306"
11307if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11308
11309cat >>confdefs.h <<_ACEOF
11310#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11311_ACEOF
11312
11313
11314fi
11315ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
11316#include <sys/types.h>
11317#endif
11318#ifdef HAVE_SYS_STAT_H
11319#include <sys/stat.h>
11320#endif
11321"
11322if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11323
11324cat >>confdefs.h <<_ACEOF
11325#define HAVE_STRUCT_STAT_ST_BLOCKS 1
11326_ACEOF
11327
11328
11329fi
11330ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
11331#include <sys/types.h>
11332#endif
11333#ifdef HAVE_SYS_STAT_H
11334#include <sys/stat.h>
11335#endif
11336"
11337if test "x$ac_cv_member_struct_stat_st_atime" = x""yes; then :
11338
11339cat >>confdefs.h <<_ACEOF
11340#define HAVE_STRUCT_STAT_ST_ATIME 1
11341_ACEOF
11342
11343
11344fi
11345ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
11346#include <sys/types.h>
11347#endif
11348#ifdef HAVE_SYS_STAT_H
11349#include <sys/stat.h>
11350#endif
11351"
11352if test "x$ac_cv_member_struct_stat_st_mtime" = x""yes; then :
11353
11354cat >>confdefs.h <<_ACEOF
11355#define HAVE_STRUCT_STAT_ST_MTIME 1
11356_ACEOF
11357
11358
11359fi
11360ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
11361#include <sys/types.h>
11362#endif
11363#ifdef HAVE_SYS_STAT_H
11364#include <sys/stat.h>
11365#endif
11366"
11367if test "x$ac_cv_member_struct_stat_st_ctime" = x""yes; then :
11368
11369cat >>confdefs.h <<_ACEOF
11370#define HAVE_STRUCT_STAT_ST_CTIME 1
11371_ACEOF
11372
11373
11374fi
11375
11376ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11377#include <sys/socket.h>
11378
11379"
11380if test "x$ac_cv_type_socklen_t" = x""yes; then :
11381
11382cat >>confdefs.h <<_ACEOF
11383#define HAVE_SOCKLEN_T 1
11384_ACEOF
11385
11386
11387fi
11388
11389
11390ac_config_files="$ac_config_files Makefile"
11391
11392ac_config_commands="$ac_config_commands default"
11393
11394cat >confcache <<\_ACEOF
11395# This file is a shell script that caches the results of configure
11396# tests run on this system so they can be shared between configure
11397# scripts and configure runs, see configure's option --config-cache.
11398# It is not useful on other systems.  If it contains results you don't
11399# want to keep, you may remove or edit it.
11400#
11401# config.status only pays attention to the cache file if you give it
11402# the --recheck option to rerun configure.
11403#
11404# `ac_cv_env_foo' variables (set or unset) will be overridden when
11405# loading this file, other *unset* `ac_cv_foo' will be assigned the
11406# following values.
11407
11408_ACEOF
11409
11410# The following way of writing the cache mishandles newlines in values,
11411# but we know of no workaround that is simple, portable, and efficient.
11412# So, we kill variables containing newlines.
11413# Ultrix sh set writes to stderr and can't be redirected directly,
11414# and sets the high bit in the cache file unless we assign to the vars.
11415(
11416  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11417    eval ac_val=\$$ac_var
11418    case $ac_val in #(
11419    *${as_nl}*)
11420      case $ac_var in #(
11421      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11422$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11423      esac
11424      case $ac_var in #(
11425      _ | IFS | as_nl) ;; #(
11426      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11427      *) { eval $ac_var=; unset $ac_var;} ;;
11428      esac ;;
11429    esac
11430  done
11431
11432  (set) 2>&1 |
11433    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11434    *${as_nl}ac_space=\ *)
11435      # `set' does not quote correctly, so add quotes: double-quote
11436      # substitution turns \\\\ into \\, and sed turns \\ into \.
11437      sed -n \
11438	"s/'/'\\\\''/g;
11439	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11440      ;; #(
11441    *)
11442      # `set' quotes correctly as required by POSIX, so do not add quotes.
11443      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11444      ;;
11445    esac |
11446    sort
11447) |
11448  sed '
11449     /^ac_cv_env_/b end
11450     t clear
11451     :clear
11452     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11453     t end
11454     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11455     :end' >>confcache
11456if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11457  if test -w "$cache_file"; then
11458    test "x$cache_file" != "x/dev/null" &&
11459      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11460$as_echo "$as_me: updating cache $cache_file" >&6;}
11461    cat confcache >$cache_file
11462  else
11463    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11464$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11465  fi
11466fi
11467rm -f confcache
11468
11469test "x$prefix" = xNONE && prefix=$ac_default_prefix
11470# Let make expand exec_prefix.
11471test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11472
11473DEFS=-DHAVE_CONFIG_H
11474
11475ac_libobjs=
11476ac_ltlibobjs=
11477for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11478  # 1. Remove the extension, and $U if already installed.
11479  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11480  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11481  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11482  #    will be set to the directory where LIBOBJS objects are built.
11483  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11484  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11485done
11486LIBOBJS=$ac_libobjs
11487
11488LTLIBOBJS=$ac_ltlibobjs
11489
11490
11491if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
11492  as_fn_error "conditional \"GMAKE\" was never defined.
11493Usually this means the macro was only invoked conditionally." "$LINENO" 5
11494fi
11495if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
11496  as_fn_error "conditional \"PLUGINS\" was never defined.
11497Usually this means the macro was only invoked conditionally." "$LINENO" 5
11498fi
11499
11500: ${CONFIG_STATUS=./config.status}
11501ac_write_fail=0
11502ac_clean_files_save=$ac_clean_files
11503ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11505$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11506as_write_fail=0
11507cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11508#! $SHELL
11509# Generated by $as_me.
11510# Run this file to recreate the current configuration.
11511# Compiler output produced by configure, useful for debugging
11512# configure, is in config.log if it exists.
11513
11514debug=false
11515ac_cs_recheck=false
11516ac_cs_silent=false
11517
11518SHELL=\${CONFIG_SHELL-$SHELL}
11519export SHELL
11520_ASEOF
11521cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11522## -------------------- ##
11523## M4sh Initialization. ##
11524## -------------------- ##
11525
11526# Be more Bourne compatible
11527DUALCASE=1; export DUALCASE # for MKS sh
11528if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11529  emulate sh
11530  NULLCMD=:
11531  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11532  # is contrary to our usage.  Disable this feature.
11533  alias -g '${1+"$@"}'='"$@"'
11534  setopt NO_GLOB_SUBST
11535else
11536  case `(set -o) 2>/dev/null` in #(
11537  *posix*) :
11538    set -o posix ;; #(
11539  *) :
11540     ;;
11541esac
11542fi
11543
11544
11545as_nl='
11546'
11547export as_nl
11548# Printing a long string crashes Solaris 7 /usr/bin/printf.
11549as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11550as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11551as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11552# Prefer a ksh shell builtin over an external printf program on Solaris,
11553# but without wasting forks for bash or zsh.
11554if test -z "$BASH_VERSION$ZSH_VERSION" \
11555    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11556  as_echo='print -r --'
11557  as_echo_n='print -rn --'
11558elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11559  as_echo='printf %s\n'
11560  as_echo_n='printf %s'
11561else
11562  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11563    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11564    as_echo_n='/usr/ucb/echo -n'
11565  else
11566    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11567    as_echo_n_body='eval
11568      arg=$1;
11569      case $arg in #(
11570      *"$as_nl"*)
11571	expr "X$arg" : "X\\(.*\\)$as_nl";
11572	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11573      esac;
11574      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11575    '
11576    export as_echo_n_body
11577    as_echo_n='sh -c $as_echo_n_body as_echo'
11578  fi
11579  export as_echo_body
11580  as_echo='sh -c $as_echo_body as_echo'
11581fi
11582
11583# The user is always right.
11584if test "${PATH_SEPARATOR+set}" != set; then
11585  PATH_SEPARATOR=:
11586  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11587    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11588      PATH_SEPARATOR=';'
11589  }
11590fi
11591
11592
11593# IFS
11594# We need space, tab and new line, in precisely that order.  Quoting is
11595# there to prevent editors from complaining about space-tab.
11596# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11597# splitting by setting IFS to empty value.)
11598IFS=" ""	$as_nl"
11599
11600# Find who we are.  Look in the path if we contain no directory separator.
11601case $0 in #((
11602  *[\\/]* ) as_myself=$0 ;;
11603  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604for as_dir in $PATH
11605do
11606  IFS=$as_save_IFS
11607  test -z "$as_dir" && as_dir=.
11608    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11609  done
11610IFS=$as_save_IFS
11611
11612     ;;
11613esac
11614# We did not find ourselves, most probably we were run as `sh COMMAND'
11615# in which case we are not to be found in the path.
11616if test "x$as_myself" = x; then
11617  as_myself=$0
11618fi
11619if test ! -f "$as_myself"; then
11620  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11621  exit 1
11622fi
11623
11624# Unset variables that we do not need and which cause bugs (e.g. in
11625# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11626# suppresses any "Segmentation fault" message there.  '((' could
11627# trigger a bug in pdksh 5.2.14.
11628for as_var in BASH_ENV ENV MAIL MAILPATH
11629do eval test x\${$as_var+set} = xset \
11630  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11631done
11632PS1='$ '
11633PS2='> '
11634PS4='+ '
11635
11636# NLS nuisances.
11637LC_ALL=C
11638export LC_ALL
11639LANGUAGE=C
11640export LANGUAGE
11641
11642# CDPATH.
11643(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11644
11645
11646# as_fn_error ERROR [LINENO LOG_FD]
11647# ---------------------------------
11648# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11649# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11650# script with status $?, using 1 if that was 0.
11651as_fn_error ()
11652{
11653  as_status=$?; test $as_status -eq 0 && as_status=1
11654  if test "$3"; then
11655    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11656    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11657  fi
11658  $as_echo "$as_me: error: $1" >&2
11659  as_fn_exit $as_status
11660} # as_fn_error
11661
11662
11663# as_fn_set_status STATUS
11664# -----------------------
11665# Set $? to STATUS, without forking.
11666as_fn_set_status ()
11667{
11668  return $1
11669} # as_fn_set_status
11670
11671# as_fn_exit STATUS
11672# -----------------
11673# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11674as_fn_exit ()
11675{
11676  set +e
11677  as_fn_set_status $1
11678  exit $1
11679} # as_fn_exit
11680
11681# as_fn_unset VAR
11682# ---------------
11683# Portably unset VAR.
11684as_fn_unset ()
11685{
11686  { eval $1=; unset $1;}
11687}
11688as_unset=as_fn_unset
11689# as_fn_append VAR VALUE
11690# ----------------------
11691# Append the text in VALUE to the end of the definition contained in VAR. Take
11692# advantage of any shell optimizations that allow amortized linear growth over
11693# repeated appends, instead of the typical quadratic growth present in naive
11694# implementations.
11695if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11696  eval 'as_fn_append ()
11697  {
11698    eval $1+=\$2
11699  }'
11700else
11701  as_fn_append ()
11702  {
11703    eval $1=\$$1\$2
11704  }
11705fi # as_fn_append
11706
11707# as_fn_arith ARG...
11708# ------------------
11709# Perform arithmetic evaluation on the ARGs, and store the result in the
11710# global $as_val. Take advantage of shells that can avoid forks. The arguments
11711# must be portable across $(()) and expr.
11712if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11713  eval 'as_fn_arith ()
11714  {
11715    as_val=$(( $* ))
11716  }'
11717else
11718  as_fn_arith ()
11719  {
11720    as_val=`expr "$@" || test $? -eq 1`
11721  }
11722fi # as_fn_arith
11723
11724
11725if expr a : '\(a\)' >/dev/null 2>&1 &&
11726   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11727  as_expr=expr
11728else
11729  as_expr=false
11730fi
11731
11732if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11733  as_basename=basename
11734else
11735  as_basename=false
11736fi
11737
11738if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11739  as_dirname=dirname
11740else
11741  as_dirname=false
11742fi
11743
11744as_me=`$as_basename -- "$0" ||
11745$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11746	 X"$0" : 'X\(//\)$' \| \
11747	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11748$as_echo X/"$0" |
11749    sed '/^.*\/\([^/][^/]*\)\/*$/{
11750	    s//\1/
11751	    q
11752	  }
11753	  /^X\/\(\/\/\)$/{
11754	    s//\1/
11755	    q
11756	  }
11757	  /^X\/\(\/\).*/{
11758	    s//\1/
11759	    q
11760	  }
11761	  s/.*/./; q'`
11762
11763# Avoid depending upon Character Ranges.
11764as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11765as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11766as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11767as_cr_digits='0123456789'
11768as_cr_alnum=$as_cr_Letters$as_cr_digits
11769
11770ECHO_C= ECHO_N= ECHO_T=
11771case `echo -n x` in #(((((
11772-n*)
11773  case `echo 'xy\c'` in
11774  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11775  xy)  ECHO_C='\c';;
11776  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11777       ECHO_T='	';;
11778  esac;;
11779*)
11780  ECHO_N='-n';;
11781esac
11782
11783rm -f conf$$ conf$$.exe conf$$.file
11784if test -d conf$$.dir; then
11785  rm -f conf$$.dir/conf$$.file
11786else
11787  rm -f conf$$.dir
11788  mkdir conf$$.dir 2>/dev/null
11789fi
11790if (echo >conf$$.file) 2>/dev/null; then
11791  if ln -s conf$$.file conf$$ 2>/dev/null; then
11792    as_ln_s='ln -s'
11793    # ... but there are two gotchas:
11794    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11795    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11796    # In both cases, we have to default to `cp -p'.
11797    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11798      as_ln_s='cp -p'
11799  elif ln conf$$.file conf$$ 2>/dev/null; then
11800    as_ln_s=ln
11801  else
11802    as_ln_s='cp -p'
11803  fi
11804else
11805  as_ln_s='cp -p'
11806fi
11807rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11808rmdir conf$$.dir 2>/dev/null
11809
11810
11811# as_fn_mkdir_p
11812# -------------
11813# Create "$as_dir" as a directory, including parents if necessary.
11814as_fn_mkdir_p ()
11815{
11816
11817  case $as_dir in #(
11818  -*) as_dir=./$as_dir;;
11819  esac
11820  test -d "$as_dir" || eval $as_mkdir_p || {
11821    as_dirs=
11822    while :; do
11823      case $as_dir in #(
11824      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11825      *) as_qdir=$as_dir;;
11826      esac
11827      as_dirs="'$as_qdir' $as_dirs"
11828      as_dir=`$as_dirname -- "$as_dir" ||
11829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11830	 X"$as_dir" : 'X\(//\)[^/]' \| \
11831	 X"$as_dir" : 'X\(//\)$' \| \
11832	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11833$as_echo X"$as_dir" |
11834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11835	    s//\1/
11836	    q
11837	  }
11838	  /^X\(\/\/\)[^/].*/{
11839	    s//\1/
11840	    q
11841	  }
11842	  /^X\(\/\/\)$/{
11843	    s//\1/
11844	    q
11845	  }
11846	  /^X\(\/\).*/{
11847	    s//\1/
11848	    q
11849	  }
11850	  s/.*/./; q'`
11851      test -d "$as_dir" && break
11852    done
11853    test -z "$as_dirs" || eval "mkdir $as_dirs"
11854  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11855
11856
11857} # as_fn_mkdir_p
11858if mkdir -p . 2>/dev/null; then
11859  as_mkdir_p='mkdir -p "$as_dir"'
11860else
11861  test -d ./-p && rmdir ./-p
11862  as_mkdir_p=false
11863fi
11864
11865if test -x / >/dev/null 2>&1; then
11866  as_test_x='test -x'
11867else
11868  if ls -dL / >/dev/null 2>&1; then
11869    as_ls_L_option=L
11870  else
11871    as_ls_L_option=
11872  fi
11873  as_test_x='
11874    eval sh -c '\''
11875      if test -d "$1"; then
11876	test -d "$1/.";
11877      else
11878	case $1 in #(
11879	-*)set "./$1";;
11880	esac;
11881	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11882	???[sx]*):;;*)false;;esac;fi
11883    '\'' sh
11884  '
11885fi
11886as_executable_p=$as_test_x
11887
11888# Sed expression to map a string onto a valid CPP name.
11889as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11890
11891# Sed expression to map a string onto a valid variable name.
11892as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11893
11894
11895exec 6>&1
11896## ----------------------------------- ##
11897## Main body of $CONFIG_STATUS script. ##
11898## ----------------------------------- ##
11899_ASEOF
11900test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11901
11902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11903# Save the log message, to keep $0 and so on meaningful, and to
11904# report actual input values of CONFIG_FILES etc. instead of their
11905# values after options handling.
11906ac_log="
11907This file was extended by $as_me, which was
11908generated by GNU Autoconf 2.64.  Invocation command line was
11909
11910  CONFIG_FILES    = $CONFIG_FILES
11911  CONFIG_HEADERS  = $CONFIG_HEADERS
11912  CONFIG_LINKS    = $CONFIG_LINKS
11913  CONFIG_COMMANDS = $CONFIG_COMMANDS
11914  $ $0 $@
11915
11916on `(hostname || uname -n) 2>/dev/null | sed 1q`
11917"
11918
11919_ACEOF
11920
11921case $ac_config_files in *"
11922"*) set x $ac_config_files; shift; ac_config_files=$*;;
11923esac
11924
11925case $ac_config_headers in *"
11926"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11927esac
11928
11929
11930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11931# Files that config.status was made for.
11932config_files="$ac_config_files"
11933config_headers="$ac_config_headers"
11934config_commands="$ac_config_commands"
11935
11936_ACEOF
11937
11938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11939ac_cs_usage="\
11940\`$as_me' instantiates files and other configuration actions
11941from templates according to the current configuration.  Unless the files
11942and actions are specified as TAGs, all are instantiated by default.
11943
11944Usage: $0 [OPTION]... [TAG]...
11945
11946  -h, --help       print this help, then exit
11947  -V, --version    print version number and configuration settings, then exit
11948  -q, --quiet, --silent
11949                   do not print progress messages
11950  -d, --debug      don't remove temporary files
11951      --recheck    update $as_me by reconfiguring in the same conditions
11952      --file=FILE[:TEMPLATE]
11953                   instantiate the configuration file FILE
11954      --header=FILE[:TEMPLATE]
11955                   instantiate the configuration header FILE
11956
11957Configuration files:
11958$config_files
11959
11960Configuration headers:
11961$config_headers
11962
11963Configuration commands:
11964$config_commands
11965
11966Report bugs to the package provider."
11967
11968_ACEOF
11969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11970ac_cs_version="\\
11971config.status
11972configured by $0, generated by GNU Autoconf 2.64,
11973  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11974
11975Copyright (C) 2009 Free Software Foundation, Inc.
11976This config.status script is free software; the Free Software Foundation
11977gives unlimited permission to copy, distribute and modify it."
11978
11979ac_pwd='$ac_pwd'
11980srcdir='$srcdir'
11981INSTALL='$INSTALL'
11982AWK='$AWK'
11983test -n "\$AWK" || AWK=awk
11984_ACEOF
11985
11986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11987# The default lists apply if the user does not specify any file.
11988ac_need_defaults=:
11989while test $# != 0
11990do
11991  case $1 in
11992  --*=*)
11993    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11994    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11995    ac_shift=:
11996    ;;
11997  *)
11998    ac_option=$1
11999    ac_optarg=$2
12000    ac_shift=shift
12001    ;;
12002  esac
12003
12004  case $ac_option in
12005  # Handling of the options.
12006  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12007    ac_cs_recheck=: ;;
12008  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12009    $as_echo "$ac_cs_version"; exit ;;
12010  --debug | --debu | --deb | --de | --d | -d )
12011    debug=: ;;
12012  --file | --fil | --fi | --f )
12013    $ac_shift
12014    case $ac_optarg in
12015    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12016    esac
12017    as_fn_append CONFIG_FILES " '$ac_optarg'"
12018    ac_need_defaults=false;;
12019  --header | --heade | --head | --hea )
12020    $ac_shift
12021    case $ac_optarg in
12022    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12023    esac
12024    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12025    ac_need_defaults=false;;
12026  --he | --h)
12027    # Conflict between --help and --header
12028    as_fn_error "ambiguous option: \`$1'
12029Try \`$0 --help' for more information.";;
12030  --help | --hel | -h )
12031    $as_echo "$ac_cs_usage"; exit ;;
12032  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12033  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12034    ac_cs_silent=: ;;
12035
12036  # This is an error.
12037  -*) as_fn_error "unrecognized option: \`$1'
12038Try \`$0 --help' for more information." ;;
12039
12040  *) as_fn_append ac_config_targets " $1"
12041     ac_need_defaults=false ;;
12042
12043  esac
12044  shift
12045done
12046
12047ac_configure_extra_args=
12048
12049if $ac_cs_silent; then
12050  exec 6>/dev/null
12051  ac_configure_extra_args="$ac_configure_extra_args --silent"
12052fi
12053
12054_ACEOF
12055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12056if \$ac_cs_recheck; then
12057  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12058  shift
12059  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12060  CONFIG_SHELL='$SHELL'
12061  export CONFIG_SHELL
12062  exec "\$@"
12063fi
12064
12065_ACEOF
12066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12067exec 5>>config.log
12068{
12069  echo
12070  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12071## Running $as_me. ##
12072_ASBOX
12073  $as_echo "$ac_log"
12074} >&5
12075
12076_ACEOF
12077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12078#
12079# INIT-COMMANDS
12080#
12081ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12082
12083
12084# The HP-UX ksh and POSIX shell print the target directory to stdout
12085# if CDPATH is set.
12086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12087
12088sed_quote_subst='$sed_quote_subst'
12089double_quote_subst='$double_quote_subst'
12090delay_variable_subst='$delay_variable_subst'
12091macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12092macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12093enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12094enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12095pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12096enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12097SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12098ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12099host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12100host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12101host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12102build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12103build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12104build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12105SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12106Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12107GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12108EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12109FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12110LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12111NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12112LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12113max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12114ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12115exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12116lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12117lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12118lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12119reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12120reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12121OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12122deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12123file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12124AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12125AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12126STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12127RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12128old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12129old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12130old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12131lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12132CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12133CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12134compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12135GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12136lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12137lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12138lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12139lt_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"`'
12140objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12141MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12142lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12143lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12144lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12145lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12146lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12147need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12148DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12149NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12150LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12151OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12152OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12153libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12154shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12155extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12156archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12157enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12158export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12159whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12160compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12161old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12162old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12163archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12164archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12165module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12166module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12167with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12168allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12169no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12170hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12171hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12172hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12173hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12174hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12175hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12176hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12177hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12178inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12179link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12180fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12181always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12182export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12183exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12184include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12185prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12186file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12187variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12188need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12189need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12190version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12191runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12192shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12193shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12194libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12195library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12196soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12197install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12198postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12199postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12200finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12201finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12202hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12203sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12204sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12205hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12206enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12207enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12208enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12209old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12210striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12211
12212LTCC='$LTCC'
12213LTCFLAGS='$LTCFLAGS'
12214compiler='$compiler_DEFAULT'
12215
12216# A function that is used when there is no print builtin or printf.
12217func_fallback_echo ()
12218{
12219  eval 'cat <<_LTECHO_EOF
12220\$1
12221_LTECHO_EOF'
12222}
12223
12224# Quote evaled strings.
12225for var in SHELL \
12226ECHO \
12227SED \
12228GREP \
12229EGREP \
12230FGREP \
12231LD \
12232NM \
12233LN_S \
12234lt_SP2NL \
12235lt_NL2SP \
12236reload_flag \
12237OBJDUMP \
12238deplibs_check_method \
12239file_magic_cmd \
12240AR \
12241AR_FLAGS \
12242STRIP \
12243RANLIB \
12244CC \
12245CFLAGS \
12246compiler \
12247lt_cv_sys_global_symbol_pipe \
12248lt_cv_sys_global_symbol_to_cdecl \
12249lt_cv_sys_global_symbol_to_c_name_address \
12250lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12251lt_prog_compiler_no_builtin_flag \
12252lt_prog_compiler_wl \
12253lt_prog_compiler_pic \
12254lt_prog_compiler_static \
12255lt_cv_prog_compiler_c_o \
12256need_locks \
12257DSYMUTIL \
12258NMEDIT \
12259LIPO \
12260OTOOL \
12261OTOOL64 \
12262shrext_cmds \
12263export_dynamic_flag_spec \
12264whole_archive_flag_spec \
12265compiler_needs_object \
12266with_gnu_ld \
12267allow_undefined_flag \
12268no_undefined_flag \
12269hardcode_libdir_flag_spec \
12270hardcode_libdir_flag_spec_ld \
12271hardcode_libdir_separator \
12272fix_srcfile_path \
12273exclude_expsyms \
12274include_expsyms \
12275file_list_spec \
12276variables_saved_for_relink \
12277libname_spec \
12278library_names_spec \
12279soname_spec \
12280install_override_mode \
12281finish_eval \
12282old_striplib \
12283striplib; do
12284    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12285    *[\\\\\\\`\\"\\\$]*)
12286      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12287      ;;
12288    *)
12289      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12290      ;;
12291    esac
12292done
12293
12294# Double-quote double-evaled strings.
12295for var in reload_cmds \
12296old_postinstall_cmds \
12297old_postuninstall_cmds \
12298old_archive_cmds \
12299extract_expsyms_cmds \
12300old_archive_from_new_cmds \
12301old_archive_from_expsyms_cmds \
12302archive_cmds \
12303archive_expsym_cmds \
12304module_cmds \
12305module_expsym_cmds \
12306export_symbols_cmds \
12307prelink_cmds \
12308postinstall_cmds \
12309postuninstall_cmds \
12310finish_cmds \
12311sys_lib_search_path_spec \
12312sys_lib_dlsearch_path_spec; do
12313    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12314    *[\\\\\\\`\\"\\\$]*)
12315      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12316      ;;
12317    *)
12318      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12319      ;;
12320    esac
12321done
12322
12323ac_aux_dir='$ac_aux_dir'
12324xsi_shell='$xsi_shell'
12325lt_shell_append='$lt_shell_append'
12326
12327# See if we are running on zsh, and set the options which allow our
12328# commands through without removal of \ escapes INIT.
12329if test -n "\${ZSH_VERSION+set}" ; then
12330   setopt NO_GLOB_SUBST
12331fi
12332
12333
12334    PACKAGE='$PACKAGE'
12335    VERSION='$VERSION'
12336    TIMESTAMP='$TIMESTAMP'
12337    RM='$RM'
12338    ofile='$ofile'
12339
12340
12341
12342
12343_ACEOF
12344
12345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12346
12347# Handling of arguments.
12348for ac_config_target in $ac_config_targets
12349do
12350  case $ac_config_target in
12351    "cconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;;
12352    "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
12353    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12354    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12355    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12356
12357  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12358  esac
12359done
12360
12361
12362# If the user did not use the arguments to specify the items to instantiate,
12363# then the envvar interface is used.  Set only those that are not.
12364# We use the long form for the default assignment because of an extremely
12365# bizarre bug on SunOS 4.1.3.
12366if $ac_need_defaults; then
12367  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12368  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12369  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12370fi
12371
12372# Have a temporary directory for convenience.  Make it in the build tree
12373# simply because there is no reason against having it here, and in addition,
12374# creating and moving files from /tmp can sometimes cause problems.
12375# Hook for its removal unless debugging.
12376# Note that there is a small window in which the directory will not be cleaned:
12377# after its creation but before its name has been assigned to `$tmp'.
12378$debug ||
12379{
12380  tmp=
12381  trap 'exit_status=$?
12382  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12383' 0
12384  trap 'as_fn_exit 1' 1 2 13 15
12385}
12386# Create a (secure) tmp directory for tmp files.
12387
12388{
12389  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12390  test -n "$tmp" && test -d "$tmp"
12391}  ||
12392{
12393  tmp=./conf$$-$RANDOM
12394  (umask 077 && mkdir "$tmp")
12395} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12396
12397# Set up the scripts for CONFIG_FILES section.
12398# No need to generate them if there are no CONFIG_FILES.
12399# This happens for instance with `./config.status config.h'.
12400if test -n "$CONFIG_FILES"; then
12401
12402
12403ac_cr=`echo X | tr X '\015'`
12404# On cygwin, bash can eat \r inside `` if the user requested igncr.
12405# But we know of no other shell where ac_cr would be empty at this
12406# point, so we can use a bashism as a fallback.
12407if test "x$ac_cr" = x; then
12408  eval ac_cr=\$\'\\r\'
12409fi
12410ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12411if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12412  ac_cs_awk_cr='\r'
12413else
12414  ac_cs_awk_cr=$ac_cr
12415fi
12416
12417echo 'BEGIN {' >"$tmp/subs1.awk" &&
12418_ACEOF
12419
12420
12421{
12422  echo "cat >conf$$subs.awk <<_ACEOF" &&
12423  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12424  echo "_ACEOF"
12425} >conf$$subs.sh ||
12426  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12427ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12428ac_delim='%!_!# '
12429for ac_last_try in false false false false false :; do
12430  . ./conf$$subs.sh ||
12431    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12432
12433  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12434  if test $ac_delim_n = $ac_delim_num; then
12435    break
12436  elif $ac_last_try; then
12437    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12438  else
12439    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12440  fi
12441done
12442rm -f conf$$subs.sh
12443
12444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12445cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12446_ACEOF
12447sed -n '
12448h
12449s/^/S["/; s/!.*/"]=/
12450p
12451g
12452s/^[^!]*!//
12453:repl
12454t repl
12455s/'"$ac_delim"'$//
12456t delim
12457:nl
12458h
12459s/\(.\{148\}\).*/\1/
12460t more1
12461s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12462p
12463n
12464b repl
12465:more1
12466s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12467p
12468g
12469s/.\{148\}//
12470t nl
12471:delim
12472h
12473s/\(.\{148\}\).*/\1/
12474t more2
12475s/["\\]/\\&/g; s/^/"/; s/$/"/
12476p
12477b
12478:more2
12479s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12480p
12481g
12482s/.\{148\}//
12483t delim
12484' <conf$$subs.awk | sed '
12485/^[^""]/{
12486  N
12487  s/\n//
12488}
12489' >>$CONFIG_STATUS || ac_write_fail=1
12490rm -f conf$$subs.awk
12491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492_ACAWK
12493cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12494  for (key in S) S_is_set[key] = 1
12495  FS = ""
12496
12497}
12498{
12499  line = $ 0
12500  nfields = split(line, field, "@")
12501  substed = 0
12502  len = length(field[1])
12503  for (i = 2; i < nfields; i++) {
12504    key = field[i]
12505    keylen = length(key)
12506    if (S_is_set[key]) {
12507      value = S[key]
12508      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12509      len += length(value) + length(field[++i])
12510      substed = 1
12511    } else
12512      len += 1 + keylen
12513  }
12514
12515  print line
12516}
12517
12518_ACAWK
12519_ACEOF
12520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12521if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12522  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12523else
12524  cat
12525fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12526  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12527_ACEOF
12528
12529# VPATH may cause trouble with some makes, so we remove $(srcdir),
12530# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12531# trailing colons and then remove the whole line if VPATH becomes empty
12532# (actually we leave an empty line to preserve line numbers).
12533if test "x$srcdir" = x.; then
12534  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12535s/:*\$(srcdir):*/:/
12536s/:*\${srcdir}:*/:/
12537s/:*@srcdir@:*/:/
12538s/^\([^=]*=[	 ]*\):*/\1/
12539s/:*$//
12540s/^[^=]*=[	 ]*$//
12541}'
12542fi
12543
12544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12545fi # test -n "$CONFIG_FILES"
12546
12547# Set up the scripts for CONFIG_HEADERS section.
12548# No need to generate them if there are no CONFIG_HEADERS.
12549# This happens for instance with `./config.status Makefile'.
12550if test -n "$CONFIG_HEADERS"; then
12551cat >"$tmp/defines.awk" <<\_ACAWK ||
12552BEGIN {
12553_ACEOF
12554
12555# Transform confdefs.h into an awk script `defines.awk', embedded as
12556# here-document in config.status, that substitutes the proper values into
12557# config.h.in to produce config.h.
12558
12559# Create a delimiter string that does not exist in confdefs.h, to ease
12560# handling of long lines.
12561ac_delim='%!_!# '
12562for ac_last_try in false false :; do
12563  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12564  if test -z "$ac_t"; then
12565    break
12566  elif $ac_last_try; then
12567    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12568  else
12569    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12570  fi
12571done
12572
12573# For the awk script, D is an array of macro values keyed by name,
12574# likewise P contains macro parameters if any.  Preserve backslash
12575# newline sequences.
12576
12577ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12578sed -n '
12579s/.\{148\}/&'"$ac_delim"'/g
12580t rset
12581:rset
12582s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12583t def
12584d
12585:def
12586s/\\$//
12587t bsnl
12588s/["\\]/\\&/g
12589s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12590D["\1"]=" \3"/p
12591s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12592d
12593:bsnl
12594s/["\\]/\\&/g
12595s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12596D["\1"]=" \3\\\\\\n"\\/p
12597t cont
12598s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12599t cont
12600d
12601:cont
12602n
12603s/.\{148\}/&'"$ac_delim"'/g
12604t clear
12605:clear
12606s/\\$//
12607t bsnlc
12608s/["\\]/\\&/g; s/^/"/; s/$/"/p
12609d
12610:bsnlc
12611s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12612b cont
12613' <confdefs.h | sed '
12614s/'"$ac_delim"'/"\\\
12615"/g' >>$CONFIG_STATUS || ac_write_fail=1
12616
12617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12618  for (key in D) D_is_set[key] = 1
12619  FS = ""
12620}
12621/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12622  line = \$ 0
12623  split(line, arg, " ")
12624  if (arg[1] == "#") {
12625    defundef = arg[2]
12626    mac1 = arg[3]
12627  } else {
12628    defundef = substr(arg[1], 2)
12629    mac1 = arg[2]
12630  }
12631  split(mac1, mac2, "(") #)
12632  macro = mac2[1]
12633  prefix = substr(line, 1, index(line, defundef) - 1)
12634  if (D_is_set[macro]) {
12635    # Preserve the white space surrounding the "#".
12636    print prefix "define", macro P[macro] D[macro]
12637    next
12638  } else {
12639    # Replace #undef with comments.  This is necessary, for example,
12640    # in the case of _POSIX_SOURCE, which is predefined and required
12641    # on some systems where configure will not decide to define it.
12642    if (defundef == "undef") {
12643      print "/*", prefix defundef, macro, "*/"
12644      next
12645    }
12646  }
12647}
12648{ print }
12649_ACAWK
12650_ACEOF
12651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12652  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12653fi # test -n "$CONFIG_HEADERS"
12654
12655
12656eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12657shift
12658for ac_tag
12659do
12660  case $ac_tag in
12661  :[FHLC]) ac_mode=$ac_tag; continue;;
12662  esac
12663  case $ac_mode$ac_tag in
12664  :[FHL]*:*);;
12665  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12666  :[FH]-) ac_tag=-:-;;
12667  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12668  esac
12669  ac_save_IFS=$IFS
12670  IFS=:
12671  set x $ac_tag
12672  IFS=$ac_save_IFS
12673  shift
12674  ac_file=$1
12675  shift
12676
12677  case $ac_mode in
12678  :L) ac_source=$1;;
12679  :[FH])
12680    ac_file_inputs=
12681    for ac_f
12682    do
12683      case $ac_f in
12684      -) ac_f="$tmp/stdin";;
12685      *) # Look for the file first in the build tree, then in the source tree
12686	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12687	 # because $ac_f cannot contain `:'.
12688	 test -f "$ac_f" ||
12689	   case $ac_f in
12690	   [\\/$]*) false;;
12691	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12692	   esac ||
12693	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12694      esac
12695      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12696      as_fn_append ac_file_inputs " '$ac_f'"
12697    done
12698
12699    # Let's still pretend it is `configure' which instantiates (i.e., don't
12700    # use $as_me), people would be surprised to read:
12701    #    /* config.h.  Generated by config.status.  */
12702    configure_input='Generated from '`
12703	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12704	`' by configure.'
12705    if test x"$ac_file" != x-; then
12706      configure_input="$ac_file.  $configure_input"
12707      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12708$as_echo "$as_me: creating $ac_file" >&6;}
12709    fi
12710    # Neutralize special characters interpreted by sed in replacement strings.
12711    case $configure_input in #(
12712    *\&* | *\|* | *\\* )
12713       ac_sed_conf_input=`$as_echo "$configure_input" |
12714       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12715    *) ac_sed_conf_input=$configure_input;;
12716    esac
12717
12718    case $ac_tag in
12719    *:-:* | *:-) cat >"$tmp/stdin" \
12720      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12721    esac
12722    ;;
12723  esac
12724
12725  ac_dir=`$as_dirname -- "$ac_file" ||
12726$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12727	 X"$ac_file" : 'X\(//\)[^/]' \| \
12728	 X"$ac_file" : 'X\(//\)$' \| \
12729	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12730$as_echo X"$ac_file" |
12731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12732	    s//\1/
12733	    q
12734	  }
12735	  /^X\(\/\/\)[^/].*/{
12736	    s//\1/
12737	    q
12738	  }
12739	  /^X\(\/\/\)$/{
12740	    s//\1/
12741	    q
12742	  }
12743	  /^X\(\/\).*/{
12744	    s//\1/
12745	    q
12746	  }
12747	  s/.*/./; q'`
12748  as_dir="$ac_dir"; as_fn_mkdir_p
12749  ac_builddir=.
12750
12751case "$ac_dir" in
12752.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12753*)
12754  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12755  # A ".." for each directory in $ac_dir_suffix.
12756  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12757  case $ac_top_builddir_sub in
12758  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12759  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12760  esac ;;
12761esac
12762ac_abs_top_builddir=$ac_pwd
12763ac_abs_builddir=$ac_pwd$ac_dir_suffix
12764# for backward compatibility:
12765ac_top_builddir=$ac_top_build_prefix
12766
12767case $srcdir in
12768  .)  # We are building in place.
12769    ac_srcdir=.
12770    ac_top_srcdir=$ac_top_builddir_sub
12771    ac_abs_top_srcdir=$ac_pwd ;;
12772  [\\/]* | ?:[\\/]* )  # Absolute name.
12773    ac_srcdir=$srcdir$ac_dir_suffix;
12774    ac_top_srcdir=$srcdir
12775    ac_abs_top_srcdir=$srcdir ;;
12776  *) # Relative name.
12777    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12778    ac_top_srcdir=$ac_top_build_prefix$srcdir
12779    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12780esac
12781ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12782
12783
12784  case $ac_mode in
12785  :F)
12786  #
12787  # CONFIG_FILE
12788  #
12789
12790  case $INSTALL in
12791  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12792  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12793  esac
12794_ACEOF
12795
12796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12797# If the template does not know about datarootdir, expand it.
12798# FIXME: This hack should be removed a few years after 2.60.
12799ac_datarootdir_hack=; ac_datarootdir_seen=
12800ac_sed_dataroot='
12801/datarootdir/ {
12802  p
12803  q
12804}
12805/@datadir@/p
12806/@docdir@/p
12807/@infodir@/p
12808/@localedir@/p
12809/@mandir@/p'
12810case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12811*datarootdir*) ac_datarootdir_seen=yes;;
12812*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12814$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12815_ACEOF
12816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12817  ac_datarootdir_hack='
12818  s&@datadir@&$datadir&g
12819  s&@docdir@&$docdir&g
12820  s&@infodir@&$infodir&g
12821  s&@localedir@&$localedir&g
12822  s&@mandir@&$mandir&g
12823  s&\\\${datarootdir}&$datarootdir&g' ;;
12824esac
12825_ACEOF
12826
12827# Neutralize VPATH when `$srcdir' = `.'.
12828# Shell code in configure.ac might set extrasub.
12829# FIXME: do we really want to maintain this feature?
12830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12831ac_sed_extra="$ac_vpsub
12832$extrasub
12833_ACEOF
12834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12835:t
12836/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12837s|@configure_input@|$ac_sed_conf_input|;t t
12838s&@top_builddir@&$ac_top_builddir_sub&;t t
12839s&@top_build_prefix@&$ac_top_build_prefix&;t t
12840s&@srcdir@&$ac_srcdir&;t t
12841s&@abs_srcdir@&$ac_abs_srcdir&;t t
12842s&@top_srcdir@&$ac_top_srcdir&;t t
12843s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12844s&@builddir@&$ac_builddir&;t t
12845s&@abs_builddir@&$ac_abs_builddir&;t t
12846s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12847s&@INSTALL@&$ac_INSTALL&;t t
12848$ac_datarootdir_hack
12849"
12850eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12851  || as_fn_error "could not create $ac_file" "$LINENO" 5
12852
12853test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12854  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12855  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12857which seems to be undefined.  Please make sure it is defined." >&5
12858$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12859which seems to be undefined.  Please make sure it is defined." >&2;}
12860
12861  rm -f "$tmp/stdin"
12862  case $ac_file in
12863  -) cat "$tmp/out" && rm -f "$tmp/out";;
12864  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12865  esac \
12866  || as_fn_error "could not create $ac_file" "$LINENO" 5
12867 ;;
12868  :H)
12869  #
12870  # CONFIG_HEADER
12871  #
12872  if test x"$ac_file" != x-; then
12873    {
12874      $as_echo "/* $configure_input  */" \
12875      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12876    } >"$tmp/config.h" \
12877      || as_fn_error "could not create $ac_file" "$LINENO" 5
12878    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12879      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12880$as_echo "$as_me: $ac_file is unchanged" >&6;}
12881    else
12882      rm -f "$ac_file"
12883      mv "$tmp/config.h" "$ac_file" \
12884	|| as_fn_error "could not create $ac_file" "$LINENO" 5
12885    fi
12886  else
12887    $as_echo "/* $configure_input  */" \
12888      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12889      || as_fn_error "could not create -" "$LINENO" 5
12890  fi
12891 ;;
12892
12893  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12894$as_echo "$as_me: executing $ac_file commands" >&6;}
12895 ;;
12896  esac
12897
12898
12899  case $ac_file$ac_mode in
12900    "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
12901    "libtool":C)
12902
12903    # See if we are running on zsh, and set the options which allow our
12904    # commands through without removal of \ escapes.
12905    if test -n "${ZSH_VERSION+set}" ; then
12906      setopt NO_GLOB_SUBST
12907    fi
12908
12909    cfgfile="${ofile}T"
12910    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12911    $RM "$cfgfile"
12912
12913    cat <<_LT_EOF >> "$cfgfile"
12914#! $SHELL
12915
12916# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12917# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12918# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12919# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12920#
12921#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12922#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12923#   Written by Gordon Matzigkeit, 1996
12924#
12925#   This file is part of GNU Libtool.
12926#
12927# GNU Libtool is free software; you can redistribute it and/or
12928# modify it under the terms of the GNU General Public License as
12929# published by the Free Software Foundation; either version 2 of
12930# the License, or (at your option) any later version.
12931#
12932# As a special exception to the GNU General Public License,
12933# if you distribute this file as part of a program or library that
12934# is built using GNU Libtool, you may include this file under the
12935# same distribution terms that you use for the rest of that program.
12936#
12937# GNU Libtool is distributed in the hope that it will be useful,
12938# but WITHOUT ANY WARRANTY; without even the implied warranty of
12939# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12940# GNU General Public License for more details.
12941#
12942# You should have received a copy of the GNU General Public License
12943# along with GNU Libtool; see the file COPYING.  If not, a copy
12944# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12945# obtained by writing to the Free Software Foundation, Inc.,
12946# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12947
12948
12949# The names of the tagged configurations supported by this script.
12950available_tags=""
12951
12952# ### BEGIN LIBTOOL CONFIG
12953
12954# Which release of libtool.m4 was used?
12955macro_version=$macro_version
12956macro_revision=$macro_revision
12957
12958# Whether or not to build shared libraries.
12959build_libtool_libs=$enable_shared
12960
12961# Whether or not to build static libraries.
12962build_old_libs=$enable_static
12963
12964# What type of objects to build.
12965pic_mode=$pic_mode
12966
12967# Whether or not to optimize for fast installation.
12968fast_install=$enable_fast_install
12969
12970# Shell to use when invoking shell scripts.
12971SHELL=$lt_SHELL
12972
12973# An echo program that protects backslashes.
12974ECHO=$lt_ECHO
12975
12976# The host system.
12977host_alias=$host_alias
12978host=$host
12979host_os=$host_os
12980
12981# The build system.
12982build_alias=$build_alias
12983build=$build
12984build_os=$build_os
12985
12986# A sed program that does not truncate output.
12987SED=$lt_SED
12988
12989# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12990Xsed="\$SED -e 1s/^X//"
12991
12992# A grep program that handles long lines.
12993GREP=$lt_GREP
12994
12995# An ERE matcher.
12996EGREP=$lt_EGREP
12997
12998# A literal string matcher.
12999FGREP=$lt_FGREP
13000
13001# A BSD- or MS-compatible name lister.
13002NM=$lt_NM
13003
13004# Whether we need soft or hard links.
13005LN_S=$lt_LN_S
13006
13007# What is the maximum length of a command?
13008max_cmd_len=$max_cmd_len
13009
13010# Object file suffix (normally "o").
13011objext=$ac_objext
13012
13013# Executable file suffix (normally "").
13014exeext=$exeext
13015
13016# whether the shell understands "unset".
13017lt_unset=$lt_unset
13018
13019# turn spaces into newlines.
13020SP2NL=$lt_lt_SP2NL
13021
13022# turn newlines into spaces.
13023NL2SP=$lt_lt_NL2SP
13024
13025# An object symbol dumper.
13026OBJDUMP=$lt_OBJDUMP
13027
13028# Method to check whether dependent libraries are shared objects.
13029deplibs_check_method=$lt_deplibs_check_method
13030
13031# Command to use when deplibs_check_method == "file_magic".
13032file_magic_cmd=$lt_file_magic_cmd
13033
13034# The archiver.
13035AR=$lt_AR
13036AR_FLAGS=$lt_AR_FLAGS
13037
13038# A symbol stripping program.
13039STRIP=$lt_STRIP
13040
13041# Commands used to install an old-style archive.
13042RANLIB=$lt_RANLIB
13043old_postinstall_cmds=$lt_old_postinstall_cmds
13044old_postuninstall_cmds=$lt_old_postuninstall_cmds
13045
13046# Whether to use a lock for old archive extraction.
13047lock_old_archive_extraction=$lock_old_archive_extraction
13048
13049# A C compiler.
13050LTCC=$lt_CC
13051
13052# LTCC compiler flags.
13053LTCFLAGS=$lt_CFLAGS
13054
13055# Take the output of nm and produce a listing of raw symbols and C names.
13056global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13057
13058# Transform the output of nm in a proper C declaration.
13059global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13060
13061# Transform the output of nm in a C name address pair.
13062global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13063
13064# Transform the output of nm in a C name address pair when lib prefix is needed.
13065global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13066
13067# The name of the directory that contains temporary libtool files.
13068objdir=$objdir
13069
13070# Used to examine libraries when file_magic_cmd begins with "file".
13071MAGIC_CMD=$MAGIC_CMD
13072
13073# Must we lock files when doing compilation?
13074need_locks=$lt_need_locks
13075
13076# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13077DSYMUTIL=$lt_DSYMUTIL
13078
13079# Tool to change global to local symbols on Mac OS X.
13080NMEDIT=$lt_NMEDIT
13081
13082# Tool to manipulate fat objects and archives on Mac OS X.
13083LIPO=$lt_LIPO
13084
13085# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13086OTOOL=$lt_OTOOL
13087
13088# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13089OTOOL64=$lt_OTOOL64
13090
13091# Old archive suffix (normally "a").
13092libext=$libext
13093
13094# Shared library suffix (normally ".so").
13095shrext_cmds=$lt_shrext_cmds
13096
13097# The commands to extract the exported symbol list from a shared archive.
13098extract_expsyms_cmds=$lt_extract_expsyms_cmds
13099
13100# Variables whose values should be saved in libtool wrapper scripts and
13101# restored at link time.
13102variables_saved_for_relink=$lt_variables_saved_for_relink
13103
13104# Do we need the "lib" prefix for modules?
13105need_lib_prefix=$need_lib_prefix
13106
13107# Do we need a version for libraries?
13108need_version=$need_version
13109
13110# Library versioning type.
13111version_type=$version_type
13112
13113# Shared library runtime path variable.
13114runpath_var=$runpath_var
13115
13116# Shared library path variable.
13117shlibpath_var=$shlibpath_var
13118
13119# Is shlibpath searched before the hard-coded library search path?
13120shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13121
13122# Format of library name prefix.
13123libname_spec=$lt_libname_spec
13124
13125# List of archive names.  First name is the real one, the rest are links.
13126# The last name is the one that the linker finds with -lNAME
13127library_names_spec=$lt_library_names_spec
13128
13129# The coded name of the library, if different from the real name.
13130soname_spec=$lt_soname_spec
13131
13132# Permission mode override for installation of shared libraries.
13133install_override_mode=$lt_install_override_mode
13134
13135# Command to use after installation of a shared archive.
13136postinstall_cmds=$lt_postinstall_cmds
13137
13138# Command to use after uninstallation of a shared archive.
13139postuninstall_cmds=$lt_postuninstall_cmds
13140
13141# Commands used to finish a libtool library installation in a directory.
13142finish_cmds=$lt_finish_cmds
13143
13144# As "finish_cmds", except a single script fragment to be evaled but
13145# not shown.
13146finish_eval=$lt_finish_eval
13147
13148# Whether we should hardcode library paths into libraries.
13149hardcode_into_libs=$hardcode_into_libs
13150
13151# Compile-time system search path for libraries.
13152sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13153
13154# Run-time system search path for libraries.
13155sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13156
13157# Whether dlopen is supported.
13158dlopen_support=$enable_dlopen
13159
13160# Whether dlopen of programs is supported.
13161dlopen_self=$enable_dlopen_self
13162
13163# Whether dlopen of statically linked programs is supported.
13164dlopen_self_static=$enable_dlopen_self_static
13165
13166# Commands to strip libraries.
13167old_striplib=$lt_old_striplib
13168striplib=$lt_striplib
13169
13170
13171# The linker used to build libraries.
13172LD=$lt_LD
13173
13174# How to create reloadable object files.
13175reload_flag=$lt_reload_flag
13176reload_cmds=$lt_reload_cmds
13177
13178# Commands used to build an old-style archive.
13179old_archive_cmds=$lt_old_archive_cmds
13180
13181# A language specific compiler.
13182CC=$lt_compiler
13183
13184# Is the compiler the GNU compiler?
13185with_gcc=$GCC
13186
13187# Compiler flag to turn off builtin functions.
13188no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13189
13190# How to pass a linker flag through the compiler.
13191wl=$lt_lt_prog_compiler_wl
13192
13193# Additional compiler flags for building library objects.
13194pic_flag=$lt_lt_prog_compiler_pic
13195
13196# Compiler flag to prevent dynamic linking.
13197link_static_flag=$lt_lt_prog_compiler_static
13198
13199# Does compiler simultaneously support -c and -o options?
13200compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13201
13202# Whether or not to add -lc for building shared libraries.
13203build_libtool_need_lc=$archive_cmds_need_lc
13204
13205# Whether or not to disallow shared libs when runtime libs are static.
13206allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13207
13208# Compiler flag to allow reflexive dlopens.
13209export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13210
13211# Compiler flag to generate shared objects directly from archives.
13212whole_archive_flag_spec=$lt_whole_archive_flag_spec
13213
13214# Whether the compiler copes with passing no objects directly.
13215compiler_needs_object=$lt_compiler_needs_object
13216
13217# Create an old-style archive from a shared archive.
13218old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13219
13220# Create a temporary old-style archive to link instead of a shared archive.
13221old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13222
13223# Commands used to build a shared archive.
13224archive_cmds=$lt_archive_cmds
13225archive_expsym_cmds=$lt_archive_expsym_cmds
13226
13227# Commands used to build a loadable module if different from building
13228# a shared archive.
13229module_cmds=$lt_module_cmds
13230module_expsym_cmds=$lt_module_expsym_cmds
13231
13232# Whether we are building with GNU ld or not.
13233with_gnu_ld=$lt_with_gnu_ld
13234
13235# Flag that allows shared libraries with undefined symbols to be built.
13236allow_undefined_flag=$lt_allow_undefined_flag
13237
13238# Flag that enforces no undefined symbols.
13239no_undefined_flag=$lt_no_undefined_flag
13240
13241# Flag to hardcode \$libdir into a binary during linking.
13242# This must work even if \$libdir does not exist
13243hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13244
13245# If ld is used when linking, flag to hardcode \$libdir into a binary
13246# during linking.  This must work even if \$libdir does not exist.
13247hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13248
13249# Whether we need a single "-rpath" flag with a separated argument.
13250hardcode_libdir_separator=$lt_hardcode_libdir_separator
13251
13252# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13253# DIR into the resulting binary.
13254hardcode_direct=$hardcode_direct
13255
13256# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13257# DIR into the resulting binary and the resulting library dependency is
13258# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13259# library is relocated.
13260hardcode_direct_absolute=$hardcode_direct_absolute
13261
13262# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13263# into the resulting binary.
13264hardcode_minus_L=$hardcode_minus_L
13265
13266# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13267# into the resulting binary.
13268hardcode_shlibpath_var=$hardcode_shlibpath_var
13269
13270# Set to "yes" if building a shared library automatically hardcodes DIR
13271# into the library and all subsequent libraries and executables linked
13272# against it.
13273hardcode_automatic=$hardcode_automatic
13274
13275# Set to yes if linker adds runtime paths of dependent libraries
13276# to runtime path list.
13277inherit_rpath=$inherit_rpath
13278
13279# Whether libtool must link a program against all its dependency libraries.
13280link_all_deplibs=$link_all_deplibs
13281
13282# Fix the shell variable \$srcfile for the compiler.
13283fix_srcfile_path=$lt_fix_srcfile_path
13284
13285# Set to "yes" if exported symbols are required.
13286always_export_symbols=$always_export_symbols
13287
13288# The commands to list exported symbols.
13289export_symbols_cmds=$lt_export_symbols_cmds
13290
13291# Symbols that should not be listed in the preloaded symbols.
13292exclude_expsyms=$lt_exclude_expsyms
13293
13294# Symbols that must always be exported.
13295include_expsyms=$lt_include_expsyms
13296
13297# Commands necessary for linking programs (against libraries) with templates.
13298prelink_cmds=$lt_prelink_cmds
13299
13300# Specify filename containing input files.
13301file_list_spec=$lt_file_list_spec
13302
13303# How to hardcode a shared library path into an executable.
13304hardcode_action=$hardcode_action
13305
13306# ### END LIBTOOL CONFIG
13307
13308_LT_EOF
13309
13310  case $host_os in
13311  aix3*)
13312    cat <<\_LT_EOF >> "$cfgfile"
13313# AIX sometimes has problems with the GCC collect2 program.  For some
13314# reason, if we set the COLLECT_NAMES environment variable, the problems
13315# vanish in a puff of smoke.
13316if test "X${COLLECT_NAMES+set}" != Xset; then
13317  COLLECT_NAMES=
13318  export COLLECT_NAMES
13319fi
13320_LT_EOF
13321    ;;
13322  esac
13323
13324
13325ltmain="$ac_aux_dir/ltmain.sh"
13326
13327
13328  # We use sed instead of cat because bash on DJGPP gets confused if
13329  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13330  # text mode, it properly converts lines to CR/LF.  This bash problem
13331  # is reportedly fixed, but why not run on old versions too?
13332  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13333    || (rm -f "$cfgfile"; exit 1)
13334
13335  case $xsi_shell in
13336  yes)
13337    cat << \_LT_EOF >> "$cfgfile"
13338
13339# func_dirname file append nondir_replacement
13340# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13341# otherwise set result to NONDIR_REPLACEMENT.
13342func_dirname ()
13343{
13344  case ${1} in
13345    */*) func_dirname_result="${1%/*}${2}" ;;
13346    *  ) func_dirname_result="${3}" ;;
13347  esac
13348}
13349
13350# func_basename file
13351func_basename ()
13352{
13353  func_basename_result="${1##*/}"
13354}
13355
13356# func_dirname_and_basename file append nondir_replacement
13357# perform func_basename and func_dirname in a single function
13358# call:
13359#   dirname:  Compute the dirname of FILE.  If nonempty,
13360#             add APPEND to the result, otherwise set result
13361#             to NONDIR_REPLACEMENT.
13362#             value returned in "$func_dirname_result"
13363#   basename: Compute filename of FILE.
13364#             value retuned in "$func_basename_result"
13365# Implementation must be kept synchronized with func_dirname
13366# and func_basename. For efficiency, we do not delegate to
13367# those functions but instead duplicate the functionality here.
13368func_dirname_and_basename ()
13369{
13370  case ${1} in
13371    */*) func_dirname_result="${1%/*}${2}" ;;
13372    *  ) func_dirname_result="${3}" ;;
13373  esac
13374  func_basename_result="${1##*/}"
13375}
13376
13377# func_stripname prefix suffix name
13378# strip PREFIX and SUFFIX off of NAME.
13379# PREFIX and SUFFIX must not contain globbing or regex special
13380# characters, hashes, percent signs, but SUFFIX may contain a leading
13381# dot (in which case that matches only a dot).
13382func_stripname ()
13383{
13384  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13385  # positional parameters, so assign one to ordinary parameter first.
13386  func_stripname_result=${3}
13387  func_stripname_result=${func_stripname_result#"${1}"}
13388  func_stripname_result=${func_stripname_result%"${2}"}
13389}
13390
13391# func_opt_split
13392func_opt_split ()
13393{
13394  func_opt_split_opt=${1%%=*}
13395  func_opt_split_arg=${1#*=}
13396}
13397
13398# func_lo2o object
13399func_lo2o ()
13400{
13401  case ${1} in
13402    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13403    *)    func_lo2o_result=${1} ;;
13404  esac
13405}
13406
13407# func_xform libobj-or-source
13408func_xform ()
13409{
13410  func_xform_result=${1%.*}.lo
13411}
13412
13413# func_arith arithmetic-term...
13414func_arith ()
13415{
13416  func_arith_result=$(( $* ))
13417}
13418
13419# func_len string
13420# STRING may not start with a hyphen.
13421func_len ()
13422{
13423  func_len_result=${#1}
13424}
13425
13426_LT_EOF
13427    ;;
13428  *) # Bourne compatible functions.
13429    cat << \_LT_EOF >> "$cfgfile"
13430
13431# func_dirname file append nondir_replacement
13432# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13433# otherwise set result to NONDIR_REPLACEMENT.
13434func_dirname ()
13435{
13436  # Extract subdirectory from the argument.
13437  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13438  if test "X$func_dirname_result" = "X${1}"; then
13439    func_dirname_result="${3}"
13440  else
13441    func_dirname_result="$func_dirname_result${2}"
13442  fi
13443}
13444
13445# func_basename file
13446func_basename ()
13447{
13448  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13449}
13450
13451
13452# func_stripname prefix suffix name
13453# strip PREFIX and SUFFIX off of NAME.
13454# PREFIX and SUFFIX must not contain globbing or regex special
13455# characters, hashes, percent signs, but SUFFIX may contain a leading
13456# dot (in which case that matches only a dot).
13457# func_strip_suffix prefix name
13458func_stripname ()
13459{
13460  case ${2} in
13461    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13462    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13463  esac
13464}
13465
13466# sed scripts:
13467my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13468my_sed_long_arg='1s/^-[^=]*=//'
13469
13470# func_opt_split
13471func_opt_split ()
13472{
13473  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13474  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13475}
13476
13477# func_lo2o object
13478func_lo2o ()
13479{
13480  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13481}
13482
13483# func_xform libobj-or-source
13484func_xform ()
13485{
13486  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13487}
13488
13489# func_arith arithmetic-term...
13490func_arith ()
13491{
13492  func_arith_result=`expr "$@"`
13493}
13494
13495# func_len string
13496# STRING may not start with a hyphen.
13497func_len ()
13498{
13499  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13500}
13501
13502_LT_EOF
13503esac
13504
13505case $lt_shell_append in
13506  yes)
13507    cat << \_LT_EOF >> "$cfgfile"
13508
13509# func_append var value
13510# Append VALUE to the end of shell variable VAR.
13511func_append ()
13512{
13513  eval "$1+=\$2"
13514}
13515_LT_EOF
13516    ;;
13517  *)
13518    cat << \_LT_EOF >> "$cfgfile"
13519
13520# func_append var value
13521# Append VALUE to the end of shell variable VAR.
13522func_append ()
13523{
13524  eval "$1=\$$1\$2"
13525}
13526
13527_LT_EOF
13528    ;;
13529  esac
13530
13531
13532  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13533    || (rm -f "$cfgfile"; exit 1)
13534
13535  mv -f "$cfgfile" "$ofile" ||
13536    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13537  chmod +x "$ofile"
13538
13539 ;;
13540    "default":C) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;;
13541
13542  esac
13543done # for ac_tag
13544
13545
13546as_fn_exit 0
13547_ACEOF
13548ac_clean_files=$ac_clean_files_save
13549
13550test $ac_write_fail = 0 ||
13551  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13552
13553
13554# configure is writing to config.log, and then calls config.status.
13555# config.status does its own redirection, appending to config.log.
13556# Unfortunately, on DOS this fails, as config.log is still kept open
13557# by configure, so config.status won't be able to write to it; its
13558# output is simply discarded.  So we exec the FD to /dev/null,
13559# effectively closing config.log, so it can be properly (re)opened and
13560# appended to by config.status.  When coming back to configure, we
13561# need to make the FD available again.
13562if test "$no_create" != yes; then
13563  ac_cs_success=:
13564  ac_config_status_args=
13565  test "$silent" = yes &&
13566    ac_config_status_args="$ac_config_status_args --quiet"
13567  exec 5>/dev/null
13568  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13569  exec 5>>config.log
13570  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13571  # would make configure fail if this is the last instruction.
13572  $ac_cs_success || as_fn_exit $?
13573fi
13574if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13575  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13576$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13577fi
13578
13579