xref: /netbsd-src/external/gpl3/gcc/dist/libobjc/configure (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
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
172
173  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    PATH=/empty FPATH=/empty; export PATH FPATH
178    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || 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='package-unused'
558PACKAGE_TARNAME='libobjc'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="objc/objc.h"
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
603SET_MAKE
604CPP
605OTOOL64
606OTOOL
607LIPO
608NMEDIT
609DSYMUTIL
610AWK
611STRIP
612LN_S
613NM
614ac_ct_DUMPBIN
615DUMPBIN
616LD
617FGREP
618EGREP
619GREP
620SED
621LIBTOOL
622OBJDUMP
623DLLTOOL
624MAINT
625MAINTAINER_MODE_FALSE
626MAINTAINER_MODE_TRUE
627INSTALL_DATA
628INSTALL_SCRIPT
629INSTALL_PROGRAM
630RANLIB
631AR
632AS
633extra_ldflags_libobjc
634lt_host_flags
635OBJEXT
636EXEEXT
637ac_ct_CC
638CPPFLAGS
639LDFLAGS
640CFLAGS
641CC
642libsuffix
643includedirname
644toolexeclibdir
645toolexecdir
646glibcpp_srcdir
647target_noncanonical
648target_os
649target_vendor
650target_cpu
651target
652host_os
653host_vendor
654host_cpu
655host
656multi_basedir
657OBJC_BOEHM_GC_INCLUDES
658OBJC_BOEHM_GC
659OBJC_GCFLAGS
660VERSION
661target_subdir
662host_subdir
663build_subdir
664build_libsubdir
665build_os
666build_vendor
667build_cpu
668build
669target_alias
670host_alias
671build_alias
672LIBS
673ECHO_T
674ECHO_N
675ECHO_C
676DEFS
677mandir
678localedir
679libdir
680psdir
681pdfdir
682dvidir
683htmldir
684infodir
685docdir
686oldincludedir
687includedir
688localstatedir
689sharedstatedir
690sysconfdir
691datadir
692datarootdir
693libexecdir
694sbindir
695bindir
696program_transform_name
697prefix
698exec_prefix
699PACKAGE_URL
700PACKAGE_BUGREPORT
701PACKAGE_STRING
702PACKAGE_VERSION
703PACKAGE_TARNAME
704PACKAGE_NAME
705PATH_SEPARATOR
706SHELL'
707ac_subst_files=''
708ac_user_opts='
709enable_option_checking
710with_build_libsubdir
711with_target_subdir
712with_cross_host
713enable_version_specific_runtime_libs
714enable_objc_gc
715enable_multilib
716enable_maintainer_mode
717enable_shared
718enable_static
719with_pic
720enable_fast_install
721with_gnu_ld
722enable_libtool_lock
723enable_tls
724'
725      ac_precious_vars='build_alias
726host_alias
727target_alias
728CPP
729CPPFLAGS'
730
731
732# Initialize some variables set by options.
733ac_init_help=
734ac_init_version=false
735ac_unrecognized_opts=
736ac_unrecognized_sep=
737# The variables have the same names as the options, with
738# dashes changed to underlines.
739cache_file=/dev/null
740exec_prefix=NONE
741no_create=
742no_recursion=
743prefix=NONE
744program_prefix=NONE
745program_suffix=NONE
746program_transform_name=s,x,x,
747silent=
748site=
749srcdir=
750verbose=
751x_includes=NONE
752x_libraries=NONE
753
754# Installation directory options.
755# These are left unexpanded so users can "make install exec_prefix=/foo"
756# and all the variables that are supposed to be based on exec_prefix
757# by default will actually change.
758# Use braces instead of parens because sh, perl, etc. also accept them.
759# (The list follows the same order as the GNU Coding Standards.)
760bindir='${exec_prefix}/bin'
761sbindir='${exec_prefix}/sbin'
762libexecdir='${exec_prefix}/libexec'
763datarootdir='${prefix}/share'
764datadir='${datarootdir}'
765sysconfdir='${prefix}/etc'
766sharedstatedir='${prefix}/com'
767localstatedir='${prefix}/var'
768includedir='${prefix}/include'
769oldincludedir='/usr/include'
770docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
771infodir='${datarootdir}/info'
772htmldir='${docdir}'
773dvidir='${docdir}'
774pdfdir='${docdir}'
775psdir='${docdir}'
776libdir='${exec_prefix}/lib'
777localedir='${datarootdir}/locale'
778mandir='${datarootdir}/man'
779
780ac_prev=
781ac_dashdash=
782for ac_option
783do
784  # If the previous option needs an argument, assign it.
785  if test -n "$ac_prev"; then
786    eval $ac_prev=\$ac_option
787    ac_prev=
788    continue
789  fi
790
791  case $ac_option in
792  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793  *)	ac_optarg=yes ;;
794  esac
795
796  # Accept the important Cygnus configure options, so we can diagnose typos.
797
798  case $ac_dashdash$ac_option in
799  --)
800    ac_dashdash=yes ;;
801
802  -bindir | --bindir | --bindi | --bind | --bin | --bi)
803    ac_prev=bindir ;;
804  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805    bindir=$ac_optarg ;;
806
807  -build | --build | --buil | --bui | --bu)
808    ac_prev=build_alias ;;
809  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810    build_alias=$ac_optarg ;;
811
812  -cache-file | --cache-file | --cache-fil | --cache-fi \
813  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
814    ac_prev=cache_file ;;
815  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
816  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
817    cache_file=$ac_optarg ;;
818
819  --config-cache | -C)
820    cache_file=config.cache ;;
821
822  -datadir | --datadir | --datadi | --datad)
823    ac_prev=datadir ;;
824  -datadir=* | --datadir=* | --datadi=* | --datad=*)
825    datadir=$ac_optarg ;;
826
827  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
828  | --dataroo | --dataro | --datar)
829    ac_prev=datarootdir ;;
830  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
831  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
832    datarootdir=$ac_optarg ;;
833
834  -disable-* | --disable-*)
835    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
836    # Reject names that are not valid shell variable names.
837    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838      as_fn_error "invalid feature name: $ac_useropt"
839    ac_useropt_orig=$ac_useropt
840    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841    case $ac_user_opts in
842      *"
843"enable_$ac_useropt"
844"*) ;;
845      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
846	 ac_unrecognized_sep=', ';;
847    esac
848    eval enable_$ac_useropt=no ;;
849
850  -docdir | --docdir | --docdi | --doc | --do)
851    ac_prev=docdir ;;
852  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853    docdir=$ac_optarg ;;
854
855  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856    ac_prev=dvidir ;;
857  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858    dvidir=$ac_optarg ;;
859
860  -enable-* | --enable-*)
861    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862    # Reject names that are not valid shell variable names.
863    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864      as_fn_error "invalid feature name: $ac_useropt"
865    ac_useropt_orig=$ac_useropt
866    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867    case $ac_user_opts in
868      *"
869"enable_$ac_useropt"
870"*) ;;
871      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
872	 ac_unrecognized_sep=', ';;
873    esac
874    eval enable_$ac_useropt=\$ac_optarg ;;
875
876  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878  | --exec | --exe | --ex)
879    ac_prev=exec_prefix ;;
880  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882  | --exec=* | --exe=* | --ex=*)
883    exec_prefix=$ac_optarg ;;
884
885  -gas | --gas | --ga | --g)
886    # Obsolete; use --with-gas.
887    with_gas=yes ;;
888
889  -help | --help | --hel | --he | -h)
890    ac_init_help=long ;;
891  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892    ac_init_help=recursive ;;
893  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894    ac_init_help=short ;;
895
896  -host | --host | --hos | --ho)
897    ac_prev=host_alias ;;
898  -host=* | --host=* | --hos=* | --ho=*)
899    host_alias=$ac_optarg ;;
900
901  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902    ac_prev=htmldir ;;
903  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904  | --ht=*)
905    htmldir=$ac_optarg ;;
906
907  -includedir | --includedir | --includedi | --included | --include \
908  | --includ | --inclu | --incl | --inc)
909    ac_prev=includedir ;;
910  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911  | --includ=* | --inclu=* | --incl=* | --inc=*)
912    includedir=$ac_optarg ;;
913
914  -infodir | --infodir | --infodi | --infod | --info | --inf)
915    ac_prev=infodir ;;
916  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917    infodir=$ac_optarg ;;
918
919  -libdir | --libdir | --libdi | --libd)
920    ac_prev=libdir ;;
921  -libdir=* | --libdir=* | --libdi=* | --libd=*)
922    libdir=$ac_optarg ;;
923
924  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925  | --libexe | --libex | --libe)
926    ac_prev=libexecdir ;;
927  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928  | --libexe=* | --libex=* | --libe=*)
929    libexecdir=$ac_optarg ;;
930
931  -localedir | --localedir | --localedi | --localed | --locale)
932    ac_prev=localedir ;;
933  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934    localedir=$ac_optarg ;;
935
936  -localstatedir | --localstatedir | --localstatedi | --localstated \
937  | --localstate | --localstat | --localsta | --localst | --locals)
938    ac_prev=localstatedir ;;
939  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941    localstatedir=$ac_optarg ;;
942
943  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944    ac_prev=mandir ;;
945  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946    mandir=$ac_optarg ;;
947
948  -nfp | --nfp | --nf)
949    # Obsolete; use --without-fp.
950    with_fp=no ;;
951
952  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953  | --no-cr | --no-c | -n)
954    no_create=yes ;;
955
956  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958    no_recursion=yes ;;
959
960  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962  | --oldin | --oldi | --old | --ol | --o)
963    ac_prev=oldincludedir ;;
964  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967    oldincludedir=$ac_optarg ;;
968
969  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970    ac_prev=prefix ;;
971  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972    prefix=$ac_optarg ;;
973
974  -program-prefix | --program-prefix | --program-prefi | --program-pref \
975  | --program-pre | --program-pr | --program-p)
976    ac_prev=program_prefix ;;
977  -program-prefix=* | --program-prefix=* | --program-prefi=* \
978  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979    program_prefix=$ac_optarg ;;
980
981  -program-suffix | --program-suffix | --program-suffi | --program-suff \
982  | --program-suf | --program-su | --program-s)
983    ac_prev=program_suffix ;;
984  -program-suffix=* | --program-suffix=* | --program-suffi=* \
985  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986    program_suffix=$ac_optarg ;;
987
988  -program-transform-name | --program-transform-name \
989  | --program-transform-nam | --program-transform-na \
990  | --program-transform-n | --program-transform- \
991  | --program-transform | --program-transfor \
992  | --program-transfo | --program-transf \
993  | --program-trans | --program-tran \
994  | --progr-tra | --program-tr | --program-t)
995    ac_prev=program_transform_name ;;
996  -program-transform-name=* | --program-transform-name=* \
997  | --program-transform-nam=* | --program-transform-na=* \
998  | --program-transform-n=* | --program-transform-=* \
999  | --program-transform=* | --program-transfor=* \
1000  | --program-transfo=* | --program-transf=* \
1001  | --program-trans=* | --program-tran=* \
1002  | --progr-tra=* | --program-tr=* | --program-t=*)
1003    program_transform_name=$ac_optarg ;;
1004
1005  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006    ac_prev=pdfdir ;;
1007  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008    pdfdir=$ac_optarg ;;
1009
1010  -psdir | --psdir | --psdi | --psd | --ps)
1011    ac_prev=psdir ;;
1012  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013    psdir=$ac_optarg ;;
1014
1015  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016  | -silent | --silent | --silen | --sile | --sil)
1017    silent=yes ;;
1018
1019  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020    ac_prev=sbindir ;;
1021  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022  | --sbi=* | --sb=*)
1023    sbindir=$ac_optarg ;;
1024
1025  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027  | --sharedst | --shareds | --shared | --share | --shar \
1028  | --sha | --sh)
1029    ac_prev=sharedstatedir ;;
1030  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033  | --sha=* | --sh=*)
1034    sharedstatedir=$ac_optarg ;;
1035
1036  -site | --site | --sit)
1037    ac_prev=site ;;
1038  -site=* | --site=* | --sit=*)
1039    site=$ac_optarg ;;
1040
1041  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042    ac_prev=srcdir ;;
1043  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044    srcdir=$ac_optarg ;;
1045
1046  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047  | --syscon | --sysco | --sysc | --sys | --sy)
1048    ac_prev=sysconfdir ;;
1049  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051    sysconfdir=$ac_optarg ;;
1052
1053  -target | --target | --targe | --targ | --tar | --ta | --t)
1054    ac_prev=target_alias ;;
1055  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056    target_alias=$ac_optarg ;;
1057
1058  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059    verbose=yes ;;
1060
1061  -version | --version | --versio | --versi | --vers | -V)
1062    ac_init_version=: ;;
1063
1064  -with-* | --with-*)
1065    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066    # Reject names that are not valid shell variable names.
1067    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068      as_fn_error "invalid package name: $ac_useropt"
1069    ac_useropt_orig=$ac_useropt
1070    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071    case $ac_user_opts in
1072      *"
1073"with_$ac_useropt"
1074"*) ;;
1075      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1076	 ac_unrecognized_sep=', ';;
1077    esac
1078    eval with_$ac_useropt=\$ac_optarg ;;
1079
1080  -without-* | --without-*)
1081    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084      as_fn_error "invalid package name: $ac_useropt"
1085    ac_useropt_orig=$ac_useropt
1086    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087    case $ac_user_opts in
1088      *"
1089"with_$ac_useropt"
1090"*) ;;
1091      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1092	 ac_unrecognized_sep=', ';;
1093    esac
1094    eval with_$ac_useropt=no ;;
1095
1096  --x)
1097    # Obsolete; use --with-x.
1098    with_x=yes ;;
1099
1100  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1101  | --x-incl | --x-inc | --x-in | --x-i)
1102    ac_prev=x_includes ;;
1103  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1104  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1105    x_includes=$ac_optarg ;;
1106
1107  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1108  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1109    ac_prev=x_libraries ;;
1110  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1111  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1112    x_libraries=$ac_optarg ;;
1113
1114  -*) as_fn_error "unrecognized option: \`$ac_option'
1115Try \`$0 --help' for more information."
1116    ;;
1117
1118  *=*)
1119    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1120    # Reject names that are not valid shell variable names.
1121    case $ac_envvar in #(
1122      '' | [0-9]* | *[!_$as_cr_alnum]* )
1123      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1124    esac
1125    eval $ac_envvar=\$ac_optarg
1126    export $ac_envvar ;;
1127
1128  *)
1129    # FIXME: should be removed in autoconf 3.0.
1130    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1131    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1132      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1133    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1134    ;;
1135
1136  esac
1137done
1138
1139if test -n "$ac_prev"; then
1140  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1141  as_fn_error "missing argument to $ac_option"
1142fi
1143
1144if test -n "$ac_unrecognized_opts"; then
1145  case $enable_option_checking in
1146    no) ;;
1147    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1148    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1149  esac
1150fi
1151
1152# Check all directory arguments for consistency.
1153for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154		datadir sysconfdir sharedstatedir localstatedir includedir \
1155		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156		libdir localedir mandir
1157do
1158  eval ac_val=\$$ac_var
1159  # Remove trailing slashes.
1160  case $ac_val in
1161    */ )
1162      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163      eval $ac_var=\$ac_val;;
1164  esac
1165  # Be sure to have absolute directory names.
1166  case $ac_val in
1167    [\\/$]* | ?:[\\/]* )  continue;;
1168    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1169  esac
1170  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1171done
1172
1173# There might be people who depend on the old broken behavior: `$host'
1174# used to hold the argument of --host etc.
1175# FIXME: To remove some day.
1176build=$build_alias
1177host=$host_alias
1178target=$target_alias
1179
1180# FIXME: To remove some day.
1181if test "x$host_alias" != x; then
1182  if test "x$build_alias" = x; then
1183    cross_compiling=maybe
1184    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1185    If a cross compiler is detected then cross compile mode will be used." >&2
1186  elif test "x$build_alias" != "x$host_alias"; then
1187    cross_compiling=yes
1188  fi
1189fi
1190
1191ac_tool_prefix=
1192test -n "$host_alias" && ac_tool_prefix=$host_alias-
1193
1194test "$silent" = yes && exec 6>/dev/null
1195
1196
1197ac_pwd=`pwd` && test -n "$ac_pwd" &&
1198ac_ls_di=`ls -di .` &&
1199ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1200  as_fn_error "working directory cannot be determined"
1201test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202  as_fn_error "pwd does not report name of working directory"
1203
1204
1205# Find the source files, if location was not specified.
1206if test -z "$srcdir"; then
1207  ac_srcdir_defaulted=yes
1208  # Try the directory containing this script, then the parent directory.
1209  ac_confdir=`$as_dirname -- "$as_myself" ||
1210$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1211	 X"$as_myself" : 'X\(//\)[^/]' \| \
1212	 X"$as_myself" : 'X\(//\)$' \| \
1213	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1214$as_echo X"$as_myself" |
1215    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1216	    s//\1/
1217	    q
1218	  }
1219	  /^X\(\/\/\)[^/].*/{
1220	    s//\1/
1221	    q
1222	  }
1223	  /^X\(\/\/\)$/{
1224	    s//\1/
1225	    q
1226	  }
1227	  /^X\(\/\).*/{
1228	    s//\1/
1229	    q
1230	  }
1231	  s/.*/./; q'`
1232  srcdir=$ac_confdir
1233  if test ! -r "$srcdir/$ac_unique_file"; then
1234    srcdir=..
1235  fi
1236else
1237  ac_srcdir_defaulted=no
1238fi
1239if test ! -r "$srcdir/$ac_unique_file"; then
1240  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1241  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1242fi
1243ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1244ac_abs_confdir=`(
1245	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1246	pwd)`
1247# When building in place, set srcdir=.
1248if test "$ac_abs_confdir" = "$ac_pwd"; then
1249  srcdir=.
1250fi
1251# Remove unnecessary trailing slashes from srcdir.
1252# Double slashes in file names in object file debugging info
1253# mess up M-x gdb in Emacs.
1254case $srcdir in
1255*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256esac
1257for ac_var in $ac_precious_vars; do
1258  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1259  eval ac_env_${ac_var}_value=\$${ac_var}
1260  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1261  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1262done
1263
1264#
1265# Report the --help message.
1266#
1267if test "$ac_init_help" = "long"; then
1268  # Omit some internal or obsolete options to make the list less imposing.
1269  # This message is too long to be a string in the A/UX 3.1 sh.
1270  cat <<_ACEOF
1271\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1272
1273Usage: $0 [OPTION]... [VAR=VALUE]...
1274
1275To assign environment variables (e.g., CC, CFLAGS...), specify them as
1276VAR=VALUE.  See below for descriptions of some of the useful variables.
1277
1278Defaults for the options are specified in brackets.
1279
1280Configuration:
1281  -h, --help              display this help and exit
1282      --help=short        display options specific to this package
1283      --help=recursive    display the short help of all the included packages
1284  -V, --version           display version information and exit
1285  -q, --quiet, --silent   do not print \`checking...' messages
1286      --cache-file=FILE   cache test results in FILE [disabled]
1287  -C, --config-cache      alias for \`--cache-file=config.cache'
1288  -n, --no-create         do not create output files
1289      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1290
1291Installation directories:
1292  --prefix=PREFIX         install architecture-independent files in PREFIX
1293                          [$ac_default_prefix]
1294  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1295                          [PREFIX]
1296
1297By default, \`make install' will install all the files in
1298\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1299an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1300for instance \`--prefix=\$HOME'.
1301
1302For better control, use the options below.
1303
1304Fine tuning of the installation directories:
1305  --bindir=DIR            user executables [EPREFIX/bin]
1306  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1307  --libexecdir=DIR        program executables [EPREFIX/libexec]
1308  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1309  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1310  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1311  --libdir=DIR            object code libraries [EPREFIX/lib]
1312  --includedir=DIR        C header files [PREFIX/include]
1313  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1314  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1315  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1316  --infodir=DIR           info documentation [DATAROOTDIR/info]
1317  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1318  --mandir=DIR            man documentation [DATAROOTDIR/man]
1319  --docdir=DIR            documentation root [DATAROOTDIR/doc/libobjc]
1320  --htmldir=DIR           html documentation [DOCDIR]
1321  --dvidir=DIR            dvi documentation [DOCDIR]
1322  --pdfdir=DIR            pdf documentation [DOCDIR]
1323  --psdir=DIR             ps documentation [DOCDIR]
1324_ACEOF
1325
1326  cat <<\_ACEOF
1327
1328System types:
1329  --build=BUILD     configure for building on BUILD [guessed]
1330  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1331  --target=TARGET   configure for building compilers for TARGET [HOST]
1332_ACEOF
1333fi
1334
1335if test -n "$ac_init_help"; then
1336  case $ac_init_help in
1337     short | recursive ) echo "Configuration of package-unused version-unused:";;
1338   esac
1339  cat <<\_ACEOF
1340
1341Optional Features:
1342  --disable-option-checking  ignore unrecognized --enable/--with options
1343  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1344  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1345  --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1346  --enable-objc-gc       enable the use of Boehm's garbage collector with
1347                          the GNU Objective-C runtime.
1348  --enable-multilib       build many library versions (default)
1349  --enable-maintainer-mode  enable make rules and dependencies not useful
1350			  (and sometimes confusing) to the casual installer
1351  --enable-shared[=PKGS]  build shared libraries [default=yes]
1352  --enable-static[=PKGS]  build static libraries [default=yes]
1353  --enable-fast-install[=PKGS]
1354                          optimize for fast installation [default=yes]
1355  --disable-libtool-lock  avoid locking (might break parallel builds)
1356  --enable-tls            Use thread-local storage [default=yes]
1357
1358Optional Packages:
1359  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1360  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1361  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1362  --with-target-subdir=SUBDIR
1363                           configuring in a subdirectory
1364  --with-cross-host=HOST  configuring with a cross compiler
1365  --with-pic              try to use only PIC/non-PIC objects [default=use
1366                          both]
1367  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1368
1369Some influential environment variables:
1370  CC          C compiler command
1371  CFLAGS      C compiler flags
1372  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1373              nonstandard directory <lib dir>
1374  LIBS        libraries to pass to the linker, e.g. -l<library>
1375  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376              you have headers in a nonstandard directory <include dir>
1377  CPP         C preprocessor
1378
1379Use these variables to override the choices made by `configure' or to help
1380it to find libraries and programs with nonstandard names/locations.
1381
1382Report bugs to the package provider.
1383_ACEOF
1384ac_status=$?
1385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388  # If there are subdirs, report their specific --help.
1389  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390    test -d "$ac_dir" ||
1391      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392      continue
1393    ac_builddir=.
1394
1395case "$ac_dir" in
1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397*)
1398  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399  # A ".." for each directory in $ac_dir_suffix.
1400  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401  case $ac_top_builddir_sub in
1402  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404  esac ;;
1405esac
1406ac_abs_top_builddir=$ac_pwd
1407ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408# for backward compatibility:
1409ac_top_builddir=$ac_top_build_prefix
1410
1411case $srcdir in
1412  .)  # We are building in place.
1413    ac_srcdir=.
1414    ac_top_srcdir=$ac_top_builddir_sub
1415    ac_abs_top_srcdir=$ac_pwd ;;
1416  [\\/]* | ?:[\\/]* )  # Absolute name.
1417    ac_srcdir=$srcdir$ac_dir_suffix;
1418    ac_top_srcdir=$srcdir
1419    ac_abs_top_srcdir=$srcdir ;;
1420  *) # Relative name.
1421    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422    ac_top_srcdir=$ac_top_build_prefix$srcdir
1423    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424esac
1425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427    cd "$ac_dir" || { ac_status=$?; continue; }
1428    # Check for guested configure.
1429    if test -f "$ac_srcdir/configure.gnu"; then
1430      echo &&
1431      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432    elif test -f "$ac_srcdir/configure"; then
1433      echo &&
1434      $SHELL "$ac_srcdir/configure" --help=recursive
1435    else
1436      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437    fi || ac_status=$?
1438    cd "$ac_pwd" || { ac_status=$?; break; }
1439  done
1440fi
1441
1442test -n "$ac_init_help" && exit $ac_status
1443if $ac_init_version; then
1444  cat <<\_ACEOF
1445package-unused configure version-unused
1446generated by GNU Autoconf 2.64
1447
1448Copyright (C) 2009 Free Software Foundation, Inc.
1449This configure script is free software; the Free Software Foundation
1450gives unlimited permission to copy, distribute and modify it.
1451_ACEOF
1452  exit
1453fi
1454
1455## ------------------------ ##
1456## Autoconf initialization. ##
1457## ------------------------ ##
1458
1459# ac_fn_c_try_compile LINENO
1460# --------------------------
1461# Try to compile conftest.$ac_ext, and return whether this succeeded.
1462ac_fn_c_try_compile ()
1463{
1464  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465  rm -f conftest.$ac_objext
1466  if { { ac_try="$ac_compile"
1467case "(($ac_try" in
1468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469  *) ac_try_echo=$ac_try;;
1470esac
1471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472$as_echo "$ac_try_echo"; } >&5
1473  (eval "$ac_compile") 2>conftest.err
1474  ac_status=$?
1475  if test -s conftest.err; then
1476    grep -v '^ *+' conftest.err >conftest.er1
1477    cat conftest.er1 >&5
1478    mv -f conftest.er1 conftest.err
1479  fi
1480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481  test $ac_status = 0; } && {
1482	 test -z "$ac_c_werror_flag" ||
1483	 test ! -s conftest.err
1484       } && test -s conftest.$ac_objext; then :
1485  ac_retval=0
1486else
1487  $as_echo "$as_me: failed program was:" >&5
1488sed 's/^/| /' conftest.$ac_ext >&5
1489
1490	ac_retval=1
1491fi
1492  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1493  return $ac_retval
1494
1495} # ac_fn_c_try_compile
1496
1497# ac_fn_c_try_link LINENO
1498# -----------------------
1499# Try to link conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_link ()
1501{
1502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503  rm -f conftest.$ac_objext conftest$ac_exeext
1504  if { { ac_try="$ac_link"
1505case "(($ac_try" in
1506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507  *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511  (eval "$ac_link") 2>conftest.err
1512  ac_status=$?
1513  if test -s conftest.err; then
1514    grep -v '^ *+' conftest.err >conftest.er1
1515    cat conftest.er1 >&5
1516    mv -f conftest.er1 conftest.err
1517  fi
1518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519  test $ac_status = 0; } && {
1520	 test -z "$ac_c_werror_flag" ||
1521	 test ! -s conftest.err
1522       } && test -s conftest$ac_exeext && {
1523	 test "$cross_compiling" = yes ||
1524	 $as_test_x conftest$ac_exeext
1525       }; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1534  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1535  # interfere with the next link command; also delete a directory that is
1536  # left behind by Apple's compiler.  We do this before executing the actions.
1537  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1538  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539  return $ac_retval
1540
1541} # ac_fn_c_try_link
1542
1543# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1544# -------------------------------------------------------
1545# Tests whether HEADER exists and can be compiled using the include files in
1546# INCLUDES, setting the cache variable VAR accordingly.
1547ac_fn_c_check_header_compile ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551$as_echo_n "checking for $2... " >&6; }
1552if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1553  $as_echo_n "(cached) " >&6
1554else
1555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556/* end confdefs.h.  */
1557$4
1558#include <$2>
1559_ACEOF
1560if ac_fn_c_try_compile "$LINENO"; then :
1561  eval "$3=yes"
1562else
1563  eval "$3=no"
1564fi
1565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566fi
1567eval ac_res=\$$3
1568	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569$as_echo "$ac_res" >&6; }
1570  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571
1572} # ac_fn_c_check_header_compile
1573
1574# ac_fn_c_try_cpp LINENO
1575# ----------------------
1576# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_cpp ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  if { { ac_try="$ac_cpp conftest.$ac_ext"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } >/dev/null && {
1596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       }; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604    ac_retval=1
1605fi
1606  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607  return $ac_retval
1608
1609} # ac_fn_c_try_cpp
1610
1611# ac_fn_c_try_run LINENO
1612# ----------------------
1613# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614# that executables *can* be run.
1615ac_fn_c_try_run ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  if { { ac_try="$ac_link"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625  (eval "$ac_link") 2>&5
1626  ac_status=$?
1627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629  { { case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_try") 2>&5
1636  ac_status=$?
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; }; }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: program exited with status $ac_status" >&5
1642       $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645       ac_retval=$ac_status
1646fi
1647  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649  return $ac_retval
1650
1651} # ac_fn_c_try_run
1652
1653# ac_fn_c_check_func LINENO FUNC VAR
1654# ----------------------------------
1655# Tests whether FUNC exists, setting the cache variable VAR accordingly
1656ac_fn_c_check_func ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  if test x$gcc_no_link = xyes; then
1665  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1666fi
1667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1670   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1671#define $2 innocuous_$2
1672
1673/* System header to define __stub macros and hopefully few prototypes,
1674    which can conflict with char $2 (); below.
1675    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1676    <limits.h> exists even on freestanding compilers.  */
1677
1678#ifdef __STDC__
1679# include <limits.h>
1680#else
1681# include <assert.h>
1682#endif
1683
1684#undef $2
1685
1686/* Override any GCC internal prototype to avoid an error.
1687   Use char because int might match the return type of a GCC
1688   builtin and then its argument prototype would still apply.  */
1689#ifdef __cplusplus
1690extern "C"
1691#endif
1692char $2 ();
1693/* The GNU C library defines this for functions which it implements
1694    to always fail with ENOSYS.  Some functions are actually named
1695    something starting with __ and the normal name is an alias.  */
1696#if defined __stub_$2 || defined __stub___$2
1697choke me
1698#endif
1699
1700int
1701main ()
1702{
1703return $2 ();
1704  ;
1705  return 0;
1706}
1707_ACEOF
1708if ac_fn_c_try_link "$LINENO"; then :
1709  eval "$3=yes"
1710else
1711  eval "$3=no"
1712fi
1713rm -f core conftest.err conftest.$ac_objext \
1714    conftest$ac_exeext conftest.$ac_ext
1715fi
1716eval ac_res=\$$3
1717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
1719  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720
1721} # ac_fn_c_check_func
1722
1723# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726# the include files in INCLUDES and setting the cache variable VAR
1727# accordingly.
1728ac_fn_c_check_header_mongrel ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1735  $as_echo_n "(cached) " >&6
1736fi
1737eval ac_res=\$$3
1738	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739$as_echo "$ac_res" >&6; }
1740else
1741  # Is the header compilable?
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743$as_echo_n "checking $2 usability... " >&6; }
1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746$4
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750  ac_header_compiler=yes
1751else
1752  ac_header_compiler=no
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756$as_echo "$ac_header_compiler" >&6; }
1757
1758# Is the header present?
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760$as_echo_n "checking $2 presence... " >&6; }
1761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763#include <$2>
1764_ACEOF
1765if ac_fn_c_try_cpp "$LINENO"; then :
1766  ac_header_preproc=yes
1767else
1768  ac_header_preproc=no
1769fi
1770rm -f conftest.err conftest.$ac_ext
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772$as_echo "$ac_header_preproc" >&6; }
1773
1774# So?  What about this header?
1775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776  yes:no: )
1777    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781    ;;
1782  no:yes:* )
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1786$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1790$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793    ;;
1794esac
1795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
1797if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798  $as_echo_n "(cached) " >&6
1799else
1800  eval "$3=\$ac_header_compiler"
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805fi
1806  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807
1808} # ac_fn_c_check_header_mongrel
1809cat >config.log <<_ACEOF
1810This file contains any messages produced by compilers while
1811running configure, to aid debugging if configure makes a mistake.
1812
1813It was created by package-unused $as_me version-unused, which was
1814generated by GNU Autoconf 2.64.  Invocation command line was
1815
1816  $ $0 $@
1817
1818_ACEOF
1819exec 5>>config.log
1820{
1821cat <<_ASUNAME
1822## --------- ##
1823## Platform. ##
1824## --------- ##
1825
1826hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830uname -v = `(uname -v) 2>/dev/null || echo unknown`
1831
1832/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1834
1835/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1836/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1837/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1839/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1840/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1841/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1842
1843_ASUNAME
1844
1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846for as_dir in $PATH
1847do
1848  IFS=$as_save_IFS
1849  test -z "$as_dir" && as_dir=.
1850    $as_echo "PATH: $as_dir"
1851  done
1852IFS=$as_save_IFS
1853
1854} >&5
1855
1856cat >&5 <<_ACEOF
1857
1858
1859## ----------- ##
1860## Core tests. ##
1861## ----------- ##
1862
1863_ACEOF
1864
1865
1866# Keep a trace of the command line.
1867# Strip out --no-create and --no-recursion so they do not pile up.
1868# Strip out --silent because we don't want to record it for future runs.
1869# Also quote any args containing shell meta-characters.
1870# Make two passes to allow for proper duplicate-argument suppression.
1871ac_configure_args=
1872ac_configure_args0=
1873ac_configure_args1=
1874ac_must_keep_next=false
1875for ac_pass in 1 2
1876do
1877  for ac_arg
1878  do
1879    case $ac_arg in
1880    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882    | -silent | --silent | --silen | --sile | --sil)
1883      continue ;;
1884    *\'*)
1885      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886    esac
1887    case $ac_pass in
1888    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889    2)
1890      as_fn_append ac_configure_args1 " '$ac_arg'"
1891      if test $ac_must_keep_next = true; then
1892	ac_must_keep_next=false # Got value, back to normal.
1893      else
1894	case $ac_arg in
1895	  *=* | --config-cache | -C | -disable-* | --disable-* \
1896	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898	  | -with-* | --with-* | -without-* | --without-* | --x)
1899	    case "$ac_configure_args0 " in
1900	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901	    esac
1902	    ;;
1903	  -* ) ac_must_keep_next=true ;;
1904	esac
1905      fi
1906      as_fn_append ac_configure_args " '$ac_arg'"
1907      ;;
1908    esac
1909  done
1910done
1911{ ac_configure_args0=; unset ac_configure_args0;}
1912{ ac_configure_args1=; unset ac_configure_args1;}
1913
1914# When interrupted or exit'd, cleanup temporary files, and complete
1915# config.log.  We remove comments because anyway the quotes in there
1916# would cause problems or look ugly.
1917# WARNING: Use '\'' to represent an apostrophe within the trap.
1918# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919trap 'exit_status=$?
1920  # Save into config.log some information that might help in debugging.
1921  {
1922    echo
1923
1924    cat <<\_ASBOX
1925## ---------------- ##
1926## Cache variables. ##
1927## ---------------- ##
1928_ASBOX
1929    echo
1930    # The following way of writing the cache mishandles newlines in values,
1931(
1932  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933    eval ac_val=\$$ac_var
1934    case $ac_val in #(
1935    *${as_nl}*)
1936      case $ac_var in #(
1937      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939      esac
1940      case $ac_var in #(
1941      _ | IFS | as_nl) ;; #(
1942      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943      *) { eval $ac_var=; unset $ac_var;} ;;
1944      esac ;;
1945    esac
1946  done
1947  (set) 2>&1 |
1948    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949    *${as_nl}ac_space=\ *)
1950      sed -n \
1951	"s/'\''/'\''\\\\'\'''\''/g;
1952	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953      ;; #(
1954    *)
1955      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956      ;;
1957    esac |
1958    sort
1959)
1960    echo
1961
1962    cat <<\_ASBOX
1963## ----------------- ##
1964## Output variables. ##
1965## ----------------- ##
1966_ASBOX
1967    echo
1968    for ac_var in $ac_subst_vars
1969    do
1970      eval ac_val=\$$ac_var
1971      case $ac_val in
1972      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973      esac
1974      $as_echo "$ac_var='\''$ac_val'\''"
1975    done | sort
1976    echo
1977
1978    if test -n "$ac_subst_files"; then
1979      cat <<\_ASBOX
1980## ------------------- ##
1981## File substitutions. ##
1982## ------------------- ##
1983_ASBOX
1984      echo
1985      for ac_var in $ac_subst_files
1986      do
1987	eval ac_val=\$$ac_var
1988	case $ac_val in
1989	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990	esac
1991	$as_echo "$ac_var='\''$ac_val'\''"
1992      done | sort
1993      echo
1994    fi
1995
1996    if test -s confdefs.h; then
1997      cat <<\_ASBOX
1998## ----------- ##
1999## confdefs.h. ##
2000## ----------- ##
2001_ASBOX
2002      echo
2003      cat confdefs.h
2004      echo
2005    fi
2006    test "$ac_signal" != 0 &&
2007      $as_echo "$as_me: caught signal $ac_signal"
2008    $as_echo "$as_me: exit $exit_status"
2009  } >&5
2010  rm -f core *.core core.conftest.* &&
2011    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2012    exit $exit_status
2013' 0
2014for ac_signal in 1 2 13 15; do
2015  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2016done
2017ac_signal=0
2018
2019# confdefs.h avoids OS command line length limits that DEFS can exceed.
2020rm -f -r conftest* confdefs.h
2021
2022$as_echo "/* confdefs.h */" > confdefs.h
2023
2024# Predefined preprocessor variables.
2025
2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_NAME "$PACKAGE_NAME"
2028_ACEOF
2029
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2032_ACEOF
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_VERSION "$PACKAGE_VERSION"
2036_ACEOF
2037
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_STRING "$PACKAGE_STRING"
2040_ACEOF
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2044_ACEOF
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_URL "$PACKAGE_URL"
2048_ACEOF
2049
2050
2051# Let the site file select an alternate cache file if it wants to.
2052# Prefer an explicitly selected file to automatically selected ones.
2053ac_site_file1=NONE
2054ac_site_file2=NONE
2055if test -n "$CONFIG_SITE"; then
2056  ac_site_file1=$CONFIG_SITE
2057elif test "x$prefix" != xNONE; then
2058  ac_site_file1=$prefix/share/config.site
2059  ac_site_file2=$prefix/etc/config.site
2060else
2061  ac_site_file1=$ac_default_prefix/share/config.site
2062  ac_site_file2=$ac_default_prefix/etc/config.site
2063fi
2064for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2065do
2066  test "x$ac_site_file" = xNONE && continue
2067  if test -r "$ac_site_file"; then
2068    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2069$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2070    sed 's/^/| /' "$ac_site_file" >&5
2071    . "$ac_site_file"
2072  fi
2073done
2074
2075if test -r "$cache_file"; then
2076  # Some versions of bash will fail to source /dev/null (special
2077  # files actually), so we avoid doing that.
2078  if test -f "$cache_file"; then
2079    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2080$as_echo "$as_me: loading cache $cache_file" >&6;}
2081    case $cache_file in
2082      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2083      *)                      . "./$cache_file";;
2084    esac
2085  fi
2086else
2087  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2088$as_echo "$as_me: creating cache $cache_file" >&6;}
2089  >$cache_file
2090fi
2091
2092# Check that the precious variables saved in the cache have kept the same
2093# value.
2094ac_cache_corrupted=false
2095for ac_var in $ac_precious_vars; do
2096  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2097  eval ac_new_set=\$ac_env_${ac_var}_set
2098  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2099  eval ac_new_val=\$ac_env_${ac_var}_value
2100  case $ac_old_set,$ac_new_set in
2101    set,)
2102      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2103$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2104      ac_cache_corrupted=: ;;
2105    ,set)
2106      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2107$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2108      ac_cache_corrupted=: ;;
2109    ,);;
2110    *)
2111      if test "x$ac_old_val" != "x$ac_new_val"; then
2112	# differences in whitespace do not lead to failure.
2113	ac_old_val_w=`echo x $ac_old_val`
2114	ac_new_val_w=`echo x $ac_new_val`
2115	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2116	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2117$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2118	  ac_cache_corrupted=:
2119	else
2120	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2121$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2122	  eval $ac_var=\$ac_old_val
2123	fi
2124	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2125$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2126	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2127$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2128      fi;;
2129  esac
2130  # Pass precious variables to config.status.
2131  if test "$ac_new_set" = set; then
2132    case $ac_new_val in
2133    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2134    *) ac_arg=$ac_var=$ac_new_val ;;
2135    esac
2136    case " $ac_configure_args " in
2137      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2138      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2139    esac
2140  fi
2141done
2142if $ac_cache_corrupted; then
2143  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2146$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2147  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2148fi
2149## -------------------- ##
2150## Main body of script. ##
2151## -------------------- ##
2152
2153ac_ext=c
2154ac_cpp='$CPP $CPPFLAGS'
2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158
2159
2160
2161
2162
2163
2164ac_aux_dir=
2165for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2166  for ac_t in install-sh install.sh shtool; do
2167    if test -f "$ac_dir/$ac_t"; then
2168      ac_aux_dir=$ac_dir
2169      ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
2170      break 2
2171    fi
2172  done
2173done
2174if test -z "$ac_aux_dir"; then
2175  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2176fi
2177
2178# These three variables are undocumented and unsupported,
2179# and are intended to be withdrawn in a future Autoconf release.
2180# They can cause serious problems if a builder's source tree is in a directory
2181# whose full name contains unusual characters.
2182ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2183ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2184ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2185
2186
2187# Make sure we can run config.sub.
2188$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2189  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2190
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2192$as_echo_n "checking build system type... " >&6; }
2193if test "${ac_cv_build+set}" = set; then :
2194  $as_echo_n "(cached) " >&6
2195else
2196  ac_build_alias=$build_alias
2197test "x$ac_build_alias" = x &&
2198  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2199test "x$ac_build_alias" = x &&
2200  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2201ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2202  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2203
2204fi
2205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2206$as_echo "$ac_cv_build" >&6; }
2207case $ac_cv_build in
2208*-*-*) ;;
2209*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2210esac
2211build=$ac_cv_build
2212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_build
2214shift
2215build_cpu=$1
2216build_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220build_os=$*
2221IFS=$ac_save_IFS
2222case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2223
2224
2225 case ${build_alias} in
2226  "") build_noncanonical=${build} ;;
2227  *) build_noncanonical=${build_alias} ;;
2228esac
2229
2230 case ${host_alias} in
2231  "") host_noncanonical=${build_noncanonical} ;;
2232  *) host_noncanonical=${host_alias} ;;
2233esac
2234
2235 case ${target_alias} in
2236  "") target_noncanonical=${host_noncanonical} ;;
2237  *) target_noncanonical=${target_alias} ;;
2238esac
2239
2240
2241# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2242# have matching libraries, they should use host libraries: Makefile.tpl
2243# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2244# However, they still use the build modules, because the corresponding
2245# host modules (e.g. bison) are only built for the host when bootstrap
2246# finishes. So:
2247# - build_subdir is where we find build modules, and never changes.
2248# - build_libsubdir is where we find build libraries, and can be overridden.
2249
2250# Prefix 'build-' so this never conflicts with target_subdir.
2251build_subdir="build-${build_noncanonical}"
2252
2253# Check whether --with-build-libsubdir was given.
2254if test "${with_build_libsubdir+set}" = set; then :
2255  withval=$with_build_libsubdir; build_libsubdir="$withval"
2256else
2257  build_libsubdir="$build_subdir"
2258fi
2259
2260# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2261if ( test $srcdir = . && test -d gcc ) \
2262   || test -d $srcdir/../host-${host_noncanonical}; then
2263  host_subdir="host-${host_noncanonical}"
2264else
2265  host_subdir=.
2266fi
2267# No prefix.
2268target_subdir=${target_noncanonical}
2269
2270
2271# We need the following definitions because AC_PROG_LIBTOOL relies on them
2272PACKAGE=libobjc
2273# Version is pulled out to make it a bit easier to change using sed.
2274VERSION=4:0:0
2275
2276
2277# This works around the fact that libtool configuration may change LD
2278# for this particular configuration, but some shells, instead of
2279# keeping the changes in LD private, export them just because LD is
2280# exported.
2281ORIGINAL_LD_FOR_MULTILIBS=$LD
2282
2283# -------
2284# Options
2285# -------
2286
2287# We use these options to decide which functions to include.
2288
2289# Check whether --with-target-subdir was given.
2290if test "${with_target_subdir+set}" = set; then :
2291  withval=$with_target_subdir;
2292fi
2293
2294
2295# Check whether --with-cross-host was given.
2296if test "${with_cross_host+set}" = set; then :
2297  withval=$with_cross_host;
2298fi
2299
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2302$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2303# Check whether --enable-version-specific-runtime-libs was given.
2304if test "${enable_version_specific_runtime_libs+set}" = set; then :
2305  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2306 yes) version_specific_libs=yes ;;
2307 no)  version_specific_libs=no ;;
2308 *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2309 esac
2310else
2311  version_specific_libs=no
2312fi
2313
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2315$as_echo "$version_specific_libs" >&6; }
2316
2317# Check whether --enable-objc-gc was given.
2318if test "${enable_objc_gc+set}" = set; then :
2319  enableval=$enable_objc_gc; case $enable_objc_gc in
2320  no)
2321    OBJC_GCFLAGS=''
2322    OBJC_BOEHM_GC=''
2323    OBJC_BOEHM_GC_INCLUDES=''
2324    ;;
2325  *)
2326    OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
2327    OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
2328    OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
2329    ;;
2330esac
2331else
2332  OBJC_GCFLAGS=''; OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
2333fi
2334
2335
2336
2337
2338
2339# -----------
2340# Directories
2341# -----------
2342
2343# Find the rest of the source tree framework.
2344# Default to --enable-multilib
2345# Check whether --enable-multilib was given.
2346if test "${enable_multilib+set}" = set; then :
2347  enableval=$enable_multilib; case "$enableval" in
2348  yes) multilib=yes ;;
2349  no)  multilib=no ;;
2350  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2351 esac
2352else
2353  multilib=yes
2354fi
2355
2356
2357# We may get other options which we leave undocumented:
2358# --with-target-subdir, --with-multisrctop, --with-multisubdir
2359# See config-ml.in if you want the gory details.
2360
2361if test "$srcdir" = "."; then
2362  if test "$with_target_subdir" != "."; then
2363    multi_basedir="$srcdir/$with_multisrctop../.."
2364  else
2365    multi_basedir="$srcdir/$with_multisrctop.."
2366  fi
2367else
2368  multi_basedir="$srcdir/.."
2369fi
2370
2371
2372# Even if the default multilib is not a cross compilation,
2373# it may be that some of the other multilibs are.
2374if test $cross_compiling = no && test $multilib = yes \
2375   && test "x${with_multisubdir}" != x ; then
2376   cross_compiling=maybe
2377fi
2378
2379ac_config_commands="$ac_config_commands default-1"
2380
2381
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2383$as_echo_n "checking host system type... " >&6; }
2384if test "${ac_cv_host+set}" = set; then :
2385  $as_echo_n "(cached) " >&6
2386else
2387  if test "x$host_alias" = x; then
2388  ac_cv_host=$ac_cv_build
2389else
2390  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2391    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2392fi
2393
2394fi
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2396$as_echo "$ac_cv_host" >&6; }
2397case $ac_cv_host in
2398*-*-*) ;;
2399*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2400esac
2401host=$ac_cv_host
2402ac_save_IFS=$IFS; IFS='-'
2403set x $ac_cv_host
2404shift
2405host_cpu=$1
2406host_vendor=$2
2407shift; shift
2408# Remember, the first character of IFS is used to create $*,
2409# except with old shells:
2410host_os=$*
2411IFS=$ac_save_IFS
2412case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2413
2414
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2416$as_echo_n "checking target system type... " >&6; }
2417if test "${ac_cv_target+set}" = set; then :
2418  $as_echo_n "(cached) " >&6
2419else
2420  if test "x$target_alias" = x; then
2421  ac_cv_target=$ac_cv_host
2422else
2423  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2424    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2425fi
2426
2427fi
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2429$as_echo "$ac_cv_target" >&6; }
2430case $ac_cv_target in
2431*-*-*) ;;
2432*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2433esac
2434target=$ac_cv_target
2435ac_save_IFS=$IFS; IFS='-'
2436set x $ac_cv_target
2437shift
2438target_cpu=$1
2439target_vendor=$2
2440shift; shift
2441# Remember, the first character of IFS is used to create $*,
2442# except with old shells:
2443target_os=$*
2444IFS=$ac_save_IFS
2445case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2446
2447
2448# The aliases save the names the user supplied, while $host etc.
2449# will get canonicalized.
2450test -n "$target_alias" &&
2451  test "$program_prefix$program_suffix$program_transform_name" = \
2452    NONENONEs,x,x, &&
2453  program_prefix=${target_alias}-
2454
2455
2456
2457
2458# Export source directory.
2459# These need to be absolute paths, yet at the same time need to
2460# canonicalize only relative paths, because then amd will not unmount
2461# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2462case $srcdir in
2463  \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2464  *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2465esac
2466
2467
2468# Calculate toolexeclibdir
2469# Also toolexecdir, though it's only used in toolexeclibdir
2470case ${version_specific_libs} in
2471  yes)
2472    # Need the gcc compiler version to know where to install libraries
2473    # and header files if --enable-version-specific-runtime-libs option
2474    # is selected.
2475    toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2476    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2477    ;;
2478  no)
2479    if test -n "$with_cross_host" &&
2480       test x"$with_cross_host" != x"no"; then
2481      # Install a library built with a cross compiler in tooldir, not libdir.
2482      toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2483      toolexeclibdir='$(toolexecdir)/lib'
2484    else
2485      toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2486      toolexeclibdir='$(libdir)'
2487    fi
2488    multi_os_directory=`$CC -print-multi-os-directory`
2489    case $multi_os_directory in
2490      .) ;; # Avoid trailing /.
2491      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2492    esac
2493    ;;
2494esac
2495
2496
2497
2498# Figure out if we want to name the include directory and the
2499#  library name changes differently.
2500includedirname=include
2501libsuffix=
2502case "${host}" in
2503  *-darwin*)
2504    # Darwin is the only target so far that needs a different include directory.
2505    includedirname=include-gnu-runtime
2506    libsuffix=-gnu
2507    ;;
2508esac
2509
2510
2511
2512ac_config_headers="$ac_config_headers config.h"
2513
2514
2515# --------
2516# Programs
2517# --------
2518
2519
2520
2521# We must force CC to /not/ be a precious variable; otherwise
2522# the wrong, non-multilib-adjusted value will be used in multilibs.
2523# As a side effect, we have to subst CFLAGS ourselves.
2524
2525
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531if test -n "$ac_tool_prefix"; then
2532  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2533set dummy ${ac_tool_prefix}gcc; ac_word=$2
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then :
2537  $as_echo_n "(cached) " >&6
2538else
2539  if test -n "$CC"; then
2540  ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    for ac_exec_ext in '' $ac_executable_extensions; do
2548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551    break 2
2552  fi
2553done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562$as_echo "$CC" >&6; }
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
2566fi
2567
2568
2569fi
2570if test -z "$ac_cv_prog_CC"; then
2571  ac_ct_CC=$CC
2572  # Extract the first word of "gcc", so it can be a program name with args.
2573set dummy gcc; ac_word=$2
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
2576if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  if test -n "$ac_ct_CC"; then
2580  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    for ac_exec_ext in '' $ac_executable_extensions; do
2588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589    ac_cv_prog_ac_ct_CC="gcc"
2590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591    break 2
2592  fi
2593done
2594  done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600if test -n "$ac_ct_CC"; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602$as_echo "$ac_ct_CC" >&6; }
2603else
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608  if test "x$ac_ct_CC" = x; then
2609    CC=""
2610  else
2611    case $cross_compiling:$ac_tool_warned in
2612yes:)
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2615ac_tool_warned=yes ;;
2616esac
2617    CC=$ac_ct_CC
2618  fi
2619else
2620  CC="$ac_cv_prog_CC"
2621fi
2622
2623if test -z "$CC"; then
2624          if test -n "$ac_tool_prefix"; then
2625    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626set dummy ${ac_tool_prefix}cc; ac_word=$2
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if test "${ac_cv_prog_CC+set}" = set; then :
2630  $as_echo_n "(cached) " >&6
2631else
2632  if test -n "$CC"; then
2633  ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640    for ac_exec_ext in '' $ac_executable_extensions; do
2641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642    ac_cv_prog_CC="${ac_tool_prefix}cc"
2643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644    break 2
2645  fi
2646done
2647  done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655$as_echo "$CC" >&6; }
2656else
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659fi
2660
2661
2662  fi
2663fi
2664if test -z "$CC"; then
2665  # Extract the first word of "cc", so it can be a program name with args.
2666set dummy cc; ac_word=$2
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_CC+set}" = set; then :
2670  $as_echo_n "(cached) " >&6
2671else
2672  if test -n "$CC"; then
2673  ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
2675  ac_prog_rejected=no
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679  IFS=$as_save_IFS
2680  test -z "$as_dir" && as_dir=.
2681    for ac_exec_ext in '' $ac_executable_extensions; do
2682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684       ac_prog_rejected=yes
2685       continue
2686     fi
2687    ac_cv_prog_CC="cc"
2688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689    break 2
2690  fi
2691done
2692  done
2693IFS=$as_save_IFS
2694
2695if test $ac_prog_rejected = yes; then
2696  # We found a bogon in the path, so make sure we never use it.
2697  set dummy $ac_cv_prog_CC
2698  shift
2699  if test $# != 0; then
2700    # We chose a different compiler from the bogus one.
2701    # However, it has the same basename, so the bogon will be chosen
2702    # first if we set CC to just the basename; use the full file name.
2703    shift
2704    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2705  fi
2706fi
2707fi
2708fi
2709CC=$ac_cv_prog_CC
2710if test -n "$CC"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712$as_echo "$CC" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719fi
2720if test -z "$CC"; then
2721  if test -n "$ac_tool_prefix"; then
2722  for ac_prog in cl.exe
2723  do
2724    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
2728if test "${ac_cv_prog_CC+set}" = set; then :
2729  $as_echo_n "(cached) " >&6
2730else
2731  if test -n "$CC"; then
2732  ac_cv_prog_CC="$CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737  IFS=$as_save_IFS
2738  test -z "$as_dir" && as_dir=.
2739    for ac_exec_ext in '' $ac_executable_extensions; do
2740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743    break 2
2744  fi
2745done
2746  done
2747IFS=$as_save_IFS
2748
2749fi
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754$as_echo "$CC" >&6; }
2755else
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
2759
2760
2761    test -n "$CC" && break
2762  done
2763fi
2764if test -z "$CC"; then
2765  ac_ct_CC=$CC
2766  for ac_prog in cl.exe
2767do
2768  # Extract the first word of "$ac_prog", so it can be a program name with args.
2769set dummy $ac_prog; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  if test -n "$ac_ct_CC"; then
2776  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  test -z "$as_dir" && as_dir=.
2783    for ac_exec_ext in '' $ac_executable_extensions; do
2784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785    ac_cv_prog_ac_ct_CC="$ac_prog"
2786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787    break 2
2788  fi
2789done
2790  done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796if test -n "$ac_ct_CC"; then
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798$as_echo "$ac_ct_CC" >&6; }
2799else
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805  test -n "$ac_ct_CC" && break
2806done
2807
2808  if test "x$ac_ct_CC" = x; then
2809    CC=""
2810  else
2811    case $cross_compiling:$ac_tool_warned in
2812yes:)
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815ac_tool_warned=yes ;;
2816esac
2817    CC=$ac_ct_CC
2818  fi
2819fi
2820
2821fi
2822
2823
2824test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826as_fn_error "no acceptable C compiler found in \$PATH
2827See \`config.log' for more details." "$LINENO" 5; }
2828
2829# Provide some information about the compiler.
2830$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2831set X $ac_compile
2832ac_compiler=$2
2833for ac_option in --version -v -V -qversion; do
2834  { { ac_try="$ac_compiler $ac_option >&5"
2835case "(($ac_try" in
2836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837  *) ac_try_echo=$ac_try;;
2838esac
2839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840$as_echo "$ac_try_echo"; } >&5
2841  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2842  ac_status=$?
2843  if test -s conftest.err; then
2844    sed '10a\
2845... rest of stderr output deleted ...
2846         10q' conftest.err >conftest.er1
2847    cat conftest.er1 >&5
2848    rm -f conftest.er1 conftest.err
2849  fi
2850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851  test $ac_status = 0; }
2852done
2853
2854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h.  */
2856
2857int
2858main ()
2859{
2860
2861  ;
2862  return 0;
2863}
2864_ACEOF
2865# FIXME: Cleanup?
2866if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2867  (eval $ac_link) 2>&5
2868  ac_status=$?
2869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2870  test $ac_status = 0; }; then :
2871  gcc_no_link=no
2872else
2873  gcc_no_link=yes
2874fi
2875if test x$gcc_no_link = xyes; then
2876  # Setting cross_compile will disable run tests; it will
2877  # also disable AC_CHECK_FILE but that's generally
2878  # correct if we can't link.
2879  cross_compiling=yes
2880  EXEEXT=
2881else
2882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893ac_clean_files_save=$ac_clean_files
2894ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2895# Try to create an executable without -o first, disregard a.out.
2896# It will help us diagnose broken compilers, and finding out an intuition
2897# of exeext.
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2899$as_echo_n "checking for C compiler default output file name... " >&6; }
2900ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2901
2902# The possible output files:
2903ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2904
2905ac_rmfiles=
2906for ac_file in $ac_files
2907do
2908  case $ac_file in
2909    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2910    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2911  esac
2912done
2913rm -f $ac_rmfiles
2914
2915if { { ac_try="$ac_link_default"
2916case "(($ac_try" in
2917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918  *) ac_try_echo=$ac_try;;
2919esac
2920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921$as_echo "$ac_try_echo"; } >&5
2922  (eval "$ac_link_default") 2>&5
2923  ac_status=$?
2924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925  test $ac_status = 0; }; then :
2926  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2929# so that the user can short-circuit this test for compilers unknown to
2930# Autoconf.
2931for ac_file in $ac_files ''
2932do
2933  test -f "$ac_file" || continue
2934  case $ac_file in
2935    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2936	;;
2937    [ab].out )
2938	# We found the default executable, but exeext='' is most
2939	# certainly right.
2940	break;;
2941    *.* )
2942	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2943	then :; else
2944	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945	fi
2946	# We set ac_cv_exeext here because the later test for it is not
2947	# safe: cross compilers may not add the suffix if given an `-o'
2948	# argument, so we may need to know it at that point already.
2949	# Even if this section looks crufty: it has the advantage of
2950	# actually working.
2951	break;;
2952    * )
2953	break;;
2954  esac
2955done
2956test "$ac_cv_exeext" = no && ac_cv_exeext=
2957
2958else
2959  ac_file=''
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2962$as_echo "$ac_file" >&6; }
2963if test -z "$ac_file"; then :
2964  $as_echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969{ as_fn_set_status 77
2970as_fn_error "C compiler cannot create executables
2971See \`config.log' for more details." "$LINENO" 5; }; }
2972fi
2973ac_exeext=$ac_cv_exeext
2974
2975# Check that the compiler produces executables we can run.  If not, either
2976# the compiler is broken, or we cross compile.
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2978$as_echo_n "checking whether the C compiler works... " >&6; }
2979# If not cross compiling, check that we can run a simple program.
2980if test "$cross_compiling" != yes; then
2981  if { ac_try='./$ac_file'
2982  { { case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987$as_echo "$ac_try_echo"; } >&5
2988  (eval "$ac_try") 2>&5
2989  ac_status=$?
2990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991  test $ac_status = 0; }; }; then
2992    cross_compiling=no
2993  else
2994    if test "$cross_compiling" = maybe; then
2995	cross_compiling=yes
2996    else
2997	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error "cannot run C compiled programs.
3000If you meant to cross compile, use \`--host'.
3001See \`config.log' for more details." "$LINENO" 5; }
3002    fi
3003  fi
3004fi
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006$as_echo "yes" >&6; }
3007
3008rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3009ac_clean_files=$ac_clean_files_save
3010# Check that the compiler produces executables we can run.  If not, either
3011# the compiler is broken, or we cross compile.
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3013$as_echo_n "checking whether we are cross compiling... " >&6; }
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3015$as_echo "$cross_compiling" >&6; }
3016
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3018$as_echo_n "checking for suffix of executables... " >&6; }
3019if { { ac_try="$ac_link"
3020case "(($ac_try" in
3021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022  *) ac_try_echo=$ac_try;;
3023esac
3024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025$as_echo "$ac_try_echo"; } >&5
3026  (eval "$ac_link") 2>&5
3027  ac_status=$?
3028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029  test $ac_status = 0; }; then :
3030  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3031# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3032# work properly (i.e., refer to `conftest.exe'), while it won't with
3033# `rm'.
3034for ac_file in conftest.exe conftest conftest.*; do
3035  test -f "$ac_file" || continue
3036  case $ac_file in
3037    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039	  break;;
3040    * ) break;;
3041  esac
3042done
3043else
3044  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046as_fn_error "cannot compute suffix of executables: cannot compile and link
3047See \`config.log' for more details." "$LINENO" 5; }
3048fi
3049rm -f conftest$ac_cv_exeext
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3051$as_echo "$ac_cv_exeext" >&6; }
3052
3053rm -f conftest.$ac_ext
3054EXEEXT=$ac_cv_exeext
3055ac_exeext=$EXEEXT
3056fi
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3058$as_echo_n "checking for suffix of object files... " >&6; }
3059if test "${ac_cv_objext+set}" = set; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063/* end confdefs.h.  */
3064
3065int
3066main ()
3067{
3068
3069  ;
3070  return 0;
3071}
3072_ACEOF
3073rm -f conftest.o conftest.obj
3074if { { ac_try="$ac_compile"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080$as_echo "$ac_try_echo"; } >&5
3081  (eval "$ac_compile") 2>&5
3082  ac_status=$?
3083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084  test $ac_status = 0; }; then :
3085  for ac_file in conftest.o conftest.obj conftest.*; do
3086  test -f "$ac_file" || continue;
3087  case $ac_file in
3088    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3089    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3090       break;;
3091  esac
3092done
3093else
3094  $as_echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099as_fn_error "cannot compute suffix of object files: cannot compile
3100See \`config.log' for more details." "$LINENO" 5; }
3101fi
3102rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103fi
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3105$as_echo "$ac_cv_objext" >&6; }
3106OBJEXT=$ac_cv_objext
3107ac_objext=$OBJEXT
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3109$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3110if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119#ifndef __GNUC__
3120       choke me
3121#endif
3122
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127if ac_fn_c_try_compile "$LINENO"; then :
3128  ac_compiler_gnu=yes
3129else
3130  ac_compiler_gnu=no
3131fi
3132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133ac_cv_c_compiler_gnu=$ac_compiler_gnu
3134
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3137$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3138if test $ac_compiler_gnu = yes; then
3139  GCC=yes
3140else
3141  GCC=
3142fi
3143ac_test_CFLAGS=${CFLAGS+set}
3144ac_save_CFLAGS=$CFLAGS
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3146$as_echo_n "checking whether $CC accepts -g... " >&6; }
3147if test "${ac_cv_prog_cc_g+set}" = set; then :
3148  $as_echo_n "(cached) " >&6
3149else
3150  ac_save_c_werror_flag=$ac_c_werror_flag
3151   ac_c_werror_flag=yes
3152   ac_cv_prog_cc_g=no
3153   CFLAGS="-g"
3154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155/* end confdefs.h.  */
3156
3157int
3158main ()
3159{
3160
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165if ac_fn_c_try_compile "$LINENO"; then :
3166  ac_cv_prog_cc_g=yes
3167else
3168  CFLAGS=""
3169      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h.  */
3171
3172int
3173main ()
3174{
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180if ac_fn_c_try_compile "$LINENO"; then :
3181
3182else
3183  ac_c_werror_flag=$ac_save_c_werror_flag
3184	 CFLAGS="-g"
3185	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186/* end confdefs.h.  */
3187
3188int
3189main ()
3190{
3191
3192  ;
3193  return 0;
3194}
3195_ACEOF
3196if ac_fn_c_try_compile "$LINENO"; then :
3197  ac_cv_prog_cc_g=yes
3198fi
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202fi
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204   ac_c_werror_flag=$ac_save_c_werror_flag
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3207$as_echo "$ac_cv_prog_cc_g" >&6; }
3208if test "$ac_test_CFLAGS" = set; then
3209  CFLAGS=$ac_save_CFLAGS
3210elif test $ac_cv_prog_cc_g = yes; then
3211  if test "$GCC" = yes; then
3212    CFLAGS="-g -O2"
3213  else
3214    CFLAGS="-g"
3215  fi
3216else
3217  if test "$GCC" = yes; then
3218    CFLAGS="-O2"
3219  else
3220    CFLAGS=
3221  fi
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3224$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3225if test "${ac_cv_prog_cc_c89+set}" = set; then :
3226  $as_echo_n "(cached) " >&6
3227else
3228  ac_cv_prog_cc_c89=no
3229ac_save_CC=$CC
3230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231/* end confdefs.h.  */
3232#include <stdarg.h>
3233#include <stdio.h>
3234#include <sys/types.h>
3235#include <sys/stat.h>
3236/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3237struct buf { int x; };
3238FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239static char *e (p, i)
3240     char **p;
3241     int i;
3242{
3243  return p[i];
3244}
3245static char *f (char * (*g) (char **, int), char **p, ...)
3246{
3247  char *s;
3248  va_list v;
3249  va_start (v,p);
3250  s = g (p, va_arg (v,int));
3251  va_end (v);
3252  return s;
3253}
3254
3255/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3256   function prototypes and stuff, but not '\xHH' hex character constants.
3257   These don't provoke an error unfortunately, instead are silently treated
3258   as 'x'.  The following induces an error, until -std is added to get
3259   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3260   array size at least.  It's necessary to write '\x00'==0 to get something
3261   that's true only with -std.  */
3262int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
3264/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265   inside strings and character constants.  */
3266#define FOO(x) 'x'
3267int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
3269int test (int i, double x);
3270struct s1 {int (*f) (int a);};
3271struct s2 {int (*f) (double a);};
3272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273int argc;
3274char **argv;
3275int
3276main ()
3277{
3278return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285do
3286  CC="$ac_save_CC $ac_arg"
3287  if ac_fn_c_try_compile "$LINENO"; then :
3288  ac_cv_prog_cc_c89=$ac_arg
3289fi
3290rm -f core conftest.err conftest.$ac_objext
3291  test "x$ac_cv_prog_cc_c89" != "xno" && break
3292done
3293rm -f conftest.$ac_ext
3294CC=$ac_save_CC
3295
3296fi
3297# AC_CACHE_VAL
3298case "x$ac_cv_prog_cc_c89" in
3299  x)
3300    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3301$as_echo "none needed" >&6; } ;;
3302  xno)
3303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3304$as_echo "unsupported" >&6; } ;;
3305  *)
3306    CC="$CC $ac_cv_prog_cc_c89"
3307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3308$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3309esac
3310if test "x$ac_cv_prog_cc_c89" != xno; then :
3311
3312fi
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320
3321
3322# extra LD Flags which are required for targets
3323
3324
3325
3326case $host in
3327  *-cygwin* | *-mingw*)
3328    # 'host' will be top-level target in the case of a target lib,
3329    # we must compare to with_cross_host to decide if this is a native
3330    # or cross-compiler and select where to install dlls appropriately.
3331    if test -n "$with_cross_host" &&
3332	test x"$with_cross_host" != x"no"; then
3333      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
3334    else
3335      lt_host_flags='-no-undefined -bindir "$(bindir)"';
3336    fi
3337    ;;
3338  *)
3339    lt_host_flags=
3340    ;;
3341esac
3342
3343
3344
3345case "${host}" in
3346  *-darwin*)
3347    # Darwin needs -single_module when linking libobjc
3348    extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
3349    ;;
3350  *-cygwin*|*-mingw*)
3351    # Tell libtool to build DLLs on Windows
3352    extra_ldflags_libobjc='$(lt_host_flags)'
3353    ;;
3354esac
3355
3356
3357
3358
3359if test -n "$ac_tool_prefix"; then
3360  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3361set dummy ${ac_tool_prefix}as; ac_word=$2
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363$as_echo_n "checking for $ac_word... " >&6; }
3364if test "${ac_cv_prog_AS+set}" = set; then :
3365  $as_echo_n "(cached) " >&6
3366else
3367  if test -n "$AS"; then
3368  ac_cv_prog_AS="$AS" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375    for ac_exec_ext in '' $ac_executable_extensions; do
3376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377    ac_cv_prog_AS="${ac_tool_prefix}as"
3378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379    break 2
3380  fi
3381done
3382  done
3383IFS=$as_save_IFS
3384
3385fi
3386fi
3387AS=$ac_cv_prog_AS
3388if test -n "$AS"; then
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3390$as_echo "$AS" >&6; }
3391else
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393$as_echo "no" >&6; }
3394fi
3395
3396
3397fi
3398if test -z "$ac_cv_prog_AS"; then
3399  ac_ct_AS=$AS
3400  # Extract the first word of "as", so it can be a program name with args.
3401set dummy as; ac_word=$2
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403$as_echo_n "checking for $ac_word... " >&6; }
3404if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  if test -n "$ac_ct_AS"; then
3408  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413  IFS=$as_save_IFS
3414  test -z "$as_dir" && as_dir=.
3415    for ac_exec_ext in '' $ac_executable_extensions; do
3416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417    ac_cv_prog_ac_ct_AS="as"
3418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422  done
3423IFS=$as_save_IFS
3424
3425fi
3426fi
3427ac_ct_AS=$ac_cv_prog_ac_ct_AS
3428if test -n "$ac_ct_AS"; then
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3430$as_echo "$ac_ct_AS" >&6; }
3431else
3432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433$as_echo "no" >&6; }
3434fi
3435
3436  if test "x$ac_ct_AS" = x; then
3437    AS=""
3438  else
3439    case $cross_compiling:$ac_tool_warned in
3440yes:)
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443ac_tool_warned=yes ;;
3444esac
3445    AS=$ac_ct_AS
3446  fi
3447else
3448  AS="$ac_cv_prog_AS"
3449fi
3450
3451if test -n "$ac_tool_prefix"; then
3452  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3453set dummy ${ac_tool_prefix}ar; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; }
3456if test "${ac_cv_prog_AR+set}" = set; then :
3457  $as_echo_n "(cached) " >&6
3458else
3459  if test -n "$AR"; then
3460  ac_cv_prog_AR="$AR" # Let the user override the test.
3461else
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465  IFS=$as_save_IFS
3466  test -z "$as_dir" && as_dir=.
3467    for ac_exec_ext in '' $ac_executable_extensions; do
3468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469    ac_cv_prog_AR="${ac_tool_prefix}ar"
3470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471    break 2
3472  fi
3473done
3474  done
3475IFS=$as_save_IFS
3476
3477fi
3478fi
3479AR=$ac_cv_prog_AR
3480if test -n "$AR"; then
3481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3482$as_echo "$AR" >&6; }
3483else
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485$as_echo "no" >&6; }
3486fi
3487
3488
3489fi
3490if test -z "$ac_cv_prog_AR"; then
3491  ac_ct_AR=$AR
3492  # Extract the first word of "ar", so it can be a program name with args.
3493set dummy ar; ac_word=$2
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495$as_echo_n "checking for $ac_word... " >&6; }
3496if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3497  $as_echo_n "(cached) " >&6
3498else
3499  if test -n "$ac_ct_AR"; then
3500  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3501else
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505  IFS=$as_save_IFS
3506  test -z "$as_dir" && as_dir=.
3507    for ac_exec_ext in '' $ac_executable_extensions; do
3508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509    ac_cv_prog_ac_ct_AR="ar"
3510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511    break 2
3512  fi
3513done
3514  done
3515IFS=$as_save_IFS
3516
3517fi
3518fi
3519ac_ct_AR=$ac_cv_prog_ac_ct_AR
3520if test -n "$ac_ct_AR"; then
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3522$as_echo "$ac_ct_AR" >&6; }
3523else
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526fi
3527
3528  if test "x$ac_ct_AR" = x; then
3529    AR=""
3530  else
3531    case $cross_compiling:$ac_tool_warned in
3532yes:)
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535ac_tool_warned=yes ;;
3536esac
3537    AR=$ac_ct_AR
3538  fi
3539else
3540  AR="$ac_cv_prog_AR"
3541fi
3542
3543if test -n "$ac_tool_prefix"; then
3544  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3545set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547$as_echo_n "checking for $ac_word... " >&6; }
3548if test "${ac_cv_prog_RANLIB+set}" = set; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  if test -n "$RANLIB"; then
3552  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3553else
3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555for as_dir in $PATH
3556do
3557  IFS=$as_save_IFS
3558  test -z "$as_dir" && as_dir=.
3559    for ac_exec_ext in '' $ac_executable_extensions; do
3560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563    break 2
3564  fi
3565done
3566  done
3567IFS=$as_save_IFS
3568
3569fi
3570fi
3571RANLIB=$ac_cv_prog_RANLIB
3572if test -n "$RANLIB"; then
3573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3574$as_echo "$RANLIB" >&6; }
3575else
3576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577$as_echo "no" >&6; }
3578fi
3579
3580
3581fi
3582if test -z "$ac_cv_prog_RANLIB"; then
3583  ac_ct_RANLIB=$RANLIB
3584  # Extract the first word of "ranlib", so it can be a program name with args.
3585set dummy ranlib; ac_word=$2
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587$as_echo_n "checking for $ac_word... " >&6; }
3588if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3589  $as_echo_n "(cached) " >&6
3590else
3591  if test -n "$ac_ct_RANLIB"; then
3592  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    for ac_exec_ext in '' $ac_executable_extensions; do
3600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601    ac_cv_prog_ac_ct_RANLIB="ranlib"
3602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603    break 2
3604  fi
3605done
3606  done
3607IFS=$as_save_IFS
3608
3609fi
3610fi
3611ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3612if test -n "$ac_ct_RANLIB"; then
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3614$as_echo "$ac_ct_RANLIB" >&6; }
3615else
3616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618fi
3619
3620  if test "x$ac_ct_RANLIB" = x; then
3621    RANLIB=":"
3622  else
3623    case $cross_compiling:$ac_tool_warned in
3624yes:)
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627ac_tool_warned=yes ;;
3628esac
3629    RANLIB=$ac_ct_RANLIB
3630  fi
3631else
3632  RANLIB="$ac_cv_prog_RANLIB"
3633fi
3634
3635# Find a good install program.  We prefer a C program (faster),
3636# so one script is as good as another.  But avoid the broken or
3637# incompatible versions:
3638# SysV /etc/install, /usr/sbin/install
3639# SunOS /usr/etc/install
3640# IRIX /sbin/install
3641# AIX /bin/install
3642# AmigaOS /C/install, which installs bootblocks on floppy discs
3643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3644# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3646# OS/2's system install, which has a completely different semantic
3647# ./install, which can be erroneously created by make from ./install.sh.
3648# Reject install programs that cannot install multiple files.
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3650$as_echo_n "checking for a BSD-compatible install... " >&6; }
3651if test -z "$INSTALL"; then
3652if test "${ac_cv_path_install+set}" = set; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658  IFS=$as_save_IFS
3659  test -z "$as_dir" && as_dir=.
3660    # Account for people who put trailing slashes in PATH elements.
3661case $as_dir/ in #((
3662  ./ | .// | /[cC]/* | \
3663  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3664  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3665  /usr/ucb/* ) ;;
3666  *)
3667    # OSF1 and SCO ODT 3.0 have their own names for install.
3668    # Don't use installbsd from OSF since it installs stuff as root
3669    # by default.
3670    for ac_prog in ginstall scoinst install; do
3671      for ac_exec_ext in '' $ac_executable_extensions; do
3672	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3673	  if test $ac_prog = install &&
3674	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675	    # AIX install.  It has an incompatible calling convention.
3676	    :
3677	  elif test $ac_prog = install &&
3678	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679	    # program-specific install script used by HP pwplus--don't use.
3680	    :
3681	  else
3682	    rm -rf conftest.one conftest.two conftest.dir
3683	    echo one > conftest.one
3684	    echo two > conftest.two
3685	    mkdir conftest.dir
3686	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3687	      test -s conftest.one && test -s conftest.two &&
3688	      test -s conftest.dir/conftest.one &&
3689	      test -s conftest.dir/conftest.two
3690	    then
3691	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3692	      break 3
3693	    fi
3694	  fi
3695	fi
3696      done
3697    done
3698    ;;
3699esac
3700
3701  done
3702IFS=$as_save_IFS
3703
3704rm -rf conftest.one conftest.two conftest.dir
3705
3706fi
3707  if test "${ac_cv_path_install+set}" = set; then
3708    INSTALL=$ac_cv_path_install
3709  else
3710    # As a last resort, use the slow shell script.  Don't cache a
3711    # value for INSTALL within a source directory, because that will
3712    # break other packages using the cache if that directory is
3713    # removed, or if the value is a relative name.
3714    INSTALL=$ac_install_sh
3715  fi
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3718$as_echo "$INSTALL" >&6; }
3719
3720# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3721# It thinks the first close brace ends the variable substitution.
3722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3723
3724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3725
3726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3727
3728
3729
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3731$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3732    # Check whether --enable-maintainer-mode was given.
3733if test "${enable_maintainer_mode+set}" = set; then :
3734  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3735else
3736  USE_MAINTAINER_MODE=no
3737fi
3738
3739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3740$as_echo "$USE_MAINTAINER_MODE" >&6; }
3741   if test $USE_MAINTAINER_MODE = yes; then
3742  MAINTAINER_MODE_TRUE=
3743  MAINTAINER_MODE_FALSE='#'
3744else
3745  MAINTAINER_MODE_TRUE='#'
3746  MAINTAINER_MODE_FALSE=
3747fi
3748
3749  MAINT=$MAINTAINER_MODE_TRUE
3750
3751
3752
3753# Enable Win32 DLL on MS Windows - FIXME
3754enable_win32_dll=yes
3755
3756case $host in
3757*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3758  if test -n "$ac_tool_prefix"; then
3759  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3760set dummy ${ac_tool_prefix}as; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
3763if test "${ac_cv_prog_AS+set}" = set; then :
3764  $as_echo_n "(cached) " >&6
3765else
3766  if test -n "$AS"; then
3767  ac_cv_prog_AS="$AS" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772  IFS=$as_save_IFS
3773  test -z "$as_dir" && as_dir=.
3774    for ac_exec_ext in '' $ac_executable_extensions; do
3775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776    ac_cv_prog_AS="${ac_tool_prefix}as"
3777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778    break 2
3779  fi
3780done
3781  done
3782IFS=$as_save_IFS
3783
3784fi
3785fi
3786AS=$ac_cv_prog_AS
3787if test -n "$AS"; then
3788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3789$as_echo "$AS" >&6; }
3790else
3791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793fi
3794
3795
3796fi
3797if test -z "$ac_cv_prog_AS"; then
3798  ac_ct_AS=$AS
3799  # Extract the first word of "as", so it can be a program name with args.
3800set dummy as; ac_word=$2
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802$as_echo_n "checking for $ac_word... " >&6; }
3803if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  if test -n "$ac_ct_AS"; then
3807  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812  IFS=$as_save_IFS
3813  test -z "$as_dir" && as_dir=.
3814    for ac_exec_ext in '' $ac_executable_extensions; do
3815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816    ac_cv_prog_ac_ct_AS="as"
3817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818    break 2
3819  fi
3820done
3821  done
3822IFS=$as_save_IFS
3823
3824fi
3825fi
3826ac_ct_AS=$ac_cv_prog_ac_ct_AS
3827if test -n "$ac_ct_AS"; then
3828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3829$as_echo "$ac_ct_AS" >&6; }
3830else
3831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
3833fi
3834
3835  if test "x$ac_ct_AS" = x; then
3836    AS="false"
3837  else
3838    case $cross_compiling:$ac_tool_warned in
3839yes:)
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842ac_tool_warned=yes ;;
3843esac
3844    AS=$ac_ct_AS
3845  fi
3846else
3847  AS="$ac_cv_prog_AS"
3848fi
3849
3850  if test -n "$ac_tool_prefix"; then
3851  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3852set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854$as_echo_n "checking for $ac_word... " >&6; }
3855if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3856  $as_echo_n "(cached) " >&6
3857else
3858  if test -n "$DLLTOOL"; then
3859  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864  IFS=$as_save_IFS
3865  test -z "$as_dir" && as_dir=.
3866    for ac_exec_ext in '' $ac_executable_extensions; do
3867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870    break 2
3871  fi
3872done
3873  done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878DLLTOOL=$ac_cv_prog_DLLTOOL
3879if test -n "$DLLTOOL"; then
3880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3881$as_echo "$DLLTOOL" >&6; }
3882else
3883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887
3888fi
3889if test -z "$ac_cv_prog_DLLTOOL"; then
3890  ac_ct_DLLTOOL=$DLLTOOL
3891  # Extract the first word of "dlltool", so it can be a program name with args.
3892set dummy dlltool; ac_word=$2
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
3895if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  if test -n "$ac_ct_DLLTOOL"; then
3899  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_exec_ext in '' $ac_executable_extensions; do
3907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910    break 2
3911  fi
3912done
3913  done
3914IFS=$as_save_IFS
3915
3916fi
3917fi
3918ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3919if test -n "$ac_ct_DLLTOOL"; then
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3921$as_echo "$ac_ct_DLLTOOL" >&6; }
3922else
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925fi
3926
3927  if test "x$ac_ct_DLLTOOL" = x; then
3928    DLLTOOL="false"
3929  else
3930    case $cross_compiling:$ac_tool_warned in
3931yes:)
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3934ac_tool_warned=yes ;;
3935esac
3936    DLLTOOL=$ac_ct_DLLTOOL
3937  fi
3938else
3939  DLLTOOL="$ac_cv_prog_DLLTOOL"
3940fi
3941
3942  if test -n "$ac_tool_prefix"; then
3943  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3944set dummy ${ac_tool_prefix}objdump; ac_word=$2
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946$as_echo_n "checking for $ac_word... " >&6; }
3947if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950  if test -n "$OBJDUMP"; then
3951  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3952else
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956  IFS=$as_save_IFS
3957  test -z "$as_dir" && as_dir=.
3958    for ac_exec_ext in '' $ac_executable_extensions; do
3959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962    break 2
3963  fi
3964done
3965  done
3966IFS=$as_save_IFS
3967
3968fi
3969fi
3970OBJDUMP=$ac_cv_prog_OBJDUMP
3971if test -n "$OBJDUMP"; then
3972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3973$as_echo "$OBJDUMP" >&6; }
3974else
3975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
3977fi
3978
3979
3980fi
3981if test -z "$ac_cv_prog_OBJDUMP"; then
3982  ac_ct_OBJDUMP=$OBJDUMP
3983  # Extract the first word of "objdump", so it can be a program name with args.
3984set dummy objdump; ac_word=$2
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986$as_echo_n "checking for $ac_word... " >&6; }
3987if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990  if test -n "$ac_ct_OBJDUMP"; then
3991  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998    for ac_exec_ext in '' $ac_executable_extensions; do
3999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002    break 2
4003  fi
4004done
4005  done
4006IFS=$as_save_IFS
4007
4008fi
4009fi
4010ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4011if test -n "$ac_ct_OBJDUMP"; then
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4013$as_echo "$ac_ct_OBJDUMP" >&6; }
4014else
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016$as_echo "no" >&6; }
4017fi
4018
4019  if test "x$ac_ct_OBJDUMP" = x; then
4020    OBJDUMP="false"
4021  else
4022    case $cross_compiling:$ac_tool_warned in
4023yes:)
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026ac_tool_warned=yes ;;
4027esac
4028    OBJDUMP=$ac_ct_OBJDUMP
4029  fi
4030else
4031  OBJDUMP="$ac_cv_prog_OBJDUMP"
4032fi
4033
4034  ;;
4035esac
4036
4037test -z "$AS" && AS=as
4038
4039
4040
4041
4042
4043test -z "$DLLTOOL" && DLLTOOL=dlltool
4044
4045
4046
4047
4048
4049test -z "$OBJDUMP" && OBJDUMP=objdump
4050
4051
4052
4053
4054
4055
4056
4057
4058case `pwd` in
4059  *\ * | *\	*)
4060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4061$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4062esac
4063
4064
4065
4066macro_version='2.2.7a'
4067macro_revision='1.3134'
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081ltmain="$ac_aux_dir/ltmain.sh"
4082
4083# Backslashify metacharacters that are still active within
4084# double-quoted strings.
4085sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4086
4087# Same as above, but do not quote variable references.
4088double_quote_subst='s/\(["`\\]\)/\\\1/g'
4089
4090# Sed substitution to delay expansion of an escaped shell variable in a
4091# double_quote_subst'ed string.
4092delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4093
4094# Sed substitution to delay expansion of an escaped single quote.
4095delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4096
4097# Sed substitution to avoid accidental globbing in evaled expressions
4098no_glob_subst='s/\*/\\\*/g'
4099
4100ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4101ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4102ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4103
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4105$as_echo_n "checking how to print strings... " >&6; }
4106# Test print first, because it will be a builtin if present.
4107if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4108   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4109  ECHO='print -r --'
4110elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4111  ECHO='printf %s\n'
4112else
4113  # Use this function as a fallback that always works.
4114  func_fallback_echo ()
4115  {
4116    eval 'cat <<_LTECHO_EOF
4117$1
4118_LTECHO_EOF'
4119  }
4120  ECHO='func_fallback_echo'
4121fi
4122
4123# func_echo_all arg...
4124# Invoke $ECHO with all args, space-separated.
4125func_echo_all ()
4126{
4127    $ECHO ""
4128}
4129
4130case "$ECHO" in
4131  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4132$as_echo "printf" >&6; } ;;
4133  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4134$as_echo "print -r" >&6; } ;;
4135  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4136$as_echo "cat" >&6; } ;;
4137esac
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4153$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4154if test "${ac_cv_path_SED+set}" = set; then :
4155  $as_echo_n "(cached) " >&6
4156else
4157            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4158     for ac_i in 1 2 3 4 5 6 7; do
4159       ac_script="$ac_script$as_nl$ac_script"
4160     done
4161     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4162     { ac_script=; unset ac_script;}
4163     if test -z "$SED"; then
4164  ac_path_SED_found=false
4165  # Loop through the user's path and test for each of PROGNAME-LIST
4166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169  IFS=$as_save_IFS
4170  test -z "$as_dir" && as_dir=.
4171    for ac_prog in sed gsed; do
4172    for ac_exec_ext in '' $ac_executable_extensions; do
4173      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4174      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4175# Check for GNU ac_path_SED and select it if it is found.
4176  # Check for GNU $ac_path_SED
4177case `"$ac_path_SED" --version 2>&1` in
4178*GNU*)
4179  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4180*)
4181  ac_count=0
4182  $as_echo_n 0123456789 >"conftest.in"
4183  while :
4184  do
4185    cat "conftest.in" "conftest.in" >"conftest.tmp"
4186    mv "conftest.tmp" "conftest.in"
4187    cp "conftest.in" "conftest.nl"
4188    $as_echo '' >> "conftest.nl"
4189    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4190    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4191    as_fn_arith $ac_count + 1 && ac_count=$as_val
4192    if test $ac_count -gt ${ac_path_SED_max-0}; then
4193      # Best one so far, save it but keep looking for a better one
4194      ac_cv_path_SED="$ac_path_SED"
4195      ac_path_SED_max=$ac_count
4196    fi
4197    # 10*(2^10) chars as input seems more than enough
4198    test $ac_count -gt 10 && break
4199  done
4200  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201esac
4202
4203      $ac_path_SED_found && break 3
4204    done
4205  done
4206  done
4207IFS=$as_save_IFS
4208  if test -z "$ac_cv_path_SED"; then
4209    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4210  fi
4211else
4212  ac_cv_path_SED=$SED
4213fi
4214
4215fi
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4217$as_echo "$ac_cv_path_SED" >&6; }
4218 SED="$ac_cv_path_SED"
4219  rm -f conftest.sed
4220
4221test -z "$SED" && SED=sed
4222Xsed="$SED -e 1s/^X//"
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4235$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4236if test "${ac_cv_path_GREP+set}" = set; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if test -z "$GREP"; then
4240  ac_path_GREP_found=false
4241  # Loop through the user's path and test for each of PROGNAME-LIST
4242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247    for ac_prog in grep ggrep; do
4248    for ac_exec_ext in '' $ac_executable_extensions; do
4249      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251# Check for GNU ac_path_GREP and select it if it is found.
4252  # Check for GNU $ac_path_GREP
4253case `"$ac_path_GREP" --version 2>&1` in
4254*GNU*)
4255  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4256*)
4257  ac_count=0
4258  $as_echo_n 0123456789 >"conftest.in"
4259  while :
4260  do
4261    cat "conftest.in" "conftest.in" >"conftest.tmp"
4262    mv "conftest.tmp" "conftest.in"
4263    cp "conftest.in" "conftest.nl"
4264    $as_echo 'GREP' >> "conftest.nl"
4265    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267    as_fn_arith $ac_count + 1 && ac_count=$as_val
4268    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269      # Best one so far, save it but keep looking for a better one
4270      ac_cv_path_GREP="$ac_path_GREP"
4271      ac_path_GREP_max=$ac_count
4272    fi
4273    # 10*(2^10) chars as input seems more than enough
4274    test $ac_count -gt 10 && break
4275  done
4276  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277esac
4278
4279      $ac_path_GREP_found && break 3
4280    done
4281  done
4282  done
4283IFS=$as_save_IFS
4284  if test -z "$ac_cv_path_GREP"; then
4285    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4286  fi
4287else
4288  ac_cv_path_GREP=$GREP
4289fi
4290
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4293$as_echo "$ac_cv_path_GREP" >&6; }
4294 GREP="$ac_cv_path_GREP"
4295
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4298$as_echo_n "checking for egrep... " >&6; }
4299if test "${ac_cv_path_EGREP+set}" = set; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303   then ac_cv_path_EGREP="$GREP -E"
4304   else
4305     if test -z "$EGREP"; then
4306  ac_path_EGREP_found=false
4307  # Loop through the user's path and test for each of PROGNAME-LIST
4308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310do
4311  IFS=$as_save_IFS
4312  test -z "$as_dir" && as_dir=.
4313    for ac_prog in egrep; do
4314    for ac_exec_ext in '' $ac_executable_extensions; do
4315      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317# Check for GNU ac_path_EGREP and select it if it is found.
4318  # Check for GNU $ac_path_EGREP
4319case `"$ac_path_EGREP" --version 2>&1` in
4320*GNU*)
4321  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4322*)
4323  ac_count=0
4324  $as_echo_n 0123456789 >"conftest.in"
4325  while :
4326  do
4327    cat "conftest.in" "conftest.in" >"conftest.tmp"
4328    mv "conftest.tmp" "conftest.in"
4329    cp "conftest.in" "conftest.nl"
4330    $as_echo 'EGREP' >> "conftest.nl"
4331    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333    as_fn_arith $ac_count + 1 && ac_count=$as_val
4334    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335      # Best one so far, save it but keep looking for a better one
4336      ac_cv_path_EGREP="$ac_path_EGREP"
4337      ac_path_EGREP_max=$ac_count
4338    fi
4339    # 10*(2^10) chars as input seems more than enough
4340    test $ac_count -gt 10 && break
4341  done
4342  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343esac
4344
4345      $ac_path_EGREP_found && break 3
4346    done
4347  done
4348  done
4349IFS=$as_save_IFS
4350  if test -z "$ac_cv_path_EGREP"; then
4351    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352  fi
4353else
4354  ac_cv_path_EGREP=$EGREP
4355fi
4356
4357   fi
4358fi
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4360$as_echo "$ac_cv_path_EGREP" >&6; }
4361 EGREP="$ac_cv_path_EGREP"
4362
4363
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4365$as_echo_n "checking for fgrep... " >&6; }
4366if test "${ac_cv_path_FGREP+set}" = set; then :
4367  $as_echo_n "(cached) " >&6
4368else
4369  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4370   then ac_cv_path_FGREP="$GREP -F"
4371   else
4372     if test -z "$FGREP"; then
4373  ac_path_FGREP_found=false
4374  # Loop through the user's path and test for each of PROGNAME-LIST
4375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380    for ac_prog in fgrep; do
4381    for ac_exec_ext in '' $ac_executable_extensions; do
4382      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4383      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4384# Check for GNU ac_path_FGREP and select it if it is found.
4385  # Check for GNU $ac_path_FGREP
4386case `"$ac_path_FGREP" --version 2>&1` in
4387*GNU*)
4388  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4389*)
4390  ac_count=0
4391  $as_echo_n 0123456789 >"conftest.in"
4392  while :
4393  do
4394    cat "conftest.in" "conftest.in" >"conftest.tmp"
4395    mv "conftest.tmp" "conftest.in"
4396    cp "conftest.in" "conftest.nl"
4397    $as_echo 'FGREP' >> "conftest.nl"
4398    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400    as_fn_arith $ac_count + 1 && ac_count=$as_val
4401    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4402      # Best one so far, save it but keep looking for a better one
4403      ac_cv_path_FGREP="$ac_path_FGREP"
4404      ac_path_FGREP_max=$ac_count
4405    fi
4406    # 10*(2^10) chars as input seems more than enough
4407    test $ac_count -gt 10 && break
4408  done
4409  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410esac
4411
4412      $ac_path_FGREP_found && break 3
4413    done
4414  done
4415  done
4416IFS=$as_save_IFS
4417  if test -z "$ac_cv_path_FGREP"; then
4418    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419  fi
4420else
4421  ac_cv_path_FGREP=$FGREP
4422fi
4423
4424   fi
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4427$as_echo "$ac_cv_path_FGREP" >&6; }
4428 FGREP="$ac_cv_path_FGREP"
4429
4430
4431test -z "$GREP" && GREP=grep
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451# Check whether --with-gnu-ld was given.
4452if test "${with_gnu_ld+set}" = set; then :
4453  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4454else
4455  with_gnu_ld=no
4456fi
4457
4458ac_prog=ld
4459if test "$GCC" = yes; then
4460  # Check if gcc -print-prog-name=ld gives a path.
4461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4462$as_echo_n "checking for ld used by $CC... " >&6; }
4463  case $host in
4464  *-*-mingw*)
4465    # gcc leaves a trailing carriage return which upsets mingw
4466    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4467  *)
4468    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4469  esac
4470  case $ac_prog in
4471    # Accept absolute paths.
4472    [\\/]* | ?:[\\/]*)
4473      re_direlt='/[^/][^/]*/\.\./'
4474      # Canonicalize the pathname of ld
4475      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4476      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4477	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4478      done
4479      test -z "$LD" && LD="$ac_prog"
4480      ;;
4481  "")
4482    # If it fails, then pretend we aren't using GCC.
4483    ac_prog=ld
4484    ;;
4485  *)
4486    # If it is relative, then search for the first ld in PATH.
4487    with_gnu_ld=unknown
4488    ;;
4489  esac
4490elif test "$with_gnu_ld" = yes; then
4491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4492$as_echo_n "checking for GNU ld... " >&6; }
4493else
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4495$as_echo_n "checking for non-GNU ld... " >&6; }
4496fi
4497if test "${lt_cv_path_LD+set}" = set; then :
4498  $as_echo_n "(cached) " >&6
4499else
4500  if test -z "$LD"; then
4501  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4502  for ac_dir in $PATH; do
4503    IFS="$lt_save_ifs"
4504    test -z "$ac_dir" && ac_dir=.
4505    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4506      lt_cv_path_LD="$ac_dir/$ac_prog"
4507      # Check to see if the program is GNU ld.  I'd rather use --version,
4508      # but apparently some variants of GNU ld only accept -v.
4509      # Break only if it was the GNU/non-GNU ld that we prefer.
4510      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4511      *GNU* | *'with BFD'*)
4512	test "$with_gnu_ld" != no && break
4513	;;
4514      *)
4515	test "$with_gnu_ld" != yes && break
4516	;;
4517      esac
4518    fi
4519  done
4520  IFS="$lt_save_ifs"
4521else
4522  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4523fi
4524fi
4525
4526LD="$lt_cv_path_LD"
4527if test -n "$LD"; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4529$as_echo "$LD" >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
4533fi
4534test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4536$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4537if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4538  $as_echo_n "(cached) " >&6
4539else
4540  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4541case `$LD -v 2>&1 </dev/null` in
4542*GNU* | *'with BFD'*)
4543  lt_cv_prog_gnu_ld=yes
4544  ;;
4545*)
4546  lt_cv_prog_gnu_ld=no
4547  ;;
4548esac
4549fi
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4551$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4552with_gnu_ld=$lt_cv_prog_gnu_ld
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4563$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4564if test "${lt_cv_path_NM+set}" = set; then :
4565  $as_echo_n "(cached) " >&6
4566else
4567  if test -n "$NM"; then
4568  # Let the user override the test.
4569  lt_cv_path_NM="$NM"
4570else
4571  lt_nm_to_check="${ac_tool_prefix}nm"
4572  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4573    lt_nm_to_check="$lt_nm_to_check nm"
4574  fi
4575  for lt_tmp_nm in $lt_nm_to_check; do
4576    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4577    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4578      IFS="$lt_save_ifs"
4579      test -z "$ac_dir" && ac_dir=.
4580      tmp_nm="$ac_dir/$lt_tmp_nm"
4581      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4582	# Check to see if the nm accepts a BSD-compat flag.
4583	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4584	#   nm: unknown option "B" ignored
4585	# Tru64's nm complains that /dev/null is an invalid object file
4586	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4587	*/dev/null* | *'Invalid file or object type'*)
4588	  lt_cv_path_NM="$tmp_nm -B"
4589	  break
4590	  ;;
4591	*)
4592	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4593	  */dev/null*)
4594	    lt_cv_path_NM="$tmp_nm -p"
4595	    break
4596	    ;;
4597	  *)
4598	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4599	    continue # so that we can try to find one that supports BSD flags
4600	    ;;
4601	  esac
4602	  ;;
4603	esac
4604      fi
4605    done
4606    IFS="$lt_save_ifs"
4607  done
4608  : ${lt_cv_path_NM=no}
4609fi
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4612$as_echo "$lt_cv_path_NM" >&6; }
4613if test "$lt_cv_path_NM" != "no"; then
4614  NM="$lt_cv_path_NM"
4615else
4616  # Didn't find any BSD compatible name lister, look for dumpbin.
4617  if test -n "$DUMPBIN"; then :
4618    # Let the user override the test.
4619  else
4620    if test -n "$ac_tool_prefix"; then
4621  for ac_prog in dumpbin "link -dump"
4622  do
4623    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  if test -n "$DUMPBIN"; then
4631  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4632else
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636  IFS=$as_save_IFS
4637  test -z "$as_dir" && as_dir=.
4638    for ac_exec_ext in '' $ac_executable_extensions; do
4639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642    break 2
4643  fi
4644done
4645  done
4646IFS=$as_save_IFS
4647
4648fi
4649fi
4650DUMPBIN=$ac_cv_prog_DUMPBIN
4651if test -n "$DUMPBIN"; then
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4653$as_echo "$DUMPBIN" >&6; }
4654else
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656$as_echo "no" >&6; }
4657fi
4658
4659
4660    test -n "$DUMPBIN" && break
4661  done
4662fi
4663if test -z "$DUMPBIN"; then
4664  ac_ct_DUMPBIN=$DUMPBIN
4665  for ac_prog in dumpbin "link -dump"
4666do
4667  # Extract the first word of "$ac_prog", so it can be a program name with args.
4668set dummy $ac_prog; ac_word=$2
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670$as_echo_n "checking for $ac_word... " >&6; }
4671if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4672  $as_echo_n "(cached) " >&6
4673else
4674  if test -n "$ac_ct_DUMPBIN"; then
4675  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4676else
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680  IFS=$as_save_IFS
4681  test -z "$as_dir" && as_dir=.
4682    for ac_exec_ext in '' $ac_executable_extensions; do
4683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686    break 2
4687  fi
4688done
4689  done
4690IFS=$as_save_IFS
4691
4692fi
4693fi
4694ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4695if test -n "$ac_ct_DUMPBIN"; then
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4697$as_echo "$ac_ct_DUMPBIN" >&6; }
4698else
4699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700$as_echo "no" >&6; }
4701fi
4702
4703
4704  test -n "$ac_ct_DUMPBIN" && break
4705done
4706
4707  if test "x$ac_ct_DUMPBIN" = x; then
4708    DUMPBIN=":"
4709  else
4710    case $cross_compiling:$ac_tool_warned in
4711yes:)
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4714ac_tool_warned=yes ;;
4715esac
4716    DUMPBIN=$ac_ct_DUMPBIN
4717  fi
4718fi
4719
4720    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4721    *COFF*)
4722      DUMPBIN="$DUMPBIN -symbols"
4723      ;;
4724    *)
4725      DUMPBIN=:
4726      ;;
4727    esac
4728  fi
4729
4730  if test "$DUMPBIN" != ":"; then
4731    NM="$DUMPBIN"
4732  fi
4733fi
4734test -z "$NM" && NM=nm
4735
4736
4737
4738
4739
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4742$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4743if test "${lt_cv_nm_interface+set}" = set; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  lt_cv_nm_interface="BSD nm"
4747  echo "int some_variable = 0;" > conftest.$ac_ext
4748  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4749  (eval "$ac_compile" 2>conftest.err)
4750  cat conftest.err >&5
4751  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4752  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4753  cat conftest.err >&5
4754  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4755  cat conftest.out >&5
4756  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4757    lt_cv_nm_interface="MS dumpbin"
4758  fi
4759  rm -f conftest*
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4762$as_echo "$lt_cv_nm_interface" >&6; }
4763
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4765$as_echo_n "checking whether ln -s works... " >&6; }
4766LN_S=$as_ln_s
4767if test "$LN_S" = "ln -s"; then
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769$as_echo "yes" >&6; }
4770else
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4772$as_echo "no, using $LN_S" >&6; }
4773fi
4774
4775# find the maximum length of command line arguments
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4777$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4778if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781    i=0
4782  teststring="ABCD"
4783
4784  case $build_os in
4785  msdosdjgpp*)
4786    # On DJGPP, this test can blow up pretty badly due to problems in libc
4787    # (any single argument exceeding 2000 bytes causes a buffer overrun
4788    # during glob expansion).  Even if it were fixed, the result of this
4789    # check would be larger than it should be.
4790    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4791    ;;
4792
4793  gnu*)
4794    # Under GNU Hurd, this test is not required because there is
4795    # no limit to the length of command line arguments.
4796    # Libtool will interpret -1 as no limit whatsoever
4797    lt_cv_sys_max_cmd_len=-1;
4798    ;;
4799
4800  cygwin* | mingw* | cegcc*)
4801    # On Win9x/ME, this test blows up -- it succeeds, but takes
4802    # about 5 minutes as the teststring grows exponentially.
4803    # Worse, since 9x/ME are not pre-emptively multitasking,
4804    # you end up with a "frozen" computer, even though with patience
4805    # the test eventually succeeds (with a max line length of 256k).
4806    # Instead, let's just punt: use the minimum linelength reported by
4807    # all of the supported platforms: 8192 (on NT/2K/XP).
4808    lt_cv_sys_max_cmd_len=8192;
4809    ;;
4810
4811  mint*)
4812    # On MiNT this can take a long time and run out of memory.
4813    lt_cv_sys_max_cmd_len=8192;
4814    ;;
4815
4816  amigaos*)
4817    # On AmigaOS with pdksh, this test takes hours, literally.
4818    # So we just punt and use a minimum line length of 8192.
4819    lt_cv_sys_max_cmd_len=8192;
4820    ;;
4821
4822  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4823    # This has been around since 386BSD, at least.  Likely further.
4824    if test -x /sbin/sysctl; then
4825      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4826    elif test -x /usr/sbin/sysctl; then
4827      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4828    else
4829      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4830    fi
4831    # And add a safety zone
4832    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4834    ;;
4835
4836  interix*)
4837    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4838    lt_cv_sys_max_cmd_len=196608
4839    ;;
4840
4841  osf*)
4842    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4843    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4844    # nice to cause kernel panics so lets avoid the loop below.
4845    # First set a reasonable default.
4846    lt_cv_sys_max_cmd_len=16384
4847    #
4848    if test -x /sbin/sysconfig; then
4849      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4850        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4851      esac
4852    fi
4853    ;;
4854  sco3.2v5*)
4855    lt_cv_sys_max_cmd_len=102400
4856    ;;
4857  sysv5* | sco5v6* | sysv4.2uw2*)
4858    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4859    if test -n "$kargmax"; then
4860      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4861    else
4862      lt_cv_sys_max_cmd_len=32768
4863    fi
4864    ;;
4865  *)
4866    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4867    if test -n "$lt_cv_sys_max_cmd_len"; then
4868      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870    else
4871      # Make teststring a little bigger before we do anything with it.
4872      # a 1K string should be a reasonable start.
4873      for i in 1 2 3 4 5 6 7 8 ; do
4874        teststring=$teststring$teststring
4875      done
4876      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4877      # If test is not a shell built-in, we'll probably end up computing a
4878      # maximum length that is only half of the actual maximum length, but
4879      # we can't tell.
4880      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4881	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4882	      test $i != 17 # 1/2 MB should be enough
4883      do
4884        i=`expr $i + 1`
4885        teststring=$teststring$teststring
4886      done
4887      # Only check the string length outside the loop.
4888      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4889      teststring=
4890      # Add a significant safety factor because C++ compilers can tack on
4891      # massive amounts of additional arguments before passing them to the
4892      # linker.  It appears as though 1/2 is a usable value.
4893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4894    fi
4895    ;;
4896  esac
4897
4898fi
4899
4900if test -n $lt_cv_sys_max_cmd_len ; then
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4902$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4903else
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4905$as_echo "none" >&6; }
4906fi
4907max_cmd_len=$lt_cv_sys_max_cmd_len
4908
4909
4910
4911
4912
4913
4914: ${CP="cp -f"}
4915: ${MV="mv -f"}
4916: ${RM="rm -f"}
4917
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4919$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4920# Try some XSI features
4921xsi_shell=no
4922( _lt_dummy="a/b/c"
4923  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4924      = c,a/b,, \
4925    && eval 'test $(( 1 + 1 )) -eq 2 \
4926    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4927  && xsi_shell=yes
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4929$as_echo "$xsi_shell" >&6; }
4930
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4933$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4934lt_shell_append=no
4935( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4936    >/dev/null 2>&1 \
4937  && lt_shell_append=yes
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4939$as_echo "$lt_shell_append" >&6; }
4940
4941
4942if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4943  lt_unset=unset
4944else
4945  lt_unset=false
4946fi
4947
4948
4949
4950
4951
4952# test EBCDIC or ASCII
4953case `echo X|tr X '\101'` in
4954 A) # ASCII based system
4955    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4956  lt_SP2NL='tr \040 \012'
4957  lt_NL2SP='tr \015\012 \040\040'
4958  ;;
4959 *) # EBCDIC based system
4960  lt_SP2NL='tr \100 \n'
4961  lt_NL2SP='tr \r\n \100\100'
4962  ;;
4963esac
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4974$as_echo_n "checking for $LD option to reload object files... " >&6; }
4975if test "${lt_cv_ld_reload_flag+set}" = set; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  lt_cv_ld_reload_flag='-r'
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4981$as_echo "$lt_cv_ld_reload_flag" >&6; }
4982reload_flag=$lt_cv_ld_reload_flag
4983case $reload_flag in
4984"" | " "*) ;;
4985*) reload_flag=" $reload_flag" ;;
4986esac
4987reload_cmds='$LD$reload_flag -o $output$reload_objs'
4988case $host_os in
4989  darwin*)
4990    if test "$GCC" = yes; then
4991      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4992    else
4993      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4994    fi
4995    ;;
4996esac
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006if test -n "$ac_tool_prefix"; then
5007  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5008set dummy ${ac_tool_prefix}objdump; ac_word=$2
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010$as_echo_n "checking for $ac_word... " >&6; }
5011if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5012  $as_echo_n "(cached) " >&6
5013else
5014  if test -n "$OBJDUMP"; then
5015  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029  done
5030IFS=$as_save_IFS
5031
5032fi
5033fi
5034OBJDUMP=$ac_cv_prog_OBJDUMP
5035if test -n "$OBJDUMP"; then
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5037$as_echo "$OBJDUMP" >&6; }
5038else
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040$as_echo "no" >&6; }
5041fi
5042
5043
5044fi
5045if test -z "$ac_cv_prog_OBJDUMP"; then
5046  ac_ct_OBJDUMP=$OBJDUMP
5047  # Extract the first word of "objdump", so it can be a program name with args.
5048set dummy objdump; ac_word=$2
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050$as_echo_n "checking for $ac_word... " >&6; }
5051if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  if test -n "$ac_ct_OBJDUMP"; then
5055  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060  IFS=$as_save_IFS
5061  test -z "$as_dir" && as_dir=.
5062    for ac_exec_ext in '' $ac_executable_extensions; do
5063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066    break 2
5067  fi
5068done
5069  done
5070IFS=$as_save_IFS
5071
5072fi
5073fi
5074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5075if test -n "$ac_ct_OBJDUMP"; then
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5077$as_echo "$ac_ct_OBJDUMP" >&6; }
5078else
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
5081fi
5082
5083  if test "x$ac_ct_OBJDUMP" = x; then
5084    OBJDUMP="false"
5085  else
5086    case $cross_compiling:$ac_tool_warned in
5087yes:)
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090ac_tool_warned=yes ;;
5091esac
5092    OBJDUMP=$ac_ct_OBJDUMP
5093  fi
5094else
5095  OBJDUMP="$ac_cv_prog_OBJDUMP"
5096fi
5097
5098test -z "$OBJDUMP" && OBJDUMP=objdump
5099
5100
5101
5102
5103
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5106$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5107if test "${lt_cv_deplibs_check_method+set}" = set; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  lt_cv_file_magic_cmd='$MAGIC_CMD'
5111lt_cv_file_magic_test_file=
5112lt_cv_deplibs_check_method='unknown'
5113# Need to set the preceding variable on all platforms that support
5114# interlibrary dependencies.
5115# 'none' -- dependencies not supported.
5116# `unknown' -- same as none, but documents that we really don't know.
5117# 'pass_all' -- all dependencies passed with no checks.
5118# 'test_compile' -- check by making test program.
5119# 'file_magic [[regex]]' -- check by looking for files in library path
5120# which responds to the $file_magic_cmd with a given extended regex.
5121# If you have `file' or equivalent on your system and you're not sure
5122# whether `pass_all' will *always* work, you probably want this one.
5123
5124case $host_os in
5125aix[4-9]*)
5126  lt_cv_deplibs_check_method=pass_all
5127  ;;
5128
5129beos*)
5130  lt_cv_deplibs_check_method=pass_all
5131  ;;
5132
5133bsdi[45]*)
5134  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5135  lt_cv_file_magic_cmd='/usr/bin/file -L'
5136  lt_cv_file_magic_test_file=/shlib/libc.so
5137  ;;
5138
5139cygwin*)
5140  # func_win32_libid is a shell function defined in ltmain.sh
5141  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5142  lt_cv_file_magic_cmd='func_win32_libid'
5143  ;;
5144
5145mingw* | pw32*)
5146  # Base MSYS/MinGW do not provide the 'file' command needed by
5147  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5148  # unless we find 'file', for example because we are cross-compiling.
5149  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5150  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5151    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5152    lt_cv_file_magic_cmd='func_win32_libid'
5153  else
5154    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5155    lt_cv_file_magic_cmd='$OBJDUMP -f'
5156  fi
5157  ;;
5158
5159cegcc*)
5160  # use the weaker test based on 'objdump'. See mingw*.
5161  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5162  lt_cv_file_magic_cmd='$OBJDUMP -f'
5163  ;;
5164
5165darwin* | rhapsody*)
5166  lt_cv_deplibs_check_method=pass_all
5167  ;;
5168
5169freebsd* | dragonfly*)
5170  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5171    case $host_cpu in
5172    i*86 )
5173      # Not sure whether the presence of OpenBSD here was a mistake.
5174      # Let's accept both of them until this is cleared up.
5175      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5176      lt_cv_file_magic_cmd=/usr/bin/file
5177      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5178      ;;
5179    esac
5180  else
5181    lt_cv_deplibs_check_method=pass_all
5182  fi
5183  ;;
5184
5185gnu*)
5186  lt_cv_deplibs_check_method=pass_all
5187  ;;
5188
5189haiku*)
5190  lt_cv_deplibs_check_method=pass_all
5191  ;;
5192
5193hpux10.20* | hpux11*)
5194  lt_cv_file_magic_cmd=/usr/bin/file
5195  case $host_cpu in
5196  ia64*)
5197    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5198    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5199    ;;
5200  hppa*64*)
5201    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]'
5202    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5203    ;;
5204  *)
5205    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5206    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5207    ;;
5208  esac
5209  ;;
5210
5211interix[3-9]*)
5212  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5213  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5214  ;;
5215
5216irix5* | irix6* | nonstopux*)
5217  case $LD in
5218  *-32|*"-32 ") libmagic=32-bit;;
5219  *-n32|*"-n32 ") libmagic=N32;;
5220  *-64|*"-64 ") libmagic=64-bit;;
5221  *) libmagic=never-match;;
5222  esac
5223  lt_cv_deplibs_check_method=pass_all
5224  ;;
5225
5226# This must be Linux ELF.
5227linux* | k*bsd*-gnu | kopensolaris*-gnu)
5228  lt_cv_deplibs_check_method=pass_all
5229  ;;
5230
5231netbsd*)
5232  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5233    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5234  else
5235    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5236  fi
5237  ;;
5238
5239newos6*)
5240  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5241  lt_cv_file_magic_cmd=/usr/bin/file
5242  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5243  ;;
5244
5245*nto* | *qnx*)
5246  lt_cv_deplibs_check_method=pass_all
5247  ;;
5248
5249openbsd*)
5250  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5251    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5252  else
5253    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5254  fi
5255  ;;
5256
5257osf3* | osf4* | osf5*)
5258  lt_cv_deplibs_check_method=pass_all
5259  ;;
5260
5261rdos*)
5262  lt_cv_deplibs_check_method=pass_all
5263  ;;
5264
5265solaris*)
5266  lt_cv_deplibs_check_method=pass_all
5267  ;;
5268
5269sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5270  lt_cv_deplibs_check_method=pass_all
5271  ;;
5272
5273sysv4 | sysv4.3*)
5274  case $host_vendor in
5275  motorola)
5276    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]'
5277    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5278    ;;
5279  ncr)
5280    lt_cv_deplibs_check_method=pass_all
5281    ;;
5282  sequent)
5283    lt_cv_file_magic_cmd='/bin/file'
5284    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5285    ;;
5286  sni)
5287    lt_cv_file_magic_cmd='/bin/file'
5288    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5289    lt_cv_file_magic_test_file=/lib/libc.so
5290    ;;
5291  siemens)
5292    lt_cv_deplibs_check_method=pass_all
5293    ;;
5294  pc)
5295    lt_cv_deplibs_check_method=pass_all
5296    ;;
5297  esac
5298  ;;
5299
5300tpf*)
5301  lt_cv_deplibs_check_method=pass_all
5302  ;;
5303esac
5304
5305fi
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5307$as_echo "$lt_cv_deplibs_check_method" >&6; }
5308file_magic_cmd=$lt_cv_file_magic_cmd
5309deplibs_check_method=$lt_cv_deplibs_check_method
5310test -z "$deplibs_check_method" && deplibs_check_method=unknown
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323if test -n "$ac_tool_prefix"; then
5324  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5325set dummy ${ac_tool_prefix}ar; ac_word=$2
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327$as_echo_n "checking for $ac_word... " >&6; }
5328if test "${ac_cv_prog_AR+set}" = set; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  if test -n "$AR"; then
5332  ac_cv_prog_AR="$AR" # Let the user override the test.
5333else
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337  IFS=$as_save_IFS
5338  test -z "$as_dir" && as_dir=.
5339    for ac_exec_ext in '' $ac_executable_extensions; do
5340  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341    ac_cv_prog_AR="${ac_tool_prefix}ar"
5342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343    break 2
5344  fi
5345done
5346  done
5347IFS=$as_save_IFS
5348
5349fi
5350fi
5351AR=$ac_cv_prog_AR
5352if test -n "$AR"; then
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5354$as_echo "$AR" >&6; }
5355else
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357$as_echo "no" >&6; }
5358fi
5359
5360
5361fi
5362if test -z "$ac_cv_prog_AR"; then
5363  ac_ct_AR=$AR
5364  # Extract the first word of "ar", so it can be a program name with args.
5365set dummy ar; ac_word=$2
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  if test -n "$ac_ct_AR"; then
5372  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379    for ac_exec_ext in '' $ac_executable_extensions; do
5380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381    ac_cv_prog_ac_ct_AR="ar"
5382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383    break 2
5384  fi
5385done
5386  done
5387IFS=$as_save_IFS
5388
5389fi
5390fi
5391ac_ct_AR=$ac_cv_prog_ac_ct_AR
5392if test -n "$ac_ct_AR"; then
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5394$as_echo "$ac_ct_AR" >&6; }
5395else
5396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399
5400  if test "x$ac_ct_AR" = x; then
5401    AR="false"
5402  else
5403    case $cross_compiling:$ac_tool_warned in
5404yes:)
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407ac_tool_warned=yes ;;
5408esac
5409    AR=$ac_ct_AR
5410  fi
5411else
5412  AR="$ac_cv_prog_AR"
5413fi
5414
5415test -z "$AR" && AR=ar
5416test -z "$AR_FLAGS" && AR_FLAGS=cru
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428if test -n "$ac_tool_prefix"; then
5429  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5430set dummy ${ac_tool_prefix}strip; ac_word=$2
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432$as_echo_n "checking for $ac_word... " >&6; }
5433if test "${ac_cv_prog_STRIP+set}" = set; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  if test -n "$STRIP"; then
5437  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444    for ac_exec_ext in '' $ac_executable_extensions; do
5445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451  done
5452IFS=$as_save_IFS
5453
5454fi
5455fi
5456STRIP=$ac_cv_prog_STRIP
5457if test -n "$STRIP"; then
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5459$as_echo "$STRIP" >&6; }
5460else
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462$as_echo "no" >&6; }
5463fi
5464
5465
5466fi
5467if test -z "$ac_cv_prog_STRIP"; then
5468  ac_ct_STRIP=$STRIP
5469  # Extract the first word of "strip", so it can be a program name with args.
5470set dummy strip; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  if test -n "$ac_ct_STRIP"; then
5477  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484    for ac_exec_ext in '' $ac_executable_extensions; do
5485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486    ac_cv_prog_ac_ct_STRIP="strip"
5487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491  done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5497if test -n "$ac_ct_STRIP"; then
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5499$as_echo "$ac_ct_STRIP" >&6; }
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505  if test "x$ac_ct_STRIP" = x; then
5506    STRIP=":"
5507  else
5508    case $cross_compiling:$ac_tool_warned in
5509yes:)
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512ac_tool_warned=yes ;;
5513esac
5514    STRIP=$ac_ct_STRIP
5515  fi
5516else
5517  STRIP="$ac_cv_prog_STRIP"
5518fi
5519
5520test -z "$STRIP" && STRIP=:
5521
5522
5523
5524
5525
5526
5527if test -n "$ac_tool_prefix"; then
5528  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5529set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531$as_echo_n "checking for $ac_word... " >&6; }
5532if test "${ac_cv_prog_RANLIB+set}" = set; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  if test -n "$RANLIB"; then
5536  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541  IFS=$as_save_IFS
5542  test -z "$as_dir" && as_dir=.
5543    for ac_exec_ext in '' $ac_executable_extensions; do
5544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547    break 2
5548  fi
5549done
5550  done
5551IFS=$as_save_IFS
5552
5553fi
5554fi
5555RANLIB=$ac_cv_prog_RANLIB
5556if test -n "$RANLIB"; then
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5558$as_echo "$RANLIB" >&6; }
5559else
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562fi
5563
5564
5565fi
5566if test -z "$ac_cv_prog_RANLIB"; then
5567  ac_ct_RANLIB=$RANLIB
5568  # Extract the first word of "ranlib", so it can be a program name with args.
5569set dummy ranlib; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if test -n "$ac_ct_RANLIB"; then
5576  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583    for ac_exec_ext in '' $ac_executable_extensions; do
5584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585    ac_cv_prog_ac_ct_RANLIB="ranlib"
5586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590  done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5596if test -n "$ac_ct_RANLIB"; then
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5598$as_echo "$ac_ct_RANLIB" >&6; }
5599else
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604  if test "x$ac_ct_RANLIB" = x; then
5605    RANLIB=":"
5606  else
5607    case $cross_compiling:$ac_tool_warned in
5608yes:)
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5611ac_tool_warned=yes ;;
5612esac
5613    RANLIB=$ac_ct_RANLIB
5614  fi
5615else
5616  RANLIB="$ac_cv_prog_RANLIB"
5617fi
5618
5619test -z "$RANLIB" && RANLIB=:
5620
5621
5622
5623
5624
5625
5626# Determine commands to create old-style static archives.
5627old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5628old_postinstall_cmds='chmod 644 $oldlib'
5629old_postuninstall_cmds=
5630
5631if test -n "$RANLIB"; then
5632  case $host_os in
5633  openbsd*)
5634    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5635    ;;
5636  *)
5637    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5638    ;;
5639  esac
5640  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5641fi
5642
5643case $host_os in
5644  darwin*)
5645    lock_old_archive_extraction=yes ;;
5646  *)
5647    lock_old_archive_extraction=no ;;
5648esac
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670for ac_prog in gawk mawk nawk awk
5671do
5672  # Extract the first word of "$ac_prog", so it can be a program name with args.
5673set dummy $ac_prog; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
5676if test "${ac_cv_prog_AWK+set}" = set; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  if test -n "$AWK"; then
5680  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685  IFS=$as_save_IFS
5686  test -z "$as_dir" && as_dir=.
5687    for ac_exec_ext in '' $ac_executable_extensions; do
5688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689    ac_cv_prog_AWK="$ac_prog"
5690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691    break 2
5692  fi
5693done
5694  done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699AWK=$ac_cv_prog_AWK
5700if test -n "$AWK"; then
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5702$as_echo "$AWK" >&6; }
5703else
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708
5709  test -n "$AWK" && break
5710done
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730# If no C compiler was specified, use CC.
5731LTCC=${LTCC-"$CC"}
5732
5733# If no C compiler flags were specified, use CFLAGS.
5734LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5735
5736# Allow CC to be a program name with arguments.
5737compiler=$CC
5738
5739
5740# Check for command to grab the raw symbol name followed by C symbol from nm.
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5742$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5743if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746
5747# These are sane defaults that work on at least a few old systems.
5748# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5749
5750# Character class describing NM global symbol codes.
5751symcode='[BCDEGRST]'
5752
5753# Regexp to match symbols that can be accessed directly from C.
5754sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5755
5756# Define system-specific variables.
5757case $host_os in
5758aix*)
5759  symcode='[BCDT]'
5760  ;;
5761cygwin* | mingw* | pw32* | cegcc*)
5762  symcode='[ABCDGISTW]'
5763  ;;
5764hpux*)
5765  if test "$host_cpu" = ia64; then
5766    symcode='[ABCDEGRST]'
5767  fi
5768  ;;
5769irix* | nonstopux*)
5770  symcode='[BCDEGRST]'
5771  ;;
5772osf*)
5773  symcode='[BCDEGQRST]'
5774  ;;
5775solaris*)
5776  symcode='[BDRT]'
5777  ;;
5778sco3.2v5*)
5779  symcode='[DT]'
5780  ;;
5781sysv4.2uw2*)
5782  symcode='[DT]'
5783  ;;
5784sysv5* | sco5v6* | unixware* | OpenUNIX*)
5785  symcode='[ABDT]'
5786  ;;
5787sysv4)
5788  symcode='[DFNSTU]'
5789  ;;
5790esac
5791
5792# If we're using GNU nm, then use its standard symbol codes.
5793case `$NM -V 2>&1` in
5794*GNU* | *'with BFD'*)
5795  symcode='[ABCDGIRSTW]' ;;
5796esac
5797
5798# Transform an extracted symbol line into a proper C declaration.
5799# Some systems (esp. on ia64) link data and code symbols differently,
5800# so use this general approach.
5801lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5802
5803# Transform an extracted symbol line into symbol name and symbol address
5804lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5805lt_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'"
5806
5807# Handle CRLF in mingw tool chain
5808opt_cr=
5809case $build_os in
5810mingw*)
5811  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5812  ;;
5813esac
5814
5815# Try without a prefix underscore, then with it.
5816for ac_symprfx in "" "_"; do
5817
5818  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5819  symxfrm="\\1 $ac_symprfx\\2 \\2"
5820
5821  # Write the raw and C identifiers.
5822  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5823    # Fake it for dumpbin and say T for any non-static function
5824    # and D for any global variable.
5825    # Also find C++ and __fastcall symbols from MSVC++,
5826    # which start with @ or ?.
5827    lt_cv_sys_global_symbol_pipe="$AWK '"\
5828"     {last_section=section; section=\$ 3};"\
5829"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5830"     \$ 0!~/External *\|/{next};"\
5831"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5832"     {if(hide[section]) next};"\
5833"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5834"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5835"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5836"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5837"     ' prfx=^$ac_symprfx"
5838  else
5839    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5840  fi
5841
5842  # Check to see that the pipe works correctly.
5843  pipe_works=no
5844
5845  rm -f conftest*
5846  cat > conftest.$ac_ext <<_LT_EOF
5847#ifdef __cplusplus
5848extern "C" {
5849#endif
5850char nm_test_var;
5851void nm_test_func(void);
5852void nm_test_func(void){}
5853#ifdef __cplusplus
5854}
5855#endif
5856int main(){nm_test_var='a';nm_test_func();return(0);}
5857_LT_EOF
5858
5859  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860  (eval $ac_compile) 2>&5
5861  ac_status=$?
5862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863  test $ac_status = 0; }; then
5864    # Now try to grab the symbols.
5865    nlist=conftest.nm
5866    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5867  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5868  ac_status=$?
5869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870  test $ac_status = 0; } && test -s "$nlist"; then
5871      # Try sorting and uniquifying the output.
5872      if sort "$nlist" | uniq > "$nlist"T; then
5873	mv -f "$nlist"T "$nlist"
5874      else
5875	rm -f "$nlist"T
5876      fi
5877
5878      # Make sure that we snagged all the symbols we need.
5879      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5880	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5881	  cat <<_LT_EOF > conftest.$ac_ext
5882#ifdef __cplusplus
5883extern "C" {
5884#endif
5885
5886_LT_EOF
5887	  # Now generate the symbol file.
5888	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5889
5890	  cat <<_LT_EOF >> conftest.$ac_ext
5891
5892/* The mapping between symbol names and symbols.  */
5893const struct {
5894  const char *name;
5895  void       *address;
5896}
5897lt__PROGRAM__LTX_preloaded_symbols[] =
5898{
5899  { "@PROGRAM@", (void *) 0 },
5900_LT_EOF
5901	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5902	  cat <<\_LT_EOF >> conftest.$ac_ext
5903  {0, (void *) 0}
5904};
5905
5906/* This works around a problem in FreeBSD linker */
5907#ifdef FREEBSD_WORKAROUND
5908static const void *lt_preloaded_setup() {
5909  return lt__PROGRAM__LTX_preloaded_symbols;
5910}
5911#endif
5912
5913#ifdef __cplusplus
5914}
5915#endif
5916_LT_EOF
5917	  # Now try linking the two files.
5918	  mv conftest.$ac_objext conftstm.$ac_objext
5919	  lt_save_LIBS="$LIBS"
5920	  lt_save_CFLAGS="$CFLAGS"
5921	  LIBS="conftstm.$ac_objext"
5922	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5923	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5924  (eval $ac_link) 2>&5
5925  ac_status=$?
5926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5928	    pipe_works=yes
5929	  fi
5930	  LIBS="$lt_save_LIBS"
5931	  CFLAGS="$lt_save_CFLAGS"
5932	else
5933	  echo "cannot find nm_test_func in $nlist" >&5
5934	fi
5935      else
5936	echo "cannot find nm_test_var in $nlist" >&5
5937      fi
5938    else
5939      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5940    fi
5941  else
5942    echo "$progname: failed program was:" >&5
5943    cat conftest.$ac_ext >&5
5944  fi
5945  rm -rf conftest* conftst*
5946
5947  # Do not use the global_symbol_pipe unless it works.
5948  if test "$pipe_works" = yes; then
5949    break
5950  else
5951    lt_cv_sys_global_symbol_pipe=
5952  fi
5953done
5954
5955fi
5956
5957if test -z "$lt_cv_sys_global_symbol_pipe"; then
5958  lt_cv_sys_global_symbol_to_cdecl=
5959fi
5960if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5962$as_echo "failed" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5965$as_echo "ok" >&6; }
5966fi
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990# Check whether --enable-libtool-lock was given.
5991if test "${enable_libtool_lock+set}" = set; then :
5992  enableval=$enable_libtool_lock;
5993fi
5994
5995test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5996
5997# Some flags need to be propagated to the compiler or linker for good
5998# libtool support.
5999case $host in
6000ia64-*-hpux*)
6001  # Find out which ABI we are using.
6002  echo 'int i;' > conftest.$ac_ext
6003  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6004  (eval $ac_compile) 2>&5
6005  ac_status=$?
6006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007  test $ac_status = 0; }; then
6008    case `/usr/bin/file conftest.$ac_objext` in
6009      *ELF-32*)
6010	HPUX_IA64_MODE="32"
6011	;;
6012      *ELF-64*)
6013	HPUX_IA64_MODE="64"
6014	;;
6015    esac
6016  fi
6017  rm -rf conftest*
6018  ;;
6019*-*-irix6*)
6020  # Find out which ABI we are using.
6021  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6022  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6023  (eval $ac_compile) 2>&5
6024  ac_status=$?
6025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026  test $ac_status = 0; }; then
6027    if test "$lt_cv_prog_gnu_ld" = yes; then
6028      case `/usr/bin/file conftest.$ac_objext` in
6029	*32-bit*)
6030	  LD="${LD-ld} -melf32bsmip"
6031	  ;;
6032	*N32*)
6033	  LD="${LD-ld} -melf32bmipn32"
6034	  ;;
6035	*64-bit*)
6036	  LD="${LD-ld} -melf64bmip"
6037	;;
6038      esac
6039    else
6040      case `/usr/bin/file conftest.$ac_objext` in
6041	*32-bit*)
6042	  LD="${LD-ld} -32"
6043	  ;;
6044	*N32*)
6045	  LD="${LD-ld} -n32"
6046	  ;;
6047	*64-bit*)
6048	  LD="${LD-ld} -64"
6049	  ;;
6050      esac
6051    fi
6052  fi
6053  rm -rf conftest*
6054  ;;
6055
6056x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6057s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6058  # Find out which ABI we are using.
6059  echo 'int i;' > conftest.$ac_ext
6060  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6061  (eval $ac_compile) 2>&5
6062  ac_status=$?
6063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064  test $ac_status = 0; }; then
6065    case `/usr/bin/file conftest.o` in
6066      *32-bit*)
6067	case $host in
6068	  x86_64-*kfreebsd*-gnu)
6069	    LD="${LD-ld} -m elf_i386_fbsd"
6070	    ;;
6071	  x86_64-*linux*)
6072	    case `/usr/bin/file conftest.o` in
6073	      *x86-64*)
6074		LD="${LD-ld} -m elf32_x86_64"
6075		;;
6076	      *)
6077		LD="${LD-ld} -m elf_i386"
6078		;;
6079	    esac
6080	    ;;
6081	  powerpc64le-*linux*)
6082	    LD="${LD-ld} -m elf32lppclinux"
6083	    ;;
6084	  powerpc64-*linux*)
6085	    LD="${LD-ld} -m elf32ppclinux"
6086	    ;;
6087	  s390x-*linux*)
6088	    LD="${LD-ld} -m elf_s390"
6089	    ;;
6090	  sparc64-*linux*)
6091	    LD="${LD-ld} -m elf32_sparc"
6092	    ;;
6093	esac
6094	;;
6095      *64-bit*)
6096	case $host in
6097	  x86_64-*kfreebsd*-gnu)
6098	    LD="${LD-ld} -m elf_x86_64_fbsd"
6099	    ;;
6100	  x86_64-*linux*)
6101	    LD="${LD-ld} -m elf_x86_64"
6102	    ;;
6103	  powerpcle-*linux*)
6104	    LD="${LD-ld} -m elf64lppc"
6105	    ;;
6106	  powerpc-*linux*)
6107	    LD="${LD-ld} -m elf64ppc"
6108	    ;;
6109	  s390*-*linux*|s390*-*tpf*)
6110	    LD="${LD-ld} -m elf64_s390"
6111	    ;;
6112	  sparc*-*linux*)
6113	    LD="${LD-ld} -m elf64_sparc"
6114	    ;;
6115	esac
6116	;;
6117    esac
6118  fi
6119  rm -rf conftest*
6120  ;;
6121
6122*-*-sco3.2v5*)
6123  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6124  SAVE_CFLAGS="$CFLAGS"
6125  CFLAGS="$CFLAGS -belf"
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6127$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6128if test "${lt_cv_cc_needs_belf+set}" = set; then :
6129  $as_echo_n "(cached) " >&6
6130else
6131  ac_ext=c
6132ac_cpp='$CPP $CPPFLAGS'
6133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136
6137     if test x$gcc_no_link = xyes; then
6138  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6139fi
6140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142
6143int
6144main ()
6145{
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151if ac_fn_c_try_link "$LINENO"; then :
6152  lt_cv_cc_needs_belf=yes
6153else
6154  lt_cv_cc_needs_belf=no
6155fi
6156rm -f core conftest.err conftest.$ac_objext \
6157    conftest$ac_exeext conftest.$ac_ext
6158     ac_ext=c
6159ac_cpp='$CPP $CPPFLAGS'
6160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6166$as_echo "$lt_cv_cc_needs_belf" >&6; }
6167  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6168    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6169    CFLAGS="$SAVE_CFLAGS"
6170  fi
6171  ;;
6172sparc*-*solaris*)
6173  # Find out which ABI we are using.
6174  echo 'int i;' > conftest.$ac_ext
6175  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176  (eval $ac_compile) 2>&5
6177  ac_status=$?
6178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179  test $ac_status = 0; }; then
6180    case `/usr/bin/file conftest.o` in
6181    *64-bit*)
6182      case $lt_cv_prog_gnu_ld in
6183      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6184      *)
6185	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6186	  LD="${LD-ld} -64"
6187	fi
6188	;;
6189      esac
6190      ;;
6191    esac
6192  fi
6193  rm -rf conftest*
6194  ;;
6195esac
6196
6197need_locks="$enable_libtool_lock"
6198
6199
6200  case $host_os in
6201    rhapsody* | darwin*)
6202    if test -n "$ac_tool_prefix"; then
6203  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6204set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206$as_echo_n "checking for $ac_word... " >&6; }
6207if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  if test -n "$DSYMUTIL"; then
6211  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216  IFS=$as_save_IFS
6217  test -z "$as_dir" && as_dir=.
6218    for ac_exec_ext in '' $ac_executable_extensions; do
6219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222    break 2
6223  fi
6224done
6225  done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230DSYMUTIL=$ac_cv_prog_DSYMUTIL
6231if test -n "$DSYMUTIL"; then
6232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6233$as_echo "$DSYMUTIL" >&6; }
6234else
6235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240fi
6241if test -z "$ac_cv_prog_DSYMUTIL"; then
6242  ac_ct_DSYMUTIL=$DSYMUTIL
6243  # Extract the first word of "dsymutil", so it can be a program name with args.
6244set dummy dsymutil; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  if test -n "$ac_ct_DSYMUTIL"; then
6251  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256  IFS=$as_save_IFS
6257  test -z "$as_dir" && as_dir=.
6258    for ac_exec_ext in '' $ac_executable_extensions; do
6259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262    break 2
6263  fi
6264done
6265  done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6271if test -n "$ac_ct_DSYMUTIL"; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6273$as_echo "$ac_ct_DSYMUTIL" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
6278
6279  if test "x$ac_ct_DSYMUTIL" = x; then
6280    DSYMUTIL=":"
6281  else
6282    case $cross_compiling:$ac_tool_warned in
6283yes:)
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286ac_tool_warned=yes ;;
6287esac
6288    DSYMUTIL=$ac_ct_DSYMUTIL
6289  fi
6290else
6291  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6292fi
6293
6294    if test -n "$ac_tool_prefix"; then
6295  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6296set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298$as_echo_n "checking for $ac_word... " >&6; }
6299if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  if test -n "$NMEDIT"; then
6303  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308  IFS=$as_save_IFS
6309  test -z "$as_dir" && as_dir=.
6310    for ac_exec_ext in '' $ac_executable_extensions; do
6311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314    break 2
6315  fi
6316done
6317  done
6318IFS=$as_save_IFS
6319
6320fi
6321fi
6322NMEDIT=$ac_cv_prog_NMEDIT
6323if test -n "$NMEDIT"; then
6324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6325$as_echo "$NMEDIT" >&6; }
6326else
6327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
6329fi
6330
6331
6332fi
6333if test -z "$ac_cv_prog_NMEDIT"; then
6334  ac_ct_NMEDIT=$NMEDIT
6335  # Extract the first word of "nmedit", so it can be a program name with args.
6336set dummy nmedit; ac_word=$2
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338$as_echo_n "checking for $ac_word... " >&6; }
6339if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342  if test -n "$ac_ct_NMEDIT"; then
6343  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6344else
6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348  IFS=$as_save_IFS
6349  test -z "$as_dir" && as_dir=.
6350    for ac_exec_ext in '' $ac_executable_extensions; do
6351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354    break 2
6355  fi
6356done
6357  done
6358IFS=$as_save_IFS
6359
6360fi
6361fi
6362ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6363if test -n "$ac_ct_NMEDIT"; then
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6365$as_echo "$ac_ct_NMEDIT" >&6; }
6366else
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368$as_echo "no" >&6; }
6369fi
6370
6371  if test "x$ac_ct_NMEDIT" = x; then
6372    NMEDIT=":"
6373  else
6374    case $cross_compiling:$ac_tool_warned in
6375yes:)
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378ac_tool_warned=yes ;;
6379esac
6380    NMEDIT=$ac_ct_NMEDIT
6381  fi
6382else
6383  NMEDIT="$ac_cv_prog_NMEDIT"
6384fi
6385
6386    if test -n "$ac_tool_prefix"; then
6387  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6388set dummy ${ac_tool_prefix}lipo; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if test "${ac_cv_prog_LIPO+set}" = set; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  if test -n "$LIPO"; then
6395  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400  IFS=$as_save_IFS
6401  test -z "$as_dir" && as_dir=.
6402    for ac_exec_ext in '' $ac_executable_extensions; do
6403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406    break 2
6407  fi
6408done
6409  done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414LIPO=$ac_cv_prog_LIPO
6415if test -n "$LIPO"; then
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6417$as_echo "$LIPO" >&6; }
6418else
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423
6424fi
6425if test -z "$ac_cv_prog_LIPO"; then
6426  ac_ct_LIPO=$LIPO
6427  # Extract the first word of "lipo", so it can be a program name with args.
6428set dummy lipo; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  if test -n "$ac_ct_LIPO"; then
6435  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440  IFS=$as_save_IFS
6441  test -z "$as_dir" && as_dir=.
6442    for ac_exec_ext in '' $ac_executable_extensions; do
6443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444    ac_cv_prog_ac_ct_LIPO="lipo"
6445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446    break 2
6447  fi
6448done
6449  done
6450IFS=$as_save_IFS
6451
6452fi
6453fi
6454ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6455if test -n "$ac_ct_LIPO"; then
6456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6457$as_echo "$ac_ct_LIPO" >&6; }
6458else
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461fi
6462
6463  if test "x$ac_ct_LIPO" = x; then
6464    LIPO=":"
6465  else
6466    case $cross_compiling:$ac_tool_warned in
6467yes:)
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470ac_tool_warned=yes ;;
6471esac
6472    LIPO=$ac_ct_LIPO
6473  fi
6474else
6475  LIPO="$ac_cv_prog_LIPO"
6476fi
6477
6478    if test -n "$ac_tool_prefix"; then
6479  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6480set dummy ${ac_tool_prefix}otool; ac_word=$2
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482$as_echo_n "checking for $ac_word... " >&6; }
6483if test "${ac_cv_prog_OTOOL+set}" = set; then :
6484  $as_echo_n "(cached) " >&6
6485else
6486  if test -n "$OTOOL"; then
6487  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492  IFS=$as_save_IFS
6493  test -z "$as_dir" && as_dir=.
6494    for ac_exec_ext in '' $ac_executable_extensions; do
6495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498    break 2
6499  fi
6500done
6501  done
6502IFS=$as_save_IFS
6503
6504fi
6505fi
6506OTOOL=$ac_cv_prog_OTOOL
6507if test -n "$OTOOL"; then
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6509$as_echo "$OTOOL" >&6; }
6510else
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512$as_echo "no" >&6; }
6513fi
6514
6515
6516fi
6517if test -z "$ac_cv_prog_OTOOL"; then
6518  ac_ct_OTOOL=$OTOOL
6519  # Extract the first word of "otool", so it can be a program name with args.
6520set dummy otool; ac_word=$2
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522$as_echo_n "checking for $ac_word... " >&6; }
6523if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  if test -n "$ac_ct_OTOOL"; then
6527  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6528else
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532  IFS=$as_save_IFS
6533  test -z "$as_dir" && as_dir=.
6534    for ac_exec_ext in '' $ac_executable_extensions; do
6535  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536    ac_cv_prog_ac_ct_OTOOL="otool"
6537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538    break 2
6539  fi
6540done
6541  done
6542IFS=$as_save_IFS
6543
6544fi
6545fi
6546ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6547if test -n "$ac_ct_OTOOL"; then
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6549$as_echo "$ac_ct_OTOOL" >&6; }
6550else
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552$as_echo "no" >&6; }
6553fi
6554
6555  if test "x$ac_ct_OTOOL" = x; then
6556    OTOOL=":"
6557  else
6558    case $cross_compiling:$ac_tool_warned in
6559yes:)
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562ac_tool_warned=yes ;;
6563esac
6564    OTOOL=$ac_ct_OTOOL
6565  fi
6566else
6567  OTOOL="$ac_cv_prog_OTOOL"
6568fi
6569
6570    if test -n "$ac_tool_prefix"; then
6571  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}otool64; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
6575if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  if test -n "$OTOOL64"; then
6579  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586    for ac_exec_ext in '' $ac_executable_extensions; do
6587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593  done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598OTOOL64=$ac_cv_prog_OTOOL64
6599if test -n "$OTOOL64"; then
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6601$as_echo "$OTOOL64" >&6; }
6602else
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
6606
6607
6608fi
6609if test -z "$ac_cv_prog_OTOOL64"; then
6610  ac_ct_OTOOL64=$OTOOL64
6611  # Extract the first word of "otool64", so it can be a program name with args.
6612set dummy otool64; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
6615if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  if test -n "$ac_ct_OTOOL64"; then
6619  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626    for ac_exec_ext in '' $ac_executable_extensions; do
6627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628    ac_cv_prog_ac_ct_OTOOL64="otool64"
6629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633  done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6639if test -n "$ac_ct_OTOOL64"; then
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6641$as_echo "$ac_ct_OTOOL64" >&6; }
6642else
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647  if test "x$ac_ct_OTOOL64" = x; then
6648    OTOOL64=":"
6649  else
6650    case $cross_compiling:$ac_tool_warned in
6651yes:)
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654ac_tool_warned=yes ;;
6655esac
6656    OTOOL64=$ac_ct_OTOOL64
6657  fi
6658else
6659  OTOOL64="$ac_cv_prog_OTOOL64"
6660fi
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6689$as_echo_n "checking for -single_module linker flag... " >&6; }
6690if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  lt_cv_apple_cc_single_mod=no
6694      if test -z "${LT_MULTI_MODULE}"; then
6695	# By default we will add the -single_module flag. You can override
6696	# by either setting the environment variable LT_MULTI_MODULE
6697	# non-empty at configure time, or by adding -multi_module to the
6698	# link flags.
6699	rm -rf libconftest.dylib*
6700	echo "int foo(void){return 1;}" > conftest.c
6701	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6702-dynamiclib -Wl,-single_module conftest.c" >&5
6703	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6704	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6705        _lt_result=$?
6706	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6707	  lt_cv_apple_cc_single_mod=yes
6708	else
6709	  cat conftest.err >&5
6710	fi
6711	rm -rf libconftest.dylib*
6712	rm -f conftest.*
6713      fi
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6716$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6717    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6718$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6719if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  lt_cv_ld_exported_symbols_list=no
6723      save_LDFLAGS=$LDFLAGS
6724      echo "_main" > conftest.sym
6725      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6726      if test x$gcc_no_link = xyes; then
6727  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6728fi
6729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730/* end confdefs.h.  */
6731
6732int
6733main ()
6734{
6735
6736  ;
6737  return 0;
6738}
6739_ACEOF
6740if ac_fn_c_try_link "$LINENO"; then :
6741  lt_cv_ld_exported_symbols_list=yes
6742else
6743  lt_cv_ld_exported_symbols_list=no
6744fi
6745rm -f core conftest.err conftest.$ac_objext \
6746    conftest$ac_exeext conftest.$ac_ext
6747	LDFLAGS="$save_LDFLAGS"
6748
6749fi
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6751$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6753$as_echo_n "checking for -force_load linker flag... " >&6; }
6754if test "${lt_cv_ld_force_load+set}" = set; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  lt_cv_ld_force_load=no
6758      cat > conftest.c << _LT_EOF
6759int forced_loaded() { return 2;}
6760_LT_EOF
6761      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6762      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6763      echo "$AR cru libconftest.a conftest.o" >&5
6764      $AR cru libconftest.a conftest.o 2>&5
6765      cat > conftest.c << _LT_EOF
6766int main() { return 0;}
6767_LT_EOF
6768      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6769      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6770      _lt_result=$?
6771      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6772	lt_cv_ld_force_load=yes
6773      else
6774	cat conftest.err >&5
6775      fi
6776        rm -f conftest.err libconftest.a conftest conftest.c
6777        rm -rf conftest.dSYM
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6781$as_echo "$lt_cv_ld_force_load" >&6; }
6782    case $host_os in
6783    rhapsody* | darwin1.[012])
6784      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6785    darwin1.*)
6786      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6787    darwin*) # darwin 5.x on
6788      # if running on 10.5 or later, the deployment target defaults
6789      # to the OS version, if on x86, and 10.4, the deployment
6790      # target defaults to 10.4. Don't you love it?
6791      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6792	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6793	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6794	10.[012][,.]*)
6795	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6796	10.*)
6797	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6798      esac
6799    ;;
6800  esac
6801    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6802      _lt_dar_single_mod='$single_module'
6803    fi
6804    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6805      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6806    else
6807      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6808    fi
6809    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6810      _lt_dsymutil='~$DSYMUTIL $lib || :'
6811    else
6812      _lt_dsymutil=
6813    fi
6814    ;;
6815  esac
6816
6817ac_ext=c
6818ac_cpp='$CPP $CPPFLAGS'
6819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6823$as_echo_n "checking how to run the C preprocessor... " >&6; }
6824# On Suns, sometimes $CPP names a directory.
6825if test -n "$CPP" && test -d "$CPP"; then
6826  CPP=
6827fi
6828if test -z "$CPP"; then
6829  if test "${ac_cv_prog_CPP+set}" = set; then :
6830  $as_echo_n "(cached) " >&6
6831else
6832      # Double quotes because CPP needs to be expanded
6833    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6834    do
6835      ac_preproc_ok=false
6836for ac_c_preproc_warn_flag in '' yes
6837do
6838  # Use a header file that comes with gcc, so configuring glibc
6839  # with a fresh cross-compiler works.
6840  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6841  # <limits.h> exists even on freestanding compilers.
6842  # On the NeXT, cc -E runs the code through the compiler's parser,
6843  # not just through cpp. "Syntax error" is here to catch this case.
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846#ifdef __STDC__
6847# include <limits.h>
6848#else
6849# include <assert.h>
6850#endif
6851		     Syntax error
6852_ACEOF
6853if ac_fn_c_try_cpp "$LINENO"; then :
6854
6855else
6856  # Broken: fails on valid input.
6857continue
6858fi
6859rm -f conftest.err conftest.$ac_ext
6860
6861  # OK, works on sane cases.  Now check whether nonexistent headers
6862  # can be detected and how.
6863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865#include <ac_nonexistent.h>
6866_ACEOF
6867if ac_fn_c_try_cpp "$LINENO"; then :
6868  # Broken: success on invalid input.
6869continue
6870else
6871  # Passes both tests.
6872ac_preproc_ok=:
6873break
6874fi
6875rm -f conftest.err conftest.$ac_ext
6876
6877done
6878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6879rm -f conftest.err conftest.$ac_ext
6880if $ac_preproc_ok; then :
6881  break
6882fi
6883
6884    done
6885    ac_cv_prog_CPP=$CPP
6886
6887fi
6888  CPP=$ac_cv_prog_CPP
6889else
6890  ac_cv_prog_CPP=$CPP
6891fi
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6893$as_echo "$CPP" >&6; }
6894ac_preproc_ok=false
6895for ac_c_preproc_warn_flag in '' yes
6896do
6897  # Use a header file that comes with gcc, so configuring glibc
6898  # with a fresh cross-compiler works.
6899  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6900  # <limits.h> exists even on freestanding compilers.
6901  # On the NeXT, cc -E runs the code through the compiler's parser,
6902  # not just through cpp. "Syntax error" is here to catch this case.
6903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905#ifdef __STDC__
6906# include <limits.h>
6907#else
6908# include <assert.h>
6909#endif
6910		     Syntax error
6911_ACEOF
6912if ac_fn_c_try_cpp "$LINENO"; then :
6913
6914else
6915  # Broken: fails on valid input.
6916continue
6917fi
6918rm -f conftest.err conftest.$ac_ext
6919
6920  # OK, works on sane cases.  Now check whether nonexistent headers
6921  # can be detected and how.
6922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923/* end confdefs.h.  */
6924#include <ac_nonexistent.h>
6925_ACEOF
6926if ac_fn_c_try_cpp "$LINENO"; then :
6927  # Broken: success on invalid input.
6928continue
6929else
6930  # Passes both tests.
6931ac_preproc_ok=:
6932break
6933fi
6934rm -f conftest.err conftest.$ac_ext
6935
6936done
6937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6938rm -f conftest.err conftest.$ac_ext
6939if $ac_preproc_ok; then :
6940
6941else
6942  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6944as_fn_error "C preprocessor \"$CPP\" fails sanity check
6945See \`config.log' for more details." "$LINENO" 5; }
6946fi
6947
6948ac_ext=c
6949ac_cpp='$CPP $CPPFLAGS'
6950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6956$as_echo_n "checking for ANSI C header files... " >&6; }
6957if test "${ac_cv_header_stdc+set}" = set; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h.  */
6962#include <stdlib.h>
6963#include <stdarg.h>
6964#include <string.h>
6965#include <float.h>
6966
6967int
6968main ()
6969{
6970
6971  ;
6972  return 0;
6973}
6974_ACEOF
6975if ac_fn_c_try_compile "$LINENO"; then :
6976  ac_cv_header_stdc=yes
6977else
6978  ac_cv_header_stdc=no
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981
6982if test $ac_cv_header_stdc = yes; then
6983  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h.  */
6986#include <string.h>
6987
6988_ACEOF
6989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990  $EGREP "memchr" >/dev/null 2>&1; then :
6991
6992else
6993  ac_cv_header_stdc=no
6994fi
6995rm -f conftest*
6996
6997fi
6998
6999if test $ac_cv_header_stdc = yes; then
7000  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003#include <stdlib.h>
7004
7005_ACEOF
7006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007  $EGREP "free" >/dev/null 2>&1; then :
7008
7009else
7010  ac_cv_header_stdc=no
7011fi
7012rm -f conftest*
7013
7014fi
7015
7016if test $ac_cv_header_stdc = yes; then
7017  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7018  if test "$cross_compiling" = yes; then :
7019  :
7020else
7021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023#include <ctype.h>
7024#include <stdlib.h>
7025#if ((' ' & 0x0FF) == 0x020)
7026# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7027# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7028#else
7029# define ISLOWER(c) \
7030		   (('a' <= (c) && (c) <= 'i') \
7031		     || ('j' <= (c) && (c) <= 'r') \
7032		     || ('s' <= (c) && (c) <= 'z'))
7033# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7034#endif
7035
7036#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7037int
7038main ()
7039{
7040  int i;
7041  for (i = 0; i < 256; i++)
7042    if (XOR (islower (i), ISLOWER (i))
7043	|| toupper (i) != TOUPPER (i))
7044      return 2;
7045  return 0;
7046}
7047_ACEOF
7048if ac_fn_c_try_run "$LINENO"; then :
7049
7050else
7051  ac_cv_header_stdc=no
7052fi
7053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7054  conftest.$ac_objext conftest.beam conftest.$ac_ext
7055fi
7056
7057fi
7058fi
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7060$as_echo "$ac_cv_header_stdc" >&6; }
7061if test $ac_cv_header_stdc = yes; then
7062
7063$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7064
7065fi
7066
7067# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7068for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7069		  inttypes.h stdint.h unistd.h
7070do :
7071  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7072ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7073"
7074eval as_val=\$$as_ac_Header
7075   if test "x$as_val" = x""yes; then :
7076  cat >>confdefs.h <<_ACEOF
7077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7078_ACEOF
7079
7080fi
7081
7082done
7083
7084
7085for ac_header in dlfcn.h
7086do :
7087  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7088"
7089if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7090  cat >>confdefs.h <<_ACEOF
7091#define HAVE_DLFCN_H 1
7092_ACEOF
7093
7094fi
7095
7096done
7097
7098
7099
7100
7101
7102# Set options
7103
7104
7105
7106        enable_dlopen=no
7107
7108
7109
7110            # Check whether --enable-shared was given.
7111if test "${enable_shared+set}" = set; then :
7112  enableval=$enable_shared; p=${PACKAGE-default}
7113    case $enableval in
7114    yes) enable_shared=yes ;;
7115    no) enable_shared=no ;;
7116    *)
7117      enable_shared=no
7118      # Look at the argument we got.  We use all the common list separators.
7119      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7120      for pkg in $enableval; do
7121	IFS="$lt_save_ifs"
7122	if test "X$pkg" = "X$p"; then
7123	  enable_shared=yes
7124	fi
7125      done
7126      IFS="$lt_save_ifs"
7127      ;;
7128    esac
7129else
7130  enable_shared=yes
7131fi
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141  # Check whether --enable-static was given.
7142if test "${enable_static+set}" = set; then :
7143  enableval=$enable_static; p=${PACKAGE-default}
7144    case $enableval in
7145    yes) enable_static=yes ;;
7146    no) enable_static=no ;;
7147    *)
7148     enable_static=no
7149      # Look at the argument we got.  We use all the common list separators.
7150      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7151      for pkg in $enableval; do
7152	IFS="$lt_save_ifs"
7153	if test "X$pkg" = "X$p"; then
7154	  enable_static=yes
7155	fi
7156      done
7157      IFS="$lt_save_ifs"
7158      ;;
7159    esac
7160else
7161  enable_static=yes
7162fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173# Check whether --with-pic was given.
7174if test "${with_pic+set}" = set; then :
7175  withval=$with_pic; pic_mode="$withval"
7176else
7177  pic_mode=default
7178fi
7179
7180
7181test -z "$pic_mode" && pic_mode=default
7182
7183
7184
7185
7186
7187
7188
7189  # Check whether --enable-fast-install was given.
7190if test "${enable_fast_install+set}" = set; then :
7191  enableval=$enable_fast_install; p=${PACKAGE-default}
7192    case $enableval in
7193    yes) enable_fast_install=yes ;;
7194    no) enable_fast_install=no ;;
7195    *)
7196      enable_fast_install=no
7197      # Look at the argument we got.  We use all the common list separators.
7198      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7199      for pkg in $enableval; do
7200	IFS="$lt_save_ifs"
7201	if test "X$pkg" = "X$p"; then
7202	  enable_fast_install=yes
7203	fi
7204      done
7205      IFS="$lt_save_ifs"
7206      ;;
7207    esac
7208else
7209  enable_fast_install=yes
7210fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222# This can be used to rebuild libtool when needed
7223LIBTOOL_DEPS="$ltmain"
7224
7225# Always use our own libtool.
7226LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253test -z "$LN_S" && LN_S="ln -s"
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268if test -n "${ZSH_VERSION+set}" ; then
7269   setopt NO_GLOB_SUBST
7270fi
7271
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7273$as_echo_n "checking for objdir... " >&6; }
7274if test "${lt_cv_objdir+set}" = set; then :
7275  $as_echo_n "(cached) " >&6
7276else
7277  rm -f .libs 2>/dev/null
7278mkdir .libs 2>/dev/null
7279if test -d .libs; then
7280  lt_cv_objdir=.libs
7281else
7282  # MS-DOS does not allow filenames that begin with a dot.
7283  lt_cv_objdir=_libs
7284fi
7285rmdir .libs 2>/dev/null
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7288$as_echo "$lt_cv_objdir" >&6; }
7289objdir=$lt_cv_objdir
7290
7291
7292
7293
7294
7295cat >>confdefs.h <<_ACEOF
7296#define LT_OBJDIR "$lt_cv_objdir/"
7297_ACEOF
7298
7299
7300
7301
7302case $host_os in
7303aix3*)
7304  # AIX sometimes has problems with the GCC collect2 program.  For some
7305  # reason, if we set the COLLECT_NAMES environment variable, the problems
7306  # vanish in a puff of smoke.
7307  if test "X${COLLECT_NAMES+set}" != Xset; then
7308    COLLECT_NAMES=
7309    export COLLECT_NAMES
7310  fi
7311  ;;
7312esac
7313
7314# Global variables:
7315ofile=libtool
7316can_build_shared=yes
7317
7318# All known linkers require a `.a' archive for static linking (except MSVC,
7319# which needs '.lib').
7320libext=a
7321
7322with_gnu_ld="$lt_cv_prog_gnu_ld"
7323
7324old_CC="$CC"
7325old_CFLAGS="$CFLAGS"
7326
7327# Set sane defaults for various variables
7328test -z "$CC" && CC=cc
7329test -z "$LTCC" && LTCC=$CC
7330test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7331test -z "$LD" && LD=ld
7332test -z "$ac_objext" && ac_objext=o
7333
7334for cc_temp in $compiler""; do
7335  case $cc_temp in
7336    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7337    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7338    \-*) ;;
7339    *) break;;
7340  esac
7341done
7342cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7343
7344
7345# Only perform the check for file, if the check method requires it
7346test -z "$MAGIC_CMD" && MAGIC_CMD=file
7347case $deplibs_check_method in
7348file_magic*)
7349  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7351$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7352if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7353  $as_echo_n "(cached) " >&6
7354else
7355  case $MAGIC_CMD in
7356[\\/*] |  ?:[\\/]*)
7357  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7358  ;;
7359*)
7360  lt_save_MAGIC_CMD="$MAGIC_CMD"
7361  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7362  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7363  for ac_dir in $ac_dummy; do
7364    IFS="$lt_save_ifs"
7365    test -z "$ac_dir" && ac_dir=.
7366    if test -f $ac_dir/${ac_tool_prefix}file; then
7367      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7368      if test -n "$file_magic_test_file"; then
7369	case $deplibs_check_method in
7370	"file_magic "*)
7371	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7372	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7374	    $EGREP "$file_magic_regex" > /dev/null; then
7375	    :
7376	  else
7377	    cat <<_LT_EOF 1>&2
7378
7379*** Warning: the command libtool uses to detect shared libraries,
7380*** $file_magic_cmd, produces output that libtool cannot recognize.
7381*** The result is that libtool may fail to recognize shared libraries
7382*** as such.  This will affect the creation of libtool libraries that
7383*** depend on shared libraries, but programs linked with such libtool
7384*** libraries will work regardless of this problem.  Nevertheless, you
7385*** may want to report the problem to your system manager and/or to
7386*** bug-libtool@gnu.org
7387
7388_LT_EOF
7389	  fi ;;
7390	esac
7391      fi
7392      break
7393    fi
7394  done
7395  IFS="$lt_save_ifs"
7396  MAGIC_CMD="$lt_save_MAGIC_CMD"
7397  ;;
7398esac
7399fi
7400
7401MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7402if test -n "$MAGIC_CMD"; then
7403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7404$as_echo "$MAGIC_CMD" >&6; }
7405else
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407$as_echo "no" >&6; }
7408fi
7409
7410
7411
7412
7413
7414if test -z "$lt_cv_path_MAGIC_CMD"; then
7415  if test -n "$ac_tool_prefix"; then
7416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7417$as_echo_n "checking for file... " >&6; }
7418if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  case $MAGIC_CMD in
7422[\\/*] |  ?:[\\/]*)
7423  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7424  ;;
7425*)
7426  lt_save_MAGIC_CMD="$MAGIC_CMD"
7427  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7428  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7429  for ac_dir in $ac_dummy; do
7430    IFS="$lt_save_ifs"
7431    test -z "$ac_dir" && ac_dir=.
7432    if test -f $ac_dir/file; then
7433      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7434      if test -n "$file_magic_test_file"; then
7435	case $deplibs_check_method in
7436	"file_magic "*)
7437	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7438	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7440	    $EGREP "$file_magic_regex" > /dev/null; then
7441	    :
7442	  else
7443	    cat <<_LT_EOF 1>&2
7444
7445*** Warning: the command libtool uses to detect shared libraries,
7446*** $file_magic_cmd, produces output that libtool cannot recognize.
7447*** The result is that libtool may fail to recognize shared libraries
7448*** as such.  This will affect the creation of libtool libraries that
7449*** depend on shared libraries, but programs linked with such libtool
7450*** libraries will work regardless of this problem.  Nevertheless, you
7451*** may want to report the problem to your system manager and/or to
7452*** bug-libtool@gnu.org
7453
7454_LT_EOF
7455	  fi ;;
7456	esac
7457      fi
7458      break
7459    fi
7460  done
7461  IFS="$lt_save_ifs"
7462  MAGIC_CMD="$lt_save_MAGIC_CMD"
7463  ;;
7464esac
7465fi
7466
7467MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468if test -n "$MAGIC_CMD"; then
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7470$as_echo "$MAGIC_CMD" >&6; }
7471else
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473$as_echo "no" >&6; }
7474fi
7475
7476
7477  else
7478    MAGIC_CMD=:
7479  fi
7480fi
7481
7482  fi
7483  ;;
7484esac
7485
7486# Use C for the default configuration in the libtool script
7487
7488lt_save_CC="$CC"
7489ac_ext=c
7490ac_cpp='$CPP $CPPFLAGS'
7491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493ac_compiler_gnu=$ac_cv_c_compiler_gnu
7494
7495
7496# Source file extension for C test sources.
7497ac_ext=c
7498
7499# Object file extension for compiled C test sources.
7500objext=o
7501objext=$objext
7502
7503# Code to be used in simple compile tests
7504lt_simple_compile_test_code="int some_variable = 0;"
7505
7506# Code to be used in simple link tests
7507lt_simple_link_test_code='int main(){return(0);}'
7508
7509
7510
7511
7512
7513
7514
7515# If no C compiler was specified, use CC.
7516LTCC=${LTCC-"$CC"}
7517
7518# If no C compiler flags were specified, use CFLAGS.
7519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7520
7521# Allow CC to be a program name with arguments.
7522compiler=$CC
7523
7524# Save the default compiler, since it gets overwritten when the other
7525# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7526compiler_DEFAULT=$CC
7527
7528# save warnings/boilerplate of simple test code
7529ac_outfile=conftest.$ac_objext
7530echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7531eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7532_lt_compiler_boilerplate=`cat conftest.err`
7533$RM conftest*
7534
7535ac_outfile=conftest.$ac_objext
7536echo "$lt_simple_link_test_code" >conftest.$ac_ext
7537eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538_lt_linker_boilerplate=`cat conftest.err`
7539$RM -r conftest*
7540
7541
7542## CAVEAT EMPTOR:
7543## There is no encapsulation within the following macros, do not change
7544## the running order or otherwise move them around unless you know exactly
7545## what you are doing...
7546if test -n "$compiler"; then
7547
7548lt_prog_compiler_no_builtin_flag=
7549
7550if test "$GCC" = yes; then
7551  case $cc_basename in
7552  nvcc*)
7553    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7554  *)
7555    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7556  esac
7557
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7559$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7560if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  lt_cv_prog_compiler_rtti_exceptions=no
7564   ac_outfile=conftest.$ac_objext
7565   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7566   lt_compiler_flag="-fno-rtti -fno-exceptions"
7567   # Insert the option either (1) after the last *FLAGS variable, or
7568   # (2) before a word containing "conftest.", or (3) at the end.
7569   # Note that $ac_compile itself does not contain backslashes and begins
7570   # with a dollar sign (not a hyphen), so the echo should work correctly.
7571   # The option is referenced via a variable to avoid confusing sed.
7572   lt_compile=`echo "$ac_compile" | $SED \
7573   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7574   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7575   -e 's:$: $lt_compiler_flag:'`
7576   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7577   (eval "$lt_compile" 2>conftest.err)
7578   ac_status=$?
7579   cat conftest.err >&5
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   if (exit $ac_status) && test -s "$ac_outfile"; then
7582     # The compiler can only warn and ignore the option if not recognized
7583     # So say no if there are warnings other than the usual output.
7584     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7585     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7586     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7587       lt_cv_prog_compiler_rtti_exceptions=yes
7588     fi
7589   fi
7590   $RM conftest*
7591
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7594$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7595
7596if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7597    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7598else
7599    :
7600fi
7601
7602fi
7603
7604
7605
7606
7607
7608
7609  lt_prog_compiler_wl=
7610lt_prog_compiler_pic=
7611lt_prog_compiler_static=
7612
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7614$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7615
7616  if test "$GCC" = yes; then
7617    lt_prog_compiler_wl='-Wl,'
7618    lt_prog_compiler_static='-static'
7619
7620    case $host_os in
7621      aix*)
7622      # All AIX code is PIC.
7623      if test "$host_cpu" = ia64; then
7624	# AIX 5 now supports IA64 processor
7625	lt_prog_compiler_static='-Bstatic'
7626      fi
7627      lt_prog_compiler_pic='-fPIC'
7628      ;;
7629
7630    amigaos*)
7631      case $host_cpu in
7632      powerpc)
7633            # see comment about AmigaOS4 .so support
7634            lt_prog_compiler_pic='-fPIC'
7635        ;;
7636      m68k)
7637            # FIXME: we need at least 68020 code to build shared libraries, but
7638            # adding the `-m68020' flag to GCC prevents building anything better,
7639            # like `-m68040'.
7640            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7641        ;;
7642      esac
7643      ;;
7644
7645    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7646      # PIC is the default for these OSes.
7647      ;;
7648
7649    mingw* | cygwin* | pw32* | os2* | cegcc*)
7650      # This hack is so that the source file can tell whether it is being
7651      # built for inclusion in a dll (and should export symbols for example).
7652      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7653      # (--disable-auto-import) libraries
7654      lt_prog_compiler_pic='-DDLL_EXPORT'
7655      ;;
7656
7657    darwin* | rhapsody*)
7658      # PIC is the default on this platform
7659      # Common symbols not allowed in MH_DYLIB files
7660      lt_prog_compiler_pic='-fno-common'
7661      ;;
7662
7663    haiku*)
7664      # PIC is the default for Haiku.
7665      # The "-static" flag exists, but is broken.
7666      lt_prog_compiler_static=
7667      ;;
7668
7669    hpux*)
7670      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7671      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7672      # sets the default TLS model and affects inlining.
7673      case $host_cpu in
7674      hppa*64*)
7675	# +Z the default
7676	;;
7677      *)
7678	lt_prog_compiler_pic='-fPIC'
7679	;;
7680      esac
7681      ;;
7682
7683    interix[3-9]*)
7684      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7685      # Instead, we relocate shared libraries at runtime.
7686      ;;
7687
7688    msdosdjgpp*)
7689      # Just because we use GCC doesn't mean we suddenly get shared libraries
7690      # on systems that don't support them.
7691      lt_prog_compiler_can_build_shared=no
7692      enable_shared=no
7693      ;;
7694
7695    *nto* | *qnx*)
7696      # QNX uses GNU C++, but need to define -shared option too, otherwise
7697      # it will coredump.
7698      lt_prog_compiler_pic='-fPIC -shared'
7699      ;;
7700
7701    sysv4*MP*)
7702      if test -d /usr/nec; then
7703	lt_prog_compiler_pic=-Kconform_pic
7704      fi
7705      ;;
7706
7707    *)
7708      lt_prog_compiler_pic='-fPIC'
7709      ;;
7710    esac
7711
7712    case $cc_basename in
7713    nvcc*) # Cuda Compiler Driver 2.2
7714      lt_prog_compiler_wl='-Xlinker '
7715      lt_prog_compiler_pic='-Xcompiler -fPIC'
7716      ;;
7717    esac
7718  else
7719    # PORTME Check for flag to pass linker flags through the system compiler.
7720    case $host_os in
7721    aix*)
7722      lt_prog_compiler_wl='-Wl,'
7723      if test "$host_cpu" = ia64; then
7724	# AIX 5 now supports IA64 processor
7725	lt_prog_compiler_static='-Bstatic'
7726      else
7727	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7728      fi
7729      ;;
7730
7731    mingw* | cygwin* | pw32* | os2* | cegcc*)
7732      # This hack is so that the source file can tell whether it is being
7733      # built for inclusion in a dll (and should export symbols for example).
7734      lt_prog_compiler_pic='-DDLL_EXPORT'
7735      ;;
7736
7737    hpux9* | hpux10* | hpux11*)
7738      lt_prog_compiler_wl='-Wl,'
7739      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7740      # not for PA HP-UX.
7741      case $host_cpu in
7742      hppa*64*|ia64*)
7743	# +Z the default
7744	;;
7745      *)
7746	lt_prog_compiler_pic='+Z'
7747	;;
7748      esac
7749      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7750      lt_prog_compiler_static='${wl}-a ${wl}archive'
7751      ;;
7752
7753    irix5* | irix6* | nonstopux*)
7754      lt_prog_compiler_wl='-Wl,'
7755      # PIC (with -KPIC) is the default.
7756      lt_prog_compiler_static='-non_shared'
7757      ;;
7758
7759    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7760      case $cc_basename in
7761      # old Intel for x86_64 which still supported -KPIC.
7762      ecc*)
7763	lt_prog_compiler_wl='-Wl,'
7764	lt_prog_compiler_pic='-KPIC'
7765	lt_prog_compiler_static='-static'
7766        ;;
7767      # icc used to be incompatible with GCC.
7768      # ICC 10 doesn't accept -KPIC any more.
7769      icc* | ifort*)
7770	lt_prog_compiler_wl='-Wl,'
7771	lt_prog_compiler_pic='-fPIC'
7772	lt_prog_compiler_static='-static'
7773        ;;
7774      # Lahey Fortran 8.1.
7775      lf95*)
7776	lt_prog_compiler_wl='-Wl,'
7777	lt_prog_compiler_pic='--shared'
7778	lt_prog_compiler_static='--static'
7779	;;
7780      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7781        # Portland Group compilers (*not* the Pentium gcc compiler,
7782	# which looks to be a dead project)
7783	lt_prog_compiler_wl='-Wl,'
7784	lt_prog_compiler_pic='-fpic'
7785	lt_prog_compiler_static='-Bstatic'
7786        ;;
7787      ccc*)
7788        lt_prog_compiler_wl='-Wl,'
7789        # All Alpha code is PIC.
7790        lt_prog_compiler_static='-non_shared'
7791        ;;
7792      xl* | bgxl* | bgf* | mpixl*)
7793	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7794	lt_prog_compiler_wl='-Wl,'
7795	lt_prog_compiler_pic='-qpic'
7796	lt_prog_compiler_static='-qstaticlink'
7797	;;
7798      *)
7799	case `$CC -V 2>&1 | sed 5q` in
7800	*Sun\ F* | *Sun*Fortran*)
7801	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7802	  lt_prog_compiler_pic='-KPIC'
7803	  lt_prog_compiler_static='-Bstatic'
7804	  lt_prog_compiler_wl=''
7805	  ;;
7806	*Sun\ C*)
7807	  # Sun C 5.9
7808	  lt_prog_compiler_pic='-KPIC'
7809	  lt_prog_compiler_static='-Bstatic'
7810	  lt_prog_compiler_wl='-Wl,'
7811	  ;;
7812	esac
7813	;;
7814      esac
7815      ;;
7816
7817    newsos6)
7818      lt_prog_compiler_pic='-KPIC'
7819      lt_prog_compiler_static='-Bstatic'
7820      ;;
7821
7822    *nto* | *qnx*)
7823      # QNX uses GNU C++, but need to define -shared option too, otherwise
7824      # it will coredump.
7825      lt_prog_compiler_pic='-fPIC -shared'
7826      ;;
7827
7828    osf3* | osf4* | osf5*)
7829      lt_prog_compiler_wl='-Wl,'
7830      # All OSF/1 code is PIC.
7831      lt_prog_compiler_static='-non_shared'
7832      ;;
7833
7834    rdos*)
7835      lt_prog_compiler_static='-non_shared'
7836      ;;
7837
7838    solaris*)
7839      lt_prog_compiler_pic='-KPIC'
7840      lt_prog_compiler_static='-Bstatic'
7841      case $cc_basename in
7842      f77* | f90* | f95*)
7843	lt_prog_compiler_wl='-Qoption ld ';;
7844      *)
7845	lt_prog_compiler_wl='-Wl,';;
7846      esac
7847      ;;
7848
7849    sunos4*)
7850      lt_prog_compiler_wl='-Qoption ld '
7851      lt_prog_compiler_pic='-PIC'
7852      lt_prog_compiler_static='-Bstatic'
7853      ;;
7854
7855    sysv4 | sysv4.2uw2* | sysv4.3*)
7856      lt_prog_compiler_wl='-Wl,'
7857      lt_prog_compiler_pic='-KPIC'
7858      lt_prog_compiler_static='-Bstatic'
7859      ;;
7860
7861    sysv4*MP*)
7862      if test -d /usr/nec ;then
7863	lt_prog_compiler_pic='-Kconform_pic'
7864	lt_prog_compiler_static='-Bstatic'
7865      fi
7866      ;;
7867
7868    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7869      lt_prog_compiler_wl='-Wl,'
7870      lt_prog_compiler_pic='-KPIC'
7871      lt_prog_compiler_static='-Bstatic'
7872      ;;
7873
7874    unicos*)
7875      lt_prog_compiler_wl='-Wl,'
7876      lt_prog_compiler_can_build_shared=no
7877      ;;
7878
7879    uts4*)
7880      lt_prog_compiler_pic='-pic'
7881      lt_prog_compiler_static='-Bstatic'
7882      ;;
7883
7884    *)
7885      lt_prog_compiler_can_build_shared=no
7886      ;;
7887    esac
7888  fi
7889
7890case $host_os in
7891  # For platforms which do not support PIC, -DPIC is meaningless:
7892  *djgpp*)
7893    lt_prog_compiler_pic=
7894    ;;
7895  *)
7896    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7897    ;;
7898esac
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7900$as_echo "$lt_prog_compiler_pic" >&6; }
7901
7902
7903
7904
7905
7906
7907#
7908# Check to make sure the PIC flag actually works.
7909#
7910if test -n "$lt_prog_compiler_pic"; then
7911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7912$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7913if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  lt_cv_prog_compiler_pic_works=no
7917   ac_outfile=conftest.$ac_objext
7918   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7919   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7920   # Insert the option either (1) after the last *FLAGS variable, or
7921   # (2) before a word containing "conftest.", or (3) at the end.
7922   # Note that $ac_compile itself does not contain backslashes and begins
7923   # with a dollar sign (not a hyphen), so the echo should work correctly.
7924   # The option is referenced via a variable to avoid confusing sed.
7925   lt_compile=`echo "$ac_compile" | $SED \
7926   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7927   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7928   -e 's:$: $lt_compiler_flag:'`
7929   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7930   (eval "$lt_compile" 2>conftest.err)
7931   ac_status=$?
7932   cat conftest.err >&5
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   if (exit $ac_status) && test -s "$ac_outfile"; then
7935     # The compiler can only warn and ignore the option if not recognized
7936     # So say no if there are warnings other than the usual output.
7937     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7938     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7939     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7940       lt_cv_prog_compiler_pic_works=yes
7941     fi
7942   fi
7943   $RM conftest*
7944
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7947$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7948
7949if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7950    case $lt_prog_compiler_pic in
7951     "" | " "*) ;;
7952     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7953     esac
7954else
7955    lt_prog_compiler_pic=
7956     lt_prog_compiler_can_build_shared=no
7957fi
7958
7959fi
7960
7961
7962
7963
7964
7965
7966#
7967# Check to make sure the static flag actually works.
7968#
7969wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7971$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7972if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7973  $as_echo_n "(cached) " >&6
7974else
7975  lt_cv_prog_compiler_static_works=no
7976   save_LDFLAGS="$LDFLAGS"
7977   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7978   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7979   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7980     # The linker can only warn and ignore the option if not recognized
7981     # So say no if there are warnings
7982     if test -s conftest.err; then
7983       # Append any errors to the config.log.
7984       cat conftest.err 1>&5
7985       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7986       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7987       if diff conftest.exp conftest.er2 >/dev/null; then
7988         lt_cv_prog_compiler_static_works=yes
7989       fi
7990     else
7991       lt_cv_prog_compiler_static_works=yes
7992     fi
7993   fi
7994   $RM -r conftest*
7995   LDFLAGS="$save_LDFLAGS"
7996
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7999$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8000
8001if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8002    :
8003else
8004    lt_prog_compiler_static=
8005fi
8006
8007
8008
8009
8010
8011
8012
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8014$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8015if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018  lt_cv_prog_compiler_c_o=no
8019   $RM -r conftest 2>/dev/null
8020   mkdir conftest
8021   cd conftest
8022   mkdir out
8023   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8024
8025   lt_compiler_flag="-o out/conftest2.$ac_objext"
8026   # Insert the option either (1) after the last *FLAGS variable, or
8027   # (2) before a word containing "conftest.", or (3) at the end.
8028   # Note that $ac_compile itself does not contain backslashes and begins
8029   # with a dollar sign (not a hyphen), so the echo should work correctly.
8030   lt_compile=`echo "$ac_compile" | $SED \
8031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8033   -e 's:$: $lt_compiler_flag:'`
8034   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8035   (eval "$lt_compile" 2>out/conftest.err)
8036   ac_status=$?
8037   cat out/conftest.err >&5
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8040   then
8041     # The compiler can only warn and ignore the option if not recognized
8042     # So say no if there are warnings
8043     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8044     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8045     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8046       lt_cv_prog_compiler_c_o=yes
8047     fi
8048   fi
8049   chmod u+w . 2>&5
8050   $RM conftest*
8051   # SGI C++ compiler will create directory out/ii_files/ for
8052   # template instantiation
8053   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8054   $RM out/* && rmdir out
8055   cd ..
8056   $RM -r conftest
8057   $RM conftest*
8058
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8061$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8062
8063
8064
8065
8066
8067
8068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8069$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8070if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  lt_cv_prog_compiler_c_o=no
8074   $RM -r conftest 2>/dev/null
8075   mkdir conftest
8076   cd conftest
8077   mkdir out
8078   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8079
8080   lt_compiler_flag="-o out/conftest2.$ac_objext"
8081   # Insert the option either (1) after the last *FLAGS variable, or
8082   # (2) before a word containing "conftest.", or (3) at the end.
8083   # Note that $ac_compile itself does not contain backslashes and begins
8084   # with a dollar sign (not a hyphen), so the echo should work correctly.
8085   lt_compile=`echo "$ac_compile" | $SED \
8086   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8088   -e 's:$: $lt_compiler_flag:'`
8089   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8090   (eval "$lt_compile" 2>out/conftest.err)
8091   ac_status=$?
8092   cat out/conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8095   then
8096     # The compiler can only warn and ignore the option if not recognized
8097     # So say no if there are warnings
8098     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8099     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8100     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8101       lt_cv_prog_compiler_c_o=yes
8102     fi
8103   fi
8104   chmod u+w . 2>&5
8105   $RM conftest*
8106   # SGI C++ compiler will create directory out/ii_files/ for
8107   # template instantiation
8108   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8109   $RM out/* && rmdir out
8110   cd ..
8111   $RM -r conftest
8112   $RM conftest*
8113
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8116$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8117
8118
8119
8120
8121hard_links="nottested"
8122if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8123  # do not overwrite the value of need_locks provided by the user
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8125$as_echo_n "checking if we can lock with hard links... " >&6; }
8126  hard_links=yes
8127  $RM conftest*
8128  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8129  touch conftest.a
8130  ln conftest.a conftest.b 2>&5 || hard_links=no
8131  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8133$as_echo "$hard_links" >&6; }
8134  if test "$hard_links" = no; then
8135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8136$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8137    need_locks=warn
8138  fi
8139else
8140  need_locks=no
8141fi
8142
8143
8144
8145
8146
8147
8148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8149$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8150
8151  runpath_var=
8152  allow_undefined_flag=
8153  always_export_symbols=no
8154  archive_cmds=
8155  archive_expsym_cmds=
8156  compiler_needs_object=no
8157  enable_shared_with_static_runtimes=no
8158  export_dynamic_flag_spec=
8159  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8160  hardcode_automatic=no
8161  hardcode_direct=no
8162  hardcode_direct_absolute=no
8163  hardcode_libdir_flag_spec=
8164  hardcode_libdir_flag_spec_ld=
8165  hardcode_libdir_separator=
8166  hardcode_minus_L=no
8167  hardcode_shlibpath_var=unsupported
8168  inherit_rpath=no
8169  link_all_deplibs=unknown
8170  module_cmds=
8171  module_expsym_cmds=
8172  old_archive_from_new_cmds=
8173  old_archive_from_expsyms_cmds=
8174  thread_safe_flag_spec=
8175  whole_archive_flag_spec=
8176  # include_expsyms should be a list of space-separated symbols to be *always*
8177  # included in the symbol list
8178  include_expsyms=
8179  # exclude_expsyms can be an extended regexp of symbols to exclude
8180  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8181  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8182  # as well as any symbol that contains `d'.
8183  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8184  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8185  # platforms (ab)use it in PIC code, but their linkers get confused if
8186  # the symbol is explicitly referenced.  Since portable code cannot
8187  # rely on this symbol name, it's probably fine to never include it in
8188  # preloaded symbol tables.
8189  # Exclude shared library initialization/finalization symbols.
8190  extract_expsyms_cmds=
8191
8192  case $host_os in
8193  cygwin* | mingw* | pw32* | cegcc*)
8194    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8195    # When not using gcc, we currently assume that we are using
8196    # Microsoft Visual C++.
8197    if test "$GCC" != yes; then
8198      with_gnu_ld=no
8199    fi
8200    ;;
8201  interix*)
8202    # we just hope/assume this is gcc and not c89 (= MSVC++)
8203    with_gnu_ld=yes
8204    ;;
8205  openbsd*)
8206    with_gnu_ld=no
8207    ;;
8208  esac
8209
8210  ld_shlibs=yes
8211
8212  # On some targets, GNU ld is compatible enough with the native linker
8213  # that we're better off using the native interface for both.
8214  lt_use_gnu_ld_interface=no
8215  if test "$with_gnu_ld" = yes; then
8216    case $host_os in
8217      aix*)
8218	# The AIX port of GNU ld has always aspired to compatibility
8219	# with the native linker.  However, as the warning in the GNU ld
8220	# block says, versions before 2.19.5* couldn't really create working
8221	# shared libraries, regardless of the interface used.
8222	case `$LD -v 2>&1` in
8223	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8224	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8225	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8226	  *)
8227	    lt_use_gnu_ld_interface=yes
8228	    ;;
8229	esac
8230	;;
8231      *)
8232	lt_use_gnu_ld_interface=yes
8233	;;
8234    esac
8235  fi
8236
8237  if test "$lt_use_gnu_ld_interface" = yes; then
8238    # If archive_cmds runs LD, not CC, wlarc should be empty
8239    wlarc='${wl}'
8240
8241    # Set some defaults for GNU ld with shared library support. These
8242    # are reset later if shared libraries are not supported. Putting them
8243    # here allows them to be overridden if necessary.
8244    runpath_var=LD_RUN_PATH
8245    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8246    export_dynamic_flag_spec='${wl}--export-dynamic'
8247    # ancient GNU ld didn't support --whole-archive et. al.
8248    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8249      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8250    else
8251      whole_archive_flag_spec=
8252    fi
8253    supports_anon_versioning=no
8254    case `$LD -v 2>&1` in
8255      *GNU\ gold*) supports_anon_versioning=yes ;;
8256      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8257      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8258      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8259      *\ 2.11.*) ;; # other 2.11 versions
8260      *) supports_anon_versioning=yes ;;
8261    esac
8262
8263    # See if GNU ld supports shared libraries.
8264    case $host_os in
8265    aix[3-9]*)
8266      # On AIX/PPC, the GNU linker is very broken
8267      if test "$host_cpu" != ia64; then
8268	ld_shlibs=no
8269	cat <<_LT_EOF 1>&2
8270
8271*** Warning: the GNU linker, at least up to release 2.19, is reported
8272*** to be unable to reliably create shared libraries on AIX.
8273*** Therefore, libtool is disabling shared libraries support.  If you
8274*** really care for shared libraries, you may want to install binutils
8275*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8276*** You will then need to restart the configuration process.
8277
8278_LT_EOF
8279      fi
8280      ;;
8281
8282    amigaos*)
8283      case $host_cpu in
8284      powerpc)
8285            # see comment about AmigaOS4 .so support
8286            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287            archive_expsym_cmds=''
8288        ;;
8289      m68k)
8290            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)'
8291            hardcode_libdir_flag_spec='-L$libdir'
8292            hardcode_minus_L=yes
8293        ;;
8294      esac
8295      ;;
8296
8297    beos*)
8298      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8299	allow_undefined_flag=unsupported
8300	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8301	# support --undefined.  This deserves some investigation.  FIXME
8302	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303      else
8304	ld_shlibs=no
8305      fi
8306      ;;
8307
8308    cygwin* | mingw* | pw32* | cegcc*)
8309      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8310      # as there is no search path for DLLs.
8311      hardcode_libdir_flag_spec='-L$libdir'
8312      export_dynamic_flag_spec='${wl}--export-all-symbols'
8313      allow_undefined_flag=unsupported
8314      always_export_symbols=no
8315      enable_shared_with_static_runtimes=yes
8316      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8317
8318      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8319        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8320	# If the export-symbols file already is a .def file (1st line
8321	# is EXPORTS), use it as is; otherwise, prepend...
8322	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8323	  cp $export_symbols $output_objdir/$soname.def;
8324	else
8325	  echo EXPORTS > $output_objdir/$soname.def;
8326	  cat $export_symbols >> $output_objdir/$soname.def;
8327	fi~
8328	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8329      else
8330	ld_shlibs=no
8331      fi
8332      ;;
8333
8334    haiku*)
8335      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336      link_all_deplibs=yes
8337      ;;
8338
8339    interix[3-9]*)
8340      hardcode_direct=no
8341      hardcode_shlibpath_var=no
8342      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8343      export_dynamic_flag_spec='${wl}-E'
8344      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8345      # Instead, shared libraries are loaded at an image base (0x10000000 by
8346      # default) and relocated if they conflict, which is a slow very memory
8347      # consuming and fragmenting process.  To avoid this, we pick a random,
8348      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8349      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8350      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8351      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'
8352      ;;
8353
8354    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8355      tmp_diet=no
8356      if test "$host_os" = linux-dietlibc; then
8357	case $cc_basename in
8358	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8359	esac
8360      fi
8361      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8362	 && test "$tmp_diet" = no
8363      then
8364	tmp_addflag=' $pic_flag'
8365	tmp_sharedflag='-shared'
8366	case $cc_basename,$host_cpu in
8367        pgcc*)				# Portland Group C compiler
8368	  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'
8369	  tmp_addflag=' $pic_flag'
8370	  ;;
8371	pgf77* | pgf90* | pgf95* | pgfortran*)
8372					# Portland Group f77 and f90 compilers
8373	  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'
8374	  tmp_addflag=' $pic_flag -Mnomain' ;;
8375	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8376	  tmp_addflag=' -i_dynamic' ;;
8377	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8378	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8379	ifc* | ifort*)			# Intel Fortran compiler
8380	  tmp_addflag=' -nofor_main' ;;
8381	lf95*)				# Lahey Fortran 8.1
8382	  whole_archive_flag_spec=
8383	  tmp_sharedflag='--shared' ;;
8384	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8385	  tmp_sharedflag='-qmkshrobj'
8386	  tmp_addflag= ;;
8387	nvcc*)	# Cuda Compiler Driver 2.2
8388	  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'
8389	  compiler_needs_object=yes
8390	  ;;
8391	esac
8392	case `$CC -V 2>&1 | sed 5q` in
8393	*Sun\ C*)			# Sun C 5.9
8394	  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'
8395	  compiler_needs_object=yes
8396	  tmp_sharedflag='-G' ;;
8397	*Sun\ F*)			# Sun Fortran 8.3
8398	  tmp_sharedflag='-G' ;;
8399	esac
8400	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401
8402        if test "x$supports_anon_versioning" = xyes; then
8403          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8404	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8405	    echo "local: *; };" >> $output_objdir/$libname.ver~
8406	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8407        fi
8408
8409	case $cc_basename in
8410	xlf* | bgf* | bgxlf* | mpixlf*)
8411	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8412	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8413	  hardcode_libdir_flag_spec=
8414	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8415	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8416	  if test "x$supports_anon_versioning" = xyes; then
8417	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8418	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8419	      echo "local: *; };" >> $output_objdir/$libname.ver~
8420	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8421	  fi
8422	  ;;
8423	esac
8424      else
8425        ld_shlibs=no
8426      fi
8427      ;;
8428
8429    netbsd*)
8430      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8431	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8432	wlarc=
8433      else
8434	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8436      fi
8437      ;;
8438
8439    solaris*)
8440      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8441	ld_shlibs=no
8442	cat <<_LT_EOF 1>&2
8443
8444*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8445*** create shared libraries on Solaris systems.  Therefore, libtool
8446*** is disabling shared libraries support.  We urge you to upgrade GNU
8447*** binutils to release 2.9.1 or newer.  Another option is to modify
8448*** your PATH or compiler configuration so that the native linker is
8449*** used, and then restart.
8450
8451_LT_EOF
8452      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8453	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8455      else
8456	ld_shlibs=no
8457      fi
8458      ;;
8459
8460    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8461      case `$LD -v 2>&1` in
8462        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8463	ld_shlibs=no
8464	cat <<_LT_EOF 1>&2
8465
8466*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8467*** reliably create shared libraries on SCO systems.  Therefore, libtool
8468*** is disabling shared libraries support.  We urge you to upgrade GNU
8469*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8470*** your PATH or compiler configuration so that the native linker is
8471*** used, and then restart.
8472
8473_LT_EOF
8474	;;
8475	*)
8476	  # For security reasons, it is highly recommended that you always
8477	  # use absolute paths for naming shared libraries, and exclude the
8478	  # DT_RUNPATH tag from executables and libraries.  But doing so
8479	  # requires that you compile everything twice, which is a pain.
8480	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8481	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484	  else
8485	    ld_shlibs=no
8486	  fi
8487	;;
8488      esac
8489      ;;
8490
8491    sunos4*)
8492      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8493      wlarc=
8494      hardcode_direct=yes
8495      hardcode_shlibpath_var=no
8496      ;;
8497
8498    *)
8499      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8500	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8502      else
8503	ld_shlibs=no
8504      fi
8505      ;;
8506    esac
8507
8508    if test "$ld_shlibs" = no; then
8509      runpath_var=
8510      hardcode_libdir_flag_spec=
8511      export_dynamic_flag_spec=
8512      whole_archive_flag_spec=
8513    fi
8514  else
8515    # PORTME fill in a description of your system's linker (not GNU ld)
8516    case $host_os in
8517    aix3*)
8518      allow_undefined_flag=unsupported
8519      always_export_symbols=yes
8520      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'
8521      # Note: this linker hardcodes the directories in LIBPATH if there
8522      # are no directories specified by -L.
8523      hardcode_minus_L=yes
8524      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8525	# Neither direct hardcoding nor static linking is supported with a
8526	# broken collect2.
8527	hardcode_direct=unsupported
8528      fi
8529      ;;
8530
8531    aix[4-9]*)
8532      if test "$host_cpu" = ia64; then
8533	# On IA64, the linker does run time linking by default, so we don't
8534	# have to do anything special.
8535	aix_use_runtimelinking=no
8536	exp_sym_flag='-Bexport'
8537	no_entry_flag=""
8538      else
8539	# If we're using GNU nm, then we don't want the "-C" option.
8540	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8541	# Also, AIX nm treats weak defined symbols like other global
8542	# defined symbols, whereas GNU nm marks them as "W".
8543	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8544	  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'
8545	else
8546	  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'
8547	fi
8548	aix_use_runtimelinking=no
8549
8550	# Test if we are trying to use run time linking or normal
8551	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8552	# need to do runtime linking.
8553	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8554	  for ld_flag in $LDFLAGS; do
8555	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8556	    aix_use_runtimelinking=yes
8557	    break
8558	  fi
8559	  done
8560	  ;;
8561	esac
8562
8563	exp_sym_flag='-bexport'
8564	no_entry_flag='-bnoentry'
8565      fi
8566
8567      # When large executables or shared objects are built, AIX ld can
8568      # have problems creating the table of contents.  If linking a library
8569      # or program results in "error TOC overflow" add -mminimal-toc to
8570      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8571      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8572
8573      archive_cmds=''
8574      hardcode_direct=yes
8575      hardcode_direct_absolute=yes
8576      hardcode_libdir_separator=':'
8577      link_all_deplibs=yes
8578      file_list_spec='${wl}-f,'
8579
8580      if test "$GCC" = yes; then
8581	case $host_os in aix4.[012]|aix4.[012].*)
8582	# We only want to do this on AIX 4.2 and lower, the check
8583	# below for broken collect2 doesn't work under 4.3+
8584	  collect2name=`${CC} -print-prog-name=collect2`
8585	  if test -f "$collect2name" &&
8586	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8587	  then
8588	  # We have reworked collect2
8589	  :
8590	  else
8591	  # We have old collect2
8592	  hardcode_direct=unsupported
8593	  # It fails to find uninstalled libraries when the uninstalled
8594	  # path is not listed in the libpath.  Setting hardcode_minus_L
8595	  # to unsupported forces relinking
8596	  hardcode_minus_L=yes
8597	  hardcode_libdir_flag_spec='-L$libdir'
8598	  hardcode_libdir_separator=
8599	  fi
8600	  ;;
8601	esac
8602	shared_flag='-shared'
8603	if test "$aix_use_runtimelinking" = yes; then
8604	  shared_flag="$shared_flag "'${wl}-G'
8605	fi
8606      else
8607	# not using gcc
8608	if test "$host_cpu" = ia64; then
8609	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8610	# chokes on -Wl,-G. The following line is correct:
8611	  shared_flag='-G'
8612	else
8613	  if test "$aix_use_runtimelinking" = yes; then
8614	    shared_flag='${wl}-G'
8615	  else
8616	    shared_flag='${wl}-bM:SRE'
8617	  fi
8618	fi
8619      fi
8620
8621      export_dynamic_flag_spec='${wl}-bexpall'
8622      # It seems that -bexpall does not export symbols beginning with
8623      # underscore (_), so it is better to generate a list of symbols to export.
8624      always_export_symbols=yes
8625      if test "$aix_use_runtimelinking" = yes; then
8626	# Warning - without using the other runtime loading flags (-brtl),
8627	# -berok will link without error, but may produce a broken library.
8628	allow_undefined_flag='-berok'
8629        # Determine the default libpath from the value encoded in an
8630        # empty executable.
8631        if test x$gcc_no_link = xyes; then
8632  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8633fi
8634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635/* end confdefs.h.  */
8636
8637int
8638main ()
8639{
8640
8641  ;
8642  return 0;
8643}
8644_ACEOF
8645if ac_fn_c_try_link "$LINENO"; then :
8646
8647lt_aix_libpath_sed='
8648    /Import File Strings/,/^$/ {
8649	/^0/ {
8650	    s/^0  *\(.*\)$/\1/
8651	    p
8652	}
8653    }'
8654aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8655# Check for a 64-bit object if we didn't find anything.
8656if test -z "$aix_libpath"; then
8657  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8658fi
8659fi
8660rm -f core conftest.err conftest.$ac_objext \
8661    conftest$ac_exeext conftest.$ac_ext
8662if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8663
8664        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8665        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"
8666      else
8667	if test "$host_cpu" = ia64; then
8668	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8669	  allow_undefined_flag="-z nodefs"
8670	  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"
8671	else
8672	 # Determine the default libpath from the value encoded in an
8673	 # empty executable.
8674	 if test x$gcc_no_link = xyes; then
8675  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8676fi
8677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679
8680int
8681main ()
8682{
8683
8684  ;
8685  return 0;
8686}
8687_ACEOF
8688if ac_fn_c_try_link "$LINENO"; then :
8689
8690lt_aix_libpath_sed='
8691    /Import File Strings/,/^$/ {
8692	/^0/ {
8693	    s/^0  *\(.*\)$/\1/
8694	    p
8695	}
8696    }'
8697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8698# Check for a 64-bit object if we didn't find anything.
8699if test -z "$aix_libpath"; then
8700  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8701fi
8702fi
8703rm -f core conftest.err conftest.$ac_objext \
8704    conftest$ac_exeext conftest.$ac_ext
8705if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8706
8707	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8708	  # Warning - without using the other run time loading flags,
8709	  # -berok will link without error, but may produce a broken library.
8710	  no_undefined_flag=' ${wl}-bernotok'
8711	  allow_undefined_flag=' ${wl}-berok'
8712	  if test "$with_gnu_ld" = yes; then
8713	    # We only use this code for GNU lds that support --whole-archive.
8714	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8715	  else
8716	    # Exported symbols can be pulled into shared objects from archives
8717	    whole_archive_flag_spec='$convenience'
8718	  fi
8719	  archive_cmds_need_lc=yes
8720	  # This is similar to how AIX traditionally builds its shared libraries.
8721	  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'
8722	fi
8723      fi
8724      ;;
8725
8726    amigaos*)
8727      case $host_cpu in
8728      powerpc)
8729            # see comment about AmigaOS4 .so support
8730            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731            archive_expsym_cmds=''
8732        ;;
8733      m68k)
8734            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)'
8735            hardcode_libdir_flag_spec='-L$libdir'
8736            hardcode_minus_L=yes
8737        ;;
8738      esac
8739      ;;
8740
8741    bsdi[45]*)
8742      export_dynamic_flag_spec=-rdynamic
8743      ;;
8744
8745    cygwin* | mingw* | pw32* | cegcc*)
8746      # When not using gcc, we currently assume that we are using
8747      # Microsoft Visual C++.
8748      # hardcode_libdir_flag_spec is actually meaningless, as there is
8749      # no search path for DLLs.
8750      hardcode_libdir_flag_spec=' '
8751      allow_undefined_flag=unsupported
8752      # Tell ltmain to make .lib files, not .a files.
8753      libext=lib
8754      # Tell ltmain to make .dll files, not .so files.
8755      shrext_cmds=".dll"
8756      # FIXME: Setting linknames here is a bad hack.
8757      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8758      # The linker will automatically build a .lib file if we build a DLL.
8759      old_archive_from_new_cmds='true'
8760      # FIXME: Should let the user specify the lib program.
8761      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8762      fix_srcfile_path='`cygpath -w "$srcfile"`'
8763      enable_shared_with_static_runtimes=yes
8764      ;;
8765
8766    darwin* | rhapsody*)
8767
8768
8769  archive_cmds_need_lc=no
8770  hardcode_direct=no
8771  hardcode_automatic=yes
8772  hardcode_shlibpath_var=unsupported
8773  if test "$lt_cv_ld_force_load" = "yes"; then
8774    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\"`'
8775  else
8776    whole_archive_flag_spec=''
8777  fi
8778  link_all_deplibs=yes
8779  allow_undefined_flag="$_lt_dar_allow_undefined"
8780  case $cc_basename in
8781     ifort*) _lt_dar_can_shared=yes ;;
8782     *) _lt_dar_can_shared=$GCC ;;
8783  esac
8784  if test "$_lt_dar_can_shared" = "yes"; then
8785    output_verbose_link_cmd=func_echo_all
8786    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8787    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8788    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}"
8789    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}"
8790
8791  else
8792  ld_shlibs=no
8793  fi
8794
8795      ;;
8796
8797    dgux*)
8798      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799      hardcode_libdir_flag_spec='-L$libdir'
8800      hardcode_shlibpath_var=no
8801      ;;
8802
8803    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8804    # support.  Future versions do this automatically, but an explicit c++rt0.o
8805    # does not break anything, and helps significantly (at the cost of a little
8806    # extra space).
8807    freebsd2.2*)
8808      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8809      hardcode_libdir_flag_spec='-R$libdir'
8810      hardcode_direct=yes
8811      hardcode_shlibpath_var=no
8812      ;;
8813
8814    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8815    freebsd2.*)
8816      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8817      hardcode_direct=yes
8818      hardcode_minus_L=yes
8819      hardcode_shlibpath_var=no
8820      ;;
8821
8822    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8823    freebsd* | dragonfly*)
8824      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8825      hardcode_libdir_flag_spec='-R$libdir'
8826      hardcode_direct=yes
8827      hardcode_shlibpath_var=no
8828      ;;
8829
8830    hpux9*)
8831      if test "$GCC" = yes; then
8832	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'
8833      else
8834	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'
8835      fi
8836      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8837      hardcode_libdir_separator=:
8838      hardcode_direct=yes
8839
8840      # hardcode_minus_L: Not really in the search PATH,
8841      # but as the default location of the library.
8842      hardcode_minus_L=yes
8843      export_dynamic_flag_spec='${wl}-E'
8844      ;;
8845
8846    hpux10*)
8847      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8848	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8849      else
8850	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8851      fi
8852      if test "$with_gnu_ld" = no; then
8853	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854	hardcode_libdir_flag_spec_ld='+b $libdir'
8855	hardcode_libdir_separator=:
8856	hardcode_direct=yes
8857	hardcode_direct_absolute=yes
8858	export_dynamic_flag_spec='${wl}-E'
8859	# hardcode_minus_L: Not really in the search PATH,
8860	# but as the default location of the library.
8861	hardcode_minus_L=yes
8862      fi
8863      ;;
8864
8865    hpux11*)
8866      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8867	case $host_cpu in
8868	hppa*64*)
8869	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8870	  ;;
8871	ia64*)
8872	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8873	  ;;
8874	*)
8875	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8876	  ;;
8877	esac
8878      else
8879	case $host_cpu in
8880	hppa*64*)
8881	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882	  ;;
8883	ia64*)
8884	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8885	  ;;
8886	*)
8887
8888	  # Older versions of the 11.00 compiler do not understand -b yet
8889	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8890	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8891$as_echo_n "checking if $CC understands -b... " >&6; }
8892if test "${lt_cv_prog_compiler__b+set}" = set; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  lt_cv_prog_compiler__b=no
8896   save_LDFLAGS="$LDFLAGS"
8897   LDFLAGS="$LDFLAGS -b"
8898   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8899   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8900     # The linker can only warn and ignore the option if not recognized
8901     # So say no if there are warnings
8902     if test -s conftest.err; then
8903       # Append any errors to the config.log.
8904       cat conftest.err 1>&5
8905       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8906       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8907       if diff conftest.exp conftest.er2 >/dev/null; then
8908         lt_cv_prog_compiler__b=yes
8909       fi
8910     else
8911       lt_cv_prog_compiler__b=yes
8912     fi
8913   fi
8914   $RM -r conftest*
8915   LDFLAGS="$save_LDFLAGS"
8916
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8919$as_echo "$lt_cv_prog_compiler__b" >&6; }
8920
8921if test x"$lt_cv_prog_compiler__b" = xyes; then
8922    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8923else
8924    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8925fi
8926
8927	  ;;
8928	esac
8929      fi
8930      if test "$with_gnu_ld" = no; then
8931	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8932	hardcode_libdir_separator=:
8933
8934	case $host_cpu in
8935	hppa*64*|ia64*)
8936	  hardcode_direct=no
8937	  hardcode_shlibpath_var=no
8938	  ;;
8939	*)
8940	  hardcode_direct=yes
8941	  hardcode_direct_absolute=yes
8942	  export_dynamic_flag_spec='${wl}-E'
8943
8944	  # hardcode_minus_L: Not really in the search PATH,
8945	  # but as the default location of the library.
8946	  hardcode_minus_L=yes
8947	  ;;
8948	esac
8949      fi
8950      ;;
8951
8952    irix5* | irix6* | nonstopux*)
8953      if test "$GCC" = yes; then
8954	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'
8955	# Try to use the -exported_symbol ld option, if it does not
8956	# work, assume that -exports_file does not work either and
8957	# implicitly export all symbols.
8958        save_LDFLAGS="$LDFLAGS"
8959        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8960        if test x$gcc_no_link = xyes; then
8961  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8962fi
8963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965int foo(void) {}
8966_ACEOF
8967if ac_fn_c_try_link "$LINENO"; then :
8968  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'
8969
8970fi
8971rm -f core conftest.err conftest.$ac_objext \
8972    conftest$ac_exeext conftest.$ac_ext
8973        LDFLAGS="$save_LDFLAGS"
8974      else
8975	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'
8976	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'
8977      fi
8978      archive_cmds_need_lc='no'
8979      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980      hardcode_libdir_separator=:
8981      inherit_rpath=yes
8982      link_all_deplibs=yes
8983      ;;
8984
8985    netbsd*)
8986      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8987	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8988      else
8989	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8990      fi
8991      hardcode_libdir_flag_spec='-R$libdir'
8992      hardcode_direct=yes
8993      hardcode_shlibpath_var=no
8994      ;;
8995
8996    newsos6)
8997      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998      hardcode_direct=yes
8999      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000      hardcode_libdir_separator=:
9001      hardcode_shlibpath_var=no
9002      ;;
9003
9004    *nto* | *qnx*)
9005      ;;
9006
9007    openbsd*)
9008      if test -f /usr/libexec/ld.so; then
9009	hardcode_direct=yes
9010	hardcode_shlibpath_var=no
9011	hardcode_direct_absolute=yes
9012	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9013	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9014	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9015	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9016	  export_dynamic_flag_spec='${wl}-E'
9017	else
9018	  case $host_os in
9019	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9020	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9021	     hardcode_libdir_flag_spec='-R$libdir'
9022	     ;;
9023	   *)
9024	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9025	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9026	     ;;
9027	  esac
9028	fi
9029      else
9030	ld_shlibs=no
9031      fi
9032      ;;
9033
9034    os2*)
9035      hardcode_libdir_flag_spec='-L$libdir'
9036      hardcode_minus_L=yes
9037      allow_undefined_flag=unsupported
9038      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'
9039      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9040      ;;
9041
9042    osf3*)
9043      if test "$GCC" = yes; then
9044	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9045	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'
9046      else
9047	allow_undefined_flag=' -expect_unresolved \*'
9048	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'
9049      fi
9050      archive_cmds_need_lc='no'
9051      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052      hardcode_libdir_separator=:
9053      ;;
9054
9055    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9056      if test "$GCC" = yes; then
9057	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9058	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'
9059	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9060      else
9061	allow_undefined_flag=' -expect_unresolved \*'
9062	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'
9063	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~
9064	$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'
9065
9066	# Both c and cxx compiler support -rpath directly
9067	hardcode_libdir_flag_spec='-rpath $libdir'
9068      fi
9069      archive_cmds_need_lc='no'
9070      hardcode_libdir_separator=:
9071      ;;
9072
9073    solaris*)
9074      no_undefined_flag=' -z defs'
9075      if test "$GCC" = yes; then
9076	wlarc='${wl}'
9077	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9079	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9080      else
9081	case `$CC -V 2>&1` in
9082	*"Compilers 5.0"*)
9083	  wlarc=''
9084	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9086	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9087	  ;;
9088	*)
9089	  wlarc='${wl}'
9090	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9091	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9092	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9093	  ;;
9094	esac
9095      fi
9096      hardcode_libdir_flag_spec='-R$libdir'
9097      hardcode_shlibpath_var=no
9098      case $host_os in
9099      solaris2.[0-5] | solaris2.[0-5].*) ;;
9100      *)
9101	# The compiler driver will combine and reorder linker options,
9102	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9103	# but is careful enough not to reorder.
9104	# Supported since Solaris 2.6 (maybe 2.5.1?)
9105	if test "$GCC" = yes; then
9106	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9107	else
9108	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9109	fi
9110	;;
9111      esac
9112      link_all_deplibs=yes
9113      ;;
9114
9115    sunos4*)
9116      if test "x$host_vendor" = xsequent; then
9117	# Use $CC to link under sequent, because it throws in some extra .o
9118	# files that make .init and .fini sections work.
9119	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9120      else
9121	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9122      fi
9123      hardcode_libdir_flag_spec='-L$libdir'
9124      hardcode_direct=yes
9125      hardcode_minus_L=yes
9126      hardcode_shlibpath_var=no
9127      ;;
9128
9129    sysv4)
9130      case $host_vendor in
9131	sni)
9132	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133	  hardcode_direct=yes # is this really true???
9134	;;
9135	siemens)
9136	  ## LD is ld it makes a PLAMLIB
9137	  ## CC just makes a GrossModule.
9138	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9139	  reload_cmds='$CC -r -o $output$reload_objs'
9140	  hardcode_direct=no
9141        ;;
9142	motorola)
9143	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9145	;;
9146      esac
9147      runpath_var='LD_RUN_PATH'
9148      hardcode_shlibpath_var=no
9149      ;;
9150
9151    sysv4.3*)
9152      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9153      hardcode_shlibpath_var=no
9154      export_dynamic_flag_spec='-Bexport'
9155      ;;
9156
9157    sysv4*MP*)
9158      if test -d /usr/nec; then
9159	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160	hardcode_shlibpath_var=no
9161	runpath_var=LD_RUN_PATH
9162	hardcode_runpath_var=yes
9163	ld_shlibs=yes
9164      fi
9165      ;;
9166
9167    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9168      no_undefined_flag='${wl}-z,text'
9169      archive_cmds_need_lc=no
9170      hardcode_shlibpath_var=no
9171      runpath_var='LD_RUN_PATH'
9172
9173      if test "$GCC" = yes; then
9174	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176      else
9177	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179      fi
9180      ;;
9181
9182    sysv5* | sco3.2v5* | sco5v6*)
9183      # Note: We can NOT use -z defs as we might desire, because we do not
9184      # link with -lc, and that would cause any symbols used from libc to
9185      # always be unresolved, which means just about no library would
9186      # ever link correctly.  If we're not using GNU ld we use -z text
9187      # though, which does catch some bad symbols but isn't as heavy-handed
9188      # as -z defs.
9189      no_undefined_flag='${wl}-z,text'
9190      allow_undefined_flag='${wl}-z,nodefs'
9191      archive_cmds_need_lc=no
9192      hardcode_shlibpath_var=no
9193      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9194      hardcode_libdir_separator=':'
9195      link_all_deplibs=yes
9196      export_dynamic_flag_spec='${wl}-Bexport'
9197      runpath_var='LD_RUN_PATH'
9198
9199      if test "$GCC" = yes; then
9200	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9201	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9202      else
9203	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9204	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9205      fi
9206      ;;
9207
9208    uts4*)
9209      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210      hardcode_libdir_flag_spec='-L$libdir'
9211      hardcode_shlibpath_var=no
9212      ;;
9213
9214    *)
9215      ld_shlibs=no
9216      ;;
9217    esac
9218
9219    if test x$host_vendor = xsni; then
9220      case $host in
9221      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9222	export_dynamic_flag_spec='${wl}-Blargedynsym'
9223	;;
9224      esac
9225    fi
9226  fi
9227
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9229$as_echo "$ld_shlibs" >&6; }
9230test "$ld_shlibs" = no && can_build_shared=no
9231
9232with_gnu_ld=$with_gnu_ld
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248#
9249# Do we need to explicitly link libc?
9250#
9251case "x$archive_cmds_need_lc" in
9252x|xyes)
9253  # Assume -lc should be added
9254  archive_cmds_need_lc=yes
9255
9256  if test "$enable_shared" = yes && test "$GCC" = yes; then
9257    case $archive_cmds in
9258    *'~'*)
9259      # FIXME: we may have to deal with multi-command sequences.
9260      ;;
9261    '$CC '*)
9262      # Test whether the compiler implicitly links with -lc since on some
9263      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9264      # to ld, don't add -lc before -lgcc.
9265      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9266$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9267if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9268  $as_echo_n "(cached) " >&6
9269else
9270  $RM conftest*
9271	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9272
9273	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9274  (eval $ac_compile) 2>&5
9275  ac_status=$?
9276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9277  test $ac_status = 0; } 2>conftest.err; then
9278	  soname=conftest
9279	  lib=conftest
9280	  libobjs=conftest.$ac_objext
9281	  deplibs=
9282	  wl=$lt_prog_compiler_wl
9283	  pic_flag=$lt_prog_compiler_pic
9284	  compiler_flags=-v
9285	  linker_flags=-v
9286	  verstring=
9287	  output_objdir=.
9288	  libname=conftest
9289	  lt_save_allow_undefined_flag=$allow_undefined_flag
9290	  allow_undefined_flag=
9291	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9292  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9293  ac_status=$?
9294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9295  test $ac_status = 0; }
9296	  then
9297	    lt_cv_archive_cmds_need_lc=no
9298	  else
9299	    lt_cv_archive_cmds_need_lc=yes
9300	  fi
9301	  allow_undefined_flag=$lt_save_allow_undefined_flag
9302	else
9303	  cat conftest.err 1>&5
9304	fi
9305	$RM conftest*
9306
9307fi
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9309$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9310      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9311      ;;
9312    esac
9313  fi
9314  ;;
9315esac
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
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9474$as_echo_n "checking dynamic linker characteristics... " >&6; }
9475
9476if test "$GCC" = yes; then
9477  case $host_os in
9478    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9479    *) lt_awk_arg="/^libraries:/" ;;
9480  esac
9481  case $host_os in
9482    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9483    *) lt_sed_strip_eq="s,=/,/,g" ;;
9484  esac
9485  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9486  case $lt_search_path_spec in
9487  *\;*)
9488    # if the path contains ";" then we assume it to be the separator
9489    # otherwise default to the standard path separator (i.e. ":") - it is
9490    # assumed that no part of a normal pathname contains ";" but that should
9491    # okay in the real world where ";" in dirpaths is itself problematic.
9492    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9493    ;;
9494  *)
9495    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9496    ;;
9497  esac
9498  # Ok, now we have the path, separated by spaces, we can step through it
9499  # and add multilib dir if necessary.
9500  lt_tmp_lt_search_path_spec=
9501  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9502  for lt_sys_path in $lt_search_path_spec; do
9503    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9504      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9505    else
9506      test -d "$lt_sys_path" && \
9507	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9508    fi
9509  done
9510  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9511BEGIN {RS=" "; FS="/|\n";} {
9512  lt_foo="";
9513  lt_count=0;
9514  for (lt_i = NF; lt_i > 0; lt_i--) {
9515    if ($lt_i != "" && $lt_i != ".") {
9516      if ($lt_i == "..") {
9517        lt_count++;
9518      } else {
9519        if (lt_count == 0) {
9520          lt_foo="/" $lt_i lt_foo;
9521        } else {
9522          lt_count--;
9523        }
9524      }
9525    }
9526  }
9527  if (lt_foo != "") { lt_freq[lt_foo]++; }
9528  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9529}'`
9530  # AWK program above erroneously prepends '/' to C:/dos/paths
9531  # for these hosts.
9532  case $host_os in
9533    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9534      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9535  esac
9536  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9537else
9538  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9539fi
9540library_names_spec=
9541libname_spec='lib$name'
9542soname_spec=
9543shrext_cmds=".so"
9544postinstall_cmds=
9545postuninstall_cmds=
9546finish_cmds=
9547finish_eval=
9548shlibpath_var=
9549shlibpath_overrides_runpath=unknown
9550version_type=none
9551dynamic_linker="$host_os ld.so"
9552sys_lib_dlsearch_path_spec="/lib /usr/lib"
9553need_lib_prefix=unknown
9554hardcode_into_libs=no
9555
9556# when you set need_version to no, make sure it does not cause -set_version
9557# flags to be left without arguments
9558need_version=unknown
9559
9560case $host_os in
9561aix3*)
9562  version_type=linux
9563  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9564  shlibpath_var=LIBPATH
9565
9566  # AIX 3 has no versioning support, so we append a major version to the name.
9567  soname_spec='${libname}${release}${shared_ext}$major'
9568  ;;
9569
9570aix[4-9]*)
9571  version_type=linux
9572  need_lib_prefix=no
9573  need_version=no
9574  hardcode_into_libs=yes
9575  if test "$host_cpu" = ia64; then
9576    # AIX 5 supports IA64
9577    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9578    shlibpath_var=LD_LIBRARY_PATH
9579  else
9580    # With GCC up to 2.95.x, collect2 would create an import file
9581    # for dependence libraries.  The import file would start with
9582    # the line `#! .'.  This would cause the generated library to
9583    # depend on `.', always an invalid library.  This was fixed in
9584    # development snapshots of GCC prior to 3.0.
9585    case $host_os in
9586      aix4 | aix4.[01] | aix4.[01].*)
9587      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9588	   echo ' yes '
9589	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9590	:
9591      else
9592	can_build_shared=no
9593      fi
9594      ;;
9595    esac
9596    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9597    # soname into executable. Probably we can add versioning support to
9598    # collect2, so additional links can be useful in future.
9599    if test "$aix_use_runtimelinking" = yes; then
9600      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9601      # instead of lib<name>.a to let people know that these are not
9602      # typical AIX shared libraries.
9603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604    else
9605      # We preserve .a as extension for shared libraries through AIX4.2
9606      # and later when we are not doing run time linking.
9607      library_names_spec='${libname}${release}.a $libname.a'
9608      soname_spec='${libname}${release}${shared_ext}$major'
9609    fi
9610    shlibpath_var=LIBPATH
9611  fi
9612  ;;
9613
9614amigaos*)
9615  case $host_cpu in
9616  powerpc)
9617    # Since July 2007 AmigaOS4 officially supports .so libraries.
9618    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620    ;;
9621  m68k)
9622    library_names_spec='$libname.ixlibrary $libname.a'
9623    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9624    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'
9625    ;;
9626  esac
9627  ;;
9628
9629beos*)
9630  library_names_spec='${libname}${shared_ext}'
9631  dynamic_linker="$host_os ld.so"
9632  shlibpath_var=LIBRARY_PATH
9633  ;;
9634
9635bsdi[45]*)
9636  version_type=linux
9637  need_version=no
9638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639  soname_spec='${libname}${release}${shared_ext}$major'
9640  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9641  shlibpath_var=LD_LIBRARY_PATH
9642  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9643  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9644  # the default ld.so.conf also contains /usr/contrib/lib and
9645  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9646  # libtool to hard-code these into programs
9647  ;;
9648
9649cygwin* | mingw* | pw32* | cegcc*)
9650  version_type=windows
9651  shrext_cmds=".dll"
9652  need_version=no
9653  need_lib_prefix=no
9654
9655  case $GCC,$host_os in
9656  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9657    library_names_spec='$libname.dll.a'
9658    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9659    postinstall_cmds='base_file=`basename \${file}`~
9660      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9661      dldir=$destdir/`dirname \$dlpath`~
9662      test -d \$dldir || mkdir -p \$dldir~
9663      $install_prog $dir/$dlname \$dldir/$dlname~
9664      chmod a+x \$dldir/$dlname~
9665      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9666        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9667      fi'
9668    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9669      dlpath=$dir/\$dldll~
9670       $RM \$dlpath'
9671    shlibpath_overrides_runpath=yes
9672
9673    case $host_os in
9674    cygwin*)
9675      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9676      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9677
9678      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9679      ;;
9680    mingw* | cegcc*)
9681      # MinGW DLLs use traditional 'lib' prefix
9682      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9683      ;;
9684    pw32*)
9685      # pw32 DLLs use 'pw' prefix rather than 'lib'
9686      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9687      ;;
9688    esac
9689    ;;
9690
9691  *)
9692    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9693    ;;
9694  esac
9695  dynamic_linker='Win32 ld.exe'
9696  # FIXME: first we should search . and the directory the executable is in
9697  shlibpath_var=PATH
9698  ;;
9699
9700darwin* | rhapsody*)
9701  dynamic_linker="$host_os dyld"
9702  version_type=darwin
9703  need_lib_prefix=no
9704  need_version=no
9705  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9706  soname_spec='${libname}${release}${major}$shared_ext'
9707  shlibpath_overrides_runpath=yes
9708  shlibpath_var=DYLD_LIBRARY_PATH
9709  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9710
9711  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9712  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9713  ;;
9714
9715dgux*)
9716  version_type=linux
9717  need_lib_prefix=no
9718  need_version=no
9719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9720  soname_spec='${libname}${release}${shared_ext}$major'
9721  shlibpath_var=LD_LIBRARY_PATH
9722  ;;
9723
9724freebsd* | dragonfly*)
9725  # DragonFly does not have aout.  When/if they implement a new
9726  # versioning mechanism, adjust this.
9727  if test -x /usr/bin/objformat; then
9728    objformat=`/usr/bin/objformat`
9729  else
9730    case $host_os in
9731    freebsd[23].*) objformat=aout ;;
9732    *) objformat=elf ;;
9733    esac
9734  fi
9735  version_type=freebsd-$objformat
9736  case $version_type in
9737    freebsd-elf*)
9738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9739      need_version=no
9740      need_lib_prefix=no
9741      ;;
9742    freebsd-*)
9743      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9744      need_version=yes
9745      ;;
9746  esac
9747  shlibpath_var=LD_LIBRARY_PATH
9748  case $host_os in
9749  freebsd2.*)
9750    shlibpath_overrides_runpath=yes
9751    ;;
9752  freebsd3.[01]* | freebsdelf3.[01]*)
9753    shlibpath_overrides_runpath=yes
9754    hardcode_into_libs=yes
9755    ;;
9756  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9757  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9758    shlibpath_overrides_runpath=no
9759    hardcode_into_libs=yes
9760    ;;
9761  *) # from 4.6 on, and DragonFly
9762    shlibpath_overrides_runpath=yes
9763    hardcode_into_libs=yes
9764    ;;
9765  esac
9766  ;;
9767
9768gnu*)
9769  version_type=linux
9770  need_lib_prefix=no
9771  need_version=no
9772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9773  soname_spec='${libname}${release}${shared_ext}$major'
9774  shlibpath_var=LD_LIBRARY_PATH
9775  hardcode_into_libs=yes
9776  ;;
9777
9778haiku*)
9779  version_type=linux
9780  need_lib_prefix=no
9781  need_version=no
9782  dynamic_linker="$host_os runtime_loader"
9783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9784  soname_spec='${libname}${release}${shared_ext}$major'
9785  shlibpath_var=LIBRARY_PATH
9786  shlibpath_overrides_runpath=yes
9787  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9788  hardcode_into_libs=yes
9789  ;;
9790
9791hpux9* | hpux10* | hpux11*)
9792  # Give a soname corresponding to the major version so that dld.sl refuses to
9793  # link against other versions.
9794  version_type=sunos
9795  need_lib_prefix=no
9796  need_version=no
9797  case $host_cpu in
9798  ia64*)
9799    shrext_cmds='.so'
9800    hardcode_into_libs=yes
9801    dynamic_linker="$host_os dld.so"
9802    shlibpath_var=LD_LIBRARY_PATH
9803    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9804    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805    soname_spec='${libname}${release}${shared_ext}$major'
9806    if test "X$HPUX_IA64_MODE" = X32; then
9807      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9808    else
9809      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9810    fi
9811    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9812    ;;
9813  hppa*64*)
9814    shrext_cmds='.sl'
9815    hardcode_into_libs=yes
9816    dynamic_linker="$host_os dld.sl"
9817    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9818    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9819    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820    soname_spec='${libname}${release}${shared_ext}$major'
9821    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9822    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9823    ;;
9824  *)
9825    shrext_cmds='.sl'
9826    dynamic_linker="$host_os dld.sl"
9827    shlibpath_var=SHLIB_PATH
9828    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9829    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830    soname_spec='${libname}${release}${shared_ext}$major'
9831    ;;
9832  esac
9833  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9834  postinstall_cmds='chmod 555 $lib'
9835  # or fails outright, so override atomically:
9836  install_override_mode=555
9837  ;;
9838
9839interix[3-9]*)
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  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  shlibpath_overrides_runpath=no
9848  hardcode_into_libs=yes
9849  ;;
9850
9851irix5* | irix6* | nonstopux*)
9852  case $host_os in
9853    nonstopux*) version_type=nonstopux ;;
9854    *)
9855	if test "$lt_cv_prog_gnu_ld" = yes; then
9856		version_type=linux
9857	else
9858		version_type=irix
9859	fi ;;
9860  esac
9861  need_lib_prefix=no
9862  need_version=no
9863  soname_spec='${libname}${release}${shared_ext}$major'
9864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9865  case $host_os in
9866  irix5* | nonstopux*)
9867    libsuff= shlibsuff=
9868    ;;
9869  *)
9870    case $LD in # libtool.m4 will add one of these switches to LD
9871    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9872      libsuff= shlibsuff= libmagic=32-bit;;
9873    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9874      libsuff=32 shlibsuff=N32 libmagic=N32;;
9875    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9876      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9877    *) libsuff= shlibsuff= libmagic=never-match;;
9878    esac
9879    ;;
9880  esac
9881  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9882  shlibpath_overrides_runpath=no
9883  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9884  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9885  hardcode_into_libs=yes
9886  ;;
9887
9888# No shared lib support for Linux oldld, aout, or coff.
9889linux*oldld* | linux*aout* | linux*coff*)
9890  dynamic_linker=no
9891  ;;
9892
9893# This must be Linux ELF.
9894linux* | k*bsd*-gnu | kopensolaris*-gnu)
9895  version_type=linux
9896  need_lib_prefix=no
9897  need_version=no
9898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899  soname_spec='${libname}${release}${shared_ext}$major'
9900  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9901  shlibpath_var=LD_LIBRARY_PATH
9902  shlibpath_overrides_runpath=no
9903
9904  # Some binutils ld are patched to set DT_RUNPATH
9905  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  lt_cv_shlibpath_overrides_runpath=no
9909    save_LDFLAGS=$LDFLAGS
9910    save_libdir=$libdir
9911    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9912	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9913    if test x$gcc_no_link = xyes; then
9914  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9915fi
9916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918
9919int
9920main ()
9921{
9922
9923  ;
9924  return 0;
9925}
9926_ACEOF
9927if ac_fn_c_try_link "$LINENO"; then :
9928  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9929  lt_cv_shlibpath_overrides_runpath=yes
9930fi
9931fi
9932rm -f core conftest.err conftest.$ac_objext \
9933    conftest$ac_exeext conftest.$ac_ext
9934    LDFLAGS=$save_LDFLAGS
9935    libdir=$save_libdir
9936
9937fi
9938
9939  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9940
9941  # This implies no fast_install, which is unacceptable.
9942  # Some rework will be needed to allow for fast_install
9943  # before this can be enabled.
9944  hardcode_into_libs=yes
9945
9946  # Append ld.so.conf contents to the search path
9947  if test -f /etc/ld.so.conf; then
9948    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' ' '`
9949    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9950  fi
9951
9952  # We used to test for /lib/ld.so.1 and disable shared libraries on
9953  # powerpc, because MkLinux only supported shared libraries with the
9954  # GNU dynamic linker.  Since this was broken with cross compilers,
9955  # most powerpc-linux boxes support dynamic linking these days and
9956  # people can always --disable-shared, the test was removed, and we
9957  # assume the GNU/Linux dynamic linker is in use.
9958  dynamic_linker='GNU/Linux ld.so'
9959  ;;
9960
9961netbsd*)
9962  version_type=sunos
9963  need_lib_prefix=no
9964  need_version=no
9965  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9966    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9967    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9968    dynamic_linker='NetBSD (a.out) ld.so'
9969  else
9970    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9971    soname_spec='${libname}${release}${shared_ext}$major'
9972    dynamic_linker='NetBSD ld.elf_so'
9973  fi
9974  shlibpath_var=LD_LIBRARY_PATH
9975  shlibpath_overrides_runpath=yes
9976  hardcode_into_libs=yes
9977  ;;
9978
9979newsos6)
9980  version_type=linux
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982  shlibpath_var=LD_LIBRARY_PATH
9983  shlibpath_overrides_runpath=yes
9984  ;;
9985
9986*nto* | *qnx*)
9987  version_type=qnx
9988  need_lib_prefix=no
9989  need_version=no
9990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991  soname_spec='${libname}${release}${shared_ext}$major'
9992  shlibpath_var=LD_LIBRARY_PATH
9993  shlibpath_overrides_runpath=no
9994  hardcode_into_libs=yes
9995  dynamic_linker='ldqnx.so'
9996  ;;
9997
9998openbsd*)
9999  version_type=sunos
10000  sys_lib_dlsearch_path_spec="/usr/lib"
10001  need_lib_prefix=no
10002  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10003  case $host_os in
10004    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10005    *)				need_version=no  ;;
10006  esac
10007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10008  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10009  shlibpath_var=LD_LIBRARY_PATH
10010  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10011    case $host_os in
10012      openbsd2.[89] | openbsd2.[89].*)
10013	shlibpath_overrides_runpath=no
10014	;;
10015      *)
10016	shlibpath_overrides_runpath=yes
10017	;;
10018      esac
10019  else
10020    shlibpath_overrides_runpath=yes
10021  fi
10022  ;;
10023
10024os2*)
10025  libname_spec='$name'
10026  shrext_cmds=".dll"
10027  need_lib_prefix=no
10028  library_names_spec='$libname${shared_ext} $libname.a'
10029  dynamic_linker='OS/2 ld.exe'
10030  shlibpath_var=LIBPATH
10031  ;;
10032
10033osf3* | osf4* | osf5*)
10034  version_type=osf
10035  need_lib_prefix=no
10036  need_version=no
10037  soname_spec='${libname}${release}${shared_ext}$major'
10038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039  shlibpath_var=LD_LIBRARY_PATH
10040  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10041  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10042  ;;
10043
10044rdos*)
10045  dynamic_linker=no
10046  ;;
10047
10048solaris*)
10049  version_type=linux
10050  need_lib_prefix=no
10051  need_version=no
10052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053  soname_spec='${libname}${release}${shared_ext}$major'
10054  shlibpath_var=LD_LIBRARY_PATH
10055  shlibpath_overrides_runpath=yes
10056  hardcode_into_libs=yes
10057  # ldd complains unless libraries are executable
10058  postinstall_cmds='chmod +x $lib'
10059  ;;
10060
10061sunos4*)
10062  version_type=sunos
10063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10064  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10065  shlibpath_var=LD_LIBRARY_PATH
10066  shlibpath_overrides_runpath=yes
10067  if test "$with_gnu_ld" = yes; then
10068    need_lib_prefix=no
10069  fi
10070  need_version=yes
10071  ;;
10072
10073sysv4 | sysv4.3*)
10074  version_type=linux
10075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076  soname_spec='${libname}${release}${shared_ext}$major'
10077  shlibpath_var=LD_LIBRARY_PATH
10078  case $host_vendor in
10079    sni)
10080      shlibpath_overrides_runpath=no
10081      need_lib_prefix=no
10082      runpath_var=LD_RUN_PATH
10083      ;;
10084    siemens)
10085      need_lib_prefix=no
10086      ;;
10087    motorola)
10088      need_lib_prefix=no
10089      need_version=no
10090      shlibpath_overrides_runpath=no
10091      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10092      ;;
10093  esac
10094  ;;
10095
10096sysv4*MP*)
10097  if test -d /usr/nec ;then
10098    version_type=linux
10099    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10100    soname_spec='$libname${shared_ext}.$major'
10101    shlibpath_var=LD_LIBRARY_PATH
10102  fi
10103  ;;
10104
10105sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10106  version_type=freebsd-elf
10107  need_lib_prefix=no
10108  need_version=no
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10110  soname_spec='${libname}${release}${shared_ext}$major'
10111  shlibpath_var=LD_LIBRARY_PATH
10112  shlibpath_overrides_runpath=yes
10113  hardcode_into_libs=yes
10114  if test "$with_gnu_ld" = yes; then
10115    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10116  else
10117    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10118    case $host_os in
10119      sco3.2v5*)
10120        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10121	;;
10122    esac
10123  fi
10124  sys_lib_dlsearch_path_spec='/usr/lib'
10125  ;;
10126
10127tpf*)
10128  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10129  version_type=linux
10130  need_lib_prefix=no
10131  need_version=no
10132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133  shlibpath_var=LD_LIBRARY_PATH
10134  shlibpath_overrides_runpath=no
10135  hardcode_into_libs=yes
10136  ;;
10137
10138uts4*)
10139  version_type=linux
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  shlibpath_var=LD_LIBRARY_PATH
10143  ;;
10144
10145*)
10146  dynamic_linker=no
10147  ;;
10148esac
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10150$as_echo "$dynamic_linker" >&6; }
10151test "$dynamic_linker" = no && can_build_shared=no
10152
10153variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10154if test "$GCC" = yes; then
10155  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10156fi
10157
10158if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10159  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10160fi
10161if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10162  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10163fi
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
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10257$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10258hardcode_action=
10259if test -n "$hardcode_libdir_flag_spec" ||
10260   test -n "$runpath_var" ||
10261   test "X$hardcode_automatic" = "Xyes" ; then
10262
10263  # We can hardcode non-existent directories.
10264  if test "$hardcode_direct" != no &&
10265     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10266     # have to relink, otherwise we might link with an installed library
10267     # when we should be linking with a yet-to-be-installed one
10268     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10269     test "$hardcode_minus_L" != no; then
10270    # Linking always hardcodes the temporary library directory.
10271    hardcode_action=relink
10272  else
10273    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10274    hardcode_action=immediate
10275  fi
10276else
10277  # We cannot hardcode anything, or else we can only hardcode existing
10278  # directories.
10279  hardcode_action=unsupported
10280fi
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10282$as_echo "$hardcode_action" >&6; }
10283
10284if test "$hardcode_action" = relink ||
10285   test "$inherit_rpath" = yes; then
10286  # Fast installation is not supported
10287  enable_fast_install=no
10288elif test "$shlibpath_overrides_runpath" = yes ||
10289     test "$enable_shared" = no; then
10290  # Fast installation is not necessary
10291  enable_fast_install=needless
10292fi
10293
10294
10295
10296
10297
10298
10299  if test "x$enable_dlopen" != xyes; then
10300  enable_dlopen=unknown
10301  enable_dlopen_self=unknown
10302  enable_dlopen_self_static=unknown
10303else
10304  lt_cv_dlopen=no
10305  lt_cv_dlopen_libs=
10306
10307  case $host_os in
10308  beos*)
10309    lt_cv_dlopen="load_add_on"
10310    lt_cv_dlopen_libs=
10311    lt_cv_dlopen_self=yes
10312    ;;
10313
10314  mingw* | pw32* | cegcc*)
10315    lt_cv_dlopen="LoadLibrary"
10316    lt_cv_dlopen_libs=
10317    ;;
10318
10319  cygwin*)
10320    lt_cv_dlopen="dlopen"
10321    lt_cv_dlopen_libs=
10322    ;;
10323
10324  darwin*)
10325  # if libdl is installed we need to link against it
10326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10327$as_echo_n "checking for dlopen in -ldl... " >&6; }
10328if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10329  $as_echo_n "(cached) " >&6
10330else
10331  ac_check_lib_save_LIBS=$LIBS
10332LIBS="-ldl  $LIBS"
10333if test x$gcc_no_link = xyes; then
10334  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10335fi
10336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338
10339/* Override any GCC internal prototype to avoid an error.
10340   Use char because int might match the return type of a GCC
10341   builtin and then its argument prototype would still apply.  */
10342#ifdef __cplusplus
10343extern "C"
10344#endif
10345char dlopen ();
10346int
10347main ()
10348{
10349return dlopen ();
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354if ac_fn_c_try_link "$LINENO"; then :
10355  ac_cv_lib_dl_dlopen=yes
10356else
10357  ac_cv_lib_dl_dlopen=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361LIBS=$ac_check_lib_save_LIBS
10362fi
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10364$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10365if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10366  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10367else
10368
10369    lt_cv_dlopen="dyld"
10370    lt_cv_dlopen_libs=
10371    lt_cv_dlopen_self=yes
10372
10373fi
10374
10375    ;;
10376
10377  *)
10378    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10379if test "x$ac_cv_func_shl_load" = x""yes; then :
10380  lt_cv_dlopen="shl_load"
10381else
10382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10383$as_echo_n "checking for shl_load in -ldld... " >&6; }
10384if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10385  $as_echo_n "(cached) " >&6
10386else
10387  ac_check_lib_save_LIBS=$LIBS
10388LIBS="-ldld  $LIBS"
10389if test x$gcc_no_link = xyes; then
10390  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10391fi
10392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394
10395/* Override any GCC internal prototype to avoid an error.
10396   Use char because int might match the return type of a GCC
10397   builtin and then its argument prototype would still apply.  */
10398#ifdef __cplusplus
10399extern "C"
10400#endif
10401char shl_load ();
10402int
10403main ()
10404{
10405return shl_load ();
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410if ac_fn_c_try_link "$LINENO"; then :
10411  ac_cv_lib_dld_shl_load=yes
10412else
10413  ac_cv_lib_dld_shl_load=no
10414fi
10415rm -f core conftest.err conftest.$ac_objext \
10416    conftest$ac_exeext conftest.$ac_ext
10417LIBS=$ac_check_lib_save_LIBS
10418fi
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10420$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10421if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10422  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10423else
10424  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10425if test "x$ac_cv_func_dlopen" = x""yes; then :
10426  lt_cv_dlopen="dlopen"
10427else
10428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10429$as_echo_n "checking for dlopen in -ldl... " >&6; }
10430if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10431  $as_echo_n "(cached) " >&6
10432else
10433  ac_check_lib_save_LIBS=$LIBS
10434LIBS="-ldl  $LIBS"
10435if test x$gcc_no_link = xyes; then
10436  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10437fi
10438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h.  */
10440
10441/* Override any GCC internal prototype to avoid an error.
10442   Use char because int might match the return type of a GCC
10443   builtin and then its argument prototype would still apply.  */
10444#ifdef __cplusplus
10445extern "C"
10446#endif
10447char dlopen ();
10448int
10449main ()
10450{
10451return dlopen ();
10452  ;
10453  return 0;
10454}
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"; then :
10457  ac_cv_lib_dl_dlopen=yes
10458else
10459  ac_cv_lib_dl_dlopen=no
10460fi
10461rm -f core conftest.err conftest.$ac_objext \
10462    conftest$ac_exeext conftest.$ac_ext
10463LIBS=$ac_check_lib_save_LIBS
10464fi
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10466$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10467if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10468  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10469else
10470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10471$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10472if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10473  $as_echo_n "(cached) " >&6
10474else
10475  ac_check_lib_save_LIBS=$LIBS
10476LIBS="-lsvld  $LIBS"
10477if test x$gcc_no_link = xyes; then
10478  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10479fi
10480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h.  */
10482
10483/* Override any GCC internal prototype to avoid an error.
10484   Use char because int might match the return type of a GCC
10485   builtin and then its argument prototype would still apply.  */
10486#ifdef __cplusplus
10487extern "C"
10488#endif
10489char dlopen ();
10490int
10491main ()
10492{
10493return dlopen ();
10494  ;
10495  return 0;
10496}
10497_ACEOF
10498if ac_fn_c_try_link "$LINENO"; then :
10499  ac_cv_lib_svld_dlopen=yes
10500else
10501  ac_cv_lib_svld_dlopen=no
10502fi
10503rm -f core conftest.err conftest.$ac_objext \
10504    conftest$ac_exeext conftest.$ac_ext
10505LIBS=$ac_check_lib_save_LIBS
10506fi
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10508$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10509if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10510  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10511else
10512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10513$as_echo_n "checking for dld_link in -ldld... " >&6; }
10514if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10515  $as_echo_n "(cached) " >&6
10516else
10517  ac_check_lib_save_LIBS=$LIBS
10518LIBS="-ldld  $LIBS"
10519if test x$gcc_no_link = xyes; then
10520  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10521fi
10522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523/* end confdefs.h.  */
10524
10525/* Override any GCC internal prototype to avoid an error.
10526   Use char because int might match the return type of a GCC
10527   builtin and then its argument prototype would still apply.  */
10528#ifdef __cplusplus
10529extern "C"
10530#endif
10531char dld_link ();
10532int
10533main ()
10534{
10535return dld_link ();
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540if ac_fn_c_try_link "$LINENO"; then :
10541  ac_cv_lib_dld_dld_link=yes
10542else
10543  ac_cv_lib_dld_dld_link=no
10544fi
10545rm -f core conftest.err conftest.$ac_objext \
10546    conftest$ac_exeext conftest.$ac_ext
10547LIBS=$ac_check_lib_save_LIBS
10548fi
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10550$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10551if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10552  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10553fi
10554
10555
10556fi
10557
10558
10559fi
10560
10561
10562fi
10563
10564
10565fi
10566
10567
10568fi
10569
10570    ;;
10571  esac
10572
10573  if test "x$lt_cv_dlopen" != xno; then
10574    enable_dlopen=yes
10575  else
10576    enable_dlopen=no
10577  fi
10578
10579  case $lt_cv_dlopen in
10580  dlopen)
10581    save_CPPFLAGS="$CPPFLAGS"
10582    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10583
10584    save_LDFLAGS="$LDFLAGS"
10585    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10586
10587    save_LIBS="$LIBS"
10588    LIBS="$lt_cv_dlopen_libs $LIBS"
10589
10590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10591$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10592if test "${lt_cv_dlopen_self+set}" = set; then :
10593  $as_echo_n "(cached) " >&6
10594else
10595  	  if test "$cross_compiling" = yes; then :
10596  lt_cv_dlopen_self=cross
10597else
10598  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10599  lt_status=$lt_dlunknown
10600  cat > conftest.$ac_ext <<_LT_EOF
10601#line 10601 "configure"
10602#include "confdefs.h"
10603
10604#if HAVE_DLFCN_H
10605#include <dlfcn.h>
10606#endif
10607
10608#include <stdio.h>
10609
10610#ifdef RTLD_GLOBAL
10611#  define LT_DLGLOBAL		RTLD_GLOBAL
10612#else
10613#  ifdef DL_GLOBAL
10614#    define LT_DLGLOBAL		DL_GLOBAL
10615#  else
10616#    define LT_DLGLOBAL		0
10617#  endif
10618#endif
10619
10620/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10621   find out it does not work in some platform. */
10622#ifndef LT_DLLAZY_OR_NOW
10623#  ifdef RTLD_LAZY
10624#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10625#  else
10626#    ifdef DL_LAZY
10627#      define LT_DLLAZY_OR_NOW		DL_LAZY
10628#    else
10629#      ifdef RTLD_NOW
10630#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10631#      else
10632#        ifdef DL_NOW
10633#          define LT_DLLAZY_OR_NOW	DL_NOW
10634#        else
10635#          define LT_DLLAZY_OR_NOW	0
10636#        endif
10637#      endif
10638#    endif
10639#  endif
10640#endif
10641
10642/* When -fvisbility=hidden is used, assume the code has been annotated
10643   correspondingly for the symbols needed.  */
10644#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10645void fnord () __attribute__((visibility("default")));
10646#endif
10647
10648void fnord () { int i=42; }
10649int main ()
10650{
10651  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10652  int status = $lt_dlunknown;
10653
10654  if (self)
10655    {
10656      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10657      else
10658        {
10659	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10660          else puts (dlerror ());
10661	}
10662      /* dlclose (self); */
10663    }
10664  else
10665    puts (dlerror ());
10666
10667  return status;
10668}
10669_LT_EOF
10670  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10671  (eval $ac_link) 2>&5
10672  ac_status=$?
10673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10674  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10675    (./conftest; exit; ) >&5 2>/dev/null
10676    lt_status=$?
10677    case x$lt_status in
10678      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10679      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10680      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10681    esac
10682  else :
10683    # compilation failed
10684    lt_cv_dlopen_self=no
10685  fi
10686fi
10687rm -fr conftest*
10688
10689
10690fi
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10692$as_echo "$lt_cv_dlopen_self" >&6; }
10693
10694    if test "x$lt_cv_dlopen_self" = xyes; then
10695      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10696      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10697$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10698if test "${lt_cv_dlopen_self_static+set}" = set; then :
10699  $as_echo_n "(cached) " >&6
10700else
10701  	  if test "$cross_compiling" = yes; then :
10702  lt_cv_dlopen_self_static=cross
10703else
10704  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10705  lt_status=$lt_dlunknown
10706  cat > conftest.$ac_ext <<_LT_EOF
10707#line 10707 "configure"
10708#include "confdefs.h"
10709
10710#if HAVE_DLFCN_H
10711#include <dlfcn.h>
10712#endif
10713
10714#include <stdio.h>
10715
10716#ifdef RTLD_GLOBAL
10717#  define LT_DLGLOBAL		RTLD_GLOBAL
10718#else
10719#  ifdef DL_GLOBAL
10720#    define LT_DLGLOBAL		DL_GLOBAL
10721#  else
10722#    define LT_DLGLOBAL		0
10723#  endif
10724#endif
10725
10726/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10727   find out it does not work in some platform. */
10728#ifndef LT_DLLAZY_OR_NOW
10729#  ifdef RTLD_LAZY
10730#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10731#  else
10732#    ifdef DL_LAZY
10733#      define LT_DLLAZY_OR_NOW		DL_LAZY
10734#    else
10735#      ifdef RTLD_NOW
10736#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10737#      else
10738#        ifdef DL_NOW
10739#          define LT_DLLAZY_OR_NOW	DL_NOW
10740#        else
10741#          define LT_DLLAZY_OR_NOW	0
10742#        endif
10743#      endif
10744#    endif
10745#  endif
10746#endif
10747
10748/* When -fvisbility=hidden is used, assume the code has been annotated
10749   correspondingly for the symbols needed.  */
10750#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10751void fnord () __attribute__((visibility("default")));
10752#endif
10753
10754void fnord () { int i=42; }
10755int main ()
10756{
10757  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10758  int status = $lt_dlunknown;
10759
10760  if (self)
10761    {
10762      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10763      else
10764        {
10765	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10766          else puts (dlerror ());
10767	}
10768      /* dlclose (self); */
10769    }
10770  else
10771    puts (dlerror ());
10772
10773  return status;
10774}
10775_LT_EOF
10776  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10777  (eval $ac_link) 2>&5
10778  ac_status=$?
10779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10780  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10781    (./conftest; exit; ) >&5 2>/dev/null
10782    lt_status=$?
10783    case x$lt_status in
10784      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10785      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10786      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10787    esac
10788  else :
10789    # compilation failed
10790    lt_cv_dlopen_self_static=no
10791  fi
10792fi
10793rm -fr conftest*
10794
10795
10796fi
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10798$as_echo "$lt_cv_dlopen_self_static" >&6; }
10799    fi
10800
10801    CPPFLAGS="$save_CPPFLAGS"
10802    LDFLAGS="$save_LDFLAGS"
10803    LIBS="$save_LIBS"
10804    ;;
10805  esac
10806
10807  case $lt_cv_dlopen_self in
10808  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10809  *) enable_dlopen_self=unknown ;;
10810  esac
10811
10812  case $lt_cv_dlopen_self_static in
10813  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10814  *) enable_dlopen_self_static=unknown ;;
10815  esac
10816fi
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834striplib=
10835old_striplib=
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10837$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10838if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10839  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10840  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842$as_echo "yes" >&6; }
10843else
10844# FIXME - insert some real tests, host_os isn't really good enough
10845  case $host_os in
10846  darwin*)
10847    if test -n "$STRIP" ; then
10848      striplib="$STRIP -x"
10849      old_striplib="$STRIP -S"
10850      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851$as_echo "yes" >&6; }
10852    else
10853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
10855    fi
10856    ;;
10857  *)
10858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859$as_echo "no" >&6; }
10860    ;;
10861  esac
10862fi
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875  # Report which library types will actually be built
10876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10877$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10879$as_echo "$can_build_shared" >&6; }
10880
10881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10882$as_echo_n "checking whether to build shared libraries... " >&6; }
10883  test "$can_build_shared" = "no" && enable_shared=no
10884
10885  # On AIX, shared libraries and static libraries use the same namespace, and
10886  # are all built from PIC.
10887  case $host_os in
10888  aix3*)
10889    test "$enable_shared" = yes && enable_static=no
10890    if test -n "$RANLIB"; then
10891      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10892      postinstall_cmds='$RANLIB $lib'
10893    fi
10894    ;;
10895
10896  aix[4-9]*)
10897    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10898      test "$enable_shared" = yes && enable_static=no
10899    fi
10900    ;;
10901  esac
10902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10903$as_echo "$enable_shared" >&6; }
10904
10905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10906$as_echo_n "checking whether to build static libraries... " >&6; }
10907  # Make sure either enable_shared or enable_static is yes.
10908  test "$enable_shared" = yes || enable_static=yes
10909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10910$as_echo "$enable_static" >&6; }
10911
10912
10913
10914
10915fi
10916ac_ext=c
10917ac_cpp='$CPP $CPPFLAGS'
10918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920ac_compiler_gnu=$ac_cv_c_compiler_gnu
10921
10922CC="$lt_save_CC"
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936        ac_config_commands="$ac_config_commands libtool"
10937
10938
10939
10940
10941# Only expand once:
10942
10943
10944
10945if test "x$CC" != xcc; then
10946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10947$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10948else
10949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10950$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10951fi
10952set dummy $CC; ac_cc=`$as_echo "$2" |
10953		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10954if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10955  $as_echo_n "(cached) " >&6
10956else
10957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h.  */
10959
10960int
10961main ()
10962{
10963
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968# Make sure it works both with $CC and with simple cc.
10969# We do the test twice because some compilers refuse to overwrite an
10970# existing .o file with -o, though they will create one.
10971ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10972rm -f conftest2.*
10973if { { case "(($ac_try" in
10974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975  *) ac_try_echo=$ac_try;;
10976esac
10977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10978$as_echo "$ac_try_echo"; } >&5
10979  (eval "$ac_try") 2>&5
10980  ac_status=$?
10981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982  test $ac_status = 0; } &&
10983   test -f conftest2.$ac_objext && { { case "(($ac_try" in
10984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985  *) ac_try_echo=$ac_try;;
10986esac
10987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10988$as_echo "$ac_try_echo"; } >&5
10989  (eval "$ac_try") 2>&5
10990  ac_status=$?
10991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10992  test $ac_status = 0; };
10993then
10994  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10995  if test "x$CC" != xcc; then
10996    # Test first that cc exists at all.
10997    if { ac_try='cc -c conftest.$ac_ext >&5'
10998  { { case "(($ac_try" in
10999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000  *) ac_try_echo=$ac_try;;
11001esac
11002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11003$as_echo "$ac_try_echo"; } >&5
11004  (eval "$ac_try") 2>&5
11005  ac_status=$?
11006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007  test $ac_status = 0; }; }; then
11008      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11009      rm -f conftest2.*
11010      if { { case "(($ac_try" in
11011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012  *) ac_try_echo=$ac_try;;
11013esac
11014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11015$as_echo "$ac_try_echo"; } >&5
11016  (eval "$ac_try") 2>&5
11017  ac_status=$?
11018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019  test $ac_status = 0; } &&
11020	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022  *) ac_try_echo=$ac_try;;
11023esac
11024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11025$as_echo "$ac_try_echo"; } >&5
11026  (eval "$ac_try") 2>&5
11027  ac_status=$?
11028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029  test $ac_status = 0; };
11030      then
11031	# cc works too.
11032	:
11033      else
11034	# cc exists but doesn't like -o.
11035	eval ac_cv_prog_cc_${ac_cc}_c_o=no
11036      fi
11037    fi
11038  fi
11039else
11040  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11041fi
11042rm -f core conftest*
11043
11044fi
11045if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11047$as_echo "yes" >&6; }
11048else
11049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050$as_echo "no" >&6; }
11051
11052$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11053
11054fi
11055
11056# expand $ac_aux_dir to an absolute path
11057am_aux_dir=`cd $ac_aux_dir && pwd`
11058
11059# FIXME: we rely on the cache variable name because
11060# there is no other way.
11061set dummy $CC
11062am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11063eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11064if test "$am_t" != yes; then
11065   # Losing compiler, so override with the script.
11066   # FIXME: It is wrong to rewrite CC.
11067   # But if we don't then we get into trouble of one sort or another.
11068   # A longer-term fix would be to have automake use am__CC in this case,
11069   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11070   CC="$am_aux_dir/compile $CC"
11071fi
11072
11073
11074
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11076$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11077set x ${MAKE-make}
11078ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11079if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  cat >conftest.make <<\_ACEOF
11083SHELL = /bin/sh
11084all:
11085	@echo '@@@%%%=$(MAKE)=@@@%%%'
11086_ACEOF
11087# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11088case `${MAKE-make} -f conftest.make 2>/dev/null` in
11089  *@@@%%%=?*=@@@%%%*)
11090    eval ac_cv_prog_make_${ac_make}_set=yes;;
11091  *)
11092    eval ac_cv_prog_make_${ac_make}_set=no;;
11093esac
11094rm -f conftest.make
11095fi
11096if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11098$as_echo "yes" >&6; }
11099  SET_MAKE=
11100else
11101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
11103  SET_MAKE="MAKE=${MAKE-make}"
11104fi
11105
11106
11107# -------
11108# Headers
11109# -------
11110
11111# Sanity check for the cross-compilation case:
11112ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11113if test "x$ac_cv_header_stdio_h" = x""yes; then :
11114  :
11115else
11116  as_fn_error "Can't find stdio.h.
11117You must have a usable C system for the target already installed, at least
11118including headers and, preferably, the library, before you can configure
11119the Objective C runtime system.  If necessary, install gcc now with
11120\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
11121fi
11122
11123
11124
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11126$as_echo_n "checking for ANSI C header files... " >&6; }
11127if test "${ac_cv_header_stdc+set}" = set; then :
11128  $as_echo_n "(cached) " >&6
11129else
11130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h.  */
11132#include <stdlib.h>
11133#include <stdarg.h>
11134#include <string.h>
11135#include <float.h>
11136
11137int
11138main ()
11139{
11140
11141  ;
11142  return 0;
11143}
11144_ACEOF
11145if ac_fn_c_try_compile "$LINENO"; then :
11146  ac_cv_header_stdc=yes
11147else
11148  ac_cv_header_stdc=no
11149fi
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151
11152if test $ac_cv_header_stdc = yes; then
11153  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h.  */
11156#include <string.h>
11157
11158_ACEOF
11159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11160  $EGREP "memchr" >/dev/null 2>&1; then :
11161
11162else
11163  ac_cv_header_stdc=no
11164fi
11165rm -f conftest*
11166
11167fi
11168
11169if test $ac_cv_header_stdc = yes; then
11170  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172/* end confdefs.h.  */
11173#include <stdlib.h>
11174
11175_ACEOF
11176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11177  $EGREP "free" >/dev/null 2>&1; then :
11178
11179else
11180  ac_cv_header_stdc=no
11181fi
11182rm -f conftest*
11183
11184fi
11185
11186if test $ac_cv_header_stdc = yes; then
11187  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11188  if test "$cross_compiling" = yes; then :
11189  :
11190else
11191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h.  */
11193#include <ctype.h>
11194#include <stdlib.h>
11195#if ((' ' & 0x0FF) == 0x020)
11196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11198#else
11199# define ISLOWER(c) \
11200		   (('a' <= (c) && (c) <= 'i') \
11201		     || ('j' <= (c) && (c) <= 'r') \
11202		     || ('s' <= (c) && (c) <= 'z'))
11203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11204#endif
11205
11206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11207int
11208main ()
11209{
11210  int i;
11211  for (i = 0; i < 256; i++)
11212    if (XOR (islower (i), ISLOWER (i))
11213	|| toupper (i) != TOUPPER (i))
11214      return 2;
11215  return 0;
11216}
11217_ACEOF
11218if ac_fn_c_try_run "$LINENO"; then :
11219
11220else
11221  ac_cv_header_stdc=no
11222fi
11223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11224  conftest.$ac_objext conftest.beam conftest.$ac_ext
11225fi
11226
11227fi
11228fi
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11230$as_echo "$ac_cv_header_stdc" >&6; }
11231if test $ac_cv_header_stdc = yes; then
11232
11233$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11234
11235fi
11236
11237
11238for ac_header in sched.h
11239do :
11240  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11241if test "x$ac_cv_header_sched_h" = x""yes; then :
11242  cat >>confdefs.h <<_ACEOF
11243#define HAVE_SCHED_H 1
11244_ACEOF
11245
11246fi
11247
11248done
11249
11250
11251# -----------
11252# Miscellanea
11253# -----------
11254
11255# Check if we have thread-local storage
11256
11257
11258   # Check whether --enable-tls was given.
11259if test "${enable_tls+set}" = set; then :
11260  enableval=$enable_tls;
11261      case "$enableval" in
11262       yes|no) ;;
11263       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11264      esac
11265
11266else
11267  enable_tls=yes
11268fi
11269
11270
11271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11272$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11273if test "${gcc_cv_have_tls+set}" = set; then :
11274  $as_echo_n "(cached) " >&6
11275else
11276
11277    if test "$cross_compiling" = yes; then :
11278                if test x$gcc_no_link = xyes; then
11279  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11280fi
11281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282/* end confdefs.h.  */
11283__thread int a; int b; int main() { return a = b; }
11284_ACEOF
11285if ac_fn_c_try_link "$LINENO"; then :
11286  chktls_save_LDFLAGS="$LDFLAGS"
11287	  	  	  case $host in
11288	    *-*-linux*)
11289	      LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11290	      ;;
11291	  esac
11292	  chktls_save_CFLAGS="$CFLAGS"
11293	  CFLAGS="-fPIC $CFLAGS"
11294	  	  if test x$gcc_no_link = xyes; then
11295  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11296fi
11297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h.  */
11299int f() { return 0; }
11300_ACEOF
11301if ac_fn_c_try_link "$LINENO"; then :
11302  if test x$gcc_no_link = xyes; then
11303  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11304fi
11305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h.  */
11307__thread int a; int b; int f() { return a = b; }
11308_ACEOF
11309if ac_fn_c_try_link "$LINENO"; then :
11310  gcc_cv_have_tls=yes
11311else
11312  gcc_cv_have_tls=no
11313fi
11314rm -f core conftest.err conftest.$ac_objext \
11315    conftest$ac_exeext conftest.$ac_ext
11316else
11317  gcc_cv_have_tls=yes
11318fi
11319rm -f core conftest.err conftest.$ac_objext \
11320    conftest$ac_exeext conftest.$ac_ext
11321	  CFLAGS="$chktls_save_CFLAGS"
11322	  LDFLAGS="$chktls_save_LDFLAGS"
11323else
11324  gcc_cv_have_tls=no
11325fi
11326rm -f core conftest.err conftest.$ac_objext \
11327    conftest$ac_exeext conftest.$ac_ext
11328
11329
11330else
11331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332/* end confdefs.h.  */
11333__thread int a; int b; int main() { return a = b; }
11334_ACEOF
11335if ac_fn_c_try_run "$LINENO"; then :
11336                      chktls_save_LDFLAGS="$LDFLAGS"
11337      LDFLAGS="-static $LDFLAGS"
11338      if test x$gcc_no_link = xyes; then
11339  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11340fi
11341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h.  */
11343int main() { return 0; }
11344_ACEOF
11345if ac_fn_c_try_link "$LINENO"; then :
11346  if test "$cross_compiling" = yes; then :
11347  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11349as_fn_error "cannot run test program while cross compiling
11350See \`config.log' for more details." "$LINENO" 5; }
11351else
11352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353/* end confdefs.h.  */
11354__thread int a; int b; int main() { return a = b; }
11355_ACEOF
11356if ac_fn_c_try_run "$LINENO"; then :
11357  gcc_cv_have_tls=yes
11358else
11359  gcc_cv_have_tls=no
11360fi
11361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11362  conftest.$ac_objext conftest.beam conftest.$ac_ext
11363fi
11364
11365else
11366  gcc_cv_have_tls=yes
11367fi
11368rm -f core conftest.err conftest.$ac_objext \
11369    conftest$ac_exeext conftest.$ac_ext
11370      LDFLAGS="$chktls_save_LDFLAGS"
11371      if test $gcc_cv_have_tls = yes; then
11372						chktls_save_CFLAGS="$CFLAGS"
11373	thread_CFLAGS=failed
11374	for flag in '' '-pthread' '-lpthread'; do
11375	  CFLAGS="$flag $chktls_save_CFLAGS"
11376	  if test x$gcc_no_link = xyes; then
11377  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11378fi
11379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380/* end confdefs.h.  */
11381#include <pthread.h>
11382		void *g(void *d) { return NULL; }
11383int
11384main ()
11385{
11386pthread_t t; pthread_create(&t,NULL,g,NULL);
11387  ;
11388  return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_link "$LINENO"; then :
11392  thread_CFLAGS="$flag"
11393fi
11394rm -f core conftest.err conftest.$ac_objext \
11395    conftest$ac_exeext conftest.$ac_ext
11396	  if test "X$thread_CFLAGS" != Xfailed; then
11397	    break
11398	  fi
11399	done
11400	CFLAGS="$chktls_save_CFLAGS"
11401	if test "X$thread_CFLAGS" != Xfailed; then
11402	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11403 	  	  	  	  	  	  if test "$cross_compiling" = yes; then :
11404  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11406as_fn_error "cannot run test program while cross compiling
11407See \`config.log' for more details." "$LINENO" 5; }
11408else
11409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410/* end confdefs.h.  */
11411#include <pthread.h>
11412		__thread int a;
11413		static int *volatile a_in_other_thread;
11414		static void *
11415		thread_func (void *arg)
11416		{
11417		  a_in_other_thread = &a;
11418		  return (void *)0;
11419		}
11420int
11421main ()
11422{
11423pthread_t thread;
11424		void *thread_retval;
11425		int *volatile a_in_main_thread;
11426		a_in_main_thread = &a;
11427		if (pthread_create (&thread, (pthread_attr_t *)0,
11428				    thread_func, (void *)0))
11429		  return 0;
11430		if (pthread_join (thread, &thread_retval))
11431		  return 0;
11432		return (a_in_other_thread == a_in_main_thread);
11433  ;
11434  return 0;
11435}
11436_ACEOF
11437if ac_fn_c_try_run "$LINENO"; then :
11438  gcc_cv_have_tls=yes
11439else
11440  gcc_cv_have_tls=no
11441fi
11442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11443  conftest.$ac_objext conftest.beam conftest.$ac_ext
11444fi
11445
11446	  CFLAGS="$chktls_save_CFLAGS"
11447	fi
11448      fi
11449else
11450  gcc_cv_have_tls=no
11451fi
11452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11453  conftest.$ac_objext conftest.beam conftest.$ac_ext
11454fi
11455
11456fi
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11458$as_echo "$gcc_cv_have_tls" >&6; }
11459  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11460
11461$as_echo "#define HAVE_TLS 1" >>confdefs.h
11462
11463  fi
11464
11465
11466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
11467$as_echo_n "checking if the type of bitfields matters... " >&6; }
11468if test "${gt_cv_bitfield_type_matters+set}" = set; then :
11469  $as_echo_n "(cached) " >&6
11470else
11471
11472    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473/* end confdefs.h.  */
11474struct foo1 { char x; char y:1; char z; };
11475struct foo2 { char x; long long int y:1; char z; };
11476int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
11477int
11478main ()
11479{
11480
11481  ;
11482  return 0;
11483}
11484_ACEOF
11485if ac_fn_c_try_compile "$LINENO"; then :
11486  gt_cv_bitfield_type_matters=yes
11487else
11488  gt_cv_bitfield_type_matters=no
11489fi
11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491
11492fi
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
11494$as_echo "$gt_cv_bitfield_type_matters" >&6; }
11495  if test $gt_cv_bitfield_type_matters = yes; then
11496
11497$as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
11498
11499  fi
11500
11501
11502# ------
11503# Output
11504# ------
11505
11506if test ${multilib} = yes; then
11507  multilib_arg="--enable-multilib"
11508else
11509  multilib_arg=
11510fi
11511
11512ac_config_files="$ac_config_files Makefile"
11513
11514cat >confcache <<\_ACEOF
11515# This file is a shell script that caches the results of configure
11516# tests run on this system so they can be shared between configure
11517# scripts and configure runs, see configure's option --config-cache.
11518# It is not useful on other systems.  If it contains results you don't
11519# want to keep, you may remove or edit it.
11520#
11521# config.status only pays attention to the cache file if you give it
11522# the --recheck option to rerun configure.
11523#
11524# `ac_cv_env_foo' variables (set or unset) will be overridden when
11525# loading this file, other *unset* `ac_cv_foo' will be assigned the
11526# following values.
11527
11528_ACEOF
11529
11530# The following way of writing the cache mishandles newlines in values,
11531# but we know of no workaround that is simple, portable, and efficient.
11532# So, we kill variables containing newlines.
11533# Ultrix sh set writes to stderr and can't be redirected directly,
11534# and sets the high bit in the cache file unless we assign to the vars.
11535(
11536  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11537    eval ac_val=\$$ac_var
11538    case $ac_val in #(
11539    *${as_nl}*)
11540      case $ac_var in #(
11541      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11542$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11543      esac
11544      case $ac_var in #(
11545      _ | IFS | as_nl) ;; #(
11546      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11547      *) { eval $ac_var=; unset $ac_var;} ;;
11548      esac ;;
11549    esac
11550  done
11551
11552  (set) 2>&1 |
11553    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11554    *${as_nl}ac_space=\ *)
11555      # `set' does not quote correctly, so add quotes: double-quote
11556      # substitution turns \\\\ into \\, and sed turns \\ into \.
11557      sed -n \
11558	"s/'/'\\\\''/g;
11559	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11560      ;; #(
11561    *)
11562      # `set' quotes correctly as required by POSIX, so do not add quotes.
11563      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11564      ;;
11565    esac |
11566    sort
11567) |
11568  sed '
11569     /^ac_cv_env_/b end
11570     t clear
11571     :clear
11572     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11573     t end
11574     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11575     :end' >>confcache
11576if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11577  if test -w "$cache_file"; then
11578    test "x$cache_file" != "x/dev/null" &&
11579      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11580$as_echo "$as_me: updating cache $cache_file" >&6;}
11581    cat confcache >$cache_file
11582  else
11583    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11584$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11585  fi
11586fi
11587rm -f confcache
11588
11589test "x$prefix" = xNONE && prefix=$ac_default_prefix
11590# Let make expand exec_prefix.
11591test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11592
11593DEFS=-DHAVE_CONFIG_H
11594
11595ac_libobjs=
11596ac_ltlibobjs=
11597for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11598  # 1. Remove the extension, and $U if already installed.
11599  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11600  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11601  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11602  #    will be set to the directory where LIBOBJS objects are built.
11603  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11604  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11605done
11606LIBOBJS=$ac_libobjs
11607
11608LTLIBOBJS=$ac_ltlibobjs
11609
11610
11611if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11612  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11613Usually this means the macro was only invoked conditionally." "$LINENO" 5
11614fi
11615
11616: ${CONFIG_STATUS=./config.status}
11617ac_write_fail=0
11618ac_clean_files_save=$ac_clean_files
11619ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11621$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11622as_write_fail=0
11623cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11624#! $SHELL
11625# Generated by $as_me.
11626# Run this file to recreate the current configuration.
11627# Compiler output produced by configure, useful for debugging
11628# configure, is in config.log if it exists.
11629
11630debug=false
11631ac_cs_recheck=false
11632ac_cs_silent=false
11633
11634SHELL=\${CONFIG_SHELL-$SHELL}
11635export SHELL
11636_ASEOF
11637cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11638## -------------------- ##
11639## M4sh Initialization. ##
11640## -------------------- ##
11641
11642# Be more Bourne compatible
11643DUALCASE=1; export DUALCASE # for MKS sh
11644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11645  emulate sh
11646  NULLCMD=:
11647  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11648  # is contrary to our usage.  Disable this feature.
11649  alias -g '${1+"$@"}'='"$@"'
11650  setopt NO_GLOB_SUBST
11651else
11652  case `(set -o) 2>/dev/null` in #(
11653  *posix*) :
11654    set -o posix ;; #(
11655  *) :
11656     ;;
11657esac
11658fi
11659
11660
11661as_nl='
11662'
11663export as_nl
11664# Printing a long string crashes Solaris 7 /usr/bin/printf.
11665as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11668# Prefer a ksh shell builtin over an external printf program on Solaris,
11669# but without wasting forks for bash or zsh.
11670if test -z "$BASH_VERSION$ZSH_VERSION" \
11671    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11672  as_echo='print -r --'
11673  as_echo_n='print -rn --'
11674elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11675  as_echo='printf %s\n'
11676  as_echo_n='printf %s'
11677else
11678  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11679    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11680    as_echo_n='/usr/ucb/echo -n'
11681  else
11682    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11683    as_echo_n_body='eval
11684      arg=$1;
11685      case $arg in #(
11686      *"$as_nl"*)
11687	expr "X$arg" : "X\\(.*\\)$as_nl";
11688	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11689      esac;
11690      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11691    '
11692    export as_echo_n_body
11693    as_echo_n='sh -c $as_echo_n_body as_echo'
11694  fi
11695  export as_echo_body
11696  as_echo='sh -c $as_echo_body as_echo'
11697fi
11698
11699# The user is always right.
11700if test "${PATH_SEPARATOR+set}" != set; then
11701  PATH_SEPARATOR=:
11702  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11703    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11704      PATH_SEPARATOR=';'
11705  }
11706fi
11707
11708
11709# IFS
11710# We need space, tab and new line, in precisely that order.  Quoting is
11711# there to prevent editors from complaining about space-tab.
11712# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11713# splitting by setting IFS to empty value.)
11714IFS=" ""	$as_nl"
11715
11716# Find who we are.  Look in the path if we contain no directory separator.
11717case $0 in #((
11718  *[\\/]* ) as_myself=$0 ;;
11719  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722  IFS=$as_save_IFS
11723  test -z "$as_dir" && as_dir=.
11724    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11725  done
11726IFS=$as_save_IFS
11727
11728     ;;
11729esac
11730# We did not find ourselves, most probably we were run as `sh COMMAND'
11731# in which case we are not to be found in the path.
11732if test "x$as_myself" = x; then
11733  as_myself=$0
11734fi
11735if test ! -f "$as_myself"; then
11736  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11737  exit 1
11738fi
11739
11740# Unset variables that we do not need and which cause bugs (e.g. in
11741# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11742# suppresses any "Segmentation fault" message there.  '((' could
11743# trigger a bug in pdksh 5.2.14.
11744for as_var in BASH_ENV ENV MAIL MAILPATH
11745do eval test x\${$as_var+set} = xset \
11746  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11747done
11748PS1='$ '
11749PS2='> '
11750PS4='+ '
11751
11752# NLS nuisances.
11753LC_ALL=C
11754export LC_ALL
11755LANGUAGE=C
11756export LANGUAGE
11757
11758# CDPATH.
11759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11760
11761
11762# as_fn_error ERROR [LINENO LOG_FD]
11763# ---------------------------------
11764# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11765# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11766# script with status $?, using 1 if that was 0.
11767as_fn_error ()
11768{
11769  as_status=$?; test $as_status -eq 0 && as_status=1
11770  if test "$3"; then
11771    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11772    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11773  fi
11774  $as_echo "$as_me: error: $1" >&2
11775  as_fn_exit $as_status
11776} # as_fn_error
11777
11778
11779# as_fn_set_status STATUS
11780# -----------------------
11781# Set $? to STATUS, without forking.
11782as_fn_set_status ()
11783{
11784  return $1
11785} # as_fn_set_status
11786
11787# as_fn_exit STATUS
11788# -----------------
11789# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11790as_fn_exit ()
11791{
11792  set +e
11793  as_fn_set_status $1
11794  exit $1
11795} # as_fn_exit
11796
11797# as_fn_unset VAR
11798# ---------------
11799# Portably unset VAR.
11800as_fn_unset ()
11801{
11802  { eval $1=; unset $1;}
11803}
11804as_unset=as_fn_unset
11805# as_fn_append VAR VALUE
11806# ----------------------
11807# Append the text in VALUE to the end of the definition contained in VAR. Take
11808# advantage of any shell optimizations that allow amortized linear growth over
11809# repeated appends, instead of the typical quadratic growth present in naive
11810# implementations.
11811if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11812  eval 'as_fn_append ()
11813  {
11814    eval $1+=\$2
11815  }'
11816else
11817  as_fn_append ()
11818  {
11819    eval $1=\$$1\$2
11820  }
11821fi # as_fn_append
11822
11823# as_fn_arith ARG...
11824# ------------------
11825# Perform arithmetic evaluation on the ARGs, and store the result in the
11826# global $as_val. Take advantage of shells that can avoid forks. The arguments
11827# must be portable across $(()) and expr.
11828if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11829  eval 'as_fn_arith ()
11830  {
11831    as_val=$(( $* ))
11832  }'
11833else
11834  as_fn_arith ()
11835  {
11836    as_val=`expr "$@" || test $? -eq 1`
11837  }
11838fi # as_fn_arith
11839
11840
11841if expr a : '\(a\)' >/dev/null 2>&1 &&
11842   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11843  as_expr=expr
11844else
11845  as_expr=false
11846fi
11847
11848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11849  as_basename=basename
11850else
11851  as_basename=false
11852fi
11853
11854if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11855  as_dirname=dirname
11856else
11857  as_dirname=false
11858fi
11859
11860as_me=`$as_basename -- "$0" ||
11861$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11862	 X"$0" : 'X\(//\)$' \| \
11863	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11864$as_echo X/"$0" |
11865    sed '/^.*\/\([^/][^/]*\)\/*$/{
11866	    s//\1/
11867	    q
11868	  }
11869	  /^X\/\(\/\/\)$/{
11870	    s//\1/
11871	    q
11872	  }
11873	  /^X\/\(\/\).*/{
11874	    s//\1/
11875	    q
11876	  }
11877	  s/.*/./; q'`
11878
11879# Avoid depending upon Character Ranges.
11880as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11881as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11882as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11883as_cr_digits='0123456789'
11884as_cr_alnum=$as_cr_Letters$as_cr_digits
11885
11886ECHO_C= ECHO_N= ECHO_T=
11887case `echo -n x` in #(((((
11888-n*)
11889  case `echo 'xy\c'` in
11890  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11891  xy)  ECHO_C='\c';;
11892  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11893       ECHO_T='	';;
11894  esac;;
11895*)
11896  ECHO_N='-n';;
11897esac
11898
11899rm -f conf$$ conf$$.exe conf$$.file
11900if test -d conf$$.dir; then
11901  rm -f conf$$.dir/conf$$.file
11902else
11903  rm -f conf$$.dir
11904  mkdir conf$$.dir 2>/dev/null
11905fi
11906if (echo >conf$$.file) 2>/dev/null; then
11907  if ln -s conf$$.file conf$$ 2>/dev/null; then
11908    as_ln_s='ln -s'
11909    # ... but there are two gotchas:
11910    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11911    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11912    # In both cases, we have to default to `cp -p'.
11913    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11914      as_ln_s='cp -p'
11915  elif ln conf$$.file conf$$ 2>/dev/null; then
11916    as_ln_s=ln
11917  else
11918    as_ln_s='cp -p'
11919  fi
11920else
11921  as_ln_s='cp -p'
11922fi
11923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11924rmdir conf$$.dir 2>/dev/null
11925
11926
11927# as_fn_mkdir_p
11928# -------------
11929# Create "$as_dir" as a directory, including parents if necessary.
11930as_fn_mkdir_p ()
11931{
11932
11933  case $as_dir in #(
11934  -*) as_dir=./$as_dir;;
11935  esac
11936  test -d "$as_dir" || eval $as_mkdir_p || {
11937    as_dirs=
11938    while :; do
11939      case $as_dir in #(
11940      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11941      *) as_qdir=$as_dir;;
11942      esac
11943      as_dirs="'$as_qdir' $as_dirs"
11944      as_dir=`$as_dirname -- "$as_dir" ||
11945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11946	 X"$as_dir" : 'X\(//\)[^/]' \| \
11947	 X"$as_dir" : 'X\(//\)$' \| \
11948	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11949$as_echo X"$as_dir" |
11950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11951	    s//\1/
11952	    q
11953	  }
11954	  /^X\(\/\/\)[^/].*/{
11955	    s//\1/
11956	    q
11957	  }
11958	  /^X\(\/\/\)$/{
11959	    s//\1/
11960	    q
11961	  }
11962	  /^X\(\/\).*/{
11963	    s//\1/
11964	    q
11965	  }
11966	  s/.*/./; q'`
11967      test -d "$as_dir" && break
11968    done
11969    test -z "$as_dirs" || eval "mkdir $as_dirs"
11970  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11971
11972
11973} # as_fn_mkdir_p
11974if mkdir -p . 2>/dev/null; then
11975  as_mkdir_p='mkdir -p "$as_dir"'
11976else
11977  test -d ./-p && rmdir ./-p
11978  as_mkdir_p=false
11979fi
11980
11981if test -x / >/dev/null 2>&1; then
11982  as_test_x='test -x'
11983else
11984  if ls -dL / >/dev/null 2>&1; then
11985    as_ls_L_option=L
11986  else
11987    as_ls_L_option=
11988  fi
11989  as_test_x='
11990    eval sh -c '\''
11991      if test -d "$1"; then
11992	test -d "$1/.";
11993      else
11994	case $1 in #(
11995	-*)set "./$1";;
11996	esac;
11997	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11998	???[sx]*):;;*)false;;esac;fi
11999    '\'' sh
12000  '
12001fi
12002as_executable_p=$as_test_x
12003
12004# Sed expression to map a string onto a valid CPP name.
12005as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12006
12007# Sed expression to map a string onto a valid variable name.
12008as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12009
12010
12011exec 6>&1
12012## ----------------------------------- ##
12013## Main body of $CONFIG_STATUS script. ##
12014## ----------------------------------- ##
12015_ASEOF
12016test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12017
12018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12019# Save the log message, to keep $0 and so on meaningful, and to
12020# report actual input values of CONFIG_FILES etc. instead of their
12021# values after options handling.
12022ac_log="
12023This file was extended by package-unused $as_me version-unused, which was
12024generated by GNU Autoconf 2.64.  Invocation command line was
12025
12026  CONFIG_FILES    = $CONFIG_FILES
12027  CONFIG_HEADERS  = $CONFIG_HEADERS
12028  CONFIG_LINKS    = $CONFIG_LINKS
12029  CONFIG_COMMANDS = $CONFIG_COMMANDS
12030  $ $0 $@
12031
12032on `(hostname || uname -n) 2>/dev/null | sed 1q`
12033"
12034
12035_ACEOF
12036
12037case $ac_config_files in *"
12038"*) set x $ac_config_files; shift; ac_config_files=$*;;
12039esac
12040
12041case $ac_config_headers in *"
12042"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12043esac
12044
12045
12046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12047# Files that config.status was made for.
12048config_files="$ac_config_files"
12049config_headers="$ac_config_headers"
12050config_commands="$ac_config_commands"
12051
12052_ACEOF
12053
12054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12055ac_cs_usage="\
12056\`$as_me' instantiates files and other configuration actions
12057from templates according to the current configuration.  Unless the files
12058and actions are specified as TAGs, all are instantiated by default.
12059
12060Usage: $0 [OPTION]... [TAG]...
12061
12062  -h, --help       print this help, then exit
12063  -V, --version    print version number and configuration settings, then exit
12064  -q, --quiet, --silent
12065                   do not print progress messages
12066  -d, --debug      don't remove temporary files
12067      --recheck    update $as_me by reconfiguring in the same conditions
12068      --file=FILE[:TEMPLATE]
12069                   instantiate the configuration file FILE
12070      --header=FILE[:TEMPLATE]
12071                   instantiate the configuration header FILE
12072
12073Configuration files:
12074$config_files
12075
12076Configuration headers:
12077$config_headers
12078
12079Configuration commands:
12080$config_commands
12081
12082Report bugs to the package provider."
12083
12084_ACEOF
12085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12086ac_cs_version="\\
12087package-unused config.status version-unused
12088configured by $0, generated by GNU Autoconf 2.64,
12089  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12090
12091Copyright (C) 2009 Free Software Foundation, Inc.
12092This config.status script is free software; the Free Software Foundation
12093gives unlimited permission to copy, distribute and modify it."
12094
12095ac_pwd='$ac_pwd'
12096srcdir='$srcdir'
12097INSTALL='$INSTALL'
12098AWK='$AWK'
12099test -n "\$AWK" || AWK=awk
12100_ACEOF
12101
12102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103# The default lists apply if the user does not specify any file.
12104ac_need_defaults=:
12105while test $# != 0
12106do
12107  case $1 in
12108  --*=*)
12109    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12110    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12111    ac_shift=:
12112    ;;
12113  *)
12114    ac_option=$1
12115    ac_optarg=$2
12116    ac_shift=shift
12117    ;;
12118  esac
12119
12120  case $ac_option in
12121  # Handling of the options.
12122  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12123    ac_cs_recheck=: ;;
12124  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12125    $as_echo "$ac_cs_version"; exit ;;
12126  --debug | --debu | --deb | --de | --d | -d )
12127    debug=: ;;
12128  --file | --fil | --fi | --f )
12129    $ac_shift
12130    case $ac_optarg in
12131    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12132    esac
12133    as_fn_append CONFIG_FILES " '$ac_optarg'"
12134    ac_need_defaults=false;;
12135  --header | --heade | --head | --hea )
12136    $ac_shift
12137    case $ac_optarg in
12138    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12139    esac
12140    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12141    ac_need_defaults=false;;
12142  --he | --h)
12143    # Conflict between --help and --header
12144    as_fn_error "ambiguous option: \`$1'
12145Try \`$0 --help' for more information.";;
12146  --help | --hel | -h )
12147    $as_echo "$ac_cs_usage"; exit ;;
12148  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12149  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12150    ac_cs_silent=: ;;
12151
12152  # This is an error.
12153  -*) as_fn_error "unrecognized option: \`$1'
12154Try \`$0 --help' for more information." ;;
12155
12156  *) as_fn_append ac_config_targets " $1"
12157     ac_need_defaults=false ;;
12158
12159  esac
12160  shift
12161done
12162
12163ac_configure_extra_args=
12164
12165if $ac_cs_silent; then
12166  exec 6>/dev/null
12167  ac_configure_extra_args="$ac_configure_extra_args --silent"
12168fi
12169
12170_ACEOF
12171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12172if \$ac_cs_recheck; then
12173  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12174  shift
12175  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12176  CONFIG_SHELL='$SHELL'
12177  export CONFIG_SHELL
12178  exec "\$@"
12179fi
12180
12181_ACEOF
12182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183exec 5>>config.log
12184{
12185  echo
12186  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12187## Running $as_me. ##
12188_ASBOX
12189  $as_echo "$ac_log"
12190} >&5
12191
12192_ACEOF
12193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194#
12195# INIT-COMMANDS
12196#
12197
12198srcdir="$srcdir"
12199host="$host"
12200target="$target"
12201with_multisubdir="$with_multisubdir"
12202with_multisrctop="$with_multisrctop"
12203with_target_subdir="$with_target_subdir"
12204ac_configure_args="${multilib_arg} ${ac_configure_args}"
12205multi_basedir="$multi_basedir"
12206CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12207CC="$CC"
12208CXX="$CXX"
12209GFORTRAN="$GFORTRAN"
12210GCJ="$GCJ"
12211
12212
12213# The HP-UX ksh and POSIX shell print the target directory to stdout
12214# if CDPATH is set.
12215(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12216
12217sed_quote_subst='$sed_quote_subst'
12218double_quote_subst='$double_quote_subst'
12219delay_variable_subst='$delay_variable_subst'
12220AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12221DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12222OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12223macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12224macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12225enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12226enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12227pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12228enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12229SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12230ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12231host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12232host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12233host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12234build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12235build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12236build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12237SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12238Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12239GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12240EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12241FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12242LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12243NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12244LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12245max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12246ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12247exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12248lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12249lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12250lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12251reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12252reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12253deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12254file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12255AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12256AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12257STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12258RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12259old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12260old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12261old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12262lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12263CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12264CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12265compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12266GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12267lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12268lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12269lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12270lt_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"`'
12271objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12272MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12273lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12274lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12275lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12276lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12277lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12278need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12279DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12280NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12281LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12282OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12283OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12284libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12285shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12286extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12287archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12288enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12289export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12290whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12291compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12292old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12293old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12294archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12295archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12296module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12297module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12298with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12299allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12300no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12301hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12302hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12303hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12304hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12305hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12306hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12307hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12308hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12309inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12310link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12311fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12312always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12313export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12314exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12315include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12316prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12317file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12318variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12319need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12320need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12321version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12322runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12323shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12324shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12325libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12326library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12327soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12328install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12329postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12330postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12331finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12332finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12333hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12334sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12335sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12336hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12337enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12338enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12339enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12340old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12341striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12342
12343LTCC='$LTCC'
12344LTCFLAGS='$LTCFLAGS'
12345compiler='$compiler_DEFAULT'
12346
12347# A function that is used when there is no print builtin or printf.
12348func_fallback_echo ()
12349{
12350  eval 'cat <<_LTECHO_EOF
12351\$1
12352_LTECHO_EOF'
12353}
12354
12355# Quote evaled strings.
12356for var in AS \
12357DLLTOOL \
12358OBJDUMP \
12359SHELL \
12360ECHO \
12361SED \
12362GREP \
12363EGREP \
12364FGREP \
12365LD \
12366NM \
12367LN_S \
12368lt_SP2NL \
12369lt_NL2SP \
12370reload_flag \
12371deplibs_check_method \
12372file_magic_cmd \
12373AR \
12374AR_FLAGS \
12375STRIP \
12376RANLIB \
12377CC \
12378CFLAGS \
12379compiler \
12380lt_cv_sys_global_symbol_pipe \
12381lt_cv_sys_global_symbol_to_cdecl \
12382lt_cv_sys_global_symbol_to_c_name_address \
12383lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12384lt_prog_compiler_no_builtin_flag \
12385lt_prog_compiler_wl \
12386lt_prog_compiler_pic \
12387lt_prog_compiler_static \
12388lt_cv_prog_compiler_c_o \
12389need_locks \
12390DSYMUTIL \
12391NMEDIT \
12392LIPO \
12393OTOOL \
12394OTOOL64 \
12395shrext_cmds \
12396export_dynamic_flag_spec \
12397whole_archive_flag_spec \
12398compiler_needs_object \
12399with_gnu_ld \
12400allow_undefined_flag \
12401no_undefined_flag \
12402hardcode_libdir_flag_spec \
12403hardcode_libdir_flag_spec_ld \
12404hardcode_libdir_separator \
12405fix_srcfile_path \
12406exclude_expsyms \
12407include_expsyms \
12408file_list_spec \
12409variables_saved_for_relink \
12410libname_spec \
12411library_names_spec \
12412soname_spec \
12413install_override_mode \
12414finish_eval \
12415old_striplib \
12416striplib; do
12417    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12418    *[\\\\\\\`\\"\\\$]*)
12419      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12420      ;;
12421    *)
12422      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12423      ;;
12424    esac
12425done
12426
12427# Double-quote double-evaled strings.
12428for var in reload_cmds \
12429old_postinstall_cmds \
12430old_postuninstall_cmds \
12431old_archive_cmds \
12432extract_expsyms_cmds \
12433old_archive_from_new_cmds \
12434old_archive_from_expsyms_cmds \
12435archive_cmds \
12436archive_expsym_cmds \
12437module_cmds \
12438module_expsym_cmds \
12439export_symbols_cmds \
12440prelink_cmds \
12441postinstall_cmds \
12442postuninstall_cmds \
12443finish_cmds \
12444sys_lib_search_path_spec \
12445sys_lib_dlsearch_path_spec; do
12446    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12447    *[\\\\\\\`\\"\\\$]*)
12448      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12449      ;;
12450    *)
12451      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12452      ;;
12453    esac
12454done
12455
12456ac_aux_dir='$ac_aux_dir'
12457xsi_shell='$xsi_shell'
12458lt_shell_append='$lt_shell_append'
12459
12460# See if we are running on zsh, and set the options which allow our
12461# commands through without removal of \ escapes INIT.
12462if test -n "\${ZSH_VERSION+set}" ; then
12463   setopt NO_GLOB_SUBST
12464fi
12465
12466
12467    PACKAGE='$PACKAGE'
12468    VERSION='$VERSION'
12469    TIMESTAMP='$TIMESTAMP'
12470    RM='$RM'
12471    ofile='$ofile'
12472
12473
12474
12475
12476_ACEOF
12477
12478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12479
12480# Handling of arguments.
12481for ac_config_target in $ac_config_targets
12482do
12483  case $ac_config_target in
12484    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12485    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12486    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12487    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12488
12489  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12490  esac
12491done
12492
12493
12494# If the user did not use the arguments to specify the items to instantiate,
12495# then the envvar interface is used.  Set only those that are not.
12496# We use the long form for the default assignment because of an extremely
12497# bizarre bug on SunOS 4.1.3.
12498if $ac_need_defaults; then
12499  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12500  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12501  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12502fi
12503
12504# Have a temporary directory for convenience.  Make it in the build tree
12505# simply because there is no reason against having it here, and in addition,
12506# creating and moving files from /tmp can sometimes cause problems.
12507# Hook for its removal unless debugging.
12508# Note that there is a small window in which the directory will not be cleaned:
12509# after its creation but before its name has been assigned to `$tmp'.
12510$debug ||
12511{
12512  tmp=
12513  trap 'exit_status=$?
12514  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12515' 0
12516  trap 'as_fn_exit 1' 1 2 13 15
12517}
12518# Create a (secure) tmp directory for tmp files.
12519
12520{
12521  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12522  test -n "$tmp" && test -d "$tmp"
12523}  ||
12524{
12525  tmp=./conf$$-$RANDOM
12526  (umask 077 && mkdir "$tmp")
12527} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12528
12529# Set up the scripts for CONFIG_FILES section.
12530# No need to generate them if there are no CONFIG_FILES.
12531# This happens for instance with `./config.status config.h'.
12532if test -n "$CONFIG_FILES"; then
12533
12534
12535ac_cr=`echo X | tr X '\015'`
12536# On cygwin, bash can eat \r inside `` if the user requested igncr.
12537# But we know of no other shell where ac_cr would be empty at this
12538# point, so we can use a bashism as a fallback.
12539if test "x$ac_cr" = x; then
12540  eval ac_cr=\$\'\\r\'
12541fi
12542ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12543if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12544  ac_cs_awk_cr='\r'
12545else
12546  ac_cs_awk_cr=$ac_cr
12547fi
12548
12549echo 'BEGIN {' >"$tmp/subs1.awk" &&
12550_ACEOF
12551
12552
12553{
12554  echo "cat >conf$$subs.awk <<_ACEOF" &&
12555  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12556  echo "_ACEOF"
12557} >conf$$subs.sh ||
12558  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12559ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12560ac_delim='%!_!# '
12561for ac_last_try in false false false false false :; do
12562  . ./conf$$subs.sh ||
12563    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12564
12565  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12566  if test $ac_delim_n = $ac_delim_num; then
12567    break
12568  elif $ac_last_try; then
12569    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12570  else
12571    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12572  fi
12573done
12574rm -f conf$$subs.sh
12575
12576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12578_ACEOF
12579sed -n '
12580h
12581s/^/S["/; s/!.*/"]=/
12582p
12583g
12584s/^[^!]*!//
12585:repl
12586t repl
12587s/'"$ac_delim"'$//
12588t delim
12589:nl
12590h
12591s/\(.\{148\}\).*/\1/
12592t more1
12593s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12594p
12595n
12596b repl
12597:more1
12598s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12599p
12600g
12601s/.\{148\}//
12602t nl
12603:delim
12604h
12605s/\(.\{148\}\).*/\1/
12606t more2
12607s/["\\]/\\&/g; s/^/"/; s/$/"/
12608p
12609b
12610:more2
12611s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12612p
12613g
12614s/.\{148\}//
12615t delim
12616' <conf$$subs.awk | sed '
12617/^[^""]/{
12618  N
12619  s/\n//
12620}
12621' >>$CONFIG_STATUS || ac_write_fail=1
12622rm -f conf$$subs.awk
12623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12624_ACAWK
12625cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12626  for (key in S) S_is_set[key] = 1
12627  FS = ""
12628
12629}
12630{
12631  line = $ 0
12632  nfields = split(line, field, "@")
12633  substed = 0
12634  len = length(field[1])
12635  for (i = 2; i < nfields; i++) {
12636    key = field[i]
12637    keylen = length(key)
12638    if (S_is_set[key]) {
12639      value = S[key]
12640      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12641      len += length(value) + length(field[++i])
12642      substed = 1
12643    } else
12644      len += 1 + keylen
12645  }
12646
12647  print line
12648}
12649
12650_ACAWK
12651_ACEOF
12652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12653if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12654  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12655else
12656  cat
12657fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12658  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12659_ACEOF
12660
12661# VPATH may cause trouble with some makes, so we remove $(srcdir),
12662# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12663# trailing colons and then remove the whole line if VPATH becomes empty
12664# (actually we leave an empty line to preserve line numbers).
12665if test "x$srcdir" = x.; then
12666  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12667s/:*\$(srcdir):*/:/
12668s/:*\${srcdir}:*/:/
12669s/:*@srcdir@:*/:/
12670s/^\([^=]*=[	 ]*\):*/\1/
12671s/:*$//
12672s/^[^=]*=[	 ]*$//
12673}'
12674fi
12675
12676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12677fi # test -n "$CONFIG_FILES"
12678
12679# Set up the scripts for CONFIG_HEADERS section.
12680# No need to generate them if there are no CONFIG_HEADERS.
12681# This happens for instance with `./config.status Makefile'.
12682if test -n "$CONFIG_HEADERS"; then
12683cat >"$tmp/defines.awk" <<\_ACAWK ||
12684BEGIN {
12685_ACEOF
12686
12687# Transform confdefs.h into an awk script `defines.awk', embedded as
12688# here-document in config.status, that substitutes the proper values into
12689# config.h.in to produce config.h.
12690
12691# Create a delimiter string that does not exist in confdefs.h, to ease
12692# handling of long lines.
12693ac_delim='%!_!# '
12694for ac_last_try in false false :; do
12695  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12696  if test -z "$ac_t"; then
12697    break
12698  elif $ac_last_try; then
12699    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12700  else
12701    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12702  fi
12703done
12704
12705# For the awk script, D is an array of macro values keyed by name,
12706# likewise P contains macro parameters if any.  Preserve backslash
12707# newline sequences.
12708
12709ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12710sed -n '
12711s/.\{148\}/&'"$ac_delim"'/g
12712t rset
12713:rset
12714s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12715t def
12716d
12717:def
12718s/\\$//
12719t bsnl
12720s/["\\]/\\&/g
12721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12722D["\1"]=" \3"/p
12723s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12724d
12725:bsnl
12726s/["\\]/\\&/g
12727s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12728D["\1"]=" \3\\\\\\n"\\/p
12729t cont
12730s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12731t cont
12732d
12733:cont
12734n
12735s/.\{148\}/&'"$ac_delim"'/g
12736t clear
12737:clear
12738s/\\$//
12739t bsnlc
12740s/["\\]/\\&/g; s/^/"/; s/$/"/p
12741d
12742:bsnlc
12743s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12744b cont
12745' <confdefs.h | sed '
12746s/'"$ac_delim"'/"\\\
12747"/g' >>$CONFIG_STATUS || ac_write_fail=1
12748
12749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12750  for (key in D) D_is_set[key] = 1
12751  FS = ""
12752}
12753/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12754  line = \$ 0
12755  split(line, arg, " ")
12756  if (arg[1] == "#") {
12757    defundef = arg[2]
12758    mac1 = arg[3]
12759  } else {
12760    defundef = substr(arg[1], 2)
12761    mac1 = arg[2]
12762  }
12763  split(mac1, mac2, "(") #)
12764  macro = mac2[1]
12765  prefix = substr(line, 1, index(line, defundef) - 1)
12766  if (D_is_set[macro]) {
12767    # Preserve the white space surrounding the "#".
12768    print prefix "define", macro P[macro] D[macro]
12769    next
12770  } else {
12771    # Replace #undef with comments.  This is necessary, for example,
12772    # in the case of _POSIX_SOURCE, which is predefined and required
12773    # on some systems where configure will not decide to define it.
12774    if (defundef == "undef") {
12775      print "/*", prefix defundef, macro, "*/"
12776      next
12777    }
12778  }
12779}
12780{ print }
12781_ACAWK
12782_ACEOF
12783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12785fi # test -n "$CONFIG_HEADERS"
12786
12787
12788eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12789shift
12790for ac_tag
12791do
12792  case $ac_tag in
12793  :[FHLC]) ac_mode=$ac_tag; continue;;
12794  esac
12795  case $ac_mode$ac_tag in
12796  :[FHL]*:*);;
12797  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12798  :[FH]-) ac_tag=-:-;;
12799  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12800  esac
12801  ac_save_IFS=$IFS
12802  IFS=:
12803  set x $ac_tag
12804  IFS=$ac_save_IFS
12805  shift
12806  ac_file=$1
12807  shift
12808
12809  case $ac_mode in
12810  :L) ac_source=$1;;
12811  :[FH])
12812    ac_file_inputs=
12813    for ac_f
12814    do
12815      case $ac_f in
12816      -) ac_f="$tmp/stdin";;
12817      *) # Look for the file first in the build tree, then in the source tree
12818	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12819	 # because $ac_f cannot contain `:'.
12820	 test -f "$ac_f" ||
12821	   case $ac_f in
12822	   [\\/$]*) false;;
12823	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12824	   esac ||
12825	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12826      esac
12827      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12828      as_fn_append ac_file_inputs " '$ac_f'"
12829    done
12830
12831    # Let's still pretend it is `configure' which instantiates (i.e., don't
12832    # use $as_me), people would be surprised to read:
12833    #    /* config.h.  Generated by config.status.  */
12834    configure_input='Generated from '`
12835	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12836	`' by configure.'
12837    if test x"$ac_file" != x-; then
12838      configure_input="$ac_file.  $configure_input"
12839      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12840$as_echo "$as_me: creating $ac_file" >&6;}
12841    fi
12842    # Neutralize special characters interpreted by sed in replacement strings.
12843    case $configure_input in #(
12844    *\&* | *\|* | *\\* )
12845       ac_sed_conf_input=`$as_echo "$configure_input" |
12846       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12847    *) ac_sed_conf_input=$configure_input;;
12848    esac
12849
12850    case $ac_tag in
12851    *:-:* | *:-) cat >"$tmp/stdin" \
12852      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12853    esac
12854    ;;
12855  esac
12856
12857  ac_dir=`$as_dirname -- "$ac_file" ||
12858$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12859	 X"$ac_file" : 'X\(//\)[^/]' \| \
12860	 X"$ac_file" : 'X\(//\)$' \| \
12861	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12862$as_echo X"$ac_file" |
12863    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12864	    s//\1/
12865	    q
12866	  }
12867	  /^X\(\/\/\)[^/].*/{
12868	    s//\1/
12869	    q
12870	  }
12871	  /^X\(\/\/\)$/{
12872	    s//\1/
12873	    q
12874	  }
12875	  /^X\(\/\).*/{
12876	    s//\1/
12877	    q
12878	  }
12879	  s/.*/./; q'`
12880  as_dir="$ac_dir"; as_fn_mkdir_p
12881  ac_builddir=.
12882
12883case "$ac_dir" in
12884.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12885*)
12886  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12887  # A ".." for each directory in $ac_dir_suffix.
12888  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12889  case $ac_top_builddir_sub in
12890  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12891  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12892  esac ;;
12893esac
12894ac_abs_top_builddir=$ac_pwd
12895ac_abs_builddir=$ac_pwd$ac_dir_suffix
12896# for backward compatibility:
12897ac_top_builddir=$ac_top_build_prefix
12898
12899case $srcdir in
12900  .)  # We are building in place.
12901    ac_srcdir=.
12902    ac_top_srcdir=$ac_top_builddir_sub
12903    ac_abs_top_srcdir=$ac_pwd ;;
12904  [\\/]* | ?:[\\/]* )  # Absolute name.
12905    ac_srcdir=$srcdir$ac_dir_suffix;
12906    ac_top_srcdir=$srcdir
12907    ac_abs_top_srcdir=$srcdir ;;
12908  *) # Relative name.
12909    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12910    ac_top_srcdir=$ac_top_build_prefix$srcdir
12911    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12912esac
12913ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12914
12915
12916  case $ac_mode in
12917  :F)
12918  #
12919  # CONFIG_FILE
12920  #
12921
12922  case $INSTALL in
12923  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12924  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12925  esac
12926_ACEOF
12927
12928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12929# If the template does not know about datarootdir, expand it.
12930# FIXME: This hack should be removed a few years after 2.60.
12931ac_datarootdir_hack=; ac_datarootdir_seen=
12932ac_sed_dataroot='
12933/datarootdir/ {
12934  p
12935  q
12936}
12937/@datadir@/p
12938/@docdir@/p
12939/@infodir@/p
12940/@localedir@/p
12941/@mandir@/p'
12942case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12943*datarootdir*) ac_datarootdir_seen=yes;;
12944*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12945  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12946$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12947_ACEOF
12948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12949  ac_datarootdir_hack='
12950  s&@datadir@&$datadir&g
12951  s&@docdir@&$docdir&g
12952  s&@infodir@&$infodir&g
12953  s&@localedir@&$localedir&g
12954  s&@mandir@&$mandir&g
12955  s&\\\${datarootdir}&$datarootdir&g' ;;
12956esac
12957_ACEOF
12958
12959# Neutralize VPATH when `$srcdir' = `.'.
12960# Shell code in configure.ac might set extrasub.
12961# FIXME: do we really want to maintain this feature?
12962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12963ac_sed_extra="$ac_vpsub
12964$extrasub
12965_ACEOF
12966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12967:t
12968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12969s|@configure_input@|$ac_sed_conf_input|;t t
12970s&@top_builddir@&$ac_top_builddir_sub&;t t
12971s&@top_build_prefix@&$ac_top_build_prefix&;t t
12972s&@srcdir@&$ac_srcdir&;t t
12973s&@abs_srcdir@&$ac_abs_srcdir&;t t
12974s&@top_srcdir@&$ac_top_srcdir&;t t
12975s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12976s&@builddir@&$ac_builddir&;t t
12977s&@abs_builddir@&$ac_abs_builddir&;t t
12978s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12979s&@INSTALL@&$ac_INSTALL&;t t
12980$ac_datarootdir_hack
12981"
12982eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12983  || as_fn_error "could not create $ac_file" "$LINENO" 5
12984
12985test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12986  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12987  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12989which seems to be undefined.  Please make sure it is defined." >&5
12990$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12991which seems to be undefined.  Please make sure it is defined." >&2;}
12992
12993  rm -f "$tmp/stdin"
12994  case $ac_file in
12995  -) cat "$tmp/out" && rm -f "$tmp/out";;
12996  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12997  esac \
12998  || as_fn_error "could not create $ac_file" "$LINENO" 5
12999 ;;
13000  :H)
13001  #
13002  # CONFIG_HEADER
13003  #
13004  if test x"$ac_file" != x-; then
13005    {
13006      $as_echo "/* $configure_input  */" \
13007      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13008    } >"$tmp/config.h" \
13009      || as_fn_error "could not create $ac_file" "$LINENO" 5
13010    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13011      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13012$as_echo "$as_me: $ac_file is unchanged" >&6;}
13013    else
13014      rm -f "$ac_file"
13015      mv "$tmp/config.h" "$ac_file" \
13016	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13017    fi
13018  else
13019    $as_echo "/* $configure_input  */" \
13020      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13021      || as_fn_error "could not create -" "$LINENO" 5
13022  fi
13023 ;;
13024
13025  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13026$as_echo "$as_me: executing $ac_file commands" >&6;}
13027 ;;
13028  esac
13029
13030
13031  case $ac_file$ac_mode in
13032    "default-1":C)
13033# Only add multilib support code if we just rebuilt the top-level
13034# Makefile.
13035case " $CONFIG_FILES " in
13036 *" Makefile "*)
13037   ac_file=Makefile . ${multi_basedir}/config-ml.in
13038   ;;
13039esac ;;
13040    "libtool":C)
13041
13042    # See if we are running on zsh, and set the options which allow our
13043    # commands through without removal of \ escapes.
13044    if test -n "${ZSH_VERSION+set}" ; then
13045      setopt NO_GLOB_SUBST
13046    fi
13047
13048    cfgfile="${ofile}T"
13049    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13050    $RM "$cfgfile"
13051
13052    cat <<_LT_EOF >> "$cfgfile"
13053#! $SHELL
13054
13055# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13056# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13057# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13058# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13059#
13060#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13061#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13062#   Written by Gordon Matzigkeit, 1996
13063#
13064#   This file is part of GNU Libtool.
13065#
13066# GNU Libtool is free software; you can redistribute it and/or
13067# modify it under the terms of the GNU General Public License as
13068# published by the Free Software Foundation; either version 2 of
13069# the License, or (at your option) any later version.
13070#
13071# As a special exception to the GNU General Public License,
13072# if you distribute this file as part of a program or library that
13073# is built using GNU Libtool, you may include this file under the
13074# same distribution terms that you use for the rest of that program.
13075#
13076# GNU Libtool is distributed in the hope that it will be useful,
13077# but WITHOUT ANY WARRANTY; without even the implied warranty of
13078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13079# GNU General Public License for more details.
13080#
13081# You should have received a copy of the GNU General Public License
13082# along with GNU Libtool; see the file COPYING.  If not, a copy
13083# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13084# obtained by writing to the Free Software Foundation, Inc.,
13085# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13086
13087
13088# The names of the tagged configurations supported by this script.
13089available_tags=""
13090
13091# ### BEGIN LIBTOOL CONFIG
13092
13093# Assembler program.
13094AS=$lt_AS
13095
13096# DLL creation program.
13097DLLTOOL=$lt_DLLTOOL
13098
13099# Object dumper program.
13100OBJDUMP=$lt_OBJDUMP
13101
13102# Which release of libtool.m4 was used?
13103macro_version=$macro_version
13104macro_revision=$macro_revision
13105
13106# Whether or not to build shared libraries.
13107build_libtool_libs=$enable_shared
13108
13109# Whether or not to build static libraries.
13110build_old_libs=$enable_static
13111
13112# What type of objects to build.
13113pic_mode=$pic_mode
13114
13115# Whether or not to optimize for fast installation.
13116fast_install=$enable_fast_install
13117
13118# Shell to use when invoking shell scripts.
13119SHELL=$lt_SHELL
13120
13121# An echo program that protects backslashes.
13122ECHO=$lt_ECHO
13123
13124# The host system.
13125host_alias=$host_alias
13126host=$host
13127host_os=$host_os
13128
13129# The build system.
13130build_alias=$build_alias
13131build=$build
13132build_os=$build_os
13133
13134# A sed program that does not truncate output.
13135SED=$lt_SED
13136
13137# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13138Xsed="\$SED -e 1s/^X//"
13139
13140# A grep program that handles long lines.
13141GREP=$lt_GREP
13142
13143# An ERE matcher.
13144EGREP=$lt_EGREP
13145
13146# A literal string matcher.
13147FGREP=$lt_FGREP
13148
13149# A BSD- or MS-compatible name lister.
13150NM=$lt_NM
13151
13152# Whether we need soft or hard links.
13153LN_S=$lt_LN_S
13154
13155# What is the maximum length of a command?
13156max_cmd_len=$max_cmd_len
13157
13158# Object file suffix (normally "o").
13159objext=$ac_objext
13160
13161# Executable file suffix (normally "").
13162exeext=$exeext
13163
13164# whether the shell understands "unset".
13165lt_unset=$lt_unset
13166
13167# turn spaces into newlines.
13168SP2NL=$lt_lt_SP2NL
13169
13170# turn newlines into spaces.
13171NL2SP=$lt_lt_NL2SP
13172
13173# Method to check whether dependent libraries are shared objects.
13174deplibs_check_method=$lt_deplibs_check_method
13175
13176# Command to use when deplibs_check_method == "file_magic".
13177file_magic_cmd=$lt_file_magic_cmd
13178
13179# The archiver.
13180AR=$lt_AR
13181AR_FLAGS=$lt_AR_FLAGS
13182
13183# A symbol stripping program.
13184STRIP=$lt_STRIP
13185
13186# Commands used to install an old-style archive.
13187RANLIB=$lt_RANLIB
13188old_postinstall_cmds=$lt_old_postinstall_cmds
13189old_postuninstall_cmds=$lt_old_postuninstall_cmds
13190
13191# Whether to use a lock for old archive extraction.
13192lock_old_archive_extraction=$lock_old_archive_extraction
13193
13194# A C compiler.
13195LTCC=$lt_CC
13196
13197# LTCC compiler flags.
13198LTCFLAGS=$lt_CFLAGS
13199
13200# Take the output of nm and produce a listing of raw symbols and C names.
13201global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13202
13203# Transform the output of nm in a proper C declaration.
13204global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13205
13206# Transform the output of nm in a C name address pair.
13207global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13208
13209# Transform the output of nm in a C name address pair when lib prefix is needed.
13210global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13211
13212# The name of the directory that contains temporary libtool files.
13213objdir=$objdir
13214
13215# Used to examine libraries when file_magic_cmd begins with "file".
13216MAGIC_CMD=$MAGIC_CMD
13217
13218# Must we lock files when doing compilation?
13219need_locks=$lt_need_locks
13220
13221# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13222DSYMUTIL=$lt_DSYMUTIL
13223
13224# Tool to change global to local symbols on Mac OS X.
13225NMEDIT=$lt_NMEDIT
13226
13227# Tool to manipulate fat objects and archives on Mac OS X.
13228LIPO=$lt_LIPO
13229
13230# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13231OTOOL=$lt_OTOOL
13232
13233# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13234OTOOL64=$lt_OTOOL64
13235
13236# Old archive suffix (normally "a").
13237libext=$libext
13238
13239# Shared library suffix (normally ".so").
13240shrext_cmds=$lt_shrext_cmds
13241
13242# The commands to extract the exported symbol list from a shared archive.
13243extract_expsyms_cmds=$lt_extract_expsyms_cmds
13244
13245# Variables whose values should be saved in libtool wrapper scripts and
13246# restored at link time.
13247variables_saved_for_relink=$lt_variables_saved_for_relink
13248
13249# Do we need the "lib" prefix for modules?
13250need_lib_prefix=$need_lib_prefix
13251
13252# Do we need a version for libraries?
13253need_version=$need_version
13254
13255# Library versioning type.
13256version_type=$version_type
13257
13258# Shared library runtime path variable.
13259runpath_var=$runpath_var
13260
13261# Shared library path variable.
13262shlibpath_var=$shlibpath_var
13263
13264# Is shlibpath searched before the hard-coded library search path?
13265shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13266
13267# Format of library name prefix.
13268libname_spec=$lt_libname_spec
13269
13270# List of archive names.  First name is the real one, the rest are links.
13271# The last name is the one that the linker finds with -lNAME
13272library_names_spec=$lt_library_names_spec
13273
13274# The coded name of the library, if different from the real name.
13275soname_spec=$lt_soname_spec
13276
13277# Permission mode override for installation of shared libraries.
13278install_override_mode=$lt_install_override_mode
13279
13280# Command to use after installation of a shared archive.
13281postinstall_cmds=$lt_postinstall_cmds
13282
13283# Command to use after uninstallation of a shared archive.
13284postuninstall_cmds=$lt_postuninstall_cmds
13285
13286# Commands used to finish a libtool library installation in a directory.
13287finish_cmds=$lt_finish_cmds
13288
13289# As "finish_cmds", except a single script fragment to be evaled but
13290# not shown.
13291finish_eval=$lt_finish_eval
13292
13293# Whether we should hardcode library paths into libraries.
13294hardcode_into_libs=$hardcode_into_libs
13295
13296# Compile-time system search path for libraries.
13297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13298
13299# Run-time system search path for libraries.
13300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13301
13302# Whether dlopen is supported.
13303dlopen_support=$enable_dlopen
13304
13305# Whether dlopen of programs is supported.
13306dlopen_self=$enable_dlopen_self
13307
13308# Whether dlopen of statically linked programs is supported.
13309dlopen_self_static=$enable_dlopen_self_static
13310
13311# Commands to strip libraries.
13312old_striplib=$lt_old_striplib
13313striplib=$lt_striplib
13314
13315
13316# The linker used to build libraries.
13317LD=$lt_LD
13318
13319# How to create reloadable object files.
13320reload_flag=$lt_reload_flag
13321reload_cmds=$lt_reload_cmds
13322
13323# Commands used to build an old-style archive.
13324old_archive_cmds=$lt_old_archive_cmds
13325
13326# A language specific compiler.
13327CC=$lt_compiler
13328
13329# Is the compiler the GNU compiler?
13330with_gcc=$GCC
13331
13332# Compiler flag to turn off builtin functions.
13333no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13334
13335# How to pass a linker flag through the compiler.
13336wl=$lt_lt_prog_compiler_wl
13337
13338# Additional compiler flags for building library objects.
13339pic_flag=$lt_lt_prog_compiler_pic
13340
13341# Compiler flag to prevent dynamic linking.
13342link_static_flag=$lt_lt_prog_compiler_static
13343
13344# Does compiler simultaneously support -c and -o options?
13345compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13346
13347# Whether or not to add -lc for building shared libraries.
13348build_libtool_need_lc=$archive_cmds_need_lc
13349
13350# Whether or not to disallow shared libs when runtime libs are static.
13351allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13352
13353# Compiler flag to allow reflexive dlopens.
13354export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13355
13356# Compiler flag to generate shared objects directly from archives.
13357whole_archive_flag_spec=$lt_whole_archive_flag_spec
13358
13359# Whether the compiler copes with passing no objects directly.
13360compiler_needs_object=$lt_compiler_needs_object
13361
13362# Create an old-style archive from a shared archive.
13363old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13364
13365# Create a temporary old-style archive to link instead of a shared archive.
13366old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13367
13368# Commands used to build a shared archive.
13369archive_cmds=$lt_archive_cmds
13370archive_expsym_cmds=$lt_archive_expsym_cmds
13371
13372# Commands used to build a loadable module if different from building
13373# a shared archive.
13374module_cmds=$lt_module_cmds
13375module_expsym_cmds=$lt_module_expsym_cmds
13376
13377# Whether we are building with GNU ld or not.
13378with_gnu_ld=$lt_with_gnu_ld
13379
13380# Flag that allows shared libraries with undefined symbols to be built.
13381allow_undefined_flag=$lt_allow_undefined_flag
13382
13383# Flag that enforces no undefined symbols.
13384no_undefined_flag=$lt_no_undefined_flag
13385
13386# Flag to hardcode \$libdir into a binary during linking.
13387# This must work even if \$libdir does not exist
13388hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13389
13390# If ld is used when linking, flag to hardcode \$libdir into a binary
13391# during linking.  This must work even if \$libdir does not exist.
13392hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13393
13394# Whether we need a single "-rpath" flag with a separated argument.
13395hardcode_libdir_separator=$lt_hardcode_libdir_separator
13396
13397# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13398# DIR into the resulting binary.
13399hardcode_direct=$hardcode_direct
13400
13401# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13402# DIR into the resulting binary and the resulting library dependency is
13403# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13404# library is relocated.
13405hardcode_direct_absolute=$hardcode_direct_absolute
13406
13407# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13408# into the resulting binary.
13409hardcode_minus_L=$hardcode_minus_L
13410
13411# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13412# into the resulting binary.
13413hardcode_shlibpath_var=$hardcode_shlibpath_var
13414
13415# Set to "yes" if building a shared library automatically hardcodes DIR
13416# into the library and all subsequent libraries and executables linked
13417# against it.
13418hardcode_automatic=$hardcode_automatic
13419
13420# Set to yes if linker adds runtime paths of dependent libraries
13421# to runtime path list.
13422inherit_rpath=$inherit_rpath
13423
13424# Whether libtool must link a program against all its dependency libraries.
13425link_all_deplibs=$link_all_deplibs
13426
13427# Fix the shell variable \$srcfile for the compiler.
13428fix_srcfile_path=$lt_fix_srcfile_path
13429
13430# Set to "yes" if exported symbols are required.
13431always_export_symbols=$always_export_symbols
13432
13433# The commands to list exported symbols.
13434export_symbols_cmds=$lt_export_symbols_cmds
13435
13436# Symbols that should not be listed in the preloaded symbols.
13437exclude_expsyms=$lt_exclude_expsyms
13438
13439# Symbols that must always be exported.
13440include_expsyms=$lt_include_expsyms
13441
13442# Commands necessary for linking programs (against libraries) with templates.
13443prelink_cmds=$lt_prelink_cmds
13444
13445# Specify filename containing input files.
13446file_list_spec=$lt_file_list_spec
13447
13448# How to hardcode a shared library path into an executable.
13449hardcode_action=$hardcode_action
13450
13451# ### END LIBTOOL CONFIG
13452
13453_LT_EOF
13454
13455  case $host_os in
13456  aix3*)
13457    cat <<\_LT_EOF >> "$cfgfile"
13458# AIX sometimes has problems with the GCC collect2 program.  For some
13459# reason, if we set the COLLECT_NAMES environment variable, the problems
13460# vanish in a puff of smoke.
13461if test "X${COLLECT_NAMES+set}" != Xset; then
13462  COLLECT_NAMES=
13463  export COLLECT_NAMES
13464fi
13465_LT_EOF
13466    ;;
13467  esac
13468
13469
13470ltmain="$ac_aux_dir/ltmain.sh"
13471
13472
13473  # We use sed instead of cat because bash on DJGPP gets confused if
13474  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13475  # text mode, it properly converts lines to CR/LF.  This bash problem
13476  # is reportedly fixed, but why not run on old versions too?
13477  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13478    || (rm -f "$cfgfile"; exit 1)
13479
13480  case $xsi_shell in
13481  yes)
13482    cat << \_LT_EOF >> "$cfgfile"
13483
13484# func_dirname file append nondir_replacement
13485# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13486# otherwise set result to NONDIR_REPLACEMENT.
13487func_dirname ()
13488{
13489  case ${1} in
13490    */*) func_dirname_result="${1%/*}${2}" ;;
13491    *  ) func_dirname_result="${3}" ;;
13492  esac
13493}
13494
13495# func_basename file
13496func_basename ()
13497{
13498  func_basename_result="${1##*/}"
13499}
13500
13501# func_dirname_and_basename file append nondir_replacement
13502# perform func_basename and func_dirname in a single function
13503# call:
13504#   dirname:  Compute the dirname of FILE.  If nonempty,
13505#             add APPEND to the result, otherwise set result
13506#             to NONDIR_REPLACEMENT.
13507#             value returned in "$func_dirname_result"
13508#   basename: Compute filename of FILE.
13509#             value retuned in "$func_basename_result"
13510# Implementation must be kept synchronized with func_dirname
13511# and func_basename. For efficiency, we do not delegate to
13512# those functions but instead duplicate the functionality here.
13513func_dirname_and_basename ()
13514{
13515  case ${1} in
13516    */*) func_dirname_result="${1%/*}${2}" ;;
13517    *  ) func_dirname_result="${3}" ;;
13518  esac
13519  func_basename_result="${1##*/}"
13520}
13521
13522# func_stripname prefix suffix name
13523# strip PREFIX and SUFFIX off of NAME.
13524# PREFIX and SUFFIX must not contain globbing or regex special
13525# characters, hashes, percent signs, but SUFFIX may contain a leading
13526# dot (in which case that matches only a dot).
13527func_stripname ()
13528{
13529  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13530  # positional parameters, so assign one to ordinary parameter first.
13531  func_stripname_result=${3}
13532  func_stripname_result=${func_stripname_result#"${1}"}
13533  func_stripname_result=${func_stripname_result%"${2}"}
13534}
13535
13536# func_opt_split
13537func_opt_split ()
13538{
13539  func_opt_split_opt=${1%%=*}
13540  func_opt_split_arg=${1#*=}
13541}
13542
13543# func_lo2o object
13544func_lo2o ()
13545{
13546  case ${1} in
13547    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13548    *)    func_lo2o_result=${1} ;;
13549  esac
13550}
13551
13552# func_xform libobj-or-source
13553func_xform ()
13554{
13555  func_xform_result=${1%.*}.lo
13556}
13557
13558# func_arith arithmetic-term...
13559func_arith ()
13560{
13561  func_arith_result=$(( $* ))
13562}
13563
13564# func_len string
13565# STRING may not start with a hyphen.
13566func_len ()
13567{
13568  func_len_result=${#1}
13569}
13570
13571_LT_EOF
13572    ;;
13573  *) # Bourne compatible functions.
13574    cat << \_LT_EOF >> "$cfgfile"
13575
13576# func_dirname file append nondir_replacement
13577# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13578# otherwise set result to NONDIR_REPLACEMENT.
13579func_dirname ()
13580{
13581  # Extract subdirectory from the argument.
13582  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13583  if test "X$func_dirname_result" = "X${1}"; then
13584    func_dirname_result="${3}"
13585  else
13586    func_dirname_result="$func_dirname_result${2}"
13587  fi
13588}
13589
13590# func_basename file
13591func_basename ()
13592{
13593  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13594}
13595
13596
13597# func_stripname prefix suffix name
13598# strip PREFIX and SUFFIX off of NAME.
13599# PREFIX and SUFFIX must not contain globbing or regex special
13600# characters, hashes, percent signs, but SUFFIX may contain a leading
13601# dot (in which case that matches only a dot).
13602# func_strip_suffix prefix name
13603func_stripname ()
13604{
13605  case ${2} in
13606    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13607    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13608  esac
13609}
13610
13611# sed scripts:
13612my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13613my_sed_long_arg='1s/^-[^=]*=//'
13614
13615# func_opt_split
13616func_opt_split ()
13617{
13618  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13619  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13620}
13621
13622# func_lo2o object
13623func_lo2o ()
13624{
13625  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13626}
13627
13628# func_xform libobj-or-source
13629func_xform ()
13630{
13631  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13632}
13633
13634# func_arith arithmetic-term...
13635func_arith ()
13636{
13637  func_arith_result=`expr "$@"`
13638}
13639
13640# func_len string
13641# STRING may not start with a hyphen.
13642func_len ()
13643{
13644  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13645}
13646
13647_LT_EOF
13648esac
13649
13650case $lt_shell_append in
13651  yes)
13652    cat << \_LT_EOF >> "$cfgfile"
13653
13654# func_append var value
13655# Append VALUE to the end of shell variable VAR.
13656func_append ()
13657{
13658  eval "$1+=\$2"
13659}
13660_LT_EOF
13661    ;;
13662  *)
13663    cat << \_LT_EOF >> "$cfgfile"
13664
13665# func_append var value
13666# Append VALUE to the end of shell variable VAR.
13667func_append ()
13668{
13669  eval "$1=\$$1\$2"
13670}
13671
13672_LT_EOF
13673    ;;
13674  esac
13675
13676
13677  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13678    || (rm -f "$cfgfile"; exit 1)
13679
13680  mv -f "$cfgfile" "$ofile" ||
13681    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13682  chmod +x "$ofile"
13683
13684 ;;
13685
13686  esac
13687done # for ac_tag
13688
13689
13690as_fn_exit 0
13691_ACEOF
13692ac_clean_files=$ac_clean_files_save
13693
13694test $ac_write_fail = 0 ||
13695  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13696
13697
13698# configure is writing to config.log, and then calls config.status.
13699# config.status does its own redirection, appending to config.log.
13700# Unfortunately, on DOS this fails, as config.log is still kept open
13701# by configure, so config.status won't be able to write to it; its
13702# output is simply discarded.  So we exec the FD to /dev/null,
13703# effectively closing config.log, so it can be properly (re)opened and
13704# appended to by config.status.  When coming back to configure, we
13705# need to make the FD available again.
13706if test "$no_create" != yes; then
13707  ac_cs_success=:
13708  ac_config_status_args=
13709  test "$silent" = yes &&
13710    ac_config_status_args="$ac_config_status_args --quiet"
13711  exec 5>/dev/null
13712  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13713  exec 5>>config.log
13714  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13715  # would make configure fail if this is the last instruction.
13716  $ac_cs_success || as_fn_exit $?
13717fi
13718if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13719  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13720$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13721fi
13722
13723