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
172test \$(( 1 + 1 )) = 2 || exit 1
173
174  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178    PATH=/empty FPATH=/empty; export PATH FPATH
179    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libgo'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="Makefile.am"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605STRUCT_EPOLL_EVENT_FD_OFFSET
606SIZEOF_STRUCT_EPOLL_EVENT
607MATH_FLAG
608STRINGOPS_FLAG
609HAVE_WAIT4_FALSE
610HAVE_WAIT4_TRUE
611HAVE_STRERROR_R_FALSE
612HAVE_STRERROR_R_TRUE
613HAVE_SYS_MMAN_H_FALSE
614HAVE_SYS_MMAN_H_TRUE
615PTHREAD_LIBS
616PTHREAD_CFLAGS
617NET_LIBS
618MATH_LIBS
619USING_SPLIT_STACK_FALSE
620USING_SPLIT_STACK_TRUE
621SPLIT_STACK
622OSCFLAGS
623GO_SYSCALL_OS_ARCH_FILE
624GO_SYSCALL_OS_FILE
625GO_LIBCALL_OS_ARCH_FILE
626GO_LIBCALL_OS_FILE
627GOARCH
628LIBGO_IS_X86_64_FALSE
629LIBGO_IS_X86_64_TRUE
630LIBGO_IS_SPARC64_FALSE
631LIBGO_IS_SPARC64_TRUE
632LIBGO_IS_SPARC_FALSE
633LIBGO_IS_SPARC_TRUE
634LIBGO_IS_PPC64_FALSE
635LIBGO_IS_PPC64_TRUE
636LIBGO_IS_PPC_FALSE
637LIBGO_IS_PPC_TRUE
638LIBGO_IS_MIPSO64_FALSE
639LIBGO_IS_MIPSO64_TRUE
640LIBGO_IS_MIPSN64_FALSE
641LIBGO_IS_MIPSN64_TRUE
642LIBGO_IS_MIPSN32_FALSE
643LIBGO_IS_MIPSN32_TRUE
644LIBGO_IS_MIPSO32_FALSE
645LIBGO_IS_MIPSO32_TRUE
646LIBGO_IS_MIPS_FALSE
647LIBGO_IS_MIPS_TRUE
648LIBGO_IS_M68K_FALSE
649LIBGO_IS_M68K_TRUE
650LIBGO_IS_ARM_FALSE
651LIBGO_IS_ARM_TRUE
652LIBGO_IS_ALPHA_FALSE
653LIBGO_IS_ALPHA_TRUE
654LIBGO_IS_386_FALSE
655LIBGO_IS_386_TRUE
656USE_DEJAGNU
657GOOS
658LIBGO_IS_SOLARIS_FALSE
659LIBGO_IS_SOLARIS_TRUE
660LIBGO_IS_RTEMS_FALSE
661LIBGO_IS_RTEMS_TRUE
662LIBGO_IS_OPENBSD_FALSE
663LIBGO_IS_OPENBSD_TRUE
664LIBGO_IS_NETBSD_FALSE
665LIBGO_IS_NETBSD_TRUE
666LIBGO_IS_LINUX_FALSE
667LIBGO_IS_LINUX_TRUE
668LIBGO_IS_IRIX_FALSE
669LIBGO_IS_IRIX_TRUE
670LIBGO_IS_FREEBSD_FALSE
671LIBGO_IS_FREEBSD_TRUE
672LIBGO_IS_DARWIN_FALSE
673LIBGO_IS_DARWIN_TRUE
674go_include
675LIBFFIINCS
676LIBFFI
677nover_glibgo_toolexeclibdir
678glibgo_toolexeclibdir
679glibgo_toolexecdir
680WERROR
681WARN_FLAGS
682CC_FOR_BUILD
683enable_static
684enable_shared
685CPP
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
691AR
692OBJDUMP
693LN_S
694NM
695ac_ct_DUMPBIN
696DUMPBIN
697LIBTOOL
698OBJCOPY
699RANLIB
700LD
701FGREP
702EGREP
703GREP
704SED
705MAINT
706MAINTAINER_MODE_FALSE
707MAINTAINER_MODE_TRUE
708GOCFLAGS
709GOC
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__quote
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749target_os
750target_vendor
751target_cpu
752target
753host_os
754host_vendor
755host_cpu
756host
757build_os
758build_vendor
759build_cpu
760build
761multi_basedir
762libtool_VERSION
763target_alias
764host_alias
765build_alias
766LIBS
767ECHO_T
768ECHO_N
769ECHO_C
770DEFS
771mandir
772localedir
773libdir
774psdir
775pdfdir
776dvidir
777htmldir
778infodir
779docdir
780oldincludedir
781includedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL'
801ac_subst_files=''
802ac_user_opts='
803enable_option_checking
804enable_multilib
805enable_dependency_tracking
806enable_maintainer_mode
807with_gnu_ld
808enable_shared
809enable_static
810with_pic
811enable_fast_install
812enable_libtool_lock
813enable_werror
814enable_version_specific_runtime_libs
815with_libffi
816with_system_libunwind
817enable_sjlj_exceptions
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CPP
823CPPFLAGS'
824
825
826# Initialize some variables set by options.
827ac_init_help=
828ac_init_version=false
829ac_unrecognized_opts=
830ac_unrecognized_sep=
831# The variables have the same names as the options, with
832# dashes changed to underlines.
833cache_file=/dev/null
834exec_prefix=NONE
835no_create=
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
844verbose=
845x_includes=NONE
846x_libraries=NONE
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
853# (The list follows the same order as the GNU Coding Standards.)
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
878  # If the previous option needs an argument, assign it.
879  if test -n "$ac_prev"; then
880    eval $ac_prev=\$ac_option
881    ac_prev=
882    continue
883  fi
884
885  case $ac_option in
886  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887  *)	ac_optarg=yes ;;
888  esac
889
890  # Accept the important Cygnus configure options, so we can diagnose typos.
891
892  case $ac_dashdash$ac_option in
893  --)
894    ac_dashdash=yes ;;
895
896  -bindir | --bindir | --bindi | --bind | --bin | --bi)
897    ac_prev=bindir ;;
898  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899    bindir=$ac_optarg ;;
900
901  -build | --build | --buil | --bui | --bu)
902    ac_prev=build_alias ;;
903  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904    build_alias=$ac_optarg ;;
905
906  -cache-file | --cache-file | --cache-fil | --cache-fi \
907  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908    ac_prev=cache_file ;;
909  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911    cache_file=$ac_optarg ;;
912
913  --config-cache | -C)
914    cache_file=config.cache ;;
915
916  -datadir | --datadir | --datadi | --datad)
917    ac_prev=datadir ;;
918  -datadir=* | --datadir=* | --datadi=* | --datad=*)
919    datadir=$ac_optarg ;;
920
921  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922  | --dataroo | --dataro | --datar)
923    ac_prev=datarootdir ;;
924  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926    datarootdir=$ac_optarg ;;
927
928  -disable-* | --disable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error "invalid feature name: $ac_useropt"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=no ;;
943
944  -docdir | --docdir | --docdi | --doc | --do)
945    ac_prev=docdir ;;
946  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947    docdir=$ac_optarg ;;
948
949  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950    ac_prev=dvidir ;;
951  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952    dvidir=$ac_optarg ;;
953
954  -enable-* | --enable-*)
955    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956    # Reject names that are not valid shell variable names.
957    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958      as_fn_error "invalid feature name: $ac_useropt"
959    ac_useropt_orig=$ac_useropt
960    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961    case $ac_user_opts in
962      *"
963"enable_$ac_useropt"
964"*) ;;
965      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966	 ac_unrecognized_sep=', ';;
967    esac
968    eval enable_$ac_useropt=\$ac_optarg ;;
969
970  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972  | --exec | --exe | --ex)
973    ac_prev=exec_prefix ;;
974  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976  | --exec=* | --exe=* | --ex=*)
977    exec_prefix=$ac_optarg ;;
978
979  -gas | --gas | --ga | --g)
980    # Obsolete; use --with-gas.
981    with_gas=yes ;;
982
983  -help | --help | --hel | --he | -h)
984    ac_init_help=long ;;
985  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986    ac_init_help=recursive ;;
987  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988    ac_init_help=short ;;
989
990  -host | --host | --hos | --ho)
991    ac_prev=host_alias ;;
992  -host=* | --host=* | --hos=* | --ho=*)
993    host_alias=$ac_optarg ;;
994
995  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996    ac_prev=htmldir ;;
997  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998  | --ht=*)
999    htmldir=$ac_optarg ;;
1000
1001  -includedir | --includedir | --includedi | --included | --include \
1002  | --includ | --inclu | --incl | --inc)
1003    ac_prev=includedir ;;
1004  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005  | --includ=* | --inclu=* | --incl=* | --inc=*)
1006    includedir=$ac_optarg ;;
1007
1008  -infodir | --infodir | --infodi | --infod | --info | --inf)
1009    ac_prev=infodir ;;
1010  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011    infodir=$ac_optarg ;;
1012
1013  -libdir | --libdir | --libdi | --libd)
1014    ac_prev=libdir ;;
1015  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016    libdir=$ac_optarg ;;
1017
1018  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019  | --libexe | --libex | --libe)
1020    ac_prev=libexecdir ;;
1021  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022  | --libexe=* | --libex=* | --libe=*)
1023    libexecdir=$ac_optarg ;;
1024
1025  -localedir | --localedir | --localedi | --localed | --locale)
1026    ac_prev=localedir ;;
1027  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028    localedir=$ac_optarg ;;
1029
1030  -localstatedir | --localstatedir | --localstatedi | --localstated \
1031  | --localstate | --localstat | --localsta | --localst | --locals)
1032    ac_prev=localstatedir ;;
1033  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035    localstatedir=$ac_optarg ;;
1036
1037  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038    ac_prev=mandir ;;
1039  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040    mandir=$ac_optarg ;;
1041
1042  -nfp | --nfp | --nf)
1043    # Obsolete; use --without-fp.
1044    with_fp=no ;;
1045
1046  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047  | --no-cr | --no-c | -n)
1048    no_create=yes ;;
1049
1050  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052    no_recursion=yes ;;
1053
1054  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056  | --oldin | --oldi | --old | --ol | --o)
1057    ac_prev=oldincludedir ;;
1058  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061    oldincludedir=$ac_optarg ;;
1062
1063  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064    ac_prev=prefix ;;
1065  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066    prefix=$ac_optarg ;;
1067
1068  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069  | --program-pre | --program-pr | --program-p)
1070    ac_prev=program_prefix ;;
1071  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073    program_prefix=$ac_optarg ;;
1074
1075  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076  | --program-suf | --program-su | --program-s)
1077    ac_prev=program_suffix ;;
1078  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080    program_suffix=$ac_optarg ;;
1081
1082  -program-transform-name | --program-transform-name \
1083  | --program-transform-nam | --program-transform-na \
1084  | --program-transform-n | --program-transform- \
1085  | --program-transform | --program-transfor \
1086  | --program-transfo | --program-transf \
1087  | --program-trans | --program-tran \
1088  | --progr-tra | --program-tr | --program-t)
1089    ac_prev=program_transform_name ;;
1090  -program-transform-name=* | --program-transform-name=* \
1091  | --program-transform-nam=* | --program-transform-na=* \
1092  | --program-transform-n=* | --program-transform-=* \
1093  | --program-transform=* | --program-transfor=* \
1094  | --program-transfo=* | --program-transf=* \
1095  | --program-trans=* | --program-tran=* \
1096  | --progr-tra=* | --program-tr=* | --program-t=*)
1097    program_transform_name=$ac_optarg ;;
1098
1099  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100    ac_prev=pdfdir ;;
1101  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102    pdfdir=$ac_optarg ;;
1103
1104  -psdir | --psdir | --psdi | --psd | --ps)
1105    ac_prev=psdir ;;
1106  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107    psdir=$ac_optarg ;;
1108
1109  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110  | -silent | --silent | --silen | --sile | --sil)
1111    silent=yes ;;
1112
1113  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114    ac_prev=sbindir ;;
1115  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116  | --sbi=* | --sb=*)
1117    sbindir=$ac_optarg ;;
1118
1119  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121  | --sharedst | --shareds | --shared | --share | --shar \
1122  | --sha | --sh)
1123    ac_prev=sharedstatedir ;;
1124  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127  | --sha=* | --sh=*)
1128    sharedstatedir=$ac_optarg ;;
1129
1130  -site | --site | --sit)
1131    ac_prev=site ;;
1132  -site=* | --site=* | --sit=*)
1133    site=$ac_optarg ;;
1134
1135  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136    ac_prev=srcdir ;;
1137  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138    srcdir=$ac_optarg ;;
1139
1140  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141  | --syscon | --sysco | --sysc | --sys | --sy)
1142    ac_prev=sysconfdir ;;
1143  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145    sysconfdir=$ac_optarg ;;
1146
1147  -target | --target | --targe | --targ | --tar | --ta | --t)
1148    ac_prev=target_alias ;;
1149  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150    target_alias=$ac_optarg ;;
1151
1152  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153    verbose=yes ;;
1154
1155  -version | --version | --versio | --versi | --vers | -V)
1156    ac_init_version=: ;;
1157
1158  -with-* | --with-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=\$ac_optarg ;;
1173
1174  -without-* | --without-*)
1175    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176    # Reject names that are not valid shell variable names.
1177    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178      as_fn_error "invalid package name: $ac_useropt"
1179    ac_useropt_orig=$ac_useropt
1180    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181    case $ac_user_opts in
1182      *"
1183"with_$ac_useropt"
1184"*) ;;
1185      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186	 ac_unrecognized_sep=', ';;
1187    esac
1188    eval with_$ac_useropt=no ;;
1189
1190  --x)
1191    # Obsolete; use --with-x.
1192    with_x=yes ;;
1193
1194  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195  | --x-incl | --x-inc | --x-in | --x-i)
1196    ac_prev=x_includes ;;
1197  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199    x_includes=$ac_optarg ;;
1200
1201  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203    ac_prev=x_libraries ;;
1204  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206    x_libraries=$ac_optarg ;;
1207
1208  -*) as_fn_error "unrecognized option: \`$ac_option'
1209Try \`$0 --help' for more information."
1210    ;;
1211
1212  *=*)
1213    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214    # Reject names that are not valid shell variable names.
1215    case $ac_envvar in #(
1216      '' | [0-9]* | *[!_$as_cr_alnum]* )
1217      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218    esac
1219    eval $ac_envvar=\$ac_optarg
1220    export $ac_envvar ;;
1221
1222  *)
1223    # FIXME: should be removed in autoconf 3.0.
1224    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228    ;;
1229
1230  esac
1231done
1232
1233if test -n "$ac_prev"; then
1234  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235  as_fn_error "missing argument to $ac_option"
1236fi
1237
1238if test -n "$ac_unrecognized_opts"; then
1239  case $enable_option_checking in
1240    no) ;;
1241    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243  esac
1244fi
1245
1246# Check all directory arguments for consistency.
1247for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248		datadir sysconfdir sharedstatedir localstatedir includedir \
1249		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250		libdir localedir mandir
1251do
1252  eval ac_val=\$$ac_var
1253  # Remove trailing slashes.
1254  case $ac_val in
1255    */ )
1256      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257      eval $ac_var=\$ac_val;;
1258  esac
1259  # Be sure to have absolute directory names.
1260  case $ac_val in
1261    [\\/$]* | ?:[\\/]* )  continue;;
1262    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263  esac
1264  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265done
1266
1267# There might be people who depend on the old broken behavior: `$host'
1268# used to hold the argument of --host etc.
1269# FIXME: To remove some day.
1270build=$build_alias
1271host=$host_alias
1272target=$target_alias
1273
1274# FIXME: To remove some day.
1275if test "x$host_alias" != x; then
1276  if test "x$build_alias" = x; then
1277    cross_compiling=maybe
1278    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279    If a cross compiler is detected then cross compile mode will be used." >&2
1280  elif test "x$build_alias" != "x$host_alias"; then
1281    cross_compiling=yes
1282  fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294  as_fn_error "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296  as_fn_error "pwd does not report name of working directory"
1297
1298
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301  ac_srcdir_defaulted=yes
1302  # Try the directory containing this script, then the parent directory.
1303  ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305	 X"$as_myself" : 'X\(//\)[^/]' \| \
1306	 X"$as_myself" : 'X\(//\)$' \| \
1307	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)[^/].*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\/\)$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\).*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  s/.*/./; q'`
1326  srcdir=$ac_confdir
1327  if test ! -r "$srcdir/$ac_unique_file"; then
1328    srcdir=..
1329  fi
1330else
1331  ac_srcdir_defaulted=no
1332fi
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340	pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343  srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for ac_var in $ac_precious_vars; do
1352  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353  eval ac_env_${ac_var}_value=\$${ac_var}
1354  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if test "$ac_init_help" = "long"; then
1362  # Omit some internal or obsolete options to make the list less imposing.
1363  # This message is too long to be a string in the A/UX 3.1 sh.
1364  cat <<_ACEOF
1365\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1366
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
1375  -h, --help              display this help and exit
1376      --help=short        display options specific to this package
1377      --help=recursive    display the short help of all the included packages
1378  -V, --version           display version information and exit
1379  -q, --quiet, --silent   do not print \`checking...' messages
1380      --cache-file=FILE   cache test results in FILE [disabled]
1381  -C, --config-cache      alias for \`--cache-file=config.cache'
1382  -n, --no-create         do not create output files
1383      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385Installation directories:
1386  --prefix=PREFIX         install architecture-independent files in PREFIX
1387                          [$ac_default_prefix]
1388  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                          [PREFIX]
1390
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine tuning of the installation directories:
1399  --bindir=DIR            user executables [EPREFIX/bin]
1400  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1401  --libexecdir=DIR        program executables [EPREFIX/libexec]
1402  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1403  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1404  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1405  --libdir=DIR            object code libraries [EPREFIX/lib]
1406  --includedir=DIR        C header files [PREFIX/include]
1407  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1408  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1409  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1410  --infodir=DIR           info documentation [DATAROOTDIR/info]
1411  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1412  --mandir=DIR            man documentation [DATAROOTDIR/man]
1413  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1414  --htmldir=DIR           html documentation [DOCDIR]
1415  --dvidir=DIR            dvi documentation [DOCDIR]
1416  --pdfdir=DIR            pdf documentation [DOCDIR]
1417  --psdir=DIR             ps documentation [DOCDIR]
1418_ACEOF
1419
1420  cat <<\_ACEOF
1421
1422Program names:
1423  --program-prefix=PREFIX            prepend PREFIX to installed program names
1424  --program-suffix=SUFFIX            append SUFFIX to installed program names
1425  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1426
1427System types:
1428  --build=BUILD     configure for building on BUILD [guessed]
1429  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1430  --target=TARGET   configure for building compilers for TARGET [HOST]
1431_ACEOF
1432fi
1433
1434if test -n "$ac_init_help"; then
1435  case $ac_init_help in
1436     short | recursive ) echo "Configuration of package-unused version-unused:";;
1437   esac
1438  cat <<\_ACEOF
1439
1440Optional Features:
1441  --disable-option-checking  ignore unrecognized --enable/--with options
1442  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444  --enable-multilib       build many library versions (default)
1445  --disable-dependency-tracking  speeds up one-time build
1446  --enable-dependency-tracking   do not reject slow dependency extractors
1447  --enable-maintainer-mode  enable make rules and dependencies not useful
1448			  (and sometimes confusing) to the casual installer
1449  --enable-shared[=PKGS]  build shared libraries [default=yes]
1450  --enable-static[=PKGS]  build static libraries [default=yes]
1451  --enable-fast-install[=PKGS]
1452                          optimize for fast installation [default=yes]
1453  --disable-libtool-lock  avoid locking (might break parallel builds)
1454  --enable-werror         turns on -Werror [default=yes]
1455  --enable-version-specific-runtime-libs
1456                          Specify that runtime libraries should be installed
1457                          in a compiler-specific directory
1458  --enable-sjlj-exceptions
1459                          force use of builtin_setjmp for exceptions
1460
1461Optional Packages:
1462  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465  --with-pic              try to use only PIC/non-PIC objects [default=use
1466                          both]
1467  --without-libffi        don't use libffi
1468  --with-system-libunwind use installed libunwind
1469
1470Some influential environment variables:
1471  CC          C compiler command
1472  CFLAGS      C compiler flags
1473  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474              nonstandard directory <lib dir>
1475  LIBS        libraries to pass to the linker, e.g. -l<library>
1476  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477              you have headers in a nonstandard directory <include dir>
1478  GOC         Go compiler command
1479  GOCFLAGS    Go compiler flags
1480  CPP         C preprocessor
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to the package provider.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491  # If there are subdirs, report their specific --help.
1492  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493    test -d "$ac_dir" ||
1494      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495      continue
1496    ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502  # A ".." for each directory in $ac_dir_suffix.
1503  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504  case $ac_top_builddir_sub in
1505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507  esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515  .)  # We are building in place.
1516    ac_srcdir=.
1517    ac_top_srcdir=$ac_top_builddir_sub
1518    ac_abs_top_srcdir=$ac_pwd ;;
1519  [\\/]* | ?:[\\/]* )  # Absolute name.
1520    ac_srcdir=$srcdir$ac_dir_suffix;
1521    ac_top_srcdir=$srcdir
1522    ac_abs_top_srcdir=$srcdir ;;
1523  *) # Relative name.
1524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525    ac_top_srcdir=$ac_top_build_prefix$srcdir
1526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530    cd "$ac_dir" || { ac_status=$?; continue; }
1531    # Check for guested configure.
1532    if test -f "$ac_srcdir/configure.gnu"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535    elif test -f "$ac_srcdir/configure"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure" --help=recursive
1538    else
1539      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540    fi || ac_status=$?
1541    cd "$ac_pwd" || { ac_status=$?; break; }
1542  done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547  cat <<\_ACEOF
1548package-unused configure version-unused
1549generated by GNU Autoconf 2.64
1550
1551Copyright (C) 2009 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555  exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  rm -f conftest.$ac_objext
1569  if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_compile") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && {
1585	 test -z "$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       } && test -s conftest.$ac_objext; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593	ac_retval=1
1594fi
1595  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596  return $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext conftest$ac_exeext
1607  if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_link") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest$ac_exeext && {
1626	 test "$cross_compiling" = yes ||
1627	 $as_test_x conftest$ac_exeext
1628       }; then :
1629  ac_retval=0
1630else
1631  $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638  # interfere with the next link command; also delete a directory that is
1639  # left behind by Apple's compiler.  We do this before executing the actions.
1640  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642  return $ac_retval
1643
1644} # ac_fn_c_try_link
1645
1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists and can be compiled using the include files in
1649# INCLUDES, setting the cache variable VAR accordingly.
1650ac_fn_c_check_header_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656  $as_echo_n "(cached) " >&6
1657else
1658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h.  */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664  eval "$3=yes"
1665else
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674
1675} # ac_fn_c_check_header_compile
1676
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_cpp conftest.$ac_ext"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } >/dev/null && {
1699	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707    ac_retval=1
1708fi
1709  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710  return $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732  { { case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_try") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; }; }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: program exited with status $ac_status" >&5
1745       $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748       ac_retval=$ac_status
1749fi
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752  return $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1771#define $2 innocuous_$2
1772
1773/* System header to define __stub macros and hopefully few prototypes,
1774    which can conflict with char $2 (); below.
1775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776    <limits.h> exists even on freestanding compilers.  */
1777
1778#ifdef __STDC__
1779# include <limits.h>
1780#else
1781# include <assert.h>
1782#endif
1783
1784#undef $2
1785
1786/* Override any GCC internal prototype to avoid an error.
1787   Use char because int might match the return type of a GCC
1788   builtin and then its argument prototype would still apply.  */
1789#ifdef __cplusplus
1790extern "C"
1791#endif
1792char $2 ();
1793/* The GNU C library defines this for functions which it implements
1794    to always fail with ENOSYS.  Some functions are actually named
1795    something starting with __ and the normal name is an alias.  */
1796#if defined __stub_$2 || defined __stub___$2
1797choke me
1798#endif
1799
1800int
1801main ()
1802{
1803return $2 ();
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_link "$LINENO"; then :
1809  eval "$3=yes"
1810else
1811  eval "$3=no"
1812fi
1813rm -f core conftest.err conftest.$ac_objext \
1814    conftest$ac_exeext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821} # ac_fn_c_check_func
1822
1823# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824# -------------------------------------------------------
1825# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826# the include files in INCLUDES and setting the cache variable VAR
1827# accordingly.
1828ac_fn_c_check_header_mongrel ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835  $as_echo_n "(cached) " >&6
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840else
1841  # Is the header compilable?
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843$as_echo_n "checking $2 usability... " >&6; }
1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846$4
1847#include <$2>
1848_ACEOF
1849if ac_fn_c_try_compile "$LINENO"; then :
1850  ac_header_compiler=yes
1851else
1852  ac_header_compiler=no
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856$as_echo "$ac_header_compiler" >&6; }
1857
1858# Is the header present?
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860$as_echo_n "checking $2 presence... " >&6; }
1861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_cpp "$LINENO"; then :
1866  ac_header_preproc=yes
1867else
1868  ac_header_preproc=no
1869fi
1870rm -f conftest.err conftest.$ac_ext
1871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872$as_echo "$ac_header_preproc" >&6; }
1873
1874# So?  What about this header?
1875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876  yes:no: )
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881    ;;
1882  no:yes:* )
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1886$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1890$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893    ;;
1894esac
1895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898  $as_echo_n "(cached) " >&6
1899else
1900  eval "$3=\$ac_header_compiler"
1901fi
1902eval ac_res=\$$3
1903	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905fi
1906  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
1908} # ac_fn_c_check_header_mongrel
1909
1910# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1911# -------------------------------------------
1912# Tests whether TYPE exists after having included INCLUDES, setting cache
1913# variable VAR accordingly.
1914ac_fn_c_check_type ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920  $as_echo_n "(cached) " >&6
1921else
1922  eval "$3=no"
1923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925$4
1926int
1927main ()
1928{
1929if (sizeof ($2))
1930	 return 0;
1931  ;
1932  return 0;
1933}
1934_ACEOF
1935if ac_fn_c_try_compile "$LINENO"; then :
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938$4
1939int
1940main ()
1941{
1942if (sizeof (($2)))
1943	    return 0;
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949
1950else
1951  eval "$3=yes"
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962} # ac_fn_c_check_type
1963
1964# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1965# --------------------------------------------
1966# Tries to find the compile-time value of EXPR in a program that includes
1967# INCLUDES, setting VAR accordingly. Returns whether the value could be
1968# computed
1969ac_fn_c_compute_int ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  if test "$cross_compiling" = yes; then
1973    # Depending upon the size, compute the lo and hi bounds.
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977int
1978main ()
1979{
1980static int test_array [1 - 2 * !(($2) >= 0)];
1981test_array [0] = 0
1982
1983  ;
1984  return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988  ac_lo=0 ac_mid=0
1989  while :; do
1990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h.  */
1992$4
1993int
1994main ()
1995{
1996static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997test_array [0] = 0
1998
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004  ac_hi=$ac_mid; break
2005else
2006  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2007			if test $ac_lo -le $ac_mid; then
2008			  ac_lo= ac_hi=
2009			  break
2010			fi
2011			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014  done
2015else
2016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018$4
2019int
2020main ()
2021{
2022static int test_array [1 - 2 * !(($2) < 0)];
2023test_array [0] = 0
2024
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030  ac_hi=-1 ac_mid=-1
2031  while :; do
2032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035int
2036main ()
2037{
2038static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2039test_array [0] = 0
2040
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  ac_lo=$ac_mid; break
2047else
2048  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2049			if test $ac_mid -le $ac_hi; then
2050			  ac_lo= ac_hi=
2051			  break
2052			fi
2053			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056  done
2057else
2058  ac_lo= ac_hi=
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063# Binary search between lo and hi bounds.
2064while test "x$ac_lo" != "x$ac_hi"; do
2065  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$4
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073test_array [0] = 0
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  ac_hi=$ac_mid
2081else
2082  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085done
2086case $ac_lo in #((
2087?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088'') ac_retval=1 ;;
2089esac
2090  else
2091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094static long int longval () { return $2; }
2095static unsigned long int ulongval () { return $2; }
2096#include <stdio.h>
2097#include <stdlib.h>
2098int
2099main ()
2100{
2101
2102  FILE *f = fopen ("conftest.val", "w");
2103  if (! f)
2104    return 1;
2105  if (($2) < 0)
2106    {
2107      long int i = longval ();
2108      if (i != ($2))
2109	return 1;
2110      fprintf (f, "%ld", i);
2111    }
2112  else
2113    {
2114      unsigned long int i = ulongval ();
2115      if (i != ($2))
2116	return 1;
2117      fprintf (f, "%lu", i);
2118    }
2119  /* Do not output a trailing newline, as this causes \r\n confusion
2120     on some platforms.  */
2121  return ferror (f) || fclose (f) != 0;
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_run "$LINENO"; then :
2128  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129else
2130  ac_retval=1
2131fi
2132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2133  conftest.$ac_objext conftest.beam conftest.$ac_ext
2134rm -f conftest.val
2135
2136  fi
2137  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138  return $ac_retval
2139
2140} # ac_fn_c_compute_int
2141cat >config.log <<_ACEOF
2142This file contains any messages produced by compilers while
2143running configure, to aid debugging if configure makes a mistake.
2144
2145It was created by package-unused $as_me version-unused, which was
2146generated by GNU Autoconf 2.64.  Invocation command line was
2147
2148  $ $0 $@
2149
2150_ACEOF
2151exec 5>>config.log
2152{
2153cat <<_ASUNAME
2154## --------- ##
2155## Platform. ##
2156## --------- ##
2157
2158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2166
2167/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2168/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2171/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2172/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2173/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2174
2175_ASUNAME
2176
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180  IFS=$as_save_IFS
2181  test -z "$as_dir" && as_dir=.
2182    $as_echo "PATH: $as_dir"
2183  done
2184IFS=$as_save_IFS
2185
2186} >&5
2187
2188cat >&5 <<_ACEOF
2189
2190
2191## ----------- ##
2192## Core tests. ##
2193## ----------- ##
2194
2195_ACEOF
2196
2197
2198# Keep a trace of the command line.
2199# Strip out --no-create and --no-recursion so they do not pile up.
2200# Strip out --silent because we don't want to record it for future runs.
2201# Also quote any args containing shell meta-characters.
2202# Make two passes to allow for proper duplicate-argument suppression.
2203ac_configure_args=
2204ac_configure_args0=
2205ac_configure_args1=
2206ac_must_keep_next=false
2207for ac_pass in 1 2
2208do
2209  for ac_arg
2210  do
2211    case $ac_arg in
2212    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214    | -silent | --silent | --silen | --sile | --sil)
2215      continue ;;
2216    *\'*)
2217      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218    esac
2219    case $ac_pass in
2220    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2221    2)
2222      as_fn_append ac_configure_args1 " '$ac_arg'"
2223      if test $ac_must_keep_next = true; then
2224	ac_must_keep_next=false # Got value, back to normal.
2225      else
2226	case $ac_arg in
2227	  *=* | --config-cache | -C | -disable-* | --disable-* \
2228	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230	  | -with-* | --with-* | -without-* | --without-* | --x)
2231	    case "$ac_configure_args0 " in
2232	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233	    esac
2234	    ;;
2235	  -* ) ac_must_keep_next=true ;;
2236	esac
2237      fi
2238      as_fn_append ac_configure_args " '$ac_arg'"
2239      ;;
2240    esac
2241  done
2242done
2243{ ac_configure_args0=; unset ac_configure_args0;}
2244{ ac_configure_args1=; unset ac_configure_args1;}
2245
2246# When interrupted or exit'd, cleanup temporary files, and complete
2247# config.log.  We remove comments because anyway the quotes in there
2248# would cause problems or look ugly.
2249# WARNING: Use '\'' to represent an apostrophe within the trap.
2250# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251trap 'exit_status=$?
2252  # Save into config.log some information that might help in debugging.
2253  {
2254    echo
2255
2256    cat <<\_ASBOX
2257## ---------------- ##
2258## Cache variables. ##
2259## ---------------- ##
2260_ASBOX
2261    echo
2262    # The following way of writing the cache mishandles newlines in values,
2263(
2264  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2265    eval ac_val=\$$ac_var
2266    case $ac_val in #(
2267    *${as_nl}*)
2268      case $ac_var in #(
2269      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271      esac
2272      case $ac_var in #(
2273      _ | IFS | as_nl) ;; #(
2274      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275      *) { eval $ac_var=; unset $ac_var;} ;;
2276      esac ;;
2277    esac
2278  done
2279  (set) 2>&1 |
2280    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2281    *${as_nl}ac_space=\ *)
2282      sed -n \
2283	"s/'\''/'\''\\\\'\'''\''/g;
2284	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285      ;; #(
2286    *)
2287      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2288      ;;
2289    esac |
2290    sort
2291)
2292    echo
2293
2294    cat <<\_ASBOX
2295## ----------------- ##
2296## Output variables. ##
2297## ----------------- ##
2298_ASBOX
2299    echo
2300    for ac_var in $ac_subst_vars
2301    do
2302      eval ac_val=\$$ac_var
2303      case $ac_val in
2304      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305      esac
2306      $as_echo "$ac_var='\''$ac_val'\''"
2307    done | sort
2308    echo
2309
2310    if test -n "$ac_subst_files"; then
2311      cat <<\_ASBOX
2312## ------------------- ##
2313## File substitutions. ##
2314## ------------------- ##
2315_ASBOX
2316      echo
2317      for ac_var in $ac_subst_files
2318      do
2319	eval ac_val=\$$ac_var
2320	case $ac_val in
2321	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322	esac
2323	$as_echo "$ac_var='\''$ac_val'\''"
2324      done | sort
2325      echo
2326    fi
2327
2328    if test -s confdefs.h; then
2329      cat <<\_ASBOX
2330## ----------- ##
2331## confdefs.h. ##
2332## ----------- ##
2333_ASBOX
2334      echo
2335      cat confdefs.h
2336      echo
2337    fi
2338    test "$ac_signal" != 0 &&
2339      $as_echo "$as_me: caught signal $ac_signal"
2340    $as_echo "$as_me: exit $exit_status"
2341  } >&5
2342  rm -f core *.core core.conftest.* &&
2343    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2344    exit $exit_status
2345' 0
2346for ac_signal in 1 2 13 15; do
2347  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2348done
2349ac_signal=0
2350
2351# confdefs.h avoids OS command line length limits that DEFS can exceed.
2352rm -f -r conftest* confdefs.h
2353
2354$as_echo "/* confdefs.h */" > confdefs.h
2355
2356# Predefined preprocessor variables.
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_NAME "$PACKAGE_NAME"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_VERSION "$PACKAGE_VERSION"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_STRING "$PACKAGE_STRING"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376_ACEOF
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_URL "$PACKAGE_URL"
2380_ACEOF
2381
2382
2383# Let the site file select an alternate cache file if it wants to.
2384# Prefer an explicitly selected file to automatically selected ones.
2385ac_site_file1=NONE
2386ac_site_file2=NONE
2387if test -n "$CONFIG_SITE"; then
2388  ac_site_file1=$CONFIG_SITE
2389elif test "x$prefix" != xNONE; then
2390  ac_site_file1=$prefix/share/config.site
2391  ac_site_file2=$prefix/etc/config.site
2392else
2393  ac_site_file1=$ac_default_prefix/share/config.site
2394  ac_site_file2=$ac_default_prefix/etc/config.site
2395fi
2396for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2397do
2398  test "x$ac_site_file" = xNONE && continue
2399  if test -r "$ac_site_file"; then
2400    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2402    sed 's/^/| /' "$ac_site_file" >&5
2403    . "$ac_site_file"
2404  fi
2405done
2406
2407if test -r "$cache_file"; then
2408  # Some versions of bash will fail to source /dev/null (special
2409  # files actually), so we avoid doing that.
2410  if test -f "$cache_file"; then
2411    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2412$as_echo "$as_me: loading cache $cache_file" >&6;}
2413    case $cache_file in
2414      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2415      *)                      . "./$cache_file";;
2416    esac
2417  fi
2418else
2419  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2420$as_echo "$as_me: creating cache $cache_file" >&6;}
2421  >$cache_file
2422fi
2423
2424# Check that the precious variables saved in the cache have kept the same
2425# value.
2426ac_cache_corrupted=false
2427for ac_var in $ac_precious_vars; do
2428  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2429  eval ac_new_set=\$ac_env_${ac_var}_set
2430  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2431  eval ac_new_val=\$ac_env_${ac_var}_value
2432  case $ac_old_set,$ac_new_set in
2433    set,)
2434      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2435$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2436      ac_cache_corrupted=: ;;
2437    ,set)
2438      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2439$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2440      ac_cache_corrupted=: ;;
2441    ,);;
2442    *)
2443      if test "x$ac_old_val" != "x$ac_new_val"; then
2444	# differences in whitespace do not lead to failure.
2445	ac_old_val_w=`echo x $ac_old_val`
2446	ac_new_val_w=`echo x $ac_new_val`
2447	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2448	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2449$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2450	  ac_cache_corrupted=:
2451	else
2452	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2453$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2454	  eval $ac_var=\$ac_old_val
2455	fi
2456	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2457$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2458	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2459$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2460      fi;;
2461  esac
2462  # Pass precious variables to config.status.
2463  if test "$ac_new_set" = set; then
2464    case $ac_new_val in
2465    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2466    *) ac_arg=$ac_var=$ac_new_val ;;
2467    esac
2468    case " $ac_configure_args " in
2469      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2470      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2471    esac
2472  fi
2473done
2474if $ac_cache_corrupted; then
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2478$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2479  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2480fi
2481## -------------------- ##
2482## Main body of script. ##
2483## -------------------- ##
2484
2485ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490
2491
2492
2493
2494
2495
2496ac_config_headers="$ac_config_headers config.h"
2497
2498
2499libtool_VERSION=3:1:0
2500
2501
2502# Default to --enable-multilib
2503# Check whether --enable-multilib was given.
2504if test "${enable_multilib+set}" = set; then :
2505  enableval=$enable_multilib; case "$enableval" in
2506  yes) multilib=yes ;;
2507  no)  multilib=no ;;
2508  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2509 esac
2510else
2511  multilib=yes
2512fi
2513
2514
2515# We may get other options which we leave undocumented:
2516# --with-target-subdir, --with-multisrctop, --with-multisubdir
2517# See config-ml.in if you want the gory details.
2518
2519if test "$srcdir" = "."; then
2520  if test "$with_target_subdir" != "."; then
2521    multi_basedir="$srcdir/$with_multisrctop../.."
2522  else
2523    multi_basedir="$srcdir/$with_multisrctop.."
2524  fi
2525else
2526  multi_basedir="$srcdir/.."
2527fi
2528
2529
2530# Even if the default multilib is not a cross compilation,
2531# it may be that some of the other multilibs are.
2532if test $cross_compiling = no && test $multilib = yes \
2533   && test "x${with_multisubdir}" != x ; then
2534   cross_compiling=maybe
2535fi
2536
2537ac_config_commands="$ac_config_commands default-1"
2538
2539
2540ac_aux_dir=
2541for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2542  for ac_t in install-sh install.sh shtool; do
2543    if test -f "$ac_dir/$ac_t"; then
2544      ac_aux_dir=$ac_dir
2545      ac_install_sh="$ac_aux_dir/$ac_t -c"
2546      break 2
2547    fi
2548  done
2549done
2550if test -z "$ac_aux_dir"; then
2551  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2552fi
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2559ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2560ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2561
2562
2563# Make sure we can run config.sub.
2564$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2565  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2566
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2568$as_echo_n "checking build system type... " >&6; }
2569if test "${ac_cv_build+set}" = set; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  ac_build_alias=$build_alias
2573test "x$ac_build_alias" = x &&
2574  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2575test "x$ac_build_alias" = x &&
2576  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2578  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2579
2580fi
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2582$as_echo "$ac_cv_build" >&6; }
2583case $ac_cv_build in
2584*-*-*) ;;
2585*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2586esac
2587build=$ac_cv_build
2588ac_save_IFS=$IFS; IFS='-'
2589set x $ac_cv_build
2590shift
2591build_cpu=$1
2592build_vendor=$2
2593shift; shift
2594# Remember, the first character of IFS is used to create $*,
2595# except with old shells:
2596build_os=$*
2597IFS=$ac_save_IFS
2598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599
2600
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2602$as_echo_n "checking host system type... " >&6; }
2603if test "${ac_cv_host+set}" = set; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if test "x$host_alias" = x; then
2607  ac_cv_host=$ac_cv_build
2608else
2609  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2610    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2611fi
2612
2613fi
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2615$as_echo "$ac_cv_host" >&6; }
2616case $ac_cv_host in
2617*-*-*) ;;
2618*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2619esac
2620host=$ac_cv_host
2621ac_save_IFS=$IFS; IFS='-'
2622set x $ac_cv_host
2623shift
2624host_cpu=$1
2625host_vendor=$2
2626shift; shift
2627# Remember, the first character of IFS is used to create $*,
2628# except with old shells:
2629host_os=$*
2630IFS=$ac_save_IFS
2631case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2632
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2635$as_echo_n "checking target system type... " >&6; }
2636if test "${ac_cv_target+set}" = set; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  if test "x$target_alias" = x; then
2640  ac_cv_target=$ac_cv_host
2641else
2642  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2643    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2644fi
2645
2646fi
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2648$as_echo "$ac_cv_target" >&6; }
2649case $ac_cv_target in
2650*-*-*) ;;
2651*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2652esac
2653target=$ac_cv_target
2654ac_save_IFS=$IFS; IFS='-'
2655set x $ac_cv_target
2656shift
2657target_cpu=$1
2658target_vendor=$2
2659shift; shift
2660# Remember, the first character of IFS is used to create $*,
2661# except with old shells:
2662target_os=$*
2663IFS=$ac_save_IFS
2664case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2665
2666
2667# The aliases save the names the user supplied, while $host etc.
2668# will get canonicalized.
2669test -n "$target_alias" &&
2670  test "$program_prefix$program_suffix$program_transform_name" = \
2671    NONENONEs,x,x, &&
2672  program_prefix=${target_alias}-
2673
2674target_alias=${target_alias-$host_alias}
2675
2676am__api_version='1.11'
2677
2678# Find a good install program.  We prefer a C program (faster),
2679# so one script is as good as another.  But avoid the broken or
2680# incompatible versions:
2681# SysV /etc/install, /usr/sbin/install
2682# SunOS /usr/etc/install
2683# IRIX /sbin/install
2684# AIX /bin/install
2685# AmigaOS /C/install, which installs bootblocks on floppy discs
2686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689# OS/2's system install, which has a completely different semantic
2690# ./install, which can be erroneously created by make from ./install.sh.
2691# Reject install programs that cannot install multiple files.
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2693$as_echo_n "checking for a BSD-compatible install... " >&6; }
2694if test -z "$INSTALL"; then
2695if test "${ac_cv_path_install+set}" = set; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703    # Account for people who put trailing slashes in PATH elements.
2704case $as_dir/ in #((
2705  ./ | .// | /[cC]/* | \
2706  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2708  /usr/ucb/* ) ;;
2709  *)
2710    # OSF1 and SCO ODT 3.0 have their own names for install.
2711    # Don't use installbsd from OSF since it installs stuff as root
2712    # by default.
2713    for ac_prog in ginstall scoinst install; do
2714      for ac_exec_ext in '' $ac_executable_extensions; do
2715	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2716	  if test $ac_prog = install &&
2717	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718	    # AIX install.  It has an incompatible calling convention.
2719	    :
2720	  elif test $ac_prog = install &&
2721	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722	    # program-specific install script used by HP pwplus--don't use.
2723	    :
2724	  else
2725	    rm -rf conftest.one conftest.two conftest.dir
2726	    echo one > conftest.one
2727	    echo two > conftest.two
2728	    mkdir conftest.dir
2729	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730	      test -s conftest.one && test -s conftest.two &&
2731	      test -s conftest.dir/conftest.one &&
2732	      test -s conftest.dir/conftest.two
2733	    then
2734	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735	      break 3
2736	    fi
2737	  fi
2738	fi
2739      done
2740    done
2741    ;;
2742esac
2743
2744  done
2745IFS=$as_save_IFS
2746
2747rm -rf conftest.one conftest.two conftest.dir
2748
2749fi
2750  if test "${ac_cv_path_install+set}" = set; then
2751    INSTALL=$ac_cv_path_install
2752  else
2753    # As a last resort, use the slow shell script.  Don't cache a
2754    # value for INSTALL within a source directory, because that will
2755    # break other packages using the cache if that directory is
2756    # removed, or if the value is a relative name.
2757    INSTALL=$ac_install_sh
2758  fi
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2761$as_echo "$INSTALL" >&6; }
2762
2763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2764# It thinks the first close brace ends the variable substitution.
2765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2766
2767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2768
2769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2770
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2772$as_echo_n "checking whether build environment is sane... " >&6; }
2773# Just in case
2774sleep 1
2775echo timestamp > conftest.file
2776# Reject unsafe characters in $srcdir or the absolute working directory
2777# name.  Accept space and tab only in the latter.
2778am_lf='
2779'
2780case `pwd` in
2781  *[\\\"\#\$\&\'\`$am_lf]*)
2782    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2783esac
2784case $srcdir in
2785  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2786    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2787esac
2788
2789# Do `set' in a subshell so we don't clobber the current shell's
2790# arguments.  Must try -L first in case configure is actually a
2791# symlink; some systems play weird games with the mod time of symlinks
2792# (eg FreeBSD returns the mod time of the symlink's containing
2793# directory).
2794if (
2795   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2796   if test "$*" = "X"; then
2797      # -L didn't work.
2798      set X `ls -t "$srcdir/configure" conftest.file`
2799   fi
2800   rm -f conftest.file
2801   if test "$*" != "X $srcdir/configure conftest.file" \
2802      && test "$*" != "X conftest.file $srcdir/configure"; then
2803
2804      # If neither matched, then we have a broken ls.  This can happen
2805      # if, for instance, CONFIG_SHELL is bash and it inherits a
2806      # broken ls alias from the environment.  This has actually
2807      # happened.  Such a system could not be considered "sane".
2808      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2809alias in your environment" "$LINENO" 5
2810   fi
2811
2812   test "$2" = conftest.file
2813   )
2814then
2815   # Ok.
2816   :
2817else
2818   as_fn_error "newly created file is older than distributed files!
2819Check your system clock" "$LINENO" 5
2820fi
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2822$as_echo "yes" >&6; }
2823test "$program_prefix" != NONE &&
2824  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2825# Use a double $ so make ignores it.
2826test "$program_suffix" != NONE &&
2827  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2828# Double any \ or $.
2829# By default was `s,x,x', remove it if useless.
2830ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2831program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2832
2833# expand $ac_aux_dir to an absolute path
2834am_aux_dir=`cd $ac_aux_dir && pwd`
2835
2836if test x"${MISSING+set}" != xset; then
2837  case $am_aux_dir in
2838  *\ * | *\	*)
2839    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2840  *)
2841    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2842  esac
2843fi
2844# Use eval to expand $SHELL
2845if eval "$MISSING --run true"; then
2846  am_missing_run="$MISSING --run "
2847else
2848  am_missing_run=
2849  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2850$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2851fi
2852
2853if test x"${install_sh}" != xset; then
2854  case $am_aux_dir in
2855  *\ * | *\	*)
2856    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2857  *)
2858    install_sh="\${SHELL} $am_aux_dir/install-sh"
2859  esac
2860fi
2861
2862# Installed binaries are usually stripped using `strip' when the user
2863# run `make install-strip'.  However `strip' might not be the right
2864# tool to use in cross-compilation environments, therefore Automake
2865# will honor the `STRIP' environment variable to overrule this program.
2866if test "$cross_compiling" != no; then
2867  if test -n "$ac_tool_prefix"; then
2868  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2869set dummy ${ac_tool_prefix}strip; ac_word=$2
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871$as_echo_n "checking for $ac_word... " >&6; }
2872if test "${ac_cv_prog_STRIP+set}" = set; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  if test -n "$STRIP"; then
2876  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881  IFS=$as_save_IFS
2882  test -z "$as_dir" && as_dir=.
2883    for ac_exec_ext in '' $ac_executable_extensions; do
2884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887    break 2
2888  fi
2889done
2890  done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895STRIP=$ac_cv_prog_STRIP
2896if test -n "$STRIP"; then
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2898$as_echo "$STRIP" >&6; }
2899else
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
2904
2905fi
2906if test -z "$ac_cv_prog_STRIP"; then
2907  ac_ct_STRIP=$STRIP
2908  # Extract the first word of "strip", so it can be a program name with args.
2909set dummy strip; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
2912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2913  $as_echo_n "(cached) " >&6
2914else
2915  if test -n "$ac_ct_STRIP"; then
2916  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923    for ac_exec_ext in '' $ac_executable_extensions; do
2924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925    ac_cv_prog_ac_ct_STRIP="strip"
2926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927    break 2
2928  fi
2929done
2930  done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936if test -n "$ac_ct_STRIP"; then
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2938$as_echo "$ac_ct_STRIP" >&6; }
2939else
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944  if test "x$ac_ct_STRIP" = x; then
2945    STRIP=":"
2946  else
2947    case $cross_compiling:$ac_tool_warned in
2948yes:)
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951ac_tool_warned=yes ;;
2952esac
2953    STRIP=$ac_ct_STRIP
2954  fi
2955else
2956  STRIP="$ac_cv_prog_STRIP"
2957fi
2958
2959fi
2960INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2961
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2963$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2964if test -z "$MKDIR_P"; then
2965  if test "${ac_cv_path_mkdir+set}" = set; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_prog in mkdir gmkdir; do
2974	 for ac_exec_ext in '' $ac_executable_extensions; do
2975	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2976	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2977	     'mkdir (GNU coreutils) '* | \
2978	     'mkdir (coreutils) '* | \
2979	     'mkdir (fileutils) '4.1*)
2980	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2981	       break 3;;
2982	   esac
2983	 done
2984       done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989
2990  if test "${ac_cv_path_mkdir+set}" = set; then
2991    MKDIR_P="$ac_cv_path_mkdir -p"
2992  else
2993    # As a last resort, use the slow shell script.  Don't cache a
2994    # value for MKDIR_P within a source directory, because that will
2995    # break other packages using the cache if that directory is
2996    # removed, or if the value is a relative name.
2997    test -d ./--version && rmdir ./--version
2998    MKDIR_P="$ac_install_sh -d"
2999  fi
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3002$as_echo "$MKDIR_P" >&6; }
3003
3004mkdir_p="$MKDIR_P"
3005case $mkdir_p in
3006  [\\/$]* | ?:[\\/]*) ;;
3007  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3008esac
3009
3010for ac_prog in gawk mawk nawk awk
3011do
3012  # Extract the first word of "$ac_prog", so it can be a program name with args.
3013set dummy $ac_prog; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if test "${ac_cv_prog_AWK+set}" = set; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$AWK"; then
3020  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029    ac_cv_prog_AWK="$ac_prog"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039AWK=$ac_cv_prog_AWK
3040if test -n "$AWK"; then
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3042$as_echo "$AWK" >&6; }
3043else
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049  test -n "$AWK" && break
3050done
3051
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3053$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3054set x ${MAKE-make}
3055ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3056if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3057  $as_echo_n "(cached) " >&6
3058else
3059  cat >conftest.make <<\_ACEOF
3060SHELL = /bin/sh
3061all:
3062	@echo '@@@%%%=$(MAKE)=@@@%%%'
3063_ACEOF
3064# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3065case `${MAKE-make} -f conftest.make 2>/dev/null` in
3066  *@@@%%%=?*=@@@%%%*)
3067    eval ac_cv_prog_make_${ac_make}_set=yes;;
3068  *)
3069    eval ac_cv_prog_make_${ac_make}_set=no;;
3070esac
3071rm -f conftest.make
3072fi
3073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075$as_echo "yes" >&6; }
3076  SET_MAKE=
3077else
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080  SET_MAKE="MAKE=${MAKE-make}"
3081fi
3082
3083rm -rf .tst 2>/dev/null
3084mkdir .tst 2>/dev/null
3085if test -d .tst; then
3086  am__leading_dot=.
3087else
3088  am__leading_dot=_
3089fi
3090rmdir .tst 2>/dev/null
3091
3092if test "`cd $srcdir && pwd`" != "`pwd`"; then
3093  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3094  # is not polluted with repeated "-I."
3095  am__isrc=' -I$(srcdir)'
3096  # test to see if srcdir already configured
3097  if test -f $srcdir/config.status; then
3098    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3099  fi
3100fi
3101
3102# test whether we have cygpath
3103if test -z "$CYGPATH_W"; then
3104  if (cygpath --version) >/dev/null 2>/dev/null; then
3105    CYGPATH_W='cygpath -w'
3106  else
3107    CYGPATH_W=echo
3108  fi
3109fi
3110
3111
3112# Define the identity of the package.
3113 PACKAGE='libgo'
3114 VERSION='version-unused'
3115
3116
3117# Some tools Automake needs.
3118
3119ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3120
3121
3122AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3123
3124
3125AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3126
3127
3128AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3129
3130
3131MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3132
3133# We need awk for the "check" target.  The system "awk" is bad on
3134# some platforms.
3135# Always define AMTAR for backward compatibility.
3136
3137AMTAR=${AMTAR-"${am_missing_run}tar"}
3138
3139am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155if test -n "$ac_tool_prefix"; then
3156  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if test "${ac_cv_prog_CC+set}" = set; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$CC"; then
3164  ac_cv_prog_CC="$CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183CC=$ac_cv_prog_CC
3184if test -n "$CC"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186$as_echo "$CC" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192
3193fi
3194if test -z "$ac_cv_prog_CC"; then
3195  ac_ct_CC=$CC
3196  # Extract the first word of "gcc", so it can be a program name with args.
3197set dummy gcc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  if test -n "$ac_ct_CC"; then
3204  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211    for ac_exec_ext in '' $ac_executable_extensions; do
3212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213    ac_cv_prog_ac_ct_CC="gcc"
3214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215    break 2
3216  fi
3217done
3218  done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224if test -n "$ac_ct_CC"; then
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226$as_echo "$ac_ct_CC" >&6; }
3227else
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232  if test "x$ac_ct_CC" = x; then
3233    CC=""
3234  else
3235    case $cross_compiling:$ac_tool_warned in
3236yes:)
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239ac_tool_warned=yes ;;
3240esac
3241    CC=$ac_ct_CC
3242  fi
3243else
3244  CC="$ac_cv_prog_CC"
3245fi
3246
3247if test -z "$CC"; then
3248          if test -n "$ac_tool_prefix"; then
3249    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250set dummy ${ac_tool_prefix}cc; ac_word=$2
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
3253if test "${ac_cv_prog_CC+set}" = set; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  if test -n "$CC"; then
3257  ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266    ac_cv_prog_CC="${ac_tool_prefix}cc"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279$as_echo "$CC" >&6; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286  fi
3287fi
3288if test -z "$CC"; then
3289  # Extract the first word of "cc", so it can be a program name with args.
3290set dummy cc; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if test "${ac_cv_prog_CC+set}" = set; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  if test -n "$CC"; then
3297  ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299  ac_prog_rejected=no
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305    for ac_exec_ext in '' $ac_executable_extensions; do
3306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308       ac_prog_rejected=yes
3309       continue
3310     fi
3311    ac_cv_prog_CC="cc"
3312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313    break 2
3314  fi
3315done
3316  done
3317IFS=$as_save_IFS
3318
3319if test $ac_prog_rejected = yes; then
3320  # We found a bogon in the path, so make sure we never use it.
3321  set dummy $ac_cv_prog_CC
3322  shift
3323  if test $# != 0; then
3324    # We chose a different compiler from the bogus one.
3325    # However, it has the same basename, so the bogon will be chosen
3326    # first if we set CC to just the basename; use the full file name.
3327    shift
3328    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329  fi
3330fi
3331fi
3332fi
3333CC=$ac_cv_prog_CC
3334if test -n "$CC"; then
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336$as_echo "$CC" >&6; }
3337else
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340fi
3341
3342
3343fi
3344if test -z "$CC"; then
3345  if test -n "$ac_tool_prefix"; then
3346  for ac_prog in cl.exe
3347  do
3348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if test "${ac_cv_prog_CC+set}" = set; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355  if test -n "$CC"; then
3356  ac_cv_prog_CC="$CC" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363    for ac_exec_ext in '' $ac_executable_extensions; do
3364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367    break 2
3368  fi
3369done
3370  done
3371IFS=$as_save_IFS
3372
3373fi
3374fi
3375CC=$ac_cv_prog_CC
3376if test -n "$CC"; then
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378$as_echo "$CC" >&6; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384
3385    test -n "$CC" && break
3386  done
3387fi
3388if test -z "$CC"; then
3389  ac_ct_CC=$CC
3390  for ac_prog in cl.exe
3391do
3392  # Extract the first word of "$ac_prog", so it can be a program name with args.
3393set dummy $ac_prog; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if test -n "$ac_ct_CC"; then
3400  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405  IFS=$as_save_IFS
3406  test -z "$as_dir" && as_dir=.
3407    for ac_exec_ext in '' $ac_executable_extensions; do
3408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409    ac_cv_prog_ac_ct_CC="$ac_prog"
3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422$as_echo "$ac_ct_CC" >&6; }
3423else
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428
3429  test -n "$ac_ct_CC" && break
3430done
3431
3432  if test "x$ac_ct_CC" = x; then
3433    CC=""
3434  else
3435    case $cross_compiling:$ac_tool_warned in
3436yes:)
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439ac_tool_warned=yes ;;
3440esac
3441    CC=$ac_ct_CC
3442  fi
3443fi
3444
3445fi
3446
3447
3448test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450as_fn_error "no acceptable C compiler found in \$PATH
3451See \`config.log' for more details." "$LINENO" 5; }
3452
3453# Provide some information about the compiler.
3454$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455set X $ac_compile
3456ac_compiler=$2
3457for ac_option in --version -v -V -qversion; do
3458  { { ac_try="$ac_compiler $ac_option >&5"
3459case "(($ac_try" in
3460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461  *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466  ac_status=$?
3467  if test -s conftest.err; then
3468    sed '10a\
3469... rest of stderr output deleted ...
3470         10q' conftest.err >conftest.er1
3471    cat conftest.er1 >&5
3472    rm -f conftest.er1 conftest.err
3473  fi
3474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475  test $ac_status = 0; }
3476done
3477
3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h.  */
3480
3481int
3482main ()
3483{
3484
3485  ;
3486  return 0;
3487}
3488_ACEOF
3489ac_clean_files_save=$ac_clean_files
3490ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3491# Try to create an executable without -o first, disregard a.out.
3492# It will help us diagnose broken compilers, and finding out an intuition
3493# of exeext.
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495$as_echo_n "checking for C compiler default output file name... " >&6; }
3496ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3497
3498# The possible output files:
3499ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3500
3501ac_rmfiles=
3502for ac_file in $ac_files
3503do
3504  case $ac_file in
3505    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507  esac
3508done
3509rm -f $ac_rmfiles
3510
3511if { { ac_try="$ac_link_default"
3512case "(($ac_try" in
3513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514  *) ac_try_echo=$ac_try;;
3515esac
3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517$as_echo "$ac_try_echo"; } >&5
3518  (eval "$ac_link_default") 2>&5
3519  ac_status=$?
3520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521  test $ac_status = 0; }; then :
3522  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3525# so that the user can short-circuit this test for compilers unknown to
3526# Autoconf.
3527for ac_file in $ac_files ''
3528do
3529  test -f "$ac_file" || continue
3530  case $ac_file in
3531    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3532	;;
3533    [ab].out )
3534	# We found the default executable, but exeext='' is most
3535	# certainly right.
3536	break;;
3537    *.* )
3538	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3539	then :; else
3540	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541	fi
3542	# We set ac_cv_exeext here because the later test for it is not
3543	# safe: cross compilers may not add the suffix if given an `-o'
3544	# argument, so we may need to know it at that point already.
3545	# Even if this section looks crufty: it has the advantage of
3546	# actually working.
3547	break;;
3548    * )
3549	break;;
3550  esac
3551done
3552test "$ac_cv_exeext" = no && ac_cv_exeext=
3553
3554else
3555  ac_file=''
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558$as_echo "$ac_file" >&6; }
3559if test -z "$ac_file"; then :
3560  $as_echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565{ as_fn_set_status 77
3566as_fn_error "C compiler cannot create executables
3567See \`config.log' for more details." "$LINENO" 5; }; }
3568fi
3569ac_exeext=$ac_cv_exeext
3570
3571# Check that the compiler produces executables we can run.  If not, either
3572# the compiler is broken, or we cross compile.
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574$as_echo_n "checking whether the C compiler works... " >&6; }
3575# If not cross compiling, check that we can run a simple program.
3576if test "$cross_compiling" != yes; then
3577  if { ac_try='./$ac_file'
3578  { { case "(($ac_try" in
3579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580  *) ac_try_echo=$ac_try;;
3581esac
3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583$as_echo "$ac_try_echo"; } >&5
3584  (eval "$ac_try") 2>&5
3585  ac_status=$?
3586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587  test $ac_status = 0; }; }; then
3588    cross_compiling=no
3589  else
3590    if test "$cross_compiling" = maybe; then
3591	cross_compiling=yes
3592    else
3593	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595as_fn_error "cannot run C compiled programs.
3596If you meant to cross compile, use \`--host'.
3597See \`config.log' for more details." "$LINENO" 5; }
3598    fi
3599  fi
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602$as_echo "yes" >&6; }
3603
3604rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3605ac_clean_files=$ac_clean_files_save
3606# Check that the compiler produces executables we can run.  If not, either
3607# the compiler is broken, or we cross compile.
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3609$as_echo_n "checking whether we are cross compiling... " >&6; }
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3611$as_echo "$cross_compiling" >&6; }
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3614$as_echo_n "checking for suffix of executables... " >&6; }
3615if { { ac_try="$ac_link"
3616case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621$as_echo "$ac_try_echo"; } >&5
3622  (eval "$ac_link") 2>&5
3623  ac_status=$?
3624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625  test $ac_status = 0; }; then :
3626  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3627# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3628# work properly (i.e., refer to `conftest.exe'), while it won't with
3629# `rm'.
3630for ac_file in conftest.exe conftest conftest.*; do
3631  test -f "$ac_file" || continue
3632  case $ac_file in
3633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3634    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3635	  break;;
3636    * ) break;;
3637  esac
3638done
3639else
3640  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error "cannot compute suffix of executables: cannot compile and link
3643See \`config.log' for more details." "$LINENO" 5; }
3644fi
3645rm -f conftest$ac_cv_exeext
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3647$as_echo "$ac_cv_exeext" >&6; }
3648
3649rm -f conftest.$ac_ext
3650EXEEXT=$ac_cv_exeext
3651ac_exeext=$EXEEXT
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653$as_echo_n "checking for suffix of object files... " >&6; }
3654if test "${ac_cv_objext+set}" = set; then :
3655  $as_echo_n "(cached) " >&6
3656else
3657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668rm -f conftest.o conftest.obj
3669if { { ac_try="$ac_compile"
3670case "(($ac_try" in
3671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672  *) ac_try_echo=$ac_try;;
3673esac
3674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675$as_echo "$ac_try_echo"; } >&5
3676  (eval "$ac_compile") 2>&5
3677  ac_status=$?
3678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679  test $ac_status = 0; }; then :
3680  for ac_file in conftest.o conftest.obj conftest.*; do
3681  test -f "$ac_file" || continue;
3682  case $ac_file in
3683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3685       break;;
3686  esac
3687done
3688else
3689  $as_echo "$as_me: failed program was:" >&5
3690sed 's/^/| /' conftest.$ac_ext >&5
3691
3692{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694as_fn_error "cannot compute suffix of object files: cannot compile
3695See \`config.log' for more details." "$LINENO" 5; }
3696fi
3697rm -f conftest.$ac_cv_objext conftest.$ac_ext
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700$as_echo "$ac_cv_objext" >&6; }
3701OBJEXT=$ac_cv_objext
3702ac_objext=$OBJEXT
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3706  $as_echo_n "(cached) " >&6
3707else
3708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710
3711int
3712main ()
3713{
3714#ifndef __GNUC__
3715       choke me
3716#endif
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723  ac_compiler_gnu=yes
3724else
3725  ac_compiler_gnu=no
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733if test $ac_compiler_gnu = yes; then
3734  GCC=yes
3735else
3736  GCC=
3737fi
3738ac_test_CFLAGS=${CFLAGS+set}
3739ac_save_CFLAGS=$CFLAGS
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741$as_echo_n "checking whether $CC accepts -g... " >&6; }
3742if test "${ac_cv_prog_cc_g+set}" = set; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  ac_save_c_werror_flag=$ac_c_werror_flag
3746   ac_c_werror_flag=yes
3747   ac_cv_prog_cc_g=no
3748   CFLAGS="-g"
3749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751
3752int
3753main ()
3754{
3755
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760if ac_fn_c_try_compile "$LINENO"; then :
3761  ac_cv_prog_cc_g=yes
3762else
3763  CFLAGS=""
3764      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h.  */
3766
3767int
3768main ()
3769{
3770
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_compile "$LINENO"; then :
3776
3777else
3778  ac_c_werror_flag=$ac_save_c_werror_flag
3779	 CFLAGS="-g"
3780	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782
3783int
3784main ()
3785{
3786
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792  ac_cv_prog_cc_g=yes
3793fi
3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799   ac_c_werror_flag=$ac_save_c_werror_flag
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802$as_echo "$ac_cv_prog_cc_g" >&6; }
3803if test "$ac_test_CFLAGS" = set; then
3804  CFLAGS=$ac_save_CFLAGS
3805elif test $ac_cv_prog_cc_g = yes; then
3806  if test "$GCC" = yes; then
3807    CFLAGS="-g -O2"
3808  else
3809    CFLAGS="-g"
3810  fi
3811else
3812  if test "$GCC" = yes; then
3813    CFLAGS="-O2"
3814  else
3815    CFLAGS=
3816  fi
3817fi
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820if test "${ac_cv_prog_cc_c89+set}" = set; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  ac_cv_prog_cc_c89=no
3824ac_save_CC=$CC
3825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h.  */
3827#include <stdarg.h>
3828#include <stdio.h>
3829#include <sys/types.h>
3830#include <sys/stat.h>
3831/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3832struct buf { int x; };
3833FILE * (*rcsopen) (struct buf *, struct stat *, int);
3834static char *e (p, i)
3835     char **p;
3836     int i;
3837{
3838  return p[i];
3839}
3840static char *f (char * (*g) (char **, int), char **p, ...)
3841{
3842  char *s;
3843  va_list v;
3844  va_start (v,p);
3845  s = g (p, va_arg (v,int));
3846  va_end (v);
3847  return s;
3848}
3849
3850/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3851   function prototypes and stuff, but not '\xHH' hex character constants.
3852   These don't provoke an error unfortunately, instead are silently treated
3853   as 'x'.  The following induces an error, until -std is added to get
3854   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3855   array size at least.  It's necessary to write '\x00'==0 to get something
3856   that's true only with -std.  */
3857int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858
3859/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3860   inside strings and character constants.  */
3861#define FOO(x) 'x'
3862int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863
3864int test (int i, double x);
3865struct s1 {int (*f) (int a);};
3866struct s2 {int (*f) (double a);};
3867int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3868int argc;
3869char **argv;
3870int
3871main ()
3872{
3873return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3874  ;
3875  return 0;
3876}
3877_ACEOF
3878for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3879	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880do
3881  CC="$ac_save_CC $ac_arg"
3882  if ac_fn_c_try_compile "$LINENO"; then :
3883  ac_cv_prog_cc_c89=$ac_arg
3884fi
3885rm -f core conftest.err conftest.$ac_objext
3886  test "x$ac_cv_prog_cc_c89" != "xno" && break
3887done
3888rm -f conftest.$ac_ext
3889CC=$ac_save_CC
3890
3891fi
3892# AC_CACHE_VAL
3893case "x$ac_cv_prog_cc_c89" in
3894  x)
3895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3896$as_echo "none needed" >&6; } ;;
3897  xno)
3898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3899$as_echo "unsupported" >&6; } ;;
3900  *)
3901    CC="$CC $ac_cv_prog_cc_c89"
3902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3903$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904esac
3905if test "x$ac_cv_prog_cc_c89" != xno; then :
3906
3907fi
3908
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914DEPDIR="${am__leading_dot}deps"
3915
3916ac_config_commands="$ac_config_commands depfiles"
3917
3918
3919am_make=${MAKE-make}
3920cat > confinc << 'END'
3921am__doit:
3922	@echo this is the am__doit target
3923.PHONY: am__doit
3924END
3925# If we don't find an include directive, just comment out the code.
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3927$as_echo_n "checking for style of include used by $am_make... " >&6; }
3928am__include="#"
3929am__quote=
3930_am_result=none
3931# First try GNU make style include.
3932echo "include confinc" > confmf
3933# Ignore all kinds of additional output from `make'.
3934case `$am_make -s -f confmf 2> /dev/null` in #(
3935*the\ am__doit\ target*)
3936  am__include=include
3937  am__quote=
3938  _am_result=GNU
3939  ;;
3940esac
3941# Now try BSD make style include.
3942if test "$am__include" = "#"; then
3943   echo '.include "confinc"' > confmf
3944   case `$am_make -s -f confmf 2> /dev/null` in #(
3945   *the\ am__doit\ target*)
3946     am__include=.include
3947     am__quote="\""
3948     _am_result=BSD
3949     ;;
3950   esac
3951fi
3952
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3955$as_echo "$_am_result" >&6; }
3956rm -f confinc confmf
3957
3958# Check whether --enable-dependency-tracking was given.
3959if test "${enable_dependency_tracking+set}" = set; then :
3960  enableval=$enable_dependency_tracking;
3961fi
3962
3963if test "x$enable_dependency_tracking" != xno; then
3964  am_depcomp="$ac_aux_dir/depcomp"
3965  AMDEPBACKSLASH='\'
3966fi
3967 if test "x$enable_dependency_tracking" != xno; then
3968  AMDEP_TRUE=
3969  AMDEP_FALSE='#'
3970else
3971  AMDEP_TRUE='#'
3972  AMDEP_FALSE=
3973fi
3974
3975
3976
3977depcc="$CC"   am_compiler_list=
3978
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3980$as_echo_n "checking dependency style of $depcc... " >&6; }
3981if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3982  $as_echo_n "(cached) " >&6
3983else
3984  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3985  # We make a subdir and do the tests there.  Otherwise we can end up
3986  # making bogus files that we don't know about and never remove.  For
3987  # instance it was reported that on HP-UX the gcc test will end up
3988  # making a dummy file named `D' -- because `-MD' means `put the output
3989  # in D'.
3990  mkdir conftest.dir
3991  # Copy depcomp to subdir because otherwise we won't find it if we're
3992  # using a relative directory.
3993  cp "$am_depcomp" conftest.dir
3994  cd conftest.dir
3995  # We will build objects and dependencies in a subdirectory because
3996  # it helps to detect inapplicable dependency modes.  For instance
3997  # both Tru64's cc and ICC support -MD to output dependencies as a
3998  # side effect of compilation, but ICC will put the dependencies in
3999  # the current directory while Tru64 will put them in the object
4000  # directory.
4001  mkdir sub
4002
4003  am_cv_CC_dependencies_compiler_type=none
4004  if test "$am_compiler_list" = ""; then
4005     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4006  fi
4007  am__universal=false
4008  case " $depcc " in #(
4009     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4010     esac
4011
4012  for depmode in $am_compiler_list; do
4013    # Setup a source with many dependencies, because some compilers
4014    # like to wrap large dependency lists on column 80 (with \), and
4015    # we should not choose a depcomp mode which is confused by this.
4016    #
4017    # We need to recreate these files for each test, as the compiler may
4018    # overwrite some of them when testing with obscure command lines.
4019    # This happens at least with the AIX C compiler.
4020    : > sub/conftest.c
4021    for i in 1 2 3 4 5 6; do
4022      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4023      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024      # Solaris 8's {/usr,}/bin/sh.
4025      touch sub/conftst$i.h
4026    done
4027    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4028
4029    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4030    # mode.  It turns out that the SunPro C++ compiler does not properly
4031    # handle `-M -o', and we need to detect this.  Also, some Intel
4032    # versions had trouble with output in subdirs
4033    am__obj=sub/conftest.${OBJEXT-o}
4034    am__minus_obj="-o $am__obj"
4035    case $depmode in
4036    gcc)
4037      # This depmode causes a compiler race in universal mode.
4038      test "$am__universal" = false || continue
4039      ;;
4040    nosideeffect)
4041      # after this tag, mechanisms are not by side-effect, so they'll
4042      # only be used when explicitly requested
4043      if test "x$enable_dependency_tracking" = xyes; then
4044	continue
4045      else
4046	break
4047      fi
4048      ;;
4049    msvisualcpp | msvcmsys)
4050      # This compiler won't grok `-c -o', but also, the minuso test has
4051      # not run yet.  These depmodes are late enough in the game, and
4052      # so weak that their functioning should not be impacted.
4053      am__obj=conftest.${OBJEXT-o}
4054      am__minus_obj=
4055      ;;
4056    none) break ;;
4057    esac
4058    if depmode=$depmode \
4059       source=sub/conftest.c object=$am__obj \
4060       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4061       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4062         >/dev/null 2>conftest.err &&
4063       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4064       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4065       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4066       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4067      # icc doesn't choke on unknown options, it will just issue warnings
4068      # or remarks (even with -Werror).  So we grep stderr for any message
4069      # that says an option was ignored or not supported.
4070      # When given -MP, icc 7.0 and 7.1 complain thusly:
4071      #   icc: Command line warning: ignoring option '-M'; no argument required
4072      # The diagnosis changed in icc 8.0:
4073      #   icc: Command line remark: option '-MP' not supported
4074      if (grep 'ignoring option' conftest.err ||
4075          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4076        am_cv_CC_dependencies_compiler_type=$depmode
4077        break
4078      fi
4079    fi
4080  done
4081
4082  cd ..
4083  rm -rf conftest.dir
4084else
4085  am_cv_CC_dependencies_compiler_type=none
4086fi
4087
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4090$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4091CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4092
4093 if
4094  test "x$enable_dependency_tracking" != xno \
4095  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4096  am__fastdepCC_TRUE=
4097  am__fastdepCC_FALSE='#'
4098else
4099  am__fastdepCC_TRUE='#'
4100  am__fastdepCC_FALSE=
4101fi
4102
4103
4104ac_ext=go
4105ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4106ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compile_gnu=yes
4108if test -n "$ac_tool_prefix"; then
4109  # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4110set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112$as_echo_n "checking for $ac_word... " >&6; }
4113if test "${ac_cv_prog_GOC+set}" = set; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  if test -n "$GOC"; then
4117  ac_cv_prog_GOC="$GOC" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122  IFS=$as_save_IFS
4123  test -z "$as_dir" && as_dir=.
4124    for ac_exec_ext in '' $ac_executable_extensions; do
4125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126    ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128    break 2
4129  fi
4130done
4131  done
4132IFS=$as_save_IFS
4133
4134fi
4135fi
4136GOC=$ac_cv_prog_GOC
4137if test -n "$GOC"; then
4138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4139$as_echo "$GOC" >&6; }
4140else
4141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142$as_echo "no" >&6; }
4143fi
4144
4145
4146fi
4147if test -z "$ac_cv_prog_GOC"; then
4148  ac_ct_GOC=$GOC
4149  # Extract the first word of "gccgo", so it can be a program name with args.
4150set dummy gccgo; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  if test -n "$ac_ct_GOC"; then
4157  ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164    for ac_exec_ext in '' $ac_executable_extensions; do
4165  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166    ac_cv_prog_ac_ct_GOC="gccgo"
4167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168    break 2
4169  fi
4170done
4171  done
4172IFS=$as_save_IFS
4173
4174fi
4175fi
4176ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4177if test -n "$ac_ct_GOC"; then
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4179$as_echo "$ac_ct_GOC" >&6; }
4180else
4181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185  if test "x$ac_ct_GOC" = x; then
4186    GOC=""
4187  else
4188    case $cross_compiling:$ac_tool_warned in
4189yes:)
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192ac_tool_warned=yes ;;
4193esac
4194    GOC=$ac_ct_GOC
4195  fi
4196else
4197  GOC="$ac_cv_prog_GOC"
4198fi
4199
4200if test -z "$GOC"; then
4201  if test -n "$ac_tool_prefix"; then
4202    # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4203set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if test "${ac_cv_prog_GOC+set}" = set; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  if test -n "$GOC"; then
4210  ac_cv_prog_GOC="$GOC" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217    for ac_exec_ext in '' $ac_executable_extensions; do
4218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219    ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221    break 2
4222  fi
4223done
4224  done
4225IFS=$as_save_IFS
4226
4227fi
4228fi
4229GOC=$ac_cv_prog_GOC
4230if test -n "$GOC"; then
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4232$as_echo "$GOC" >&6; }
4233else
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
4236fi
4237
4238
4239  fi
4240fi
4241if test -z "$GOC"; then
4242  # Extract the first word of "gccgo", so it can be a program name with args.
4243set dummy gccgo; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if test "${ac_cv_prog_GOC+set}" = set; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  if test -n "$GOC"; then
4250  ac_cv_prog_GOC="$GOC" # Let the user override the test.
4251else
4252  ac_prog_rejected=no
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256  IFS=$as_save_IFS
4257  test -z "$as_dir" && as_dir=.
4258    for ac_exec_ext in '' $ac_executable_extensions; do
4259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260    if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4261       ac_prog_rejected=yes
4262       continue
4263     fi
4264    ac_cv_prog_GOC="gccgo"
4265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268done
4269  done
4270IFS=$as_save_IFS
4271
4272if test $ac_prog_rejected = yes; then
4273  # We found a bogon in the path, so make sure we never use it.
4274  set dummy $ac_cv_prog_GOC
4275  shift
4276  if test $# != 0; then
4277    # We chose a different compiler from the bogus one.
4278    # However, it has the same basename, so the bogon will be chosen
4279    # first if we set GOC to just the basename; use the full file name.
4280    shift
4281    ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4282  fi
4283fi
4284fi
4285fi
4286GOC=$ac_cv_prog_GOC
4287if test -n "$GOC"; then
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4289$as_echo "$GOC" >&6; }
4290else
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293fi
4294
4295
4296fi
4297
4298
4299# Provide some information about the compiler.
4300$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4301set X $ac_compile
4302ac_compiler=$2
4303{ { ac_try="$ac_compiler --version >&5"
4304case "(($ac_try" in
4305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306  *) ac_try_echo=$ac_try;;
4307esac
4308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309$as_echo "$ac_try_echo"; } >&5
4310  (eval "$ac_compiler --version >&5") 2>conftest.err
4311  ac_status=$?
4312  if test -s conftest.err; then
4313    sed '10a\
4314... rest of stderr output deleted ...
4315         10q' conftest.err >conftest.er1
4316    cat conftest.er1 >&5
4317    rm -f conftest.er1 conftest.err
4318  fi
4319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320  test $ac_status = 0; }
4321GOCFLAGS="-g -O2"
4322ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328
4329
4330
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4334$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4335    # Check whether --enable-maintainer-mode was given.
4336if test "${enable_maintainer_mode+set}" = set; then :
4337  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4338else
4339  USE_MAINTAINER_MODE=no
4340fi
4341
4342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4343$as_echo "$USE_MAINTAINER_MODE" >&6; }
4344   if test $USE_MAINTAINER_MODE = yes; then
4345  MAINTAINER_MODE_TRUE=
4346  MAINTAINER_MODE_FALSE='#'
4347else
4348  MAINTAINER_MODE_TRUE='#'
4349  MAINTAINER_MODE_FALSE=
4350fi
4351
4352  MAINT=$MAINTAINER_MODE_TRUE
4353
4354
4355
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4357$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4358if test "${ac_cv_path_SED+set}" = set; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4362     for ac_i in 1 2 3 4 5 6 7; do
4363       ac_script="$ac_script$as_nl$ac_script"
4364     done
4365     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4366     { ac_script=; unset ac_script;}
4367     if test -z "$SED"; then
4368  ac_path_SED_found=false
4369  # Loop through the user's path and test for each of PROGNAME-LIST
4370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373  IFS=$as_save_IFS
4374  test -z "$as_dir" && as_dir=.
4375    for ac_prog in sed gsed; do
4376    for ac_exec_ext in '' $ac_executable_extensions; do
4377      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4378      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4379# Check for GNU ac_path_SED and select it if it is found.
4380  # Check for GNU $ac_path_SED
4381case `"$ac_path_SED" --version 2>&1` in
4382*GNU*)
4383  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4384*)
4385  ac_count=0
4386  $as_echo_n 0123456789 >"conftest.in"
4387  while :
4388  do
4389    cat "conftest.in" "conftest.in" >"conftest.tmp"
4390    mv "conftest.tmp" "conftest.in"
4391    cp "conftest.in" "conftest.nl"
4392    $as_echo '' >> "conftest.nl"
4393    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395    as_fn_arith $ac_count + 1 && ac_count=$as_val
4396    if test $ac_count -gt ${ac_path_SED_max-0}; then
4397      # Best one so far, save it but keep looking for a better one
4398      ac_cv_path_SED="$ac_path_SED"
4399      ac_path_SED_max=$ac_count
4400    fi
4401    # 10*(2^10) chars as input seems more than enough
4402    test $ac_count -gt 10 && break
4403  done
4404  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405esac
4406
4407      $ac_path_SED_found && break 3
4408    done
4409  done
4410  done
4411IFS=$as_save_IFS
4412  if test -z "$ac_cv_path_SED"; then
4413    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4414  fi
4415else
4416  ac_cv_path_SED=$SED
4417fi
4418
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4421$as_echo "$ac_cv_path_SED" >&6; }
4422 SED="$ac_cv_path_SED"
4423  rm -f conftest.sed
4424
4425test -z "$SED" && SED=sed
4426Xsed="$SED -e 1s/^X//"
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440if test "${ac_cv_path_GREP+set}" = set; then :
4441  $as_echo_n "(cached) " >&6
4442else
4443  if test -z "$GREP"; then
4444  ac_path_GREP_found=false
4445  # Loop through the user's path and test for each of PROGNAME-LIST
4446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448do
4449  IFS=$as_save_IFS
4450  test -z "$as_dir" && as_dir=.
4451    for ac_prog in grep ggrep; do
4452    for ac_exec_ext in '' $ac_executable_extensions; do
4453      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4455# Check for GNU ac_path_GREP and select it if it is found.
4456  # Check for GNU $ac_path_GREP
4457case `"$ac_path_GREP" --version 2>&1` in
4458*GNU*)
4459  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4460*)
4461  ac_count=0
4462  $as_echo_n 0123456789 >"conftest.in"
4463  while :
4464  do
4465    cat "conftest.in" "conftest.in" >"conftest.tmp"
4466    mv "conftest.tmp" "conftest.in"
4467    cp "conftest.in" "conftest.nl"
4468    $as_echo 'GREP' >> "conftest.nl"
4469    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471    as_fn_arith $ac_count + 1 && ac_count=$as_val
4472    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473      # Best one so far, save it but keep looking for a better one
4474      ac_cv_path_GREP="$ac_path_GREP"
4475      ac_path_GREP_max=$ac_count
4476    fi
4477    # 10*(2^10) chars as input seems more than enough
4478    test $ac_count -gt 10 && break
4479  done
4480  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481esac
4482
4483      $ac_path_GREP_found && break 3
4484    done
4485  done
4486  done
4487IFS=$as_save_IFS
4488  if test -z "$ac_cv_path_GREP"; then
4489    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490  fi
4491else
4492  ac_cv_path_GREP=$GREP
4493fi
4494
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497$as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4499
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502$as_echo_n "checking for egrep... " >&6; }
4503if test "${ac_cv_path_EGREP+set}" = set; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507   then ac_cv_path_EGREP="$GREP -E"
4508   else
4509     if test -z "$EGREP"; then
4510  ac_path_EGREP_found=false
4511  # Loop through the user's path and test for each of PROGNAME-LIST
4512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514do
4515  IFS=$as_save_IFS
4516  test -z "$as_dir" && as_dir=.
4517    for ac_prog in egrep; do
4518    for ac_exec_ext in '' $ac_executable_extensions; do
4519      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4521# Check for GNU ac_path_EGREP and select it if it is found.
4522  # Check for GNU $ac_path_EGREP
4523case `"$ac_path_EGREP" --version 2>&1` in
4524*GNU*)
4525  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4526*)
4527  ac_count=0
4528  $as_echo_n 0123456789 >"conftest.in"
4529  while :
4530  do
4531    cat "conftest.in" "conftest.in" >"conftest.tmp"
4532    mv "conftest.tmp" "conftest.in"
4533    cp "conftest.in" "conftest.nl"
4534    $as_echo 'EGREP' >> "conftest.nl"
4535    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537    as_fn_arith $ac_count + 1 && ac_count=$as_val
4538    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539      # Best one so far, save it but keep looking for a better one
4540      ac_cv_path_EGREP="$ac_path_EGREP"
4541      ac_path_EGREP_max=$ac_count
4542    fi
4543    # 10*(2^10) chars as input seems more than enough
4544    test $ac_count -gt 10 && break
4545  done
4546  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547esac
4548
4549      $ac_path_EGREP_found && break 3
4550    done
4551  done
4552  done
4553IFS=$as_save_IFS
4554  if test -z "$ac_cv_path_EGREP"; then
4555    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556  fi
4557else
4558  ac_cv_path_EGREP=$EGREP
4559fi
4560
4561   fi
4562fi
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564$as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4566
4567
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4569$as_echo_n "checking for fgrep... " >&6; }
4570if test "${ac_cv_path_FGREP+set}" = set; then :
4571  $as_echo_n "(cached) " >&6
4572else
4573  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4574   then ac_cv_path_FGREP="$GREP -F"
4575   else
4576     if test -z "$FGREP"; then
4577  ac_path_FGREP_found=false
4578  # Loop through the user's path and test for each of PROGNAME-LIST
4579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4581do
4582  IFS=$as_save_IFS
4583  test -z "$as_dir" && as_dir=.
4584    for ac_prog in fgrep; do
4585    for ac_exec_ext in '' $ac_executable_extensions; do
4586      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4587      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4588# Check for GNU ac_path_FGREP and select it if it is found.
4589  # Check for GNU $ac_path_FGREP
4590case `"$ac_path_FGREP" --version 2>&1` in
4591*GNU*)
4592  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4593*)
4594  ac_count=0
4595  $as_echo_n 0123456789 >"conftest.in"
4596  while :
4597  do
4598    cat "conftest.in" "conftest.in" >"conftest.tmp"
4599    mv "conftest.tmp" "conftest.in"
4600    cp "conftest.in" "conftest.nl"
4601    $as_echo 'FGREP' >> "conftest.nl"
4602    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604    as_fn_arith $ac_count + 1 && ac_count=$as_val
4605    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4606      # Best one so far, save it but keep looking for a better one
4607      ac_cv_path_FGREP="$ac_path_FGREP"
4608      ac_path_FGREP_max=$ac_count
4609    fi
4610    # 10*(2^10) chars as input seems more than enough
4611    test $ac_count -gt 10 && break
4612  done
4613  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614esac
4615
4616      $ac_path_FGREP_found && break 3
4617    done
4618  done
4619  done
4620IFS=$as_save_IFS
4621  if test -z "$ac_cv_path_FGREP"; then
4622    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4623  fi
4624else
4625  ac_cv_path_FGREP=$FGREP
4626fi
4627
4628   fi
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4631$as_echo "$ac_cv_path_FGREP" >&6; }
4632 FGREP="$ac_cv_path_FGREP"
4633
4634
4635test -z "$GREP" && GREP=grep
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4654ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4655ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4658$as_echo_n "checking how to print strings... " >&6; }
4659# Test print first, because it will be a builtin if present.
4660if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4661   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4662  ECHO='print -r --'
4663elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4664  ECHO='printf %s\n'
4665else
4666  # Use this function as a fallback that always works.
4667  func_fallback_echo ()
4668  {
4669    eval 'cat <<_LTECHO_EOF
4670$1
4671_LTECHO_EOF'
4672  }
4673  ECHO='func_fallback_echo'
4674fi
4675
4676# func_echo_all arg...
4677# Invoke $ECHO with all args, space-separated.
4678func_echo_all ()
4679{
4680    $ECHO ""
4681}
4682
4683case "$ECHO" in
4684  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4685$as_echo "printf" >&6; } ;;
4686  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4687$as_echo "print -r" >&6; } ;;
4688  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4689$as_echo "cat" >&6; } ;;
4690esac
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707# Check whether --with-gnu-ld was given.
4708if test "${with_gnu_ld+set}" = set; then :
4709  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4710else
4711  with_gnu_ld=no
4712fi
4713
4714ac_prog=ld
4715if test "$GCC" = yes; then
4716  # Check if gcc -print-prog-name=ld gives a path.
4717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4718$as_echo_n "checking for ld used by $CC... " >&6; }
4719  case $host in
4720  *-*-mingw*)
4721    # gcc leaves a trailing carriage return which upsets mingw
4722    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4723  *)
4724    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4725  esac
4726  case $ac_prog in
4727    # Accept absolute paths.
4728    [\\/]* | ?:[\\/]*)
4729      re_direlt='/[^/][^/]*/\.\./'
4730      # Canonicalize the pathname of ld
4731      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4732      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4733	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4734      done
4735      test -z "$LD" && LD="$ac_prog"
4736      ;;
4737  "")
4738    # If it fails, then pretend we aren't using GCC.
4739    ac_prog=ld
4740    ;;
4741  *)
4742    # If it is relative, then search for the first ld in PATH.
4743    with_gnu_ld=unknown
4744    ;;
4745  esac
4746elif test "$with_gnu_ld" = yes; then
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4748$as_echo_n "checking for GNU ld... " >&6; }
4749else
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4751$as_echo_n "checking for non-GNU ld... " >&6; }
4752fi
4753if test "${lt_cv_path_LD+set}" = set; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test -z "$LD"; then
4757  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4758  for ac_dir in $PATH; do
4759    IFS="$lt_save_ifs"
4760    test -z "$ac_dir" && ac_dir=.
4761    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4762      lt_cv_path_LD="$ac_dir/$ac_prog"
4763      # Check to see if the program is GNU ld.  I'd rather use --version,
4764      # but apparently some variants of GNU ld only accept -v.
4765      # Break only if it was the GNU/non-GNU ld that we prefer.
4766      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4767      *GNU* | *'with BFD'*)
4768	test "$with_gnu_ld" != no && break
4769	;;
4770      *)
4771	test "$with_gnu_ld" != yes && break
4772	;;
4773      esac
4774    fi
4775  done
4776  IFS="$lt_save_ifs"
4777else
4778  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4779fi
4780fi
4781
4782LD="$lt_cv_path_LD"
4783if test -n "$LD"; then
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4785$as_echo "$LD" >&6; }
4786else
4787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788$as_echo "no" >&6; }
4789fi
4790test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4792$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4793if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4797case `$LD -v 2>&1 </dev/null` in
4798*GNU* | *'with BFD'*)
4799  lt_cv_prog_gnu_ld=yes
4800  ;;
4801*)
4802  lt_cv_prog_gnu_ld=no
4803  ;;
4804esac
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4807$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4808with_gnu_ld=$lt_cv_prog_gnu_ld
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818if test -n "$ac_tool_prefix"; then
4819  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822$as_echo_n "checking for $ac_word... " >&6; }
4823if test "${ac_cv_prog_RANLIB+set}" = set; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826  if test -n "$RANLIB"; then
4827  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832  IFS=$as_save_IFS
4833  test -z "$as_dir" && as_dir=.
4834    for ac_exec_ext in '' $ac_executable_extensions; do
4835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838    break 2
4839  fi
4840done
4841  done
4842IFS=$as_save_IFS
4843
4844fi
4845fi
4846RANLIB=$ac_cv_prog_RANLIB
4847if test -n "$RANLIB"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4849$as_echo "$RANLIB" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855
4856fi
4857if test -z "$ac_cv_prog_RANLIB"; then
4858  ac_ct_RANLIB=$RANLIB
4859  # Extract the first word of "ranlib", so it can be a program name with args.
4860set dummy ranlib; ac_word=$2
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862$as_echo_n "checking for $ac_word... " >&6; }
4863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866  if test -n "$ac_ct_RANLIB"; then
4867  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872  IFS=$as_save_IFS
4873  test -z "$as_dir" && as_dir=.
4874    for ac_exec_ext in '' $ac_executable_extensions; do
4875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876    ac_cv_prog_ac_ct_RANLIB="ranlib"
4877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878    break 2
4879  fi
4880done
4881  done
4882IFS=$as_save_IFS
4883
4884fi
4885fi
4886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887if test -n "$ac_ct_RANLIB"; then
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4889$as_echo "$ac_ct_RANLIB" >&6; }
4890else
4891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892$as_echo "no" >&6; }
4893fi
4894
4895  if test "x$ac_ct_RANLIB" = x; then
4896    RANLIB=":"
4897  else
4898    case $cross_compiling:$ac_tool_warned in
4899yes:)
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902ac_tool_warned=yes ;;
4903esac
4904    RANLIB=$ac_ct_RANLIB
4905  fi
4906else
4907  RANLIB="$ac_cv_prog_RANLIB"
4908fi
4909
4910if test -n "$ac_tool_prefix"; then
4911  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4912set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914$as_echo_n "checking for $ac_word... " >&6; }
4915if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  if test -n "$OBJCOPY"; then
4919  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926    for ac_exec_ext in '' $ac_executable_extensions; do
4927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928    ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930    break 2
4931  fi
4932done
4933  done
4934IFS=$as_save_IFS
4935
4936fi
4937fi
4938OBJCOPY=$ac_cv_prog_OBJCOPY
4939if test -n "$OBJCOPY"; then
4940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4941$as_echo "$OBJCOPY" >&6; }
4942else
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947
4948fi
4949if test -z "$ac_cv_prog_OBJCOPY"; then
4950  ac_ct_OBJCOPY=$OBJCOPY
4951  # Extract the first word of "objcopy", so it can be a program name with args.
4952set dummy objcopy; ac_word=$2
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954$as_echo_n "checking for $ac_word... " >&6; }
4955if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  if test -n "$ac_ct_OBJCOPY"; then
4959  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964  IFS=$as_save_IFS
4965  test -z "$as_dir" && as_dir=.
4966    for ac_exec_ext in '' $ac_executable_extensions; do
4967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970    break 2
4971  fi
4972done
4973  done
4974IFS=$as_save_IFS
4975
4976fi
4977fi
4978ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4979if test -n "$ac_ct_OBJCOPY"; then
4980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4981$as_echo "$ac_ct_OBJCOPY" >&6; }
4982else
4983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984$as_echo "no" >&6; }
4985fi
4986
4987  if test "x$ac_ct_OBJCOPY" = x; then
4988    OBJCOPY="missing-objcopy"
4989  else
4990    case $cross_compiling:$ac_tool_warned in
4991yes:)
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994ac_tool_warned=yes ;;
4995esac
4996    OBJCOPY=$ac_ct_OBJCOPY
4997  fi
4998else
4999  OBJCOPY="$ac_cv_prog_OBJCOPY"
5000fi
5001
5002
5003enable_dlopen=yes
5004
5005
5006
5007case `pwd` in
5008  *\ * | *\	*)
5009    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5010$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5011esac
5012
5013
5014
5015macro_version='2.2.7a'
5016macro_revision='1.3134'
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030ltmain="$ac_aux_dir/ltmain.sh"
5031
5032# Backslashify metacharacters that are still active within
5033# double-quoted strings.
5034sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5035
5036# Same as above, but do not quote variable references.
5037double_quote_subst='s/\(["`\\]\)/\\\1/g'
5038
5039# Sed substitution to delay expansion of an escaped shell variable in a
5040# double_quote_subst'ed string.
5041delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5042
5043# Sed substitution to delay expansion of an escaped single quote.
5044delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5045
5046# Sed substitution to avoid accidental globbing in evaled expressions
5047no_glob_subst='s/\*/\\\*/g'
5048
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5050$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5051if test "${lt_cv_path_NM+set}" = set; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  if test -n "$NM"; then
5055  # Let the user override the test.
5056  lt_cv_path_NM="$NM"
5057else
5058  lt_nm_to_check="${ac_tool_prefix}nm"
5059  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5060    lt_nm_to_check="$lt_nm_to_check nm"
5061  fi
5062  for lt_tmp_nm in $lt_nm_to_check; do
5063    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5065      IFS="$lt_save_ifs"
5066      test -z "$ac_dir" && ac_dir=.
5067      tmp_nm="$ac_dir/$lt_tmp_nm"
5068      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069	# Check to see if the nm accepts a BSD-compat flag.
5070	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5071	#   nm: unknown option "B" ignored
5072	# Tru64's nm complains that /dev/null is an invalid object file
5073	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5074	*/dev/null* | *'Invalid file or object type'*)
5075	  lt_cv_path_NM="$tmp_nm -B"
5076	  break
5077	  ;;
5078	*)
5079	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5080	  */dev/null*)
5081	    lt_cv_path_NM="$tmp_nm -p"
5082	    break
5083	    ;;
5084	  *)
5085	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5086	    continue # so that we can try to find one that supports BSD flags
5087	    ;;
5088	  esac
5089	  ;;
5090	esac
5091      fi
5092    done
5093    IFS="$lt_save_ifs"
5094  done
5095  : ${lt_cv_path_NM=no}
5096fi
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5099$as_echo "$lt_cv_path_NM" >&6; }
5100if test "$lt_cv_path_NM" != "no"; then
5101  NM="$lt_cv_path_NM"
5102else
5103  # Didn't find any BSD compatible name lister, look for dumpbin.
5104  if test -n "$DUMPBIN"; then :
5105    # Let the user override the test.
5106  else
5107    if test -n "$ac_tool_prefix"; then
5108  for ac_prog in dumpbin "link -dump"
5109  do
5110    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  if test -n "$DUMPBIN"; then
5118  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123  IFS=$as_save_IFS
5124  test -z "$as_dir" && as_dir=.
5125    for ac_exec_ext in '' $ac_executable_extensions; do
5126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129    break 2
5130  fi
5131done
5132  done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137DUMPBIN=$ac_cv_prog_DUMPBIN
5138if test -n "$DUMPBIN"; then
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5140$as_echo "$DUMPBIN" >&6; }
5141else
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147    test -n "$DUMPBIN" && break
5148  done
5149fi
5150if test -z "$DUMPBIN"; then
5151  ac_ct_DUMPBIN=$DUMPBIN
5152  for ac_prog in dumpbin "link -dump"
5153do
5154  # Extract the first word of "$ac_prog", so it can be a program name with args.
5155set dummy $ac_prog; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  if test -n "$ac_ct_DUMPBIN"; then
5162  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167  IFS=$as_save_IFS
5168  test -z "$as_dir" && as_dir=.
5169    for ac_exec_ext in '' $ac_executable_extensions; do
5170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173    break 2
5174  fi
5175done
5176  done
5177IFS=$as_save_IFS
5178
5179fi
5180fi
5181ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5182if test -n "$ac_ct_DUMPBIN"; then
5183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5184$as_echo "$ac_ct_DUMPBIN" >&6; }
5185else
5186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
5188fi
5189
5190
5191  test -n "$ac_ct_DUMPBIN" && break
5192done
5193
5194  if test "x$ac_ct_DUMPBIN" = x; then
5195    DUMPBIN=":"
5196  else
5197    case $cross_compiling:$ac_tool_warned in
5198yes:)
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201ac_tool_warned=yes ;;
5202esac
5203    DUMPBIN=$ac_ct_DUMPBIN
5204  fi
5205fi
5206
5207    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5208    *COFF*)
5209      DUMPBIN="$DUMPBIN -symbols"
5210      ;;
5211    *)
5212      DUMPBIN=:
5213      ;;
5214    esac
5215  fi
5216
5217  if test "$DUMPBIN" != ":"; then
5218    NM="$DUMPBIN"
5219  fi
5220fi
5221test -z "$NM" && NM=nm
5222
5223
5224
5225
5226
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5229$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5230if test "${lt_cv_nm_interface+set}" = set; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  lt_cv_nm_interface="BSD nm"
5234  echo "int some_variable = 0;" > conftest.$ac_ext
5235  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5236  (eval "$ac_compile" 2>conftest.err)
5237  cat conftest.err >&5
5238  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5239  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5240  cat conftest.err >&5
5241  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5242  cat conftest.out >&5
5243  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5244    lt_cv_nm_interface="MS dumpbin"
5245  fi
5246  rm -f conftest*
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5249$as_echo "$lt_cv_nm_interface" >&6; }
5250
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5252$as_echo_n "checking whether ln -s works... " >&6; }
5253LN_S=$as_ln_s
5254if test "$LN_S" = "ln -s"; then
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256$as_echo "yes" >&6; }
5257else
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5259$as_echo "no, using $LN_S" >&6; }
5260fi
5261
5262# find the maximum length of command line arguments
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5264$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5265if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5266  $as_echo_n "(cached) " >&6
5267else
5268    i=0
5269  teststring="ABCD"
5270
5271  case $build_os in
5272  msdosdjgpp*)
5273    # On DJGPP, this test can blow up pretty badly due to problems in libc
5274    # (any single argument exceeding 2000 bytes causes a buffer overrun
5275    # during glob expansion).  Even if it were fixed, the result of this
5276    # check would be larger than it should be.
5277    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5278    ;;
5279
5280  gnu*)
5281    # Under GNU Hurd, this test is not required because there is
5282    # no limit to the length of command line arguments.
5283    # Libtool will interpret -1 as no limit whatsoever
5284    lt_cv_sys_max_cmd_len=-1;
5285    ;;
5286
5287  cygwin* | mingw* | cegcc*)
5288    # On Win9x/ME, this test blows up -- it succeeds, but takes
5289    # about 5 minutes as the teststring grows exponentially.
5290    # Worse, since 9x/ME are not pre-emptively multitasking,
5291    # you end up with a "frozen" computer, even though with patience
5292    # the test eventually succeeds (with a max line length of 256k).
5293    # Instead, let's just punt: use the minimum linelength reported by
5294    # all of the supported platforms: 8192 (on NT/2K/XP).
5295    lt_cv_sys_max_cmd_len=8192;
5296    ;;
5297
5298  mint*)
5299    # On MiNT this can take a long time and run out of memory.
5300    lt_cv_sys_max_cmd_len=8192;
5301    ;;
5302
5303  amigaos*)
5304    # On AmigaOS with pdksh, this test takes hours, literally.
5305    # So we just punt and use a minimum line length of 8192.
5306    lt_cv_sys_max_cmd_len=8192;
5307    ;;
5308
5309  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5310    # This has been around since 386BSD, at least.  Likely further.
5311    if test -x /sbin/sysctl; then
5312      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5313    elif test -x /usr/sbin/sysctl; then
5314      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5315    else
5316      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5317    fi
5318    # And add a safety zone
5319    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5321    ;;
5322
5323  interix*)
5324    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5325    lt_cv_sys_max_cmd_len=196608
5326    ;;
5327
5328  osf*)
5329    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5330    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5331    # nice to cause kernel panics so lets avoid the loop below.
5332    # First set a reasonable default.
5333    lt_cv_sys_max_cmd_len=16384
5334    #
5335    if test -x /sbin/sysconfig; then
5336      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5337        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5338      esac
5339    fi
5340    ;;
5341  sco3.2v5*)
5342    lt_cv_sys_max_cmd_len=102400
5343    ;;
5344  sysv5* | sco5v6* | sysv4.2uw2*)
5345    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5346    if test -n "$kargmax"; then
5347      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5348    else
5349      lt_cv_sys_max_cmd_len=32768
5350    fi
5351    ;;
5352  *)
5353    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5354    if test -n "$lt_cv_sys_max_cmd_len"; then
5355      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5356      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5357    else
5358      # Make teststring a little bigger before we do anything with it.
5359      # a 1K string should be a reasonable start.
5360      for i in 1 2 3 4 5 6 7 8 ; do
5361        teststring=$teststring$teststring
5362      done
5363      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5364      # If test is not a shell built-in, we'll probably end up computing a
5365      # maximum length that is only half of the actual maximum length, but
5366      # we can't tell.
5367      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5368	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5369	      test $i != 17 # 1/2 MB should be enough
5370      do
5371        i=`expr $i + 1`
5372        teststring=$teststring$teststring
5373      done
5374      # Only check the string length outside the loop.
5375      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5376      teststring=
5377      # Add a significant safety factor because C++ compilers can tack on
5378      # massive amounts of additional arguments before passing them to the
5379      # linker.  It appears as though 1/2 is a usable value.
5380      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5381    fi
5382    ;;
5383  esac
5384
5385fi
5386
5387if test -n $lt_cv_sys_max_cmd_len ; then
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5389$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5390else
5391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5392$as_echo "none" >&6; }
5393fi
5394max_cmd_len=$lt_cv_sys_max_cmd_len
5395
5396
5397
5398
5399
5400
5401: ${CP="cp -f"}
5402: ${MV="mv -f"}
5403: ${RM="rm -f"}
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5406$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5407# Try some XSI features
5408xsi_shell=no
5409( _lt_dummy="a/b/c"
5410  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5411      = c,a/b,, \
5412    && eval 'test $(( 1 + 1 )) -eq 2 \
5413    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5414  && xsi_shell=yes
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5416$as_echo "$xsi_shell" >&6; }
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5420$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5421lt_shell_append=no
5422( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5423    >/dev/null 2>&1 \
5424  && lt_shell_append=yes
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5426$as_echo "$lt_shell_append" >&6; }
5427
5428
5429if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5430  lt_unset=unset
5431else
5432  lt_unset=false
5433fi
5434
5435
5436
5437
5438
5439# test EBCDIC or ASCII
5440case `echo X|tr X '\101'` in
5441 A) # ASCII based system
5442    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5443  lt_SP2NL='tr \040 \012'
5444  lt_NL2SP='tr \015\012 \040\040'
5445  ;;
5446 *) # EBCDIC based system
5447  lt_SP2NL='tr \100 \n'
5448  lt_NL2SP='tr \r\n \100\100'
5449  ;;
5450esac
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5461$as_echo_n "checking for $LD option to reload object files... " >&6; }
5462if test "${lt_cv_ld_reload_flag+set}" = set; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465  lt_cv_ld_reload_flag='-r'
5466fi
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5468$as_echo "$lt_cv_ld_reload_flag" >&6; }
5469reload_flag=$lt_cv_ld_reload_flag
5470case $reload_flag in
5471"" | " "*) ;;
5472*) reload_flag=" $reload_flag" ;;
5473esac
5474reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475case $host_os in
5476  darwin*)
5477    if test "$GCC" = yes; then
5478      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5479    else
5480      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5481    fi
5482    ;;
5483esac
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493if test -n "$ac_tool_prefix"; then
5494  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5495set dummy ${ac_tool_prefix}objdump; ac_word=$2
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
5498if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5499  $as_echo_n "(cached) " >&6
5500else
5501  if test -n "$OBJDUMP"; then
5502  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507  IFS=$as_save_IFS
5508  test -z "$as_dir" && as_dir=.
5509    for ac_exec_ext in '' $ac_executable_extensions; do
5510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513    break 2
5514  fi
5515done
5516  done
5517IFS=$as_save_IFS
5518
5519fi
5520fi
5521OBJDUMP=$ac_cv_prog_OBJDUMP
5522if test -n "$OBJDUMP"; then
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5524$as_echo "$OBJDUMP" >&6; }
5525else
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527$as_echo "no" >&6; }
5528fi
5529
5530
5531fi
5532if test -z "$ac_cv_prog_OBJDUMP"; then
5533  ac_ct_OBJDUMP=$OBJDUMP
5534  # Extract the first word of "objdump", so it can be a program name with args.
5535set dummy objdump; ac_word=$2
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537$as_echo_n "checking for $ac_word... " >&6; }
5538if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5539  $as_echo_n "(cached) " >&6
5540else
5541  if test -n "$ac_ct_OBJDUMP"; then
5542  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547  IFS=$as_save_IFS
5548  test -z "$as_dir" && as_dir=.
5549    for ac_exec_ext in '' $ac_executable_extensions; do
5550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553    break 2
5554  fi
5555done
5556  done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5562if test -n "$ac_ct_OBJDUMP"; then
5563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5564$as_echo "$ac_ct_OBJDUMP" >&6; }
5565else
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568fi
5569
5570  if test "x$ac_ct_OBJDUMP" = x; then
5571    OBJDUMP="false"
5572  else
5573    case $cross_compiling:$ac_tool_warned in
5574yes:)
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577ac_tool_warned=yes ;;
5578esac
5579    OBJDUMP=$ac_ct_OBJDUMP
5580  fi
5581else
5582  OBJDUMP="$ac_cv_prog_OBJDUMP"
5583fi
5584
5585test -z "$OBJDUMP" && OBJDUMP=objdump
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5596$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5597if test "${lt_cv_deplibs_check_method+set}" = set; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  lt_cv_file_magic_cmd='$MAGIC_CMD'
5601lt_cv_file_magic_test_file=
5602lt_cv_deplibs_check_method='unknown'
5603# Need to set the preceding variable on all platforms that support
5604# interlibrary dependencies.
5605# 'none' -- dependencies not supported.
5606# `unknown' -- same as none, but documents that we really don't know.
5607# 'pass_all' -- all dependencies passed with no checks.
5608# 'test_compile' -- check by making test program.
5609# 'file_magic [[regex]]' -- check by looking for files in library path
5610# which responds to the $file_magic_cmd with a given extended regex.
5611# If you have `file' or equivalent on your system and you're not sure
5612# whether `pass_all' will *always* work, you probably want this one.
5613
5614case $host_os in
5615aix[4-9]*)
5616  lt_cv_deplibs_check_method=pass_all
5617  ;;
5618
5619beos*)
5620  lt_cv_deplibs_check_method=pass_all
5621  ;;
5622
5623bsdi[45]*)
5624  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5625  lt_cv_file_magic_cmd='/usr/bin/file -L'
5626  lt_cv_file_magic_test_file=/shlib/libc.so
5627  ;;
5628
5629cygwin*)
5630  # func_win32_libid is a shell function defined in ltmain.sh
5631  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5632  lt_cv_file_magic_cmd='func_win32_libid'
5633  ;;
5634
5635mingw* | pw32*)
5636  # Base MSYS/MinGW do not provide the 'file' command needed by
5637  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5638  # unless we find 'file', for example because we are cross-compiling.
5639  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5640  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5641    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5642    lt_cv_file_magic_cmd='func_win32_libid'
5643  else
5644    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5645    lt_cv_file_magic_cmd='$OBJDUMP -f'
5646  fi
5647  ;;
5648
5649cegcc*)
5650  # use the weaker test based on 'objdump'. See mingw*.
5651  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5652  lt_cv_file_magic_cmd='$OBJDUMP -f'
5653  ;;
5654
5655darwin* | rhapsody*)
5656  lt_cv_deplibs_check_method=pass_all
5657  ;;
5658
5659freebsd* | dragonfly*)
5660  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5661    case $host_cpu in
5662    i*86 )
5663      # Not sure whether the presence of OpenBSD here was a mistake.
5664      # Let's accept both of them until this is cleared up.
5665      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5666      lt_cv_file_magic_cmd=/usr/bin/file
5667      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5668      ;;
5669    esac
5670  else
5671    lt_cv_deplibs_check_method=pass_all
5672  fi
5673  ;;
5674
5675gnu*)
5676  lt_cv_deplibs_check_method=pass_all
5677  ;;
5678
5679haiku*)
5680  lt_cv_deplibs_check_method=pass_all
5681  ;;
5682
5683hpux10.20* | hpux11*)
5684  lt_cv_file_magic_cmd=/usr/bin/file
5685  case $host_cpu in
5686  ia64*)
5687    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5688    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5689    ;;
5690  hppa*64*)
5691    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]'
5692    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5693    ;;
5694  *)
5695    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5696    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5697    ;;
5698  esac
5699  ;;
5700
5701interix[3-9]*)
5702  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5703  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5704  ;;
5705
5706irix5* | irix6* | nonstopux*)
5707  case $LD in
5708  *-32|*"-32 ") libmagic=32-bit;;
5709  *-n32|*"-n32 ") libmagic=N32;;
5710  *-64|*"-64 ") libmagic=64-bit;;
5711  *) libmagic=never-match;;
5712  esac
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5716# This must be Linux ELF.
5717linux* | k*bsd*-gnu | kopensolaris*-gnu)
5718  lt_cv_deplibs_check_method=pass_all
5719  ;;
5720
5721netbsd*)
5722  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5723    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5724  else
5725    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5726  fi
5727  ;;
5728
5729newos6*)
5730  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5731  lt_cv_file_magic_cmd=/usr/bin/file
5732  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5733  ;;
5734
5735*nto* | *qnx*)
5736  lt_cv_deplibs_check_method=pass_all
5737  ;;
5738
5739openbsd*)
5740  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5741    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5742  else
5743    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5744  fi
5745  ;;
5746
5747osf3* | osf4* | osf5*)
5748  lt_cv_deplibs_check_method=pass_all
5749  ;;
5750
5751rdos*)
5752  lt_cv_deplibs_check_method=pass_all
5753  ;;
5754
5755solaris*)
5756  lt_cv_deplibs_check_method=pass_all
5757  ;;
5758
5759sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5760  lt_cv_deplibs_check_method=pass_all
5761  ;;
5762
5763sysv4 | sysv4.3*)
5764  case $host_vendor in
5765  motorola)
5766    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]'
5767    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5768    ;;
5769  ncr)
5770    lt_cv_deplibs_check_method=pass_all
5771    ;;
5772  sequent)
5773    lt_cv_file_magic_cmd='/bin/file'
5774    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5775    ;;
5776  sni)
5777    lt_cv_file_magic_cmd='/bin/file'
5778    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5779    lt_cv_file_magic_test_file=/lib/libc.so
5780    ;;
5781  siemens)
5782    lt_cv_deplibs_check_method=pass_all
5783    ;;
5784  pc)
5785    lt_cv_deplibs_check_method=pass_all
5786    ;;
5787  esac
5788  ;;
5789
5790tpf*)
5791  lt_cv_deplibs_check_method=pass_all
5792  ;;
5793esac
5794
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5797$as_echo "$lt_cv_deplibs_check_method" >&6; }
5798file_magic_cmd=$lt_cv_file_magic_cmd
5799deplibs_check_method=$lt_cv_deplibs_check_method
5800test -z "$deplibs_check_method" && deplibs_check_method=unknown
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813if test -n "$ac_tool_prefix"; then
5814  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}ar; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if test "${ac_cv_prog_AR+set}" = set; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  if test -n "$AR"; then
5822  ac_cv_prog_AR="$AR" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831    ac_cv_prog_AR="${ac_tool_prefix}ar"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841AR=$ac_cv_prog_AR
5842if test -n "$AR"; then
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5844$as_echo "$AR" >&6; }
5845else
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851fi
5852if test -z "$ac_cv_prog_AR"; then
5853  ac_ct_AR=$AR
5854  # Extract the first word of "ar", so it can be a program name with args.
5855set dummy ar; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
5858if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  if test -n "$ac_ct_AR"; then
5862  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867  IFS=$as_save_IFS
5868  test -z "$as_dir" && as_dir=.
5869    for ac_exec_ext in '' $ac_executable_extensions; do
5870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871    ac_cv_prog_ac_ct_AR="ar"
5872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873    break 2
5874  fi
5875done
5876  done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_AR=$ac_cv_prog_ac_ct_AR
5882if test -n "$ac_ct_AR"; then
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5884$as_echo "$ac_ct_AR" >&6; }
5885else
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890  if test "x$ac_ct_AR" = x; then
5891    AR="false"
5892  else
5893    case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
5898esac
5899    AR=$ac_ct_AR
5900  fi
5901else
5902  AR="$ac_cv_prog_AR"
5903fi
5904
5905test -z "$AR" && AR=ar
5906test -z "$AR_FLAGS" && AR_FLAGS=cru
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918if test -n "$ac_tool_prefix"; then
5919  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}strip; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if test "${ac_cv_prog_STRIP+set}" = set; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  if test -n "$STRIP"; then
5927  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932  IFS=$as_save_IFS
5933  test -z "$as_dir" && as_dir=.
5934    for ac_exec_ext in '' $ac_executable_extensions; do
5935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938    break 2
5939  fi
5940done
5941  done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946STRIP=$ac_cv_prog_STRIP
5947if test -n "$STRIP"; then
5948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5949$as_echo "$STRIP" >&6; }
5950else
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956fi
5957if test -z "$ac_cv_prog_STRIP"; then
5958  ac_ct_STRIP=$STRIP
5959  # Extract the first word of "strip", so it can be a program name with args.
5960set dummy strip; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if test -n "$ac_ct_STRIP"; then
5967  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972  IFS=$as_save_IFS
5973  test -z "$as_dir" && as_dir=.
5974    for ac_exec_ext in '' $ac_executable_extensions; do
5975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976    ac_cv_prog_ac_ct_STRIP="strip"
5977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978    break 2
5979  fi
5980done
5981  done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5987if test -n "$ac_ct_STRIP"; then
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5989$as_echo "$ac_ct_STRIP" >&6; }
5990else
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995  if test "x$ac_ct_STRIP" = x; then
5996    STRIP=":"
5997  else
5998    case $cross_compiling:$ac_tool_warned in
5999yes:)
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002ac_tool_warned=yes ;;
6003esac
6004    STRIP=$ac_ct_STRIP
6005  fi
6006else
6007  STRIP="$ac_cv_prog_STRIP"
6008fi
6009
6010test -z "$STRIP" && STRIP=:
6011
6012
6013
6014
6015
6016
6017if test -n "$ac_tool_prefix"; then
6018  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6019set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021$as_echo_n "checking for $ac_word... " >&6; }
6022if test "${ac_cv_prog_RANLIB+set}" = set; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025  if test -n "$RANLIB"; then
6026  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031  IFS=$as_save_IFS
6032  test -z "$as_dir" && as_dir=.
6033    for ac_exec_ext in '' $ac_executable_extensions; do
6034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037    break 2
6038  fi
6039done
6040  done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045RANLIB=$ac_cv_prog_RANLIB
6046if test -n "$RANLIB"; then
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6048$as_echo "$RANLIB" >&6; }
6049else
6050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052fi
6053
6054
6055fi
6056if test -z "$ac_cv_prog_RANLIB"; then
6057  ac_ct_RANLIB=$RANLIB
6058  # Extract the first word of "ranlib", so it can be a program name with args.
6059set dummy ranlib; ac_word=$2
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061$as_echo_n "checking for $ac_word... " >&6; }
6062if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6063  $as_echo_n "(cached) " >&6
6064else
6065  if test -n "$ac_ct_RANLIB"; then
6066  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071  IFS=$as_save_IFS
6072  test -z "$as_dir" && as_dir=.
6073    for ac_exec_ext in '' $ac_executable_extensions; do
6074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075    ac_cv_prog_ac_ct_RANLIB="ranlib"
6076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077    break 2
6078  fi
6079done
6080  done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6086if test -n "$ac_ct_RANLIB"; then
6087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6088$as_echo "$ac_ct_RANLIB" >&6; }
6089else
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }
6092fi
6093
6094  if test "x$ac_ct_RANLIB" = x; then
6095    RANLIB=":"
6096  else
6097    case $cross_compiling:$ac_tool_warned in
6098yes:)
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101ac_tool_warned=yes ;;
6102esac
6103    RANLIB=$ac_ct_RANLIB
6104  fi
6105else
6106  RANLIB="$ac_cv_prog_RANLIB"
6107fi
6108
6109test -z "$RANLIB" && RANLIB=:
6110
6111
6112
6113
6114
6115
6116# Determine commands to create old-style static archives.
6117old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6118old_postinstall_cmds='chmod 644 $oldlib'
6119old_postuninstall_cmds=
6120
6121if test -n "$RANLIB"; then
6122  case $host_os in
6123  openbsd*)
6124    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6125    ;;
6126  *)
6127    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6128    ;;
6129  esac
6130  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6131fi
6132
6133case $host_os in
6134  darwin*)
6135    lock_old_archive_extraction=yes ;;
6136  *)
6137    lock_old_archive_extraction=no ;;
6138esac
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178# If no C compiler was specified, use CC.
6179LTCC=${LTCC-"$CC"}
6180
6181# If no C compiler flags were specified, use CFLAGS.
6182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6183
6184# Allow CC to be a program name with arguments.
6185compiler=$CC
6186
6187
6188# Check for command to grab the raw symbol name followed by C symbol from nm.
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6190$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6191if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194
6195# These are sane defaults that work on at least a few old systems.
6196# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6197
6198# Character class describing NM global symbol codes.
6199symcode='[BCDEGRST]'
6200
6201# Regexp to match symbols that can be accessed directly from C.
6202sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6203
6204# Define system-specific variables.
6205case $host_os in
6206aix*)
6207  symcode='[BCDT]'
6208  ;;
6209cygwin* | mingw* | pw32* | cegcc*)
6210  symcode='[ABCDGISTW]'
6211  ;;
6212hpux*)
6213  if test "$host_cpu" = ia64; then
6214    symcode='[ABCDEGRST]'
6215  fi
6216  ;;
6217irix* | nonstopux*)
6218  symcode='[BCDEGRST]'
6219  ;;
6220osf*)
6221  symcode='[BCDEGQRST]'
6222  ;;
6223solaris*)
6224  symcode='[BDRT]'
6225  ;;
6226sco3.2v5*)
6227  symcode='[DT]'
6228  ;;
6229sysv4.2uw2*)
6230  symcode='[DT]'
6231  ;;
6232sysv5* | sco5v6* | unixware* | OpenUNIX*)
6233  symcode='[ABDT]'
6234  ;;
6235sysv4)
6236  symcode='[DFNSTU]'
6237  ;;
6238esac
6239
6240# If we're using GNU nm, then use its standard symbol codes.
6241case `$NM -V 2>&1` in
6242*GNU* | *'with BFD'*)
6243  symcode='[ABCDGIRSTW]' ;;
6244esac
6245
6246# Transform an extracted symbol line into a proper C declaration.
6247# Some systems (esp. on ia64) link data and code symbols differently,
6248# so use this general approach.
6249lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6250
6251# Transform an extracted symbol line into symbol name and symbol address
6252lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6253lt_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'"
6254
6255# Handle CRLF in mingw tool chain
6256opt_cr=
6257case $build_os in
6258mingw*)
6259  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6260  ;;
6261esac
6262
6263# Try without a prefix underscore, then with it.
6264for ac_symprfx in "" "_"; do
6265
6266  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6267  symxfrm="\\1 $ac_symprfx\\2 \\2"
6268
6269  # Write the raw and C identifiers.
6270  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6271    # Fake it for dumpbin and say T for any non-static function
6272    # and D for any global variable.
6273    # Also find C++ and __fastcall symbols from MSVC++,
6274    # which start with @ or ?.
6275    lt_cv_sys_global_symbol_pipe="$AWK '"\
6276"     {last_section=section; section=\$ 3};"\
6277"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6278"     \$ 0!~/External *\|/{next};"\
6279"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6280"     {if(hide[section]) next};"\
6281"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6282"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6283"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6284"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6285"     ' prfx=^$ac_symprfx"
6286  else
6287    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288  fi
6289
6290  # Check to see that the pipe works correctly.
6291  pipe_works=no
6292
6293  rm -f conftest*
6294  cat > conftest.$ac_ext <<_LT_EOF
6295#ifdef __cplusplus
6296extern "C" {
6297#endif
6298char nm_test_var;
6299void nm_test_func(void);
6300void nm_test_func(void){}
6301#ifdef __cplusplus
6302}
6303#endif
6304int main(){nm_test_var='a';nm_test_func();return(0);}
6305_LT_EOF
6306
6307  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308  (eval $ac_compile) 2>&5
6309  ac_status=$?
6310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311  test $ac_status = 0; }; then
6312    # Now try to grab the symbols.
6313    nlist=conftest.nm
6314    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6315  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6316  ac_status=$?
6317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318  test $ac_status = 0; } && test -s "$nlist"; then
6319      # Try sorting and uniquifying the output.
6320      if sort "$nlist" | uniq > "$nlist"T; then
6321	mv -f "$nlist"T "$nlist"
6322      else
6323	rm -f "$nlist"T
6324      fi
6325
6326      # Make sure that we snagged all the symbols we need.
6327      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6328	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6329	  cat <<_LT_EOF > conftest.$ac_ext
6330#ifdef __cplusplus
6331extern "C" {
6332#endif
6333
6334_LT_EOF
6335	  # Now generate the symbol file.
6336	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6337
6338	  cat <<_LT_EOF >> conftest.$ac_ext
6339
6340/* The mapping between symbol names and symbols.  */
6341const struct {
6342  const char *name;
6343  void       *address;
6344}
6345lt__PROGRAM__LTX_preloaded_symbols[] =
6346{
6347  { "@PROGRAM@", (void *) 0 },
6348_LT_EOF
6349	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6350	  cat <<\_LT_EOF >> conftest.$ac_ext
6351  {0, (void *) 0}
6352};
6353
6354/* This works around a problem in FreeBSD linker */
6355#ifdef FREEBSD_WORKAROUND
6356static const void *lt_preloaded_setup() {
6357  return lt__PROGRAM__LTX_preloaded_symbols;
6358}
6359#endif
6360
6361#ifdef __cplusplus
6362}
6363#endif
6364_LT_EOF
6365	  # Now try linking the two files.
6366	  mv conftest.$ac_objext conftstm.$ac_objext
6367	  lt_save_LIBS="$LIBS"
6368	  lt_save_CFLAGS="$CFLAGS"
6369	  LIBS="conftstm.$ac_objext"
6370	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6371	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6372  (eval $ac_link) 2>&5
6373  ac_status=$?
6374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6376	    pipe_works=yes
6377	  fi
6378	  LIBS="$lt_save_LIBS"
6379	  CFLAGS="$lt_save_CFLAGS"
6380	else
6381	  echo "cannot find nm_test_func in $nlist" >&5
6382	fi
6383      else
6384	echo "cannot find nm_test_var in $nlist" >&5
6385      fi
6386    else
6387      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6388    fi
6389  else
6390    echo "$progname: failed program was:" >&5
6391    cat conftest.$ac_ext >&5
6392  fi
6393  rm -rf conftest* conftst*
6394
6395  # Do not use the global_symbol_pipe unless it works.
6396  if test "$pipe_works" = yes; then
6397    break
6398  else
6399    lt_cv_sys_global_symbol_pipe=
6400  fi
6401done
6402
6403fi
6404
6405if test -z "$lt_cv_sys_global_symbol_pipe"; then
6406  lt_cv_sys_global_symbol_to_cdecl=
6407fi
6408if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6410$as_echo "failed" >&6; }
6411else
6412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6413$as_echo "ok" >&6; }
6414fi
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438# Check whether --enable-libtool-lock was given.
6439if test "${enable_libtool_lock+set}" = set; then :
6440  enableval=$enable_libtool_lock;
6441fi
6442
6443test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6444
6445# Some flags need to be propagated to the compiler or linker for good
6446# libtool support.
6447case $host in
6448ia64-*-hpux*)
6449  # Find out which ABI we are using.
6450  echo 'int i;' > conftest.$ac_ext
6451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452  (eval $ac_compile) 2>&5
6453  ac_status=$?
6454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455  test $ac_status = 0; }; then
6456    case `/usr/bin/file conftest.$ac_objext` in
6457      *ELF-32*)
6458	HPUX_IA64_MODE="32"
6459	;;
6460      *ELF-64*)
6461	HPUX_IA64_MODE="64"
6462	;;
6463    esac
6464  fi
6465  rm -rf conftest*
6466  ;;
6467*-*-irix6*)
6468  # Find out which ABI we are using.
6469  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6470  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471  (eval $ac_compile) 2>&5
6472  ac_status=$?
6473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474  test $ac_status = 0; }; then
6475    if test "$lt_cv_prog_gnu_ld" = yes; then
6476      case `/usr/bin/file conftest.$ac_objext` in
6477	*32-bit*)
6478	  LD="${LD-ld} -melf32bsmip"
6479	  ;;
6480	*N32*)
6481	  LD="${LD-ld} -melf32bmipn32"
6482	  ;;
6483	*64-bit*)
6484	  LD="${LD-ld} -melf64bmip"
6485	;;
6486      esac
6487    else
6488      case `/usr/bin/file conftest.$ac_objext` in
6489	*32-bit*)
6490	  LD="${LD-ld} -32"
6491	  ;;
6492	*N32*)
6493	  LD="${LD-ld} -n32"
6494	  ;;
6495	*64-bit*)
6496	  LD="${LD-ld} -64"
6497	  ;;
6498      esac
6499    fi
6500  fi
6501  rm -rf conftest*
6502  ;;
6503
6504x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6505s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6506  # Find out which ABI we are using.
6507  echo 'int i;' > conftest.$ac_ext
6508  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509  (eval $ac_compile) 2>&5
6510  ac_status=$?
6511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512  test $ac_status = 0; }; then
6513    case `/usr/bin/file conftest.o` in
6514      *32-bit*)
6515	case $host in
6516	  x86_64-*kfreebsd*-gnu)
6517	    LD="${LD-ld} -m elf_i386_fbsd"
6518	    ;;
6519	  x86_64-*linux*)
6520	    LD="${LD-ld} -m elf_i386"
6521	    ;;
6522	  ppc64-*linux*|powerpc64-*linux*)
6523	    LD="${LD-ld} -m elf32ppclinux"
6524	    ;;
6525	  s390x-*linux*)
6526	    LD="${LD-ld} -m elf_s390"
6527	    ;;
6528	  sparc64-*linux*)
6529	    LD="${LD-ld} -m elf32_sparc"
6530	    ;;
6531	esac
6532	;;
6533      *64-bit*)
6534	case $host in
6535	  x86_64-*kfreebsd*-gnu)
6536	    LD="${LD-ld} -m elf_x86_64_fbsd"
6537	    ;;
6538	  x86_64-*linux*)
6539	    LD="${LD-ld} -m elf_x86_64"
6540	    ;;
6541	  ppc*-*linux*|powerpc*-*linux*)
6542	    LD="${LD-ld} -m elf64ppc"
6543	    ;;
6544	  s390*-*linux*|s390*-*tpf*)
6545	    LD="${LD-ld} -m elf64_s390"
6546	    ;;
6547	  sparc*-*linux*)
6548	    LD="${LD-ld} -m elf64_sparc"
6549	    ;;
6550	esac
6551	;;
6552    esac
6553  fi
6554  rm -rf conftest*
6555  ;;
6556
6557*-*-sco3.2v5*)
6558  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6559  SAVE_CFLAGS="$CFLAGS"
6560  CFLAGS="$CFLAGS -belf"
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6562$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6563if test "${lt_cv_cc_needs_belf+set}" = set; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566  ac_ext=c
6567ac_cpp='$CPP $CPPFLAGS'
6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574
6575int
6576main ()
6577{
6578
6579  ;
6580  return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_link "$LINENO"; then :
6584  lt_cv_cc_needs_belf=yes
6585else
6586  lt_cv_cc_needs_belf=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext \
6589    conftest$ac_exeext conftest.$ac_ext
6590     ac_ext=c
6591ac_cpp='$CPP $CPPFLAGS'
6592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6598$as_echo "$lt_cv_cc_needs_belf" >&6; }
6599  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6600    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6601    CFLAGS="$SAVE_CFLAGS"
6602  fi
6603  ;;
6604*-*solaris*)
6605  # Find out which ABI we are using.
6606  echo 'int i;' > conftest.$ac_ext
6607  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608  (eval $ac_compile) 2>&5
6609  ac_status=$?
6610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611  test $ac_status = 0; }; then
6612    case `/usr/bin/file conftest.o` in
6613    *64-bit*)
6614      case $lt_cv_prog_gnu_ld in
6615      yes*)
6616        case $host in
6617        i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6618          LD="${LD-ld} -m elf_x86_64"
6619          ;;
6620        sparc*-*-solaris*)
6621          LD="${LD-ld} -m elf64_sparc"
6622          ;;
6623        esac
6624        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6625        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6626          LD="${LD-ld}_sol2"
6627        fi
6628        ;;
6629      *)
6630	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6631	  LD="${LD-ld} -64"
6632	fi
6633	;;
6634      esac
6635      ;;
6636    esac
6637  fi
6638  rm -rf conftest*
6639  ;;
6640esac
6641
6642need_locks="$enable_libtool_lock"
6643
6644
6645  case $host_os in
6646    rhapsody* | darwin*)
6647    if test -n "$ac_tool_prefix"; then
6648  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6649set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651$as_echo_n "checking for $ac_word... " >&6; }
6652if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  if test -n "$DSYMUTIL"; then
6656  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6657else
6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661  IFS=$as_save_IFS
6662  test -z "$as_dir" && as_dir=.
6663    for ac_exec_ext in '' $ac_executable_extensions; do
6664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667    break 2
6668  fi
6669done
6670  done
6671IFS=$as_save_IFS
6672
6673fi
6674fi
6675DSYMUTIL=$ac_cv_prog_DSYMUTIL
6676if test -n "$DSYMUTIL"; then
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6678$as_echo "$DSYMUTIL" >&6; }
6679else
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681$as_echo "no" >&6; }
6682fi
6683
6684
6685fi
6686if test -z "$ac_cv_prog_DSYMUTIL"; then
6687  ac_ct_DSYMUTIL=$DSYMUTIL
6688  # Extract the first word of "dsymutil", so it can be a program name with args.
6689set dummy dsymutil; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$ac_ct_DSYMUTIL"; then
6696  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6716if test -n "$ac_ct_DSYMUTIL"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6718$as_echo "$ac_ct_DSYMUTIL" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724  if test "x$ac_ct_DSYMUTIL" = x; then
6725    DSYMUTIL=":"
6726  else
6727    case $cross_compiling:$ac_tool_warned in
6728yes:)
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731ac_tool_warned=yes ;;
6732esac
6733    DSYMUTIL=$ac_ct_DSYMUTIL
6734  fi
6735else
6736  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6737fi
6738
6739    if test -n "$ac_tool_prefix"; then
6740  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6741set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  if test -n "$NMEDIT"; then
6748  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753  IFS=$as_save_IFS
6754  test -z "$as_dir" && as_dir=.
6755    for ac_exec_ext in '' $ac_executable_extensions; do
6756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759    break 2
6760  fi
6761done
6762  done
6763IFS=$as_save_IFS
6764
6765fi
6766fi
6767NMEDIT=$ac_cv_prog_NMEDIT
6768if test -n "$NMEDIT"; then
6769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6770$as_echo "$NMEDIT" >&6; }
6771else
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
6774fi
6775
6776
6777fi
6778if test -z "$ac_cv_prog_NMEDIT"; then
6779  ac_ct_NMEDIT=$NMEDIT
6780  # Extract the first word of "nmedit", so it can be a program name with args.
6781set dummy nmedit; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  if test -n "$ac_ct_NMEDIT"; then
6788  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793  IFS=$as_save_IFS
6794  test -z "$as_dir" && as_dir=.
6795    for ac_exec_ext in '' $ac_executable_extensions; do
6796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799    break 2
6800  fi
6801done
6802  done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6808if test -n "$ac_ct_NMEDIT"; then
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6810$as_echo "$ac_ct_NMEDIT" >&6; }
6811else
6812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816  if test "x$ac_ct_NMEDIT" = x; then
6817    NMEDIT=":"
6818  else
6819    case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
6825    NMEDIT=$ac_ct_NMEDIT
6826  fi
6827else
6828  NMEDIT="$ac_cv_prog_NMEDIT"
6829fi
6830
6831    if test -n "$ac_tool_prefix"; then
6832  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}lipo; ac_word=$2
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if test "${ac_cv_prog_LIPO+set}" = set; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  if test -n "$LIPO"; then
6840  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845  IFS=$as_save_IFS
6846  test -z "$as_dir" && as_dir=.
6847    for ac_exec_ext in '' $ac_executable_extensions; do
6848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851    break 2
6852  fi
6853done
6854  done
6855IFS=$as_save_IFS
6856
6857fi
6858fi
6859LIPO=$ac_cv_prog_LIPO
6860if test -n "$LIPO"; then
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6862$as_echo "$LIPO" >&6; }
6863else
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
6866fi
6867
6868
6869fi
6870if test -z "$ac_cv_prog_LIPO"; then
6871  ac_ct_LIPO=$LIPO
6872  # Extract the first word of "lipo", so it can be a program name with args.
6873set dummy lipo; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879  if test -n "$ac_ct_LIPO"; then
6880  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885  IFS=$as_save_IFS
6886  test -z "$as_dir" && as_dir=.
6887    for ac_exec_ext in '' $ac_executable_extensions; do
6888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889    ac_cv_prog_ac_ct_LIPO="lipo"
6890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891    break 2
6892  fi
6893done
6894  done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6900if test -n "$ac_ct_LIPO"; then
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6902$as_echo "$ac_ct_LIPO" >&6; }
6903else
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908  if test "x$ac_ct_LIPO" = x; then
6909    LIPO=":"
6910  else
6911    case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917    LIPO=$ac_ct_LIPO
6918  fi
6919else
6920  LIPO="$ac_cv_prog_LIPO"
6921fi
6922
6923    if test -n "$ac_tool_prefix"; then
6924  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6925set dummy ${ac_tool_prefix}otool; ac_word=$2
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927$as_echo_n "checking for $ac_word... " >&6; }
6928if test "${ac_cv_prog_OTOOL+set}" = set; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  if test -n "$OTOOL"; then
6932  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937  IFS=$as_save_IFS
6938  test -z "$as_dir" && as_dir=.
6939    for ac_exec_ext in '' $ac_executable_extensions; do
6940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943    break 2
6944  fi
6945done
6946  done
6947IFS=$as_save_IFS
6948
6949fi
6950fi
6951OTOOL=$ac_cv_prog_OTOOL
6952if test -n "$OTOOL"; then
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6954$as_echo "$OTOOL" >&6; }
6955else
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957$as_echo "no" >&6; }
6958fi
6959
6960
6961fi
6962if test -z "$ac_cv_prog_OTOOL"; then
6963  ac_ct_OTOOL=$OTOOL
6964  # Extract the first word of "otool", so it can be a program name with args.
6965set dummy otool; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6969  $as_echo_n "(cached) " >&6
6970else
6971  if test -n "$ac_ct_OTOOL"; then
6972  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979    for ac_exec_ext in '' $ac_executable_extensions; do
6980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981    ac_cv_prog_ac_ct_OTOOL="otool"
6982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986  done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6992if test -n "$ac_ct_OTOOL"; then
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6994$as_echo "$ac_ct_OTOOL" >&6; }
6995else
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
6998fi
6999
7000  if test "x$ac_ct_OTOOL" = x; then
7001    OTOOL=":"
7002  else
7003    case $cross_compiling:$ac_tool_warned in
7004yes:)
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007ac_tool_warned=yes ;;
7008esac
7009    OTOOL=$ac_ct_OTOOL
7010  fi
7011else
7012  OTOOL="$ac_cv_prog_OTOOL"
7013fi
7014
7015    if test -n "$ac_tool_prefix"; then
7016  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7017set dummy ${ac_tool_prefix}otool64; ac_word=$2
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019$as_echo_n "checking for $ac_word... " >&6; }
7020if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  if test -n "$OTOOL64"; then
7024  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029  IFS=$as_save_IFS
7030  test -z "$as_dir" && as_dir=.
7031    for ac_exec_ext in '' $ac_executable_extensions; do
7032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035    break 2
7036  fi
7037done
7038  done
7039IFS=$as_save_IFS
7040
7041fi
7042fi
7043OTOOL64=$ac_cv_prog_OTOOL64
7044if test -n "$OTOOL64"; then
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7046$as_echo "$OTOOL64" >&6; }
7047else
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049$as_echo "no" >&6; }
7050fi
7051
7052
7053fi
7054if test -z "$ac_cv_prog_OTOOL64"; then
7055  ac_ct_OTOOL64=$OTOOL64
7056  # Extract the first word of "otool64", so it can be a program name with args.
7057set dummy otool64; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7061  $as_echo_n "(cached) " >&6
7062else
7063  if test -n "$ac_ct_OTOOL64"; then
7064  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069  IFS=$as_save_IFS
7070  test -z "$as_dir" && as_dir=.
7071    for ac_exec_ext in '' $ac_executable_extensions; do
7072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073    ac_cv_prog_ac_ct_OTOOL64="otool64"
7074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075    break 2
7076  fi
7077done
7078  done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7084if test -n "$ac_ct_OTOOL64"; then
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7086$as_echo "$ac_ct_OTOOL64" >&6; }
7087else
7088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091
7092  if test "x$ac_ct_OTOOL64" = x; then
7093    OTOOL64=":"
7094  else
7095    case $cross_compiling:$ac_tool_warned in
7096yes:)
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099ac_tool_warned=yes ;;
7100esac
7101    OTOOL64=$ac_ct_OTOOL64
7102  fi
7103else
7104  OTOOL64="$ac_cv_prog_OTOOL64"
7105fi
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7134$as_echo_n "checking for -single_module linker flag... " >&6; }
7135if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7136  $as_echo_n "(cached) " >&6
7137else
7138  lt_cv_apple_cc_single_mod=no
7139      if test -z "${LT_MULTI_MODULE}"; then
7140	# By default we will add the -single_module flag. You can override
7141	# by either setting the environment variable LT_MULTI_MODULE
7142	# non-empty at configure time, or by adding -multi_module to the
7143	# link flags.
7144	rm -rf libconftest.dylib*
7145	echo "int foo(void){return 1;}" > conftest.c
7146	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7147-dynamiclib -Wl,-single_module conftest.c" >&5
7148	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7149	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7150        _lt_result=$?
7151	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7152	  lt_cv_apple_cc_single_mod=yes
7153	else
7154	  cat conftest.err >&5
7155	fi
7156	rm -rf libconftest.dylib*
7157	rm -f conftest.*
7158      fi
7159fi
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7161$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7163$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7164if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  lt_cv_ld_exported_symbols_list=no
7168      save_LDFLAGS=$LDFLAGS
7169      echo "_main" > conftest.sym
7170      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7171      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173
7174int
7175main ()
7176{
7177
7178  ;
7179  return 0;
7180}
7181_ACEOF
7182if ac_fn_c_try_link "$LINENO"; then :
7183  lt_cv_ld_exported_symbols_list=yes
7184else
7185  lt_cv_ld_exported_symbols_list=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext \
7188    conftest$ac_exeext conftest.$ac_ext
7189	LDFLAGS="$save_LDFLAGS"
7190
7191fi
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7193$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7195$as_echo_n "checking for -force_load linker flag... " >&6; }
7196if test "${lt_cv_ld_force_load+set}" = set; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  lt_cv_ld_force_load=no
7200      cat > conftest.c << _LT_EOF
7201int forced_loaded() { return 2;}
7202_LT_EOF
7203      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7204      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7205      echo "$AR cru libconftest.a conftest.o" >&5
7206      $AR cru libconftest.a conftest.o 2>&5
7207      cat > conftest.c << _LT_EOF
7208int main() { return 0;}
7209_LT_EOF
7210      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7211      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7212      _lt_result=$?
7213      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7214	lt_cv_ld_force_load=yes
7215      else
7216	cat conftest.err >&5
7217      fi
7218        rm -f conftest.err libconftest.a conftest conftest.c
7219        rm -rf conftest.dSYM
7220
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7223$as_echo "$lt_cv_ld_force_load" >&6; }
7224    case $host_os in
7225    rhapsody* | darwin1.[012])
7226      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7227    darwin1.*)
7228      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7229    darwin*) # darwin 5.x on
7230      # if running on 10.5 or later, the deployment target defaults
7231      # to the OS version, if on x86, and 10.4, the deployment
7232      # target defaults to 10.4. Don't you love it?
7233      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7234	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7235	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236	10.[012]*)
7237	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7238	10.*)
7239	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7240      esac
7241    ;;
7242  esac
7243    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7244      _lt_dar_single_mod='$single_module'
7245    fi
7246    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7247      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7248    else
7249      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7250    fi
7251    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7252      _lt_dsymutil='~$DSYMUTIL $lib || :'
7253    else
7254      _lt_dsymutil=
7255    fi
7256    ;;
7257  esac
7258
7259ac_ext=c
7260ac_cpp='$CPP $CPPFLAGS'
7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7265$as_echo_n "checking how to run the C preprocessor... " >&6; }
7266# On Suns, sometimes $CPP names a directory.
7267if test -n "$CPP" && test -d "$CPP"; then
7268  CPP=
7269fi
7270if test -z "$CPP"; then
7271  if test "${ac_cv_prog_CPP+set}" = set; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274      # Double quotes because CPP needs to be expanded
7275    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7276    do
7277      ac_preproc_ok=false
7278for ac_c_preproc_warn_flag in '' yes
7279do
7280  # Use a header file that comes with gcc, so configuring glibc
7281  # with a fresh cross-compiler works.
7282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283  # <limits.h> exists even on freestanding compilers.
7284  # On the NeXT, cc -E runs the code through the compiler's parser,
7285  # not just through cpp. "Syntax error" is here to catch this case.
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288#ifdef __STDC__
7289# include <limits.h>
7290#else
7291# include <assert.h>
7292#endif
7293		     Syntax error
7294_ACEOF
7295if ac_fn_c_try_cpp "$LINENO"; then :
7296
7297else
7298  # Broken: fails on valid input.
7299continue
7300fi
7301rm -f conftest.err conftest.$ac_ext
7302
7303  # OK, works on sane cases.  Now check whether nonexistent headers
7304  # can be detected and how.
7305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307#include <ac_nonexistent.h>
7308_ACEOF
7309if ac_fn_c_try_cpp "$LINENO"; then :
7310  # Broken: success on invalid input.
7311continue
7312else
7313  # Passes both tests.
7314ac_preproc_ok=:
7315break
7316fi
7317rm -f conftest.err conftest.$ac_ext
7318
7319done
7320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7321rm -f conftest.err conftest.$ac_ext
7322if $ac_preproc_ok; then :
7323  break
7324fi
7325
7326    done
7327    ac_cv_prog_CPP=$CPP
7328
7329fi
7330  CPP=$ac_cv_prog_CPP
7331else
7332  ac_cv_prog_CPP=$CPP
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7335$as_echo "$CPP" >&6; }
7336ac_preproc_ok=false
7337for ac_c_preproc_warn_flag in '' yes
7338do
7339  # Use a header file that comes with gcc, so configuring glibc
7340  # with a fresh cross-compiler works.
7341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7342  # <limits.h> exists even on freestanding compilers.
7343  # On the NeXT, cc -E runs the code through the compiler's parser,
7344  # not just through cpp. "Syntax error" is here to catch this case.
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347#ifdef __STDC__
7348# include <limits.h>
7349#else
7350# include <assert.h>
7351#endif
7352		     Syntax error
7353_ACEOF
7354if ac_fn_c_try_cpp "$LINENO"; then :
7355
7356else
7357  # Broken: fails on valid input.
7358continue
7359fi
7360rm -f conftest.err conftest.$ac_ext
7361
7362  # OK, works on sane cases.  Now check whether nonexistent headers
7363  # can be detected and how.
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366#include <ac_nonexistent.h>
7367_ACEOF
7368if ac_fn_c_try_cpp "$LINENO"; then :
7369  # Broken: success on invalid input.
7370continue
7371else
7372  # Passes both tests.
7373ac_preproc_ok=:
7374break
7375fi
7376rm -f conftest.err conftest.$ac_ext
7377
7378done
7379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380rm -f conftest.err conftest.$ac_ext
7381if $ac_preproc_ok; then :
7382
7383else
7384  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7386as_fn_error "C preprocessor \"$CPP\" fails sanity check
7387See \`config.log' for more details." "$LINENO" 5; }
7388fi
7389
7390ac_ext=c
7391ac_cpp='$CPP $CPPFLAGS'
7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7398$as_echo_n "checking for ANSI C header files... " >&6; }
7399if test "${ac_cv_header_stdc+set}" = set; then :
7400  $as_echo_n "(cached) " >&6
7401else
7402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h.  */
7404#include <stdlib.h>
7405#include <stdarg.h>
7406#include <string.h>
7407#include <float.h>
7408
7409int
7410main ()
7411{
7412
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417if ac_fn_c_try_compile "$LINENO"; then :
7418  ac_cv_header_stdc=yes
7419else
7420  ac_cv_header_stdc=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423
7424if test $ac_cv_header_stdc = yes; then
7425  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428#include <string.h>
7429
7430_ACEOF
7431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432  $EGREP "memchr" >/dev/null 2>&1; then :
7433
7434else
7435  ac_cv_header_stdc=no
7436fi
7437rm -f conftest*
7438
7439fi
7440
7441if test $ac_cv_header_stdc = yes; then
7442  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445#include <stdlib.h>
7446
7447_ACEOF
7448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449  $EGREP "free" >/dev/null 2>&1; then :
7450
7451else
7452  ac_cv_header_stdc=no
7453fi
7454rm -f conftest*
7455
7456fi
7457
7458if test $ac_cv_header_stdc = yes; then
7459  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7460  if test "$cross_compiling" = yes; then :
7461  :
7462else
7463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h.  */
7465#include <ctype.h>
7466#include <stdlib.h>
7467#if ((' ' & 0x0FF) == 0x020)
7468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7470#else
7471# define ISLOWER(c) \
7472		   (('a' <= (c) && (c) <= 'i') \
7473		     || ('j' <= (c) && (c) <= 'r') \
7474		     || ('s' <= (c) && (c) <= 'z'))
7475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7476#endif
7477
7478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7479int
7480main ()
7481{
7482  int i;
7483  for (i = 0; i < 256; i++)
7484    if (XOR (islower (i), ISLOWER (i))
7485	|| toupper (i) != TOUPPER (i))
7486      return 2;
7487  return 0;
7488}
7489_ACEOF
7490if ac_fn_c_try_run "$LINENO"; then :
7491
7492else
7493  ac_cv_header_stdc=no
7494fi
7495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7496  conftest.$ac_objext conftest.beam conftest.$ac_ext
7497fi
7498
7499fi
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7502$as_echo "$ac_cv_header_stdc" >&6; }
7503if test $ac_cv_header_stdc = yes; then
7504
7505$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7506
7507fi
7508
7509# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7511		  inttypes.h stdint.h unistd.h
7512do :
7513  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7515"
7516eval as_val=\$$as_ac_Header
7517   if test "x$as_val" = x""yes; then :
7518  cat >>confdefs.h <<_ACEOF
7519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520_ACEOF
7521
7522fi
7523
7524done
7525
7526
7527for ac_header in dlfcn.h
7528do :
7529  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7530"
7531if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7532  cat >>confdefs.h <<_ACEOF
7533#define HAVE_DLFCN_H 1
7534_ACEOF
7535
7536fi
7537
7538done
7539
7540if test -n "$ac_tool_prefix"; then
7541  # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7542set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544$as_echo_n "checking for $ac_word... " >&6; }
7545if test "${ac_cv_prog_GOC+set}" = set; then :
7546  $as_echo_n "(cached) " >&6
7547else
7548  if test -n "$GOC"; then
7549  ac_cv_prog_GOC="$GOC" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554  IFS=$as_save_IFS
7555  test -z "$as_dir" && as_dir=.
7556    for ac_exec_ext in '' $ac_executable_extensions; do
7557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558    ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560    break 2
7561  fi
7562done
7563  done
7564IFS=$as_save_IFS
7565
7566fi
7567fi
7568GOC=$ac_cv_prog_GOC
7569if test -n "$GOC"; then
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7571$as_echo "$GOC" >&6; }
7572else
7573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574$as_echo "no" >&6; }
7575fi
7576
7577
7578fi
7579if test -z "$ac_cv_prog_GOC"; then
7580  ac_ct_GOC=$GOC
7581  # Extract the first word of "gccgo", so it can be a program name with args.
7582set dummy gccgo; ac_word=$2
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584$as_echo_n "checking for $ac_word... " >&6; }
7585if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  if test -n "$ac_ct_GOC"; then
7589  ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594  IFS=$as_save_IFS
7595  test -z "$as_dir" && as_dir=.
7596    for ac_exec_ext in '' $ac_executable_extensions; do
7597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598    ac_cv_prog_ac_ct_GOC="gccgo"
7599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600    break 2
7601  fi
7602done
7603  done
7604IFS=$as_save_IFS
7605
7606fi
7607fi
7608ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7609if test -n "$ac_ct_GOC"; then
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7611$as_echo "$ac_ct_GOC" >&6; }
7612else
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
7615fi
7616
7617  if test "x$ac_ct_GOC" = x; then
7618    GOC=""
7619  else
7620    case $cross_compiling:$ac_tool_warned in
7621yes:)
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624ac_tool_warned=yes ;;
7625esac
7626    GOC=$ac_ct_GOC
7627  fi
7628else
7629  GOC="$ac_cv_prog_GOC"
7630fi
7631
7632
7633
7634
7635
7636
7637# Set options
7638
7639
7640
7641
7642  enable_win32_dll=no
7643
7644
7645            # Check whether --enable-shared was given.
7646if test "${enable_shared+set}" = set; then :
7647  enableval=$enable_shared; p=${PACKAGE-default}
7648    case $enableval in
7649    yes) enable_shared=yes ;;
7650    no) enable_shared=no ;;
7651    *)
7652      enable_shared=no
7653      # Look at the argument we got.  We use all the common list separators.
7654      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655      for pkg in $enableval; do
7656	IFS="$lt_save_ifs"
7657	if test "X$pkg" = "X$p"; then
7658	  enable_shared=yes
7659	fi
7660      done
7661      IFS="$lt_save_ifs"
7662      ;;
7663    esac
7664else
7665  enable_shared=yes
7666fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676  # Check whether --enable-static was given.
7677if test "${enable_static+set}" = set; then :
7678  enableval=$enable_static; p=${PACKAGE-default}
7679    case $enableval in
7680    yes) enable_static=yes ;;
7681    no) enable_static=no ;;
7682    *)
7683     enable_static=no
7684      # Look at the argument we got.  We use all the common list separators.
7685      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686      for pkg in $enableval; do
7687	IFS="$lt_save_ifs"
7688	if test "X$pkg" = "X$p"; then
7689	  enable_static=yes
7690	fi
7691      done
7692      IFS="$lt_save_ifs"
7693      ;;
7694    esac
7695else
7696  enable_static=yes
7697fi
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708# Check whether --with-pic was given.
7709if test "${with_pic+set}" = set; then :
7710  withval=$with_pic; pic_mode="$withval"
7711else
7712  pic_mode=default
7713fi
7714
7715
7716test -z "$pic_mode" && pic_mode=default
7717
7718
7719
7720
7721
7722
7723
7724  # Check whether --enable-fast-install was given.
7725if test "${enable_fast_install+set}" = set; then :
7726  enableval=$enable_fast_install; p=${PACKAGE-default}
7727    case $enableval in
7728    yes) enable_fast_install=yes ;;
7729    no) enable_fast_install=no ;;
7730    *)
7731      enable_fast_install=no
7732      # Look at the argument we got.  We use all the common list separators.
7733      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734      for pkg in $enableval; do
7735	IFS="$lt_save_ifs"
7736	if test "X$pkg" = "X$p"; then
7737	  enable_fast_install=yes
7738	fi
7739      done
7740      IFS="$lt_save_ifs"
7741      ;;
7742    esac
7743else
7744  enable_fast_install=yes
7745fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757# This can be used to rebuild libtool when needed
7758LIBTOOL_DEPS="$ltmain"
7759
7760# Always use our own libtool.
7761LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788test -z "$LN_S" && LN_S="ln -s"
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803if test -n "${ZSH_VERSION+set}" ; then
7804   setopt NO_GLOB_SUBST
7805fi
7806
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7808$as_echo_n "checking for objdir... " >&6; }
7809if test "${lt_cv_objdir+set}" = set; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  rm -f .libs 2>/dev/null
7813mkdir .libs 2>/dev/null
7814if test -d .libs; then
7815  lt_cv_objdir=.libs
7816else
7817  # MS-DOS does not allow filenames that begin with a dot.
7818  lt_cv_objdir=_libs
7819fi
7820rmdir .libs 2>/dev/null
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7823$as_echo "$lt_cv_objdir" >&6; }
7824objdir=$lt_cv_objdir
7825
7826
7827
7828
7829
7830cat >>confdefs.h <<_ACEOF
7831#define LT_OBJDIR "$lt_cv_objdir/"
7832_ACEOF
7833
7834
7835
7836
7837case $host_os in
7838aix3*)
7839  # AIX sometimes has problems with the GCC collect2 program.  For some
7840  # reason, if we set the COLLECT_NAMES environment variable, the problems
7841  # vanish in a puff of smoke.
7842  if test "X${COLLECT_NAMES+set}" != Xset; then
7843    COLLECT_NAMES=
7844    export COLLECT_NAMES
7845  fi
7846  ;;
7847esac
7848
7849# Global variables:
7850ofile=libtool
7851can_build_shared=yes
7852
7853# All known linkers require a `.a' archive for static linking (except MSVC,
7854# which needs '.lib').
7855libext=a
7856
7857with_gnu_ld="$lt_cv_prog_gnu_ld"
7858
7859old_CC="$CC"
7860old_CFLAGS="$CFLAGS"
7861
7862# Set sane defaults for various variables
7863test -z "$CC" && CC=cc
7864test -z "$LTCC" && LTCC=$CC
7865test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7866test -z "$LD" && LD=ld
7867test -z "$ac_objext" && ac_objext=o
7868
7869for cc_temp in $compiler""; do
7870  case $cc_temp in
7871    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7872    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7873    \-*) ;;
7874    *) break;;
7875  esac
7876done
7877cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7878
7879
7880# Only perform the check for file, if the check method requires it
7881test -z "$MAGIC_CMD" && MAGIC_CMD=file
7882case $deplibs_check_method in
7883file_magic*)
7884  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7886$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7887if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  case $MAGIC_CMD in
7891[\\/*] |  ?:[\\/]*)
7892  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7893  ;;
7894*)
7895  lt_save_MAGIC_CMD="$MAGIC_CMD"
7896  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7897  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7898  for ac_dir in $ac_dummy; do
7899    IFS="$lt_save_ifs"
7900    test -z "$ac_dir" && ac_dir=.
7901    if test -f $ac_dir/${ac_tool_prefix}file; then
7902      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7903      if test -n "$file_magic_test_file"; then
7904	case $deplibs_check_method in
7905	"file_magic "*)
7906	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7909	    $EGREP "$file_magic_regex" > /dev/null; then
7910	    :
7911	  else
7912	    cat <<_LT_EOF 1>&2
7913
7914*** Warning: the command libtool uses to detect shared libraries,
7915*** $file_magic_cmd, produces output that libtool cannot recognize.
7916*** The result is that libtool may fail to recognize shared libraries
7917*** as such.  This will affect the creation of libtool libraries that
7918*** depend on shared libraries, but programs linked with such libtool
7919*** libraries will work regardless of this problem.  Nevertheless, you
7920*** may want to report the problem to your system manager and/or to
7921*** bug-libtool@gnu.org
7922
7923_LT_EOF
7924	  fi ;;
7925	esac
7926      fi
7927      break
7928    fi
7929  done
7930  IFS="$lt_save_ifs"
7931  MAGIC_CMD="$lt_save_MAGIC_CMD"
7932  ;;
7933esac
7934fi
7935
7936MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937if test -n "$MAGIC_CMD"; then
7938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7939$as_echo "$MAGIC_CMD" >&6; }
7940else
7941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
7943fi
7944
7945
7946
7947
7948
7949if test -z "$lt_cv_path_MAGIC_CMD"; then
7950  if test -n "$ac_tool_prefix"; then
7951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7952$as_echo_n "checking for file... " >&6; }
7953if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  case $MAGIC_CMD in
7957[\\/*] |  ?:[\\/]*)
7958  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7959  ;;
7960*)
7961  lt_save_MAGIC_CMD="$MAGIC_CMD"
7962  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7963  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7964  for ac_dir in $ac_dummy; do
7965    IFS="$lt_save_ifs"
7966    test -z "$ac_dir" && ac_dir=.
7967    if test -f $ac_dir/file; then
7968      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7969      if test -n "$file_magic_test_file"; then
7970	case $deplibs_check_method in
7971	"file_magic "*)
7972	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7973	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7975	    $EGREP "$file_magic_regex" > /dev/null; then
7976	    :
7977	  else
7978	    cat <<_LT_EOF 1>&2
7979
7980*** Warning: the command libtool uses to detect shared libraries,
7981*** $file_magic_cmd, produces output that libtool cannot recognize.
7982*** The result is that libtool may fail to recognize shared libraries
7983*** as such.  This will affect the creation of libtool libraries that
7984*** depend on shared libraries, but programs linked with such libtool
7985*** libraries will work regardless of this problem.  Nevertheless, you
7986*** may want to report the problem to your system manager and/or to
7987*** bug-libtool@gnu.org
7988
7989_LT_EOF
7990	  fi ;;
7991	esac
7992      fi
7993      break
7994    fi
7995  done
7996  IFS="$lt_save_ifs"
7997  MAGIC_CMD="$lt_save_MAGIC_CMD"
7998  ;;
7999esac
8000fi
8001
8002MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003if test -n "$MAGIC_CMD"; then
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8005$as_echo "$MAGIC_CMD" >&6; }
8006else
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011
8012  else
8013    MAGIC_CMD=:
8014  fi
8015fi
8016
8017  fi
8018  ;;
8019esac
8020
8021# Use C for the default configuration in the libtool script
8022
8023lt_save_CC="$CC"
8024ac_ext=c
8025ac_cpp='$CPP $CPPFLAGS'
8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030
8031# Source file extension for C test sources.
8032ac_ext=c
8033
8034# Object file extension for compiled C test sources.
8035objext=o
8036objext=$objext
8037
8038# Code to be used in simple compile tests
8039lt_simple_compile_test_code="int some_variable = 0;"
8040
8041# Code to be used in simple link tests
8042lt_simple_link_test_code='int main(){return(0);}'
8043
8044
8045
8046
8047
8048
8049
8050# If no C compiler was specified, use CC.
8051LTCC=${LTCC-"$CC"}
8052
8053# If no C compiler flags were specified, use CFLAGS.
8054LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8055
8056# Allow CC to be a program name with arguments.
8057compiler=$CC
8058
8059# Save the default compiler, since it gets overwritten when the other
8060# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8061compiler_DEFAULT=$CC
8062
8063# save warnings/boilerplate of simple test code
8064ac_outfile=conftest.$ac_objext
8065echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8066eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067_lt_compiler_boilerplate=`cat conftest.err`
8068$RM conftest*
8069
8070ac_outfile=conftest.$ac_objext
8071echo "$lt_simple_link_test_code" >conftest.$ac_ext
8072eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073_lt_linker_boilerplate=`cat conftest.err`
8074$RM -r conftest*
8075
8076
8077## CAVEAT EMPTOR:
8078## There is no encapsulation within the following macros, do not change
8079## the running order or otherwise move them around unless you know exactly
8080## what you are doing...
8081if test -n "$compiler"; then
8082
8083lt_prog_compiler_no_builtin_flag=
8084
8085if test "$GCC" = yes; then
8086  case $cc_basename in
8087  nvcc*)
8088    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8089  *)
8090    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8091  esac
8092
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  lt_cv_prog_compiler_rtti_exceptions=no
8099   ac_outfile=conftest.$ac_objext
8100   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101   lt_compiler_flag="-fno-rtti -fno-exceptions"
8102   # Insert the option either (1) after the last *FLAGS variable, or
8103   # (2) before a word containing "conftest.", or (3) at the end.
8104   # Note that $ac_compile itself does not contain backslashes and begins
8105   # with a dollar sign (not a hyphen), so the echo should work correctly.
8106   # The option is referenced via a variable to avoid confusing sed.
8107   lt_compile=`echo "$ac_compile" | $SED \
8108   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110   -e 's:$: $lt_compiler_flag:'`
8111   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112   (eval "$lt_compile" 2>conftest.err)
8113   ac_status=$?
8114   cat conftest.err >&5
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   if (exit $ac_status) && test -s "$ac_outfile"; then
8117     # The compiler can only warn and ignore the option if not recognized
8118     # So say no if there are warnings other than the usual output.
8119     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8120     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122       lt_cv_prog_compiler_rtti_exceptions=yes
8123     fi
8124   fi
8125   $RM conftest*
8126
8127fi
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8130
8131if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8132    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133else
8134    :
8135fi
8136
8137fi
8138
8139
8140
8141
8142
8143
8144  lt_prog_compiler_wl=
8145lt_prog_compiler_pic=
8146lt_prog_compiler_static=
8147
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8149$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8150
8151  if test "$GCC" = yes; then
8152    lt_prog_compiler_wl='-Wl,'
8153    lt_prog_compiler_static='-static'
8154
8155    case $host_os in
8156      aix*)
8157      # All AIX code is PIC.
8158      if test "$host_cpu" = ia64; then
8159	# AIX 5 now supports IA64 processor
8160	lt_prog_compiler_static='-Bstatic'
8161      fi
8162      ;;
8163
8164    amigaos*)
8165      case $host_cpu in
8166      powerpc)
8167            # see comment about AmigaOS4 .so support
8168            lt_prog_compiler_pic='-fPIC'
8169        ;;
8170      m68k)
8171            # FIXME: we need at least 68020 code to build shared libraries, but
8172            # adding the `-m68020' flag to GCC prevents building anything better,
8173            # like `-m68040'.
8174            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8175        ;;
8176      esac
8177      ;;
8178
8179    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8180      # PIC is the default for these OSes.
8181      ;;
8182
8183    mingw* | cygwin* | pw32* | os2* | cegcc*)
8184      # This hack is so that the source file can tell whether it is being
8185      # built for inclusion in a dll (and should export symbols for example).
8186      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8187      # (--disable-auto-import) libraries
8188      lt_prog_compiler_pic='-DDLL_EXPORT'
8189      ;;
8190
8191    darwin* | rhapsody*)
8192      # PIC is the default on this platform
8193      # Common symbols not allowed in MH_DYLIB files
8194      lt_prog_compiler_pic='-fno-common'
8195      ;;
8196
8197    haiku*)
8198      # PIC is the default for Haiku.
8199      # The "-static" flag exists, but is broken.
8200      lt_prog_compiler_static=
8201      ;;
8202
8203    hpux*)
8204      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8205      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8206      # sets the default TLS model and affects inlining.
8207      case $host_cpu in
8208      hppa*64*)
8209	# +Z the default
8210	;;
8211      *)
8212	lt_prog_compiler_pic='-fPIC'
8213	;;
8214      esac
8215      ;;
8216
8217    interix[3-9]*)
8218      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8219      # Instead, we relocate shared libraries at runtime.
8220      ;;
8221
8222    msdosdjgpp*)
8223      # Just because we use GCC doesn't mean we suddenly get shared libraries
8224      # on systems that don't support them.
8225      lt_prog_compiler_can_build_shared=no
8226      enable_shared=no
8227      ;;
8228
8229    *nto* | *qnx*)
8230      # QNX uses GNU C++, but need to define -shared option too, otherwise
8231      # it will coredump.
8232      lt_prog_compiler_pic='-fPIC -shared'
8233      ;;
8234
8235    sysv4*MP*)
8236      if test -d /usr/nec; then
8237	lt_prog_compiler_pic=-Kconform_pic
8238      fi
8239      ;;
8240
8241    *)
8242      lt_prog_compiler_pic='-fPIC'
8243      ;;
8244    esac
8245
8246    case $cc_basename in
8247    nvcc*) # Cuda Compiler Driver 2.2
8248      lt_prog_compiler_wl='-Xlinker '
8249      lt_prog_compiler_pic='-Xcompiler -fPIC'
8250      ;;
8251    esac
8252  else
8253    # PORTME Check for flag to pass linker flags through the system compiler.
8254    case $host_os in
8255    aix*)
8256      lt_prog_compiler_wl='-Wl,'
8257      if test "$host_cpu" = ia64; then
8258	# AIX 5 now supports IA64 processor
8259	lt_prog_compiler_static='-Bstatic'
8260      else
8261	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8262      fi
8263      ;;
8264
8265    mingw* | cygwin* | pw32* | os2* | cegcc*)
8266      # This hack is so that the source file can tell whether it is being
8267      # built for inclusion in a dll (and should export symbols for example).
8268      lt_prog_compiler_pic='-DDLL_EXPORT'
8269      ;;
8270
8271    hpux9* | hpux10* | hpux11*)
8272      lt_prog_compiler_wl='-Wl,'
8273      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8274      # not for PA HP-UX.
8275      case $host_cpu in
8276      hppa*64*|ia64*)
8277	# +Z the default
8278	;;
8279      *)
8280	lt_prog_compiler_pic='+Z'
8281	;;
8282      esac
8283      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8284      lt_prog_compiler_static='${wl}-a ${wl}archive'
8285      ;;
8286
8287    irix5* | irix6* | nonstopux*)
8288      lt_prog_compiler_wl='-Wl,'
8289      # PIC (with -KPIC) is the default.
8290      lt_prog_compiler_static='-non_shared'
8291      ;;
8292
8293    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8294      case $cc_basename in
8295      # old Intel for x86_64 which still supported -KPIC.
8296      ecc*)
8297	lt_prog_compiler_wl='-Wl,'
8298	lt_prog_compiler_pic='-KPIC'
8299	lt_prog_compiler_static='-static'
8300        ;;
8301      # icc used to be incompatible with GCC.
8302      # ICC 10 doesn't accept -KPIC any more.
8303      icc* | ifort*)
8304	lt_prog_compiler_wl='-Wl,'
8305	lt_prog_compiler_pic='-fPIC'
8306	lt_prog_compiler_static='-static'
8307        ;;
8308      # Lahey Fortran 8.1.
8309      lf95*)
8310	lt_prog_compiler_wl='-Wl,'
8311	lt_prog_compiler_pic='--shared'
8312	lt_prog_compiler_static='--static'
8313	;;
8314      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8315        # Portland Group compilers (*not* the Pentium gcc compiler,
8316	# which looks to be a dead project)
8317	lt_prog_compiler_wl='-Wl,'
8318	lt_prog_compiler_pic='-fpic'
8319	lt_prog_compiler_static='-Bstatic'
8320        ;;
8321      ccc*)
8322        lt_prog_compiler_wl='-Wl,'
8323        # All Alpha code is PIC.
8324        lt_prog_compiler_static='-non_shared'
8325        ;;
8326      xl* | bgxl* | bgf* | mpixl*)
8327	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8328	lt_prog_compiler_wl='-Wl,'
8329	lt_prog_compiler_pic='-qpic'
8330	lt_prog_compiler_static='-qstaticlink'
8331	;;
8332      *)
8333	case `$CC -V 2>&1 | sed 5q` in
8334	*Sun\ F* | *Sun*Fortran*)
8335	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8336	  lt_prog_compiler_pic='-KPIC'
8337	  lt_prog_compiler_static='-Bstatic'
8338	  lt_prog_compiler_wl=''
8339	  ;;
8340	*Sun\ C*)
8341	  # Sun C 5.9
8342	  lt_prog_compiler_pic='-KPIC'
8343	  lt_prog_compiler_static='-Bstatic'
8344	  lt_prog_compiler_wl='-Wl,'
8345	  ;;
8346	esac
8347	;;
8348      esac
8349      ;;
8350
8351    newsos6)
8352      lt_prog_compiler_pic='-KPIC'
8353      lt_prog_compiler_static='-Bstatic'
8354      ;;
8355
8356    *nto* | *qnx*)
8357      # QNX uses GNU C++, but need to define -shared option too, otherwise
8358      # it will coredump.
8359      lt_prog_compiler_pic='-fPIC -shared'
8360      ;;
8361
8362    osf3* | osf4* | osf5*)
8363      lt_prog_compiler_wl='-Wl,'
8364      # All OSF/1 code is PIC.
8365      lt_prog_compiler_static='-non_shared'
8366      ;;
8367
8368    rdos*)
8369      lt_prog_compiler_static='-non_shared'
8370      ;;
8371
8372    solaris*)
8373      lt_prog_compiler_pic='-KPIC'
8374      lt_prog_compiler_static='-Bstatic'
8375      case $cc_basename in
8376      f77* | f90* | f95*)
8377	lt_prog_compiler_wl='-Qoption ld ';;
8378      *)
8379	lt_prog_compiler_wl='-Wl,';;
8380      esac
8381      ;;
8382
8383    sunos4*)
8384      lt_prog_compiler_wl='-Qoption ld '
8385      lt_prog_compiler_pic='-PIC'
8386      lt_prog_compiler_static='-Bstatic'
8387      ;;
8388
8389    sysv4 | sysv4.2uw2* | sysv4.3*)
8390      lt_prog_compiler_wl='-Wl,'
8391      lt_prog_compiler_pic='-KPIC'
8392      lt_prog_compiler_static='-Bstatic'
8393      ;;
8394
8395    sysv4*MP*)
8396      if test -d /usr/nec ;then
8397	lt_prog_compiler_pic='-Kconform_pic'
8398	lt_prog_compiler_static='-Bstatic'
8399      fi
8400      ;;
8401
8402    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8403      lt_prog_compiler_wl='-Wl,'
8404      lt_prog_compiler_pic='-KPIC'
8405      lt_prog_compiler_static='-Bstatic'
8406      ;;
8407
8408    unicos*)
8409      lt_prog_compiler_wl='-Wl,'
8410      lt_prog_compiler_can_build_shared=no
8411      ;;
8412
8413    uts4*)
8414      lt_prog_compiler_pic='-pic'
8415      lt_prog_compiler_static='-Bstatic'
8416      ;;
8417
8418    *)
8419      lt_prog_compiler_can_build_shared=no
8420      ;;
8421    esac
8422  fi
8423
8424case $host_os in
8425  # For platforms which do not support PIC, -DPIC is meaningless:
8426  *djgpp*)
8427    lt_prog_compiler_pic=
8428    ;;
8429  *)
8430    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8431    ;;
8432esac
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8434$as_echo "$lt_prog_compiler_pic" >&6; }
8435
8436
8437
8438
8439
8440
8441#
8442# Check to make sure the PIC flag actually works.
8443#
8444if test -n "$lt_prog_compiler_pic"; then
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8446$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8447if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  lt_cv_prog_compiler_pic_works=no
8451   ac_outfile=conftest.$ac_objext
8452   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8454   # Insert the option either (1) after the last *FLAGS variable, or
8455   # (2) before a word containing "conftest.", or (3) at the end.
8456   # Note that $ac_compile itself does not contain backslashes and begins
8457   # with a dollar sign (not a hyphen), so the echo should work correctly.
8458   # The option is referenced via a variable to avoid confusing sed.
8459   lt_compile=`echo "$ac_compile" | $SED \
8460   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462   -e 's:$: $lt_compiler_flag:'`
8463   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464   (eval "$lt_compile" 2>conftest.err)
8465   ac_status=$?
8466   cat conftest.err >&5
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   if (exit $ac_status) && test -s "$ac_outfile"; then
8469     # The compiler can only warn and ignore the option if not recognized
8470     # So say no if there are warnings other than the usual output.
8471     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8472     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474       lt_cv_prog_compiler_pic_works=yes
8475     fi
8476   fi
8477   $RM conftest*
8478
8479fi
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8481$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8482
8483if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8484    case $lt_prog_compiler_pic in
8485     "" | " "*) ;;
8486     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8487     esac
8488else
8489    lt_prog_compiler_pic=
8490     lt_prog_compiler_can_build_shared=no
8491fi
8492
8493fi
8494
8495
8496
8497
8498
8499
8500#
8501# Check to make sure the static flag actually works.
8502#
8503wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8505$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8506if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  lt_cv_prog_compiler_static_works=no
8510   save_LDFLAGS="$LDFLAGS"
8511   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8512   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8513   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8514     # The linker can only warn and ignore the option if not recognized
8515     # So say no if there are warnings
8516     if test -s conftest.err; then
8517       # Append any errors to the config.log.
8518       cat conftest.err 1>&5
8519       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8520       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521       if diff conftest.exp conftest.er2 >/dev/null; then
8522         lt_cv_prog_compiler_static_works=yes
8523       fi
8524     else
8525       lt_cv_prog_compiler_static_works=yes
8526     fi
8527   fi
8528   $RM -r conftest*
8529   LDFLAGS="$save_LDFLAGS"
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8533$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8534
8535if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8536    :
8537else
8538    lt_prog_compiler_static=
8539fi
8540
8541
8542
8543
8544
8545
8546
8547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8548$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8549if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  lt_cv_prog_compiler_c_o=no
8553   $RM -r conftest 2>/dev/null
8554   mkdir conftest
8555   cd conftest
8556   mkdir out
8557   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8558
8559   lt_compiler_flag="-o out/conftest2.$ac_objext"
8560   # Insert the option either (1) after the last *FLAGS variable, or
8561   # (2) before a word containing "conftest.", or (3) at the end.
8562   # Note that $ac_compile itself does not contain backslashes and begins
8563   # with a dollar sign (not a hyphen), so the echo should work correctly.
8564   lt_compile=`echo "$ac_compile" | $SED \
8565   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8566   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8567   -e 's:$: $lt_compiler_flag:'`
8568   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8569   (eval "$lt_compile" 2>out/conftest.err)
8570   ac_status=$?
8571   cat out/conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8574   then
8575     # The compiler can only warn and ignore the option if not recognized
8576     # So say no if there are warnings
8577     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8578     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8579     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8580       lt_cv_prog_compiler_c_o=yes
8581     fi
8582   fi
8583   chmod u+w . 2>&5
8584   $RM conftest*
8585   # SGI C++ compiler will create directory out/ii_files/ for
8586   # template instantiation
8587   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8588   $RM out/* && rmdir out
8589   cd ..
8590   $RM -r conftest
8591   $RM conftest*
8592
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8595$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8596
8597
8598
8599
8600
8601
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8603$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8604if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8605  $as_echo_n "(cached) " >&6
8606else
8607  lt_cv_prog_compiler_c_o=no
8608   $RM -r conftest 2>/dev/null
8609   mkdir conftest
8610   cd conftest
8611   mkdir out
8612   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613
8614   lt_compiler_flag="-o out/conftest2.$ac_objext"
8615   # Insert the option either (1) after the last *FLAGS variable, or
8616   # (2) before a word containing "conftest.", or (3) at the end.
8617   # Note that $ac_compile itself does not contain backslashes and begins
8618   # with a dollar sign (not a hyphen), so the echo should work correctly.
8619   lt_compile=`echo "$ac_compile" | $SED \
8620   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8621   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8622   -e 's:$: $lt_compiler_flag:'`
8623   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8624   (eval "$lt_compile" 2>out/conftest.err)
8625   ac_status=$?
8626   cat out/conftest.err >&5
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8629   then
8630     # The compiler can only warn and ignore the option if not recognized
8631     # So say no if there are warnings
8632     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8633     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8634     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8635       lt_cv_prog_compiler_c_o=yes
8636     fi
8637   fi
8638   chmod u+w . 2>&5
8639   $RM conftest*
8640   # SGI C++ compiler will create directory out/ii_files/ for
8641   # template instantiation
8642   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8643   $RM out/* && rmdir out
8644   cd ..
8645   $RM -r conftest
8646   $RM conftest*
8647
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8650$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8651
8652
8653
8654
8655hard_links="nottested"
8656if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8657  # do not overwrite the value of need_locks provided by the user
8658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8659$as_echo_n "checking if we can lock with hard links... " >&6; }
8660  hard_links=yes
8661  $RM conftest*
8662  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8663  touch conftest.a
8664  ln conftest.a conftest.b 2>&5 || hard_links=no
8665  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8667$as_echo "$hard_links" >&6; }
8668  if test "$hard_links" = no; then
8669    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8670$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8671    need_locks=warn
8672  fi
8673else
8674  need_locks=no
8675fi
8676
8677
8678
8679
8680
8681
8682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8683$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8684
8685  runpath_var=
8686  allow_undefined_flag=
8687  always_export_symbols=no
8688  archive_cmds=
8689  archive_expsym_cmds=
8690  compiler_needs_object=no
8691  enable_shared_with_static_runtimes=no
8692  export_dynamic_flag_spec=
8693  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8694  hardcode_automatic=no
8695  hardcode_direct=no
8696  hardcode_direct_absolute=no
8697  hardcode_libdir_flag_spec=
8698  hardcode_libdir_flag_spec_ld=
8699  hardcode_libdir_separator=
8700  hardcode_minus_L=no
8701  hardcode_shlibpath_var=unsupported
8702  inherit_rpath=no
8703  link_all_deplibs=unknown
8704  module_cmds=
8705  module_expsym_cmds=
8706  old_archive_from_new_cmds=
8707  old_archive_from_expsyms_cmds=
8708  thread_safe_flag_spec=
8709  whole_archive_flag_spec=
8710  # include_expsyms should be a list of space-separated symbols to be *always*
8711  # included in the symbol list
8712  include_expsyms=
8713  # exclude_expsyms can be an extended regexp of symbols to exclude
8714  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716  # as well as any symbol that contains `d'.
8717  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8718  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719  # platforms (ab)use it in PIC code, but their linkers get confused if
8720  # the symbol is explicitly referenced.  Since portable code cannot
8721  # rely on this symbol name, it's probably fine to never include it in
8722  # preloaded symbol tables.
8723  # Exclude shared library initialization/finalization symbols.
8724  extract_expsyms_cmds=
8725
8726  case $host_os in
8727  cygwin* | mingw* | pw32* | cegcc*)
8728    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8729    # When not using gcc, we currently assume that we are using
8730    # Microsoft Visual C++.
8731    if test "$GCC" != yes; then
8732      with_gnu_ld=no
8733    fi
8734    ;;
8735  interix*)
8736    # we just hope/assume this is gcc and not c89 (= MSVC++)
8737    with_gnu_ld=yes
8738    ;;
8739  openbsd*)
8740    with_gnu_ld=no
8741    ;;
8742  esac
8743
8744  ld_shlibs=yes
8745
8746  # On some targets, GNU ld is compatible enough with the native linker
8747  # that we're better off using the native interface for both.
8748  lt_use_gnu_ld_interface=no
8749  if test "$with_gnu_ld" = yes; then
8750    case $host_os in
8751      aix*)
8752	# The AIX port of GNU ld has always aspired to compatibility
8753	# with the native linker.  However, as the warning in the GNU ld
8754	# block says, versions before 2.19.5* couldn't really create working
8755	# shared libraries, regardless of the interface used.
8756	case `$LD -v 2>&1` in
8757	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8758	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8759	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8760	  *)
8761	    lt_use_gnu_ld_interface=yes
8762	    ;;
8763	esac
8764	;;
8765      *)
8766	lt_use_gnu_ld_interface=yes
8767	;;
8768    esac
8769  fi
8770
8771  if test "$lt_use_gnu_ld_interface" = yes; then
8772    # If archive_cmds runs LD, not CC, wlarc should be empty
8773    wlarc='${wl}'
8774
8775    # Set some defaults for GNU ld with shared library support. These
8776    # are reset later if shared libraries are not supported. Putting them
8777    # here allows them to be overridden if necessary.
8778    runpath_var=LD_RUN_PATH
8779    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780    export_dynamic_flag_spec='${wl}--export-dynamic'
8781    # ancient GNU ld didn't support --whole-archive et. al.
8782    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8783      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8784    else
8785      whole_archive_flag_spec=
8786    fi
8787    supports_anon_versioning=no
8788    case `$LD -v 2>&1` in
8789      *GNU\ gold*) supports_anon_versioning=yes ;;
8790      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8791      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8792      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8793      *\ 2.11.*) ;; # other 2.11 versions
8794      *) supports_anon_versioning=yes ;;
8795    esac
8796
8797    # See if GNU ld supports shared libraries.
8798    case $host_os in
8799    aix[3-9]*)
8800      # On AIX/PPC, the GNU linker is very broken
8801      if test "$host_cpu" != ia64; then
8802	ld_shlibs=no
8803	cat <<_LT_EOF 1>&2
8804
8805*** Warning: the GNU linker, at least up to release 2.19, is reported
8806*** to be unable to reliably create shared libraries on AIX.
8807*** Therefore, libtool is disabling shared libraries support.  If you
8808*** really care for shared libraries, you may want to install binutils
8809*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8810*** You will then need to restart the configuration process.
8811
8812_LT_EOF
8813      fi
8814      ;;
8815
8816    amigaos*)
8817      case $host_cpu in
8818      powerpc)
8819            # see comment about AmigaOS4 .so support
8820            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821            archive_expsym_cmds=''
8822        ;;
8823      m68k)
8824            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)'
8825            hardcode_libdir_flag_spec='-L$libdir'
8826            hardcode_minus_L=yes
8827        ;;
8828      esac
8829      ;;
8830
8831    beos*)
8832      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833	allow_undefined_flag=unsupported
8834	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8835	# support --undefined.  This deserves some investigation.  FIXME
8836	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837      else
8838	ld_shlibs=no
8839      fi
8840      ;;
8841
8842    cygwin* | mingw* | pw32* | cegcc*)
8843      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8844      # as there is no search path for DLLs.
8845      hardcode_libdir_flag_spec='-L$libdir'
8846      export_dynamic_flag_spec='${wl}--export-all-symbols'
8847      allow_undefined_flag=unsupported
8848      always_export_symbols=no
8849      enable_shared_with_static_runtimes=yes
8850      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8851
8852      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8853        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854	# If the export-symbols file already is a .def file (1st line
8855	# is EXPORTS), use it as is; otherwise, prepend...
8856	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8857	  cp $export_symbols $output_objdir/$soname.def;
8858	else
8859	  echo EXPORTS > $output_objdir/$soname.def;
8860	  cat $export_symbols >> $output_objdir/$soname.def;
8861	fi~
8862	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863      else
8864	ld_shlibs=no
8865      fi
8866      ;;
8867
8868    haiku*)
8869      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870      link_all_deplibs=yes
8871      ;;
8872
8873    interix[3-9]*)
8874      hardcode_direct=no
8875      hardcode_shlibpath_var=no
8876      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8877      export_dynamic_flag_spec='${wl}-E'
8878      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8879      # Instead, shared libraries are loaded at an image base (0x10000000 by
8880      # default) and relocated if they conflict, which is a slow very memory
8881      # consuming and fragmenting process.  To avoid this, we pick a random,
8882      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8883      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8884      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8885      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'
8886      ;;
8887
8888    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8889      tmp_diet=no
8890      if test "$host_os" = linux-dietlibc; then
8891	case $cc_basename in
8892	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8893	esac
8894      fi
8895      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8896	 && test "$tmp_diet" = no
8897      then
8898	tmp_addflag=
8899	tmp_sharedflag='-shared'
8900	case $cc_basename,$host_cpu in
8901        pgcc*)				# Portland Group C compiler
8902	  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'
8903	  tmp_addflag=' $pic_flag'
8904	  ;;
8905	pgf77* | pgf90* | pgf95* | pgfortran*)
8906					# Portland Group f77 and f90 compilers
8907	  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'
8908	  tmp_addflag=' $pic_flag -Mnomain' ;;
8909	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8910	  tmp_addflag=' -i_dynamic' ;;
8911	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8912	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8913	ifc* | ifort*)			# Intel Fortran compiler
8914	  tmp_addflag=' -nofor_main' ;;
8915	lf95*)				# Lahey Fortran 8.1
8916	  whole_archive_flag_spec=
8917	  tmp_sharedflag='--shared' ;;
8918	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8919	  tmp_sharedflag='-qmkshrobj'
8920	  tmp_addflag= ;;
8921	nvcc*)	# Cuda Compiler Driver 2.2
8922	  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'
8923	  compiler_needs_object=yes
8924	  ;;
8925	esac
8926	case `$CC -V 2>&1 | sed 5q` in
8927	*Sun\ C*)			# Sun C 5.9
8928	  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'
8929	  compiler_needs_object=yes
8930	  tmp_sharedflag='-G' ;;
8931	*Sun\ F*)			# Sun Fortran 8.3
8932	  tmp_sharedflag='-G' ;;
8933	esac
8934	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935
8936        if test "x$supports_anon_versioning" = xyes; then
8937          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8938	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8939	    echo "local: *; };" >> $output_objdir/$libname.ver~
8940	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8941        fi
8942
8943	case $cc_basename in
8944	xlf* | bgf* | bgxlf* | mpixlf*)
8945	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8946	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8947	  hardcode_libdir_flag_spec=
8948	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8949	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8950	  if test "x$supports_anon_versioning" = xyes; then
8951	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953	      echo "local: *; };" >> $output_objdir/$libname.ver~
8954	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8955	  fi
8956	  ;;
8957	esac
8958      else
8959        ld_shlibs=no
8960      fi
8961      ;;
8962
8963    netbsd*)
8964      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8966	wlarc=
8967      else
8968	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970      fi
8971      ;;
8972
8973    solaris*)
8974      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8975	ld_shlibs=no
8976	cat <<_LT_EOF 1>&2
8977
8978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8979*** create shared libraries on Solaris systems.  Therefore, libtool
8980*** is disabling shared libraries support.  We urge you to upgrade GNU
8981*** binutils to release 2.9.1 or newer.  Another option is to modify
8982*** your PATH or compiler configuration so that the native linker is
8983*** used, and then restart.
8984
8985_LT_EOF
8986      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989      else
8990	ld_shlibs=no
8991      fi
8992      ;;
8993
8994    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8995      case `$LD -v 2>&1` in
8996        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8997	ld_shlibs=no
8998	cat <<_LT_EOF 1>&2
8999
9000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9001*** reliably create shared libraries on SCO systems.  Therefore, libtool
9002*** is disabling shared libraries support.  We urge you to upgrade GNU
9003*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9004*** your PATH or compiler configuration so that the native linker is
9005*** used, and then restart.
9006
9007_LT_EOF
9008	;;
9009	*)
9010	  # For security reasons, it is highly recommended that you always
9011	  # use absolute paths for naming shared libraries, and exclude the
9012	  # DT_RUNPATH tag from executables and libraries.  But doing so
9013	  # requires that you compile everything twice, which is a pain.
9014	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018	  else
9019	    ld_shlibs=no
9020	  fi
9021	;;
9022      esac
9023      ;;
9024
9025    sunos4*)
9026      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027      wlarc=
9028      hardcode_direct=yes
9029      hardcode_shlibpath_var=no
9030      ;;
9031
9032    *)
9033      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036      else
9037	ld_shlibs=no
9038      fi
9039      ;;
9040    esac
9041
9042    if test "$ld_shlibs" = no; then
9043      runpath_var=
9044      hardcode_libdir_flag_spec=
9045      export_dynamic_flag_spec=
9046      whole_archive_flag_spec=
9047    fi
9048  else
9049    # PORTME fill in a description of your system's linker (not GNU ld)
9050    case $host_os in
9051    aix3*)
9052      allow_undefined_flag=unsupported
9053      always_export_symbols=yes
9054      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'
9055      # Note: this linker hardcodes the directories in LIBPATH if there
9056      # are no directories specified by -L.
9057      hardcode_minus_L=yes
9058      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9059	# Neither direct hardcoding nor static linking is supported with a
9060	# broken collect2.
9061	hardcode_direct=unsupported
9062      fi
9063      ;;
9064
9065    aix[4-9]*)
9066      if test "$host_cpu" = ia64; then
9067	# On IA64, the linker does run time linking by default, so we don't
9068	# have to do anything special.
9069	aix_use_runtimelinking=no
9070	exp_sym_flag='-Bexport'
9071	no_entry_flag=""
9072      else
9073	# If we're using GNU nm, then we don't want the "-C" option.
9074	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9075	# Also, AIX nm treats weak defined symbols like other global
9076	# defined symbols, whereas GNU nm marks them as "W".
9077	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9078	  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'
9079	else
9080	  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'
9081	fi
9082	aix_use_runtimelinking=no
9083
9084	# Test if we are trying to use run time linking or normal
9085	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9086	# need to do runtime linking.
9087	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9088	  for ld_flag in $LDFLAGS; do
9089	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9090	    aix_use_runtimelinking=yes
9091	    break
9092	  fi
9093	  done
9094	  ;;
9095	esac
9096
9097	exp_sym_flag='-bexport'
9098	no_entry_flag='-bnoentry'
9099      fi
9100
9101      # When large executables or shared objects are built, AIX ld can
9102      # have problems creating the table of contents.  If linking a library
9103      # or program results in "error TOC overflow" add -mminimal-toc to
9104      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9105      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106
9107      archive_cmds=''
9108      hardcode_direct=yes
9109      hardcode_direct_absolute=yes
9110      hardcode_libdir_separator=':'
9111      link_all_deplibs=yes
9112      file_list_spec='${wl}-f,'
9113
9114      if test "$GCC" = yes; then
9115	case $host_os in aix4.[012]|aix4.[012].*)
9116	# We only want to do this on AIX 4.2 and lower, the check
9117	# below for broken collect2 doesn't work under 4.3+
9118	  collect2name=`${CC} -print-prog-name=collect2`
9119	  if test -f "$collect2name" &&
9120	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9121	  then
9122	  # We have reworked collect2
9123	  :
9124	  else
9125	  # We have old collect2
9126	  hardcode_direct=unsupported
9127	  # It fails to find uninstalled libraries when the uninstalled
9128	  # path is not listed in the libpath.  Setting hardcode_minus_L
9129	  # to unsupported forces relinking
9130	  hardcode_minus_L=yes
9131	  hardcode_libdir_flag_spec='-L$libdir'
9132	  hardcode_libdir_separator=
9133	  fi
9134	  ;;
9135	esac
9136	shared_flag='-shared'
9137	if test "$aix_use_runtimelinking" = yes; then
9138	  shared_flag="$shared_flag "'${wl}-G'
9139	fi
9140      else
9141	# not using gcc
9142	if test "$host_cpu" = ia64; then
9143	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9144	# chokes on -Wl,-G. The following line is correct:
9145	  shared_flag='-G'
9146	else
9147	  if test "$aix_use_runtimelinking" = yes; then
9148	    shared_flag='${wl}-G'
9149	  else
9150	    shared_flag='${wl}-bM:SRE'
9151	  fi
9152	fi
9153      fi
9154
9155      export_dynamic_flag_spec='${wl}-bexpall'
9156      # It seems that -bexpall does not export symbols beginning with
9157      # underscore (_), so it is better to generate a list of symbols to export.
9158      always_export_symbols=yes
9159      if test "$aix_use_runtimelinking" = yes; then
9160	# Warning - without using the other runtime loading flags (-brtl),
9161	# -berok will link without error, but may produce a broken library.
9162	allow_undefined_flag='-berok'
9163        # Determine the default libpath from the value encoded in an
9164        # empty executable.
9165        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h.  */
9167
9168int
9169main ()
9170{
9171
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176if ac_fn_c_try_link "$LINENO"; then :
9177
9178lt_aix_libpath_sed='
9179    /Import File Strings/,/^$/ {
9180	/^0/ {
9181	    s/^0  *\(.*\)$/\1/
9182	    p
9183	}
9184    }'
9185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186# Check for a 64-bit object if we didn't find anything.
9187if test -z "$aix_libpath"; then
9188  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189fi
9190fi
9191rm -f core conftest.err conftest.$ac_objext \
9192    conftest$ac_exeext conftest.$ac_ext
9193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9194
9195        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9196        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"
9197      else
9198	if test "$host_cpu" = ia64; then
9199	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9200	  allow_undefined_flag="-z nodefs"
9201	  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"
9202	else
9203	 # Determine the default libpath from the value encoded in an
9204	 # empty executable.
9205	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207
9208int
9209main ()
9210{
9211
9212  ;
9213  return 0;
9214}
9215_ACEOF
9216if ac_fn_c_try_link "$LINENO"; then :
9217
9218lt_aix_libpath_sed='
9219    /Import File Strings/,/^$/ {
9220	/^0/ {
9221	    s/^0  *\(.*\)$/\1/
9222	    p
9223	}
9224    }'
9225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226# Check for a 64-bit object if we didn't find anything.
9227if test -z "$aix_libpath"; then
9228  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229fi
9230fi
9231rm -f core conftest.err conftest.$ac_objext \
9232    conftest$ac_exeext conftest.$ac_ext
9233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234
9235	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236	  # Warning - without using the other run time loading flags,
9237	  # -berok will link without error, but may produce a broken library.
9238	  no_undefined_flag=' ${wl}-bernotok'
9239	  allow_undefined_flag=' ${wl}-berok'
9240	  if test "$with_gnu_ld" = yes; then
9241	    # We only use this code for GNU lds that support --whole-archive.
9242	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9243	  else
9244	    # Exported symbols can be pulled into shared objects from archives
9245	    whole_archive_flag_spec='$convenience'
9246	  fi
9247	  archive_cmds_need_lc=yes
9248	  # This is similar to how AIX traditionally builds its shared libraries.
9249	  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'
9250	fi
9251      fi
9252      ;;
9253
9254    amigaos*)
9255      case $host_cpu in
9256      powerpc)
9257            # see comment about AmigaOS4 .so support
9258            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259            archive_expsym_cmds=''
9260        ;;
9261      m68k)
9262            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)'
9263            hardcode_libdir_flag_spec='-L$libdir'
9264            hardcode_minus_L=yes
9265        ;;
9266      esac
9267      ;;
9268
9269    bsdi[45]*)
9270      export_dynamic_flag_spec=-rdynamic
9271      ;;
9272
9273    cygwin* | mingw* | pw32* | cegcc*)
9274      # When not using gcc, we currently assume that we are using
9275      # Microsoft Visual C++.
9276      # hardcode_libdir_flag_spec is actually meaningless, as there is
9277      # no search path for DLLs.
9278      hardcode_libdir_flag_spec=' '
9279      allow_undefined_flag=unsupported
9280      # Tell ltmain to make .lib files, not .a files.
9281      libext=lib
9282      # Tell ltmain to make .dll files, not .so files.
9283      shrext_cmds=".dll"
9284      # FIXME: Setting linknames here is a bad hack.
9285      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9286      # The linker will automatically build a .lib file if we build a DLL.
9287      old_archive_from_new_cmds='true'
9288      # FIXME: Should let the user specify the lib program.
9289      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9290      fix_srcfile_path='`cygpath -w "$srcfile"`'
9291      enable_shared_with_static_runtimes=yes
9292      ;;
9293
9294    darwin* | rhapsody*)
9295
9296
9297  archive_cmds_need_lc=no
9298  hardcode_direct=no
9299  hardcode_automatic=yes
9300  hardcode_shlibpath_var=unsupported
9301  if test "$lt_cv_ld_force_load" = "yes"; then
9302    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\"`'
9303  else
9304    whole_archive_flag_spec=''
9305  fi
9306  link_all_deplibs=yes
9307  allow_undefined_flag="$_lt_dar_allow_undefined"
9308  case $cc_basename in
9309     ifort*) _lt_dar_can_shared=yes ;;
9310     *) _lt_dar_can_shared=$GCC ;;
9311  esac
9312  if test "$_lt_dar_can_shared" = "yes"; then
9313    output_verbose_link_cmd=func_echo_all
9314    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9315    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9316    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}"
9317    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}"
9318
9319  else
9320  ld_shlibs=no
9321  fi
9322
9323      ;;
9324
9325    dgux*)
9326      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327      hardcode_libdir_flag_spec='-L$libdir'
9328      hardcode_shlibpath_var=no
9329      ;;
9330
9331    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9332    # support.  Future versions do this automatically, but an explicit c++rt0.o
9333    # does not break anything, and helps significantly (at the cost of a little
9334    # extra space).
9335    freebsd2.2*)
9336      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9337      hardcode_libdir_flag_spec='-R$libdir'
9338      hardcode_direct=yes
9339      hardcode_shlibpath_var=no
9340      ;;
9341
9342    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9343    freebsd2*)
9344      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9345      hardcode_direct=yes
9346      hardcode_minus_L=yes
9347      hardcode_shlibpath_var=no
9348      ;;
9349
9350    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9351    freebsd* | dragonfly*)
9352      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9353      hardcode_libdir_flag_spec='-R$libdir'
9354      hardcode_direct=yes
9355      hardcode_shlibpath_var=no
9356      ;;
9357
9358    hpux9*)
9359      if test "$GCC" = yes; then
9360	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'
9361      else
9362	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'
9363      fi
9364      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9365      hardcode_libdir_separator=:
9366      hardcode_direct=yes
9367
9368      # hardcode_minus_L: Not really in the search PATH,
9369      # but as the default location of the library.
9370      hardcode_minus_L=yes
9371      export_dynamic_flag_spec='${wl}-E'
9372      ;;
9373
9374    hpux10*)
9375      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9376	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9377      else
9378	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9379      fi
9380      if test "$with_gnu_ld" = no; then
9381	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9382	hardcode_libdir_flag_spec_ld='+b $libdir'
9383	hardcode_libdir_separator=:
9384	hardcode_direct=yes
9385	hardcode_direct_absolute=yes
9386	export_dynamic_flag_spec='${wl}-E'
9387	# hardcode_minus_L: Not really in the search PATH,
9388	# but as the default location of the library.
9389	hardcode_minus_L=yes
9390      fi
9391      ;;
9392
9393    hpux11*)
9394      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9395	case $host_cpu in
9396	hppa*64*)
9397	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398	  ;;
9399	ia64*)
9400	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9401	  ;;
9402	*)
9403	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404	  ;;
9405	esac
9406      else
9407	case $host_cpu in
9408	hppa*64*)
9409	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410	  ;;
9411	ia64*)
9412	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9413	  ;;
9414	*)
9415
9416	  # Older versions of the 11.00 compiler do not understand -b yet
9417	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9418	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9419$as_echo_n "checking if $CC understands -b... " >&6; }
9420if test "${lt_cv_prog_compiler__b+set}" = set; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  lt_cv_prog_compiler__b=no
9424   save_LDFLAGS="$LDFLAGS"
9425   LDFLAGS="$LDFLAGS -b"
9426   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9427   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9428     # The linker can only warn and ignore the option if not recognized
9429     # So say no if there are warnings
9430     if test -s conftest.err; then
9431       # Append any errors to the config.log.
9432       cat conftest.err 1>&5
9433       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9434       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435       if diff conftest.exp conftest.er2 >/dev/null; then
9436         lt_cv_prog_compiler__b=yes
9437       fi
9438     else
9439       lt_cv_prog_compiler__b=yes
9440     fi
9441   fi
9442   $RM -r conftest*
9443   LDFLAGS="$save_LDFLAGS"
9444
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9447$as_echo "$lt_cv_prog_compiler__b" >&6; }
9448
9449if test x"$lt_cv_prog_compiler__b" = xyes; then
9450    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451else
9452    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9453fi
9454
9455	  ;;
9456	esac
9457      fi
9458      if test "$with_gnu_ld" = no; then
9459	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460	hardcode_libdir_separator=:
9461
9462	case $host_cpu in
9463	hppa*64*|ia64*)
9464	  hardcode_direct=no
9465	  hardcode_shlibpath_var=no
9466	  ;;
9467	*)
9468	  hardcode_direct=yes
9469	  hardcode_direct_absolute=yes
9470	  export_dynamic_flag_spec='${wl}-E'
9471
9472	  # hardcode_minus_L: Not really in the search PATH,
9473	  # but as the default location of the library.
9474	  hardcode_minus_L=yes
9475	  ;;
9476	esac
9477      fi
9478      ;;
9479
9480    irix5* | irix6* | nonstopux*)
9481      if test "$GCC" = yes; then
9482	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'
9483	# Try to use the -exported_symbol ld option, if it does not
9484	# work, assume that -exports_file does not work either and
9485	# implicitly export all symbols.
9486        save_LDFLAGS="$LDFLAGS"
9487        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9488        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490int foo(void) {}
9491_ACEOF
9492if ac_fn_c_try_link "$LINENO"; then :
9493  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'
9494
9495fi
9496rm -f core conftest.err conftest.$ac_objext \
9497    conftest$ac_exeext conftest.$ac_ext
9498        LDFLAGS="$save_LDFLAGS"
9499      else
9500	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'
9501	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'
9502      fi
9503      archive_cmds_need_lc='no'
9504      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505      hardcode_libdir_separator=:
9506      inherit_rpath=yes
9507      link_all_deplibs=yes
9508      ;;
9509
9510    netbsd*)
9511      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9513      else
9514	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9515      fi
9516      hardcode_libdir_flag_spec='-R$libdir'
9517      hardcode_direct=yes
9518      hardcode_shlibpath_var=no
9519      ;;
9520
9521    newsos6)
9522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523      hardcode_direct=yes
9524      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525      hardcode_libdir_separator=:
9526      hardcode_shlibpath_var=no
9527      ;;
9528
9529    *nto* | *qnx*)
9530      ;;
9531
9532    openbsd*)
9533      if test -f /usr/libexec/ld.so; then
9534	hardcode_direct=yes
9535	hardcode_shlibpath_var=no
9536	hardcode_direct_absolute=yes
9537	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9538	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9540	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9541	  export_dynamic_flag_spec='${wl}-E'
9542	else
9543	  case $host_os in
9544	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9545	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546	     hardcode_libdir_flag_spec='-R$libdir'
9547	     ;;
9548	   *)
9549	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551	     ;;
9552	  esac
9553	fi
9554      else
9555	ld_shlibs=no
9556      fi
9557      ;;
9558
9559    os2*)
9560      hardcode_libdir_flag_spec='-L$libdir'
9561      hardcode_minus_L=yes
9562      allow_undefined_flag=unsupported
9563      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'
9564      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9565      ;;
9566
9567    osf3*)
9568      if test "$GCC" = yes; then
9569	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9570	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'
9571      else
9572	allow_undefined_flag=' -expect_unresolved \*'
9573	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'
9574      fi
9575      archive_cmds_need_lc='no'
9576      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577      hardcode_libdir_separator=:
9578      ;;
9579
9580    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9581      if test "$GCC" = yes; then
9582	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583	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'
9584	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585      else
9586	allow_undefined_flag=' -expect_unresolved \*'
9587	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'
9588	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~
9589	$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'
9590
9591	# Both c and cxx compiler support -rpath directly
9592	hardcode_libdir_flag_spec='-rpath $libdir'
9593      fi
9594      archive_cmds_need_lc='no'
9595      hardcode_libdir_separator=:
9596      ;;
9597
9598    solaris*)
9599      no_undefined_flag=' -z defs'
9600      if test "$GCC" = yes; then
9601	wlarc='${wl}'
9602	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9604	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9605      else
9606	case `$CC -V 2>&1` in
9607	*"Compilers 5.0"*)
9608	  wlarc=''
9609	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9611	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9612	  ;;
9613	*)
9614	  wlarc='${wl}'
9615	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9616	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618	  ;;
9619	esac
9620      fi
9621      hardcode_libdir_flag_spec='-R$libdir'
9622      hardcode_shlibpath_var=no
9623      case $host_os in
9624      solaris2.[0-5] | solaris2.[0-5].*) ;;
9625      *)
9626	# The compiler driver will combine and reorder linker options,
9627	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9628	# but is careful enough not to reorder.
9629	# Supported since Solaris 2.6 (maybe 2.5.1?)
9630	if test "$GCC" = yes; then
9631	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9632	else
9633	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9634	fi
9635	;;
9636      esac
9637      link_all_deplibs=yes
9638      ;;
9639
9640    sunos4*)
9641      if test "x$host_vendor" = xsequent; then
9642	# Use $CC to link under sequent, because it throws in some extra .o
9643	# files that make .init and .fini sections work.
9644	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9645      else
9646	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9647      fi
9648      hardcode_libdir_flag_spec='-L$libdir'
9649      hardcode_direct=yes
9650      hardcode_minus_L=yes
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    sysv4)
9655      case $host_vendor in
9656	sni)
9657	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658	  hardcode_direct=yes # is this really true???
9659	;;
9660	siemens)
9661	  ## LD is ld it makes a PLAMLIB
9662	  ## CC just makes a GrossModule.
9663	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9664	  reload_cmds='$CC -r -o $output$reload_objs'
9665	  hardcode_direct=no
9666        ;;
9667	motorola)
9668	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9670	;;
9671      esac
9672      runpath_var='LD_RUN_PATH'
9673      hardcode_shlibpath_var=no
9674      ;;
9675
9676    sysv4.3*)
9677      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678      hardcode_shlibpath_var=no
9679      export_dynamic_flag_spec='-Bexport'
9680      ;;
9681
9682    sysv4*MP*)
9683      if test -d /usr/nec; then
9684	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685	hardcode_shlibpath_var=no
9686	runpath_var=LD_RUN_PATH
9687	hardcode_runpath_var=yes
9688	ld_shlibs=yes
9689      fi
9690      ;;
9691
9692    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9693      no_undefined_flag='${wl}-z,text'
9694      archive_cmds_need_lc=no
9695      hardcode_shlibpath_var=no
9696      runpath_var='LD_RUN_PATH'
9697
9698      if test "$GCC" = yes; then
9699	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701      else
9702	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704      fi
9705      ;;
9706
9707    sysv5* | sco3.2v5* | sco5v6*)
9708      # Note: We can NOT use -z defs as we might desire, because we do not
9709      # link with -lc, and that would cause any symbols used from libc to
9710      # always be unresolved, which means just about no library would
9711      # ever link correctly.  If we're not using GNU ld we use -z text
9712      # though, which does catch some bad symbols but isn't as heavy-handed
9713      # as -z defs.
9714      no_undefined_flag='${wl}-z,text'
9715      allow_undefined_flag='${wl}-z,nodefs'
9716      archive_cmds_need_lc=no
9717      hardcode_shlibpath_var=no
9718      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9719      hardcode_libdir_separator=':'
9720      link_all_deplibs=yes
9721      export_dynamic_flag_spec='${wl}-Bexport'
9722      runpath_var='LD_RUN_PATH'
9723
9724      if test "$GCC" = yes; then
9725	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727      else
9728	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730      fi
9731      ;;
9732
9733    uts4*)
9734      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735      hardcode_libdir_flag_spec='-L$libdir'
9736      hardcode_shlibpath_var=no
9737      ;;
9738
9739    *)
9740      ld_shlibs=no
9741      ;;
9742    esac
9743
9744    if test x$host_vendor = xsni; then
9745      case $host in
9746      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9747	export_dynamic_flag_spec='${wl}-Blargedynsym'
9748	;;
9749      esac
9750    fi
9751  fi
9752
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9754$as_echo "$ld_shlibs" >&6; }
9755test "$ld_shlibs" = no && can_build_shared=no
9756
9757with_gnu_ld=$with_gnu_ld
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773#
9774# Do we need to explicitly link libc?
9775#
9776case "x$archive_cmds_need_lc" in
9777x|xyes)
9778  # Assume -lc should be added
9779  archive_cmds_need_lc=yes
9780
9781  if test "$enable_shared" = yes && test "$GCC" = yes; then
9782    case $archive_cmds in
9783    *'~'*)
9784      # FIXME: we may have to deal with multi-command sequences.
9785      ;;
9786    '$CC '*)
9787      # Test whether the compiler implicitly links with -lc since on some
9788      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9789      # to ld, don't add -lc before -lgcc.
9790      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9791$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9792if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9793  $as_echo_n "(cached) " >&6
9794else
9795  $RM conftest*
9796	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9797
9798	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9799  (eval $ac_compile) 2>&5
9800  ac_status=$?
9801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802  test $ac_status = 0; } 2>conftest.err; then
9803	  soname=conftest
9804	  lib=conftest
9805	  libobjs=conftest.$ac_objext
9806	  deplibs=
9807	  wl=$lt_prog_compiler_wl
9808	  pic_flag=$lt_prog_compiler_pic
9809	  compiler_flags=-v
9810	  linker_flags=-v
9811	  verstring=
9812	  output_objdir=.
9813	  libname=conftest
9814	  lt_save_allow_undefined_flag=$allow_undefined_flag
9815	  allow_undefined_flag=
9816	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9817  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9818  ac_status=$?
9819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820  test $ac_status = 0; }
9821	  then
9822	    lt_cv_archive_cmds_need_lc=no
9823	  else
9824	    lt_cv_archive_cmds_need_lc=yes
9825	  fi
9826	  allow_undefined_flag=$lt_save_allow_undefined_flag
9827	else
9828	  cat conftest.err 1>&5
9829	fi
9830	$RM conftest*
9831
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9834$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9835      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9836      ;;
9837    esac
9838  fi
9839  ;;
9840esac
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9999$as_echo_n "checking dynamic linker characteristics... " >&6; }
10000
10001if test "$GCC" = yes; then
10002  case $host_os in
10003    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10004    *) lt_awk_arg="/^libraries:/" ;;
10005  esac
10006  case $host_os in
10007    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10008    *) lt_sed_strip_eq="s,=/,/,g" ;;
10009  esac
10010  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10011  case $lt_search_path_spec in
10012  *\;*)
10013    # if the path contains ";" then we assume it to be the separator
10014    # otherwise default to the standard path separator (i.e. ":") - it is
10015    # assumed that no part of a normal pathname contains ";" but that should
10016    # okay in the real world where ";" in dirpaths is itself problematic.
10017    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10018    ;;
10019  *)
10020    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10021    ;;
10022  esac
10023  # Ok, now we have the path, separated by spaces, we can step through it
10024  # and add multilib dir if necessary.
10025  lt_tmp_lt_search_path_spec=
10026  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10027  for lt_sys_path in $lt_search_path_spec; do
10028    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10029      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10030    else
10031      test -d "$lt_sys_path" && \
10032	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10033    fi
10034  done
10035  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10036BEGIN {RS=" "; FS="/|\n";} {
10037  lt_foo="";
10038  lt_count=0;
10039  for (lt_i = NF; lt_i > 0; lt_i--) {
10040    if ($lt_i != "" && $lt_i != ".") {
10041      if ($lt_i == "..") {
10042        lt_count++;
10043      } else {
10044        if (lt_count == 0) {
10045          lt_foo="/" $lt_i lt_foo;
10046        } else {
10047          lt_count--;
10048        }
10049      }
10050    }
10051  }
10052  if (lt_foo != "") { lt_freq[lt_foo]++; }
10053  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10054}'`
10055  # AWK program above erroneously prepends '/' to C:/dos/paths
10056  # for these hosts.
10057  case $host_os in
10058    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10059      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10060  esac
10061  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10062else
10063  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10064fi
10065library_names_spec=
10066libname_spec='lib$name'
10067soname_spec=
10068shrext_cmds=".so"
10069postinstall_cmds=
10070postuninstall_cmds=
10071finish_cmds=
10072finish_eval=
10073shlibpath_var=
10074shlibpath_overrides_runpath=unknown
10075version_type=none
10076dynamic_linker="$host_os ld.so"
10077sys_lib_dlsearch_path_spec="/lib /usr/lib"
10078need_lib_prefix=unknown
10079hardcode_into_libs=no
10080
10081# when you set need_version to no, make sure it does not cause -set_version
10082# flags to be left without arguments
10083need_version=unknown
10084
10085case $host_os in
10086aix3*)
10087  version_type=linux
10088  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10089  shlibpath_var=LIBPATH
10090
10091  # AIX 3 has no versioning support, so we append a major version to the name.
10092  soname_spec='${libname}${release}${shared_ext}$major'
10093  ;;
10094
10095aix[4-9]*)
10096  version_type=linux
10097  need_lib_prefix=no
10098  need_version=no
10099  hardcode_into_libs=yes
10100  if test "$host_cpu" = ia64; then
10101    # AIX 5 supports IA64
10102    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10103    shlibpath_var=LD_LIBRARY_PATH
10104  else
10105    # With GCC up to 2.95.x, collect2 would create an import file
10106    # for dependence libraries.  The import file would start with
10107    # the line `#! .'.  This would cause the generated library to
10108    # depend on `.', always an invalid library.  This was fixed in
10109    # development snapshots of GCC prior to 3.0.
10110    case $host_os in
10111      aix4 | aix4.[01] | aix4.[01].*)
10112      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10113	   echo ' yes '
10114	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10115	:
10116      else
10117	can_build_shared=no
10118      fi
10119      ;;
10120    esac
10121    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10122    # soname into executable. Probably we can add versioning support to
10123    # collect2, so additional links can be useful in future.
10124    if test "$aix_use_runtimelinking" = yes; then
10125      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10126      # instead of lib<name>.a to let people know that these are not
10127      # typical AIX shared libraries.
10128      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129    else
10130      # We preserve .a as extension for shared libraries through AIX4.2
10131      # and later when we are not doing run time linking.
10132      library_names_spec='${libname}${release}.a $libname.a'
10133      soname_spec='${libname}${release}${shared_ext}$major'
10134    fi
10135    shlibpath_var=LIBPATH
10136  fi
10137  ;;
10138
10139amigaos*)
10140  case $host_cpu in
10141  powerpc)
10142    # Since July 2007 AmigaOS4 officially supports .so libraries.
10143    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10144    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145    ;;
10146  m68k)
10147    library_names_spec='$libname.ixlibrary $libname.a'
10148    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10149    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'
10150    ;;
10151  esac
10152  ;;
10153
10154beos*)
10155  library_names_spec='${libname}${shared_ext}'
10156  dynamic_linker="$host_os ld.so"
10157  shlibpath_var=LIBRARY_PATH
10158  ;;
10159
10160bsdi[45]*)
10161  version_type=linux
10162  need_version=no
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164  soname_spec='${libname}${release}${shared_ext}$major'
10165  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10166  shlibpath_var=LD_LIBRARY_PATH
10167  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10168  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10169  # the default ld.so.conf also contains /usr/contrib/lib and
10170  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10171  # libtool to hard-code these into programs
10172  ;;
10173
10174cygwin* | mingw* | pw32* | cegcc*)
10175  version_type=windows
10176  shrext_cmds=".dll"
10177  need_version=no
10178  need_lib_prefix=no
10179
10180  case $GCC,$host_os in
10181  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10182    library_names_spec='$libname.dll.a'
10183    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10184    postinstall_cmds='base_file=`basename \${file}`~
10185      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10186      dldir=$destdir/`dirname \$dlpath`~
10187      test -d \$dldir || mkdir -p \$dldir~
10188      $install_prog $dir/$dlname \$dldir/$dlname~
10189      chmod a+x \$dldir/$dlname~
10190      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10191        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10192      fi'
10193    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10194      dlpath=$dir/\$dldll~
10195       $RM \$dlpath'
10196    shlibpath_overrides_runpath=yes
10197
10198    case $host_os in
10199    cygwin*)
10200      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10201      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202
10203      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10204      ;;
10205    mingw* | cegcc*)
10206      # MinGW DLLs use traditional 'lib' prefix
10207      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208      ;;
10209    pw32*)
10210      # pw32 DLLs use 'pw' prefix rather than 'lib'
10211      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212      ;;
10213    esac
10214    ;;
10215
10216  *)
10217    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10218    ;;
10219  esac
10220  dynamic_linker='Win32 ld.exe'
10221  # FIXME: first we should search . and the directory the executable is in
10222  shlibpath_var=PATH
10223  ;;
10224
10225darwin* | rhapsody*)
10226  dynamic_linker="$host_os dyld"
10227  version_type=darwin
10228  need_lib_prefix=no
10229  need_version=no
10230  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10231  soname_spec='${libname}${release}${major}$shared_ext'
10232  shlibpath_overrides_runpath=yes
10233  shlibpath_var=DYLD_LIBRARY_PATH
10234  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10235
10236  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10237  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10238  ;;
10239
10240dgux*)
10241  version_type=linux
10242  need_lib_prefix=no
10243  need_version=no
10244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10245  soname_spec='${libname}${release}${shared_ext}$major'
10246  shlibpath_var=LD_LIBRARY_PATH
10247  ;;
10248
10249freebsd* | dragonfly*)
10250  # DragonFly does not have aout.  When/if they implement a new
10251  # versioning mechanism, adjust this.
10252  if test -x /usr/bin/objformat; then
10253    objformat=`/usr/bin/objformat`
10254  else
10255    case $host_os in
10256    freebsd[123]*) objformat=aout ;;
10257    *) objformat=elf ;;
10258    esac
10259  fi
10260  version_type=freebsd-$objformat
10261  case $version_type in
10262    freebsd-elf*)
10263      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10264      need_version=no
10265      need_lib_prefix=no
10266      ;;
10267    freebsd-*)
10268      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10269      need_version=yes
10270      ;;
10271  esac
10272  shlibpath_var=LD_LIBRARY_PATH
10273  case $host_os in
10274  freebsd2*)
10275    shlibpath_overrides_runpath=yes
10276    ;;
10277  freebsd3.[01]* | freebsdelf3.[01]*)
10278    shlibpath_overrides_runpath=yes
10279    hardcode_into_libs=yes
10280    ;;
10281  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10282  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10283    shlibpath_overrides_runpath=no
10284    hardcode_into_libs=yes
10285    ;;
10286  *) # from 4.6 on, and DragonFly
10287    shlibpath_overrides_runpath=yes
10288    hardcode_into_libs=yes
10289    ;;
10290  esac
10291  ;;
10292
10293gnu*)
10294  version_type=linux
10295  need_lib_prefix=no
10296  need_version=no
10297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10298  soname_spec='${libname}${release}${shared_ext}$major'
10299  shlibpath_var=LD_LIBRARY_PATH
10300  hardcode_into_libs=yes
10301  ;;
10302
10303haiku*)
10304  version_type=linux
10305  need_lib_prefix=no
10306  need_version=no
10307  dynamic_linker="$host_os runtime_loader"
10308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10309  soname_spec='${libname}${release}${shared_ext}$major'
10310  shlibpath_var=LIBRARY_PATH
10311  shlibpath_overrides_runpath=yes
10312  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10313  hardcode_into_libs=yes
10314  ;;
10315
10316hpux9* | hpux10* | hpux11*)
10317  # Give a soname corresponding to the major version so that dld.sl refuses to
10318  # link against other versions.
10319  version_type=sunos
10320  need_lib_prefix=no
10321  need_version=no
10322  case $host_cpu in
10323  ia64*)
10324    shrext_cmds='.so'
10325    hardcode_into_libs=yes
10326    dynamic_linker="$host_os dld.so"
10327    shlibpath_var=LD_LIBRARY_PATH
10328    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330    soname_spec='${libname}${release}${shared_ext}$major'
10331    if test "X$HPUX_IA64_MODE" = X32; then
10332      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10333    else
10334      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10335    fi
10336    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337    ;;
10338  hppa*64*)
10339    shrext_cmds='.sl'
10340    hardcode_into_libs=yes
10341    dynamic_linker="$host_os dld.sl"
10342    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10343    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10344    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345    soname_spec='${libname}${release}${shared_ext}$major'
10346    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10347    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348    ;;
10349  *)
10350    shrext_cmds='.sl'
10351    dynamic_linker="$host_os dld.sl"
10352    shlibpath_var=SHLIB_PATH
10353    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355    soname_spec='${libname}${release}${shared_ext}$major'
10356    ;;
10357  esac
10358  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10359  postinstall_cmds='chmod 555 $lib'
10360  # or fails outright, so override atomically:
10361  install_override_mode=555
10362  ;;
10363
10364interix[3-9]*)
10365  version_type=linux
10366  need_lib_prefix=no
10367  need_version=no
10368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369  soname_spec='${libname}${release}${shared_ext}$major'
10370  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10371  shlibpath_var=LD_LIBRARY_PATH
10372  shlibpath_overrides_runpath=no
10373  hardcode_into_libs=yes
10374  ;;
10375
10376irix5* | irix6* | nonstopux*)
10377  case $host_os in
10378    nonstopux*) version_type=nonstopux ;;
10379    *)
10380	if test "$lt_cv_prog_gnu_ld" = yes; then
10381		version_type=linux
10382	else
10383		version_type=irix
10384	fi ;;
10385  esac
10386  need_lib_prefix=no
10387  need_version=no
10388  soname_spec='${libname}${release}${shared_ext}$major'
10389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10390  case $host_os in
10391  irix5* | nonstopux*)
10392    libsuff= shlibsuff=
10393    ;;
10394  *)
10395    case $LD in # libtool.m4 will add one of these switches to LD
10396    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10397      libsuff= shlibsuff= libmagic=32-bit;;
10398    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10399      libsuff=32 shlibsuff=N32 libmagic=N32;;
10400    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10401      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10402    *) libsuff= shlibsuff= libmagic=never-match;;
10403    esac
10404    ;;
10405  esac
10406  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10407  shlibpath_overrides_runpath=no
10408  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10409  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10410  hardcode_into_libs=yes
10411  ;;
10412
10413# No shared lib support for Linux oldld, aout, or coff.
10414linux*oldld* | linux*aout* | linux*coff*)
10415  dynamic_linker=no
10416  ;;
10417
10418# This must be Linux ELF.
10419linux* | k*bsd*-gnu | kopensolaris*-gnu)
10420  version_type=linux
10421  need_lib_prefix=no
10422  need_version=no
10423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424  soname_spec='${libname}${release}${shared_ext}$major'
10425  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10426  shlibpath_var=LD_LIBRARY_PATH
10427  shlibpath_overrides_runpath=no
10428
10429  # Some binutils ld are patched to set DT_RUNPATH
10430  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10431  $as_echo_n "(cached) " >&6
10432else
10433  lt_cv_shlibpath_overrides_runpath=no
10434    save_LDFLAGS=$LDFLAGS
10435    save_libdir=$libdir
10436    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10437	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10438    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h.  */
10440
10441int
10442main ()
10443{
10444
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10451  lt_cv_shlibpath_overrides_runpath=yes
10452fi
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455    conftest$ac_exeext conftest.$ac_ext
10456    LDFLAGS=$save_LDFLAGS
10457    libdir=$save_libdir
10458
10459fi
10460
10461  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10462
10463  # This implies no fast_install, which is unacceptable.
10464  # Some rework will be needed to allow for fast_install
10465  # before this can be enabled.
10466  hardcode_into_libs=yes
10467
10468  # Append ld.so.conf contents to the search path
10469  if test -f /etc/ld.so.conf; then
10470    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' ' '`
10471    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10472  fi
10473
10474  # We used to test for /lib/ld.so.1 and disable shared libraries on
10475  # powerpc, because MkLinux only supported shared libraries with the
10476  # GNU dynamic linker.  Since this was broken with cross compilers,
10477  # most powerpc-linux boxes support dynamic linking these days and
10478  # people can always --disable-shared, the test was removed, and we
10479  # assume the GNU/Linux dynamic linker is in use.
10480  dynamic_linker='GNU/Linux ld.so'
10481  ;;
10482
10483netbsd*)
10484  version_type=sunos
10485  need_lib_prefix=no
10486  need_version=no
10487  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10488    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490    dynamic_linker='NetBSD (a.out) ld.so'
10491  else
10492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493    soname_spec='${libname}${release}${shared_ext}$major'
10494    dynamic_linker='NetBSD ld.elf_so'
10495  fi
10496  shlibpath_var=LD_LIBRARY_PATH
10497  shlibpath_overrides_runpath=yes
10498  hardcode_into_libs=yes
10499  ;;
10500
10501newsos6)
10502  version_type=linux
10503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504  shlibpath_var=LD_LIBRARY_PATH
10505  shlibpath_overrides_runpath=yes
10506  ;;
10507
10508*nto* | *qnx*)
10509  version_type=qnx
10510  need_lib_prefix=no
10511  need_version=no
10512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513  soname_spec='${libname}${release}${shared_ext}$major'
10514  shlibpath_var=LD_LIBRARY_PATH
10515  shlibpath_overrides_runpath=no
10516  hardcode_into_libs=yes
10517  dynamic_linker='ldqnx.so'
10518  ;;
10519
10520openbsd*)
10521  version_type=sunos
10522  sys_lib_dlsearch_path_spec="/usr/lib"
10523  need_lib_prefix=no
10524  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10525  case $host_os in
10526    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10527    *)				need_version=no  ;;
10528  esac
10529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531  shlibpath_var=LD_LIBRARY_PATH
10532  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10533    case $host_os in
10534      openbsd2.[89] | openbsd2.[89].*)
10535	shlibpath_overrides_runpath=no
10536	;;
10537      *)
10538	shlibpath_overrides_runpath=yes
10539	;;
10540      esac
10541  else
10542    shlibpath_overrides_runpath=yes
10543  fi
10544  ;;
10545
10546os2*)
10547  libname_spec='$name'
10548  shrext_cmds=".dll"
10549  need_lib_prefix=no
10550  library_names_spec='$libname${shared_ext} $libname.a'
10551  dynamic_linker='OS/2 ld.exe'
10552  shlibpath_var=LIBPATH
10553  ;;
10554
10555osf3* | osf4* | osf5*)
10556  version_type=osf
10557  need_lib_prefix=no
10558  need_version=no
10559  soname_spec='${libname}${release}${shared_ext}$major'
10560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561  shlibpath_var=LD_LIBRARY_PATH
10562  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10563  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10564  ;;
10565
10566rdos*)
10567  dynamic_linker=no
10568  ;;
10569
10570solaris*)
10571  version_type=linux
10572  need_lib_prefix=no
10573  need_version=no
10574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575  soname_spec='${libname}${release}${shared_ext}$major'
10576  shlibpath_var=LD_LIBRARY_PATH
10577  shlibpath_overrides_runpath=yes
10578  hardcode_into_libs=yes
10579  # ldd complains unless libraries are executable
10580  postinstall_cmds='chmod +x $lib'
10581  ;;
10582
10583sunos4*)
10584  version_type=sunos
10585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10586  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10587  shlibpath_var=LD_LIBRARY_PATH
10588  shlibpath_overrides_runpath=yes
10589  if test "$with_gnu_ld" = yes; then
10590    need_lib_prefix=no
10591  fi
10592  need_version=yes
10593  ;;
10594
10595sysv4 | sysv4.3*)
10596  version_type=linux
10597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598  soname_spec='${libname}${release}${shared_ext}$major'
10599  shlibpath_var=LD_LIBRARY_PATH
10600  case $host_vendor in
10601    sni)
10602      shlibpath_overrides_runpath=no
10603      need_lib_prefix=no
10604      runpath_var=LD_RUN_PATH
10605      ;;
10606    siemens)
10607      need_lib_prefix=no
10608      ;;
10609    motorola)
10610      need_lib_prefix=no
10611      need_version=no
10612      shlibpath_overrides_runpath=no
10613      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10614      ;;
10615  esac
10616  ;;
10617
10618sysv4*MP*)
10619  if test -d /usr/nec ;then
10620    version_type=linux
10621    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10622    soname_spec='$libname${shared_ext}.$major'
10623    shlibpath_var=LD_LIBRARY_PATH
10624  fi
10625  ;;
10626
10627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628  version_type=freebsd-elf
10629  need_lib_prefix=no
10630  need_version=no
10631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10632  soname_spec='${libname}${release}${shared_ext}$major'
10633  shlibpath_var=LD_LIBRARY_PATH
10634  shlibpath_overrides_runpath=yes
10635  hardcode_into_libs=yes
10636  if test "$with_gnu_ld" = yes; then
10637    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10638  else
10639    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10640    case $host_os in
10641      sco3.2v5*)
10642        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10643	;;
10644    esac
10645  fi
10646  sys_lib_dlsearch_path_spec='/usr/lib'
10647  ;;
10648
10649tpf*)
10650  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10651  version_type=linux
10652  need_lib_prefix=no
10653  need_version=no
10654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655  shlibpath_var=LD_LIBRARY_PATH
10656  shlibpath_overrides_runpath=no
10657  hardcode_into_libs=yes
10658  ;;
10659
10660uts4*)
10661  version_type=linux
10662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663  soname_spec='${libname}${release}${shared_ext}$major'
10664  shlibpath_var=LD_LIBRARY_PATH
10665  ;;
10666
10667*)
10668  dynamic_linker=no
10669  ;;
10670esac
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10672$as_echo "$dynamic_linker" >&6; }
10673test "$dynamic_linker" = no && can_build_shared=no
10674
10675variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10676if test "$GCC" = yes; then
10677  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10678fi
10679
10680if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10681  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10682fi
10683if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10684  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10685fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10779$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10780hardcode_action=
10781if test -n "$hardcode_libdir_flag_spec" ||
10782   test -n "$runpath_var" ||
10783   test "X$hardcode_automatic" = "Xyes" ; then
10784
10785  # We can hardcode non-existent directories.
10786  if test "$hardcode_direct" != no &&
10787     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10788     # have to relink, otherwise we might link with an installed library
10789     # when we should be linking with a yet-to-be-installed one
10790     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10791     test "$hardcode_minus_L" != no; then
10792    # Linking always hardcodes the temporary library directory.
10793    hardcode_action=relink
10794  else
10795    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10796    hardcode_action=immediate
10797  fi
10798else
10799  # We cannot hardcode anything, or else we can only hardcode existing
10800  # directories.
10801  hardcode_action=unsupported
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10804$as_echo "$hardcode_action" >&6; }
10805
10806if test "$hardcode_action" = relink ||
10807   test "$inherit_rpath" = yes; then
10808  # Fast installation is not supported
10809  enable_fast_install=no
10810elif test "$shlibpath_overrides_runpath" = yes ||
10811     test "$enable_shared" = no; then
10812  # Fast installation is not necessary
10813  enable_fast_install=needless
10814fi
10815
10816
10817
10818
10819
10820
10821  if test "x$enable_dlopen" != xyes; then
10822  enable_dlopen=unknown
10823  enable_dlopen_self=unknown
10824  enable_dlopen_self_static=unknown
10825else
10826  lt_cv_dlopen=no
10827  lt_cv_dlopen_libs=
10828
10829  case $host_os in
10830  beos*)
10831    lt_cv_dlopen="load_add_on"
10832    lt_cv_dlopen_libs=
10833    lt_cv_dlopen_self=yes
10834    ;;
10835
10836  mingw* | pw32* | cegcc*)
10837    lt_cv_dlopen="LoadLibrary"
10838    lt_cv_dlopen_libs=
10839    ;;
10840
10841  cygwin*)
10842    lt_cv_dlopen="dlopen"
10843    lt_cv_dlopen_libs=
10844    ;;
10845
10846  darwin*)
10847  # if libdl is installed we need to link against it
10848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10849$as_echo_n "checking for dlopen in -ldl... " >&6; }
10850if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10851  $as_echo_n "(cached) " >&6
10852else
10853  ac_check_lib_save_LIBS=$LIBS
10854LIBS="-ldl  $LIBS"
10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856/* end confdefs.h.  */
10857
10858/* Override any GCC internal prototype to avoid an error.
10859   Use char because int might match the return type of a GCC
10860   builtin and then its argument prototype would still apply.  */
10861#ifdef __cplusplus
10862extern "C"
10863#endif
10864char dlopen ();
10865int
10866main ()
10867{
10868return dlopen ();
10869  ;
10870  return 0;
10871}
10872_ACEOF
10873if ac_fn_c_try_link "$LINENO"; then :
10874  ac_cv_lib_dl_dlopen=yes
10875else
10876  ac_cv_lib_dl_dlopen=no
10877fi
10878rm -f core conftest.err conftest.$ac_objext \
10879    conftest$ac_exeext conftest.$ac_ext
10880LIBS=$ac_check_lib_save_LIBS
10881fi
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10883$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10884if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10885  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10886else
10887
10888    lt_cv_dlopen="dyld"
10889    lt_cv_dlopen_libs=
10890    lt_cv_dlopen_self=yes
10891
10892fi
10893
10894    ;;
10895
10896  *)
10897    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10898if test "x$ac_cv_func_shl_load" = x""yes; then :
10899  lt_cv_dlopen="shl_load"
10900else
10901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10902$as_echo_n "checking for shl_load in -ldld... " >&6; }
10903if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  ac_check_lib_save_LIBS=$LIBS
10907LIBS="-ldld  $LIBS"
10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910
10911/* Override any GCC internal prototype to avoid an error.
10912   Use char because int might match the return type of a GCC
10913   builtin and then its argument prototype would still apply.  */
10914#ifdef __cplusplus
10915extern "C"
10916#endif
10917char shl_load ();
10918int
10919main ()
10920{
10921return shl_load ();
10922  ;
10923  return 0;
10924}
10925_ACEOF
10926if ac_fn_c_try_link "$LINENO"; then :
10927  ac_cv_lib_dld_shl_load=yes
10928else
10929  ac_cv_lib_dld_shl_load=no
10930fi
10931rm -f core conftest.err conftest.$ac_objext \
10932    conftest$ac_exeext conftest.$ac_ext
10933LIBS=$ac_check_lib_save_LIBS
10934fi
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10936$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10937if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10938  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10939else
10940  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10941if test "x$ac_cv_func_dlopen" = x""yes; then :
10942  lt_cv_dlopen="dlopen"
10943else
10944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10945$as_echo_n "checking for dlopen in -ldl... " >&6; }
10946if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10947  $as_echo_n "(cached) " >&6
10948else
10949  ac_check_lib_save_LIBS=$LIBS
10950LIBS="-ldl  $LIBS"
10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h.  */
10953
10954/* Override any GCC internal prototype to avoid an error.
10955   Use char because int might match the return type of a GCC
10956   builtin and then its argument prototype would still apply.  */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char dlopen ();
10961int
10962main ()
10963{
10964return dlopen ();
10965  ;
10966  return 0;
10967}
10968_ACEOF
10969if ac_fn_c_try_link "$LINENO"; then :
10970  ac_cv_lib_dl_dlopen=yes
10971else
10972  ac_cv_lib_dl_dlopen=no
10973fi
10974rm -f core conftest.err conftest.$ac_objext \
10975    conftest$ac_exeext conftest.$ac_ext
10976LIBS=$ac_check_lib_save_LIBS
10977fi
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10979$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10980if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10981  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10982else
10983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10984$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10985if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10986  $as_echo_n "(cached) " >&6
10987else
10988  ac_check_lib_save_LIBS=$LIBS
10989LIBS="-lsvld  $LIBS"
10990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991/* end confdefs.h.  */
10992
10993/* Override any GCC internal prototype to avoid an error.
10994   Use char because int might match the return type of a GCC
10995   builtin and then its argument prototype would still apply.  */
10996#ifdef __cplusplus
10997extern "C"
10998#endif
10999char dlopen ();
11000int
11001main ()
11002{
11003return dlopen ();
11004  ;
11005  return 0;
11006}
11007_ACEOF
11008if ac_fn_c_try_link "$LINENO"; then :
11009  ac_cv_lib_svld_dlopen=yes
11010else
11011  ac_cv_lib_svld_dlopen=no
11012fi
11013rm -f core conftest.err conftest.$ac_objext \
11014    conftest$ac_exeext conftest.$ac_ext
11015LIBS=$ac_check_lib_save_LIBS
11016fi
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11018$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11019if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11020  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11021else
11022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11023$as_echo_n "checking for dld_link in -ldld... " >&6; }
11024if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11025  $as_echo_n "(cached) " >&6
11026else
11027  ac_check_lib_save_LIBS=$LIBS
11028LIBS="-ldld  $LIBS"
11029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h.  */
11031
11032/* Override any GCC internal prototype to avoid an error.
11033   Use char because int might match the return type of a GCC
11034   builtin and then its argument prototype would still apply.  */
11035#ifdef __cplusplus
11036extern "C"
11037#endif
11038char dld_link ();
11039int
11040main ()
11041{
11042return dld_link ();
11043  ;
11044  return 0;
11045}
11046_ACEOF
11047if ac_fn_c_try_link "$LINENO"; then :
11048  ac_cv_lib_dld_dld_link=yes
11049else
11050  ac_cv_lib_dld_dld_link=no
11051fi
11052rm -f core conftest.err conftest.$ac_objext \
11053    conftest$ac_exeext conftest.$ac_ext
11054LIBS=$ac_check_lib_save_LIBS
11055fi
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11057$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11058if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11059  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11060fi
11061
11062
11063fi
11064
11065
11066fi
11067
11068
11069fi
11070
11071
11072fi
11073
11074
11075fi
11076
11077    ;;
11078  esac
11079
11080  if test "x$lt_cv_dlopen" != xno; then
11081    enable_dlopen=yes
11082  else
11083    enable_dlopen=no
11084  fi
11085
11086  case $lt_cv_dlopen in
11087  dlopen)
11088    save_CPPFLAGS="$CPPFLAGS"
11089    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11090
11091    save_LDFLAGS="$LDFLAGS"
11092    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11093
11094    save_LIBS="$LIBS"
11095    LIBS="$lt_cv_dlopen_libs $LIBS"
11096
11097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11098$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11099if test "${lt_cv_dlopen_self+set}" = set; then :
11100  $as_echo_n "(cached) " >&6
11101else
11102  	  if test "$cross_compiling" = yes; then :
11103  lt_cv_dlopen_self=cross
11104else
11105  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11106  lt_status=$lt_dlunknown
11107  cat > conftest.$ac_ext <<_LT_EOF
11108#line 11108 "configure"
11109#include "confdefs.h"
11110
11111#if HAVE_DLFCN_H
11112#include <dlfcn.h>
11113#endif
11114
11115#include <stdio.h>
11116
11117#ifdef RTLD_GLOBAL
11118#  define LT_DLGLOBAL		RTLD_GLOBAL
11119#else
11120#  ifdef DL_GLOBAL
11121#    define LT_DLGLOBAL		DL_GLOBAL
11122#  else
11123#    define LT_DLGLOBAL		0
11124#  endif
11125#endif
11126
11127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11128   find out it does not work in some platform. */
11129#ifndef LT_DLLAZY_OR_NOW
11130#  ifdef RTLD_LAZY
11131#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11132#  else
11133#    ifdef DL_LAZY
11134#      define LT_DLLAZY_OR_NOW		DL_LAZY
11135#    else
11136#      ifdef RTLD_NOW
11137#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11138#      else
11139#        ifdef DL_NOW
11140#          define LT_DLLAZY_OR_NOW	DL_NOW
11141#        else
11142#          define LT_DLLAZY_OR_NOW	0
11143#        endif
11144#      endif
11145#    endif
11146#  endif
11147#endif
11148
11149/* When -fvisbility=hidden is used, assume the code has been annotated
11150   correspondingly for the symbols needed.  */
11151#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11152void fnord () __attribute__((visibility("default")));
11153#endif
11154
11155void fnord () { int i=42; }
11156int main ()
11157{
11158  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11159  int status = $lt_dlunknown;
11160
11161  if (self)
11162    {
11163      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11164      else
11165        {
11166	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11167          else puts (dlerror ());
11168	}
11169      /* dlclose (self); */
11170    }
11171  else
11172    puts (dlerror ());
11173
11174  return status;
11175}
11176_LT_EOF
11177  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11178  (eval $ac_link) 2>&5
11179  ac_status=$?
11180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11181  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11182    (./conftest; exit; ) >&5 2>/dev/null
11183    lt_status=$?
11184    case x$lt_status in
11185      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11186      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11187      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11188    esac
11189  else :
11190    # compilation failed
11191    lt_cv_dlopen_self=no
11192  fi
11193fi
11194rm -fr conftest*
11195
11196
11197fi
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11199$as_echo "$lt_cv_dlopen_self" >&6; }
11200
11201    if test "x$lt_cv_dlopen_self" = xyes; then
11202      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11203      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11204$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11205if test "${lt_cv_dlopen_self_static+set}" = set; then :
11206  $as_echo_n "(cached) " >&6
11207else
11208  	  if test "$cross_compiling" = yes; then :
11209  lt_cv_dlopen_self_static=cross
11210else
11211  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11212  lt_status=$lt_dlunknown
11213  cat > conftest.$ac_ext <<_LT_EOF
11214#line 11214 "configure"
11215#include "confdefs.h"
11216
11217#if HAVE_DLFCN_H
11218#include <dlfcn.h>
11219#endif
11220
11221#include <stdio.h>
11222
11223#ifdef RTLD_GLOBAL
11224#  define LT_DLGLOBAL		RTLD_GLOBAL
11225#else
11226#  ifdef DL_GLOBAL
11227#    define LT_DLGLOBAL		DL_GLOBAL
11228#  else
11229#    define LT_DLGLOBAL		0
11230#  endif
11231#endif
11232
11233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11234   find out it does not work in some platform. */
11235#ifndef LT_DLLAZY_OR_NOW
11236#  ifdef RTLD_LAZY
11237#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11238#  else
11239#    ifdef DL_LAZY
11240#      define LT_DLLAZY_OR_NOW		DL_LAZY
11241#    else
11242#      ifdef RTLD_NOW
11243#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11244#      else
11245#        ifdef DL_NOW
11246#          define LT_DLLAZY_OR_NOW	DL_NOW
11247#        else
11248#          define LT_DLLAZY_OR_NOW	0
11249#        endif
11250#      endif
11251#    endif
11252#  endif
11253#endif
11254
11255/* When -fvisbility=hidden is used, assume the code has been annotated
11256   correspondingly for the symbols needed.  */
11257#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11258void fnord () __attribute__((visibility("default")));
11259#endif
11260
11261void fnord () { int i=42; }
11262int main ()
11263{
11264  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11265  int status = $lt_dlunknown;
11266
11267  if (self)
11268    {
11269      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11270      else
11271        {
11272	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11273          else puts (dlerror ());
11274	}
11275      /* dlclose (self); */
11276    }
11277  else
11278    puts (dlerror ());
11279
11280  return status;
11281}
11282_LT_EOF
11283  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11284  (eval $ac_link) 2>&5
11285  ac_status=$?
11286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11288    (./conftest; exit; ) >&5 2>/dev/null
11289    lt_status=$?
11290    case x$lt_status in
11291      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11292      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11293      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11294    esac
11295  else :
11296    # compilation failed
11297    lt_cv_dlopen_self_static=no
11298  fi
11299fi
11300rm -fr conftest*
11301
11302
11303fi
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11305$as_echo "$lt_cv_dlopen_self_static" >&6; }
11306    fi
11307
11308    CPPFLAGS="$save_CPPFLAGS"
11309    LDFLAGS="$save_LDFLAGS"
11310    LIBS="$save_LIBS"
11311    ;;
11312  esac
11313
11314  case $lt_cv_dlopen_self in
11315  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11316  *) enable_dlopen_self=unknown ;;
11317  esac
11318
11319  case $lt_cv_dlopen_self_static in
11320  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11321  *) enable_dlopen_self_static=unknown ;;
11322  esac
11323fi
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341striplib=
11342old_striplib=
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11344$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11345if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11346  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11347  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11349$as_echo "yes" >&6; }
11350else
11351# FIXME - insert some real tests, host_os isn't really good enough
11352  case $host_os in
11353  darwin*)
11354    if test -n "$STRIP" ; then
11355      striplib="$STRIP -x"
11356      old_striplib="$STRIP -S"
11357      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358$as_echo "yes" >&6; }
11359    else
11360      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361$as_echo "no" >&6; }
11362    fi
11363    ;;
11364  *)
11365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
11367    ;;
11368  esac
11369fi
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382  # Report which library types will actually be built
11383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11384$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11386$as_echo "$can_build_shared" >&6; }
11387
11388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11389$as_echo_n "checking whether to build shared libraries... " >&6; }
11390  test "$can_build_shared" = "no" && enable_shared=no
11391
11392  # On AIX, shared libraries and static libraries use the same namespace, and
11393  # are all built from PIC.
11394  case $host_os in
11395  aix3*)
11396    test "$enable_shared" = yes && enable_static=no
11397    if test -n "$RANLIB"; then
11398      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11399      postinstall_cmds='$RANLIB $lib'
11400    fi
11401    ;;
11402
11403  aix[4-9]*)
11404    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11405      test "$enable_shared" = yes && enable_static=no
11406    fi
11407    ;;
11408  esac
11409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11410$as_echo "$enable_shared" >&6; }
11411
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11413$as_echo_n "checking whether to build static libraries... " >&6; }
11414  # Make sure either enable_shared or enable_static is yes.
11415  test "$enable_shared" = yes || enable_static=yes
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11417$as_echo "$enable_static" >&6; }
11418
11419
11420
11421
11422fi
11423ac_ext=c
11424ac_cpp='$CPP $CPPFLAGS'
11425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
11429CC="$lt_save_CC"
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443# Source file extension for Go test sources.
11444ac_ext=go
11445
11446# Object file extension for compiled Go test sources.
11447objext=o
11448objext_GO=$objext
11449
11450# Code to be used in simple compile tests
11451lt_simple_compile_test_code="package main; func main() { }"
11452
11453# Code to be used in simple link tests
11454lt_simple_link_test_code='package main; func main() { }'
11455
11456# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11457
11458
11459
11460
11461
11462
11463# If no C compiler was specified, use CC.
11464LTCC=${LTCC-"$CC"}
11465
11466# If no C compiler flags were specified, use CFLAGS.
11467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11468
11469# Allow CC to be a program name with arguments.
11470compiler=$CC
11471
11472
11473# save warnings/boilerplate of simple test code
11474ac_outfile=conftest.$ac_objext
11475echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11476eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11477_lt_compiler_boilerplate=`cat conftest.err`
11478$RM conftest*
11479
11480ac_outfile=conftest.$ac_objext
11481echo "$lt_simple_link_test_code" >conftest.$ac_ext
11482eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11483_lt_linker_boilerplate=`cat conftest.err`
11484$RM -r conftest*
11485
11486
11487# Allow CC to be a program name with arguments.
11488lt_save_CC="$CC"
11489lt_save_GCC="$GCC"
11490GCC=yes
11491CC=${GOC-"gccgo"}
11492compiler=$CC
11493compiler_GO=$CC
11494LD_GO="$LD"
11495for cc_temp in $compiler""; do
11496  case $cc_temp in
11497    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11498    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11499    \-*) ;;
11500    *) break;;
11501  esac
11502done
11503cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11504
11505
11506# Go did not exist at the time GCC didn't implicitly link libc in.
11507archive_cmds_need_lc_GO=no
11508
11509old_archive_cmds_GO=$old_archive_cmds
11510
11511## CAVEAT EMPTOR:
11512## There is no encapsulation within the following macros, do not change
11513## the running order or otherwise move them around unless you know exactly
11514## what you are doing...
11515if test -n "$compiler"; then
11516
11517lt_prog_compiler_no_builtin_flag_GO=
11518
11519if test "$GCC" = yes; then
11520  case $cc_basename in
11521  nvcc*)
11522    lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11523  *)
11524    lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11525  esac
11526
11527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11528$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11529if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11530  $as_echo_n "(cached) " >&6
11531else
11532  lt_cv_prog_compiler_rtti_exceptions=no
11533   ac_outfile=conftest.$ac_objext
11534   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11535   lt_compiler_flag="-fno-rtti -fno-exceptions"
11536   # Insert the option either (1) after the last *FLAGS variable, or
11537   # (2) before a word containing "conftest.", or (3) at the end.
11538   # Note that $ac_compile itself does not contain backslashes and begins
11539   # with a dollar sign (not a hyphen), so the echo should work correctly.
11540   # The option is referenced via a variable to avoid confusing sed.
11541   lt_compile=`echo "$ac_compile" | $SED \
11542   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11543   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11544   -e 's:$: $lt_compiler_flag:'`
11545   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11546   (eval "$lt_compile" 2>conftest.err)
11547   ac_status=$?
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   if (exit $ac_status) && test -s "$ac_outfile"; then
11551     # The compiler can only warn and ignore the option if not recognized
11552     # So say no if there are warnings other than the usual output.
11553     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11554     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11555     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11556       lt_cv_prog_compiler_rtti_exceptions=yes
11557     fi
11558   fi
11559   $RM conftest*
11560
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11563$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11564
11565if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11566    lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11567else
11568    :
11569fi
11570
11571fi
11572
11573
11574
11575  lt_prog_compiler_wl_GO=
11576lt_prog_compiler_pic_GO=
11577lt_prog_compiler_static_GO=
11578
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11580$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11581
11582  if test "$GCC" = yes; then
11583    lt_prog_compiler_wl_GO='-Wl,'
11584    lt_prog_compiler_static_GO='-static'
11585
11586    case $host_os in
11587      aix*)
11588      # All AIX code is PIC.
11589      if test "$host_cpu" = ia64; then
11590	# AIX 5 now supports IA64 processor
11591	lt_prog_compiler_static_GO='-Bstatic'
11592      fi
11593      ;;
11594
11595    amigaos*)
11596      case $host_cpu in
11597      powerpc)
11598            # see comment about AmigaOS4 .so support
11599            lt_prog_compiler_pic_GO='-fPIC'
11600        ;;
11601      m68k)
11602            # FIXME: we need at least 68020 code to build shared libraries, but
11603            # adding the `-m68020' flag to GCC prevents building anything better,
11604            # like `-m68040'.
11605            lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11606        ;;
11607      esac
11608      ;;
11609
11610    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11611      # PIC is the default for these OSes.
11612      ;;
11613
11614    mingw* | cygwin* | pw32* | os2* | cegcc*)
11615      # This hack is so that the source file can tell whether it is being
11616      # built for inclusion in a dll (and should export symbols for example).
11617      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11618      # (--disable-auto-import) libraries
11619      lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11620      ;;
11621
11622    darwin* | rhapsody*)
11623      # PIC is the default on this platform
11624      # Common symbols not allowed in MH_DYLIB files
11625      lt_prog_compiler_pic_GO='-fno-common'
11626      ;;
11627
11628    haiku*)
11629      # PIC is the default for Haiku.
11630      # The "-static" flag exists, but is broken.
11631      lt_prog_compiler_static_GO=
11632      ;;
11633
11634    hpux*)
11635      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11636      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11637      # sets the default TLS model and affects inlining.
11638      case $host_cpu in
11639      hppa*64*)
11640	# +Z the default
11641	;;
11642      *)
11643	lt_prog_compiler_pic_GO='-fPIC'
11644	;;
11645      esac
11646      ;;
11647
11648    interix[3-9]*)
11649      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11650      # Instead, we relocate shared libraries at runtime.
11651      ;;
11652
11653    msdosdjgpp*)
11654      # Just because we use GCC doesn't mean we suddenly get shared libraries
11655      # on systems that don't support them.
11656      lt_prog_compiler_can_build_shared_GO=no
11657      enable_shared=no
11658      ;;
11659
11660    *nto* | *qnx*)
11661      # QNX uses GNU C++, but need to define -shared option too, otherwise
11662      # it will coredump.
11663      lt_prog_compiler_pic_GO='-fPIC -shared'
11664      ;;
11665
11666    sysv4*MP*)
11667      if test -d /usr/nec; then
11668	lt_prog_compiler_pic_GO=-Kconform_pic
11669      fi
11670      ;;
11671
11672    *)
11673      lt_prog_compiler_pic_GO='-fPIC'
11674      ;;
11675    esac
11676
11677    case $cc_basename in
11678    nvcc*) # Cuda Compiler Driver 2.2
11679      lt_prog_compiler_wl_GO='-Xlinker '
11680      lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11681      ;;
11682    esac
11683  else
11684    # PORTME Check for flag to pass linker flags through the system compiler.
11685    case $host_os in
11686    aix*)
11687      lt_prog_compiler_wl_GO='-Wl,'
11688      if test "$host_cpu" = ia64; then
11689	# AIX 5 now supports IA64 processor
11690	lt_prog_compiler_static_GO='-Bstatic'
11691      else
11692	lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11693      fi
11694      ;;
11695
11696    mingw* | cygwin* | pw32* | os2* | cegcc*)
11697      # This hack is so that the source file can tell whether it is being
11698      # built for inclusion in a dll (and should export symbols for example).
11699      lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11700      ;;
11701
11702    hpux9* | hpux10* | hpux11*)
11703      lt_prog_compiler_wl_GO='-Wl,'
11704      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11705      # not for PA HP-UX.
11706      case $host_cpu in
11707      hppa*64*|ia64*)
11708	# +Z the default
11709	;;
11710      *)
11711	lt_prog_compiler_pic_GO='+Z'
11712	;;
11713      esac
11714      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11715      lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11716      ;;
11717
11718    irix5* | irix6* | nonstopux*)
11719      lt_prog_compiler_wl_GO='-Wl,'
11720      # PIC (with -KPIC) is the default.
11721      lt_prog_compiler_static_GO='-non_shared'
11722      ;;
11723
11724    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11725      case $cc_basename in
11726      # old Intel for x86_64 which still supported -KPIC.
11727      ecc*)
11728	lt_prog_compiler_wl_GO='-Wl,'
11729	lt_prog_compiler_pic_GO='-KPIC'
11730	lt_prog_compiler_static_GO='-static'
11731        ;;
11732      # icc used to be incompatible with GCC.
11733      # ICC 10 doesn't accept -KPIC any more.
11734      icc* | ifort*)
11735	lt_prog_compiler_wl_GO='-Wl,'
11736	lt_prog_compiler_pic_GO='-fPIC'
11737	lt_prog_compiler_static_GO='-static'
11738        ;;
11739      # Lahey Fortran 8.1.
11740      lf95*)
11741	lt_prog_compiler_wl_GO='-Wl,'
11742	lt_prog_compiler_pic_GO='--shared'
11743	lt_prog_compiler_static_GO='--static'
11744	;;
11745      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11746        # Portland Group compilers (*not* the Pentium gcc compiler,
11747	# which looks to be a dead project)
11748	lt_prog_compiler_wl_GO='-Wl,'
11749	lt_prog_compiler_pic_GO='-fpic'
11750	lt_prog_compiler_static_GO='-Bstatic'
11751        ;;
11752      ccc*)
11753        lt_prog_compiler_wl_GO='-Wl,'
11754        # All Alpha code is PIC.
11755        lt_prog_compiler_static_GO='-non_shared'
11756        ;;
11757      xl* | bgxl* | bgf* | mpixl*)
11758	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11759	lt_prog_compiler_wl_GO='-Wl,'
11760	lt_prog_compiler_pic_GO='-qpic'
11761	lt_prog_compiler_static_GO='-qstaticlink'
11762	;;
11763      *)
11764	case `$CC -V 2>&1 | sed 5q` in
11765	*Sun\ F* | *Sun*Fortran*)
11766	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11767	  lt_prog_compiler_pic_GO='-KPIC'
11768	  lt_prog_compiler_static_GO='-Bstatic'
11769	  lt_prog_compiler_wl_GO=''
11770	  ;;
11771	*Sun\ C*)
11772	  # Sun C 5.9
11773	  lt_prog_compiler_pic_GO='-KPIC'
11774	  lt_prog_compiler_static_GO='-Bstatic'
11775	  lt_prog_compiler_wl_GO='-Wl,'
11776	  ;;
11777	esac
11778	;;
11779      esac
11780      ;;
11781
11782    newsos6)
11783      lt_prog_compiler_pic_GO='-KPIC'
11784      lt_prog_compiler_static_GO='-Bstatic'
11785      ;;
11786
11787    *nto* | *qnx*)
11788      # QNX uses GNU C++, but need to define -shared option too, otherwise
11789      # it will coredump.
11790      lt_prog_compiler_pic_GO='-fPIC -shared'
11791      ;;
11792
11793    osf3* | osf4* | osf5*)
11794      lt_prog_compiler_wl_GO='-Wl,'
11795      # All OSF/1 code is PIC.
11796      lt_prog_compiler_static_GO='-non_shared'
11797      ;;
11798
11799    rdos*)
11800      lt_prog_compiler_static_GO='-non_shared'
11801      ;;
11802
11803    solaris*)
11804      lt_prog_compiler_pic_GO='-KPIC'
11805      lt_prog_compiler_static_GO='-Bstatic'
11806      case $cc_basename in
11807      f77* | f90* | f95*)
11808	lt_prog_compiler_wl_GO='-Qoption ld ';;
11809      *)
11810	lt_prog_compiler_wl_GO='-Wl,';;
11811      esac
11812      ;;
11813
11814    sunos4*)
11815      lt_prog_compiler_wl_GO='-Qoption ld '
11816      lt_prog_compiler_pic_GO='-PIC'
11817      lt_prog_compiler_static_GO='-Bstatic'
11818      ;;
11819
11820    sysv4 | sysv4.2uw2* | sysv4.3*)
11821      lt_prog_compiler_wl_GO='-Wl,'
11822      lt_prog_compiler_pic_GO='-KPIC'
11823      lt_prog_compiler_static_GO='-Bstatic'
11824      ;;
11825
11826    sysv4*MP*)
11827      if test -d /usr/nec ;then
11828	lt_prog_compiler_pic_GO='-Kconform_pic'
11829	lt_prog_compiler_static_GO='-Bstatic'
11830      fi
11831      ;;
11832
11833    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11834      lt_prog_compiler_wl_GO='-Wl,'
11835      lt_prog_compiler_pic_GO='-KPIC'
11836      lt_prog_compiler_static_GO='-Bstatic'
11837      ;;
11838
11839    unicos*)
11840      lt_prog_compiler_wl_GO='-Wl,'
11841      lt_prog_compiler_can_build_shared_GO=no
11842      ;;
11843
11844    uts4*)
11845      lt_prog_compiler_pic_GO='-pic'
11846      lt_prog_compiler_static_GO='-Bstatic'
11847      ;;
11848
11849    *)
11850      lt_prog_compiler_can_build_shared_GO=no
11851      ;;
11852    esac
11853  fi
11854
11855case $host_os in
11856  # For platforms which do not support PIC, -DPIC is meaningless:
11857  *djgpp*)
11858    lt_prog_compiler_pic_GO=
11859    ;;
11860  *)
11861    lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11862    ;;
11863esac
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11865$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11866
11867
11868
11869#
11870# Check to make sure the PIC flag actually works.
11871#
11872if test -n "$lt_prog_compiler_pic_GO"; then
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11874$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11875if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11876  $as_echo_n "(cached) " >&6
11877else
11878  lt_cv_prog_compiler_pic_works_GO=no
11879   ac_outfile=conftest.$ac_objext
11880   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881   lt_compiler_flag="$lt_prog_compiler_pic_GO"
11882   # Insert the option either (1) after the last *FLAGS variable, or
11883   # (2) before a word containing "conftest.", or (3) at the end.
11884   # Note that $ac_compile itself does not contain backslashes and begins
11885   # with a dollar sign (not a hyphen), so the echo should work correctly.
11886   # The option is referenced via a variable to avoid confusing sed.
11887   lt_compile=`echo "$ac_compile" | $SED \
11888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890   -e 's:$: $lt_compiler_flag:'`
11891   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11892   (eval "$lt_compile" 2>conftest.err)
11893   ac_status=$?
11894   cat conftest.err >&5
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   if (exit $ac_status) && test -s "$ac_outfile"; then
11897     # The compiler can only warn and ignore the option if not recognized
11898     # So say no if there are warnings other than the usual output.
11899     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11900     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11901     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11902       lt_cv_prog_compiler_pic_works_GO=yes
11903     fi
11904   fi
11905   $RM conftest*
11906
11907fi
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11909$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11910
11911if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11912    case $lt_prog_compiler_pic_GO in
11913     "" | " "*) ;;
11914     *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11915     esac
11916else
11917    lt_prog_compiler_pic_GO=
11918     lt_prog_compiler_can_build_shared_GO=no
11919fi
11920
11921fi
11922
11923
11924
11925#
11926# Check to make sure the static flag actually works.
11927#
11928wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11930$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11931if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  lt_cv_prog_compiler_static_works_GO=no
11935   save_LDFLAGS="$LDFLAGS"
11936   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11937   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11938   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11939     # The linker can only warn and ignore the option if not recognized
11940     # So say no if there are warnings
11941     if test -s conftest.err; then
11942       # Append any errors to the config.log.
11943       cat conftest.err 1>&5
11944       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11945       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11946       if diff conftest.exp conftest.er2 >/dev/null; then
11947         lt_cv_prog_compiler_static_works_GO=yes
11948       fi
11949     else
11950       lt_cv_prog_compiler_static_works_GO=yes
11951     fi
11952   fi
11953   $RM -r conftest*
11954   LDFLAGS="$save_LDFLAGS"
11955
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11958$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11959
11960if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11961    :
11962else
11963    lt_prog_compiler_static_GO=
11964fi
11965
11966
11967
11968
11969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11971if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974  lt_cv_prog_compiler_c_o_GO=no
11975   $RM -r conftest 2>/dev/null
11976   mkdir conftest
11977   cd conftest
11978   mkdir out
11979   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11980
11981   lt_compiler_flag="-o out/conftest2.$ac_objext"
11982   # Insert the option either (1) after the last *FLAGS variable, or
11983   # (2) before a word containing "conftest.", or (3) at the end.
11984   # Note that $ac_compile itself does not contain backslashes and begins
11985   # with a dollar sign (not a hyphen), so the echo should work correctly.
11986   lt_compile=`echo "$ac_compile" | $SED \
11987   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11988   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11989   -e 's:$: $lt_compiler_flag:'`
11990   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11991   (eval "$lt_compile" 2>out/conftest.err)
11992   ac_status=$?
11993   cat out/conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11996   then
11997     # The compiler can only warn and ignore the option if not recognized
11998     # So say no if there are warnings
11999     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12000     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12001     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12002       lt_cv_prog_compiler_c_o_GO=yes
12003     fi
12004   fi
12005   chmod u+w . 2>&5
12006   $RM conftest*
12007   # SGI C++ compiler will create directory out/ii_files/ for
12008   # template instantiation
12009   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12010   $RM out/* && rmdir out
12011   cd ..
12012   $RM -r conftest
12013   $RM conftest*
12014
12015fi
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12017$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12018
12019
12020
12021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12022$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12023if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12024  $as_echo_n "(cached) " >&6
12025else
12026  lt_cv_prog_compiler_c_o_GO=no
12027   $RM -r conftest 2>/dev/null
12028   mkdir conftest
12029   cd conftest
12030   mkdir out
12031   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12032
12033   lt_compiler_flag="-o out/conftest2.$ac_objext"
12034   # Insert the option either (1) after the last *FLAGS variable, or
12035   # (2) before a word containing "conftest.", or (3) at the end.
12036   # Note that $ac_compile itself does not contain backslashes and begins
12037   # with a dollar sign (not a hyphen), so the echo should work correctly.
12038   lt_compile=`echo "$ac_compile" | $SED \
12039   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12040   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12041   -e 's:$: $lt_compiler_flag:'`
12042   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12043   (eval "$lt_compile" 2>out/conftest.err)
12044   ac_status=$?
12045   cat out/conftest.err >&5
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12048   then
12049     # The compiler can only warn and ignore the option if not recognized
12050     # So say no if there are warnings
12051     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12052     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12053     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12054       lt_cv_prog_compiler_c_o_GO=yes
12055     fi
12056   fi
12057   chmod u+w . 2>&5
12058   $RM conftest*
12059   # SGI C++ compiler will create directory out/ii_files/ for
12060   # template instantiation
12061   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12062   $RM out/* && rmdir out
12063   cd ..
12064   $RM -r conftest
12065   $RM conftest*
12066
12067fi
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12069$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12070
12071
12072
12073
12074hard_links="nottested"
12075if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12076  # do not overwrite the value of need_locks provided by the user
12077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12078$as_echo_n "checking if we can lock with hard links... " >&6; }
12079  hard_links=yes
12080  $RM conftest*
12081  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12082  touch conftest.a
12083  ln conftest.a conftest.b 2>&5 || hard_links=no
12084  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12086$as_echo "$hard_links" >&6; }
12087  if test "$hard_links" = no; then
12088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12089$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12090    need_locks=warn
12091  fi
12092else
12093  need_locks=no
12094fi
12095
12096
12097
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12099$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12100
12101  runpath_var=
12102  allow_undefined_flag_GO=
12103  always_export_symbols_GO=no
12104  archive_cmds_GO=
12105  archive_expsym_cmds_GO=
12106  compiler_needs_object_GO=no
12107  enable_shared_with_static_runtimes_GO=no
12108  export_dynamic_flag_spec_GO=
12109  export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12110  hardcode_automatic_GO=no
12111  hardcode_direct_GO=no
12112  hardcode_direct_absolute_GO=no
12113  hardcode_libdir_flag_spec_GO=
12114  hardcode_libdir_flag_spec_ld_GO=
12115  hardcode_libdir_separator_GO=
12116  hardcode_minus_L_GO=no
12117  hardcode_shlibpath_var_GO=unsupported
12118  inherit_rpath_GO=no
12119  link_all_deplibs_GO=unknown
12120  module_cmds_GO=
12121  module_expsym_cmds_GO=
12122  old_archive_from_new_cmds_GO=
12123  old_archive_from_expsyms_cmds_GO=
12124  thread_safe_flag_spec_GO=
12125  whole_archive_flag_spec_GO=
12126  # include_expsyms should be a list of space-separated symbols to be *always*
12127  # included in the symbol list
12128  include_expsyms_GO=
12129  # exclude_expsyms can be an extended regexp of symbols to exclude
12130  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12131  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12132  # as well as any symbol that contains `d'.
12133  exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12134  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12135  # platforms (ab)use it in PIC code, but their linkers get confused if
12136  # the symbol is explicitly referenced.  Since portable code cannot
12137  # rely on this symbol name, it's probably fine to never include it in
12138  # preloaded symbol tables.
12139  # Exclude shared library initialization/finalization symbols.
12140  extract_expsyms_cmds=
12141
12142  case $host_os in
12143  cygwin* | mingw* | pw32* | cegcc*)
12144    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12145    # When not using gcc, we currently assume that we are using
12146    # Microsoft Visual C++.
12147    if test "$GCC" != yes; then
12148      with_gnu_ld=no
12149    fi
12150    ;;
12151  interix*)
12152    # we just hope/assume this is gcc and not c89 (= MSVC++)
12153    with_gnu_ld=yes
12154    ;;
12155  openbsd*)
12156    with_gnu_ld=no
12157    ;;
12158  esac
12159
12160  ld_shlibs_GO=yes
12161
12162  # On some targets, GNU ld is compatible enough with the native linker
12163  # that we're better off using the native interface for both.
12164  lt_use_gnu_ld_interface=no
12165  if test "$with_gnu_ld" = yes; then
12166    case $host_os in
12167      aix*)
12168	# The AIX port of GNU ld has always aspired to compatibility
12169	# with the native linker.  However, as the warning in the GNU ld
12170	# block says, versions before 2.19.5* couldn't really create working
12171	# shared libraries, regardless of the interface used.
12172	case `$LD -v 2>&1` in
12173	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12174	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12175	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12176	  *)
12177	    lt_use_gnu_ld_interface=yes
12178	    ;;
12179	esac
12180	;;
12181      *)
12182	lt_use_gnu_ld_interface=yes
12183	;;
12184    esac
12185  fi
12186
12187  if test "$lt_use_gnu_ld_interface" = yes; then
12188    # If archive_cmds runs LD, not CC, wlarc should be empty
12189    wlarc='${wl}'
12190
12191    # Set some defaults for GNU ld with shared library support. These
12192    # are reset later if shared libraries are not supported. Putting them
12193    # here allows them to be overridden if necessary.
12194    runpath_var=LD_RUN_PATH
12195    hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12196    export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12197    # ancient GNU ld didn't support --whole-archive et. al.
12198    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12199      whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12200    else
12201      whole_archive_flag_spec_GO=
12202    fi
12203    supports_anon_versioning=no
12204    case `$LD -v 2>&1` in
12205      *GNU\ gold*) supports_anon_versioning=yes ;;
12206      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12207      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12208      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12209      *\ 2.11.*) ;; # other 2.11 versions
12210      *) supports_anon_versioning=yes ;;
12211    esac
12212
12213    # See if GNU ld supports shared libraries.
12214    case $host_os in
12215    aix[3-9]*)
12216      # On AIX/PPC, the GNU linker is very broken
12217      if test "$host_cpu" != ia64; then
12218	ld_shlibs_GO=no
12219	cat <<_LT_EOF 1>&2
12220
12221*** Warning: the GNU linker, at least up to release 2.19, is reported
12222*** to be unable to reliably create shared libraries on AIX.
12223*** Therefore, libtool is disabling shared libraries support.  If you
12224*** really care for shared libraries, you may want to install binutils
12225*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12226*** You will then need to restart the configuration process.
12227
12228_LT_EOF
12229      fi
12230      ;;
12231
12232    amigaos*)
12233      case $host_cpu in
12234      powerpc)
12235            # see comment about AmigaOS4 .so support
12236            archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237            archive_expsym_cmds_GO=''
12238        ;;
12239      m68k)
12240            archive_cmds_GO='$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)'
12241            hardcode_libdir_flag_spec_GO='-L$libdir'
12242            hardcode_minus_L_GO=yes
12243        ;;
12244      esac
12245      ;;
12246
12247    beos*)
12248      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249	allow_undefined_flag_GO=unsupported
12250	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251	# support --undefined.  This deserves some investigation.  FIXME
12252	archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253      else
12254	ld_shlibs_GO=no
12255      fi
12256      ;;
12257
12258    cygwin* | mingw* | pw32* | cegcc*)
12259      # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12260      # as there is no search path for DLLs.
12261      hardcode_libdir_flag_spec_GO='-L$libdir'
12262      export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12263      allow_undefined_flag_GO=unsupported
12264      always_export_symbols_GO=no
12265      enable_shared_with_static_runtimes_GO=yes
12266      export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12267
12268      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12269        archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12270	# If the export-symbols file already is a .def file (1st line
12271	# is EXPORTS), use it as is; otherwise, prepend...
12272	archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12273	  cp $export_symbols $output_objdir/$soname.def;
12274	else
12275	  echo EXPORTS > $output_objdir/$soname.def;
12276	  cat $export_symbols >> $output_objdir/$soname.def;
12277	fi~
12278	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12279      else
12280	ld_shlibs_GO=no
12281      fi
12282      ;;
12283
12284    haiku*)
12285      archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286      link_all_deplibs_GO=yes
12287      ;;
12288
12289    interix[3-9]*)
12290      hardcode_direct_GO=no
12291      hardcode_shlibpath_var_GO=no
12292      hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12293      export_dynamic_flag_spec_GO='${wl}-E'
12294      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12295      # Instead, shared libraries are loaded at an image base (0x10000000 by
12296      # default) and relocated if they conflict, which is a slow very memory
12297      # consuming and fragmenting process.  To avoid this, we pick a random,
12298      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12299      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12300      archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12301      archive_expsym_cmds_GO='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'
12302      ;;
12303
12304    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12305      tmp_diet=no
12306      if test "$host_os" = linux-dietlibc; then
12307	case $cc_basename in
12308	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12309	esac
12310      fi
12311      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12312	 && test "$tmp_diet" = no
12313      then
12314	tmp_addflag=
12315	tmp_sharedflag='-shared'
12316	case $cc_basename,$host_cpu in
12317        pgcc*)				# Portland Group C compiler
12318	  whole_archive_flag_spec_GO='${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'
12319	  tmp_addflag=' $pic_flag'
12320	  ;;
12321	pgf77* | pgf90* | pgf95* | pgfortran*)
12322					# Portland Group f77 and f90 compilers
12323	  whole_archive_flag_spec_GO='${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'
12324	  tmp_addflag=' $pic_flag -Mnomain' ;;
12325	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12326	  tmp_addflag=' -i_dynamic' ;;
12327	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12328	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12329	ifc* | ifort*)			# Intel Fortran compiler
12330	  tmp_addflag=' -nofor_main' ;;
12331	lf95*)				# Lahey Fortran 8.1
12332	  whole_archive_flag_spec_GO=
12333	  tmp_sharedflag='--shared' ;;
12334	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12335	  tmp_sharedflag='-qmkshrobj'
12336	  tmp_addflag= ;;
12337	nvcc*)	# Cuda Compiler Driver 2.2
12338	  whole_archive_flag_spec_GO='${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'
12339	  compiler_needs_object_GO=yes
12340	  ;;
12341	esac
12342	case `$CC -V 2>&1 | sed 5q` in
12343	*Sun\ C*)			# Sun C 5.9
12344	  whole_archive_flag_spec_GO='${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'
12345	  compiler_needs_object_GO=yes
12346	  tmp_sharedflag='-G' ;;
12347	*Sun\ F*)			# Sun Fortran 8.3
12348	  tmp_sharedflag='-G' ;;
12349	esac
12350	archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12351
12352        if test "x$supports_anon_versioning" = xyes; then
12353          archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12354	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12355	    echo "local: *; };" >> $output_objdir/$libname.ver~
12356	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12357        fi
12358
12359	case $cc_basename in
12360	xlf* | bgf* | bgxlf* | mpixlf*)
12361	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12362	  whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12363	  hardcode_libdir_flag_spec_GO=
12364	  hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12365	  archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12366	  if test "x$supports_anon_versioning" = xyes; then
12367	    archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12368	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12369	      echo "local: *; };" >> $output_objdir/$libname.ver~
12370	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12371	  fi
12372	  ;;
12373	esac
12374      else
12375        ld_shlibs_GO=no
12376      fi
12377      ;;
12378
12379    netbsd*)
12380      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12381	archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12382	wlarc=
12383      else
12384	archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12385	archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12386      fi
12387      ;;
12388
12389    solaris*)
12390      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12391	ld_shlibs_GO=no
12392	cat <<_LT_EOF 1>&2
12393
12394*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12395*** create shared libraries on Solaris systems.  Therefore, libtool
12396*** is disabling shared libraries support.  We urge you to upgrade GNU
12397*** binutils to release 2.9.1 or newer.  Another option is to modify
12398*** your PATH or compiler configuration so that the native linker is
12399*** used, and then restart.
12400
12401_LT_EOF
12402      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12403	archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404	archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405      else
12406	ld_shlibs_GO=no
12407      fi
12408      ;;
12409
12410    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12411      case `$LD -v 2>&1` in
12412        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12413	ld_shlibs_GO=no
12414	cat <<_LT_EOF 1>&2
12415
12416*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12417*** reliably create shared libraries on SCO systems.  Therefore, libtool
12418*** is disabling shared libraries support.  We urge you to upgrade GNU
12419*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12420*** your PATH or compiler configuration so that the native linker is
12421*** used, and then restart.
12422
12423_LT_EOF
12424	;;
12425	*)
12426	  # For security reasons, it is highly recommended that you always
12427	  # use absolute paths for naming shared libraries, and exclude the
12428	  # DT_RUNPATH tag from executables and libraries.  But doing so
12429	  # requires that you compile everything twice, which is a pain.
12430	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12431	    hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12432	    archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433	    archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12434	  else
12435	    ld_shlibs_GO=no
12436	  fi
12437	;;
12438      esac
12439      ;;
12440
12441    sunos4*)
12442      archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12443      wlarc=
12444      hardcode_direct_GO=yes
12445      hardcode_shlibpath_var_GO=no
12446      ;;
12447
12448    *)
12449      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12450	archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451	archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12452      else
12453	ld_shlibs_GO=no
12454      fi
12455      ;;
12456    esac
12457
12458    if test "$ld_shlibs_GO" = no; then
12459      runpath_var=
12460      hardcode_libdir_flag_spec_GO=
12461      export_dynamic_flag_spec_GO=
12462      whole_archive_flag_spec_GO=
12463    fi
12464  else
12465    # PORTME fill in a description of your system's linker (not GNU ld)
12466    case $host_os in
12467    aix3*)
12468      allow_undefined_flag_GO=unsupported
12469      always_export_symbols_GO=yes
12470      archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12471      # Note: this linker hardcodes the directories in LIBPATH if there
12472      # are no directories specified by -L.
12473      hardcode_minus_L_GO=yes
12474      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12475	# Neither direct hardcoding nor static linking is supported with a
12476	# broken collect2.
12477	hardcode_direct_GO=unsupported
12478      fi
12479      ;;
12480
12481    aix[4-9]*)
12482      if test "$host_cpu" = ia64; then
12483	# On IA64, the linker does run time linking by default, so we don't
12484	# have to do anything special.
12485	aix_use_runtimelinking=no
12486	exp_sym_flag='-Bexport'
12487	no_entry_flag=""
12488      else
12489	# If we're using GNU nm, then we don't want the "-C" option.
12490	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12491	# Also, AIX nm treats weak defined symbols like other global
12492	# defined symbols, whereas GNU nm marks them as "W".
12493	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12494	  export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12495	else
12496	  export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12497	fi
12498	aix_use_runtimelinking=no
12499
12500	# Test if we are trying to use run time linking or normal
12501	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12502	# need to do runtime linking.
12503	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12504	  for ld_flag in $LDFLAGS; do
12505	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12506	    aix_use_runtimelinking=yes
12507	    break
12508	  fi
12509	  done
12510	  ;;
12511	esac
12512
12513	exp_sym_flag='-bexport'
12514	no_entry_flag='-bnoentry'
12515      fi
12516
12517      # When large executables or shared objects are built, AIX ld can
12518      # have problems creating the table of contents.  If linking a library
12519      # or program results in "error TOC overflow" add -mminimal-toc to
12520      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12521      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12522
12523      archive_cmds_GO=''
12524      hardcode_direct_GO=yes
12525      hardcode_direct_absolute_GO=yes
12526      hardcode_libdir_separator_GO=':'
12527      link_all_deplibs_GO=yes
12528      file_list_spec_GO='${wl}-f,'
12529
12530      if test "$GCC" = yes; then
12531	case $host_os in aix4.[012]|aix4.[012].*)
12532	# We only want to do this on AIX 4.2 and lower, the check
12533	# below for broken collect2 doesn't work under 4.3+
12534	  collect2name=`${CC} -print-prog-name=collect2`
12535	  if test -f "$collect2name" &&
12536	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12537	  then
12538	  # We have reworked collect2
12539	  :
12540	  else
12541	  # We have old collect2
12542	  hardcode_direct_GO=unsupported
12543	  # It fails to find uninstalled libraries when the uninstalled
12544	  # path is not listed in the libpath.  Setting hardcode_minus_L
12545	  # to unsupported forces relinking
12546	  hardcode_minus_L_GO=yes
12547	  hardcode_libdir_flag_spec_GO='-L$libdir'
12548	  hardcode_libdir_separator_GO=
12549	  fi
12550	  ;;
12551	esac
12552	shared_flag='-shared'
12553	if test "$aix_use_runtimelinking" = yes; then
12554	  shared_flag="$shared_flag "'${wl}-G'
12555	fi
12556      else
12557	# not using gcc
12558	if test "$host_cpu" = ia64; then
12559	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12560	# chokes on -Wl,-G. The following line is correct:
12561	  shared_flag='-G'
12562	else
12563	  if test "$aix_use_runtimelinking" = yes; then
12564	    shared_flag='${wl}-G'
12565	  else
12566	    shared_flag='${wl}-bM:SRE'
12567	  fi
12568	fi
12569      fi
12570
12571      export_dynamic_flag_spec_GO='${wl}-bexpall'
12572      # It seems that -bexpall does not export symbols beginning with
12573      # underscore (_), so it is better to generate a list of symbols to export.
12574      always_export_symbols_GO=yes
12575      if test "$aix_use_runtimelinking" = yes; then
12576	# Warning - without using the other runtime loading flags (-brtl),
12577	# -berok will link without error, but may produce a broken library.
12578	allow_undefined_flag_GO='-berok'
12579        # Determine the default libpath from the value encoded in an
12580        # empty executable.
12581        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h.  */
12583
12584int
12585main ()
12586{
12587
12588  ;
12589  return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593
12594lt_aix_libpath_sed='
12595    /Import File Strings/,/^$/ {
12596	/^0/ {
12597	    s/^0  *\(.*\)$/\1/
12598	    p
12599	}
12600    }'
12601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602# Check for a 64-bit object if we didn't find anything.
12603if test -z "$aix_libpath"; then
12604  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12605fi
12606fi
12607rm -f core conftest.err conftest.$ac_objext \
12608    conftest$ac_exeext conftest.$ac_ext
12609if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12610
12611        hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12612        archive_expsym_cmds_GO='$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"
12613      else
12614	if test "$host_cpu" = ia64; then
12615	  hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12616	  allow_undefined_flag_GO="-z nodefs"
12617	  archive_expsym_cmds_GO="\$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"
12618	else
12619	 # Determine the default libpath from the value encoded in an
12620	 # empty executable.
12621	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622/* end confdefs.h.  */
12623
12624int
12625main ()
12626{
12627
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632if ac_fn_c_try_link "$LINENO"; then :
12633
12634lt_aix_libpath_sed='
12635    /Import File Strings/,/^$/ {
12636	/^0/ {
12637	    s/^0  *\(.*\)$/\1/
12638	    p
12639	}
12640    }'
12641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642# Check for a 64-bit object if we didn't find anything.
12643if test -z "$aix_libpath"; then
12644  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12645fi
12646fi
12647rm -f core conftest.err conftest.$ac_objext \
12648    conftest$ac_exeext conftest.$ac_ext
12649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12650
12651	 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12652	  # Warning - without using the other run time loading flags,
12653	  # -berok will link without error, but may produce a broken library.
12654	  no_undefined_flag_GO=' ${wl}-bernotok'
12655	  allow_undefined_flag_GO=' ${wl}-berok'
12656	  if test "$with_gnu_ld" = yes; then
12657	    # We only use this code for GNU lds that support --whole-archive.
12658	    whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12659	  else
12660	    # Exported symbols can be pulled into shared objects from archives
12661	    whole_archive_flag_spec_GO='$convenience'
12662	  fi
12663	  archive_cmds_need_lc_GO=yes
12664	  # This is similar to how AIX traditionally builds its shared libraries.
12665	  archive_expsym_cmds_GO="\$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'
12666	fi
12667      fi
12668      ;;
12669
12670    amigaos*)
12671      case $host_cpu in
12672      powerpc)
12673            # see comment about AmigaOS4 .so support
12674            archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12675            archive_expsym_cmds_GO=''
12676        ;;
12677      m68k)
12678            archive_cmds_GO='$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)'
12679            hardcode_libdir_flag_spec_GO='-L$libdir'
12680            hardcode_minus_L_GO=yes
12681        ;;
12682      esac
12683      ;;
12684
12685    bsdi[45]*)
12686      export_dynamic_flag_spec_GO=-rdynamic
12687      ;;
12688
12689    cygwin* | mingw* | pw32* | cegcc*)
12690      # When not using gcc, we currently assume that we are using
12691      # Microsoft Visual C++.
12692      # hardcode_libdir_flag_spec is actually meaningless, as there is
12693      # no search path for DLLs.
12694      hardcode_libdir_flag_spec_GO=' '
12695      allow_undefined_flag_GO=unsupported
12696      # Tell ltmain to make .lib files, not .a files.
12697      libext=lib
12698      # Tell ltmain to make .dll files, not .so files.
12699      shrext_cmds=".dll"
12700      # FIXME: Setting linknames here is a bad hack.
12701      archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12702      # The linker will automatically build a .lib file if we build a DLL.
12703      old_archive_from_new_cmds_GO='true'
12704      # FIXME: Should let the user specify the lib program.
12705      old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12706      fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12707      enable_shared_with_static_runtimes_GO=yes
12708      ;;
12709
12710    darwin* | rhapsody*)
12711
12712
12713  archive_cmds_need_lc_GO=no
12714  hardcode_direct_GO=no
12715  hardcode_automatic_GO=yes
12716  hardcode_shlibpath_var_GO=unsupported
12717  if test "$lt_cv_ld_force_load" = "yes"; then
12718    whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12719  else
12720    whole_archive_flag_spec_GO=''
12721  fi
12722  link_all_deplibs_GO=yes
12723  allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12724  case $cc_basename in
12725     ifort*) _lt_dar_can_shared=yes ;;
12726     *) _lt_dar_can_shared=$GCC ;;
12727  esac
12728  if test "$_lt_dar_can_shared" = "yes"; then
12729    output_verbose_link_cmd=func_echo_all
12730    archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12731    module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12732    archive_expsym_cmds_GO="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}"
12733    module_expsym_cmds_GO="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}"
12734
12735  else
12736  ld_shlibs_GO=no
12737  fi
12738
12739      ;;
12740
12741    dgux*)
12742      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12743      hardcode_libdir_flag_spec_GO='-L$libdir'
12744      hardcode_shlibpath_var_GO=no
12745      ;;
12746
12747    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12748    # support.  Future versions do this automatically, but an explicit c++rt0.o
12749    # does not break anything, and helps significantly (at the cost of a little
12750    # extra space).
12751    freebsd2.2*)
12752      archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12753      hardcode_libdir_flag_spec_GO='-R$libdir'
12754      hardcode_direct_GO=yes
12755      hardcode_shlibpath_var_GO=no
12756      ;;
12757
12758    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12759    freebsd2*)
12760      archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12761      hardcode_direct_GO=yes
12762      hardcode_minus_L_GO=yes
12763      hardcode_shlibpath_var_GO=no
12764      ;;
12765
12766    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12767    freebsd* | dragonfly*)
12768      archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12769      hardcode_libdir_flag_spec_GO='-R$libdir'
12770      hardcode_direct_GO=yes
12771      hardcode_shlibpath_var_GO=no
12772      ;;
12773
12774    hpux9*)
12775      if test "$GCC" = yes; then
12776	archive_cmds_GO='$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'
12777      else
12778	archive_cmds_GO='$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'
12779      fi
12780      hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12781      hardcode_libdir_separator_GO=:
12782      hardcode_direct_GO=yes
12783
12784      # hardcode_minus_L: Not really in the search PATH,
12785      # but as the default location of the library.
12786      hardcode_minus_L_GO=yes
12787      export_dynamic_flag_spec_GO='${wl}-E'
12788      ;;
12789
12790    hpux10*)
12791      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12792	archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12793      else
12794	archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12795      fi
12796      if test "$with_gnu_ld" = no; then
12797	hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12798	hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12799	hardcode_libdir_separator_GO=:
12800	hardcode_direct_GO=yes
12801	hardcode_direct_absolute_GO=yes
12802	export_dynamic_flag_spec_GO='${wl}-E'
12803	# hardcode_minus_L: Not really in the search PATH,
12804	# but as the default location of the library.
12805	hardcode_minus_L_GO=yes
12806      fi
12807      ;;
12808
12809    hpux11*)
12810      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12811	case $host_cpu in
12812	hppa*64*)
12813	  archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12814	  ;;
12815	ia64*)
12816	  archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12817	  ;;
12818	*)
12819	  archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12820	  ;;
12821	esac
12822      else
12823	case $host_cpu in
12824	hppa*64*)
12825	  archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12826	  ;;
12827	ia64*)
12828	  archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12829	  ;;
12830	*)
12831	archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12832	  ;;
12833	esac
12834      fi
12835      if test "$with_gnu_ld" = no; then
12836	hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12837	hardcode_libdir_separator_GO=:
12838
12839	case $host_cpu in
12840	hppa*64*|ia64*)
12841	  hardcode_direct_GO=no
12842	  hardcode_shlibpath_var_GO=no
12843	  ;;
12844	*)
12845	  hardcode_direct_GO=yes
12846	  hardcode_direct_absolute_GO=yes
12847	  export_dynamic_flag_spec_GO='${wl}-E'
12848
12849	  # hardcode_minus_L: Not really in the search PATH,
12850	  # but as the default location of the library.
12851	  hardcode_minus_L_GO=yes
12852	  ;;
12853	esac
12854      fi
12855      ;;
12856
12857    irix5* | irix6* | nonstopux*)
12858      if test "$GCC" = yes; then
12859	archive_cmds_GO='$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'
12860	# Try to use the -exported_symbol ld option, if it does not
12861	# work, assume that -exports_file does not work either and
12862	# implicitly export all symbols.
12863        save_LDFLAGS="$LDFLAGS"
12864        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12865        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867int foo(void) {}
12868_ACEOF
12869if ac_fn_c_try_link "$LINENO"; then :
12870  archive_expsym_cmds_GO='$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'
12871
12872fi
12873rm -f core conftest.err conftest.$ac_objext \
12874    conftest$ac_exeext conftest.$ac_ext
12875        LDFLAGS="$save_LDFLAGS"
12876      else
12877	archive_cmds_GO='$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'
12878	archive_expsym_cmds_GO='$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'
12879      fi
12880      archive_cmds_need_lc_GO='no'
12881      hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12882      hardcode_libdir_separator_GO=:
12883      inherit_rpath_GO=yes
12884      link_all_deplibs_GO=yes
12885      ;;
12886
12887    netbsd*)
12888      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12889	archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12890      else
12891	archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12892      fi
12893      hardcode_libdir_flag_spec_GO='-R$libdir'
12894      hardcode_direct_GO=yes
12895      hardcode_shlibpath_var_GO=no
12896      ;;
12897
12898    newsos6)
12899      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900      hardcode_direct_GO=yes
12901      hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12902      hardcode_libdir_separator_GO=:
12903      hardcode_shlibpath_var_GO=no
12904      ;;
12905
12906    *nto* | *qnx*)
12907      ;;
12908
12909    openbsd*)
12910      if test -f /usr/libexec/ld.so; then
12911	hardcode_direct_GO=yes
12912	hardcode_shlibpath_var_GO=no
12913	hardcode_direct_absolute_GO=yes
12914	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12915	  archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12916	  archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12917	  hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12918	  export_dynamic_flag_spec_GO='${wl}-E'
12919	else
12920	  case $host_os in
12921	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12922	     archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12923	     hardcode_libdir_flag_spec_GO='-R$libdir'
12924	     ;;
12925	   *)
12926	     archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12927	     hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12928	     ;;
12929	  esac
12930	fi
12931      else
12932	ld_shlibs_GO=no
12933      fi
12934      ;;
12935
12936    os2*)
12937      hardcode_libdir_flag_spec_GO='-L$libdir'
12938      hardcode_minus_L_GO=yes
12939      allow_undefined_flag_GO=unsupported
12940      archive_cmds_GO='$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'
12941      old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12942      ;;
12943
12944    osf3*)
12945      if test "$GCC" = yes; then
12946	allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12947	archive_cmds_GO='$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'
12948      else
12949	allow_undefined_flag_GO=' -expect_unresolved \*'
12950	archive_cmds_GO='$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'
12951      fi
12952      archive_cmds_need_lc_GO='no'
12953      hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12954      hardcode_libdir_separator_GO=:
12955      ;;
12956
12957    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12958      if test "$GCC" = yes; then
12959	allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12960	archive_cmds_GO='$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'
12961	hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12962      else
12963	allow_undefined_flag_GO=' -expect_unresolved \*'
12964	archive_cmds_GO='$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'
12965	archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12966	$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'
12967
12968	# Both c and cxx compiler support -rpath directly
12969	hardcode_libdir_flag_spec_GO='-rpath $libdir'
12970      fi
12971      archive_cmds_need_lc_GO='no'
12972      hardcode_libdir_separator_GO=:
12973      ;;
12974
12975    solaris*)
12976      no_undefined_flag_GO=' -z defs'
12977      if test "$GCC" = yes; then
12978	wlarc='${wl}'
12979	archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12980	archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12981	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12982      else
12983	case `$CC -V 2>&1` in
12984	*"Compilers 5.0"*)
12985	  wlarc=''
12986	  archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12987	  archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12989	  ;;
12990	*)
12991	  wlarc='${wl}'
12992	  archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12993	  archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12994	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12995	  ;;
12996	esac
12997      fi
12998      hardcode_libdir_flag_spec_GO='-R$libdir'
12999      hardcode_shlibpath_var_GO=no
13000      case $host_os in
13001      solaris2.[0-5] | solaris2.[0-5].*) ;;
13002      *)
13003	# The compiler driver will combine and reorder linker options,
13004	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13005	# but is careful enough not to reorder.
13006	# Supported since Solaris 2.6 (maybe 2.5.1?)
13007	if test "$GCC" = yes; then
13008	  whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13009	else
13010	  whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13011	fi
13012	;;
13013      esac
13014      link_all_deplibs_GO=yes
13015      ;;
13016
13017    sunos4*)
13018      if test "x$host_vendor" = xsequent; then
13019	# Use $CC to link under sequent, because it throws in some extra .o
13020	# files that make .init and .fini sections work.
13021	archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13022      else
13023	archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13024      fi
13025      hardcode_libdir_flag_spec_GO='-L$libdir'
13026      hardcode_direct_GO=yes
13027      hardcode_minus_L_GO=yes
13028      hardcode_shlibpath_var_GO=no
13029      ;;
13030
13031    sysv4)
13032      case $host_vendor in
13033	sni)
13034	  archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13035	  hardcode_direct_GO=yes # is this really true???
13036	;;
13037	siemens)
13038	  ## LD is ld it makes a PLAMLIB
13039	  ## CC just makes a GrossModule.
13040	  archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13041	  reload_cmds_GO='$CC -r -o $output$reload_objs'
13042	  hardcode_direct_GO=no
13043        ;;
13044	motorola)
13045	  archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13046	  hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13047	;;
13048      esac
13049      runpath_var='LD_RUN_PATH'
13050      hardcode_shlibpath_var_GO=no
13051      ;;
13052
13053    sysv4.3*)
13054      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13055      hardcode_shlibpath_var_GO=no
13056      export_dynamic_flag_spec_GO='-Bexport'
13057      ;;
13058
13059    sysv4*MP*)
13060      if test -d /usr/nec; then
13061	archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13062	hardcode_shlibpath_var_GO=no
13063	runpath_var=LD_RUN_PATH
13064	hardcode_runpath_var=yes
13065	ld_shlibs_GO=yes
13066      fi
13067      ;;
13068
13069    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13070      no_undefined_flag_GO='${wl}-z,text'
13071      archive_cmds_need_lc_GO=no
13072      hardcode_shlibpath_var_GO=no
13073      runpath_var='LD_RUN_PATH'
13074
13075      if test "$GCC" = yes; then
13076	archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077	archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078      else
13079	archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080	archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13081      fi
13082      ;;
13083
13084    sysv5* | sco3.2v5* | sco5v6*)
13085      # Note: We can NOT use -z defs as we might desire, because we do not
13086      # link with -lc, and that would cause any symbols used from libc to
13087      # always be unresolved, which means just about no library would
13088      # ever link correctly.  If we're not using GNU ld we use -z text
13089      # though, which does catch some bad symbols but isn't as heavy-handed
13090      # as -z defs.
13091      no_undefined_flag_GO='${wl}-z,text'
13092      allow_undefined_flag_GO='${wl}-z,nodefs'
13093      archive_cmds_need_lc_GO=no
13094      hardcode_shlibpath_var_GO=no
13095      hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13096      hardcode_libdir_separator_GO=':'
13097      link_all_deplibs_GO=yes
13098      export_dynamic_flag_spec_GO='${wl}-Bexport'
13099      runpath_var='LD_RUN_PATH'
13100
13101      if test "$GCC" = yes; then
13102	archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103	archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104      else
13105	archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106	archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107      fi
13108      ;;
13109
13110    uts4*)
13111      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13112      hardcode_libdir_flag_spec_GO='-L$libdir'
13113      hardcode_shlibpath_var_GO=no
13114      ;;
13115
13116    *)
13117      ld_shlibs_GO=no
13118      ;;
13119    esac
13120
13121    if test x$host_vendor = xsni; then
13122      case $host in
13123      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13124	export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13125	;;
13126      esac
13127    fi
13128  fi
13129
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13131$as_echo "$ld_shlibs_GO" >&6; }
13132test "$ld_shlibs_GO" = no && can_build_shared=no
13133
13134with_gnu_ld_GO=$with_gnu_ld
13135
13136
13137
13138
13139
13140
13141#
13142# Do we need to explicitly link libc?
13143#
13144case "x$archive_cmds_need_lc_GO" in
13145x|xyes)
13146  # Assume -lc should be added
13147  archive_cmds_need_lc_GO=yes
13148
13149  if test "$enable_shared" = yes && test "$GCC" = yes; then
13150    case $archive_cmds_GO in
13151    *'~'*)
13152      # FIXME: we may have to deal with multi-command sequences.
13153      ;;
13154    '$CC '*)
13155      # Test whether the compiler implicitly links with -lc since on some
13156      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13157      # to ld, don't add -lc before -lgcc.
13158      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13159$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13160if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13161  $as_echo_n "(cached) " >&6
13162else
13163  $RM conftest*
13164	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13165
13166	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13167  (eval $ac_compile) 2>&5
13168  ac_status=$?
13169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13170  test $ac_status = 0; } 2>conftest.err; then
13171	  soname=conftest
13172	  lib=conftest
13173	  libobjs=conftest.$ac_objext
13174	  deplibs=
13175	  wl=$lt_prog_compiler_wl_GO
13176	  pic_flag=$lt_prog_compiler_pic_GO
13177	  compiler_flags=-v
13178	  linker_flags=-v
13179	  verstring=
13180	  output_objdir=.
13181	  libname=conftest
13182	  lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13183	  allow_undefined_flag_GO=
13184	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13185  (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13186  ac_status=$?
13187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188  test $ac_status = 0; }
13189	  then
13190	    lt_cv_archive_cmds_need_lc_GO=no
13191	  else
13192	    lt_cv_archive_cmds_need_lc_GO=yes
13193	  fi
13194	  allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13195	else
13196	  cat conftest.err 1>&5
13197	fi
13198	$RM conftest*
13199
13200fi
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13202$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13203      archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13204      ;;
13205    esac
13206  fi
13207  ;;
13208esac
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13274$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13275hardcode_action_GO=
13276if test -n "$hardcode_libdir_flag_spec_GO" ||
13277   test -n "$runpath_var_GO" ||
13278   test "X$hardcode_automatic_GO" = "Xyes" ; then
13279
13280  # We can hardcode non-existent directories.
13281  if test "$hardcode_direct_GO" != no &&
13282     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13283     # have to relink, otherwise we might link with an installed library
13284     # when we should be linking with a yet-to-be-installed one
13285     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13286     test "$hardcode_minus_L_GO" != no; then
13287    # Linking always hardcodes the temporary library directory.
13288    hardcode_action_GO=relink
13289  else
13290    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13291    hardcode_action_GO=immediate
13292  fi
13293else
13294  # We cannot hardcode anything, or else we can only hardcode existing
13295  # directories.
13296  hardcode_action_GO=unsupported
13297fi
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13299$as_echo "$hardcode_action_GO" >&6; }
13300
13301if test "$hardcode_action_GO" = relink ||
13302   test "$inherit_rpath_GO" = yes; then
13303  # Fast installation is not supported
13304  enable_fast_install=no
13305elif test "$shlibpath_overrides_runpath" = yes ||
13306     test "$enable_shared" = no; then
13307  # Fast installation is not necessary
13308  enable_fast_install=needless
13309fi
13310
13311
13312
13313
13314
13315
13316
13317fi
13318
13319ac_ext=c
13320ac_cpp='$CPP $CPPFLAGS'
13321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323ac_compiler_gnu=$ac_cv_c_compiler_gnu
13324
13325
13326GCC=$lt_save_GCC
13327CC="$lt_save_CC"
13328
13329
13330
13331
13332        ac_config_commands="$ac_config_commands libtool"
13333
13334
13335
13336
13337# Only expand once:
13338
13339
13340
13341
13342
13343CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13344
13345
13346for ac_prog in gawk mawk nawk awk
13347do
13348  # Extract the first word of "$ac_prog", so it can be a program name with args.
13349set dummy $ac_prog; ac_word=$2
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351$as_echo_n "checking for $ac_word... " >&6; }
13352if test "${ac_cv_prog_AWK+set}" = set; then :
13353  $as_echo_n "(cached) " >&6
13354else
13355  if test -n "$AWK"; then
13356  ac_cv_prog_AWK="$AWK" # Let the user override the test.
13357else
13358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359for as_dir in $PATH
13360do
13361  IFS=$as_save_IFS
13362  test -z "$as_dir" && as_dir=.
13363    for ac_exec_ext in '' $ac_executable_extensions; do
13364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365    ac_cv_prog_AWK="$ac_prog"
13366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367    break 2
13368  fi
13369done
13370  done
13371IFS=$as_save_IFS
13372
13373fi
13374fi
13375AWK=$ac_cv_prog_AWK
13376if test -n "$AWK"; then
13377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13378$as_echo "$AWK" >&6; }
13379else
13380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382fi
13383
13384
13385  test -n "$AWK" && break
13386done
13387
13388
13389WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13390
13391
13392# Check whether --enable-werror was given.
13393if test "${enable_werror+set}" = set; then :
13394  enableval=$enable_werror;
13395fi
13396
13397if test "x$enable_werror" != "xno"; then
13398  WERROR="-Werror"
13399fi
13400
13401
13402glibgo_toolexecdir=no
13403glibgo_toolexeclibdir=no
13404
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13406$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13407# Check whether --enable-version-specific-runtime-libs was given.
13408if test "${enable_version_specific_runtime_libs+set}" = set; then :
13409  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13410    yes) version_specific_libs=yes ;;
13411    no)  version_specific_libs=no ;;
13412    *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13413   esac
13414else
13415  version_specific_libs=no
13416fi
13417
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13419$as_echo "$version_specific_libs" >&6; }
13420
13421# Version-specific runtime libs processing.
13422if test $version_specific_libs = yes; then
13423  glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13424  glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13425fi
13426
13427# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13428# Install a library built with a cross compiler in tooldir, not libdir.
13429if test -n "$with_cross_host" &&
13430   test x"$with_cross_host" != x"no"; then
13431  nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13432  nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13433else
13434  nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13435  nover_glibgo_toolexeclibdir='${libdir}'
13436fi
13437multi_os_directory=`$CC -print-multi-os-directory`
13438case $multi_os_directory in
13439  .) ;; # Avoid trailing /.
13440  *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13441esac
13442
13443if test x"$glibgo_toolexecdir" = x"no"; then
13444  glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13445  glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13446fi
13447
13448
13449
13450
13451
13452# See if the user wants to configure without libffi.  Some
13453# architectures don't support it.  FIXME: We should set a default
13454# based on the host.
13455
13456# Check whether --with-libffi was given.
13457if test "${with_libffi+set}" = set; then :
13458  withval=$with_libffi; :
13459else
13460  with_libffi=${with_libffi_default-yes}
13461fi
13462
13463
13464LIBFFI=
13465LIBFFIINCS=
13466if test "$with_libffi" != no; then
13467
13468$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13469
13470   LIBFFI=../libffi/libffi_convenience.la
13471   LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13472fi
13473
13474
13475
13476# Used to tell GNU make to include a file without telling automake to
13477# include it.
13478go_include="-include"
13479
13480
13481is_darwin=no
13482is_freebsd=no
13483is_irix=no
13484is_linux=no
13485is_netbsd=no
13486is_openbsd=no
13487is_rtems=no
13488is_solaris=no
13489GOOS=unknown
13490case ${host} in
13491  *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13492  *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13493  *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13494  *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13495  *-*-netbsd*)	 is_netbsd=yes;  GOOS=netbsd ;;
13496  *-*-openbsd*)  is_openbsd=yes; GOOS=openbsd ;;
13497  *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13498  *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13499esac
13500 if test $is_darwin = yes; then
13501  LIBGO_IS_DARWIN_TRUE=
13502  LIBGO_IS_DARWIN_FALSE='#'
13503else
13504  LIBGO_IS_DARWIN_TRUE='#'
13505  LIBGO_IS_DARWIN_FALSE=
13506fi
13507
13508 if test $is_freebsd = yes; then
13509  LIBGO_IS_FREEBSD_TRUE=
13510  LIBGO_IS_FREEBSD_FALSE='#'
13511else
13512  LIBGO_IS_FREEBSD_TRUE='#'
13513  LIBGO_IS_FREEBSD_FALSE=
13514fi
13515
13516 if test $is_irix = yes; then
13517  LIBGO_IS_IRIX_TRUE=
13518  LIBGO_IS_IRIX_FALSE='#'
13519else
13520  LIBGO_IS_IRIX_TRUE='#'
13521  LIBGO_IS_IRIX_FALSE=
13522fi
13523
13524 if test $is_linux = yes; then
13525  LIBGO_IS_LINUX_TRUE=
13526  LIBGO_IS_LINUX_FALSE='#'
13527else
13528  LIBGO_IS_LINUX_TRUE='#'
13529  LIBGO_IS_LINUX_FALSE=
13530fi
13531
13532 if test $is_netbsd = yes; then
13533  LIBGO_IS_NETBSD_TRUE=
13534  LIBGO_IS_NETBSD_FALSE='#'
13535else
13536  LIBGO_IS_NETBSD_TRUE='#'
13537  LIBGO_IS_NETBSD_FALSE=
13538fi
13539
13540 if test $is_openbsd = yes; then
13541  LIBGO_IS_OPENBSD_TRUE=
13542  LIBGO_IS_OPENBSD_FALSE='#'
13543else
13544  LIBGO_IS_OPENBSD_TRUE='#'
13545  LIBGO_IS_OPENBSD_FALSE=
13546fi
13547
13548 if test $is_rtems = yes; then
13549  LIBGO_IS_RTEMS_TRUE=
13550  LIBGO_IS_RTEMS_FALSE='#'
13551else
13552  LIBGO_IS_RTEMS_TRUE='#'
13553  LIBGO_IS_RTEMS_FALSE=
13554fi
13555
13556 if test $is_solaris = yes; then
13557  LIBGO_IS_SOLARIS_TRUE=
13558  LIBGO_IS_SOLARIS_FALSE='#'
13559else
13560  LIBGO_IS_SOLARIS_TRUE='#'
13561  LIBGO_IS_SOLARIS_FALSE=
13562fi
13563
13564
13565
13566USE_DEJAGNU=no
13567case ${host} in
13568  *-*-rtems*) USE_DEJAGNU=yes ;;
13569  ${build}) ;;
13570  *) USE_DEJAGNU=yes ;;
13571esac
13572
13573
13574is_386=no
13575is_alpha=no
13576is_arm=no
13577is_m68k=no
13578mips_abi=unknown
13579is_ppc=no
13580is_ppc64=no
13581is_sparc=no
13582is_sparc64=no
13583is_x86_64=no
13584GOARCH=unknown
13585case ${host} in
13586  alpha*-*-*)
13587    is_alpha=yes
13588    GOARCH=alpha
13589    ;;
13590  arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13591    is_arm=yes
13592    GOARCH=arm
13593    ;;
13594  i[34567]86-*-* | x86_64-*-*)
13595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596/* end confdefs.h.  */
13597
13598#ifdef __x86_64__
13599#error 64-bit
13600#endif
13601_ACEOF
13602if ac_fn_c_try_compile "$LINENO"; then :
13603  is_386=yes
13604else
13605  is_x86_64=yes
13606fi
13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608    if test "$is_386" = "yes"; then
13609      GOARCH=386
13610    else
13611      GOARCH=amd64
13612    fi
13613    ;;
13614  m68k*-*-*)
13615    is_m68k=yes
13616    GOARCH=m68k
13617    ;;
13618  mips*-*-*)
13619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620/* end confdefs.h.  */
13621
13622#if _MIPS_SIM != _ABIO32
13623#error not o32
13624#endif
13625_ACEOF
13626if ac_fn_c_try_compile "$LINENO"; then :
13627  mips_abi="o32"
13628else
13629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h.  */
13631
13632#if _MIPS_SIM != _ABIN32
13633#error not n32
13634#endif
13635_ACEOF
13636if ac_fn_c_try_compile "$LINENO"; then :
13637  mips_abi="n32"
13638else
13639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640/* end confdefs.h.  */
13641
13642#if _MIPS_SIM != _ABI64
13643#error not n64
13644#endif
13645_ACEOF
13646if ac_fn_c_try_compile "$LINENO"; then :
13647  mips_abi="n64"
13648else
13649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h.  */
13651
13652#if _MIPS_SIM != _ABIO64
13653#error not o64
13654#endif
13655_ACEOF
13656if ac_fn_c_try_compile "$LINENO"; then :
13657  mips_abi="o64"
13658else
13659  as_fn_error "unknown MIPS ABI" "$LINENO" 5
13660mips_abi="n32"
13661fi
13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663fi
13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665fi
13666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667fi
13668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669    case "$mips_abi" in
13670    "o32") GOARCH=mipso32 ;;
13671    "n32") GOARCH=mipsn32 ;;
13672    "n64") GOARCH=mipsn64 ;;
13673    "o64") GOARCH=mipso64 ;;
13674    esac
13675    ;;
13676  rs6000*-*-* | powerpc*-*-*)
13677    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678/* end confdefs.h.  */
13679
13680#ifdef _ARCH_PPC64
13681#error 64-bit
13682#endif
13683_ACEOF
13684if ac_fn_c_try_compile "$LINENO"; then :
13685  is_ppc=yes
13686else
13687  is_ppc64=yes
13688fi
13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690    if test "$is_ppc" = "yes"; then
13691      GOARCH=ppc
13692    else
13693      GOARCH=ppc64
13694    fi
13695    ;;
13696  sparc*-*-*)
13697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h.  */
13699
13700#if defined(__sparcv9) || defined(__arch64__)
13701#error 64-bit
13702#endif
13703_ACEOF
13704if ac_fn_c_try_compile "$LINENO"; then :
13705  is_sparc=yes
13706else
13707  is_sparc64=yes
13708fi
13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710    if test "$is_sparc" = "yes"; then
13711      GOARCH=sparc
13712    else
13713      GOARCH=sparc64
13714    fi
13715    ;;
13716esac
13717 if test $is_386 = yes; then
13718  LIBGO_IS_386_TRUE=
13719  LIBGO_IS_386_FALSE='#'
13720else
13721  LIBGO_IS_386_TRUE='#'
13722  LIBGO_IS_386_FALSE=
13723fi
13724
13725 if test $is_alpha = yes; then
13726  LIBGO_IS_ALPHA_TRUE=
13727  LIBGO_IS_ALPHA_FALSE='#'
13728else
13729  LIBGO_IS_ALPHA_TRUE='#'
13730  LIBGO_IS_ALPHA_FALSE=
13731fi
13732
13733 if test $is_arm = yes; then
13734  LIBGO_IS_ARM_TRUE=
13735  LIBGO_IS_ARM_FALSE='#'
13736else
13737  LIBGO_IS_ARM_TRUE='#'
13738  LIBGO_IS_ARM_FALSE=
13739fi
13740
13741 if test $is_m68k = yes; then
13742  LIBGO_IS_M68K_TRUE=
13743  LIBGO_IS_M68K_FALSE='#'
13744else
13745  LIBGO_IS_M68K_TRUE='#'
13746  LIBGO_IS_M68K_FALSE=
13747fi
13748
13749 if test $mips_abi != unknown; then
13750  LIBGO_IS_MIPS_TRUE=
13751  LIBGO_IS_MIPS_FALSE='#'
13752else
13753  LIBGO_IS_MIPS_TRUE='#'
13754  LIBGO_IS_MIPS_FALSE=
13755fi
13756
13757 if test $mips_abi = o32; then
13758  LIBGO_IS_MIPSO32_TRUE=
13759  LIBGO_IS_MIPSO32_FALSE='#'
13760else
13761  LIBGO_IS_MIPSO32_TRUE='#'
13762  LIBGO_IS_MIPSO32_FALSE=
13763fi
13764
13765 if test $mips_abi = n32; then
13766  LIBGO_IS_MIPSN32_TRUE=
13767  LIBGO_IS_MIPSN32_FALSE='#'
13768else
13769  LIBGO_IS_MIPSN32_TRUE='#'
13770  LIBGO_IS_MIPSN32_FALSE=
13771fi
13772
13773 if test $mips_abi = n64; then
13774  LIBGO_IS_MIPSN64_TRUE=
13775  LIBGO_IS_MIPSN64_FALSE='#'
13776else
13777  LIBGO_IS_MIPSN64_TRUE='#'
13778  LIBGO_IS_MIPSN64_FALSE=
13779fi
13780
13781 if test $mips_abi = o64; then
13782  LIBGO_IS_MIPSO64_TRUE=
13783  LIBGO_IS_MIPSO64_FALSE='#'
13784else
13785  LIBGO_IS_MIPSO64_TRUE='#'
13786  LIBGO_IS_MIPSO64_FALSE=
13787fi
13788
13789 if test $is_ppc = yes; then
13790  LIBGO_IS_PPC_TRUE=
13791  LIBGO_IS_PPC_FALSE='#'
13792else
13793  LIBGO_IS_PPC_TRUE='#'
13794  LIBGO_IS_PPC_FALSE=
13795fi
13796
13797 if test $is_ppc64 = yes; then
13798  LIBGO_IS_PPC64_TRUE=
13799  LIBGO_IS_PPC64_FALSE='#'
13800else
13801  LIBGO_IS_PPC64_TRUE='#'
13802  LIBGO_IS_PPC64_FALSE=
13803fi
13804
13805 if test $is_sparc = yes; then
13806  LIBGO_IS_SPARC_TRUE=
13807  LIBGO_IS_SPARC_FALSE='#'
13808else
13809  LIBGO_IS_SPARC_TRUE='#'
13810  LIBGO_IS_SPARC_FALSE=
13811fi
13812
13813 if test $is_sparc64 = yes; then
13814  LIBGO_IS_SPARC64_TRUE=
13815  LIBGO_IS_SPARC64_FALSE='#'
13816else
13817  LIBGO_IS_SPARC64_TRUE='#'
13818  LIBGO_IS_SPARC64_FALSE=
13819fi
13820
13821 if test $is_x86_64 = yes; then
13822  LIBGO_IS_X86_64_TRUE=
13823  LIBGO_IS_X86_64_FALSE='#'
13824else
13825  LIBGO_IS_X86_64_TRUE='#'
13826  LIBGO_IS_X86_64_FALSE=
13827fi
13828
13829
13830
13831GO_LIBCALL_OS_FILE=
13832GO_LIBCALL_OS_ARCH_FILE=
13833GO_SYSCALL_OS_FILE=
13834GO_SYSCALL_OS_ARCH_FILE=
13835if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13836  GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13837fi
13838if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13839  GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13840fi
13841if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13842  GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13843fi
13844if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13845  GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13846fi
13847
13848
13849
13850
13851
13852OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13853case "$target" in
13854    mips-sgi-irix6.5*)
13855	# IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13856	# msghdr in <sys/socket.h>.
13857	OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13858	;;
13859    *-*-solaris2.[89])
13860	# Solaris 8/9 need this so struct msghdr gets the msg_control
13861	# etc. fields in <sys/socket.h> (_XPG4_2).
13862	OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13863	;;
13864    *-*-solaris2.1[01])
13865	# Solaris 10+ needs this so struct msghdr gets the msg_control
13866	# etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=600 as
13867	# above doesn't work with C99.
13868	OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13869	;;
13870esac
13871
13872
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13874$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13875if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13876  $as_echo_n "(cached) " >&6
13877else
13878  CFLAGS_hold=$CFLAGS
13879CFLAGS="$CFLAGS -fsplit-stack"
13880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881/* end confdefs.h.  */
13882int i;
13883_ACEOF
13884if ac_fn_c_try_compile "$LINENO"; then :
13885  libgo_cv_c_split_stack_supported=yes
13886else
13887  libgo_cv_c_split_stack_supported=no
13888fi
13889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890CFLAGS=$CFLAGS_hold
13891fi
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13893$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13894if test "$libgo_cv_c_split_stack_supported" = yes; then
13895  SPLIT_STACK=-fsplit-stack
13896
13897$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13898
13899else
13900  SPLIT_STACK=
13901fi
13902
13903 if test "$libgo_cv_c_split_stack_supported" = yes; then
13904  USING_SPLIT_STACK_TRUE=
13905  USING_SPLIT_STACK_FALSE='#'
13906else
13907  USING_SPLIT_STACK_TRUE='#'
13908  USING_SPLIT_STACK_FALSE=
13909fi
13910
13911
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13913$as_echo_n "checking whether linker supports split stack... " >&6; }
13914if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13915  $as_echo_n "(cached) " >&6
13916else
13917  libgo_cv_c_linker_supports_split_stack=no
13918if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13919  libgo_cv_c_linker_supports_split_stack=yes
13920fi
13921fi
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13923$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13924if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13925
13926$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13927
13928fi
13929
13930MATH_LIBS=
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13932$as_echo_n "checking for sqrt in -lm... " >&6; }
13933if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13934  $as_echo_n "(cached) " >&6
13935else
13936  ac_check_lib_save_LIBS=$LIBS
13937LIBS="-lm  $LIBS"
13938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940
13941/* Override any GCC internal prototype to avoid an error.
13942   Use char because int might match the return type of a GCC
13943   builtin and then its argument prototype would still apply.  */
13944#ifdef __cplusplus
13945extern "C"
13946#endif
13947char sqrt ();
13948int
13949main ()
13950{
13951return sqrt ();
13952  ;
13953  return 0;
13954}
13955_ACEOF
13956if ac_fn_c_try_link "$LINENO"; then :
13957  ac_cv_lib_m_sqrt=yes
13958else
13959  ac_cv_lib_m_sqrt=no
13960fi
13961rm -f core conftest.err conftest.$ac_objext \
13962    conftest$ac_exeext conftest.$ac_ext
13963LIBS=$ac_check_lib_save_LIBS
13964fi
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13966$as_echo "$ac_cv_lib_m_sqrt" >&6; }
13967if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13968  MATH_LIBS=-lm
13969fi
13970
13971
13972
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13974$as_echo_n "checking for socket libraries... " >&6; }
13975if test "${libgo_cv_lib_sockets+set}" = set; then :
13976  $as_echo_n "(cached) " >&6
13977else
13978  libgo_cv_lib_sockets=
13979   libgo_check_both=no
13980   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13981if test "x$ac_cv_func_connect" = x""yes; then :
13982  libgo_check_socket=no
13983else
13984  libgo_check_socket=yes
13985fi
13986
13987   if test "$libgo_check_socket" = "yes"; then
13988     unset ac_cv_func_connect
13989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13990$as_echo_n "checking for main in -lsocket... " >&6; }
13991if test "${ac_cv_lib_socket_main+set}" = set; then :
13992  $as_echo_n "(cached) " >&6
13993else
13994  ac_check_lib_save_LIBS=$LIBS
13995LIBS="-lsocket  $LIBS"
13996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h.  */
13998
13999
14000int
14001main ()
14002{
14003return main ();
14004  ;
14005  return 0;
14006}
14007_ACEOF
14008if ac_fn_c_try_link "$LINENO"; then :
14009  ac_cv_lib_socket_main=yes
14010else
14011  ac_cv_lib_socket_main=no
14012fi
14013rm -f core conftest.err conftest.$ac_objext \
14014    conftest$ac_exeext conftest.$ac_ext
14015LIBS=$ac_check_lib_save_LIBS
14016fi
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14018$as_echo "$ac_cv_lib_socket_main" >&6; }
14019if test "x$ac_cv_lib_socket_main" = x""yes; then :
14020  libgo_cv_lib_sockets="-lsocket"
14021else
14022  libgo_check_both=yes
14023fi
14024
14025   fi
14026   if test "$libgo_check_both" = "yes"; then
14027     libgo_old_libs=$LIBS
14028     LIBS="$LIBS -lsocket -lnsl"
14029     unset ac_cv_func_accept
14030     ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14031if test "x$ac_cv_func_accept" = x""yes; then :
14032  libgo_check_nsl=no
14033		    libgo_cv_lib_sockets="-lsocket -lnsl"
14034fi
14035
14036     unset ac_cv_func_accept
14037     LIBS=$libgo_old_libs
14038   fi
14039   unset ac_cv_func_gethostbyname
14040   libgo_old_libs="$LIBS"
14041   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14042if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14043
14044else
14045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14046$as_echo_n "checking for main in -lnsl... " >&6; }
14047if test "${ac_cv_lib_nsl_main+set}" = set; then :
14048  $as_echo_n "(cached) " >&6
14049else
14050  ac_check_lib_save_LIBS=$LIBS
14051LIBS="-lnsl  $LIBS"
14052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053/* end confdefs.h.  */
14054
14055
14056int
14057main ()
14058{
14059return main ();
14060  ;
14061  return 0;
14062}
14063_ACEOF
14064if ac_fn_c_try_link "$LINENO"; then :
14065  ac_cv_lib_nsl_main=yes
14066else
14067  ac_cv_lib_nsl_main=no
14068fi
14069rm -f core conftest.err conftest.$ac_objext \
14070    conftest$ac_exeext conftest.$ac_ext
14071LIBS=$ac_check_lib_save_LIBS
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14074$as_echo "$ac_cv_lib_nsl_main" >&6; }
14075if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14076  libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14077fi
14078
14079fi
14080
14081   unset ac_cv_func_gethostbyname
14082   LIBS=$libgo_old_libs
14083
14084fi
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14086$as_echo "$libgo_cv_lib_sockets" >&6; }
14087NET_LIBS="$libgo_cv_lib_sockets"
14088
14089
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14091$as_echo_n "checking whether -pthread is supported... " >&6; }
14092if test "${libgo_cv_lib_pthread+set}" = set; then :
14093  $as_echo_n "(cached) " >&6
14094else
14095  CFLAGS_hold=$CFLAGS
14096CFLAGS="$CFLAGS -pthread"
14097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099int i;
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then :
14102  libgo_cv_lib_pthread=yes
14103else
14104  libgo_cv_lib_pthread=no
14105fi
14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107CFLAGS=$CFLAGS_hold
14108fi
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14110$as_echo "$libgo_cv_lib_pthread" >&6; }
14111PTHREAD_CFLAGS=
14112if test "$libgo_cv_lib_pthread" = yes; then
14113  PTHREAD_CFLAGS=-pthread
14114fi
14115
14116
14117PTHREAD_LIBS=
14118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14119$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14120if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14121  $as_echo_n "(cached) " >&6
14122else
14123  ac_check_lib_save_LIBS=$LIBS
14124LIBS="-lpthread  $LIBS"
14125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126/* end confdefs.h.  */
14127
14128/* Override any GCC internal prototype to avoid an error.
14129   Use char because int might match the return type of a GCC
14130   builtin and then its argument prototype would still apply.  */
14131#ifdef __cplusplus
14132extern "C"
14133#endif
14134char pthread_create ();
14135int
14136main ()
14137{
14138return pthread_create ();
14139  ;
14140  return 0;
14141}
14142_ACEOF
14143if ac_fn_c_try_link "$LINENO"; then :
14144  ac_cv_lib_pthread_pthread_create=yes
14145else
14146  ac_cv_lib_pthread_pthread_create=no
14147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149    conftest$ac_exeext conftest.$ac_ext
14150LIBS=$ac_check_lib_save_LIBS
14151fi
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14153$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14154if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14155  PTHREAD_LIBS=-lpthread
14156fi
14157
14158
14159
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14161$as_echo_n "checking for library containing sched_yield... " >&6; }
14162if test "${ac_cv_search_sched_yield+set}" = set; then :
14163  $as_echo_n "(cached) " >&6
14164else
14165  ac_func_search_save_LIBS=$LIBS
14166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167/* end confdefs.h.  */
14168
14169/* Override any GCC internal prototype to avoid an error.
14170   Use char because int might match the return type of a GCC
14171   builtin and then its argument prototype would still apply.  */
14172#ifdef __cplusplus
14173extern "C"
14174#endif
14175char sched_yield ();
14176int
14177main ()
14178{
14179return sched_yield ();
14180  ;
14181  return 0;
14182}
14183_ACEOF
14184for ac_lib in '' rt; do
14185  if test -z "$ac_lib"; then
14186    ac_res="none required"
14187  else
14188    ac_res=-l$ac_lib
14189    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14190  fi
14191  if ac_fn_c_try_link "$LINENO"; then :
14192  ac_cv_search_sched_yield=$ac_res
14193fi
14194rm -f core conftest.err conftest.$ac_objext \
14195    conftest$ac_exeext
14196  if test "${ac_cv_search_sched_yield+set}" = set; then :
14197  break
14198fi
14199done
14200if test "${ac_cv_search_sched_yield+set}" = set; then :
14201
14202else
14203  ac_cv_search_sched_yield=no
14204fi
14205rm conftest.$ac_ext
14206LIBS=$ac_func_search_save_LIBS
14207fi
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14209$as_echo "$ac_cv_search_sched_yield" >&6; }
14210ac_res=$ac_cv_search_sched_yield
14211if test "$ac_res" != no; then :
14212  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14213
14214fi
14215
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14217$as_echo_n "checking for library containing nanosleep... " >&6; }
14218if test "${ac_cv_search_nanosleep+set}" = set; then :
14219  $as_echo_n "(cached) " >&6
14220else
14221  ac_func_search_save_LIBS=$LIBS
14222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223/* end confdefs.h.  */
14224
14225/* Override any GCC internal prototype to avoid an error.
14226   Use char because int might match the return type of a GCC
14227   builtin and then its argument prototype would still apply.  */
14228#ifdef __cplusplus
14229extern "C"
14230#endif
14231char nanosleep ();
14232int
14233main ()
14234{
14235return nanosleep ();
14236  ;
14237  return 0;
14238}
14239_ACEOF
14240for ac_lib in '' rt; do
14241  if test -z "$ac_lib"; then
14242    ac_res="none required"
14243  else
14244    ac_res=-l$ac_lib
14245    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14246  fi
14247  if ac_fn_c_try_link "$LINENO"; then :
14248  ac_cv_search_nanosleep=$ac_res
14249fi
14250rm -f core conftest.err conftest.$ac_objext \
14251    conftest$ac_exeext
14252  if test "${ac_cv_search_nanosleep+set}" = set; then :
14253  break
14254fi
14255done
14256if test "${ac_cv_search_nanosleep+set}" = set; then :
14257
14258else
14259  ac_cv_search_nanosleep=no
14260fi
14261rm conftest.$ac_ext
14262LIBS=$ac_func_search_save_LIBS
14263fi
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14265$as_echo "$ac_cv_search_nanosleep" >&6; }
14266ac_res=$ac_cv_search_nanosleep
14267if test "$ac_res" != no; then :
14268  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14269
14270fi
14271
14272
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14274$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14275if test "${ac_cv_c_bigendian+set}" = set; then :
14276  $as_echo_n "(cached) " >&6
14277else
14278  ac_cv_c_bigendian=unknown
14279    # See if we're dealing with a universal compiler.
14280    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282#ifndef __APPLE_CC__
14283	       not a universal capable compiler
14284	     #endif
14285	     typedef int dummy;
14286
14287_ACEOF
14288if ac_fn_c_try_compile "$LINENO"; then :
14289
14290	# Check for potential -arch flags.  It is not universal unless
14291	# there are at least two -arch flags with different values.
14292	ac_arch=
14293	ac_prev=
14294	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14295	 if test -n "$ac_prev"; then
14296	   case $ac_word in
14297	     i?86 | x86_64 | ppc | ppc64)
14298	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14299		 ac_arch=$ac_word
14300	       else
14301		 ac_cv_c_bigendian=universal
14302		 break
14303	       fi
14304	       ;;
14305	   esac
14306	   ac_prev=
14307	 elif test "x$ac_word" = "x-arch"; then
14308	   ac_prev=arch
14309	 fi
14310       done
14311fi
14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313    if test $ac_cv_c_bigendian = unknown; then
14314      # See if sys/param.h defines the BYTE_ORDER macro.
14315      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316/* end confdefs.h.  */
14317#include <sys/types.h>
14318	     #include <sys/param.h>
14319
14320int
14321main ()
14322{
14323#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14324		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14325		     && LITTLE_ENDIAN)
14326	      bogus endian macros
14327	     #endif
14328
14329  ;
14330  return 0;
14331}
14332_ACEOF
14333if ac_fn_c_try_compile "$LINENO"; then :
14334  # It does; now see whether it defined to BIG_ENDIAN or not.
14335	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336/* end confdefs.h.  */
14337#include <sys/types.h>
14338		#include <sys/param.h>
14339
14340int
14341main ()
14342{
14343#if BYTE_ORDER != BIG_ENDIAN
14344		 not big endian
14345		#endif
14346
14347  ;
14348  return 0;
14349}
14350_ACEOF
14351if ac_fn_c_try_compile "$LINENO"; then :
14352  ac_cv_c_bigendian=yes
14353else
14354  ac_cv_c_bigendian=no
14355fi
14356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357fi
14358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359    fi
14360    if test $ac_cv_c_bigendian = unknown; then
14361      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363/* end confdefs.h.  */
14364#include <limits.h>
14365
14366int
14367main ()
14368{
14369#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14370	      bogus endian macros
14371	     #endif
14372
14373  ;
14374  return 0;
14375}
14376_ACEOF
14377if ac_fn_c_try_compile "$LINENO"; then :
14378  # It does; now see whether it defined to _BIG_ENDIAN or not.
14379	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381#include <limits.h>
14382
14383int
14384main ()
14385{
14386#ifndef _BIG_ENDIAN
14387		 not big endian
14388		#endif
14389
14390  ;
14391  return 0;
14392}
14393_ACEOF
14394if ac_fn_c_try_compile "$LINENO"; then :
14395  ac_cv_c_bigendian=yes
14396else
14397  ac_cv_c_bigendian=no
14398fi
14399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400fi
14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402    fi
14403    if test $ac_cv_c_bigendian = unknown; then
14404      # Compile a test program.
14405      if test "$cross_compiling" = yes; then :
14406  # Try to guess by grepping values from an object file.
14407	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408/* end confdefs.h.  */
14409short int ascii_mm[] =
14410		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14411		short int ascii_ii[] =
14412		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14413		int use_ascii (int i) {
14414		  return ascii_mm[i] + ascii_ii[i];
14415		}
14416		short int ebcdic_ii[] =
14417		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14418		short int ebcdic_mm[] =
14419		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14420		int use_ebcdic (int i) {
14421		  return ebcdic_mm[i] + ebcdic_ii[i];
14422		}
14423		extern int foo;
14424
14425int
14426main ()
14427{
14428return use_ascii (foo) == use_ebcdic (foo);
14429  ;
14430  return 0;
14431}
14432_ACEOF
14433if ac_fn_c_try_compile "$LINENO"; then :
14434  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14435	      ac_cv_c_bigendian=yes
14436	    fi
14437	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14438	      if test "$ac_cv_c_bigendian" = unknown; then
14439		ac_cv_c_bigendian=no
14440	      else
14441		# finding both strings is unlikely to happen, but who knows?
14442		ac_cv_c_bigendian=unknown
14443	      fi
14444	    fi
14445fi
14446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447else
14448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449/* end confdefs.h.  */
14450$ac_includes_default
14451int
14452main ()
14453{
14454
14455	     /* Are we little or big endian?  From Harbison&Steele.  */
14456	     union
14457	     {
14458	       long int l;
14459	       char c[sizeof (long int)];
14460	     } u;
14461	     u.l = 1;
14462	     return u.c[sizeof (long int) - 1] == 1;
14463
14464  ;
14465  return 0;
14466}
14467_ACEOF
14468if ac_fn_c_try_run "$LINENO"; then :
14469  ac_cv_c_bigendian=no
14470else
14471  ac_cv_c_bigendian=yes
14472fi
14473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14474  conftest.$ac_objext conftest.beam conftest.$ac_ext
14475fi
14476
14477    fi
14478fi
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14480$as_echo "$ac_cv_c_bigendian" >&6; }
14481 case $ac_cv_c_bigendian in #(
14482   yes)
14483     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14484;; #(
14485   no)
14486      ;; #(
14487   universal)
14488
14489$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14490
14491     ;; #(
14492   *)
14493     as_fn_error "unknown endianness
14494 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14495 esac
14496
14497
14498
14499
14500# Check whether --with-system-libunwind was given.
14501if test "${with_system_libunwind+set}" = set; then :
14502  withval=$with_system_libunwind;
14503fi
14504
14505  # If system-libunwind was not specifically set, pick a default setting.
14506  if test x$with_system_libunwind = x; then
14507    case ${target} in
14508      ia64-*-hpux*) with_system_libunwind=yes ;;
14509      *) with_system_libunwind=no ;;
14510    esac
14511  fi
14512  # Based on system-libunwind and target, do we have ipinfo?
14513  if  test x$with_system_libunwind = xyes; then
14514    case ${target} in
14515      ia64-*-*) have_unwind_getipinfo=no ;;
14516      *) have_unwind_getipinfo=yes ;;
14517    esac
14518  else
14519    # Darwin before version 9 does not have _Unwind_GetIPInfo.
14520
14521    case ${target} in
14522      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14523      *) have_unwind_getipinfo=yes ;;
14524    esac
14525
14526  fi
14527
14528  if test x$have_unwind_getipinfo = xyes; then
14529
14530$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14531
14532  fi
14533
14534
14535# Check whether --enable-sjlj-exceptions was given.
14536if test "${enable_sjlj_exceptions+set}" = set; then :
14537  enableval=$enable_sjlj_exceptions; case "$enableval" in
14538   yes|no|auto) ;;
14539   *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14540   esac
14541else
14542  enable_sjlj_exceptions=auto
14543fi
14544
14545
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14547$as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14548if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14549  $as_echo_n "(cached) " >&6
14550else
14551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552/* end confdefs.h.  */
14553
14554void bar ();
14555void clean (int *);
14556void foo ()
14557{
14558  int i __attribute__ ((cleanup (clean)));
14559  bar();
14560}
14561
14562_ACEOF
14563CFLAGS_hold=$CFLAGS
14564CFLAGS="--save-temps -fexceptions"
14565libgo_cv_lib_sjlj_exceptions=unknown
14566if ac_fn_c_try_compile; then :
14567  if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14568    libgo_cv_lib_sjlj_exceptions=yes
14569  elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14570    libgo_cv_lib_sjlj_exceptions=no
14571  fi
14572fi
14573CFLAGS=$CFLAGS_hold
14574rm -f conftest*
14575
14576fi
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14578$as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14579
14580if test "$enable_sjlj_exceptions" = "auto"; then
14581  enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14582fi
14583
14584case $enable_sjlj_exceptions in
14585yes)
14586
14587$as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14588
14589  ;;
14590no)
14591  ;;
14592*)
14593  as_fn_error "unable to detect exception model" "$LINENO" 5
14594  ;;
14595esac
14596
14597for ac_header in sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14598do :
14599  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14600ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14601eval as_val=\$$as_ac_Header
14602   if test "x$as_val" = x""yes; then :
14603  cat >>confdefs.h <<_ACEOF
14604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14605_ACEOF
14606
14607fi
14608
14609done
14610
14611
14612for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
14613do :
14614  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14615ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14616#include <sys/socket.h>
14617#endif
14618
14619"
14620eval as_val=\$$as_ac_Header
14621   if test "x$as_val" = x""yes; then :
14622  cat >>confdefs.h <<_ACEOF
14623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14624_ACEOF
14625
14626fi
14627
14628done
14629
14630
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14632$as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14633if test "${libgo_cv_c_ustat_h+set}" = set; then :
14634  $as_echo_n "(cached) " >&6
14635else
14636  CFLAGS_hold=$CFLAGS
14637CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639/* end confdefs.h.  */
14640
14641#include <sys/types.h>
14642#ifdef HAVE_LINUX_FILTER_H
14643#include <linux/filter.h>
14644#endif
14645#include <ustat.h>
14646
14647_ACEOF
14648if ac_fn_c_try_compile "$LINENO"; then :
14649  libgo_cv_c_ustat_h=yes
14650else
14651  libgo_cv_c_ustat_h=no
14652fi
14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654CFLAGS=$CFLAGS_hold
14655fi
14656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14657$as_echo "$libgo_cv_c_ustat_h" >&6; }
14658if test $libgo_cv_c_ustat_h = yes; then
14659
14660$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14661
14662fi
14663
14664 if test "$ac_cv_header_sys_mman_h" = yes; then
14665  HAVE_SYS_MMAN_H_TRUE=
14666  HAVE_SYS_MMAN_H_FALSE='#'
14667else
14668  HAVE_SYS_MMAN_H_TRUE='#'
14669  HAVE_SYS_MMAN_H_FALSE=
14670fi
14671
14672
14673for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14674do :
14675  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14676ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14677eval as_val=\$$as_ac_var
14678   if test "x$as_val" = x""yes; then :
14679  cat >>confdefs.h <<_ACEOF
14680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681_ACEOF
14682
14683fi
14684done
14685
14686 if test "$ac_cv_func_strerror_r" = yes; then
14687  HAVE_STRERROR_R_TRUE=
14688  HAVE_STRERROR_R_FALSE='#'
14689else
14690  HAVE_STRERROR_R_TRUE='#'
14691  HAVE_STRERROR_R_FALSE=
14692fi
14693
14694 if test "$ac_cv_func_wait4" = yes; then
14695  HAVE_WAIT4_TRUE=
14696  HAVE_WAIT4_FALSE='#'
14697else
14698  HAVE_WAIT4_TRUE='#'
14699  HAVE_WAIT4_FALSE=
14700fi
14701
14702
14703for ac_func in accept4 epoll_create1 faccessat fallocate fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_init1 inotify_rm_watch mkdirat mknodat openat pipe2 renameat sync_file_range splice tee unlinkat unshare utimensat
14704do :
14705  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14706ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14707eval as_val=\$$as_ac_var
14708   if test "x$as_val" = x""yes; then :
14709  cat >>confdefs.h <<_ACEOF
14710#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14711_ACEOF
14712
14713fi
14714done
14715
14716ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14717if test "x$ac_cv_type_off_t" = x""yes; then :
14718
14719else
14720
14721cat >>confdefs.h <<_ACEOF
14722#define off_t long int
14723_ACEOF
14724
14725fi
14726
14727ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14728if test "x$ac_cv_type_loff_t" = x""yes; then :
14729
14730cat >>confdefs.h <<_ACEOF
14731#define HAVE_LOFF_T 1
14732_ACEOF
14733
14734
14735fi
14736
14737
14738LIBS_hold="$LIBS"
14739LIBS="$LIBS -lm"
14740for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14741do :
14742  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14743ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14744eval as_val=\$$as_ac_var
14745   if test "x$as_val" = x""yes; then :
14746  cat >>confdefs.h <<_ACEOF
14747#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14748_ACEOF
14749
14750fi
14751done
14752
14753LIBS="$LIBS_hold"
14754
14755CFLAGS_hold="$CFLAGS"
14756CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14757LIBS_hold="$LIBS"
14758LIBS="$LIBS $PTHREAD_LIBS"
14759for ac_func in sem_timedwait
14760do :
14761  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14762if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14763  cat >>confdefs.h <<_ACEOF
14764#define HAVE_SEM_TIMEDWAIT 1
14765_ACEOF
14766
14767fi
14768done
14769
14770CFLAGS="$CFLAGS_hold"
14771LIBS="$LIBS_hold"
14772
14773LIBS_hold="$LIBS"
14774LIBS="$LIBS $MATH_LIBS"
14775for ac_func in matherr
14776do :
14777  ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14778if test "x$ac_cv_func_matherr" = x""yes; then :
14779  cat >>confdefs.h <<_ACEOF
14780#define HAVE_MATHERR 1
14781_ACEOF
14782
14783fi
14784done
14785
14786LIBS="$LIBS_hold"
14787
14788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14789$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14790if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14791  $as_echo_n "(cached) " >&6
14792else
14793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794/* end confdefs.h.  */
14795
14796typedef unsigned int uint32  __attribute__ ((mode (SI)));
14797uint32 i;
14798int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14799
14800_ACEOF
14801if ac_fn_c_try_link "$LINENO"; then :
14802  libgo_cv_func___sync_bool_compare_and_swap_4=yes
14803else
14804  libgo_cv_func___sync_bool_compare_and_swap_4=no
14805fi
14806rm -f core conftest.err conftest.$ac_objext \
14807    conftest$ac_exeext conftest.$ac_ext
14808fi
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14810$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14811if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14812
14813$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14814
14815fi
14816
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14818$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14819if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14820  $as_echo_n "(cached) " >&6
14821else
14822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823/* end confdefs.h.  */
14824
14825typedef unsigned int uint64  __attribute__ ((mode (DI)));
14826uint64 i;
14827int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14828
14829_ACEOF
14830if ac_fn_c_try_link "$LINENO"; then :
14831  libgo_cv_func___sync_bool_compare_and_swap_8=yes
14832else
14833  libgo_cv_func___sync_bool_compare_and_swap_8=no
14834fi
14835rm -f core conftest.err conftest.$ac_objext \
14836    conftest$ac_exeext conftest.$ac_ext
14837fi
14838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14839$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14840if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14841
14842$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14843
14844fi
14845
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14847$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14848if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853
14854typedef unsigned int uint32  __attribute__ ((mode (SI)));
14855uint32 i;
14856int main() { return __sync_fetch_and_add (&i, 1); }
14857
14858_ACEOF
14859if ac_fn_c_try_link "$LINENO"; then :
14860  libgo_cv_func___sync_fetch_and_add_4=yes
14861else
14862  libgo_cv_func___sync_fetch_and_add_4=no
14863fi
14864rm -f core conftest.err conftest.$ac_objext \
14865    conftest$ac_exeext conftest.$ac_ext
14866fi
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14868$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14869if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14870
14871$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14872
14873fi
14874
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14876$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14877if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14878  $as_echo_n "(cached) " >&6
14879else
14880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881/* end confdefs.h.  */
14882
14883typedef unsigned int uint64  __attribute__ ((mode (DI)));
14884uint64 i;
14885int main() { return __sync_add_and_fetch (&i, 1); }
14886
14887_ACEOF
14888if ac_fn_c_try_link "$LINENO"; then :
14889  libgo_cv_func___sync_add_and_fetch_8=yes
14890else
14891  libgo_cv_func___sync_add_and_fetch_8=no
14892fi
14893rm -f core conftest.err conftest.$ac_objext \
14894    conftest$ac_exeext conftest.$ac_ext
14895fi
14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14897$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14898if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14899
14900$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14901
14902fi
14903
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14905$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14906if test "${libgo_cv_c_stringops+set}" = set; then :
14907  $as_echo_n "(cached) " >&6
14908else
14909  CFLAGS_hold=$CFLAGS
14910CFLAGS="$CFLAGS -minline-all-stringops"
14911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912/* end confdefs.h.  */
14913int i;
14914_ACEOF
14915if ac_fn_c_try_compile "$LINENO"; then :
14916  libgo_cv_c_stringops=yes
14917else
14918  libgo_cv_c_stringops=no
14919fi
14920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921CFLAGS=$CFLAGS_hold
14922fi
14923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14924$as_echo "$libgo_cv_c_stringops" >&6; }
14925STRINGOPS_FLAG=
14926if test "$libgo_cv_c_stringops" = yes; then
14927  STRINGOPS_FLAG=-minline-all-stringops
14928fi
14929
14930
14931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14932$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14933if test "${libgo_cv_c_fancymath+set}" = set; then :
14934  $as_echo_n "(cached) " >&6
14935else
14936  CFLAGS_hold=$CFLAGS
14937CFLAGS="$CFLAGS -mfancy-math-387"
14938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939/* end confdefs.h.  */
14940int i;
14941_ACEOF
14942if ac_fn_c_try_compile "$LINENO"; then :
14943  libgo_cv_c_fancymath=yes
14944else
14945  libgo_cv_c_fancymath=no
14946fi
14947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948CFLAGS=$CFLAGS_hold
14949fi
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14951$as_echo "$libgo_cv_c_fancymath" >&6; }
14952MATH_FLAG=
14953if test "$libgo_cv_c_fancymath" = yes; then
14954  MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14955fi
14956
14957
14958CFLAGS_hold=$CFLAGS
14959CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14960ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14961if test "x$ac_cv_type_off64_t" = x""yes; then :
14962
14963cat >>confdefs.h <<_ACEOF
14964#define HAVE_OFF64_T 1
14965_ACEOF
14966
14967
14968fi
14969
14970CFLAGS=$CFLAGS_hold
14971
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14973$as_echo_n "checking epoll_event size... " >&6; }
14974if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14975  $as_echo_n "(cached) " >&6
14976else
14977  if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size"        "#include <sys/epoll.h>"; then :
14978
14979else
14980  libgo_cv_c_epoll_event_size=0
14981fi
14982
14983fi
14984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14985$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14986SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14987
14988
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14990$as_echo_n "checking epoll_event data.fd offset... " >&6; }
14991if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14992  $as_echo_n "(cached) " >&6
14993else
14994  if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset"        "#include <stddef.h>
14995#include <sys/epoll.h>"; then :
14996
14997else
14998  libgo_cv_c_epoll_event_fd_offset=0
14999fi
15000
15001fi
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15003$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15004STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15005
15006
15007ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15008"
15009if test "x$ac_cv_type_struct_exception" = x""yes; then :
15010  libgo_has_struct_exception=yes
15011else
15012  libgo_has_struct_exception=no
15013fi
15014
15015if test "$libgo_has_struct_exception" = "yes"; then
15016
15017$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15018
15019fi
15020
15021case "$target" in
15022  sparc*-*-solaris2.[89]*)
15023    libgo_cv_lib_makecontext_stack_top=yes
15024    ;;
15025  *)
15026    libgo_cv_lib_makecontext_stack_top=no
15027    ;;
15028esac
15029if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
15030
15031$as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
15032
15033fi
15034
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15036$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15037if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15038  $as_echo_n "(cached) " >&6
15039else
15040  CFLAGS_hold="$CFLAGS"
15041CFLAGS="$PTHREAD_CFLAGS"
15042LIBS_hold="$LIBS"
15043LIBS="$LIBS $PTHREAD_LIBS"
15044# The cast to long int works around a bug in the HP C Compiler
15045# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15046# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15047# This bug is HP SR number 8606223364.
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15049$as_echo_n "checking size of void *... " >&6; }
15050if test "${ac_cv_sizeof_void_p+set}" = set; then :
15051  $as_echo_n "(cached) " >&6
15052else
15053  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15054
15055else
15056  if test "$ac_cv_type_void_p" = yes; then
15057     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15059{ as_fn_set_status 77
15060as_fn_error "cannot compute sizeof (void *)
15061See \`config.log' for more details." "$LINENO" 5; }; }
15062   else
15063     ac_cv_sizeof_void_p=0
15064   fi
15065fi
15066
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15069$as_echo "$ac_cv_sizeof_void_p" >&6; }
15070
15071
15072
15073cat >>confdefs.h <<_ACEOF
15074#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15075_ACEOF
15076
15077
15078as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15079if test "$cross_compiling" = yes; then :
15080  case "$target:$ptr_type_size" in
15081  i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15082    libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15083  *)
15084    libgo_cv_lib_setcontext_clobbers_tls=no ;;
15085 esac
15086
15087else
15088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089/* end confdefs.h.  */
15090
15091#include <pthread.h>
15092#include <stdlib.h>
15093#include <ucontext.h>
15094#include <unistd.h>
15095
15096__thread int tls;
15097
15098static char stack[10 * 1024 * 1024];
15099static ucontext_t c;
15100
15101/* Called via makecontext/setcontext.  */
15102
15103static void
15104cfn (void)
15105{
15106  exit (tls);
15107}
15108
15109/* Called via pthread_create.  */
15110
15111static void *
15112tfn (void *dummy)
15113{
15114  /* The thread should still see this value after calling
15115     setcontext.  */
15116  tls = 0;
15117
15118  setcontext (&c);
15119
15120  /* The call to setcontext should not return.  */
15121  abort ();
15122}
15123
15124int
15125main ()
15126{
15127  pthread_t tid;
15128
15129  /* The thread should not see this value.  */
15130  tls = 1;
15131
15132  if (getcontext (&c) < 0)
15133    abort ();
15134
15135  c.uc_stack.ss_sp = stack;
15136#ifdef MAKECONTEXT_STACK_TOP
15137  c.uc_stack.ss_sp += sizeof stack;
15138#endif
15139  c.uc_stack.ss_flags = 0;
15140  c.uc_stack.ss_size = sizeof stack;
15141  c.uc_link = NULL;
15142  makecontext (&c, cfn, 0);
15143
15144  if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15145    abort ();
15146
15147  if (pthread_join (tid, NULL) != 0)
15148    abort ();
15149
15150  /* The thread should have called exit.  */
15151  abort ();
15152}
15153
15154_ACEOF
15155if ac_fn_c_try_run "$LINENO"; then :
15156  libgo_cv_lib_setcontext_clobbers_tls=no
15157else
15158  libgo_cv_lib_setcontext_clobbers_tls=yes
15159fi
15160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15161  conftest.$ac_objext conftest.beam conftest.$ac_ext
15162fi
15163
15164CFLAGS="$CFLAGS_hold"
15165LIBS="$LIBS_hold"
15166
15167fi
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15169$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15170if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15171
15172$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15173
15174fi
15175
15176cat >confcache <<\_ACEOF
15177# This file is a shell script that caches the results of configure
15178# tests run on this system so they can be shared between configure
15179# scripts and configure runs, see configure's option --config-cache.
15180# It is not useful on other systems.  If it contains results you don't
15181# want to keep, you may remove or edit it.
15182#
15183# config.status only pays attention to the cache file if you give it
15184# the --recheck option to rerun configure.
15185#
15186# `ac_cv_env_foo' variables (set or unset) will be overridden when
15187# loading this file, other *unset* `ac_cv_foo' will be assigned the
15188# following values.
15189
15190_ACEOF
15191
15192# The following way of writing the cache mishandles newlines in values,
15193# but we know of no workaround that is simple, portable, and efficient.
15194# So, we kill variables containing newlines.
15195# Ultrix sh set writes to stderr and can't be redirected directly,
15196# and sets the high bit in the cache file unless we assign to the vars.
15197(
15198  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15199    eval ac_val=\$$ac_var
15200    case $ac_val in #(
15201    *${as_nl}*)
15202      case $ac_var in #(
15203      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15205      esac
15206      case $ac_var in #(
15207      _ | IFS | as_nl) ;; #(
15208      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15209      *) { eval $ac_var=; unset $ac_var;} ;;
15210      esac ;;
15211    esac
15212  done
15213
15214  (set) 2>&1 |
15215    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15216    *${as_nl}ac_space=\ *)
15217      # `set' does not quote correctly, so add quotes: double-quote
15218      # substitution turns \\\\ into \\, and sed turns \\ into \.
15219      sed -n \
15220	"s/'/'\\\\''/g;
15221	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15222      ;; #(
15223    *)
15224      # `set' quotes correctly as required by POSIX, so do not add quotes.
15225      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15226      ;;
15227    esac |
15228    sort
15229) |
15230  sed '
15231     /^ac_cv_env_/b end
15232     t clear
15233     :clear
15234     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15235     t end
15236     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15237     :end' >>confcache
15238if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15239  if test -w "$cache_file"; then
15240    test "x$cache_file" != "x/dev/null" &&
15241      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15242$as_echo "$as_me: updating cache $cache_file" >&6;}
15243    cat confcache >$cache_file
15244  else
15245    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15246$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15247  fi
15248fi
15249rm -f confcache
15250
15251if test ${multilib} = yes; then
15252  multilib_arg="--enable-multilib"
15253else
15254  multilib_arg=
15255fi
15256
15257ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15258
15259
15260ac_config_commands="$ac_config_commands default"
15261
15262
15263cat >confcache <<\_ACEOF
15264# This file is a shell script that caches the results of configure
15265# tests run on this system so they can be shared between configure
15266# scripts and configure runs, see configure's option --config-cache.
15267# It is not useful on other systems.  If it contains results you don't
15268# want to keep, you may remove or edit it.
15269#
15270# config.status only pays attention to the cache file if you give it
15271# the --recheck option to rerun configure.
15272#
15273# `ac_cv_env_foo' variables (set or unset) will be overridden when
15274# loading this file, other *unset* `ac_cv_foo' will be assigned the
15275# following values.
15276
15277_ACEOF
15278
15279# The following way of writing the cache mishandles newlines in values,
15280# but we know of no workaround that is simple, portable, and efficient.
15281# So, we kill variables containing newlines.
15282# Ultrix sh set writes to stderr and can't be redirected directly,
15283# and sets the high bit in the cache file unless we assign to the vars.
15284(
15285  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15286    eval ac_val=\$$ac_var
15287    case $ac_val in #(
15288    *${as_nl}*)
15289      case $ac_var in #(
15290      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15292      esac
15293      case $ac_var in #(
15294      _ | IFS | as_nl) ;; #(
15295      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15296      *) { eval $ac_var=; unset $ac_var;} ;;
15297      esac ;;
15298    esac
15299  done
15300
15301  (set) 2>&1 |
15302    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15303    *${as_nl}ac_space=\ *)
15304      # `set' does not quote correctly, so add quotes: double-quote
15305      # substitution turns \\\\ into \\, and sed turns \\ into \.
15306      sed -n \
15307	"s/'/'\\\\''/g;
15308	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15309      ;; #(
15310    *)
15311      # `set' quotes correctly as required by POSIX, so do not add quotes.
15312      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15313      ;;
15314    esac |
15315    sort
15316) |
15317  sed '
15318     /^ac_cv_env_/b end
15319     t clear
15320     :clear
15321     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15322     t end
15323     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15324     :end' >>confcache
15325if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15326  if test -w "$cache_file"; then
15327    test "x$cache_file" != "x/dev/null" &&
15328      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15329$as_echo "$as_me: updating cache $cache_file" >&6;}
15330    cat confcache >$cache_file
15331  else
15332    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15333$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15334  fi
15335fi
15336rm -f confcache
15337
15338test "x$prefix" = xNONE && prefix=$ac_default_prefix
15339# Let make expand exec_prefix.
15340test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15341
15342DEFS=-DHAVE_CONFIG_H
15343
15344ac_libobjs=
15345ac_ltlibobjs=
15346for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15347  # 1. Remove the extension, and $U if already installed.
15348  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15349  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15350  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15351  #    will be set to the directory where LIBOBJS objects are built.
15352  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15353  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15354done
15355LIBOBJS=$ac_libobjs
15356
15357LTLIBOBJS=$ac_ltlibobjs
15358
15359
15360 if test -n "$EXEEXT"; then
15361  am__EXEEXT_TRUE=
15362  am__EXEEXT_FALSE='#'
15363else
15364  am__EXEEXT_TRUE='#'
15365  am__EXEEXT_FALSE=
15366fi
15367
15368if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15369  as_fn_error "conditional \"AMDEP\" was never defined.
15370Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371fi
15372if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15373  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15374Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375fi
15376if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15377  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15378Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379fi
15380if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15381  as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15382Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383fi
15384if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15385  as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15386Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387fi
15388if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15389  as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15390Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391fi
15392if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15393  as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15394Usually this means the macro was only invoked conditionally." "$LINENO" 5
15395fi
15396if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15397  as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15398Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399fi
15400if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15401  as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15402Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403fi
15404if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15405  as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15406Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407fi
15408if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15409  as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15410Usually this means the macro was only invoked conditionally." "$LINENO" 5
15411fi
15412if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15413  as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15414Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415fi
15416if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15417  as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15418Usually this means the macro was only invoked conditionally." "$LINENO" 5
15419fi
15420if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15421  as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15422Usually this means the macro was only invoked conditionally." "$LINENO" 5
15423fi
15424if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15425  as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15426Usually this means the macro was only invoked conditionally." "$LINENO" 5
15427fi
15428if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15429  as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15430Usually this means the macro was only invoked conditionally." "$LINENO" 5
15431fi
15432if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15433  as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15434Usually this means the macro was only invoked conditionally." "$LINENO" 5
15435fi
15436if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15437  as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15438Usually this means the macro was only invoked conditionally." "$LINENO" 5
15439fi
15440if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15441  as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15442Usually this means the macro was only invoked conditionally." "$LINENO" 5
15443fi
15444if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15445  as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15446Usually this means the macro was only invoked conditionally." "$LINENO" 5
15447fi
15448if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15449  as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15450Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451fi
15452if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15453  as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15454Usually this means the macro was only invoked conditionally." "$LINENO" 5
15455fi
15456if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15457  as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15458Usually this means the macro was only invoked conditionally." "$LINENO" 5
15459fi
15460if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15461  as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15462Usually this means the macro was only invoked conditionally." "$LINENO" 5
15463fi
15464if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15465  as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15466Usually this means the macro was only invoked conditionally." "$LINENO" 5
15467fi
15468if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15469  as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15470Usually this means the macro was only invoked conditionally." "$LINENO" 5
15471fi
15472
15473if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15474  as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15475Usually this means the macro was only invoked conditionally." "$LINENO" 5
15476fi
15477if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15478  as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15479Usually this means the macro was only invoked conditionally." "$LINENO" 5
15480fi
15481if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15482  as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15483Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484fi
15485
15486: ${CONFIG_STATUS=./config.status}
15487ac_write_fail=0
15488ac_clean_files_save=$ac_clean_files
15489ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15490{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15491$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15492as_write_fail=0
15493cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15494#! $SHELL
15495# Generated by $as_me.
15496# Run this file to recreate the current configuration.
15497# Compiler output produced by configure, useful for debugging
15498# configure, is in config.log if it exists.
15499
15500debug=false
15501ac_cs_recheck=false
15502ac_cs_silent=false
15503
15504SHELL=\${CONFIG_SHELL-$SHELL}
15505export SHELL
15506_ASEOF
15507cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15508## -------------------- ##
15509## M4sh Initialization. ##
15510## -------------------- ##
15511
15512# Be more Bourne compatible
15513DUALCASE=1; export DUALCASE # for MKS sh
15514if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15515  emulate sh
15516  NULLCMD=:
15517  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15518  # is contrary to our usage.  Disable this feature.
15519  alias -g '${1+"$@"}'='"$@"'
15520  setopt NO_GLOB_SUBST
15521else
15522  case `(set -o) 2>/dev/null` in #(
15523  *posix*) :
15524    set -o posix ;; #(
15525  *) :
15526     ;;
15527esac
15528fi
15529
15530
15531as_nl='
15532'
15533export as_nl
15534# Printing a long string crashes Solaris 7 /usr/bin/printf.
15535as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15536as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15537as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15538# Prefer a ksh shell builtin over an external printf program on Solaris,
15539# but without wasting forks for bash or zsh.
15540if test -z "$BASH_VERSION$ZSH_VERSION" \
15541    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15542  as_echo='print -r --'
15543  as_echo_n='print -rn --'
15544elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15545  as_echo='printf %s\n'
15546  as_echo_n='printf %s'
15547else
15548  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15549    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15550    as_echo_n='/usr/ucb/echo -n'
15551  else
15552    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15553    as_echo_n_body='eval
15554      arg=$1;
15555      case $arg in #(
15556      *"$as_nl"*)
15557	expr "X$arg" : "X\\(.*\\)$as_nl";
15558	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15559      esac;
15560      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15561    '
15562    export as_echo_n_body
15563    as_echo_n='sh -c $as_echo_n_body as_echo'
15564  fi
15565  export as_echo_body
15566  as_echo='sh -c $as_echo_body as_echo'
15567fi
15568
15569# The user is always right.
15570if test "${PATH_SEPARATOR+set}" != set; then
15571  PATH_SEPARATOR=:
15572  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15573    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15574      PATH_SEPARATOR=';'
15575  }
15576fi
15577
15578
15579# IFS
15580# We need space, tab and new line, in precisely that order.  Quoting is
15581# there to prevent editors from complaining about space-tab.
15582# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15583# splitting by setting IFS to empty value.)
15584IFS=" ""	$as_nl"
15585
15586# Find who we are.  Look in the path if we contain no directory separator.
15587case $0 in #((
15588  *[\\/]* ) as_myself=$0 ;;
15589  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15590for as_dir in $PATH
15591do
15592  IFS=$as_save_IFS
15593  test -z "$as_dir" && as_dir=.
15594    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15595  done
15596IFS=$as_save_IFS
15597
15598     ;;
15599esac
15600# We did not find ourselves, most probably we were run as `sh COMMAND'
15601# in which case we are not to be found in the path.
15602if test "x$as_myself" = x; then
15603  as_myself=$0
15604fi
15605if test ! -f "$as_myself"; then
15606  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15607  exit 1
15608fi
15609
15610# Unset variables that we do not need and which cause bugs (e.g. in
15611# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15612# suppresses any "Segmentation fault" message there.  '((' could
15613# trigger a bug in pdksh 5.2.14.
15614for as_var in BASH_ENV ENV MAIL MAILPATH
15615do eval test x\${$as_var+set} = xset \
15616  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15617done
15618PS1='$ '
15619PS2='> '
15620PS4='+ '
15621
15622# NLS nuisances.
15623LC_ALL=C
15624export LC_ALL
15625LANGUAGE=C
15626export LANGUAGE
15627
15628# CDPATH.
15629(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15630
15631
15632# as_fn_error ERROR [LINENO LOG_FD]
15633# ---------------------------------
15634# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15635# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15636# script with status $?, using 1 if that was 0.
15637as_fn_error ()
15638{
15639  as_status=$?; test $as_status -eq 0 && as_status=1
15640  if test "$3"; then
15641    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15642    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15643  fi
15644  $as_echo "$as_me: error: $1" >&2
15645  as_fn_exit $as_status
15646} # as_fn_error
15647
15648
15649# as_fn_set_status STATUS
15650# -----------------------
15651# Set $? to STATUS, without forking.
15652as_fn_set_status ()
15653{
15654  return $1
15655} # as_fn_set_status
15656
15657# as_fn_exit STATUS
15658# -----------------
15659# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15660as_fn_exit ()
15661{
15662  set +e
15663  as_fn_set_status $1
15664  exit $1
15665} # as_fn_exit
15666
15667# as_fn_unset VAR
15668# ---------------
15669# Portably unset VAR.
15670as_fn_unset ()
15671{
15672  { eval $1=; unset $1;}
15673}
15674as_unset=as_fn_unset
15675# as_fn_append VAR VALUE
15676# ----------------------
15677# Append the text in VALUE to the end of the definition contained in VAR. Take
15678# advantage of any shell optimizations that allow amortized linear growth over
15679# repeated appends, instead of the typical quadratic growth present in naive
15680# implementations.
15681if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15682  eval 'as_fn_append ()
15683  {
15684    eval $1+=\$2
15685  }'
15686else
15687  as_fn_append ()
15688  {
15689    eval $1=\$$1\$2
15690  }
15691fi # as_fn_append
15692
15693# as_fn_arith ARG...
15694# ------------------
15695# Perform arithmetic evaluation on the ARGs, and store the result in the
15696# global $as_val. Take advantage of shells that can avoid forks. The arguments
15697# must be portable across $(()) and expr.
15698if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15699  eval 'as_fn_arith ()
15700  {
15701    as_val=$(( $* ))
15702  }'
15703else
15704  as_fn_arith ()
15705  {
15706    as_val=`expr "$@" || test $? -eq 1`
15707  }
15708fi # as_fn_arith
15709
15710
15711if expr a : '\(a\)' >/dev/null 2>&1 &&
15712   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15713  as_expr=expr
15714else
15715  as_expr=false
15716fi
15717
15718if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15719  as_basename=basename
15720else
15721  as_basename=false
15722fi
15723
15724if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15725  as_dirname=dirname
15726else
15727  as_dirname=false
15728fi
15729
15730as_me=`$as_basename -- "$0" ||
15731$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15732	 X"$0" : 'X\(//\)$' \| \
15733	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15734$as_echo X/"$0" |
15735    sed '/^.*\/\([^/][^/]*\)\/*$/{
15736	    s//\1/
15737	    q
15738	  }
15739	  /^X\/\(\/\/\)$/{
15740	    s//\1/
15741	    q
15742	  }
15743	  /^X\/\(\/\).*/{
15744	    s//\1/
15745	    q
15746	  }
15747	  s/.*/./; q'`
15748
15749# Avoid depending upon Character Ranges.
15750as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15751as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15752as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15753as_cr_digits='0123456789'
15754as_cr_alnum=$as_cr_Letters$as_cr_digits
15755
15756ECHO_C= ECHO_N= ECHO_T=
15757case `echo -n x` in #(((((
15758-n*)
15759  case `echo 'xy\c'` in
15760  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15761  xy)  ECHO_C='\c';;
15762  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15763       ECHO_T='	';;
15764  esac;;
15765*)
15766  ECHO_N='-n';;
15767esac
15768
15769rm -f conf$$ conf$$.exe conf$$.file
15770if test -d conf$$.dir; then
15771  rm -f conf$$.dir/conf$$.file
15772else
15773  rm -f conf$$.dir
15774  mkdir conf$$.dir 2>/dev/null
15775fi
15776if (echo >conf$$.file) 2>/dev/null; then
15777  if ln -s conf$$.file conf$$ 2>/dev/null; then
15778    as_ln_s='ln -s'
15779    # ... but there are two gotchas:
15780    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15781    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15782    # In both cases, we have to default to `cp -p'.
15783    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15784      as_ln_s='cp -p'
15785  elif ln conf$$.file conf$$ 2>/dev/null; then
15786    as_ln_s=ln
15787  else
15788    as_ln_s='cp -p'
15789  fi
15790else
15791  as_ln_s='cp -p'
15792fi
15793rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15794rmdir conf$$.dir 2>/dev/null
15795
15796
15797# as_fn_mkdir_p
15798# -------------
15799# Create "$as_dir" as a directory, including parents if necessary.
15800as_fn_mkdir_p ()
15801{
15802
15803  case $as_dir in #(
15804  -*) as_dir=./$as_dir;;
15805  esac
15806  test -d "$as_dir" || eval $as_mkdir_p || {
15807    as_dirs=
15808    while :; do
15809      case $as_dir in #(
15810      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15811      *) as_qdir=$as_dir;;
15812      esac
15813      as_dirs="'$as_qdir' $as_dirs"
15814      as_dir=`$as_dirname -- "$as_dir" ||
15815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15816	 X"$as_dir" : 'X\(//\)[^/]' \| \
15817	 X"$as_dir" : 'X\(//\)$' \| \
15818	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15819$as_echo X"$as_dir" |
15820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15821	    s//\1/
15822	    q
15823	  }
15824	  /^X\(\/\/\)[^/].*/{
15825	    s//\1/
15826	    q
15827	  }
15828	  /^X\(\/\/\)$/{
15829	    s//\1/
15830	    q
15831	  }
15832	  /^X\(\/\).*/{
15833	    s//\1/
15834	    q
15835	  }
15836	  s/.*/./; q'`
15837      test -d "$as_dir" && break
15838    done
15839    test -z "$as_dirs" || eval "mkdir $as_dirs"
15840  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15841
15842
15843} # as_fn_mkdir_p
15844if mkdir -p . 2>/dev/null; then
15845  as_mkdir_p='mkdir -p "$as_dir"'
15846else
15847  test -d ./-p && rmdir ./-p
15848  as_mkdir_p=false
15849fi
15850
15851if test -x / >/dev/null 2>&1; then
15852  as_test_x='test -x'
15853else
15854  if ls -dL / >/dev/null 2>&1; then
15855    as_ls_L_option=L
15856  else
15857    as_ls_L_option=
15858  fi
15859  as_test_x='
15860    eval sh -c '\''
15861      if test -d "$1"; then
15862	test -d "$1/.";
15863      else
15864	case $1 in #(
15865	-*)set "./$1";;
15866	esac;
15867	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15868	???[sx]*):;;*)false;;esac;fi
15869    '\'' sh
15870  '
15871fi
15872as_executable_p=$as_test_x
15873
15874# Sed expression to map a string onto a valid CPP name.
15875as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15876
15877# Sed expression to map a string onto a valid variable name.
15878as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15879
15880
15881exec 6>&1
15882## ----------------------------------- ##
15883## Main body of $CONFIG_STATUS script. ##
15884## ----------------------------------- ##
15885_ASEOF
15886test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15887
15888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889# Save the log message, to keep $0 and so on meaningful, and to
15890# report actual input values of CONFIG_FILES etc. instead of their
15891# values after options handling.
15892ac_log="
15893This file was extended by package-unused $as_me version-unused, which was
15894generated by GNU Autoconf 2.64.  Invocation command line was
15895
15896  CONFIG_FILES    = $CONFIG_FILES
15897  CONFIG_HEADERS  = $CONFIG_HEADERS
15898  CONFIG_LINKS    = $CONFIG_LINKS
15899  CONFIG_COMMANDS = $CONFIG_COMMANDS
15900  $ $0 $@
15901
15902on `(hostname || uname -n) 2>/dev/null | sed 1q`
15903"
15904
15905_ACEOF
15906
15907case $ac_config_files in *"
15908"*) set x $ac_config_files; shift; ac_config_files=$*;;
15909esac
15910
15911case $ac_config_headers in *"
15912"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15913esac
15914
15915
15916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15917# Files that config.status was made for.
15918config_files="$ac_config_files"
15919config_headers="$ac_config_headers"
15920config_commands="$ac_config_commands"
15921
15922_ACEOF
15923
15924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925ac_cs_usage="\
15926\`$as_me' instantiates files and other configuration actions
15927from templates according to the current configuration.  Unless the files
15928and actions are specified as TAGs, all are instantiated by default.
15929
15930Usage: $0 [OPTION]... [TAG]...
15931
15932  -h, --help       print this help, then exit
15933  -V, --version    print version number and configuration settings, then exit
15934  -q, --quiet, --silent
15935                   do not print progress messages
15936  -d, --debug      don't remove temporary files
15937      --recheck    update $as_me by reconfiguring in the same conditions
15938      --file=FILE[:TEMPLATE]
15939                   instantiate the configuration file FILE
15940      --header=FILE[:TEMPLATE]
15941                   instantiate the configuration header FILE
15942
15943Configuration files:
15944$config_files
15945
15946Configuration headers:
15947$config_headers
15948
15949Configuration commands:
15950$config_commands
15951
15952Report bugs to the package provider."
15953
15954_ACEOF
15955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956ac_cs_version="\\
15957package-unused config.status version-unused
15958configured by $0, generated by GNU Autoconf 2.64,
15959  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15960
15961Copyright (C) 2009 Free Software Foundation, Inc.
15962This config.status script is free software; the Free Software Foundation
15963gives unlimited permission to copy, distribute and modify it."
15964
15965ac_pwd='$ac_pwd'
15966srcdir='$srcdir'
15967INSTALL='$INSTALL'
15968MKDIR_P='$MKDIR_P'
15969AWK='$AWK'
15970test -n "\$AWK" || AWK=awk
15971_ACEOF
15972
15973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974# The default lists apply if the user does not specify any file.
15975ac_need_defaults=:
15976while test $# != 0
15977do
15978  case $1 in
15979  --*=*)
15980    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15981    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15982    ac_shift=:
15983    ;;
15984  *)
15985    ac_option=$1
15986    ac_optarg=$2
15987    ac_shift=shift
15988    ;;
15989  esac
15990
15991  case $ac_option in
15992  # Handling of the options.
15993  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15994    ac_cs_recheck=: ;;
15995  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15996    $as_echo "$ac_cs_version"; exit ;;
15997  --debug | --debu | --deb | --de | --d | -d )
15998    debug=: ;;
15999  --file | --fil | --fi | --f )
16000    $ac_shift
16001    case $ac_optarg in
16002    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16003    esac
16004    as_fn_append CONFIG_FILES " '$ac_optarg'"
16005    ac_need_defaults=false;;
16006  --header | --heade | --head | --hea )
16007    $ac_shift
16008    case $ac_optarg in
16009    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16010    esac
16011    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16012    ac_need_defaults=false;;
16013  --he | --h)
16014    # Conflict between --help and --header
16015    as_fn_error "ambiguous option: \`$1'
16016Try \`$0 --help' for more information.";;
16017  --help | --hel | -h )
16018    $as_echo "$ac_cs_usage"; exit ;;
16019  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16020  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16021    ac_cs_silent=: ;;
16022
16023  # This is an error.
16024  -*) as_fn_error "unrecognized option: \`$1'
16025Try \`$0 --help' for more information." ;;
16026
16027  *) as_fn_append ac_config_targets " $1"
16028     ac_need_defaults=false ;;
16029
16030  esac
16031  shift
16032done
16033
16034ac_configure_extra_args=
16035
16036if $ac_cs_silent; then
16037  exec 6>/dev/null
16038  ac_configure_extra_args="$ac_configure_extra_args --silent"
16039fi
16040
16041_ACEOF
16042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043if \$ac_cs_recheck; then
16044  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16045  shift
16046  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16047  CONFIG_SHELL='$SHELL'
16048  export CONFIG_SHELL
16049  exec "\$@"
16050fi
16051
16052_ACEOF
16053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16054exec 5>>config.log
16055{
16056  echo
16057  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16058## Running $as_me. ##
16059_ASBOX
16060  $as_echo "$ac_log"
16061} >&5
16062
16063_ACEOF
16064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16065#
16066# INIT-COMMANDS
16067#
16068
16069srcdir="$srcdir"
16070host="$host"
16071target="$target"
16072with_multisubdir="$with_multisubdir"
16073with_multisrctop="$with_multisrctop"
16074with_target_subdir="$with_target_subdir"
16075ac_configure_args="${multilib_arg} ${ac_configure_args}"
16076multi_basedir="$multi_basedir"
16077CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16078CC="$CC"
16079CXX="$CXX"
16080GFORTRAN="$GFORTRAN"
16081GCJ="$GCJ"
16082AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16083
16084
16085# The HP-UX ksh and POSIX shell print the target directory to stdout
16086# if CDPATH is set.
16087(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16088
16089sed_quote_subst='$sed_quote_subst'
16090double_quote_subst='$double_quote_subst'
16091delay_variable_subst='$delay_variable_subst'
16092SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16093Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16094GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16095EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16096FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16097SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16098ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16099LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16100macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16101macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16102enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16103enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16104pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16105enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16106host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16107host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16108host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16109build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16110build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16111build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16112NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16113LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16114max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16115ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16116exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16117lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16118lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16119lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16120reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16121reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16122OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16123deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16124file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16125AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16126AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16127STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16128RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16129old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16130old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16131old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16132lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16133CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16134CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16135compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16136GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16137lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16138lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16139lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16140lt_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"`'
16141objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16142MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16143lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16144lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16145lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16146lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16147lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16148need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16149DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16150NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16151LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16152OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16153OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16154libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16155shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16156extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16157archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16158enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16159export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16160whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16161compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16162old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16163old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16164archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16165archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16166module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16167module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16168with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16169allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16170no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16171hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16172hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16173hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16174hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16175hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16176hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16177hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16178hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16179inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16180link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16181fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16182always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16183export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16184exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16185include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16186prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16187file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16188variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16189need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16190need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16191version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16192runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16193shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16194shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16195libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16196library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16197soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16198install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16199postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16200postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16201finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16202finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16203hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16204sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16205sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16206hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16207enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16208enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16209enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16210old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16211striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16212LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16213reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16214reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16215old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16216compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16217GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16218lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16219lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16220lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16221lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16222lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16223archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16224enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16225export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16226whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16227compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16228old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16229old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16230archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16231archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16232module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16233module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16234with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16235allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16236no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16237hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16238hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16239hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16240hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16241hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16242hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16243hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16244hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16245inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16246link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16247fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16248always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16249export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16250exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16251include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16252prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16253file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16254hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16255
16256LTCC='$LTCC'
16257LTCFLAGS='$LTCFLAGS'
16258compiler='$compiler_DEFAULT'
16259
16260# A function that is used when there is no print builtin or printf.
16261func_fallback_echo ()
16262{
16263  eval 'cat <<_LTECHO_EOF
16264\$1
16265_LTECHO_EOF'
16266}
16267
16268# Quote evaled strings.
16269for var in SED \
16270GREP \
16271EGREP \
16272FGREP \
16273SHELL \
16274ECHO \
16275LD \
16276NM \
16277LN_S \
16278lt_SP2NL \
16279lt_NL2SP \
16280reload_flag \
16281OBJDUMP \
16282deplibs_check_method \
16283file_magic_cmd \
16284AR \
16285AR_FLAGS \
16286STRIP \
16287RANLIB \
16288CC \
16289CFLAGS \
16290compiler \
16291lt_cv_sys_global_symbol_pipe \
16292lt_cv_sys_global_symbol_to_cdecl \
16293lt_cv_sys_global_symbol_to_c_name_address \
16294lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16295lt_prog_compiler_no_builtin_flag \
16296lt_prog_compiler_wl \
16297lt_prog_compiler_pic \
16298lt_prog_compiler_static \
16299lt_cv_prog_compiler_c_o \
16300need_locks \
16301DSYMUTIL \
16302NMEDIT \
16303LIPO \
16304OTOOL \
16305OTOOL64 \
16306shrext_cmds \
16307export_dynamic_flag_spec \
16308whole_archive_flag_spec \
16309compiler_needs_object \
16310with_gnu_ld \
16311allow_undefined_flag \
16312no_undefined_flag \
16313hardcode_libdir_flag_spec \
16314hardcode_libdir_flag_spec_ld \
16315hardcode_libdir_separator \
16316fix_srcfile_path \
16317exclude_expsyms \
16318include_expsyms \
16319file_list_spec \
16320variables_saved_for_relink \
16321libname_spec \
16322library_names_spec \
16323soname_spec \
16324install_override_mode \
16325finish_eval \
16326old_striplib \
16327striplib \
16328LD_GO \
16329reload_flag_GO \
16330compiler_GO \
16331lt_prog_compiler_no_builtin_flag_GO \
16332lt_prog_compiler_wl_GO \
16333lt_prog_compiler_pic_GO \
16334lt_prog_compiler_static_GO \
16335lt_cv_prog_compiler_c_o_GO \
16336export_dynamic_flag_spec_GO \
16337whole_archive_flag_spec_GO \
16338compiler_needs_object_GO \
16339with_gnu_ld_GO \
16340allow_undefined_flag_GO \
16341no_undefined_flag_GO \
16342hardcode_libdir_flag_spec_GO \
16343hardcode_libdir_flag_spec_ld_GO \
16344hardcode_libdir_separator_GO \
16345fix_srcfile_path_GO \
16346exclude_expsyms_GO \
16347include_expsyms_GO \
16348file_list_spec_GO; do
16349    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16350    *[\\\\\\\`\\"\\\$]*)
16351      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16352      ;;
16353    *)
16354      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16355      ;;
16356    esac
16357done
16358
16359# Double-quote double-evaled strings.
16360for var in reload_cmds \
16361old_postinstall_cmds \
16362old_postuninstall_cmds \
16363old_archive_cmds \
16364extract_expsyms_cmds \
16365old_archive_from_new_cmds \
16366old_archive_from_expsyms_cmds \
16367archive_cmds \
16368archive_expsym_cmds \
16369module_cmds \
16370module_expsym_cmds \
16371export_symbols_cmds \
16372prelink_cmds \
16373postinstall_cmds \
16374postuninstall_cmds \
16375finish_cmds \
16376sys_lib_search_path_spec \
16377sys_lib_dlsearch_path_spec \
16378reload_cmds_GO \
16379old_archive_cmds_GO \
16380old_archive_from_new_cmds_GO \
16381old_archive_from_expsyms_cmds_GO \
16382archive_cmds_GO \
16383archive_expsym_cmds_GO \
16384module_cmds_GO \
16385module_expsym_cmds_GO \
16386export_symbols_cmds_GO \
16387prelink_cmds_GO; do
16388    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16389    *[\\\\\\\`\\"\\\$]*)
16390      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16391      ;;
16392    *)
16393      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16394      ;;
16395    esac
16396done
16397
16398ac_aux_dir='$ac_aux_dir'
16399xsi_shell='$xsi_shell'
16400lt_shell_append='$lt_shell_append'
16401
16402# See if we are running on zsh, and set the options which allow our
16403# commands through without removal of \ escapes INIT.
16404if test -n "\${ZSH_VERSION+set}" ; then
16405   setopt NO_GLOB_SUBST
16406fi
16407
16408
16409    PACKAGE='$PACKAGE'
16410    VERSION='$VERSION'
16411    TIMESTAMP='$TIMESTAMP'
16412    RM='$RM'
16413    ofile='$ofile'
16414
16415
16416
16417
16418
16419
16420# Variables needed in config.status (file generation) which aren't already
16421# passed by autoconf.
16422SUBDIRS="$SUBDIRS"
16423
16424
16425_ACEOF
16426
16427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16428
16429# Handling of arguments.
16430for ac_config_target in $ac_config_targets
16431do
16432  case $ac_config_target in
16433    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16434    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16435    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16436    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16437    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16438    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16439    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16440
16441  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16442  esac
16443done
16444
16445
16446# If the user did not use the arguments to specify the items to instantiate,
16447# then the envvar interface is used.  Set only those that are not.
16448# We use the long form for the default assignment because of an extremely
16449# bizarre bug on SunOS 4.1.3.
16450if $ac_need_defaults; then
16451  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16452  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16453  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16454fi
16455
16456# Have a temporary directory for convenience.  Make it in the build tree
16457# simply because there is no reason against having it here, and in addition,
16458# creating and moving files from /tmp can sometimes cause problems.
16459# Hook for its removal unless debugging.
16460# Note that there is a small window in which the directory will not be cleaned:
16461# after its creation but before its name has been assigned to `$tmp'.
16462$debug ||
16463{
16464  tmp=
16465  trap 'exit_status=$?
16466  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16467' 0
16468  trap 'as_fn_exit 1' 1 2 13 15
16469}
16470# Create a (secure) tmp directory for tmp files.
16471
16472{
16473  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16474  test -n "$tmp" && test -d "$tmp"
16475}  ||
16476{
16477  tmp=./conf$$-$RANDOM
16478  (umask 077 && mkdir "$tmp")
16479} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16480
16481# Set up the scripts for CONFIG_FILES section.
16482# No need to generate them if there are no CONFIG_FILES.
16483# This happens for instance with `./config.status config.h'.
16484if test -n "$CONFIG_FILES"; then
16485
16486
16487ac_cr=`echo X | tr X '\015'`
16488# On cygwin, bash can eat \r inside `` if the user requested igncr.
16489# But we know of no other shell where ac_cr would be empty at this
16490# point, so we can use a bashism as a fallback.
16491if test "x$ac_cr" = x; then
16492  eval ac_cr=\$\'\\r\'
16493fi
16494ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16495if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16496  ac_cs_awk_cr='\r'
16497else
16498  ac_cs_awk_cr=$ac_cr
16499fi
16500
16501echo 'BEGIN {' >"$tmp/subs1.awk" &&
16502_ACEOF
16503
16504
16505{
16506  echo "cat >conf$$subs.awk <<_ACEOF" &&
16507  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16508  echo "_ACEOF"
16509} >conf$$subs.sh ||
16510  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16511ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16512ac_delim='%!_!# '
16513for ac_last_try in false false false false false :; do
16514  . ./conf$$subs.sh ||
16515    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16516
16517  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16518  if test $ac_delim_n = $ac_delim_num; then
16519    break
16520  elif $ac_last_try; then
16521    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16522  else
16523    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16524  fi
16525done
16526rm -f conf$$subs.sh
16527
16528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16529cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16530_ACEOF
16531sed -n '
16532h
16533s/^/S["/; s/!.*/"]=/
16534p
16535g
16536s/^[^!]*!//
16537:repl
16538t repl
16539s/'"$ac_delim"'$//
16540t delim
16541:nl
16542h
16543s/\(.\{148\}\).*/\1/
16544t more1
16545s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16546p
16547n
16548b repl
16549:more1
16550s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16551p
16552g
16553s/.\{148\}//
16554t nl
16555:delim
16556h
16557s/\(.\{148\}\).*/\1/
16558t more2
16559s/["\\]/\\&/g; s/^/"/; s/$/"/
16560p
16561b
16562:more2
16563s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16564p
16565g
16566s/.\{148\}//
16567t delim
16568' <conf$$subs.awk | sed '
16569/^[^""]/{
16570  N
16571  s/\n//
16572}
16573' >>$CONFIG_STATUS || ac_write_fail=1
16574rm -f conf$$subs.awk
16575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576_ACAWK
16577cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16578  for (key in S) S_is_set[key] = 1
16579  FS = ""
16580
16581}
16582{
16583  line = $ 0
16584  nfields = split(line, field, "@")
16585  substed = 0
16586  len = length(field[1])
16587  for (i = 2; i < nfields; i++) {
16588    key = field[i]
16589    keylen = length(key)
16590    if (S_is_set[key]) {
16591      value = S[key]
16592      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16593      len += length(value) + length(field[++i])
16594      substed = 1
16595    } else
16596      len += 1 + keylen
16597  }
16598
16599  print line
16600}
16601
16602_ACAWK
16603_ACEOF
16604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16606  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16607else
16608  cat
16609fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16610  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16611_ACEOF
16612
16613# VPATH may cause trouble with some makes, so we remove $(srcdir),
16614# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16615# trailing colons and then remove the whole line if VPATH becomes empty
16616# (actually we leave an empty line to preserve line numbers).
16617if test "x$srcdir" = x.; then
16618  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16619s/:*\$(srcdir):*/:/
16620s/:*\${srcdir}:*/:/
16621s/:*@srcdir@:*/:/
16622s/^\([^=]*=[	 ]*\):*/\1/
16623s/:*$//
16624s/^[^=]*=[	 ]*$//
16625}'
16626fi
16627
16628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16629fi # test -n "$CONFIG_FILES"
16630
16631# Set up the scripts for CONFIG_HEADERS section.
16632# No need to generate them if there are no CONFIG_HEADERS.
16633# This happens for instance with `./config.status Makefile'.
16634if test -n "$CONFIG_HEADERS"; then
16635cat >"$tmp/defines.awk" <<\_ACAWK ||
16636BEGIN {
16637_ACEOF
16638
16639# Transform confdefs.h into an awk script `defines.awk', embedded as
16640# here-document in config.status, that substitutes the proper values into
16641# config.h.in to produce config.h.
16642
16643# Create a delimiter string that does not exist in confdefs.h, to ease
16644# handling of long lines.
16645ac_delim='%!_!# '
16646for ac_last_try in false false :; do
16647  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16648  if test -z "$ac_t"; then
16649    break
16650  elif $ac_last_try; then
16651    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16652  else
16653    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16654  fi
16655done
16656
16657# For the awk script, D is an array of macro values keyed by name,
16658# likewise P contains macro parameters if any.  Preserve backslash
16659# newline sequences.
16660
16661ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16662sed -n '
16663s/.\{148\}/&'"$ac_delim"'/g
16664t rset
16665:rset
16666s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16667t def
16668d
16669:def
16670s/\\$//
16671t bsnl
16672s/["\\]/\\&/g
16673s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16674D["\1"]=" \3"/p
16675s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16676d
16677:bsnl
16678s/["\\]/\\&/g
16679s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16680D["\1"]=" \3\\\\\\n"\\/p
16681t cont
16682s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16683t cont
16684d
16685:cont
16686n
16687s/.\{148\}/&'"$ac_delim"'/g
16688t clear
16689:clear
16690s/\\$//
16691t bsnlc
16692s/["\\]/\\&/g; s/^/"/; s/$/"/p
16693d
16694:bsnlc
16695s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16696b cont
16697' <confdefs.h | sed '
16698s/'"$ac_delim"'/"\\\
16699"/g' >>$CONFIG_STATUS || ac_write_fail=1
16700
16701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702  for (key in D) D_is_set[key] = 1
16703  FS = ""
16704}
16705/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16706  line = \$ 0
16707  split(line, arg, " ")
16708  if (arg[1] == "#") {
16709    defundef = arg[2]
16710    mac1 = arg[3]
16711  } else {
16712    defundef = substr(arg[1], 2)
16713    mac1 = arg[2]
16714  }
16715  split(mac1, mac2, "(") #)
16716  macro = mac2[1]
16717  prefix = substr(line, 1, index(line, defundef) - 1)
16718  if (D_is_set[macro]) {
16719    # Preserve the white space surrounding the "#".
16720    print prefix "define", macro P[macro] D[macro]
16721    next
16722  } else {
16723    # Replace #undef with comments.  This is necessary, for example,
16724    # in the case of _POSIX_SOURCE, which is predefined and required
16725    # on some systems where configure will not decide to define it.
16726    if (defundef == "undef") {
16727      print "/*", prefix defundef, macro, "*/"
16728      next
16729    }
16730  }
16731}
16732{ print }
16733_ACAWK
16734_ACEOF
16735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16736  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16737fi # test -n "$CONFIG_HEADERS"
16738
16739
16740eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16741shift
16742for ac_tag
16743do
16744  case $ac_tag in
16745  :[FHLC]) ac_mode=$ac_tag; continue;;
16746  esac
16747  case $ac_mode$ac_tag in
16748  :[FHL]*:*);;
16749  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16750  :[FH]-) ac_tag=-:-;;
16751  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16752  esac
16753  ac_save_IFS=$IFS
16754  IFS=:
16755  set x $ac_tag
16756  IFS=$ac_save_IFS
16757  shift
16758  ac_file=$1
16759  shift
16760
16761  case $ac_mode in
16762  :L) ac_source=$1;;
16763  :[FH])
16764    ac_file_inputs=
16765    for ac_f
16766    do
16767      case $ac_f in
16768      -) ac_f="$tmp/stdin";;
16769      *) # Look for the file first in the build tree, then in the source tree
16770	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16771	 # because $ac_f cannot contain `:'.
16772	 test -f "$ac_f" ||
16773	   case $ac_f in
16774	   [\\/$]*) false;;
16775	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16776	   esac ||
16777	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16778      esac
16779      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16780      as_fn_append ac_file_inputs " '$ac_f'"
16781    done
16782
16783    # Let's still pretend it is `configure' which instantiates (i.e., don't
16784    # use $as_me), people would be surprised to read:
16785    #    /* config.h.  Generated by config.status.  */
16786    configure_input='Generated from '`
16787	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16788	`' by configure.'
16789    if test x"$ac_file" != x-; then
16790      configure_input="$ac_file.  $configure_input"
16791      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16792$as_echo "$as_me: creating $ac_file" >&6;}
16793    fi
16794    # Neutralize special characters interpreted by sed in replacement strings.
16795    case $configure_input in #(
16796    *\&* | *\|* | *\\* )
16797       ac_sed_conf_input=`$as_echo "$configure_input" |
16798       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16799    *) ac_sed_conf_input=$configure_input;;
16800    esac
16801
16802    case $ac_tag in
16803    *:-:* | *:-) cat >"$tmp/stdin" \
16804      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16805    esac
16806    ;;
16807  esac
16808
16809  ac_dir=`$as_dirname -- "$ac_file" ||
16810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16811	 X"$ac_file" : 'X\(//\)[^/]' \| \
16812	 X"$ac_file" : 'X\(//\)$' \| \
16813	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16814$as_echo X"$ac_file" |
16815    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16816	    s//\1/
16817	    q
16818	  }
16819	  /^X\(\/\/\)[^/].*/{
16820	    s//\1/
16821	    q
16822	  }
16823	  /^X\(\/\/\)$/{
16824	    s//\1/
16825	    q
16826	  }
16827	  /^X\(\/\).*/{
16828	    s//\1/
16829	    q
16830	  }
16831	  s/.*/./; q'`
16832  as_dir="$ac_dir"; as_fn_mkdir_p
16833  ac_builddir=.
16834
16835case "$ac_dir" in
16836.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16837*)
16838  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16839  # A ".." for each directory in $ac_dir_suffix.
16840  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16841  case $ac_top_builddir_sub in
16842  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16843  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16844  esac ;;
16845esac
16846ac_abs_top_builddir=$ac_pwd
16847ac_abs_builddir=$ac_pwd$ac_dir_suffix
16848# for backward compatibility:
16849ac_top_builddir=$ac_top_build_prefix
16850
16851case $srcdir in
16852  .)  # We are building in place.
16853    ac_srcdir=.
16854    ac_top_srcdir=$ac_top_builddir_sub
16855    ac_abs_top_srcdir=$ac_pwd ;;
16856  [\\/]* | ?:[\\/]* )  # Absolute name.
16857    ac_srcdir=$srcdir$ac_dir_suffix;
16858    ac_top_srcdir=$srcdir
16859    ac_abs_top_srcdir=$srcdir ;;
16860  *) # Relative name.
16861    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16862    ac_top_srcdir=$ac_top_build_prefix$srcdir
16863    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16864esac
16865ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16866
16867
16868  case $ac_mode in
16869  :F)
16870  #
16871  # CONFIG_FILE
16872  #
16873
16874  case $INSTALL in
16875  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16876  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16877  esac
16878  ac_MKDIR_P=$MKDIR_P
16879  case $MKDIR_P in
16880  [\\/$]* | ?:[\\/]* ) ;;
16881  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16882  esac
16883_ACEOF
16884
16885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16886# If the template does not know about datarootdir, expand it.
16887# FIXME: This hack should be removed a few years after 2.60.
16888ac_datarootdir_hack=; ac_datarootdir_seen=
16889ac_sed_dataroot='
16890/datarootdir/ {
16891  p
16892  q
16893}
16894/@datadir@/p
16895/@docdir@/p
16896/@infodir@/p
16897/@localedir@/p
16898/@mandir@/p'
16899case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16900*datarootdir*) ac_datarootdir_seen=yes;;
16901*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16902  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16903$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16904_ACEOF
16905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906  ac_datarootdir_hack='
16907  s&@datadir@&$datadir&g
16908  s&@docdir@&$docdir&g
16909  s&@infodir@&$infodir&g
16910  s&@localedir@&$localedir&g
16911  s&@mandir@&$mandir&g
16912  s&\\\${datarootdir}&$datarootdir&g' ;;
16913esac
16914_ACEOF
16915
16916# Neutralize VPATH when `$srcdir' = `.'.
16917# Shell code in configure.ac might set extrasub.
16918# FIXME: do we really want to maintain this feature?
16919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16920ac_sed_extra="$ac_vpsub
16921$extrasub
16922_ACEOF
16923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16924:t
16925/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16926s|@configure_input@|$ac_sed_conf_input|;t t
16927s&@top_builddir@&$ac_top_builddir_sub&;t t
16928s&@top_build_prefix@&$ac_top_build_prefix&;t t
16929s&@srcdir@&$ac_srcdir&;t t
16930s&@abs_srcdir@&$ac_abs_srcdir&;t t
16931s&@top_srcdir@&$ac_top_srcdir&;t t
16932s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16933s&@builddir@&$ac_builddir&;t t
16934s&@abs_builddir@&$ac_abs_builddir&;t t
16935s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16936s&@INSTALL@&$ac_INSTALL&;t t
16937s&@MKDIR_P@&$ac_MKDIR_P&;t t
16938$ac_datarootdir_hack
16939"
16940eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16941  || as_fn_error "could not create $ac_file" "$LINENO" 5
16942
16943test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16944  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16945  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16946  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16947which seems to be undefined.  Please make sure it is defined." >&5
16948$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16949which seems to be undefined.  Please make sure it is defined." >&2;}
16950
16951  rm -f "$tmp/stdin"
16952  case $ac_file in
16953  -) cat "$tmp/out" && rm -f "$tmp/out";;
16954  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16955  esac \
16956  || as_fn_error "could not create $ac_file" "$LINENO" 5
16957 ;;
16958  :H)
16959  #
16960  # CONFIG_HEADER
16961  #
16962  if test x"$ac_file" != x-; then
16963    {
16964      $as_echo "/* $configure_input  */" \
16965      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16966    } >"$tmp/config.h" \
16967      || as_fn_error "could not create $ac_file" "$LINENO" 5
16968    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16969      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16970$as_echo "$as_me: $ac_file is unchanged" >&6;}
16971    else
16972      rm -f "$ac_file"
16973      mv "$tmp/config.h" "$ac_file" \
16974	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16975    fi
16976  else
16977    $as_echo "/* $configure_input  */" \
16978      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16979      || as_fn_error "could not create -" "$LINENO" 5
16980  fi
16981# Compute "$ac_file"'s index in $config_headers.
16982_am_arg="$ac_file"
16983_am_stamp_count=1
16984for _am_header in $config_headers :; do
16985  case $_am_header in
16986    $_am_arg | $_am_arg:* )
16987      break ;;
16988    * )
16989      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16990  esac
16991done
16992echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16993$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16994	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16995	 X"$_am_arg" : 'X\(//\)$' \| \
16996	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16997$as_echo X"$_am_arg" |
16998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16999	    s//\1/
17000	    q
17001	  }
17002	  /^X\(\/\/\)[^/].*/{
17003	    s//\1/
17004	    q
17005	  }
17006	  /^X\(\/\/\)$/{
17007	    s//\1/
17008	    q
17009	  }
17010	  /^X\(\/\).*/{
17011	    s//\1/
17012	    q
17013	  }
17014	  s/.*/./; q'`/stamp-h$_am_stamp_count
17015 ;;
17016
17017  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17018$as_echo "$as_me: executing $ac_file commands" >&6;}
17019 ;;
17020  esac
17021
17022
17023  case $ac_file$ac_mode in
17024    "default-1":C)
17025# Only add multilib support code if we just rebuilt the top-level
17026# Makefile.
17027case " $CONFIG_FILES " in
17028 *" Makefile "*)
17029   ac_file=Makefile . ${multi_basedir}/config-ml.in
17030   ;;
17031esac ;;
17032    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17033  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17034  # are listed without --file.  Let's play safe and only enable the eval
17035  # if we detect the quoting.
17036  case $CONFIG_FILES in
17037  *\'*) eval set x "$CONFIG_FILES" ;;
17038  *)   set x $CONFIG_FILES ;;
17039  esac
17040  shift
17041  for mf
17042  do
17043    # Strip MF so we end up with the name of the file.
17044    mf=`echo "$mf" | sed -e 's/:.*$//'`
17045    # Check whether this is an Automake generated Makefile or not.
17046    # We used to match only the files named `Makefile.in', but
17047    # some people rename them; so instead we look at the file content.
17048    # Grep'ing the first line is not enough: some people post-process
17049    # each Makefile.in and add a new line on top of each file to say so.
17050    # Grep'ing the whole file is not good either: AIX grep has a line
17051    # limit of 2048, but all sed's we know have understand at least 4000.
17052    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17053      dirpart=`$as_dirname -- "$mf" ||
17054$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17055	 X"$mf" : 'X\(//\)[^/]' \| \
17056	 X"$mf" : 'X\(//\)$' \| \
17057	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17058$as_echo X"$mf" |
17059    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17060	    s//\1/
17061	    q
17062	  }
17063	  /^X\(\/\/\)[^/].*/{
17064	    s//\1/
17065	    q
17066	  }
17067	  /^X\(\/\/\)$/{
17068	    s//\1/
17069	    q
17070	  }
17071	  /^X\(\/\).*/{
17072	    s//\1/
17073	    q
17074	  }
17075	  s/.*/./; q'`
17076    else
17077      continue
17078    fi
17079    # Extract the definition of DEPDIR, am__include, and am__quote
17080    # from the Makefile without running `make'.
17081    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17082    test -z "$DEPDIR" && continue
17083    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17084    test -z "am__include" && continue
17085    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17086    # When using ansi2knr, U may be empty or an underscore; expand it
17087    U=`sed -n 's/^U = //p' < "$mf"`
17088    # Find all dependency output files, they are included files with
17089    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17090    # simplest approach to changing $(DEPDIR) to its actual value in the
17091    # expansion.
17092    for file in `sed -n "
17093      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17094	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17095      # Make sure the directory exists.
17096      test -f "$dirpart/$file" && continue
17097      fdir=`$as_dirname -- "$file" ||
17098$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17099	 X"$file" : 'X\(//\)[^/]' \| \
17100	 X"$file" : 'X\(//\)$' \| \
17101	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17102$as_echo X"$file" |
17103    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17104	    s//\1/
17105	    q
17106	  }
17107	  /^X\(\/\/\)[^/].*/{
17108	    s//\1/
17109	    q
17110	  }
17111	  /^X\(\/\/\)$/{
17112	    s//\1/
17113	    q
17114	  }
17115	  /^X\(\/\).*/{
17116	    s//\1/
17117	    q
17118	  }
17119	  s/.*/./; q'`
17120      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17121      # echo "creating $dirpart/$file"
17122      echo '# dummy' > "$dirpart/$file"
17123    done
17124  done
17125}
17126 ;;
17127    "libtool":C)
17128
17129    # See if we are running on zsh, and set the options which allow our
17130    # commands through without removal of \ escapes.
17131    if test -n "${ZSH_VERSION+set}" ; then
17132      setopt NO_GLOB_SUBST
17133    fi
17134
17135    cfgfile="${ofile}T"
17136    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17137    $RM "$cfgfile"
17138
17139    cat <<_LT_EOF >> "$cfgfile"
17140#! $SHELL
17141
17142# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17143# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17144# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17145# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17146#
17147#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17148#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17149#   Written by Gordon Matzigkeit, 1996
17150#
17151#   This file is part of GNU Libtool.
17152#
17153# GNU Libtool is free software; you can redistribute it and/or
17154# modify it under the terms of the GNU General Public License as
17155# published by the Free Software Foundation; either version 2 of
17156# the License, or (at your option) any later version.
17157#
17158# As a special exception to the GNU General Public License,
17159# if you distribute this file as part of a program or library that
17160# is built using GNU Libtool, you may include this file under the
17161# same distribution terms that you use for the rest of that program.
17162#
17163# GNU Libtool is distributed in the hope that it will be useful,
17164# but WITHOUT ANY WARRANTY; without even the implied warranty of
17165# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17166# GNU General Public License for more details.
17167#
17168# You should have received a copy of the GNU General Public License
17169# along with GNU Libtool; see the file COPYING.  If not, a copy
17170# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17171# obtained by writing to the Free Software Foundation, Inc.,
17172# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17173
17174
17175# The names of the tagged configurations supported by this script.
17176available_tags="GO "
17177
17178# ### BEGIN LIBTOOL CONFIG
17179
17180# A sed program that does not truncate output.
17181SED=$lt_SED
17182
17183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17184Xsed="\$SED -e 1s/^X//"
17185
17186# A grep program that handles long lines.
17187GREP=$lt_GREP
17188
17189# An ERE matcher.
17190EGREP=$lt_EGREP
17191
17192# A literal string matcher.
17193FGREP=$lt_FGREP
17194
17195# Shell to use when invoking shell scripts.
17196SHELL=$lt_SHELL
17197
17198# An echo program that protects backslashes.
17199ECHO=$lt_ECHO
17200
17201# Which release of libtool.m4 was used?
17202macro_version=$macro_version
17203macro_revision=$macro_revision
17204
17205# Whether or not to build shared libraries.
17206build_libtool_libs=$enable_shared
17207
17208# Whether or not to build static libraries.
17209build_old_libs=$enable_static
17210
17211# What type of objects to build.
17212pic_mode=$pic_mode
17213
17214# Whether or not to optimize for fast installation.
17215fast_install=$enable_fast_install
17216
17217# The host system.
17218host_alias=$host_alias
17219host=$host
17220host_os=$host_os
17221
17222# The build system.
17223build_alias=$build_alias
17224build=$build
17225build_os=$build_os
17226
17227# A BSD- or MS-compatible name lister.
17228NM=$lt_NM
17229
17230# Whether we need soft or hard links.
17231LN_S=$lt_LN_S
17232
17233# What is the maximum length of a command?
17234max_cmd_len=$max_cmd_len
17235
17236# Object file suffix (normally "o").
17237objext=$ac_objext
17238
17239# Executable file suffix (normally "").
17240exeext=$exeext
17241
17242# whether the shell understands "unset".
17243lt_unset=$lt_unset
17244
17245# turn spaces into newlines.
17246SP2NL=$lt_lt_SP2NL
17247
17248# turn newlines into spaces.
17249NL2SP=$lt_lt_NL2SP
17250
17251# An object symbol dumper.
17252OBJDUMP=$lt_OBJDUMP
17253
17254# Method to check whether dependent libraries are shared objects.
17255deplibs_check_method=$lt_deplibs_check_method
17256
17257# Command to use when deplibs_check_method == "file_magic".
17258file_magic_cmd=$lt_file_magic_cmd
17259
17260# The archiver.
17261AR=$lt_AR
17262AR_FLAGS=$lt_AR_FLAGS
17263
17264# A symbol stripping program.
17265STRIP=$lt_STRIP
17266
17267# Commands used to install an old-style archive.
17268RANLIB=$lt_RANLIB
17269old_postinstall_cmds=$lt_old_postinstall_cmds
17270old_postuninstall_cmds=$lt_old_postuninstall_cmds
17271
17272# Whether to use a lock for old archive extraction.
17273lock_old_archive_extraction=$lock_old_archive_extraction
17274
17275# A C compiler.
17276LTCC=$lt_CC
17277
17278# LTCC compiler flags.
17279LTCFLAGS=$lt_CFLAGS
17280
17281# Take the output of nm and produce a listing of raw symbols and C names.
17282global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17283
17284# Transform the output of nm in a proper C declaration.
17285global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17286
17287# Transform the output of nm in a C name address pair.
17288global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17289
17290# Transform the output of nm in a C name address pair when lib prefix is needed.
17291global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17292
17293# The name of the directory that contains temporary libtool files.
17294objdir=$objdir
17295
17296# Used to examine libraries when file_magic_cmd begins with "file".
17297MAGIC_CMD=$MAGIC_CMD
17298
17299# Must we lock files when doing compilation?
17300need_locks=$lt_need_locks
17301
17302# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17303DSYMUTIL=$lt_DSYMUTIL
17304
17305# Tool to change global to local symbols on Mac OS X.
17306NMEDIT=$lt_NMEDIT
17307
17308# Tool to manipulate fat objects and archives on Mac OS X.
17309LIPO=$lt_LIPO
17310
17311# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17312OTOOL=$lt_OTOOL
17313
17314# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17315OTOOL64=$lt_OTOOL64
17316
17317# Old archive suffix (normally "a").
17318libext=$libext
17319
17320# Shared library suffix (normally ".so").
17321shrext_cmds=$lt_shrext_cmds
17322
17323# The commands to extract the exported symbol list from a shared archive.
17324extract_expsyms_cmds=$lt_extract_expsyms_cmds
17325
17326# Variables whose values should be saved in libtool wrapper scripts and
17327# restored at link time.
17328variables_saved_for_relink=$lt_variables_saved_for_relink
17329
17330# Do we need the "lib" prefix for modules?
17331need_lib_prefix=$need_lib_prefix
17332
17333# Do we need a version for libraries?
17334need_version=$need_version
17335
17336# Library versioning type.
17337version_type=$version_type
17338
17339# Shared library runtime path variable.
17340runpath_var=$runpath_var
17341
17342# Shared library path variable.
17343shlibpath_var=$shlibpath_var
17344
17345# Is shlibpath searched before the hard-coded library search path?
17346shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17347
17348# Format of library name prefix.
17349libname_spec=$lt_libname_spec
17350
17351# List of archive names.  First name is the real one, the rest are links.
17352# The last name is the one that the linker finds with -lNAME
17353library_names_spec=$lt_library_names_spec
17354
17355# The coded name of the library, if different from the real name.
17356soname_spec=$lt_soname_spec
17357
17358# Permission mode override for installation of shared libraries.
17359install_override_mode=$lt_install_override_mode
17360
17361# Command to use after installation of a shared archive.
17362postinstall_cmds=$lt_postinstall_cmds
17363
17364# Command to use after uninstallation of a shared archive.
17365postuninstall_cmds=$lt_postuninstall_cmds
17366
17367# Commands used to finish a libtool library installation in a directory.
17368finish_cmds=$lt_finish_cmds
17369
17370# As "finish_cmds", except a single script fragment to be evaled but
17371# not shown.
17372finish_eval=$lt_finish_eval
17373
17374# Whether we should hardcode library paths into libraries.
17375hardcode_into_libs=$hardcode_into_libs
17376
17377# Compile-time system search path for libraries.
17378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17379
17380# Run-time system search path for libraries.
17381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17382
17383# Whether dlopen is supported.
17384dlopen_support=$enable_dlopen
17385
17386# Whether dlopen of programs is supported.
17387dlopen_self=$enable_dlopen_self
17388
17389# Whether dlopen of statically linked programs is supported.
17390dlopen_self_static=$enable_dlopen_self_static
17391
17392# Commands to strip libraries.
17393old_striplib=$lt_old_striplib
17394striplib=$lt_striplib
17395
17396
17397# The linker used to build libraries.
17398LD=$lt_LD
17399
17400# How to create reloadable object files.
17401reload_flag=$lt_reload_flag
17402reload_cmds=$lt_reload_cmds
17403
17404# Commands used to build an old-style archive.
17405old_archive_cmds=$lt_old_archive_cmds
17406
17407# A language specific compiler.
17408CC=$lt_compiler
17409
17410# Is the compiler the GNU compiler?
17411with_gcc=$GCC
17412
17413# Compiler flag to turn off builtin functions.
17414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17415
17416# How to pass a linker flag through the compiler.
17417wl=$lt_lt_prog_compiler_wl
17418
17419# Additional compiler flags for building library objects.
17420pic_flag=$lt_lt_prog_compiler_pic
17421
17422# Compiler flag to prevent dynamic linking.
17423link_static_flag=$lt_lt_prog_compiler_static
17424
17425# Does compiler simultaneously support -c and -o options?
17426compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17427
17428# Whether or not to add -lc for building shared libraries.
17429build_libtool_need_lc=$archive_cmds_need_lc
17430
17431# Whether or not to disallow shared libs when runtime libs are static.
17432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17433
17434# Compiler flag to allow reflexive dlopens.
17435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17436
17437# Compiler flag to generate shared objects directly from archives.
17438whole_archive_flag_spec=$lt_whole_archive_flag_spec
17439
17440# Whether the compiler copes with passing no objects directly.
17441compiler_needs_object=$lt_compiler_needs_object
17442
17443# Create an old-style archive from a shared archive.
17444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17445
17446# Create a temporary old-style archive to link instead of a shared archive.
17447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17448
17449# Commands used to build a shared archive.
17450archive_cmds=$lt_archive_cmds
17451archive_expsym_cmds=$lt_archive_expsym_cmds
17452
17453# Commands used to build a loadable module if different from building
17454# a shared archive.
17455module_cmds=$lt_module_cmds
17456module_expsym_cmds=$lt_module_expsym_cmds
17457
17458# Whether we are building with GNU ld or not.
17459with_gnu_ld=$lt_with_gnu_ld
17460
17461# Flag that allows shared libraries with undefined symbols to be built.
17462allow_undefined_flag=$lt_allow_undefined_flag
17463
17464# Flag that enforces no undefined symbols.
17465no_undefined_flag=$lt_no_undefined_flag
17466
17467# Flag to hardcode \$libdir into a binary during linking.
17468# This must work even if \$libdir does not exist
17469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17470
17471# If ld is used when linking, flag to hardcode \$libdir into a binary
17472# during linking.  This must work even if \$libdir does not exist.
17473hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17474
17475# Whether we need a single "-rpath" flag with a separated argument.
17476hardcode_libdir_separator=$lt_hardcode_libdir_separator
17477
17478# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17479# DIR into the resulting binary.
17480hardcode_direct=$hardcode_direct
17481
17482# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17483# DIR into the resulting binary and the resulting library dependency is
17484# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17485# library is relocated.
17486hardcode_direct_absolute=$hardcode_direct_absolute
17487
17488# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17489# into the resulting binary.
17490hardcode_minus_L=$hardcode_minus_L
17491
17492# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17493# into the resulting binary.
17494hardcode_shlibpath_var=$hardcode_shlibpath_var
17495
17496# Set to "yes" if building a shared library automatically hardcodes DIR
17497# into the library and all subsequent libraries and executables linked
17498# against it.
17499hardcode_automatic=$hardcode_automatic
17500
17501# Set to yes if linker adds runtime paths of dependent libraries
17502# to runtime path list.
17503inherit_rpath=$inherit_rpath
17504
17505# Whether libtool must link a program against all its dependency libraries.
17506link_all_deplibs=$link_all_deplibs
17507
17508# Fix the shell variable \$srcfile for the compiler.
17509fix_srcfile_path=$lt_fix_srcfile_path
17510
17511# Set to "yes" if exported symbols are required.
17512always_export_symbols=$always_export_symbols
17513
17514# The commands to list exported symbols.
17515export_symbols_cmds=$lt_export_symbols_cmds
17516
17517# Symbols that should not be listed in the preloaded symbols.
17518exclude_expsyms=$lt_exclude_expsyms
17519
17520# Symbols that must always be exported.
17521include_expsyms=$lt_include_expsyms
17522
17523# Commands necessary for linking programs (against libraries) with templates.
17524prelink_cmds=$lt_prelink_cmds
17525
17526# Specify filename containing input files.
17527file_list_spec=$lt_file_list_spec
17528
17529# How to hardcode a shared library path into an executable.
17530hardcode_action=$hardcode_action
17531
17532# ### END LIBTOOL CONFIG
17533
17534_LT_EOF
17535
17536  case $host_os in
17537  aix3*)
17538    cat <<\_LT_EOF >> "$cfgfile"
17539# AIX sometimes has problems with the GCC collect2 program.  For some
17540# reason, if we set the COLLECT_NAMES environment variable, the problems
17541# vanish in a puff of smoke.
17542if test "X${COLLECT_NAMES+set}" != Xset; then
17543  COLLECT_NAMES=
17544  export COLLECT_NAMES
17545fi
17546_LT_EOF
17547    ;;
17548  esac
17549
17550
17551ltmain="$ac_aux_dir/ltmain.sh"
17552
17553
17554  # We use sed instead of cat because bash on DJGPP gets confused if
17555  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17556  # text mode, it properly converts lines to CR/LF.  This bash problem
17557  # is reportedly fixed, but why not run on old versions too?
17558  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17559    || (rm -f "$cfgfile"; exit 1)
17560
17561  case $xsi_shell in
17562  yes)
17563    cat << \_LT_EOF >> "$cfgfile"
17564
17565# func_dirname file append nondir_replacement
17566# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17567# otherwise set result to NONDIR_REPLACEMENT.
17568func_dirname ()
17569{
17570  case ${1} in
17571    */*) func_dirname_result="${1%/*}${2}" ;;
17572    *  ) func_dirname_result="${3}" ;;
17573  esac
17574}
17575
17576# func_basename file
17577func_basename ()
17578{
17579  func_basename_result="${1##*/}"
17580}
17581
17582# func_dirname_and_basename file append nondir_replacement
17583# perform func_basename and func_dirname in a single function
17584# call:
17585#   dirname:  Compute the dirname of FILE.  If nonempty,
17586#             add APPEND to the result, otherwise set result
17587#             to NONDIR_REPLACEMENT.
17588#             value returned in "$func_dirname_result"
17589#   basename: Compute filename of FILE.
17590#             value retuned in "$func_basename_result"
17591# Implementation must be kept synchronized with func_dirname
17592# and func_basename. For efficiency, we do not delegate to
17593# those functions but instead duplicate the functionality here.
17594func_dirname_and_basename ()
17595{
17596  case ${1} in
17597    */*) func_dirname_result="${1%/*}${2}" ;;
17598    *  ) func_dirname_result="${3}" ;;
17599  esac
17600  func_basename_result="${1##*/}"
17601}
17602
17603# func_stripname prefix suffix name
17604# strip PREFIX and SUFFIX off of NAME.
17605# PREFIX and SUFFIX must not contain globbing or regex special
17606# characters, hashes, percent signs, but SUFFIX may contain a leading
17607# dot (in which case that matches only a dot).
17608func_stripname ()
17609{
17610  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17611  # positional parameters, so assign one to ordinary parameter first.
17612  func_stripname_result=${3}
17613  func_stripname_result=${func_stripname_result#"${1}"}
17614  func_stripname_result=${func_stripname_result%"${2}"}
17615}
17616
17617# func_opt_split
17618func_opt_split ()
17619{
17620  func_opt_split_opt=${1%%=*}
17621  func_opt_split_arg=${1#*=}
17622}
17623
17624# func_lo2o object
17625func_lo2o ()
17626{
17627  case ${1} in
17628    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17629    *)    func_lo2o_result=${1} ;;
17630  esac
17631}
17632
17633# func_xform libobj-or-source
17634func_xform ()
17635{
17636  func_xform_result=${1%.*}.lo
17637}
17638
17639# func_arith arithmetic-term...
17640func_arith ()
17641{
17642  func_arith_result=$(( $* ))
17643}
17644
17645# func_len string
17646# STRING may not start with a hyphen.
17647func_len ()
17648{
17649  func_len_result=${#1}
17650}
17651
17652_LT_EOF
17653    ;;
17654  *) # Bourne compatible functions.
17655    cat << \_LT_EOF >> "$cfgfile"
17656
17657# func_dirname file append nondir_replacement
17658# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17659# otherwise set result to NONDIR_REPLACEMENT.
17660func_dirname ()
17661{
17662  # Extract subdirectory from the argument.
17663  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17664  if test "X$func_dirname_result" = "X${1}"; then
17665    func_dirname_result="${3}"
17666  else
17667    func_dirname_result="$func_dirname_result${2}"
17668  fi
17669}
17670
17671# func_basename file
17672func_basename ()
17673{
17674  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17675}
17676
17677
17678# func_stripname prefix suffix name
17679# strip PREFIX and SUFFIX off of NAME.
17680# PREFIX and SUFFIX must not contain globbing or regex special
17681# characters, hashes, percent signs, but SUFFIX may contain a leading
17682# dot (in which case that matches only a dot).
17683# func_strip_suffix prefix name
17684func_stripname ()
17685{
17686  case ${2} in
17687    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17688    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17689  esac
17690}
17691
17692# sed scripts:
17693my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17694my_sed_long_arg='1s/^-[^=]*=//'
17695
17696# func_opt_split
17697func_opt_split ()
17698{
17699  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17700  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17701}
17702
17703# func_lo2o object
17704func_lo2o ()
17705{
17706  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17707}
17708
17709# func_xform libobj-or-source
17710func_xform ()
17711{
17712  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17713}
17714
17715# func_arith arithmetic-term...
17716func_arith ()
17717{
17718  func_arith_result=`expr "$@"`
17719}
17720
17721# func_len string
17722# STRING may not start with a hyphen.
17723func_len ()
17724{
17725  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17726}
17727
17728_LT_EOF
17729esac
17730
17731case $lt_shell_append in
17732  yes)
17733    cat << \_LT_EOF >> "$cfgfile"
17734
17735# func_append var value
17736# Append VALUE to the end of shell variable VAR.
17737func_append ()
17738{
17739  eval "$1+=\$2"
17740}
17741_LT_EOF
17742    ;;
17743  *)
17744    cat << \_LT_EOF >> "$cfgfile"
17745
17746# func_append var value
17747# Append VALUE to the end of shell variable VAR.
17748func_append ()
17749{
17750  eval "$1=\$$1\$2"
17751}
17752
17753_LT_EOF
17754    ;;
17755  esac
17756
17757
17758  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17759    || (rm -f "$cfgfile"; exit 1)
17760
17761  mv -f "$cfgfile" "$ofile" ||
17762    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17763  chmod +x "$ofile"
17764
17765
17766    cat <<_LT_EOF >> "$ofile"
17767
17768# ### BEGIN LIBTOOL TAG CONFIG: GO
17769
17770# The linker used to build libraries.
17771LD=$lt_LD_GO
17772
17773# How to create reloadable object files.
17774reload_flag=$lt_reload_flag_GO
17775reload_cmds=$lt_reload_cmds_GO
17776
17777# Commands used to build an old-style archive.
17778old_archive_cmds=$lt_old_archive_cmds_GO
17779
17780# A language specific compiler.
17781CC=$lt_compiler_GO
17782
17783# Is the compiler the GNU compiler?
17784with_gcc=$GCC_GO
17785
17786# Compiler flag to turn off builtin functions.
17787no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17788
17789# How to pass a linker flag through the compiler.
17790wl=$lt_lt_prog_compiler_wl_GO
17791
17792# Additional compiler flags for building library objects.
17793pic_flag=$lt_lt_prog_compiler_pic_GO
17794
17795# Compiler flag to prevent dynamic linking.
17796link_static_flag=$lt_lt_prog_compiler_static_GO
17797
17798# Does compiler simultaneously support -c and -o options?
17799compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17800
17801# Whether or not to add -lc for building shared libraries.
17802build_libtool_need_lc=$archive_cmds_need_lc_GO
17803
17804# Whether or not to disallow shared libs when runtime libs are static.
17805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17806
17807# Compiler flag to allow reflexive dlopens.
17808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17809
17810# Compiler flag to generate shared objects directly from archives.
17811whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17812
17813# Whether the compiler copes with passing no objects directly.
17814compiler_needs_object=$lt_compiler_needs_object_GO
17815
17816# Create an old-style archive from a shared archive.
17817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17818
17819# Create a temporary old-style archive to link instead of a shared archive.
17820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17821
17822# Commands used to build a shared archive.
17823archive_cmds=$lt_archive_cmds_GO
17824archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17825
17826# Commands used to build a loadable module if different from building
17827# a shared archive.
17828module_cmds=$lt_module_cmds_GO
17829module_expsym_cmds=$lt_module_expsym_cmds_GO
17830
17831# Whether we are building with GNU ld or not.
17832with_gnu_ld=$lt_with_gnu_ld_GO
17833
17834# Flag that allows shared libraries with undefined symbols to be built.
17835allow_undefined_flag=$lt_allow_undefined_flag_GO
17836
17837# Flag that enforces no undefined symbols.
17838no_undefined_flag=$lt_no_undefined_flag_GO
17839
17840# Flag to hardcode \$libdir into a binary during linking.
17841# This must work even if \$libdir does not exist
17842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17843
17844# If ld is used when linking, flag to hardcode \$libdir into a binary
17845# during linking.  This must work even if \$libdir does not exist.
17846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17847
17848# Whether we need a single "-rpath" flag with a separated argument.
17849hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17850
17851# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17852# DIR into the resulting binary.
17853hardcode_direct=$hardcode_direct_GO
17854
17855# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17856# DIR into the resulting binary and the resulting library dependency is
17857# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17858# library is relocated.
17859hardcode_direct_absolute=$hardcode_direct_absolute_GO
17860
17861# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17862# into the resulting binary.
17863hardcode_minus_L=$hardcode_minus_L_GO
17864
17865# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17866# into the resulting binary.
17867hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17868
17869# Set to "yes" if building a shared library automatically hardcodes DIR
17870# into the library and all subsequent libraries and executables linked
17871# against it.
17872hardcode_automatic=$hardcode_automatic_GO
17873
17874# Set to yes if linker adds runtime paths of dependent libraries
17875# to runtime path list.
17876inherit_rpath=$inherit_rpath_GO
17877
17878# Whether libtool must link a program against all its dependency libraries.
17879link_all_deplibs=$link_all_deplibs_GO
17880
17881# Fix the shell variable \$srcfile for the compiler.
17882fix_srcfile_path=$lt_fix_srcfile_path_GO
17883
17884# Set to "yes" if exported symbols are required.
17885always_export_symbols=$always_export_symbols_GO
17886
17887# The commands to list exported symbols.
17888export_symbols_cmds=$lt_export_symbols_cmds_GO
17889
17890# Symbols that should not be listed in the preloaded symbols.
17891exclude_expsyms=$lt_exclude_expsyms_GO
17892
17893# Symbols that must always be exported.
17894include_expsyms=$lt_include_expsyms_GO
17895
17896# Commands necessary for linking programs (against libraries) with templates.
17897prelink_cmds=$lt_prelink_cmds_GO
17898
17899# Specify filename containing input files.
17900file_list_spec=$lt_file_list_spec_GO
17901
17902# How to hardcode a shared library path into an executable.
17903hardcode_action=$hardcode_action_GO
17904
17905# ### END LIBTOOL TAG CONFIG: GO
17906_LT_EOF
17907
17908 ;;
17909    "default":C) if test -n "$CONFIG_FILES"; then
17910   # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17911   # that multilib installs will end up installed in the correct place.
17912   # The testsuite needs it for multilib-aware ABI baseline files.
17913   # To work around this not being passed down from config-ml.in ->
17914   # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17915   # append it here.  Only modify Makefiles that have just been created.
17916   #
17917   # Also, get rid of this simulated-VPATH thing that automake does.
17918   cat > vpsed << \_EOF
17919s!`test -f '$<' || echo '$(srcdir)/'`!!
17920_EOF
17921   for i in $SUBDIRS; do
17922    case $CONFIG_FILES in
17923     *${i}/Makefile*)
17924       #echo "Adding MULTISUBDIR to $i/Makefile"
17925       sed -f vpsed $i/Makefile > tmp
17926       grep '^MULTISUBDIR =' Makefile >> tmp
17927       mv tmp $i/Makefile
17928       ;;
17929    esac
17930   done
17931   rm vpsed
17932 fi
17933 ;;
17934
17935  esac
17936done # for ac_tag
17937
17938
17939as_fn_exit 0
17940_ACEOF
17941ac_clean_files=$ac_clean_files_save
17942
17943test $ac_write_fail = 0 ||
17944  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17945
17946
17947# configure is writing to config.log, and then calls config.status.
17948# config.status does its own redirection, appending to config.log.
17949# Unfortunately, on DOS this fails, as config.log is still kept open
17950# by configure, so config.status won't be able to write to it; its
17951# output is simply discarded.  So we exec the FD to /dev/null,
17952# effectively closing config.log, so it can be properly (re)opened and
17953# appended to by config.status.  When coming back to configure, we
17954# need to make the FD available again.
17955if test "$no_create" != yes; then
17956  ac_cs_success=:
17957  ac_config_status_args=
17958  test "$silent" = yes &&
17959    ac_config_status_args="$ac_config_status_args --quiet"
17960  exec 5>/dev/null
17961  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17962  exec 5>>config.log
17963  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17964  # would make configure fail if this is the last instruction.
17965  $ac_cs_success || as_fn_exit $?
17966fi
17967if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17968  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17969$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17970fi
17971
17972