OSDN Git Service

032867f26dd961bdc3311b25ef40881d4190d6fa
[pf3gnuchains/gcc-fork.git] / libgo / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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   }
79 fi
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.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
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
99 IFS=$as_save_IFS
100
101      ;;
102 esac
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.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
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.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if 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
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 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
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
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
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
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
215 fi; }
216 IFS=$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+"$@"}
228 fi
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
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_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.
275 as_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.
285 as_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.
335 if (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   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # 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.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # 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.
370 as_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
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_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.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_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
458 ECHO_C= ECHO_N= ECHO_T=
459 case `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';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (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
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
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   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_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.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 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.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_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
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_WAIT4_FALSE
607 HAVE_WAIT4_TRUE
608 HAVE_STRERROR_R_FALSE
609 HAVE_STRERROR_R_TRUE
610 HAVE_SYS_MMAN_H_FALSE
611 HAVE_SYS_MMAN_H_TRUE
612 PTHREAD_LIBS
613 PTHREAD_CFLAGS
614 NET_LIBS
615 MATH_LIBS
616 USING_SPLIT_STACK_FALSE
617 USING_SPLIT_STACK_TRUE
618 SPLIT_STACK
619 OSCFLAGS
620 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
621 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
622 GOARCH
623 LIBGO_IS_X86_64_FALSE
624 LIBGO_IS_X86_64_TRUE
625 LIBGO_IS_SPARC64_FALSE
626 LIBGO_IS_SPARC64_TRUE
627 LIBGO_IS_SPARC_FALSE
628 LIBGO_IS_SPARC_TRUE
629 LIBGO_IS_PPC64_FALSE
630 LIBGO_IS_PPC64_TRUE
631 LIBGO_IS_PPC_FALSE
632 LIBGO_IS_PPC_TRUE
633 LIBGO_IS_MIPSO64_FALSE
634 LIBGO_IS_MIPSO64_TRUE
635 LIBGO_IS_MIPSN64_FALSE
636 LIBGO_IS_MIPSN64_TRUE
637 LIBGO_IS_MIPSN32_FALSE
638 LIBGO_IS_MIPSN32_TRUE
639 LIBGO_IS_MIPSO32_FALSE
640 LIBGO_IS_MIPSO32_TRUE
641 LIBGO_IS_MIPS_FALSE
642 LIBGO_IS_MIPS_TRUE
643 LIBGO_IS_M68K_FALSE
644 LIBGO_IS_M68K_TRUE
645 LIBGO_IS_ARM_FALSE
646 LIBGO_IS_ARM_TRUE
647 LIBGO_IS_ALPHA_FALSE
648 LIBGO_IS_ALPHA_TRUE
649 LIBGO_IS_386_FALSE
650 LIBGO_IS_386_TRUE
651 GOOS
652 LIBGO_IS_SOLARIS_FALSE
653 LIBGO_IS_SOLARIS_TRUE
654 LIBGO_IS_RTEMS_FALSE
655 LIBGO_IS_RTEMS_TRUE
656 LIBGO_IS_LINUX_FALSE
657 LIBGO_IS_LINUX_TRUE
658 LIBGO_IS_IRIX_FALSE
659 LIBGO_IS_IRIX_TRUE
660 LIBGO_IS_FREEBSD_FALSE
661 LIBGO_IS_FREEBSD_TRUE
662 LIBGO_IS_DARWIN_FALSE
663 LIBGO_IS_DARWIN_TRUE
664 LIBFFIINCS
665 LIBFFI
666 glibgo_toolexeclibdir
667 glibgo_toolexecdir
668 glibgo_prefixdir
669 WERROR
670 WARN_FLAGS
671 CC_FOR_BUILD
672 enable_static
673 enable_shared
674 CPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 AR
681 OBJDUMP
682 LN_S
683 NM
684 ac_ct_DUMPBIN
685 DUMPBIN
686 LIBTOOL
687 OBJCOPY
688 RANLIB
689 LD
690 FGREP
691 EGREP
692 GREP
693 SED
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 GOCFLAGS
698 GOC
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 multi_basedir
751 libtool_VERSION
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_multilib
794 enable_dependency_tracking
795 enable_maintainer_mode
796 with_gnu_ld
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 enable_libtool_lock
802 enable_version_specific_runtime_libs
803 with_libffi
804 with_system_libunwind
805 enable_sjlj_exceptions
806 '
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CPP
811 CPPFLAGS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *)    ac_optarg=yes ;;
876   esac
877
878   # Accept the important Cygnus configure options, so we can diagnose typos.
879
880   case $ac_dashdash$ac_option in
881   --)
882     ac_dashdash=yes ;;
883
884   -bindir | --bindir | --bindi | --bind | --bin | --bi)
885     ac_prev=bindir ;;
886   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887     bindir=$ac_optarg ;;
888
889   -build | --build | --buil | --bui | --bu)
890     ac_prev=build_alias ;;
891   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892     build_alias=$ac_optarg ;;
893
894   -cache-file | --cache-file | --cache-fil | --cache-fi \
895   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896     ac_prev=cache_file ;;
897   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899     cache_file=$ac_optarg ;;
900
901   --config-cache | -C)
902     cache_file=config.cache ;;
903
904   -datadir | --datadir | --datadi | --datad)
905     ac_prev=datadir ;;
906   -datadir=* | --datadir=* | --datadi=* | --datad=*)
907     datadir=$ac_optarg ;;
908
909   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910   | --dataroo | --dataro | --datar)
911     ac_prev=datarootdir ;;
912   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914     datarootdir=$ac_optarg ;;
915
916   -disable-* | --disable-*)
917     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918     # Reject names that are not valid shell variable names.
919     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920       as_fn_error "invalid feature name: $ac_useropt"
921     ac_useropt_orig=$ac_useropt
922     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923     case $ac_user_opts in
924       *"
925 "enable_$ac_useropt"
926 "*) ;;
927       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928          ac_unrecognized_sep=', ';;
929     esac
930     eval enable_$ac_useropt=no ;;
931
932   -docdir | --docdir | --docdi | --doc | --do)
933     ac_prev=docdir ;;
934   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935     docdir=$ac_optarg ;;
936
937   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938     ac_prev=dvidir ;;
939   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940     dvidir=$ac_optarg ;;
941
942   -enable-* | --enable-*)
943     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946       as_fn_error "invalid feature name: $ac_useropt"
947     ac_useropt_orig=$ac_useropt
948     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949     case $ac_user_opts in
950       *"
951 "enable_$ac_useropt"
952 "*) ;;
953       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954          ac_unrecognized_sep=', ';;
955     esac
956     eval enable_$ac_useropt=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150       as_fn_error "invalid package name: $ac_useropt"
1151     ac_useropt_orig=$ac_useropt
1152     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153     case $ac_user_opts in
1154       *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158          ac_unrecognized_sep=', ';;
1159     esac
1160     eval with_$ac_useropt=\$ac_optarg ;;
1161
1162   -without-* | --without-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       as_fn_error "invalid package name: $ac_useropt"
1167     ac_useropt_orig=$ac_useropt
1168     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169     case $ac_user_opts in
1170       *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174          ac_unrecognized_sep=', ';;
1175     esac
1176     eval with_$ac_useropt=no ;;
1177
1178   --x)
1179     # Obsolete; use --with-x.
1180     with_x=yes ;;
1181
1182   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183   | --x-incl | --x-inc | --x-in | --x-i)
1184     ac_prev=x_includes ;;
1185   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187     x_includes=$ac_optarg ;;
1188
1189   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191     ac_prev=x_libraries ;;
1192   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194     x_libraries=$ac_optarg ;;
1195
1196   -*) as_fn_error "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information."
1198     ;;
1199
1200   *=*)
1201     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202     # Reject names that are not valid shell variable names.
1203     case $ac_envvar in #(
1204       '' | [0-9]* | *[!_$as_cr_alnum]* )
1205       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1206     esac
1207     eval $ac_envvar=\$ac_optarg
1208     export $ac_envvar ;;
1209
1210   *)
1211     # FIXME: should be removed in autoconf 3.0.
1212     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1216     ;;
1217
1218   esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223   as_fn_error "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227   case $enable_option_checking in
1228     no) ;;
1229     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1230     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231   esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236                 datadir sysconfdir sharedstatedir localstatedir includedir \
1237                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238                 libdir localedir mandir
1239 do
1240   eval ac_val=\$$ac_var
1241   # Remove trailing slashes.
1242   case $ac_val in
1243     */ )
1244       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245       eval $ac_var=\$ac_val;;
1246   esac
1247   # Be sure to have absolute directory names.
1248   case $ac_val in
1249     [\\/$]* | ?:[\\/]* )  continue;;
1250     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251   esac
1252   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264   if test "x$build_alias" = x; then
1265     cross_compiling=maybe
1266     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267     If a cross compiler is detected then cross compile mode will be used." >&2
1268   elif test "x$build_alias" != "x$host_alias"; then
1269     cross_compiling=yes
1270   fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282   as_fn_error "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284   as_fn_error "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289   ac_srcdir_defaulted=yes
1290   # Try the directory containing this script, then the parent directory.
1291   ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293          X"$as_myself" : 'X\(//\)[^/]' \| \
1294          X"$as_myself" : 'X\(//\)$' \| \
1295          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298             s//\1/
1299             q
1300           }
1301           /^X\(\/\/\)[^/].*/{
1302             s//\1/
1303             q
1304           }
1305           /^X\(\/\/\)$/{
1306             s//\1/
1307             q
1308           }
1309           /^X\(\/\).*/{
1310             s//\1/
1311             q
1312           }
1313           s/.*/./; q'`
1314   srcdir=$ac_confdir
1315   if test ! -r "$srcdir/$ac_unique_file"; then
1316     srcdir=..
1317   fi
1318 else
1319   ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1328         pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331   srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341   eval ac_env_${ac_var}_value=\$${ac_var}
1342   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350   # Omit some internal or obsolete options to make the list less imposing.
1351   # This message is too long to be a string in the A/UX 3.1 sh.
1352   cat <<_ACEOF
1353 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE.  See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363   -h, --help              display this help and exit
1364       --help=short        display options specific to this package
1365       --help=recursive    display the short help of all the included packages
1366   -V, --version           display version information and exit
1367   -q, --quiet, --silent   do not print \`checking...' messages
1368       --cache-file=FILE   cache test results in FILE [disabled]
1369   -C, --config-cache      alias for \`--cache-file=config.cache'
1370   -n, --no-create         do not create output files
1371       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374   --prefix=PREFIX         install architecture-independent files in PREFIX
1375                           [$ac_default_prefix]
1376   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1377                           [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387   --bindir=DIR            user executables [EPREFIX/bin]
1388   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1389   --libexecdir=DIR        program executables [EPREFIX/libexec]
1390   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1391   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1392   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1393   --libdir=DIR            object code libraries [EPREFIX/lib]
1394   --includedir=DIR        C header files [PREFIX/include]
1395   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398   --infodir=DIR           info documentation [DATAROOTDIR/info]
1399   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400   --mandir=DIR            man documentation [DATAROOTDIR/man]
1401   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1402   --htmldir=DIR           html documentation [DOCDIR]
1403   --dvidir=DIR            dvi documentation [DOCDIR]
1404   --pdfdir=DIR            pdf documentation [DOCDIR]
1405   --psdir=DIR             ps documentation [DOCDIR]
1406 _ACEOF
1407
1408   cat <<\_ACEOF
1409
1410 Program names:
1411   --program-prefix=PREFIX            prepend PREFIX to installed program names
1412   --program-suffix=SUFFIX            append SUFFIX to installed program names
1413   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415 System types:
1416   --build=BUILD     configure for building on BUILD [guessed]
1417   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418   --target=TARGET   configure for building compilers for TARGET [HOST]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423   case $ac_init_help in
1424      short | recursive ) echo "Configuration of package-unused version-unused:";;
1425    esac
1426   cat <<\_ACEOF
1427
1428 Optional Features:
1429   --disable-option-checking  ignore unrecognized --enable/--with options
1430   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1431   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1432   --enable-multilib       build many library versions (default)
1433   --disable-dependency-tracking  speeds up one-time build
1434   --enable-dependency-tracking   do not reject slow dependency extractors
1435   --enable-maintainer-mode  enable make rules and dependencies not useful
1436                           (and sometimes confusing) to the casual installer
1437   --enable-shared[=PKGS]  build shared libraries [default=yes]
1438   --enable-static[=PKGS]  build static libraries [default=yes]
1439   --enable-fast-install[=PKGS]
1440                           optimize for fast installation [default=yes]
1441   --disable-libtool-lock  avoid locking (might break parallel builds)
1442   --enable-version-specific-runtime-libs
1443                           Specify that runtime libraries should be installed
1444                           in a compiler-specific directory
1445   --enable-sjlj-exceptions
1446                           force use of builtin_setjmp for exceptions
1447
1448 Optional Packages:
1449   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452   --with-pic              try to use only PIC/non-PIC objects [default=use
1453                           both]
1454   --without-libffi        don't use libffi
1455   --with-system-libunwind use installed libunwind
1456
1457 Some influential environment variables:
1458   CC          C compiler command
1459   CFLAGS      C compiler flags
1460   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461               nonstandard directory <lib dir>
1462   LIBS        libraries to pass to the linker, e.g. -l<library>
1463   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   GOC         Go compiler command
1466   GOCFLAGS    Go compiler flags
1467   CPP         C preprocessor
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to the package provider.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478   # If there are subdirs, report their specific --help.
1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480     test -d "$ac_dir" ||
1481       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482       continue
1483     ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489   # A ".." for each directory in $ac_dir_suffix.
1490   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491   case $ac_top_builddir_sub in
1492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494   esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502   .)  # We are building in place.
1503     ac_srcdir=.
1504     ac_top_srcdir=$ac_top_builddir_sub
1505     ac_abs_top_srcdir=$ac_pwd ;;
1506   [\\/]* | ?:[\\/]* )  # Absolute name.
1507     ac_srcdir=$srcdir$ac_dir_suffix;
1508     ac_top_srcdir=$srcdir
1509     ac_abs_top_srcdir=$srcdir ;;
1510   *) # Relative name.
1511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512     ac_top_srcdir=$ac_top_build_prefix$srcdir
1513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517     cd "$ac_dir" || { ac_status=$?; continue; }
1518     # Check for guested configure.
1519     if test -f "$ac_srcdir/configure.gnu"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522     elif test -f "$ac_srcdir/configure"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure" --help=recursive
1525     else
1526       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527     fi || ac_status=$?
1528     cd "$ac_pwd" || { ac_status=$?; break; }
1529   done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534   cat <<\_ACEOF
1535 package-unused configure version-unused
1536 generated by GNU Autoconf 2.64
1537
1538 Copyright (C) 2009 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542   exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555   rm -f conftest.$ac_objext
1556   if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559   *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563   (eval "$ac_compile") 2>conftest.err
1564   ac_status=$?
1565   if test -s conftest.err; then
1566     grep -v '^ *+' conftest.err >conftest.er1
1567     cat conftest.er1 >&5
1568     mv -f conftest.er1 conftest.err
1569   fi
1570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571   test $ac_status = 0; } && {
1572          test -z "$ac_c_werror_flag" ||
1573          test ! -s conftest.err
1574        } && test -s conftest.$ac_objext; then :
1575   ac_retval=0
1576 else
1577   $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580         ac_retval=1
1581 fi
1582   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583   return $ac_retval
1584
1585 } # ac_fn_c_try_compile
1586
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_link ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   rm -f conftest.$ac_objext conftest$ac_exeext
1594   if { { ac_try="$ac_link"
1595 case "(($ac_try" in
1596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597   *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601   (eval "$ac_link") 2>conftest.err
1602   ac_status=$?
1603   if test -s conftest.err; then
1604     grep -v '^ *+' conftest.err >conftest.er1
1605     cat conftest.er1 >&5
1606     mv -f conftest.er1 conftest.err
1607   fi
1608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609   test $ac_status = 0; } && {
1610          test -z "$ac_c_werror_flag" ||
1611          test ! -s conftest.err
1612        } && test -s conftest$ac_exeext && {
1613          test "$cross_compiling" = yes ||
1614          $as_test_x conftest$ac_exeext
1615        }; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621         ac_retval=1
1622 fi
1623   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625   # interfere with the next link command; also delete a directory that is
1626   # left behind by Apple's compiler.  We do this before executing the actions.
1627   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629   return $ac_retval
1630
1631 } # ac_fn_c_try_link
1632
1633 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists and can be compiled using the include files in
1636 # INCLUDES, setting the cache variable VAR accordingly.
1637 ac_fn_c_check_header_compile ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1643   $as_echo_n "(cached) " >&6
1644 else
1645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h.  */
1647 $4
1648 #include <$2>
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"; then :
1651   eval "$3=yes"
1652 else
1653   eval "$3=no"
1654 fi
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 fi
1657 eval ac_res=\$$3
1658                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661
1662 } # ac_fn_c_check_header_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673   *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678   ac_status=$?
1679   if test -s conftest.err; then
1680     grep -v '^ *+' conftest.err >conftest.er1
1681     cat conftest.er1 >&5
1682     mv -f conftest.er1 conftest.err
1683   fi
1684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685   test $ac_status = 0; } >/dev/null && {
1686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687          test ! -s conftest.err
1688        }; then :
1689   ac_retval=0
1690 else
1691   $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694     ac_retval=1
1695 fi
1696   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697   return $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711   *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715   (eval "$ac_link") 2>&5
1716   ac_status=$?
1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719   { { case "(($ac_try" in
1720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721   *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725   (eval "$ac_try") 2>&5
1726   ac_status=$?
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; }; }; then :
1729   ac_retval=0
1730 else
1731   $as_echo "$as_me: program exited with status $ac_status" >&5
1732        $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735        ac_retval=$ac_status
1736 fi
1737   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739   return $ac_retval
1740
1741 } # ac_fn_c_try_run
1742
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752   $as_echo_n "(cached) " >&6
1753 else
1754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h.  */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1758 #define $2 innocuous_$2
1759
1760 /* System header to define __stub macros and hopefully few prototypes,
1761     which can conflict with char $2 (); below.
1762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763     <limits.h> exists even on freestanding compilers.  */
1764
1765 #ifdef __STDC__
1766 # include <limits.h>
1767 #else
1768 # include <assert.h>
1769 #endif
1770
1771 #undef $2
1772
1773 /* Override any GCC internal prototype to avoid an error.
1774    Use char because int might match the return type of a GCC
1775    builtin and then its argument prototype would still apply.  */
1776 #ifdef __cplusplus
1777 extern "C"
1778 #endif
1779 char $2 ();
1780 /* The GNU C library defines this for functions which it implements
1781     to always fail with ENOSYS.  Some functions are actually named
1782     something starting with __ and the normal name is an alias.  */
1783 #if defined __stub_$2 || defined __stub___$2
1784 choke me
1785 #endif
1786
1787 int
1788 main ()
1789 {
1790 return $2 ();
1791   ;
1792   return 0;
1793 }
1794 _ACEOF
1795 if ac_fn_c_try_link "$LINENO"; then :
1796   eval "$3=yes"
1797 else
1798   eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext \
1801     conftest$ac_exeext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807
1808 } # ac_fn_c_check_func
1809
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1814 # accordingly.
1815 ac_fn_c_check_header_mongrel ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822   $as_echo_n "(cached) " >&6
1823 fi
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 else
1828   # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1833 $4
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837   ac_header_compiler=yes
1838 else
1839   ac_header_compiler=no
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1844
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h.  */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853   ac_header_preproc=yes
1854 else
1855   ac_header_preproc=no
1856 fi
1857 rm -f conftest.err conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1860
1861 # So?  What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863   yes:no: )
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868     ;;
1869   no:yes:* )
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880     ;;
1881 esac
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885   $as_echo_n "(cached) " >&6
1886 else
1887   eval "$3=\$ac_header_compiler"
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 fi
1893   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
1895 } # ac_fn_c_check_header_mongrel
1896
1897 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1898 # -------------------------------------------
1899 # Tests whether TYPE exists after having included INCLUDES, setting cache
1900 # variable VAR accordingly.
1901 ac_fn_c_check_type ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907   $as_echo_n "(cached) " >&6
1908 else
1909   eval "$3=no"
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 int
1914 main ()
1915 {
1916 if (sizeof ($2))
1917          return 0;
1918   ;
1919   return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 $4
1926 int
1927 main ()
1928 {
1929 if (sizeof (($2)))
1930             return 0;
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936
1937 else
1938   eval "$3=yes"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948
1949 } # ac_fn_c_check_type
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1953
1954 It was created by package-unused $as_me version-unused, which was
1955 generated by GNU Autoconf 2.64.  Invocation command line was
1956
1957   $ $0 $@
1958
1959 _ACEOF
1960 exec 5>>config.log
1961 {
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1966
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1975
1976 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1977 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1980 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1981 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1982 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1983
1984 _ASUNAME
1985
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991     $as_echo "PATH: $as_dir"
1992   done
1993 IFS=$as_save_IFS
1994
1995 } >&5
1996
1997 cat >&5 <<_ACEOF
1998
1999
2000 ## ----------- ##
2001 ## Core tests. ##
2002 ## ----------- ##
2003
2004 _ACEOF
2005
2006
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2012 ac_configure_args=
2013 ac_configure_args0=
2014 ac_configure_args1=
2015 ac_must_keep_next=false
2016 for ac_pass in 1 2
2017 do
2018   for ac_arg
2019   do
2020     case $ac_arg in
2021     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2022     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2023     | -silent | --silent | --silen | --sile | --sil)
2024       continue ;;
2025     *\'*)
2026       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027     esac
2028     case $ac_pass in
2029     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2030     2)
2031       as_fn_append ac_configure_args1 " '$ac_arg'"
2032       if test $ac_must_keep_next = true; then
2033         ac_must_keep_next=false # Got value, back to normal.
2034       else
2035         case $ac_arg in
2036           *=* | --config-cache | -C | -disable-* | --disable-* \
2037           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2038           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2039           | -with-* | --with-* | -without-* | --without-* | --x)
2040             case "$ac_configure_args0 " in
2041               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042             esac
2043             ;;
2044           -* ) ac_must_keep_next=true ;;
2045         esac
2046       fi
2047       as_fn_append ac_configure_args " '$ac_arg'"
2048       ;;
2049     esac
2050   done
2051 done
2052 { ac_configure_args0=; unset ac_configure_args0;}
2053 { ac_configure_args1=; unset ac_configure_args1;}
2054
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log.  We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061   # Save into config.log some information that might help in debugging.
2062   {
2063     echo
2064
2065     cat <<\_ASBOX
2066 ## ---------------- ##
2067 ## Cache variables. ##
2068 ## ---------------- ##
2069 _ASBOX
2070     echo
2071     # The following way of writing the cache mishandles newlines in values,
2072 (
2073   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074     eval ac_val=\$$ac_var
2075     case $ac_val in #(
2076     *${as_nl}*)
2077       case $ac_var in #(
2078       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080       esac
2081       case $ac_var in #(
2082       _ | IFS | as_nl) ;; #(
2083       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084       *) { eval $ac_var=; unset $ac_var;} ;;
2085       esac ;;
2086     esac
2087   done
2088   (set) 2>&1 |
2089     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090     *${as_nl}ac_space=\ *)
2091       sed -n \
2092         "s/'\''/'\''\\\\'\'''\''/g;
2093           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094       ;; #(
2095     *)
2096       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2097       ;;
2098     esac |
2099     sort
2100 )
2101     echo
2102
2103     cat <<\_ASBOX
2104 ## ----------------- ##
2105 ## Output variables. ##
2106 ## ----------------- ##
2107 _ASBOX
2108     echo
2109     for ac_var in $ac_subst_vars
2110     do
2111       eval ac_val=\$$ac_var
2112       case $ac_val in
2113       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114       esac
2115       $as_echo "$ac_var='\''$ac_val'\''"
2116     done | sort
2117     echo
2118
2119     if test -n "$ac_subst_files"; then
2120       cat <<\_ASBOX
2121 ## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##
2124 _ASBOX
2125       echo
2126       for ac_var in $ac_subst_files
2127       do
2128         eval ac_val=\$$ac_var
2129         case $ac_val in
2130         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131         esac
2132         $as_echo "$ac_var='\''$ac_val'\''"
2133       done | sort
2134       echo
2135     fi
2136
2137     if test -s confdefs.h; then
2138       cat <<\_ASBOX
2139 ## ----------- ##
2140 ## confdefs.h. ##
2141 ## ----------- ##
2142 _ASBOX
2143       echo
2144       cat confdefs.h
2145       echo
2146     fi
2147     test "$ac_signal" != 0 &&
2148       $as_echo "$as_me: caught signal $ac_signal"
2149     $as_echo "$as_me: exit $exit_status"
2150   } >&5
2151   rm -f core *.core core.conftest.* &&
2152     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153     exit $exit_status
2154 ' 0
2155 for ac_signal in 1 2 13 15; do
2156   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2159
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2162
2163 $as_echo "/* confdefs.h */" > confdefs.h
2164
2165 # Predefined preprocessor variables.
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2189 _ACEOF
2190
2191
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 ac_site_file1=NONE
2195 ac_site_file2=NONE
2196 if test -n "$CONFIG_SITE"; then
2197   ac_site_file1=$CONFIG_SITE
2198 elif test "x$prefix" != xNONE; then
2199   ac_site_file1=$prefix/share/config.site
2200   ac_site_file2=$prefix/etc/config.site
2201 else
2202   ac_site_file1=$ac_default_prefix/share/config.site
2203   ac_site_file2=$ac_default_prefix/etc/config.site
2204 fi
2205 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206 do
2207   test "x$ac_site_file" = xNONE && continue
2208   if test -r "$ac_site_file"; then
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211     sed 's/^/| /' "$ac_site_file" >&5
2212     . "$ac_site_file"
2213   fi
2214 done
2215
2216 if test -r "$cache_file"; then
2217   # Some versions of bash will fail to source /dev/null (special
2218   # files actually), so we avoid doing that.
2219   if test -f "$cache_file"; then
2220     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221 $as_echo "$as_me: loading cache $cache_file" >&6;}
2222     case $cache_file in
2223       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224       *)                      . "./$cache_file";;
2225     esac
2226   fi
2227 else
2228   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229 $as_echo "$as_me: creating cache $cache_file" >&6;}
2230   >$cache_file
2231 fi
2232
2233 # Check that the precious variables saved in the cache have kept the same
2234 # value.
2235 ac_cache_corrupted=false
2236 for ac_var in $ac_precious_vars; do
2237   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238   eval ac_new_set=\$ac_env_${ac_var}_set
2239   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240   eval ac_new_val=\$ac_env_${ac_var}_value
2241   case $ac_old_set,$ac_new_set in
2242     set,)
2243       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245       ac_cache_corrupted=: ;;
2246     ,set)
2247       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249       ac_cache_corrupted=: ;;
2250     ,);;
2251     *)
2252       if test "x$ac_old_val" != "x$ac_new_val"; then
2253         # differences in whitespace do not lead to failure.
2254         ac_old_val_w=`echo x $ac_old_val`
2255         ac_new_val_w=`echo x $ac_new_val`
2256         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259           ac_cache_corrupted=:
2260         else
2261           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263           eval $ac_var=\$ac_old_val
2264         fi
2265         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2266 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2267         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2268 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2269       fi;;
2270   esac
2271   # Pass precious variables to config.status.
2272   if test "$ac_new_set" = set; then
2273     case $ac_new_val in
2274     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275     *) ac_arg=$ac_var=$ac_new_val ;;
2276     esac
2277     case " $ac_configure_args " in
2278       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2279       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280     esac
2281   fi
2282 done
2283 if $ac_cache_corrupted; then
2284   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2289 fi
2290 ## -------------------- ##
2291 ## Main body of script. ##
2292 ## -------------------- ##
2293
2294 ac_ext=c
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301
2302
2303
2304
2305 ac_config_headers="$ac_config_headers config.h"
2306
2307
2308 libtool_VERSION=1:0:0
2309
2310
2311 # Default to --enable-multilib
2312 # Check whether --enable-multilib was given.
2313 if test "${enable_multilib+set}" = set; then :
2314   enableval=$enable_multilib; case "$enableval" in
2315   yes) multilib=yes ;;
2316   no)  multilib=no ;;
2317   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2318  esac
2319 else
2320   multilib=yes
2321 fi
2322
2323
2324 # We may get other options which we leave undocumented:
2325 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2326 # See config-ml.in if you want the gory details.
2327
2328 if test "$srcdir" = "."; then
2329   if test "$with_target_subdir" != "."; then
2330     multi_basedir="$srcdir/$with_multisrctop../.."
2331   else
2332     multi_basedir="$srcdir/$with_multisrctop.."
2333   fi
2334 else
2335   multi_basedir="$srcdir/.."
2336 fi
2337
2338
2339 # Even if the default multilib is not a cross compilation,
2340 # it may be that some of the other multilibs are.
2341 if test $cross_compiling = no && test $multilib = yes \
2342    && test "x${with_multisubdir}" != x ; then
2343    cross_compiling=maybe
2344 fi
2345
2346 ac_config_commands="$ac_config_commands default-1"
2347
2348
2349 ac_aux_dir=
2350 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2351   for ac_t in install-sh install.sh shtool; do
2352     if test -f "$ac_dir/$ac_t"; then
2353       ac_aux_dir=$ac_dir
2354       ac_install_sh="$ac_aux_dir/$ac_t -c"
2355       break 2
2356     fi
2357   done
2358 done
2359 if test -z "$ac_aux_dir"; then
2360   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 fi
2362
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2370
2371
2372 # Make sure we can run config.sub.
2373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2374   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2377 $as_echo_n "checking build system type... " >&6; }
2378 if test "${ac_cv_build+set}" = set; then :
2379   $as_echo_n "(cached) " >&6
2380 else
2381   ac_build_alias=$build_alias
2382 test "x$ac_build_alias" = x &&
2383   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2384 test "x$ac_build_alias" = x &&
2385   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2387   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2388
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2391 $as_echo "$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2393 *-*-*) ;;
2394 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2395 esac
2396 build=$ac_cv_build
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_build
2399 shift
2400 build_cpu=$1
2401 build_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 build_os=$*
2406 IFS=$ac_save_IFS
2407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2408
2409
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2411 $as_echo_n "checking host system type... " >&6; }
2412 if test "${ac_cv_host+set}" = set; then :
2413   $as_echo_n "(cached) " >&6
2414 else
2415   if test "x$host_alias" = x; then
2416   ac_cv_host=$ac_cv_build
2417 else
2418   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2419     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2420 fi
2421
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2424 $as_echo "$ac_cv_host" >&6; }
2425 case $ac_cv_host in
2426 *-*-*) ;;
2427 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2428 esac
2429 host=$ac_cv_host
2430 ac_save_IFS=$IFS; IFS='-'
2431 set x $ac_cv_host
2432 shift
2433 host_cpu=$1
2434 host_vendor=$2
2435 shift; shift
2436 # Remember, the first character of IFS is used to create $*,
2437 # except with old shells:
2438 host_os=$*
2439 IFS=$ac_save_IFS
2440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2441
2442
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2444 $as_echo_n "checking target system type... " >&6; }
2445 if test "${ac_cv_target+set}" = set; then :
2446   $as_echo_n "(cached) " >&6
2447 else
2448   if test "x$target_alias" = x; then
2449   ac_cv_target=$ac_cv_host
2450 else
2451   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2452     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2453 fi
2454
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2457 $as_echo "$ac_cv_target" >&6; }
2458 case $ac_cv_target in
2459 *-*-*) ;;
2460 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2461 esac
2462 target=$ac_cv_target
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_target
2465 shift
2466 target_cpu=$1
2467 target_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 target_os=$*
2472 IFS=$ac_save_IFS
2473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2474
2475
2476 # The aliases save the names the user supplied, while $host etc.
2477 # will get canonicalized.
2478 test -n "$target_alias" &&
2479   test "$program_prefix$program_suffix$program_transform_name" = \
2480     NONENONEs,x,x, &&
2481   program_prefix=${target_alias}-
2482
2483 target_alias=${target_alias-$host_alias}
2484
2485 am__api_version='1.11'
2486
2487 # Find a good install program.  We prefer a C program (faster),
2488 # so one script is as good as another.  But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2493 # AIX /bin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 # Reject install programs that cannot install multiple files.
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2503 if test -z "$INSTALL"; then
2504 if test "${ac_cv_path_install+set}" = set; then :
2505   $as_echo_n "(cached) " >&6
2506 else
2507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512     # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in #((
2514   ./ | .// | /[cC]/* | \
2515   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517   /usr/ucb/* ) ;;
2518   *)
2519     # OSF1 and SCO ODT 3.0 have their own names for install.
2520     # Don't use installbsd from OSF since it installs stuff as root
2521     # by default.
2522     for ac_prog in ginstall scoinst install; do
2523       for ac_exec_ext in '' $ac_executable_extensions; do
2524         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2525           if test $ac_prog = install &&
2526             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527             # AIX install.  It has an incompatible calling convention.
2528             :
2529           elif test $ac_prog = install &&
2530             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531             # program-specific install script used by HP pwplus--don't use.
2532             :
2533           else
2534             rm -rf conftest.one conftest.two conftest.dir
2535             echo one > conftest.one
2536             echo two > conftest.two
2537             mkdir conftest.dir
2538             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539               test -s conftest.one && test -s conftest.two &&
2540               test -s conftest.dir/conftest.one &&
2541               test -s conftest.dir/conftest.two
2542             then
2543               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544               break 3
2545             fi
2546           fi
2547         fi
2548       done
2549     done
2550     ;;
2551 esac
2552
2553   done
2554 IFS=$as_save_IFS
2555
2556 rm -rf conftest.one conftest.two conftest.dir
2557
2558 fi
2559   if test "${ac_cv_path_install+set}" = set; then
2560     INSTALL=$ac_cv_path_install
2561   else
2562     # As a last resort, use the slow shell script.  Don't cache a
2563     # value for INSTALL within a source directory, because that will
2564     # break other packages using the cache if that directory is
2565     # removed, or if the value is a relative name.
2566     INSTALL=$ac_install_sh
2567   fi
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570 $as_echo "$INSTALL" >&6; }
2571
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2581 $as_echo_n "checking whether build environment is sane... " >&6; }
2582 # Just in case
2583 sleep 1
2584 echo timestamp > conftest.file
2585 # Reject unsafe characters in $srcdir or the absolute working directory
2586 # name.  Accept space and tab only in the latter.
2587 am_lf='
2588 '
2589 case `pwd` in
2590   *[\\\"\#\$\&\'\`$am_lf]*)
2591     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2592 esac
2593 case $srcdir in
2594   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2595     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2596 esac
2597
2598 # Do `set' in a subshell so we don't clobber the current shell's
2599 # arguments.  Must try -L first in case configure is actually a
2600 # symlink; some systems play weird games with the mod time of symlinks
2601 # (eg FreeBSD returns the mod time of the symlink's containing
2602 # directory).
2603 if (
2604    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2605    if test "$*" = "X"; then
2606       # -L didn't work.
2607       set X `ls -t "$srcdir/configure" conftest.file`
2608    fi
2609    rm -f conftest.file
2610    if test "$*" != "X $srcdir/configure conftest.file" \
2611       && test "$*" != "X conftest.file $srcdir/configure"; then
2612
2613       # If neither matched, then we have a broken ls.  This can happen
2614       # if, for instance, CONFIG_SHELL is bash and it inherits a
2615       # broken ls alias from the environment.  This has actually
2616       # happened.  Such a system could not be considered "sane".
2617       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2618 alias in your environment" "$LINENO" 5
2619    fi
2620
2621    test "$2" = conftest.file
2622    )
2623 then
2624    # Ok.
2625    :
2626 else
2627    as_fn_error "newly created file is older than distributed files!
2628 Check your system clock" "$LINENO" 5
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632 test "$program_prefix" != NONE &&
2633   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2634 # Use a double $ so make ignores it.
2635 test "$program_suffix" != NONE &&
2636   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2637 # Double any \ or $.
2638 # By default was `s,x,x', remove it if useless.
2639 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2640 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2641
2642 # expand $ac_aux_dir to an absolute path
2643 am_aux_dir=`cd $ac_aux_dir && pwd`
2644
2645 if test x"${MISSING+set}" != xset; then
2646   case $am_aux_dir in
2647   *\ * | *\     *)
2648     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2649   *)
2650     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2651   esac
2652 fi
2653 # Use eval to expand $SHELL
2654 if eval "$MISSING --run true"; then
2655   am_missing_run="$MISSING --run "
2656 else
2657   am_missing_run=
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2659 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2660 fi
2661
2662 if test x"${install_sh}" != xset; then
2663   case $am_aux_dir in
2664   *\ * | *\     *)
2665     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2666   *)
2667     install_sh="\${SHELL} $am_aux_dir/install-sh"
2668   esac
2669 fi
2670
2671 # Installed binaries are usually stripped using `strip' when the user
2672 # run `make install-strip'.  However `strip' might not be the right
2673 # tool to use in cross-compilation environments, therefore Automake
2674 # will honor the `STRIP' environment variable to overrule this program.
2675 if test "$cross_compiling" != no; then
2676   if test -n "$ac_tool_prefix"; then
2677   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}strip; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_STRIP+set}" = set; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   if test -n "$STRIP"; then
2685   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692     for ac_exec_ext in '' $ac_executable_extensions; do
2693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699   done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 STRIP=$ac_cv_prog_STRIP
2705 if test -n "$STRIP"; then
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2707 $as_echo "$STRIP" >&6; }
2708 else
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$ac_cv_prog_STRIP"; then
2716   ac_ct_STRIP=$STRIP
2717   # Extract the first word of "strip", so it can be a program name with args.
2718 set dummy strip; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$ac_ct_STRIP"; then
2725   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     for ac_exec_ext in '' $ac_executable_extensions; do
2733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734     ac_cv_prog_ac_ct_STRIP="strip"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2745 if test -n "$ac_ct_STRIP"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2747 $as_echo "$ac_ct_STRIP" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753   if test "x$ac_ct_STRIP" = x; then
2754     STRIP=":"
2755   else
2756     case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2761 esac
2762     STRIP=$ac_ct_STRIP
2763   fi
2764 else
2765   STRIP="$ac_cv_prog_STRIP"
2766 fi
2767
2768 fi
2769 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2770
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2772 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2773 if test -z "$MKDIR_P"; then
2774   if test "${ac_cv_path_mkdir+set}" = set; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782     for ac_prog in mkdir gmkdir; do
2783          for ac_exec_ext in '' $ac_executable_extensions; do
2784            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2785            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2786              'mkdir (GNU coreutils) '* | \
2787              'mkdir (coreutils) '* | \
2788              'mkdir (fileutils) '4.1*)
2789                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2790                break 3;;
2791            esac
2792          done
2793        done
2794   done
2795 IFS=$as_save_IFS
2796
2797 fi
2798
2799   if test "${ac_cv_path_mkdir+set}" = set; then
2800     MKDIR_P="$ac_cv_path_mkdir -p"
2801   else
2802     # As a last resort, use the slow shell script.  Don't cache a
2803     # value for MKDIR_P within a source directory, because that will
2804     # break other packages using the cache if that directory is
2805     # removed, or if the value is a relative name.
2806     test -d ./--version && rmdir ./--version
2807     MKDIR_P="$ac_install_sh -d"
2808   fi
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2811 $as_echo "$MKDIR_P" >&6; }
2812
2813 mkdir_p="$MKDIR_P"
2814 case $mkdir_p in
2815   [\\/$]* | ?:[\\/]*) ;;
2816   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2817 esac
2818
2819 for ac_prog in gawk mawk nawk awk
2820 do
2821   # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_AWK+set}" = set; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$AWK"; then
2829   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_prog_AWK="$ac_prog"
2839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843   done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 AWK=$ac_cv_prog_AWK
2849 if test -n "$AWK"; then
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2851 $as_echo "$AWK" >&6; }
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858   test -n "$AWK" && break
2859 done
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2862 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2863 set x ${MAKE-make}
2864 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2865 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2866   $as_echo_n "(cached) " >&6
2867 else
2868   cat >conftest.make <<\_ACEOF
2869 SHELL = /bin/sh
2870 all:
2871         @echo '@@@%%%=$(MAKE)=@@@%%%'
2872 _ACEOF
2873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2874 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2875   *@@@%%%=?*=@@@%%%*)
2876     eval ac_cv_prog_make_${ac_make}_set=yes;;
2877   *)
2878     eval ac_cv_prog_make_${ac_make}_set=no;;
2879 esac
2880 rm -f conftest.make
2881 fi
2882 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884 $as_echo "yes" >&6; }
2885   SET_MAKE=
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889   SET_MAKE="MAKE=${MAKE-make}"
2890 fi
2891
2892 rm -rf .tst 2>/dev/null
2893 mkdir .tst 2>/dev/null
2894 if test -d .tst; then
2895   am__leading_dot=.
2896 else
2897   am__leading_dot=_
2898 fi
2899 rmdir .tst 2>/dev/null
2900
2901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2902   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2903   # is not polluted with repeated "-I."
2904   am__isrc=' -I$(srcdir)'
2905   # test to see if srcdir already configured
2906   if test -f $srcdir/config.status; then
2907     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2908   fi
2909 fi
2910
2911 # test whether we have cygpath
2912 if test -z "$CYGPATH_W"; then
2913   if (cygpath --version) >/dev/null 2>/dev/null; then
2914     CYGPATH_W='cygpath -w'
2915   else
2916     CYGPATH_W=echo
2917   fi
2918 fi
2919
2920
2921 # Define the identity of the package.
2922  PACKAGE='libgo'
2923  VERSION='version-unused'
2924
2925
2926 # Some tools Automake needs.
2927
2928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2929
2930
2931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2932
2933
2934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2935
2936
2937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2938
2939
2940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2941
2942 # We need awk for the "check" target.  The system "awk" is bad on
2943 # some platforms.
2944 # Always define AMTAR for backward compatibility.
2945
2946 AMTAR=${AMTAR-"${am_missing_run}tar"}
2947
2948 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 if test -n "$ac_tool_prefix"; then
2965   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then :
2970   $as_echo_n "(cached) " >&6
2971 else
2972   if test -n "$CC"; then
2973   ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980     for ac_exec_ext in '' $ac_executable_extensions; do
2981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984     break 2
2985   fi
2986 done
2987   done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2996 else
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 if test -z "$ac_cv_prog_CC"; then
3004   ac_ct_CC=$CC
3005   # Extract the first word of "gcc", so it can be a program name with args.
3006 set dummy gcc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$ac_ct_CC"; then
3013   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_ac_ct_CC="gcc"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041   if test "x$ac_ct_CC" = x; then
3042     CC=""
3043   else
3044     case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050     CC=$ac_ct_CC
3051   fi
3052 else
3053   CC="$ac_cv_prog_CC"
3054 fi
3055
3056 if test -z "$CC"; then
3057           if test -n "$ac_tool_prefix"; then
3058     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_CC+set}" = set; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   if test -n "$CC"; then
3066   ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071   IFS=$as_save_IFS
3072   test -z "$as_dir" && as_dir=.
3073     for ac_exec_ext in '' $ac_executable_extensions; do
3074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075     ac_cv_prog_CC="${ac_tool_prefix}cc"
3076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077     break 2
3078   fi
3079 done
3080   done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3089 else
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095   fi
3096 fi
3097 if test -z "$CC"; then
3098   # Extract the first word of "cc", so it can be a program name with args.
3099 set dummy cc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if test "${ac_cv_prog_CC+set}" = set; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   if test -n "$CC"; then
3106   ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108   ac_prog_rejected=no
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114     for ac_exec_ext in '' $ac_executable_extensions; do
3115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3117        ac_prog_rejected=yes
3118        continue
3119      fi
3120     ac_cv_prog_CC="cc"
3121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125   done
3126 IFS=$as_save_IFS
3127
3128 if test $ac_prog_rejected = yes; then
3129   # We found a bogon in the path, so make sure we never use it.
3130   set dummy $ac_cv_prog_CC
3131   shift
3132   if test $# != 0; then
3133     # We chose a different compiler from the bogus one.
3134     # However, it has the same basename, so the bogon will be chosen
3135     # first if we set CC to just the basename; use the full file name.
3136     shift
3137     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3138   fi
3139 fi
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 fi
3153 if test -z "$CC"; then
3154   if test -n "$ac_tool_prefix"; then
3155   for ac_prog in cl.exe
3156   do
3157     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_CC+set}" = set; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test -n "$CC"; then
3165   ac_cv_prog_CC="$CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     for ac_exec_ext in '' $ac_executable_extensions; do
3173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179   done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194     test -n "$CC" && break
3195   done
3196 fi
3197 if test -z "$CC"; then
3198   ac_ct_CC=$CC
3199   for ac_prog in cl.exe
3200 do
3201   # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$ac_ct_CC"; then
3209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_ac_ct_CC="$ac_prog"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238   test -n "$ac_ct_CC" && break
3239 done
3240
3241   if test "x$ac_ct_CC" = x; then
3242     CC=""
3243   else
3244     case $cross_compiling:$ac_tool_warned in
3245 yes:)
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248 ac_tool_warned=yes ;;
3249 esac
3250     CC=$ac_ct_CC
3251   fi
3252 fi
3253
3254 fi
3255
3256
3257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error "no acceptable C compiler found in \$PATH
3260 See \`config.log' for more details." "$LINENO" 5; }
3261
3262 # Provide some information about the compiler.
3263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3264 set X $ac_compile
3265 ac_compiler=$2
3266 for ac_option in --version -v -V -qversion; do
3267   { { ac_try="$ac_compiler $ac_option >&5"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3275   ac_status=$?
3276   if test -s conftest.err; then
3277     sed '10a\
3278 ... rest of stderr output deleted ...
3279          10q' conftest.err >conftest.er1
3280     cat conftest.er1 >&5
3281     rm -f conftest.er1 conftest.err
3282   fi
3283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284   test $ac_status = 0; }
3285 done
3286
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h.  */
3289
3290 int
3291 main ()
3292 {
3293
3294   ;
3295   return 0;
3296 }
3297 _ACEOF
3298 ac_clean_files_save=$ac_clean_files
3299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3300 # Try to create an executable without -o first, disregard a.out.
3301 # It will help us diagnose broken compilers, and finding out an intuition
3302 # of exeext.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3304 $as_echo_n "checking for C compiler default output file name... " >&6; }
3305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306
3307 # The possible output files:
3308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309
3310 ac_rmfiles=
3311 for ac_file in $ac_files
3312 do
3313   case $ac_file in
3314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316   esac
3317 done
3318 rm -f $ac_rmfiles
3319
3320 if { { ac_try="$ac_link_default"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327   (eval "$ac_link_default") 2>&5
3328   ac_status=$?
3329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330   test $ac_status = 0; }; then :
3331   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3334 # so that the user can short-circuit this test for compilers unknown to
3335 # Autoconf.
3336 for ac_file in $ac_files ''
3337 do
3338   test -f "$ac_file" || continue
3339   case $ac_file in
3340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341         ;;
3342     [ab].out )
3343         # We found the default executable, but exeext='' is most
3344         # certainly right.
3345         break;;
3346     *.* )
3347         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348         then :; else
3349            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350         fi
3351         # We set ac_cv_exeext here because the later test for it is not
3352         # safe: cross compilers may not add the suffix if given an `-o'
3353         # argument, so we may need to know it at that point already.
3354         # Even if this section looks crufty: it has the advantage of
3355         # actually working.
3356         break;;
3357     * )
3358         break;;
3359   esac
3360 done
3361 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362
3363 else
3364   ac_file=''
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 if test -z "$ac_file"; then :
3369   $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { as_fn_set_status 77
3375 as_fn_error "C compiler cannot create executables
3376 See \`config.log' for more details." "$LINENO" 5; }; }
3377 fi
3378 ac_exeext=$ac_cv_exeext
3379
3380 # Check that the compiler produces executables we can run.  If not, either
3381 # the compiler is broken, or we cross compile.
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3383 $as_echo_n "checking whether the C compiler works... " >&6; }
3384 # If not cross compiling, check that we can run a simple program.
3385 if test "$cross_compiling" != yes; then
3386   if { ac_try='./$ac_file'
3387   { { case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393   (eval "$ac_try") 2>&5
3394   ac_status=$?
3395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396   test $ac_status = 0; }; }; then
3397     cross_compiling=no
3398   else
3399     if test "$cross_compiling" = maybe; then
3400         cross_compiling=yes
3401     else
3402         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error "cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details." "$LINENO" 5; }
3407     fi
3408   fi
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3411 $as_echo "yes" >&6; }
3412
3413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3414 ac_clean_files=$ac_clean_files_save
3415 # Check that the compiler produces executables we can run.  If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3421
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { { ac_try="$ac_link"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431   (eval "$ac_link") 2>&5
3432   ac_status=$?
3433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434   test $ac_status = 0; }; then :
3435   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 # `rm'.
3439 for ac_file in conftest.exe conftest conftest.*; do
3440   test -f "$ac_file" || continue
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444           break;;
3445     * ) break;;
3446   esac
3447 done
3448 else
3449   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error "cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details." "$LINENO" 5; }
3453 fi
3454 rm -f conftest$ac_cv_exeext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3456 $as_echo "$ac_cv_exeext" >&6; }
3457
3458 rm -f conftest.$ac_ext
3459 EXEEXT=$ac_cv_exeext
3460 ac_exeext=$EXEEXT
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462 $as_echo_n "checking for suffix of object files... " >&6; }
3463 if test "${ac_cv_objext+set}" = set; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.o conftest.obj
3478 if { { ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485   (eval "$ac_compile") 2>&5
3486   ac_status=$?
3487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488   test $ac_status = 0; }; then :
3489   for ac_file in conftest.o conftest.obj conftest.*; do
3490   test -f "$ac_file" || continue;
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494        break;;
3495   esac
3496 done
3497 else
3498   $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error "cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details." "$LINENO" 5; }
3505 fi
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509 $as_echo "$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3511 ac_objext=$OBJEXT
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523 #ifndef __GNUC__
3524        choke me
3525 #endif
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532   ac_compiler_gnu=yes
3533 else
3534   ac_compiler_gnu=no
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542 if test $ac_compiler_gnu = yes; then
3543   GCC=yes
3544 else
3545   GCC=
3546 fi
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if test "${ac_cv_prog_cc_g+set}" = set; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   ac_save_c_werror_flag=$ac_c_werror_flag
3555    ac_c_werror_flag=yes
3556    ac_cv_prog_cc_g=no
3557    CFLAGS="-g"
3558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570   ac_cv_prog_cc_g=yes
3571 else
3572   CFLAGS=""
3573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585
3586 else
3587   ac_c_werror_flag=$ac_save_c_werror_flag
3588          CFLAGS="-g"
3589          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_cv_prog_cc_g=yes
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_c_werror_flag=$ac_save_c_werror_flag
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613   CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615   if test "$GCC" = yes; then
3616     CFLAGS="-g -O2"
3617   else
3618     CFLAGS="-g"
3619   fi
3620 else
3621   if test "$GCC" = yes; then
3622     CFLAGS="-O2"
3623   else
3624     CFLAGS=
3625   fi
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   ac_cv_prog_cc_c89=no
3633 ac_save_CC=$CC
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636 #include <stdarg.h>
3637 #include <stdio.h>
3638 #include <sys/types.h>
3639 #include <sys/stat.h>
3640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3641 struct buf { int x; };
3642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643 static char *e (p, i)
3644      char **p;
3645      int i;
3646 {
3647   return p[i];
3648 }
3649 static char *f (char * (*g) (char **, int), char **p, ...)
3650 {
3651   char *s;
3652   va_list v;
3653   va_start (v,p);
3654   s = g (p, va_arg (v,int));
3655   va_end (v);
3656   return s;
3657 }
3658
3659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3660    function prototypes and stuff, but not '\xHH' hex character constants.
3661    These don't provoke an error unfortunately, instead are silently treated
3662    as 'x'.  The following induces an error, until -std is added to get
3663    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3664    array size at least.  It's necessary to write '\x00'==0 to get something
3665    that's true only with -std.  */
3666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669    inside strings and character constants.  */
3670 #define FOO(x) 'x'
3671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
3673 int test (int i, double x);
3674 struct s1 {int (*f) (int a);};
3675 struct s2 {int (*f) (double a);};
3676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677 int argc;
3678 char **argv;
3679 int
3680 main ()
3681 {
3682 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689 do
3690   CC="$ac_save_CC $ac_arg"
3691   if ac_fn_c_try_compile "$LINENO"; then :
3692   ac_cv_prog_cc_c89=$ac_arg
3693 fi
3694 rm -f core conftest.err conftest.$ac_objext
3695   test "x$ac_cv_prog_cc_c89" != "xno" && break
3696 done
3697 rm -f conftest.$ac_ext
3698 CC=$ac_save_CC
3699
3700 fi
3701 # AC_CACHE_VAL
3702 case "x$ac_cv_prog_cc_c89" in
3703   x)
3704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705 $as_echo "none needed" >&6; } ;;
3706   xno)
3707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708 $as_echo "unsupported" >&6; } ;;
3709   *)
3710     CC="$CC $ac_cv_prog_cc_c89"
3711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713 esac
3714 if test "x$ac_cv_prog_cc_c89" != xno; then :
3715
3716 fi
3717
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 DEPDIR="${am__leading_dot}deps"
3724
3725 ac_config_commands="$ac_config_commands depfiles"
3726
3727
3728 am_make=${MAKE-make}
3729 cat > confinc << 'END'
3730 am__doit:
3731         @echo this is the am__doit target
3732 .PHONY: am__doit
3733 END
3734 # If we don't find an include directive, just comment out the code.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3736 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3737 am__include="#"
3738 am__quote=
3739 _am_result=none
3740 # First try GNU make style include.
3741 echo "include confinc" > confmf
3742 # Ignore all kinds of additional output from `make'.
3743 case `$am_make -s -f confmf 2> /dev/null` in #(
3744 *the\ am__doit\ target*)
3745   am__include=include
3746   am__quote=
3747   _am_result=GNU
3748   ;;
3749 esac
3750 # Now try BSD make style include.
3751 if test "$am__include" = "#"; then
3752    echo '.include "confinc"' > confmf
3753    case `$am_make -s -f confmf 2> /dev/null` in #(
3754    *the\ am__doit\ target*)
3755      am__include=.include
3756      am__quote="\""
3757      _am_result=BSD
3758      ;;
3759    esac
3760 fi
3761
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3764 $as_echo "$_am_result" >&6; }
3765 rm -f confinc confmf
3766
3767 # Check whether --enable-dependency-tracking was given.
3768 if test "${enable_dependency_tracking+set}" = set; then :
3769   enableval=$enable_dependency_tracking;
3770 fi
3771
3772 if test "x$enable_dependency_tracking" != xno; then
3773   am_depcomp="$ac_aux_dir/depcomp"
3774   AMDEPBACKSLASH='\'
3775 fi
3776  if test "x$enable_dependency_tracking" != xno; then
3777   AMDEP_TRUE=
3778   AMDEP_FALSE='#'
3779 else
3780   AMDEP_TRUE='#'
3781   AMDEP_FALSE=
3782 fi
3783
3784
3785
3786 depcc="$CC"   am_compiler_list=
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3789 $as_echo_n "checking dependency style of $depcc... " >&6; }
3790 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3794   # We make a subdir and do the tests there.  Otherwise we can end up
3795   # making bogus files that we don't know about and never remove.  For
3796   # instance it was reported that on HP-UX the gcc test will end up
3797   # making a dummy file named `D' -- because `-MD' means `put the output
3798   # in D'.
3799   mkdir conftest.dir
3800   # Copy depcomp to subdir because otherwise we won't find it if we're
3801   # using a relative directory.
3802   cp "$am_depcomp" conftest.dir
3803   cd conftest.dir
3804   # We will build objects and dependencies in a subdirectory because
3805   # it helps to detect inapplicable dependency modes.  For instance
3806   # both Tru64's cc and ICC support -MD to output dependencies as a
3807   # side effect of compilation, but ICC will put the dependencies in
3808   # the current directory while Tru64 will put them in the object
3809   # directory.
3810   mkdir sub
3811
3812   am_cv_CC_dependencies_compiler_type=none
3813   if test "$am_compiler_list" = ""; then
3814      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815   fi
3816   am__universal=false
3817   case " $depcc " in #(
3818      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3819      esac
3820
3821   for depmode in $am_compiler_list; do
3822     # Setup a source with many dependencies, because some compilers
3823     # like to wrap large dependency lists on column 80 (with \), and
3824     # we should not choose a depcomp mode which is confused by this.
3825     #
3826     # We need to recreate these files for each test, as the compiler may
3827     # overwrite some of them when testing with obscure command lines.
3828     # This happens at least with the AIX C compiler.
3829     : > sub/conftest.c
3830     for i in 1 2 3 4 5 6; do
3831       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833       # Solaris 8's {/usr,}/bin/sh.
3834       touch sub/conftst$i.h
3835     done
3836     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
3838     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839     # mode.  It turns out that the SunPro C++ compiler does not properly
3840     # handle `-M -o', and we need to detect this.  Also, some Intel
3841     # versions had trouble with output in subdirs
3842     am__obj=sub/conftest.${OBJEXT-o}
3843     am__minus_obj="-o $am__obj"
3844     case $depmode in
3845     gcc)
3846       # This depmode causes a compiler race in universal mode.
3847       test "$am__universal" = false || continue
3848       ;;
3849     nosideeffect)
3850       # after this tag, mechanisms are not by side-effect, so they'll
3851       # only be used when explicitly requested
3852       if test "x$enable_dependency_tracking" = xyes; then
3853         continue
3854       else
3855         break
3856       fi
3857       ;;
3858     msvisualcpp | msvcmsys)
3859       # This compiler won't grok `-c -o', but also, the minuso test has
3860       # not run yet.  These depmodes are late enough in the game, and
3861       # so weak that their functioning should not be impacted.
3862       am__obj=conftest.${OBJEXT-o}
3863       am__minus_obj=
3864       ;;
3865     none) break ;;
3866     esac
3867     if depmode=$depmode \
3868        source=sub/conftest.c object=$am__obj \
3869        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871          >/dev/null 2>conftest.err &&
3872        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876       # icc doesn't choke on unknown options, it will just issue warnings
3877       # or remarks (even with -Werror).  So we grep stderr for any message
3878       # that says an option was ignored or not supported.
3879       # When given -MP, icc 7.0 and 7.1 complain thusly:
3880       #   icc: Command line warning: ignoring option '-M'; no argument required
3881       # The diagnosis changed in icc 8.0:
3882       #   icc: Command line remark: option '-MP' not supported
3883       if (grep 'ignoring option' conftest.err ||
3884           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885         am_cv_CC_dependencies_compiler_type=$depmode
3886         break
3887       fi
3888     fi
3889   done
3890
3891   cd ..
3892   rm -rf conftest.dir
3893 else
3894   am_cv_CC_dependencies_compiler_type=none
3895 fi
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901
3902  if
3903   test "x$enable_dependency_tracking" != xno \
3904   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905   am__fastdepCC_TRUE=
3906   am__fastdepCC_FALSE='#'
3907 else
3908   am__fastdepCC_TRUE='#'
3909   am__fastdepCC_FALSE=
3910 fi
3911
3912
3913 ac_ext=go
3914 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3915 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compile_gnu=yes
3917 if test -n "$ac_tool_prefix"; then
3918   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3919 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_GOC+set}" = set; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   if test -n "$GOC"; then
3926   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933     for ac_exec_ext in '' $ac_executable_extensions; do
3934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940   done
3941 IFS=$as_save_IFS
3942
3943 fi
3944 fi
3945 GOC=$ac_cv_prog_GOC
3946 if test -n "$GOC"; then
3947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3948 $as_echo "$GOC" >&6; }
3949 else
3950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 fi
3953
3954
3955 fi
3956 if test -z "$ac_cv_prog_GOC"; then
3957   ac_ct_GOC=$GOC
3958   # Extract the first word of "gccgo", so it can be a program name with args.
3959 set dummy gccgo; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   if test -n "$ac_ct_GOC"; then
3966   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971   IFS=$as_save_IFS
3972   test -z "$as_dir" && as_dir=.
3973     for ac_exec_ext in '' $ac_executable_extensions; do
3974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975     ac_cv_prog_ac_ct_GOC="gccgo"
3976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977     break 2
3978   fi
3979 done
3980   done
3981 IFS=$as_save_IFS
3982
3983 fi
3984 fi
3985 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3986 if test -n "$ac_ct_GOC"; then
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3988 $as_echo "$ac_ct_GOC" >&6; }
3989 else
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 fi
3993
3994   if test "x$ac_ct_GOC" = x; then
3995     GOC=""
3996   else
3997     case $cross_compiling:$ac_tool_warned in
3998 yes:)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001 ac_tool_warned=yes ;;
4002 esac
4003     GOC=$ac_ct_GOC
4004   fi
4005 else
4006   GOC="$ac_cv_prog_GOC"
4007 fi
4008
4009 if test -z "$GOC"; then
4010   if test -n "$ac_tool_prefix"; then
4011     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if test "${ac_cv_prog_GOC+set}" = set; then :
4016   $as_echo_n "(cached) " >&6
4017 else
4018   if test -n "$GOC"; then
4019   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026     for ac_exec_ext in '' $ac_executable_extensions; do
4027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4028     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030     break 2
4031   fi
4032 done
4033   done
4034 IFS=$as_save_IFS
4035
4036 fi
4037 fi
4038 GOC=$ac_cv_prog_GOC
4039 if test -n "$GOC"; then
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4041 $as_echo "$GOC" >&6; }
4042 else
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046
4047
4048   fi
4049 fi
4050 if test -z "$GOC"; then
4051   # Extract the first word of "gccgo", so it can be a program name with args.
4052 set dummy gccgo; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if test "${ac_cv_prog_GOC+set}" = set; then :
4056   $as_echo_n "(cached) " >&6
4057 else
4058   if test -n "$GOC"; then
4059   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4060 else
4061   ac_prog_rejected=no
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067     for ac_exec_ext in '' $ac_executable_extensions; do
4068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4070        ac_prog_rejected=yes
4071        continue
4072      fi
4073     ac_cv_prog_GOC="gccgo"
4074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078   done
4079 IFS=$as_save_IFS
4080
4081 if test $ac_prog_rejected = yes; then
4082   # We found a bogon in the path, so make sure we never use it.
4083   set dummy $ac_cv_prog_GOC
4084   shift
4085   if test $# != 0; then
4086     # We chose a different compiler from the bogus one.
4087     # However, it has the same basename, so the bogon will be chosen
4088     # first if we set GOC to just the basename; use the full file name.
4089     shift
4090     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4091   fi
4092 fi
4093 fi
4094 fi
4095 GOC=$ac_cv_prog_GOC
4096 if test -n "$GOC"; then
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4098 $as_echo "$GOC" >&6; }
4099 else
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4102 fi
4103
4104
4105 fi
4106
4107
4108 # Provide some information about the compiler.
4109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4110 set X $ac_compile
4111 ac_compiler=$2
4112 { { ac_try="$ac_compiler --version >&5"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119   (eval "$ac_compiler --version >&5") 2>conftest.err
4120   ac_status=$?
4121   if test -s conftest.err; then
4122     sed '10a\
4123 ... rest of stderr output deleted ...
4124          10q' conftest.err >conftest.er1
4125     cat conftest.er1 >&5
4126     rm -f conftest.er1 conftest.err
4127   fi
4128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129   test $ac_status = 0; }
4130 GOCFLAGS="-g -O2"
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137
4138
4139
4140
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4143 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4144     # Check whether --enable-maintainer-mode was given.
4145 if test "${enable_maintainer_mode+set}" = set; then :
4146   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4147 else
4148   USE_MAINTAINER_MODE=no
4149 fi
4150
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4152 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4153    if test $USE_MAINTAINER_MODE = yes; then
4154   MAINTAINER_MODE_TRUE=
4155   MAINTAINER_MODE_FALSE='#'
4156 else
4157   MAINTAINER_MODE_TRUE='#'
4158   MAINTAINER_MODE_FALSE=
4159 fi
4160
4161   MAINT=$MAINTAINER_MODE_TRUE
4162
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4166 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4167 if test "${ac_cv_path_SED+set}" = set; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4171      for ac_i in 1 2 3 4 5 6 7; do
4172        ac_script="$ac_script$as_nl$ac_script"
4173      done
4174      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4175      { ac_script=; unset ac_script;}
4176      if test -z "$SED"; then
4177   ac_path_SED_found=false
4178   # Loop through the user's path and test for each of PROGNAME-LIST
4179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184     for ac_prog in sed gsed; do
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4187       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4188 # Check for GNU ac_path_SED and select it if it is found.
4189   # Check for GNU $ac_path_SED
4190 case `"$ac_path_SED" --version 2>&1` in
4191 *GNU*)
4192   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4193 *)
4194   ac_count=0
4195   $as_echo_n 0123456789 >"conftest.in"
4196   while :
4197   do
4198     cat "conftest.in" "conftest.in" >"conftest.tmp"
4199     mv "conftest.tmp" "conftest.in"
4200     cp "conftest.in" "conftest.nl"
4201     $as_echo '' >> "conftest.nl"
4202     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204     as_fn_arith $ac_count + 1 && ac_count=$as_val
4205     if test $ac_count -gt ${ac_path_SED_max-0}; then
4206       # Best one so far, save it but keep looking for a better one
4207       ac_cv_path_SED="$ac_path_SED"
4208       ac_path_SED_max=$ac_count
4209     fi
4210     # 10*(2^10) chars as input seems more than enough
4211     test $ac_count -gt 10 && break
4212   done
4213   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214 esac
4215
4216       $ac_path_SED_found && break 3
4217     done
4218   done
4219   done
4220 IFS=$as_save_IFS
4221   if test -z "$ac_cv_path_SED"; then
4222     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4223   fi
4224 else
4225   ac_cv_path_SED=$SED
4226 fi
4227
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4230 $as_echo "$ac_cv_path_SED" >&6; }
4231  SED="$ac_cv_path_SED"
4232   rm -f conftest.sed
4233
4234 test -z "$SED" && SED=sed
4235 Xsed="$SED -e 1s/^X//"
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4249 if test "${ac_cv_path_GREP+set}" = set; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   if test -z "$GREP"; then
4253   ac_path_GREP_found=false
4254   # Loop through the user's path and test for each of PROGNAME-LIST
4255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257 do
4258   IFS=$as_save_IFS
4259   test -z "$as_dir" && as_dir=.
4260     for ac_prog in grep ggrep; do
4261     for ac_exec_ext in '' $ac_executable_extensions; do
4262       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4263       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4264 # Check for GNU ac_path_GREP and select it if it is found.
4265   # Check for GNU $ac_path_GREP
4266 case `"$ac_path_GREP" --version 2>&1` in
4267 *GNU*)
4268   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4269 *)
4270   ac_count=0
4271   $as_echo_n 0123456789 >"conftest.in"
4272   while :
4273   do
4274     cat "conftest.in" "conftest.in" >"conftest.tmp"
4275     mv "conftest.tmp" "conftest.in"
4276     cp "conftest.in" "conftest.nl"
4277     $as_echo 'GREP' >> "conftest.nl"
4278     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280     as_fn_arith $ac_count + 1 && ac_count=$as_val
4281     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282       # Best one so far, save it but keep looking for a better one
4283       ac_cv_path_GREP="$ac_path_GREP"
4284       ac_path_GREP_max=$ac_count
4285     fi
4286     # 10*(2^10) chars as input seems more than enough
4287     test $ac_count -gt 10 && break
4288   done
4289   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290 esac
4291
4292       $ac_path_GREP_found && break 3
4293     done
4294   done
4295   done
4296 IFS=$as_save_IFS
4297   if test -z "$ac_cv_path_GREP"; then
4298     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4299   fi
4300 else
4301   ac_cv_path_GREP=$GREP
4302 fi
4303
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4306 $as_echo "$ac_cv_path_GREP" >&6; }
4307  GREP="$ac_cv_path_GREP"
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311 $as_echo_n "checking for egrep... " >&6; }
4312 if test "${ac_cv_path_EGREP+set}" = set; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4316    then ac_cv_path_EGREP="$GREP -E"
4317    else
4318      if test -z "$EGREP"; then
4319   ac_path_EGREP_found=false
4320   # Loop through the user's path and test for each of PROGNAME-LIST
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326     for ac_prog in egrep; do
4327     for ac_exec_ext in '' $ac_executable_extensions; do
4328       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4329       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4330 # Check for GNU ac_path_EGREP and select it if it is found.
4331   # Check for GNU $ac_path_EGREP
4332 case `"$ac_path_EGREP" --version 2>&1` in
4333 *GNU*)
4334   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4335 *)
4336   ac_count=0
4337   $as_echo_n 0123456789 >"conftest.in"
4338   while :
4339   do
4340     cat "conftest.in" "conftest.in" >"conftest.tmp"
4341     mv "conftest.tmp" "conftest.in"
4342     cp "conftest.in" "conftest.nl"
4343     $as_echo 'EGREP' >> "conftest.nl"
4344     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346     as_fn_arith $ac_count + 1 && ac_count=$as_val
4347     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348       # Best one so far, save it but keep looking for a better one
4349       ac_cv_path_EGREP="$ac_path_EGREP"
4350       ac_path_EGREP_max=$ac_count
4351     fi
4352     # 10*(2^10) chars as input seems more than enough
4353     test $ac_count -gt 10 && break
4354   done
4355   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356 esac
4357
4358       $ac_path_EGREP_found && break 3
4359     done
4360   done
4361   done
4362 IFS=$as_save_IFS
4363   if test -z "$ac_cv_path_EGREP"; then
4364     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365   fi
4366 else
4367   ac_cv_path_EGREP=$EGREP
4368 fi
4369
4370    fi
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4373 $as_echo "$ac_cv_path_EGREP" >&6; }
4374  EGREP="$ac_cv_path_EGREP"
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4378 $as_echo_n "checking for fgrep... " >&6; }
4379 if test "${ac_cv_path_FGREP+set}" = set; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4383    then ac_cv_path_FGREP="$GREP -F"
4384    else
4385      if test -z "$FGREP"; then
4386   ac_path_FGREP_found=false
4387   # Loop through the user's path and test for each of PROGNAME-LIST
4388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393     for ac_prog in fgrep; do
4394     for ac_exec_ext in '' $ac_executable_extensions; do
4395       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4396       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4397 # Check for GNU ac_path_FGREP and select it if it is found.
4398   # Check for GNU $ac_path_FGREP
4399 case `"$ac_path_FGREP" --version 2>&1` in
4400 *GNU*)
4401   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4402 *)
4403   ac_count=0
4404   $as_echo_n 0123456789 >"conftest.in"
4405   while :
4406   do
4407     cat "conftest.in" "conftest.in" >"conftest.tmp"
4408     mv "conftest.tmp" "conftest.in"
4409     cp "conftest.in" "conftest.nl"
4410     $as_echo 'FGREP' >> "conftest.nl"
4411     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413     as_fn_arith $ac_count + 1 && ac_count=$as_val
4414     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4415       # Best one so far, save it but keep looking for a better one
4416       ac_cv_path_FGREP="$ac_path_FGREP"
4417       ac_path_FGREP_max=$ac_count
4418     fi
4419     # 10*(2^10) chars as input seems more than enough
4420     test $ac_count -gt 10 && break
4421   done
4422   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 esac
4424
4425       $ac_path_FGREP_found && break 3
4426     done
4427   done
4428   done
4429 IFS=$as_save_IFS
4430   if test -z "$ac_cv_path_FGREP"; then
4431     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432   fi
4433 else
4434   ac_cv_path_FGREP=$FGREP
4435 fi
4436
4437    fi
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4440 $as_echo "$ac_cv_path_FGREP" >&6; }
4441  FGREP="$ac_cv_path_FGREP"
4442
4443
4444 test -z "$GREP" && GREP=grep
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4463 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4464 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4467 $as_echo_n "checking how to print strings... " >&6; }
4468 # Test print first, because it will be a builtin if present.
4469 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4470    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4471   ECHO='print -r --'
4472 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4473   ECHO='printf %s\n'
4474 else
4475   # Use this function as a fallback that always works.
4476   func_fallback_echo ()
4477   {
4478     eval 'cat <<_LTECHO_EOF
4479 $1
4480 _LTECHO_EOF'
4481   }
4482   ECHO='func_fallback_echo'
4483 fi
4484
4485 # func_echo_all arg...
4486 # Invoke $ECHO with all args, space-separated.
4487 func_echo_all ()
4488 {
4489     $ECHO ""
4490 }
4491
4492 case "$ECHO" in
4493   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4494 $as_echo "printf" >&6; } ;;
4495   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4496 $as_echo "print -r" >&6; } ;;
4497   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4498 $as_echo "cat" >&6; } ;;
4499 esac
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516 # Check whether --with-gnu-ld was given.
4517 if test "${with_gnu_ld+set}" = set; then :
4518   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4519 else
4520   with_gnu_ld=no
4521 fi
4522
4523 ac_prog=ld
4524 if test "$GCC" = yes; then
4525   # Check if gcc -print-prog-name=ld gives a path.
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4527 $as_echo_n "checking for ld used by $CC... " >&6; }
4528   case $host in
4529   *-*-mingw*)
4530     # gcc leaves a trailing carriage return which upsets mingw
4531     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4532   *)
4533     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4534   esac
4535   case $ac_prog in
4536     # Accept absolute paths.
4537     [\\/]* | ?:[\\/]*)
4538       re_direlt='/[^/][^/]*/\.\./'
4539       # Canonicalize the pathname of ld
4540       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4541       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4542         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4543       done
4544       test -z "$LD" && LD="$ac_prog"
4545       ;;
4546   "")
4547     # If it fails, then pretend we aren't using GCC.
4548     ac_prog=ld
4549     ;;
4550   *)
4551     # If it is relative, then search for the first ld in PATH.
4552     with_gnu_ld=unknown
4553     ;;
4554   esac
4555 elif test "$with_gnu_ld" = yes; then
4556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4557 $as_echo_n "checking for GNU ld... " >&6; }
4558 else
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4560 $as_echo_n "checking for non-GNU ld... " >&6; }
4561 fi
4562 if test "${lt_cv_path_LD+set}" = set; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   if test -z "$LD"; then
4566   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4567   for ac_dir in $PATH; do
4568     IFS="$lt_save_ifs"
4569     test -z "$ac_dir" && ac_dir=.
4570     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4571       lt_cv_path_LD="$ac_dir/$ac_prog"
4572       # Check to see if the program is GNU ld.  I'd rather use --version,
4573       # but apparently some variants of GNU ld only accept -v.
4574       # Break only if it was the GNU/non-GNU ld that we prefer.
4575       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4576       *GNU* | *'with BFD'*)
4577         test "$with_gnu_ld" != no && break
4578         ;;
4579       *)
4580         test "$with_gnu_ld" != yes && break
4581         ;;
4582       esac
4583     fi
4584   done
4585   IFS="$lt_save_ifs"
4586 else
4587   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4588 fi
4589 fi
4590
4591 LD="$lt_cv_path_LD"
4592 if test -n "$LD"; then
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4594 $as_echo "$LD" >&6; }
4595 else
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4601 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4602 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4606 case `$LD -v 2>&1 </dev/null` in
4607 *GNU* | *'with BFD'*)
4608   lt_cv_prog_gnu_ld=yes
4609   ;;
4610 *)
4611   lt_cv_prog_gnu_ld=no
4612   ;;
4613 esac
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4616 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4617 with_gnu_ld=$lt_cv_prog_gnu_ld
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627 if test -n "$ac_tool_prefix"; then
4628   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   if test -n "$RANLIB"; then
4636   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643     for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647     break 2
4648   fi
4649 done
4650   done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 RANLIB=$ac_cv_prog_RANLIB
4656 if test -n "$RANLIB"; then
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4658 $as_echo "$RANLIB" >&6; }
4659 else
4660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4662 fi
4663
4664
4665 fi
4666 if test -z "$ac_cv_prog_RANLIB"; then
4667   ac_ct_RANLIB=$RANLIB
4668   # Extract the first word of "ranlib", so it can be a program name with args.
4669 set dummy ranlib; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   if test -n "$ac_ct_RANLIB"; then
4676   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683     for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     ac_cv_prog_ac_ct_RANLIB="ranlib"
4686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690   done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4696 if test -n "$ac_ct_RANLIB"; then
4697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4698 $as_echo "$ac_ct_RANLIB" >&6; }
4699 else
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704   if test "x$ac_ct_RANLIB" = x; then
4705     RANLIB=":"
4706   else
4707     case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713     RANLIB=$ac_ct_RANLIB
4714   fi
4715 else
4716   RANLIB="$ac_cv_prog_RANLIB"
4717 fi
4718
4719 if test -n "$ac_tool_prefix"; then
4720   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   if test -n "$OBJCOPY"; then
4728   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735     for ac_exec_ext in '' $ac_executable_extensions; do
4736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742   done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 OBJCOPY=$ac_cv_prog_OBJCOPY
4748 if test -n "$OBJCOPY"; then
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4750 $as_echo "$OBJCOPY" >&6; }
4751 else
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 fi
4755
4756
4757 fi
4758 if test -z "$ac_cv_prog_OBJCOPY"; then
4759   ac_ct_OBJCOPY=$OBJCOPY
4760   # Extract the first word of "objcopy", so it can be a program name with args.
4761 set dummy objcopy; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if test -n "$ac_ct_OBJCOPY"; then
4768   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_exec_ext in '' $ac_executable_extensions; do
4776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782   done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4788 if test -n "$ac_ct_OBJCOPY"; then
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4790 $as_echo "$ac_ct_OBJCOPY" >&6; }
4791 else
4792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796   if test "x$ac_ct_OBJCOPY" = x; then
4797     OBJCOPY="missing-objcopy"
4798   else
4799     case $cross_compiling:$ac_tool_warned in
4800 yes:)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4804 esac
4805     OBJCOPY=$ac_ct_OBJCOPY
4806   fi
4807 else
4808   OBJCOPY="$ac_cv_prog_OBJCOPY"
4809 fi
4810
4811
4812 enable_dlopen=yes
4813
4814
4815
4816 case `pwd` in
4817   *\ * | *\     *)
4818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4819 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4820 esac
4821
4822
4823
4824 macro_version='2.2.7a'
4825 macro_revision='1.3134'
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 ltmain="$ac_aux_dir/ltmain.sh"
4840
4841 # Backslashify metacharacters that are still active within
4842 # double-quoted strings.
4843 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4844
4845 # Same as above, but do not quote variable references.
4846 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4847
4848 # Sed substitution to delay expansion of an escaped shell variable in a
4849 # double_quote_subst'ed string.
4850 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4851
4852 # Sed substitution to delay expansion of an escaped single quote.
4853 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4854
4855 # Sed substitution to avoid accidental globbing in evaled expressions
4856 no_glob_subst='s/\*/\\\*/g'
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4859 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4860 if test "${lt_cv_path_NM+set}" = set; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if test -n "$NM"; then
4864   # Let the user override the test.
4865   lt_cv_path_NM="$NM"
4866 else
4867   lt_nm_to_check="${ac_tool_prefix}nm"
4868   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4869     lt_nm_to_check="$lt_nm_to_check nm"
4870   fi
4871   for lt_tmp_nm in $lt_nm_to_check; do
4872     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4873     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4874       IFS="$lt_save_ifs"
4875       test -z "$ac_dir" && ac_dir=.
4876       tmp_nm="$ac_dir/$lt_tmp_nm"
4877       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4878         # Check to see if the nm accepts a BSD-compat flag.
4879         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4880         #   nm: unknown option "B" ignored
4881         # Tru64's nm complains that /dev/null is an invalid object file
4882         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4883         */dev/null* | *'Invalid file or object type'*)
4884           lt_cv_path_NM="$tmp_nm -B"
4885           break
4886           ;;
4887         *)
4888           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4889           */dev/null*)
4890             lt_cv_path_NM="$tmp_nm -p"
4891             break
4892             ;;
4893           *)
4894             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4895             continue # so that we can try to find one that supports BSD flags
4896             ;;
4897           esac
4898           ;;
4899         esac
4900       fi
4901     done
4902     IFS="$lt_save_ifs"
4903   done
4904   : ${lt_cv_path_NM=no}
4905 fi
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4908 $as_echo "$lt_cv_path_NM" >&6; }
4909 if test "$lt_cv_path_NM" != "no"; then
4910   NM="$lt_cv_path_NM"
4911 else
4912   # Didn't find any BSD compatible name lister, look for dumpbin.
4913   if test -n "$DUMPBIN"; then :
4914     # Let the user override the test.
4915   else
4916     if test -n "$ac_tool_prefix"; then
4917   for ac_prog in dumpbin "link -dump"
4918   do
4919     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   if test -n "$DUMPBIN"; then
4927   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 DUMPBIN=$ac_cv_prog_DUMPBIN
4947 if test -n "$DUMPBIN"; then
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4949 $as_echo "$DUMPBIN" >&6; }
4950 else
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955
4956     test -n "$DUMPBIN" && break
4957   done
4958 fi
4959 if test -z "$DUMPBIN"; then
4960   ac_ct_DUMPBIN=$DUMPBIN
4961   for ac_prog in dumpbin "link -dump"
4962 do
4963   # Extract the first word of "$ac_prog", so it can be a program name with args.
4964 set dummy $ac_prog; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   if test -n "$ac_ct_DUMPBIN"; then
4971   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978     for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985   done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4991 if test -n "$ac_ct_DUMPBIN"; then
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4993 $as_echo "$ac_ct_DUMPBIN" >&6; }
4994 else
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998
4999
5000   test -n "$ac_ct_DUMPBIN" && break
5001 done
5002
5003   if test "x$ac_ct_DUMPBIN" = x; then
5004     DUMPBIN=":"
5005   else
5006     case $cross_compiling:$ac_tool_warned in
5007 yes:)
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010 ac_tool_warned=yes ;;
5011 esac
5012     DUMPBIN=$ac_ct_DUMPBIN
5013   fi
5014 fi
5015
5016     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5017     *COFF*)
5018       DUMPBIN="$DUMPBIN -symbols"
5019       ;;
5020     *)
5021       DUMPBIN=:
5022       ;;
5023     esac
5024   fi
5025
5026   if test "$DUMPBIN" != ":"; then
5027     NM="$DUMPBIN"
5028   fi
5029 fi
5030 test -z "$NM" && NM=nm
5031
5032
5033
5034
5035
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5038 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5039 if test "${lt_cv_nm_interface+set}" = set; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042   lt_cv_nm_interface="BSD nm"
5043   echo "int some_variable = 0;" > conftest.$ac_ext
5044   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5045   (eval "$ac_compile" 2>conftest.err)
5046   cat conftest.err >&5
5047   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5048   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5049   cat conftest.err >&5
5050   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5051   cat conftest.out >&5
5052   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5053     lt_cv_nm_interface="MS dumpbin"
5054   fi
5055   rm -f conftest*
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5058 $as_echo "$lt_cv_nm_interface" >&6; }
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5061 $as_echo_n "checking whether ln -s works... " >&6; }
5062 LN_S=$as_ln_s
5063 if test "$LN_S" = "ln -s"; then
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5065 $as_echo "yes" >&6; }
5066 else
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5068 $as_echo "no, using $LN_S" >&6; }
5069 fi
5070
5071 # find the maximum length of command line arguments
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5073 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5074 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077     i=0
5078   teststring="ABCD"
5079
5080   case $build_os in
5081   msdosdjgpp*)
5082     # On DJGPP, this test can blow up pretty badly due to problems in libc
5083     # (any single argument exceeding 2000 bytes causes a buffer overrun
5084     # during glob expansion).  Even if it were fixed, the result of this
5085     # check would be larger than it should be.
5086     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5087     ;;
5088
5089   gnu*)
5090     # Under GNU Hurd, this test is not required because there is
5091     # no limit to the length of command line arguments.
5092     # Libtool will interpret -1 as no limit whatsoever
5093     lt_cv_sys_max_cmd_len=-1;
5094     ;;
5095
5096   cygwin* | mingw* | cegcc*)
5097     # On Win9x/ME, this test blows up -- it succeeds, but takes
5098     # about 5 minutes as the teststring grows exponentially.
5099     # Worse, since 9x/ME are not pre-emptively multitasking,
5100     # you end up with a "frozen" computer, even though with patience
5101     # the test eventually succeeds (with a max line length of 256k).
5102     # Instead, let's just punt: use the minimum linelength reported by
5103     # all of the supported platforms: 8192 (on NT/2K/XP).
5104     lt_cv_sys_max_cmd_len=8192;
5105     ;;
5106
5107   mint*)
5108     # On MiNT this can take a long time and run out of memory.
5109     lt_cv_sys_max_cmd_len=8192;
5110     ;;
5111
5112   amigaos*)
5113     # On AmigaOS with pdksh, this test takes hours, literally.
5114     # So we just punt and use a minimum line length of 8192.
5115     lt_cv_sys_max_cmd_len=8192;
5116     ;;
5117
5118   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5119     # This has been around since 386BSD, at least.  Likely further.
5120     if test -x /sbin/sysctl; then
5121       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5122     elif test -x /usr/sbin/sysctl; then
5123       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5124     else
5125       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5126     fi
5127     # And add a safety zone
5128     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5129     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5130     ;;
5131
5132   interix*)
5133     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5134     lt_cv_sys_max_cmd_len=196608
5135     ;;
5136
5137   osf*)
5138     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5139     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5140     # nice to cause kernel panics so lets avoid the loop below.
5141     # First set a reasonable default.
5142     lt_cv_sys_max_cmd_len=16384
5143     #
5144     if test -x /sbin/sysconfig; then
5145       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5146         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5147       esac
5148     fi
5149     ;;
5150   sco3.2v5*)
5151     lt_cv_sys_max_cmd_len=102400
5152     ;;
5153   sysv5* | sco5v6* | sysv4.2uw2*)
5154     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5155     if test -n "$kargmax"; then
5156       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5157     else
5158       lt_cv_sys_max_cmd_len=32768
5159     fi
5160     ;;
5161   *)
5162     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5163     if test -n "$lt_cv_sys_max_cmd_len"; then
5164       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5165       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5166     else
5167       # Make teststring a little bigger before we do anything with it.
5168       # a 1K string should be a reasonable start.
5169       for i in 1 2 3 4 5 6 7 8 ; do
5170         teststring=$teststring$teststring
5171       done
5172       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5173       # If test is not a shell built-in, we'll probably end up computing a
5174       # maximum length that is only half of the actual maximum length, but
5175       # we can't tell.
5176       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5177                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5178               test $i != 17 # 1/2 MB should be enough
5179       do
5180         i=`expr $i + 1`
5181         teststring=$teststring$teststring
5182       done
5183       # Only check the string length outside the loop.
5184       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5185       teststring=
5186       # Add a significant safety factor because C++ compilers can tack on
5187       # massive amounts of additional arguments before passing them to the
5188       # linker.  It appears as though 1/2 is a usable value.
5189       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5190     fi
5191     ;;
5192   esac
5193
5194 fi
5195
5196 if test -n $lt_cv_sys_max_cmd_len ; then
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5198 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5199 else
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5201 $as_echo "none" >&6; }
5202 fi
5203 max_cmd_len=$lt_cv_sys_max_cmd_len
5204
5205
5206
5207
5208
5209
5210 : ${CP="cp -f"}
5211 : ${MV="mv -f"}
5212 : ${RM="rm -f"}
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5215 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5216 # Try some XSI features
5217 xsi_shell=no
5218 ( _lt_dummy="a/b/c"
5219   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5220       = c,a/b,, \
5221     && eval 'test $(( 1 + 1 )) -eq 2 \
5222     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5223   && xsi_shell=yes
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5225 $as_echo "$xsi_shell" >&6; }
5226
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5229 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5230 lt_shell_append=no
5231 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5232     >/dev/null 2>&1 \
5233   && lt_shell_append=yes
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5235 $as_echo "$lt_shell_append" >&6; }
5236
5237
5238 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5239   lt_unset=unset
5240 else
5241   lt_unset=false
5242 fi
5243
5244
5245
5246
5247
5248 # test EBCDIC or ASCII
5249 case `echo X|tr X '\101'` in
5250  A) # ASCII based system
5251     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5252   lt_SP2NL='tr \040 \012'
5253   lt_NL2SP='tr \015\012 \040\040'
5254   ;;
5255  *) # EBCDIC based system
5256   lt_SP2NL='tr \100 \n'
5257   lt_NL2SP='tr \r\n \100\100'
5258   ;;
5259 esac
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5270 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5271 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   lt_cv_ld_reload_flag='-r'
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5277 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5278 reload_flag=$lt_cv_ld_reload_flag
5279 case $reload_flag in
5280 "" | " "*) ;;
5281 *) reload_flag=" $reload_flag" ;;
5282 esac
5283 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5284 case $host_os in
5285   darwin*)
5286     if test "$GCC" = yes; then
5287       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5288     else
5289       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5290     fi
5291     ;;
5292 esac
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302 if test -n "$ac_tool_prefix"; then
5303   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5304 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -n "$OBJDUMP"; then
5311   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318     for ac_exec_ext in '' $ac_executable_extensions; do
5319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325   done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 OBJDUMP=$ac_cv_prog_OBJDUMP
5331 if test -n "$OBJDUMP"; then
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5333 $as_echo "$OBJDUMP" >&6; }
5334 else
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339
5340 fi
5341 if test -z "$ac_cv_prog_OBJDUMP"; then
5342   ac_ct_OBJDUMP=$OBJDUMP
5343   # Extract the first word of "objdump", so it can be a program name with args.
5344 set dummy objdump; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   if test -n "$ac_ct_OBJDUMP"; then
5351   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358     for ac_exec_ext in '' $ac_executable_extensions; do
5359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365   done
5366 IFS=$as_save_IFS
5367
5368 fi
5369 fi
5370 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5371 if test -n "$ac_ct_OBJDUMP"; then
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5373 $as_echo "$ac_ct_OBJDUMP" >&6; }
5374 else
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 fi
5378
5379   if test "x$ac_ct_OBJDUMP" = x; then
5380     OBJDUMP="false"
5381   else
5382     case $cross_compiling:$ac_tool_warned in
5383 yes:)
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386 ac_tool_warned=yes ;;
5387 esac
5388     OBJDUMP=$ac_ct_OBJDUMP
5389   fi
5390 else
5391   OBJDUMP="$ac_cv_prog_OBJDUMP"
5392 fi
5393
5394 test -z "$OBJDUMP" && OBJDUMP=objdump
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5405 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5406 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   lt_cv_file_magic_cmd='$MAGIC_CMD'
5410 lt_cv_file_magic_test_file=
5411 lt_cv_deplibs_check_method='unknown'
5412 # Need to set the preceding variable on all platforms that support
5413 # interlibrary dependencies.
5414 # 'none' -- dependencies not supported.
5415 # `unknown' -- same as none, but documents that we really don't know.
5416 # 'pass_all' -- all dependencies passed with no checks.
5417 # 'test_compile' -- check by making test program.
5418 # 'file_magic [[regex]]' -- check by looking for files in library path
5419 # which responds to the $file_magic_cmd with a given extended regex.
5420 # If you have `file' or equivalent on your system and you're not sure
5421 # whether `pass_all' will *always* work, you probably want this one.
5422
5423 case $host_os in
5424 aix[4-9]*)
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427
5428 beos*)
5429   lt_cv_deplibs_check_method=pass_all
5430   ;;
5431
5432 bsdi[45]*)
5433   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5434   lt_cv_file_magic_cmd='/usr/bin/file -L'
5435   lt_cv_file_magic_test_file=/shlib/libc.so
5436   ;;
5437
5438 cygwin*)
5439   # func_win32_libid is a shell function defined in ltmain.sh
5440   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5441   lt_cv_file_magic_cmd='func_win32_libid'
5442   ;;
5443
5444 mingw* | pw32*)
5445   # Base MSYS/MinGW do not provide the 'file' command needed by
5446   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5447   # unless we find 'file', for example because we are cross-compiling.
5448   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5449   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5450     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5451     lt_cv_file_magic_cmd='func_win32_libid'
5452   else
5453     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5454     lt_cv_file_magic_cmd='$OBJDUMP -f'
5455   fi
5456   ;;
5457
5458 cegcc*)
5459   # use the weaker test based on 'objdump'. See mingw*.
5460   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5461   lt_cv_file_magic_cmd='$OBJDUMP -f'
5462   ;;
5463
5464 darwin* | rhapsody*)
5465   lt_cv_deplibs_check_method=pass_all
5466   ;;
5467
5468 freebsd* | dragonfly*)
5469   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5470     case $host_cpu in
5471     i*86 )
5472       # Not sure whether the presence of OpenBSD here was a mistake.
5473       # Let's accept both of them until this is cleared up.
5474       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5475       lt_cv_file_magic_cmd=/usr/bin/file
5476       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5477       ;;
5478     esac
5479   else
5480     lt_cv_deplibs_check_method=pass_all
5481   fi
5482   ;;
5483
5484 gnu*)
5485   lt_cv_deplibs_check_method=pass_all
5486   ;;
5487
5488 haiku*)
5489   lt_cv_deplibs_check_method=pass_all
5490   ;;
5491
5492 hpux10.20* | hpux11*)
5493   lt_cv_file_magic_cmd=/usr/bin/file
5494   case $host_cpu in
5495   ia64*)
5496     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5497     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5498     ;;
5499   hppa*64*)
5500     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]'
5501     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5502     ;;
5503   *)
5504     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5505     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5506     ;;
5507   esac
5508   ;;
5509
5510 interix[3-9]*)
5511   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5512   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5513   ;;
5514
5515 irix5* | irix6* | nonstopux*)
5516   case $LD in
5517   *-32|*"-32 ") libmagic=32-bit;;
5518   *-n32|*"-n32 ") libmagic=N32;;
5519   *-64|*"-64 ") libmagic=64-bit;;
5520   *) libmagic=never-match;;
5521   esac
5522   lt_cv_deplibs_check_method=pass_all
5523   ;;
5524
5525 # This must be Linux ELF.
5526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5527   lt_cv_deplibs_check_method=pass_all
5528   ;;
5529
5530 netbsd*)
5531   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5532     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5533   else
5534     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5535   fi
5536   ;;
5537
5538 newos6*)
5539   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5540   lt_cv_file_magic_cmd=/usr/bin/file
5541   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5542   ;;
5543
5544 *nto* | *qnx*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 openbsd*)
5549   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5550     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5551   else
5552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553   fi
5554   ;;
5555
5556 osf3* | osf4* | osf5*)
5557   lt_cv_deplibs_check_method=pass_all
5558   ;;
5559
5560 rdos*)
5561   lt_cv_deplibs_check_method=pass_all
5562   ;;
5563
5564 solaris*)
5565   lt_cv_deplibs_check_method=pass_all
5566   ;;
5567
5568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5569   lt_cv_deplibs_check_method=pass_all
5570   ;;
5571
5572 sysv4 | sysv4.3*)
5573   case $host_vendor in
5574   motorola)
5575     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]'
5576     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5577     ;;
5578   ncr)
5579     lt_cv_deplibs_check_method=pass_all
5580     ;;
5581   sequent)
5582     lt_cv_file_magic_cmd='/bin/file'
5583     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5584     ;;
5585   sni)
5586     lt_cv_file_magic_cmd='/bin/file'
5587     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5588     lt_cv_file_magic_test_file=/lib/libc.so
5589     ;;
5590   siemens)
5591     lt_cv_deplibs_check_method=pass_all
5592     ;;
5593   pc)
5594     lt_cv_deplibs_check_method=pass_all
5595     ;;
5596   esac
5597   ;;
5598
5599 tpf*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602 esac
5603
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5606 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5607 file_magic_cmd=$lt_cv_file_magic_cmd
5608 deplibs_check_method=$lt_cv_deplibs_check_method
5609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622 if test -n "$ac_tool_prefix"; then
5623   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}ar; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_AR+set}" = set; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   if test -n "$AR"; then
5631   ac_cv_prog_AR="$AR" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638     for ac_exec_ext in '' $ac_executable_extensions; do
5639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640     ac_cv_prog_AR="${ac_tool_prefix}ar"
5641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645   done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 AR=$ac_cv_prog_AR
5651 if test -n "$AR"; then
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5653 $as_echo "$AR" >&6; }
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659
5660 fi
5661 if test -z "$ac_cv_prog_AR"; then
5662   ac_ct_AR=$AR
5663   # Extract the first word of "ar", so it can be a program name with args.
5664 set dummy ar; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   if test -n "$ac_ct_AR"; then
5671   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678     for ac_exec_ext in '' $ac_executable_extensions; do
5679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680     ac_cv_prog_ac_ct_AR="ar"
5681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685   done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5691 if test -n "$ac_ct_AR"; then
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5693 $as_echo "$ac_ct_AR" >&6; }
5694 else
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5699   if test "x$ac_ct_AR" = x; then
5700     AR="false"
5701   else
5702     case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708     AR=$ac_ct_AR
5709   fi
5710 else
5711   AR="$ac_cv_prog_AR"
5712 fi
5713
5714 test -z "$AR" && AR=ar
5715 test -z "$AR_FLAGS" && AR_FLAGS=cru
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727 if test -n "$ac_tool_prefix"; then
5728   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}strip; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_STRIP+set}" = set; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   if test -n "$STRIP"; then
5736   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750   done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 STRIP=$ac_cv_prog_STRIP
5756 if test -n "$STRIP"; then
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5758 $as_echo "$STRIP" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765 fi
5766 if test -z "$ac_cv_prog_STRIP"; then
5767   ac_ct_STRIP=$STRIP
5768   # Extract the first word of "strip", so it can be a program name with args.
5769 set dummy strip; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5773   $as_echo_n "(cached) " >&6
5774 else
5775   if test -n "$ac_ct_STRIP"; then
5776   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783     for ac_exec_ext in '' $ac_executable_extensions; do
5784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785     ac_cv_prog_ac_ct_STRIP="strip"
5786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790   done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5796 if test -n "$ac_ct_STRIP"; then
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5798 $as_echo "$ac_ct_STRIP" >&6; }
5799 else
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804   if test "x$ac_ct_STRIP" = x; then
5805     STRIP=":"
5806   else
5807     case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813     STRIP=$ac_ct_STRIP
5814   fi
5815 else
5816   STRIP="$ac_cv_prog_STRIP"
5817 fi
5818
5819 test -z "$STRIP" && STRIP=:
5820
5821
5822
5823
5824
5825
5826 if test -n "$ac_tool_prefix"; then
5827   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   if test -n "$RANLIB"; then
5835   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842     for ac_exec_ext in '' $ac_executable_extensions; do
5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849   done
5850 IFS=$as_save_IFS
5851
5852 fi
5853 fi
5854 RANLIB=$ac_cv_prog_RANLIB
5855 if test -n "$RANLIB"; then
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5857 $as_echo "$RANLIB" >&6; }
5858 else
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862
5863
5864 fi
5865 if test -z "$ac_cv_prog_RANLIB"; then
5866   ac_ct_RANLIB=$RANLIB
5867   # Extract the first word of "ranlib", so it can be a program name with args.
5868 set dummy ranlib; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   if test -n "$ac_ct_RANLIB"; then
5875   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882     for ac_exec_ext in '' $ac_executable_extensions; do
5883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884     ac_cv_prog_ac_ct_RANLIB="ranlib"
5885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889   done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5895 if test -n "$ac_ct_RANLIB"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5897 $as_echo "$ac_ct_RANLIB" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902
5903   if test "x$ac_ct_RANLIB" = x; then
5904     RANLIB=":"
5905   else
5906     case $cross_compiling:$ac_tool_warned in
5907 yes:)
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5910 ac_tool_warned=yes ;;
5911 esac
5912     RANLIB=$ac_ct_RANLIB
5913   fi
5914 else
5915   RANLIB="$ac_cv_prog_RANLIB"
5916 fi
5917
5918 test -z "$RANLIB" && RANLIB=:
5919
5920
5921
5922
5923
5924
5925 # Determine commands to create old-style static archives.
5926 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5927 old_postinstall_cmds='chmod 644 $oldlib'
5928 old_postuninstall_cmds=
5929
5930 if test -n "$RANLIB"; then
5931   case $host_os in
5932   openbsd*)
5933     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5934     ;;
5935   *)
5936     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5937     ;;
5938   esac
5939   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5940 fi
5941
5942 case $host_os in
5943   darwin*)
5944     lock_old_archive_extraction=yes ;;
5945   *)
5946     lock_old_archive_extraction=no ;;
5947 esac
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 # If no C compiler was specified, use CC.
5988 LTCC=${LTCC-"$CC"}
5989
5990 # If no C compiler flags were specified, use CFLAGS.
5991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5992
5993 # Allow CC to be a program name with arguments.
5994 compiler=$CC
5995
5996
5997 # Check for command to grab the raw symbol name followed by C symbol from nm.
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5999 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6000 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003
6004 # These are sane defaults that work on at least a few old systems.
6005 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6006
6007 # Character class describing NM global symbol codes.
6008 symcode='[BCDEGRST]'
6009
6010 # Regexp to match symbols that can be accessed directly from C.
6011 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6012
6013 # Define system-specific variables.
6014 case $host_os in
6015 aix*)
6016   symcode='[BCDT]'
6017   ;;
6018 cygwin* | mingw* | pw32* | cegcc*)
6019   symcode='[ABCDGISTW]'
6020   ;;
6021 hpux*)
6022   if test "$host_cpu" = ia64; then
6023     symcode='[ABCDEGRST]'
6024   fi
6025   ;;
6026 irix* | nonstopux*)
6027   symcode='[BCDEGRST]'
6028   ;;
6029 osf*)
6030   symcode='[BCDEGQRST]'
6031   ;;
6032 solaris*)
6033   symcode='[BDRT]'
6034   ;;
6035 sco3.2v5*)
6036   symcode='[DT]'
6037   ;;
6038 sysv4.2uw2*)
6039   symcode='[DT]'
6040   ;;
6041 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6042   symcode='[ABDT]'
6043   ;;
6044 sysv4)
6045   symcode='[DFNSTU]'
6046   ;;
6047 esac
6048
6049 # If we're using GNU nm, then use its standard symbol codes.
6050 case `$NM -V 2>&1` in
6051 *GNU* | *'with BFD'*)
6052   symcode='[ABCDGIRSTW]' ;;
6053 esac
6054
6055 # Transform an extracted symbol line into a proper C declaration.
6056 # Some systems (esp. on ia64) link data and code symbols differently,
6057 # so use this general approach.
6058 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6059
6060 # Transform an extracted symbol line into symbol name and symbol address
6061 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6062 lt_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'"
6063
6064 # Handle CRLF in mingw tool chain
6065 opt_cr=
6066 case $build_os in
6067 mingw*)
6068   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6069   ;;
6070 esac
6071
6072 # Try without a prefix underscore, then with it.
6073 for ac_symprfx in "" "_"; do
6074
6075   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6076   symxfrm="\\1 $ac_symprfx\\2 \\2"
6077
6078   # Write the raw and C identifiers.
6079   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6080     # Fake it for dumpbin and say T for any non-static function
6081     # and D for any global variable.
6082     # Also find C++ and __fastcall symbols from MSVC++,
6083     # which start with @ or ?.
6084     lt_cv_sys_global_symbol_pipe="$AWK '"\
6085 "     {last_section=section; section=\$ 3};"\
6086 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6087 "     \$ 0!~/External *\|/{next};"\
6088 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6089 "     {if(hide[section]) next};"\
6090 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6091 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6092 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6093 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6094 "     ' prfx=^$ac_symprfx"
6095   else
6096     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6097   fi
6098
6099   # Check to see that the pipe works correctly.
6100   pipe_works=no
6101
6102   rm -f conftest*
6103   cat > conftest.$ac_ext <<_LT_EOF
6104 #ifdef __cplusplus
6105 extern "C" {
6106 #endif
6107 char nm_test_var;
6108 void nm_test_func(void);
6109 void nm_test_func(void){}
6110 #ifdef __cplusplus
6111 }
6112 #endif
6113 int main(){nm_test_var='a';nm_test_func();return(0);}
6114 _LT_EOF
6115
6116   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117   (eval $ac_compile) 2>&5
6118   ac_status=$?
6119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120   test $ac_status = 0; }; then
6121     # Now try to grab the symbols.
6122     nlist=conftest.nm
6123     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6124   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6125   ac_status=$?
6126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127   test $ac_status = 0; } && test -s "$nlist"; then
6128       # Try sorting and uniquifying the output.
6129       if sort "$nlist" | uniq > "$nlist"T; then
6130         mv -f "$nlist"T "$nlist"
6131       else
6132         rm -f "$nlist"T
6133       fi
6134
6135       # Make sure that we snagged all the symbols we need.
6136       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6137         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6138           cat <<_LT_EOF > conftest.$ac_ext
6139 #ifdef __cplusplus
6140 extern "C" {
6141 #endif
6142
6143 _LT_EOF
6144           # Now generate the symbol file.
6145           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6146
6147           cat <<_LT_EOF >> conftest.$ac_ext
6148
6149 /* The mapping between symbol names and symbols.  */
6150 const struct {
6151   const char *name;
6152   void       *address;
6153 }
6154 lt__PROGRAM__LTX_preloaded_symbols[] =
6155 {
6156   { "@PROGRAM@", (void *) 0 },
6157 _LT_EOF
6158           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6159           cat <<\_LT_EOF >> conftest.$ac_ext
6160   {0, (void *) 0}
6161 };
6162
6163 /* This works around a problem in FreeBSD linker */
6164 #ifdef FREEBSD_WORKAROUND
6165 static const void *lt_preloaded_setup() {
6166   return lt__PROGRAM__LTX_preloaded_symbols;
6167 }
6168 #endif
6169
6170 #ifdef __cplusplus
6171 }
6172 #endif
6173 _LT_EOF
6174           # Now try linking the two files.
6175           mv conftest.$ac_objext conftstm.$ac_objext
6176           lt_save_LIBS="$LIBS"
6177           lt_save_CFLAGS="$CFLAGS"
6178           LIBS="conftstm.$ac_objext"
6179           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6180           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6181   (eval $ac_link) 2>&5
6182   ac_status=$?
6183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6184   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6185             pipe_works=yes
6186           fi
6187           LIBS="$lt_save_LIBS"
6188           CFLAGS="$lt_save_CFLAGS"
6189         else
6190           echo "cannot find nm_test_func in $nlist" >&5
6191         fi
6192       else
6193         echo "cannot find nm_test_var in $nlist" >&5
6194       fi
6195     else
6196       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6197     fi
6198   else
6199     echo "$progname: failed program was:" >&5
6200     cat conftest.$ac_ext >&5
6201   fi
6202   rm -rf conftest* conftst*
6203
6204   # Do not use the global_symbol_pipe unless it works.
6205   if test "$pipe_works" = yes; then
6206     break
6207   else
6208     lt_cv_sys_global_symbol_pipe=
6209   fi
6210 done
6211
6212 fi
6213
6214 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6215   lt_cv_sys_global_symbol_to_cdecl=
6216 fi
6217 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6219 $as_echo "failed" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6222 $as_echo "ok" >&6; }
6223 fi
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 # Check whether --enable-libtool-lock was given.
6248 if test "${enable_libtool_lock+set}" = set; then :
6249   enableval=$enable_libtool_lock;
6250 fi
6251
6252 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6253
6254 # Some flags need to be propagated to the compiler or linker for good
6255 # libtool support.
6256 case $host in
6257 ia64-*-hpux*)
6258   # Find out which ABI we are using.
6259   echo 'int i;' > conftest.$ac_ext
6260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261   (eval $ac_compile) 2>&5
6262   ac_status=$?
6263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264   test $ac_status = 0; }; then
6265     case `/usr/bin/file conftest.$ac_objext` in
6266       *ELF-32*)
6267         HPUX_IA64_MODE="32"
6268         ;;
6269       *ELF-64*)
6270         HPUX_IA64_MODE="64"
6271         ;;
6272     esac
6273   fi
6274   rm -rf conftest*
6275   ;;
6276 *-*-irix6*)
6277   # Find out which ABI we are using.
6278   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280   (eval $ac_compile) 2>&5
6281   ac_status=$?
6282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283   test $ac_status = 0; }; then
6284     if test "$lt_cv_prog_gnu_ld" = yes; then
6285       case `/usr/bin/file conftest.$ac_objext` in
6286         *32-bit*)
6287           LD="${LD-ld} -melf32bsmip"
6288           ;;
6289         *N32*)
6290           LD="${LD-ld} -melf32bmipn32"
6291           ;;
6292         *64-bit*)
6293           LD="${LD-ld} -melf64bmip"
6294         ;;
6295       esac
6296     else
6297       case `/usr/bin/file conftest.$ac_objext` in
6298         *32-bit*)
6299           LD="${LD-ld} -32"
6300           ;;
6301         *N32*)
6302           LD="${LD-ld} -n32"
6303           ;;
6304         *64-bit*)
6305           LD="${LD-ld} -64"
6306           ;;
6307       esac
6308     fi
6309   fi
6310   rm -rf conftest*
6311   ;;
6312
6313 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6314 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6315   # Find out which ABI we are using.
6316   echo 'int i;' > conftest.$ac_ext
6317   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6318   (eval $ac_compile) 2>&5
6319   ac_status=$?
6320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6321   test $ac_status = 0; }; then
6322     case `/usr/bin/file conftest.o` in
6323       *32-bit*)
6324         case $host in
6325           x86_64-*kfreebsd*-gnu)
6326             LD="${LD-ld} -m elf_i386_fbsd"
6327             ;;
6328           x86_64-*linux*)
6329             LD="${LD-ld} -m elf_i386"
6330             ;;
6331           ppc64-*linux*|powerpc64-*linux*)
6332             LD="${LD-ld} -m elf32ppclinux"
6333             ;;
6334           s390x-*linux*)
6335             LD="${LD-ld} -m elf_s390"
6336             ;;
6337           sparc64-*linux*)
6338             LD="${LD-ld} -m elf32_sparc"
6339             ;;
6340         esac
6341         ;;
6342       *64-bit*)
6343         case $host in
6344           x86_64-*kfreebsd*-gnu)
6345             LD="${LD-ld} -m elf_x86_64_fbsd"
6346             ;;
6347           x86_64-*linux*)
6348             LD="${LD-ld} -m elf_x86_64"
6349             ;;
6350           ppc*-*linux*|powerpc*-*linux*)
6351             LD="${LD-ld} -m elf64ppc"
6352             ;;
6353           s390*-*linux*|s390*-*tpf*)
6354             LD="${LD-ld} -m elf64_s390"
6355             ;;
6356           sparc*-*linux*)
6357             LD="${LD-ld} -m elf64_sparc"
6358             ;;
6359         esac
6360         ;;
6361     esac
6362   fi
6363   rm -rf conftest*
6364   ;;
6365
6366 *-*-sco3.2v5*)
6367   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6368   SAVE_CFLAGS="$CFLAGS"
6369   CFLAGS="$CFLAGS -belf"
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6371 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6372 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   ac_ext=c
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380
6381      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h.  */
6383
6384 int
6385 main ()
6386 {
6387
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_link "$LINENO"; then :
6393   lt_cv_cc_needs_belf=yes
6394 else
6395   lt_cv_cc_needs_belf=no
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext \
6398     conftest$ac_exeext conftest.$ac_ext
6399      ac_ext=c
6400 ac_cpp='$CPP $CPPFLAGS'
6401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6404
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6407 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6408   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6409     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6410     CFLAGS="$SAVE_CFLAGS"
6411   fi
6412   ;;
6413 *-*solaris*)
6414   # Find out which ABI we are using.
6415   echo 'int i;' > conftest.$ac_ext
6416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417   (eval $ac_compile) 2>&5
6418   ac_status=$?
6419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420   test $ac_status = 0; }; then
6421     case `/usr/bin/file conftest.o` in
6422     *64-bit*)
6423       case $lt_cv_prog_gnu_ld in
6424       yes*)
6425         case $host in
6426         i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6427           LD="${LD-ld} -m elf_x86_64"
6428           ;;
6429         sparc*-*-solaris*)
6430           LD="${LD-ld} -m elf64_sparc"
6431           ;;
6432         esac
6433         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6434         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6435           LD="${LD-ld}_sol2"
6436         fi
6437         ;;
6438       *)
6439         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6440           LD="${LD-ld} -64"
6441         fi
6442         ;;
6443       esac
6444       ;;
6445     esac
6446   fi
6447   rm -rf conftest*
6448   ;;
6449 esac
6450
6451 need_locks="$enable_libtool_lock"
6452
6453
6454   case $host_os in
6455     rhapsody* | darwin*)
6456     if test -n "$ac_tool_prefix"; then
6457   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   if test -n "$DSYMUTIL"; then
6465   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472     for ac_exec_ext in '' $ac_executable_extensions; do
6473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479   done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6485 if test -n "$DSYMUTIL"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6487 $as_echo "$DSYMUTIL" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 fi
6495 if test -z "$ac_cv_prog_DSYMUTIL"; then
6496   ac_ct_DSYMUTIL=$DSYMUTIL
6497   # Extract the first word of "dsymutil", so it can be a program name with args.
6498 set dummy dsymutil; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   if test -n "$ac_ct_DSYMUTIL"; then
6505   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519   done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6525 if test -n "$ac_ct_DSYMUTIL"; then
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6527 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6528 else
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533   if test "x$ac_ct_DSYMUTIL" = x; then
6534     DSYMUTIL=":"
6535   else
6536     case $cross_compiling:$ac_tool_warned in
6537 yes:)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542     DSYMUTIL=$ac_ct_DSYMUTIL
6543   fi
6544 else
6545   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6546 fi
6547
6548     if test -n "$ac_tool_prefix"; then
6549   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556   if test -n "$NMEDIT"; then
6557   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564     for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571   done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 NMEDIT=$ac_cv_prog_NMEDIT
6577 if test -n "$NMEDIT"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6579 $as_echo "$NMEDIT" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585
6586 fi
6587 if test -z "$ac_cv_prog_NMEDIT"; then
6588   ac_ct_NMEDIT=$NMEDIT
6589   # Extract the first word of "nmedit", so it can be a program name with args.
6590 set dummy nmedit; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   if test -n "$ac_ct_NMEDIT"; then
6597   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604     for ac_exec_ext in '' $ac_executable_extensions; do
6605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611   done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6617 if test -n "$ac_ct_NMEDIT"; then
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6619 $as_echo "$ac_ct_NMEDIT" >&6; }
6620 else
6621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625   if test "x$ac_ct_NMEDIT" = x; then
6626     NMEDIT=":"
6627   else
6628     case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634     NMEDIT=$ac_ct_NMEDIT
6635   fi
6636 else
6637   NMEDIT="$ac_cv_prog_NMEDIT"
6638 fi
6639
6640     if test -n "$ac_tool_prefix"; then
6641   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if test "${ac_cv_prog_LIPO+set}" = set; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   if test -n "$LIPO"; then
6649   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 LIPO=$ac_cv_prog_LIPO
6669 if test -n "$LIPO"; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6671 $as_echo "$LIPO" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677
6678 fi
6679 if test -z "$ac_cv_prog_LIPO"; then
6680   ac_ct_LIPO=$LIPO
6681   # Extract the first word of "lipo", so it can be a program name with args.
6682 set dummy lipo; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6686   $as_echo_n "(cached) " >&6
6687 else
6688   if test -n "$ac_ct_LIPO"; then
6689   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696     for ac_exec_ext in '' $ac_executable_extensions; do
6697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698     ac_cv_prog_ac_ct_LIPO="lipo"
6699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703   done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6709 if test -n "$ac_ct_LIPO"; then
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6711 $as_echo "$ac_ct_LIPO" >&6; }
6712 else
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717   if test "x$ac_ct_LIPO" = x; then
6718     LIPO=":"
6719   else
6720     case $cross_compiling:$ac_tool_warned in
6721 yes:)
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724 ac_tool_warned=yes ;;
6725 esac
6726     LIPO=$ac_ct_LIPO
6727   fi
6728 else
6729   LIPO="$ac_cv_prog_LIPO"
6730 fi
6731
6732     if test -n "$ac_tool_prefix"; then
6733   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}otool; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$OTOOL"; then
6741   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748     for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755   done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 OTOOL=$ac_cv_prog_OTOOL
6761 if test -n "$OTOOL"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6763 $as_echo "$OTOOL" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769
6770 fi
6771 if test -z "$ac_cv_prog_OTOOL"; then
6772   ac_ct_OTOOL=$OTOOL
6773   # Extract the first word of "otool", so it can be a program name with args.
6774 set dummy otool; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   if test -n "$ac_ct_OTOOL"; then
6781   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_prog_ac_ct_OTOOL="otool"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6801 if test -n "$ac_ct_OTOOL"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6803 $as_echo "$ac_ct_OTOOL" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809   if test "x$ac_ct_OTOOL" = x; then
6810     OTOOL=":"
6811   else
6812     case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818     OTOOL=$ac_ct_OTOOL
6819   fi
6820 else
6821   OTOOL="$ac_cv_prog_OTOOL"
6822 fi
6823
6824     if test -n "$ac_tool_prefix"; then
6825   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$OTOOL64"; then
6833   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 OTOOL64=$ac_cv_prog_OTOOL64
6853 if test -n "$OTOOL64"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6855 $as_echo "$OTOOL64" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_OTOOL64"; then
6864   ac_ct_OTOOL64=$OTOOL64
6865   # Extract the first word of "otool64", so it can be a program name with args.
6866 set dummy otool64; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -n "$ac_ct_OTOOL64"; then
6873   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_ac_ct_OTOOL64="otool64"
6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887   done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6893 if test -n "$ac_ct_OTOOL64"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6895 $as_echo "$ac_ct_OTOOL64" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901   if test "x$ac_ct_OTOOL64" = x; then
6902     OTOOL64=":"
6903   else
6904     case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910     OTOOL64=$ac_ct_OTOOL64
6911   fi
6912 else
6913   OTOOL64="$ac_cv_prog_OTOOL64"
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6943 $as_echo_n "checking for -single_module linker flag... " >&6; }
6944 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   lt_cv_apple_cc_single_mod=no
6948       if test -z "${LT_MULTI_MODULE}"; then
6949         # By default we will add the -single_module flag. You can override
6950         # by either setting the environment variable LT_MULTI_MODULE
6951         # non-empty at configure time, or by adding -multi_module to the
6952         # link flags.
6953         rm -rf libconftest.dylib*
6954         echo "int foo(void){return 1;}" > conftest.c
6955         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6956 -dynamiclib -Wl,-single_module conftest.c" >&5
6957         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6958           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6959         _lt_result=$?
6960         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6961           lt_cv_apple_cc_single_mod=yes
6962         else
6963           cat conftest.err >&5
6964         fi
6965         rm -rf libconftest.dylib*
6966         rm -f conftest.*
6967       fi
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6970 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6972 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6973 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   lt_cv_ld_exported_symbols_list=no
6977       save_LDFLAGS=$LDFLAGS
6978       echo "_main" > conftest.sym
6979       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6980       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h.  */
6982
6983 int
6984 main ()
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_link "$LINENO"; then :
6992   lt_cv_ld_exported_symbols_list=yes
6993 else
6994   lt_cv_ld_exported_symbols_list=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext \
6997     conftest$ac_exeext conftest.$ac_ext
6998         LDFLAGS="$save_LDFLAGS"
6999
7000 fi
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7002 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7004 $as_echo_n "checking for -force_load linker flag... " >&6; }
7005 if test "${lt_cv_ld_force_load+set}" = set; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   lt_cv_ld_force_load=no
7009       cat > conftest.c << _LT_EOF
7010 int forced_loaded() { return 2;}
7011 _LT_EOF
7012       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7013       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7014       echo "$AR cru libconftest.a conftest.o" >&5
7015       $AR cru libconftest.a conftest.o 2>&5
7016       cat > conftest.c << _LT_EOF
7017 int main() { return 0;}
7018 _LT_EOF
7019       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7020       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7021       _lt_result=$?
7022       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7023         lt_cv_ld_force_load=yes
7024       else
7025         cat conftest.err >&5
7026       fi
7027         rm -f conftest.err libconftest.a conftest conftest.c
7028         rm -rf conftest.dSYM
7029
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7032 $as_echo "$lt_cv_ld_force_load" >&6; }
7033     case $host_os in
7034     rhapsody* | darwin1.[012])
7035       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7036     darwin1.*)
7037       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7038     darwin*) # darwin 5.x on
7039       # if running on 10.5 or later, the deployment target defaults
7040       # to the OS version, if on x86, and 10.4, the deployment
7041       # target defaults to 10.4. Don't you love it?
7042       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7043         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7044           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7045         10.[012]*)
7046           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7047         10.*)
7048           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7049       esac
7050     ;;
7051   esac
7052     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7053       _lt_dar_single_mod='$single_module'
7054     fi
7055     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7056       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7057     else
7058       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7059     fi
7060     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7061       _lt_dsymutil='~$DSYMUTIL $lib || :'
7062     else
7063       _lt_dsymutil=
7064     fi
7065     ;;
7066   esac
7067
7068 ac_ext=c
7069 ac_cpp='$CPP $CPPFLAGS'
7070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7074 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7075 # On Suns, sometimes $CPP names a directory.
7076 if test -n "$CPP" && test -d "$CPP"; then
7077   CPP=
7078 fi
7079 if test -z "$CPP"; then
7080   if test "${ac_cv_prog_CPP+set}" = set; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083       # Double quotes because CPP needs to be expanded
7084     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7085     do
7086       ac_preproc_ok=false
7087 for ac_c_preproc_warn_flag in '' yes
7088 do
7089   # Use a header file that comes with gcc, so configuring glibc
7090   # with a fresh cross-compiler works.
7091   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092   # <limits.h> exists even on freestanding compilers.
7093   # On the NeXT, cc -E runs the code through the compiler's parser,
7094   # not just through cpp. "Syntax error" is here to catch this case.
7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h.  */
7097 #ifdef __STDC__
7098 # include <limits.h>
7099 #else
7100 # include <assert.h>
7101 #endif
7102                      Syntax error
7103 _ACEOF
7104 if ac_fn_c_try_cpp "$LINENO"; then :
7105
7106 else
7107   # Broken: fails on valid input.
7108 continue
7109 fi
7110 rm -f conftest.err conftest.$ac_ext
7111
7112   # OK, works on sane cases.  Now check whether nonexistent headers
7113   # can be detected and how.
7114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h.  */
7116 #include <ac_nonexistent.h>
7117 _ACEOF
7118 if ac_fn_c_try_cpp "$LINENO"; then :
7119   # Broken: success on invalid input.
7120 continue
7121 else
7122   # Passes both tests.
7123 ac_preproc_ok=:
7124 break
7125 fi
7126 rm -f conftest.err conftest.$ac_ext
7127
7128 done
7129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7130 rm -f conftest.err conftest.$ac_ext
7131 if $ac_preproc_ok; then :
7132   break
7133 fi
7134
7135     done
7136     ac_cv_prog_CPP=$CPP
7137
7138 fi
7139   CPP=$ac_cv_prog_CPP
7140 else
7141   ac_cv_prog_CPP=$CPP
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7144 $as_echo "$CPP" >&6; }
7145 ac_preproc_ok=false
7146 for ac_c_preproc_warn_flag in '' yes
7147 do
7148   # Use a header file that comes with gcc, so configuring glibc
7149   # with a fresh cross-compiler works.
7150   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151   # <limits.h> exists even on freestanding compilers.
7152   # On the NeXT, cc -E runs the code through the compiler's parser,
7153   # not just through cpp. "Syntax error" is here to catch this case.
7154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h.  */
7156 #ifdef __STDC__
7157 # include <limits.h>
7158 #else
7159 # include <assert.h>
7160 #endif
7161                      Syntax error
7162 _ACEOF
7163 if ac_fn_c_try_cpp "$LINENO"; then :
7164
7165 else
7166   # Broken: fails on valid input.
7167 continue
7168 fi
7169 rm -f conftest.err conftest.$ac_ext
7170
7171   # OK, works on sane cases.  Now check whether nonexistent headers
7172   # can be detected and how.
7173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h.  */
7175 #include <ac_nonexistent.h>
7176 _ACEOF
7177 if ac_fn_c_try_cpp "$LINENO"; then :
7178   # Broken: success on invalid input.
7179 continue
7180 else
7181   # Passes both tests.
7182 ac_preproc_ok=:
7183 break
7184 fi
7185 rm -f conftest.err conftest.$ac_ext
7186
7187 done
7188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7189 rm -f conftest.err conftest.$ac_ext
7190 if $ac_preproc_ok; then :
7191
7192 else
7193   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7195 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7196 See \`config.log' for more details." "$LINENO" 5; }
7197 fi
7198
7199 ac_ext=c
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7207 $as_echo_n "checking for ANSI C header files... " >&6; }
7208 if test "${ac_cv_header_stdc+set}" = set; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h.  */
7213 #include <stdlib.h>
7214 #include <stdarg.h>
7215 #include <string.h>
7216 #include <float.h>
7217
7218 int
7219 main ()
7220 {
7221
7222   ;
7223   return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"; then :
7227   ac_cv_header_stdc=yes
7228 else
7229   ac_cv_header_stdc=no
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232
7233 if test $ac_cv_header_stdc = yes; then
7234   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h.  */
7237 #include <string.h>
7238
7239 _ACEOF
7240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7241   $EGREP "memchr" >/dev/null 2>&1; then :
7242
7243 else
7244   ac_cv_header_stdc=no
7245 fi
7246 rm -f conftest*
7247
7248 fi
7249
7250 if test $ac_cv_header_stdc = yes; then
7251   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h.  */
7254 #include <stdlib.h>
7255
7256 _ACEOF
7257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258   $EGREP "free" >/dev/null 2>&1; then :
7259
7260 else
7261   ac_cv_header_stdc=no
7262 fi
7263 rm -f conftest*
7264
7265 fi
7266
7267 if test $ac_cv_header_stdc = yes; then
7268   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7269   if test "$cross_compiling" = yes; then :
7270   :
7271 else
7272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h.  */
7274 #include <ctype.h>
7275 #include <stdlib.h>
7276 #if ((' ' & 0x0FF) == 0x020)
7277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7279 #else
7280 # define ISLOWER(c) \
7281                    (('a' <= (c) && (c) <= 'i') \
7282                      || ('j' <= (c) && (c) <= 'r') \
7283                      || ('s' <= (c) && (c) <= 'z'))
7284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7285 #endif
7286
7287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7288 int
7289 main ()
7290 {
7291   int i;
7292   for (i = 0; i < 256; i++)
7293     if (XOR (islower (i), ISLOWER (i))
7294         || toupper (i) != TOUPPER (i))
7295       return 2;
7296   return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_run "$LINENO"; then :
7300
7301 else
7302   ac_cv_header_stdc=no
7303 fi
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7305   conftest.$ac_objext conftest.beam conftest.$ac_ext
7306 fi
7307
7308 fi
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7311 $as_echo "$ac_cv_header_stdc" >&6; }
7312 if test $ac_cv_header_stdc = yes; then
7313
7314 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7315
7316 fi
7317
7318 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7319 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7320                   inttypes.h stdint.h unistd.h
7321 do :
7322   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7323 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7324 "
7325 eval as_val=\$$as_ac_Header
7326    if test "x$as_val" = x""yes; then :
7327   cat >>confdefs.h <<_ACEOF
7328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329 _ACEOF
7330
7331 fi
7332
7333 done
7334
7335
7336 for ac_header in dlfcn.h
7337 do :
7338   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7339 "
7340 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7341   cat >>confdefs.h <<_ACEOF
7342 #define HAVE_DLFCN_H 1
7343 _ACEOF
7344
7345 fi
7346
7347 done
7348
7349 if test -n "$ac_tool_prefix"; then
7350   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_GOC+set}" = set; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$GOC"; then
7358   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 GOC=$ac_cv_prog_GOC
7378 if test -n "$GOC"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7380 $as_echo "$GOC" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386
7387 fi
7388 if test -z "$ac_cv_prog_GOC"; then
7389   ac_ct_GOC=$GOC
7390   # Extract the first word of "gccgo", so it can be a program name with args.
7391 set dummy gccgo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$ac_ct_GOC"; then
7398   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_prog_ac_ct_GOC="gccgo"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7418 if test -n "$ac_ct_GOC"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7420 $as_echo "$ac_ct_GOC" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426   if test "x$ac_ct_GOC" = x; then
7427     GOC=""
7428   else
7429     case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7434 esac
7435     GOC=$ac_ct_GOC
7436   fi
7437 else
7438   GOC="$ac_cv_prog_GOC"
7439 fi
7440
7441
7442
7443
7444
7445
7446 # Set options
7447
7448
7449
7450
7451   enable_win32_dll=no
7452
7453
7454             # Check whether --enable-shared was given.
7455 if test "${enable_shared+set}" = set; then :
7456   enableval=$enable_shared; p=${PACKAGE-default}
7457     case $enableval in
7458     yes) enable_shared=yes ;;
7459     no) enable_shared=no ;;
7460     *)
7461       enable_shared=no
7462       # Look at the argument we got.  We use all the common list separators.
7463       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7464       for pkg in $enableval; do
7465         IFS="$lt_save_ifs"
7466         if test "X$pkg" = "X$p"; then
7467           enable_shared=yes
7468         fi
7469       done
7470       IFS="$lt_save_ifs"
7471       ;;
7472     esac
7473 else
7474   enable_shared=yes
7475 fi
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485   # Check whether --enable-static was given.
7486 if test "${enable_static+set}" = set; then :
7487   enableval=$enable_static; p=${PACKAGE-default}
7488     case $enableval in
7489     yes) enable_static=yes ;;
7490     no) enable_static=no ;;
7491     *)
7492      enable_static=no
7493       # Look at the argument we got.  We use all the common list separators.
7494       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7495       for pkg in $enableval; do
7496         IFS="$lt_save_ifs"
7497         if test "X$pkg" = "X$p"; then
7498           enable_static=yes
7499         fi
7500       done
7501       IFS="$lt_save_ifs"
7502       ;;
7503     esac
7504 else
7505   enable_static=yes
7506 fi
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517 # Check whether --with-pic was given.
7518 if test "${with_pic+set}" = set; then :
7519   withval=$with_pic; pic_mode="$withval"
7520 else
7521   pic_mode=default
7522 fi
7523
7524
7525 test -z "$pic_mode" && pic_mode=default
7526
7527
7528
7529
7530
7531
7532
7533   # Check whether --enable-fast-install was given.
7534 if test "${enable_fast_install+set}" = set; then :
7535   enableval=$enable_fast_install; p=${PACKAGE-default}
7536     case $enableval in
7537     yes) enable_fast_install=yes ;;
7538     no) enable_fast_install=no ;;
7539     *)
7540       enable_fast_install=no
7541       # Look at the argument we got.  We use all the common list separators.
7542       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7543       for pkg in $enableval; do
7544         IFS="$lt_save_ifs"
7545         if test "X$pkg" = "X$p"; then
7546           enable_fast_install=yes
7547         fi
7548       done
7549       IFS="$lt_save_ifs"
7550       ;;
7551     esac
7552 else
7553   enable_fast_install=yes
7554 fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566 # This can be used to rebuild libtool when needed
7567 LIBTOOL_DEPS="$ltmain"
7568
7569 # Always use our own libtool.
7570 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597 test -z "$LN_S" && LN_S="ln -s"
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612 if test -n "${ZSH_VERSION+set}" ; then
7613    setopt NO_GLOB_SUBST
7614 fi
7615
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7617 $as_echo_n "checking for objdir... " >&6; }
7618 if test "${lt_cv_objdir+set}" = set; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   rm -f .libs 2>/dev/null
7622 mkdir .libs 2>/dev/null
7623 if test -d .libs; then
7624   lt_cv_objdir=.libs
7625 else
7626   # MS-DOS does not allow filenames that begin with a dot.
7627   lt_cv_objdir=_libs
7628 fi
7629 rmdir .libs 2>/dev/null
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7632 $as_echo "$lt_cv_objdir" >&6; }
7633 objdir=$lt_cv_objdir
7634
7635
7636
7637
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define LT_OBJDIR "$lt_cv_objdir/"
7641 _ACEOF
7642
7643
7644
7645
7646 case $host_os in
7647 aix3*)
7648   # AIX sometimes has problems with the GCC collect2 program.  For some
7649   # reason, if we set the COLLECT_NAMES environment variable, the problems
7650   # vanish in a puff of smoke.
7651   if test "X${COLLECT_NAMES+set}" != Xset; then
7652     COLLECT_NAMES=
7653     export COLLECT_NAMES
7654   fi
7655   ;;
7656 esac
7657
7658 # Global variables:
7659 ofile=libtool
7660 can_build_shared=yes
7661
7662 # All known linkers require a `.a' archive for static linking (except MSVC,
7663 # which needs '.lib').
7664 libext=a
7665
7666 with_gnu_ld="$lt_cv_prog_gnu_ld"
7667
7668 old_CC="$CC"
7669 old_CFLAGS="$CFLAGS"
7670
7671 # Set sane defaults for various variables
7672 test -z "$CC" && CC=cc
7673 test -z "$LTCC" && LTCC=$CC
7674 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7675 test -z "$LD" && LD=ld
7676 test -z "$ac_objext" && ac_objext=o
7677
7678 for cc_temp in $compiler""; do
7679   case $cc_temp in
7680     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7681     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7682     \-*) ;;
7683     *) break;;
7684   esac
7685 done
7686 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7687
7688
7689 # Only perform the check for file, if the check method requires it
7690 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7691 case $deplibs_check_method in
7692 file_magic*)
7693   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7695 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7696 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   case $MAGIC_CMD in
7700 [\\/*] |  ?:[\\/]*)
7701   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7702   ;;
7703 *)
7704   lt_save_MAGIC_CMD="$MAGIC_CMD"
7705   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7706   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7707   for ac_dir in $ac_dummy; do
7708     IFS="$lt_save_ifs"
7709     test -z "$ac_dir" && ac_dir=.
7710     if test -f $ac_dir/${ac_tool_prefix}file; then
7711       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7712       if test -n "$file_magic_test_file"; then
7713         case $deplibs_check_method in
7714         "file_magic "*)
7715           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7716           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7718             $EGREP "$file_magic_regex" > /dev/null; then
7719             :
7720           else
7721             cat <<_LT_EOF 1>&2
7722
7723 *** Warning: the command libtool uses to detect shared libraries,
7724 *** $file_magic_cmd, produces output that libtool cannot recognize.
7725 *** The result is that libtool may fail to recognize shared libraries
7726 *** as such.  This will affect the creation of libtool libraries that
7727 *** depend on shared libraries, but programs linked with such libtool
7728 *** libraries will work regardless of this problem.  Nevertheless, you
7729 *** may want to report the problem to your system manager and/or to
7730 *** bug-libtool@gnu.org
7731
7732 _LT_EOF
7733           fi ;;
7734         esac
7735       fi
7736       break
7737     fi
7738   done
7739   IFS="$lt_save_ifs"
7740   MAGIC_CMD="$lt_save_MAGIC_CMD"
7741   ;;
7742 esac
7743 fi
7744
7745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746 if test -n "$MAGIC_CMD"; then
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7748 $as_echo "$MAGIC_CMD" >&6; }
7749 else
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755
7756
7757
7758 if test -z "$lt_cv_path_MAGIC_CMD"; then
7759   if test -n "$ac_tool_prefix"; then
7760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7761 $as_echo_n "checking for file... " >&6; }
7762 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   case $MAGIC_CMD in
7766 [\\/*] |  ?:[\\/]*)
7767   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7768   ;;
7769 *)
7770   lt_save_MAGIC_CMD="$MAGIC_CMD"
7771   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7772   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7773   for ac_dir in $ac_dummy; do
7774     IFS="$lt_save_ifs"
7775     test -z "$ac_dir" && ac_dir=.
7776     if test -f $ac_dir/file; then
7777       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7778       if test -n "$file_magic_test_file"; then
7779         case $deplibs_check_method in
7780         "file_magic "*)
7781           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7782           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7783           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7784             $EGREP "$file_magic_regex" > /dev/null; then
7785             :
7786           else
7787             cat <<_LT_EOF 1>&2
7788
7789 *** Warning: the command libtool uses to detect shared libraries,
7790 *** $file_magic_cmd, produces output that libtool cannot recognize.
7791 *** The result is that libtool may fail to recognize shared libraries
7792 *** as such.  This will affect the creation of libtool libraries that
7793 *** depend on shared libraries, but programs linked with such libtool
7794 *** libraries will work regardless of this problem.  Nevertheless, you
7795 *** may want to report the problem to your system manager and/or to
7796 *** bug-libtool@gnu.org
7797
7798 _LT_EOF
7799           fi ;;
7800         esac
7801       fi
7802       break
7803     fi
7804   done
7805   IFS="$lt_save_ifs"
7806   MAGIC_CMD="$lt_save_MAGIC_CMD"
7807   ;;
7808 esac
7809 fi
7810
7811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7812 if test -n "$MAGIC_CMD"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7814 $as_echo "$MAGIC_CMD" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821   else
7822     MAGIC_CMD=:
7823   fi
7824 fi
7825
7826   fi
7827   ;;
7828 esac
7829
7830 # Use C for the default configuration in the libtool script
7831
7832 lt_save_CC="$CC"
7833 ac_ext=c
7834 ac_cpp='$CPP $CPPFLAGS'
7835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838
7839
7840 # Source file extension for C test sources.
7841 ac_ext=c
7842
7843 # Object file extension for compiled C test sources.
7844 objext=o
7845 objext=$objext
7846
7847 # Code to be used in simple compile tests
7848 lt_simple_compile_test_code="int some_variable = 0;"
7849
7850 # Code to be used in simple link tests
7851 lt_simple_link_test_code='int main(){return(0);}'
7852
7853
7854
7855
7856
7857
7858
7859 # If no C compiler was specified, use CC.
7860 LTCC=${LTCC-"$CC"}
7861
7862 # If no C compiler flags were specified, use CFLAGS.
7863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7864
7865 # Allow CC to be a program name with arguments.
7866 compiler=$CC
7867
7868 # Save the default compiler, since it gets overwritten when the other
7869 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7870 compiler_DEFAULT=$CC
7871
7872 # save warnings/boilerplate of simple test code
7873 ac_outfile=conftest.$ac_objext
7874 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7875 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7876 _lt_compiler_boilerplate=`cat conftest.err`
7877 $RM conftest*
7878
7879 ac_outfile=conftest.$ac_objext
7880 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7881 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7882 _lt_linker_boilerplate=`cat conftest.err`
7883 $RM -r conftest*
7884
7885
7886 ## CAVEAT EMPTOR:
7887 ## There is no encapsulation within the following macros, do not change
7888 ## the running order or otherwise move them around unless you know exactly
7889 ## what you are doing...
7890 if test -n "$compiler"; then
7891
7892 lt_prog_compiler_no_builtin_flag=
7893
7894 if test "$GCC" = yes; then
7895   case $cc_basename in
7896   nvcc*)
7897     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7898   *)
7899     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7900   esac
7901
7902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7903 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7904 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7905   $as_echo_n "(cached) " >&6
7906 else
7907   lt_cv_prog_compiler_rtti_exceptions=no
7908    ac_outfile=conftest.$ac_objext
7909    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7910    lt_compiler_flag="-fno-rtti -fno-exceptions"
7911    # Insert the option either (1) after the last *FLAGS variable, or
7912    # (2) before a word containing "conftest.", or (3) at the end.
7913    # Note that $ac_compile itself does not contain backslashes and begins
7914    # with a dollar sign (not a hyphen), so the echo should work correctly.
7915    # The option is referenced via a variable to avoid confusing sed.
7916    lt_compile=`echo "$ac_compile" | $SED \
7917    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7918    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7919    -e 's:$: $lt_compiler_flag:'`
7920    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7921    (eval "$lt_compile" 2>conftest.err)
7922    ac_status=$?
7923    cat conftest.err >&5
7924    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925    if (exit $ac_status) && test -s "$ac_outfile"; then
7926      # The compiler can only warn and ignore the option if not recognized
7927      # So say no if there are warnings other than the usual output.
7928      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7929      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7930      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7931        lt_cv_prog_compiler_rtti_exceptions=yes
7932      fi
7933    fi
7934    $RM conftest*
7935
7936 fi
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7938 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7939
7940 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7941     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7942 else
7943     :
7944 fi
7945
7946 fi
7947
7948
7949
7950
7951
7952
7953   lt_prog_compiler_wl=
7954 lt_prog_compiler_pic=
7955 lt_prog_compiler_static=
7956
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7959
7960   if test "$GCC" = yes; then
7961     lt_prog_compiler_wl='-Wl,'
7962     lt_prog_compiler_static='-static'
7963
7964     case $host_os in
7965       aix*)
7966       # All AIX code is PIC.
7967       if test "$host_cpu" = ia64; then
7968         # AIX 5 now supports IA64 processor
7969         lt_prog_compiler_static='-Bstatic'
7970       fi
7971       ;;
7972
7973     amigaos*)
7974       case $host_cpu in
7975       powerpc)
7976             # see comment about AmigaOS4 .so support
7977             lt_prog_compiler_pic='-fPIC'
7978         ;;
7979       m68k)
7980             # FIXME: we need at least 68020 code to build shared libraries, but
7981             # adding the `-m68020' flag to GCC prevents building anything better,
7982             # like `-m68040'.
7983             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7984         ;;
7985       esac
7986       ;;
7987
7988     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7989       # PIC is the default for these OSes.
7990       ;;
7991
7992     mingw* | cygwin* | pw32* | os2* | cegcc*)
7993       # This hack is so that the source file can tell whether it is being
7994       # built for inclusion in a dll (and should export symbols for example).
7995       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7996       # (--disable-auto-import) libraries
7997       lt_prog_compiler_pic='-DDLL_EXPORT'
7998       ;;
7999
8000     darwin* | rhapsody*)
8001       # PIC is the default on this platform
8002       # Common symbols not allowed in MH_DYLIB files
8003       lt_prog_compiler_pic='-fno-common'
8004       ;;
8005
8006     haiku*)
8007       # PIC is the default for Haiku.
8008       # The "-static" flag exists, but is broken.
8009       lt_prog_compiler_static=
8010       ;;
8011
8012     hpux*)
8013       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8014       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8015       # sets the default TLS model and affects inlining.
8016       case $host_cpu in
8017       hppa*64*)
8018         # +Z the default
8019         ;;
8020       *)
8021         lt_prog_compiler_pic='-fPIC'
8022         ;;
8023       esac
8024       ;;
8025
8026     interix[3-9]*)
8027       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8028       # Instead, we relocate shared libraries at runtime.
8029       ;;
8030
8031     msdosdjgpp*)
8032       # Just because we use GCC doesn't mean we suddenly get shared libraries
8033       # on systems that don't support them.
8034       lt_prog_compiler_can_build_shared=no
8035       enable_shared=no
8036       ;;
8037
8038     *nto* | *qnx*)
8039       # QNX uses GNU C++, but need to define -shared option too, otherwise
8040       # it will coredump.
8041       lt_prog_compiler_pic='-fPIC -shared'
8042       ;;
8043
8044     sysv4*MP*)
8045       if test -d /usr/nec; then
8046         lt_prog_compiler_pic=-Kconform_pic
8047       fi
8048       ;;
8049
8050     *)
8051       lt_prog_compiler_pic='-fPIC'
8052       ;;
8053     esac
8054
8055     case $cc_basename in
8056     nvcc*) # Cuda Compiler Driver 2.2
8057       lt_prog_compiler_wl='-Xlinker '
8058       lt_prog_compiler_pic='-Xcompiler -fPIC'
8059       ;;
8060     esac
8061   else
8062     # PORTME Check for flag to pass linker flags through the system compiler.
8063     case $host_os in
8064     aix*)
8065       lt_prog_compiler_wl='-Wl,'
8066       if test "$host_cpu" = ia64; then
8067         # AIX 5 now supports IA64 processor
8068         lt_prog_compiler_static='-Bstatic'
8069       else
8070         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8071       fi
8072       ;;
8073
8074     mingw* | cygwin* | pw32* | os2* | cegcc*)
8075       # This hack is so that the source file can tell whether it is being
8076       # built for inclusion in a dll (and should export symbols for example).
8077       lt_prog_compiler_pic='-DDLL_EXPORT'
8078       ;;
8079
8080     hpux9* | hpux10* | hpux11*)
8081       lt_prog_compiler_wl='-Wl,'
8082       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8083       # not for PA HP-UX.
8084       case $host_cpu in
8085       hppa*64*|ia64*)
8086         # +Z the default
8087         ;;
8088       *)
8089         lt_prog_compiler_pic='+Z'
8090         ;;
8091       esac
8092       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8093       lt_prog_compiler_static='${wl}-a ${wl}archive'
8094       ;;
8095
8096     irix5* | irix6* | nonstopux*)
8097       lt_prog_compiler_wl='-Wl,'
8098       # PIC (with -KPIC) is the default.
8099       lt_prog_compiler_static='-non_shared'
8100       ;;
8101
8102     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8103       case $cc_basename in
8104       # old Intel for x86_64 which still supported -KPIC.
8105       ecc*)
8106         lt_prog_compiler_wl='-Wl,'
8107         lt_prog_compiler_pic='-KPIC'
8108         lt_prog_compiler_static='-static'
8109         ;;
8110       # icc used to be incompatible with GCC.
8111       # ICC 10 doesn't accept -KPIC any more.
8112       icc* | ifort*)
8113         lt_prog_compiler_wl='-Wl,'
8114         lt_prog_compiler_pic='-fPIC'
8115         lt_prog_compiler_static='-static'
8116         ;;
8117       # Lahey Fortran 8.1.
8118       lf95*)
8119         lt_prog_compiler_wl='-Wl,'
8120         lt_prog_compiler_pic='--shared'
8121         lt_prog_compiler_static='--static'
8122         ;;
8123       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8124         # Portland Group compilers (*not* the Pentium gcc compiler,
8125         # which looks to be a dead project)
8126         lt_prog_compiler_wl='-Wl,'
8127         lt_prog_compiler_pic='-fpic'
8128         lt_prog_compiler_static='-Bstatic'
8129         ;;
8130       ccc*)
8131         lt_prog_compiler_wl='-Wl,'
8132         # All Alpha code is PIC.
8133         lt_prog_compiler_static='-non_shared'
8134         ;;
8135       xl* | bgxl* | bgf* | mpixl*)
8136         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8137         lt_prog_compiler_wl='-Wl,'
8138         lt_prog_compiler_pic='-qpic'
8139         lt_prog_compiler_static='-qstaticlink'
8140         ;;
8141       *)
8142         case `$CC -V 2>&1 | sed 5q` in
8143         *Sun\ F* | *Sun*Fortran*)
8144           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8145           lt_prog_compiler_pic='-KPIC'
8146           lt_prog_compiler_static='-Bstatic'
8147           lt_prog_compiler_wl=''
8148           ;;
8149         *Sun\ C*)
8150           # Sun C 5.9
8151           lt_prog_compiler_pic='-KPIC'
8152           lt_prog_compiler_static='-Bstatic'
8153           lt_prog_compiler_wl='-Wl,'
8154           ;;
8155         esac
8156         ;;
8157       esac
8158       ;;
8159
8160     newsos6)
8161       lt_prog_compiler_pic='-KPIC'
8162       lt_prog_compiler_static='-Bstatic'
8163       ;;
8164
8165     *nto* | *qnx*)
8166       # QNX uses GNU C++, but need to define -shared option too, otherwise
8167       # it will coredump.
8168       lt_prog_compiler_pic='-fPIC -shared'
8169       ;;
8170
8171     osf3* | osf4* | osf5*)
8172       lt_prog_compiler_wl='-Wl,'
8173       # All OSF/1 code is PIC.
8174       lt_prog_compiler_static='-non_shared'
8175       ;;
8176
8177     rdos*)
8178       lt_prog_compiler_static='-non_shared'
8179       ;;
8180
8181     solaris*)
8182       lt_prog_compiler_pic='-KPIC'
8183       lt_prog_compiler_static='-Bstatic'
8184       case $cc_basename in
8185       f77* | f90* | f95*)
8186         lt_prog_compiler_wl='-Qoption ld ';;
8187       *)
8188         lt_prog_compiler_wl='-Wl,';;
8189       esac
8190       ;;
8191
8192     sunos4*)
8193       lt_prog_compiler_wl='-Qoption ld '
8194       lt_prog_compiler_pic='-PIC'
8195       lt_prog_compiler_static='-Bstatic'
8196       ;;
8197
8198     sysv4 | sysv4.2uw2* | sysv4.3*)
8199       lt_prog_compiler_wl='-Wl,'
8200       lt_prog_compiler_pic='-KPIC'
8201       lt_prog_compiler_static='-Bstatic'
8202       ;;
8203
8204     sysv4*MP*)
8205       if test -d /usr/nec ;then
8206         lt_prog_compiler_pic='-Kconform_pic'
8207         lt_prog_compiler_static='-Bstatic'
8208       fi
8209       ;;
8210
8211     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8212       lt_prog_compiler_wl='-Wl,'
8213       lt_prog_compiler_pic='-KPIC'
8214       lt_prog_compiler_static='-Bstatic'
8215       ;;
8216
8217     unicos*)
8218       lt_prog_compiler_wl='-Wl,'
8219       lt_prog_compiler_can_build_shared=no
8220       ;;
8221
8222     uts4*)
8223       lt_prog_compiler_pic='-pic'
8224       lt_prog_compiler_static='-Bstatic'
8225       ;;
8226
8227     *)
8228       lt_prog_compiler_can_build_shared=no
8229       ;;
8230     esac
8231   fi
8232
8233 case $host_os in
8234   # For platforms which do not support PIC, -DPIC is meaningless:
8235   *djgpp*)
8236     lt_prog_compiler_pic=
8237     ;;
8238   *)
8239     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8240     ;;
8241 esac
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8243 $as_echo "$lt_prog_compiler_pic" >&6; }
8244
8245
8246
8247
8248
8249
8250 #
8251 # Check to make sure the PIC flag actually works.
8252 #
8253 if test -n "$lt_prog_compiler_pic"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8255 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8256 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8257   $as_echo_n "(cached) " >&6
8258 else
8259   lt_cv_prog_compiler_pic_works=no
8260    ac_outfile=conftest.$ac_objext
8261    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8262    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8263    # Insert the option either (1) after the last *FLAGS variable, or
8264    # (2) before a word containing "conftest.", or (3) at the end.
8265    # Note that $ac_compile itself does not contain backslashes and begins
8266    # with a dollar sign (not a hyphen), so the echo should work correctly.
8267    # The option is referenced via a variable to avoid confusing sed.
8268    lt_compile=`echo "$ac_compile" | $SED \
8269    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271    -e 's:$: $lt_compiler_flag:'`
8272    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8273    (eval "$lt_compile" 2>conftest.err)
8274    ac_status=$?
8275    cat conftest.err >&5
8276    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277    if (exit $ac_status) && test -s "$ac_outfile"; then
8278      # The compiler can only warn and ignore the option if not recognized
8279      # So say no if there are warnings other than the usual output.
8280      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8281      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8282      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8283        lt_cv_prog_compiler_pic_works=yes
8284      fi
8285    fi
8286    $RM conftest*
8287
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8290 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8291
8292 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8293     case $lt_prog_compiler_pic in
8294      "" | " "*) ;;
8295      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8296      esac
8297 else
8298     lt_prog_compiler_pic=
8299      lt_prog_compiler_can_build_shared=no
8300 fi
8301
8302 fi
8303
8304
8305
8306
8307
8308
8309 #
8310 # Check to make sure the static flag actually works.
8311 #
8312 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8314 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8315 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   lt_cv_prog_compiler_static_works=no
8319    save_LDFLAGS="$LDFLAGS"
8320    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8321    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8322    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8323      # The linker can only warn and ignore the option if not recognized
8324      # So say no if there are warnings
8325      if test -s conftest.err; then
8326        # Append any errors to the config.log.
8327        cat conftest.err 1>&5
8328        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8329        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8330        if diff conftest.exp conftest.er2 >/dev/null; then
8331          lt_cv_prog_compiler_static_works=yes
8332        fi
8333      else
8334        lt_cv_prog_compiler_static_works=yes
8335      fi
8336    fi
8337    $RM -r conftest*
8338    LDFLAGS="$save_LDFLAGS"
8339
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8342 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8343
8344 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8345     :
8346 else
8347     lt_prog_compiler_static=
8348 fi
8349
8350
8351
8352
8353
8354
8355
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8357 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8358 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   lt_cv_prog_compiler_c_o=no
8362    $RM -r conftest 2>/dev/null
8363    mkdir conftest
8364    cd conftest
8365    mkdir out
8366    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8367
8368    lt_compiler_flag="-o out/conftest2.$ac_objext"
8369    # Insert the option either (1) after the last *FLAGS variable, or
8370    # (2) before a word containing "conftest.", or (3) at the end.
8371    # Note that $ac_compile itself does not contain backslashes and begins
8372    # with a dollar sign (not a hyphen), so the echo should work correctly.
8373    lt_compile=`echo "$ac_compile" | $SED \
8374    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8375    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8376    -e 's:$: $lt_compiler_flag:'`
8377    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8378    (eval "$lt_compile" 2>out/conftest.err)
8379    ac_status=$?
8380    cat out/conftest.err >&5
8381    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8383    then
8384      # The compiler can only warn and ignore the option if not recognized
8385      # So say no if there are warnings
8386      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8387      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8388      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8389        lt_cv_prog_compiler_c_o=yes
8390      fi
8391    fi
8392    chmod u+w . 2>&5
8393    $RM conftest*
8394    # SGI C++ compiler will create directory out/ii_files/ for
8395    # template instantiation
8396    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8397    $RM out/* && rmdir out
8398    cd ..
8399    $RM -r conftest
8400    $RM conftest*
8401
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8404 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8405
8406
8407
8408
8409
8410
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8414   $as_echo_n "(cached) " >&6
8415 else
8416   lt_cv_prog_compiler_c_o=no
8417    $RM -r conftest 2>/dev/null
8418    mkdir conftest
8419    cd conftest
8420    mkdir out
8421    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422
8423    lt_compiler_flag="-o out/conftest2.$ac_objext"
8424    # Insert the option either (1) after the last *FLAGS variable, or
8425    # (2) before a word containing "conftest.", or (3) at the end.
8426    # Note that $ac_compile itself does not contain backslashes and begins
8427    # with a dollar sign (not a hyphen), so the echo should work correctly.
8428    lt_compile=`echo "$ac_compile" | $SED \
8429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431    -e 's:$: $lt_compiler_flag:'`
8432    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433    (eval "$lt_compile" 2>out/conftest.err)
8434    ac_status=$?
8435    cat out/conftest.err >&5
8436    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438    then
8439      # The compiler can only warn and ignore the option if not recognized
8440      # So say no if there are warnings
8441      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444        lt_cv_prog_compiler_c_o=yes
8445      fi
8446    fi
8447    chmod u+w . 2>&5
8448    $RM conftest*
8449    # SGI C++ compiler will create directory out/ii_files/ for
8450    # template instantiation
8451    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452    $RM out/* && rmdir out
8453    cd ..
8454    $RM -r conftest
8455    $RM conftest*
8456
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8460
8461
8462
8463
8464 hard_links="nottested"
8465 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8466   # do not overwrite the value of need_locks provided by the user
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8468 $as_echo_n "checking if we can lock with hard links... " >&6; }
8469   hard_links=yes
8470   $RM conftest*
8471   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8472   touch conftest.a
8473   ln conftest.a conftest.b 2>&5 || hard_links=no
8474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8476 $as_echo "$hard_links" >&6; }
8477   if test "$hard_links" = no; then
8478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8480     need_locks=warn
8481   fi
8482 else
8483   need_locks=no
8484 fi
8485
8486
8487
8488
8489
8490
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8493
8494   runpath_var=
8495   allow_undefined_flag=
8496   always_export_symbols=no
8497   archive_cmds=
8498   archive_expsym_cmds=
8499   compiler_needs_object=no
8500   enable_shared_with_static_runtimes=no
8501   export_dynamic_flag_spec=
8502   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8503   hardcode_automatic=no
8504   hardcode_direct=no
8505   hardcode_direct_absolute=no
8506   hardcode_libdir_flag_spec=
8507   hardcode_libdir_flag_spec_ld=
8508   hardcode_libdir_separator=
8509   hardcode_minus_L=no
8510   hardcode_shlibpath_var=unsupported
8511   inherit_rpath=no
8512   link_all_deplibs=unknown
8513   module_cmds=
8514   module_expsym_cmds=
8515   old_archive_from_new_cmds=
8516   old_archive_from_expsyms_cmds=
8517   thread_safe_flag_spec=
8518   whole_archive_flag_spec=
8519   # include_expsyms should be a list of space-separated symbols to be *always*
8520   # included in the symbol list
8521   include_expsyms=
8522   # exclude_expsyms can be an extended regexp of symbols to exclude
8523   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8524   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8525   # as well as any symbol that contains `d'.
8526   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8527   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8528   # platforms (ab)use it in PIC code, but their linkers get confused if
8529   # the symbol is explicitly referenced.  Since portable code cannot
8530   # rely on this symbol name, it's probably fine to never include it in
8531   # preloaded symbol tables.
8532   # Exclude shared library initialization/finalization symbols.
8533   extract_expsyms_cmds=
8534
8535   case $host_os in
8536   cygwin* | mingw* | pw32* | cegcc*)
8537     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8538     # When not using gcc, we currently assume that we are using
8539     # Microsoft Visual C++.
8540     if test "$GCC" != yes; then
8541       with_gnu_ld=no
8542     fi
8543     ;;
8544   interix*)
8545     # we just hope/assume this is gcc and not c89 (= MSVC++)
8546     with_gnu_ld=yes
8547     ;;
8548   openbsd*)
8549     with_gnu_ld=no
8550     ;;
8551   esac
8552
8553   ld_shlibs=yes
8554
8555   # On some targets, GNU ld is compatible enough with the native linker
8556   # that we're better off using the native interface for both.
8557   lt_use_gnu_ld_interface=no
8558   if test "$with_gnu_ld" = yes; then
8559     case $host_os in
8560       aix*)
8561         # The AIX port of GNU ld has always aspired to compatibility
8562         # with the native linker.  However, as the warning in the GNU ld
8563         # block says, versions before 2.19.5* couldn't really create working
8564         # shared libraries, regardless of the interface used.
8565         case `$LD -v 2>&1` in
8566           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8567           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8568           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8569           *)
8570             lt_use_gnu_ld_interface=yes
8571             ;;
8572         esac
8573         ;;
8574       *)
8575         lt_use_gnu_ld_interface=yes
8576         ;;
8577     esac
8578   fi
8579
8580   if test "$lt_use_gnu_ld_interface" = yes; then
8581     # If archive_cmds runs LD, not CC, wlarc should be empty
8582     wlarc='${wl}'
8583
8584     # Set some defaults for GNU ld with shared library support. These
8585     # are reset later if shared libraries are not supported. Putting them
8586     # here allows them to be overridden if necessary.
8587     runpath_var=LD_RUN_PATH
8588     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8589     export_dynamic_flag_spec='${wl}--export-dynamic'
8590     # ancient GNU ld didn't support --whole-archive et. al.
8591     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8592       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8593     else
8594       whole_archive_flag_spec=
8595     fi
8596     supports_anon_versioning=no
8597     case `$LD -v 2>&1` in
8598       *GNU\ gold*) supports_anon_versioning=yes ;;
8599       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8600       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8601       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8602       *\ 2.11.*) ;; # other 2.11 versions
8603       *) supports_anon_versioning=yes ;;
8604     esac
8605
8606     # See if GNU ld supports shared libraries.
8607     case $host_os in
8608     aix[3-9]*)
8609       # On AIX/PPC, the GNU linker is very broken
8610       if test "$host_cpu" != ia64; then
8611         ld_shlibs=no
8612         cat <<_LT_EOF 1>&2
8613
8614 *** Warning: the GNU linker, at least up to release 2.19, is reported
8615 *** to be unable to reliably create shared libraries on AIX.
8616 *** Therefore, libtool is disabling shared libraries support.  If you
8617 *** really care for shared libraries, you may want to install binutils
8618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8619 *** You will then need to restart the configuration process.
8620
8621 _LT_EOF
8622       fi
8623       ;;
8624
8625     amigaos*)
8626       case $host_cpu in
8627       powerpc)
8628             # see comment about AmigaOS4 .so support
8629             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630             archive_expsym_cmds=''
8631         ;;
8632       m68k)
8633             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)'
8634             hardcode_libdir_flag_spec='-L$libdir'
8635             hardcode_minus_L=yes
8636         ;;
8637       esac
8638       ;;
8639
8640     beos*)
8641       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642         allow_undefined_flag=unsupported
8643         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8644         # support --undefined.  This deserves some investigation.  FIXME
8645         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646       else
8647         ld_shlibs=no
8648       fi
8649       ;;
8650
8651     cygwin* | mingw* | pw32* | cegcc*)
8652       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8653       # as there is no search path for DLLs.
8654       hardcode_libdir_flag_spec='-L$libdir'
8655       export_dynamic_flag_spec='${wl}--export-all-symbols'
8656       allow_undefined_flag=unsupported
8657       always_export_symbols=no
8658       enable_shared_with_static_runtimes=yes
8659       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8660
8661       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8662         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8663         # If the export-symbols file already is a .def file (1st line
8664         # is EXPORTS), use it as is; otherwise, prepend...
8665         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8666           cp $export_symbols $output_objdir/$soname.def;
8667         else
8668           echo EXPORTS > $output_objdir/$soname.def;
8669           cat $export_symbols >> $output_objdir/$soname.def;
8670         fi~
8671         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8672       else
8673         ld_shlibs=no
8674       fi
8675       ;;
8676
8677     haiku*)
8678       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679       link_all_deplibs=yes
8680       ;;
8681
8682     interix[3-9]*)
8683       hardcode_direct=no
8684       hardcode_shlibpath_var=no
8685       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8686       export_dynamic_flag_spec='${wl}-E'
8687       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8688       # Instead, shared libraries are loaded at an image base (0x10000000 by
8689       # default) and relocated if they conflict, which is a slow very memory
8690       # consuming and fragmenting process.  To avoid this, we pick a random,
8691       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8692       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8693       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8694       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'
8695       ;;
8696
8697     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8698       tmp_diet=no
8699       if test "$host_os" = linux-dietlibc; then
8700         case $cc_basename in
8701           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8702         esac
8703       fi
8704       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8705          && test "$tmp_diet" = no
8706       then
8707         tmp_addflag=
8708         tmp_sharedflag='-shared'
8709         case $cc_basename,$host_cpu in
8710         pgcc*)                          # Portland Group C compiler
8711           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'
8712           tmp_addflag=' $pic_flag'
8713           ;;
8714         pgf77* | pgf90* | pgf95* | pgfortran*)
8715                                         # Portland Group f77 and f90 compilers
8716           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'
8717           tmp_addflag=' $pic_flag -Mnomain' ;;
8718         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8719           tmp_addflag=' -i_dynamic' ;;
8720         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8721           tmp_addflag=' -i_dynamic -nofor_main' ;;
8722         ifc* | ifort*)                  # Intel Fortran compiler
8723           tmp_addflag=' -nofor_main' ;;
8724         lf95*)                          # Lahey Fortran 8.1
8725           whole_archive_flag_spec=
8726           tmp_sharedflag='--shared' ;;
8727         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8728           tmp_sharedflag='-qmkshrobj'
8729           tmp_addflag= ;;
8730         nvcc*)  # Cuda Compiler Driver 2.2
8731           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'
8732           compiler_needs_object=yes
8733           ;;
8734         esac
8735         case `$CC -V 2>&1 | sed 5q` in
8736         *Sun\ C*)                       # Sun C 5.9
8737           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'
8738           compiler_needs_object=yes
8739           tmp_sharedflag='-G' ;;
8740         *Sun\ F*)                       # Sun Fortran 8.3
8741           tmp_sharedflag='-G' ;;
8742         esac
8743         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744
8745         if test "x$supports_anon_versioning" = xyes; then
8746           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8747             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8748             echo "local: *; };" >> $output_objdir/$libname.ver~
8749             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8750         fi
8751
8752         case $cc_basename in
8753         xlf* | bgf* | bgxlf* | mpixlf*)
8754           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8755           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8756           hardcode_libdir_flag_spec=
8757           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8758           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8759           if test "x$supports_anon_versioning" = xyes; then
8760             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8761               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8762               echo "local: *; };" >> $output_objdir/$libname.ver~
8763               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8764           fi
8765           ;;
8766         esac
8767       else
8768         ld_shlibs=no
8769       fi
8770       ;;
8771
8772     netbsd*)
8773       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8774         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8775         wlarc=
8776       else
8777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779       fi
8780       ;;
8781
8782     solaris*)
8783       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8784         ld_shlibs=no
8785         cat <<_LT_EOF 1>&2
8786
8787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8788 *** create shared libraries on Solaris systems.  Therefore, libtool
8789 *** is disabling shared libraries support.  We urge you to upgrade GNU
8790 *** binutils to release 2.9.1 or newer.  Another option is to modify
8791 *** your PATH or compiler configuration so that the native linker is
8792 *** used, and then restart.
8793
8794 _LT_EOF
8795       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8798       else
8799         ld_shlibs=no
8800       fi
8801       ;;
8802
8803     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8804       case `$LD -v 2>&1` in
8805         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8806         ld_shlibs=no
8807         cat <<_LT_EOF 1>&2
8808
8809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8810 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8811 *** is disabling shared libraries support.  We urge you to upgrade GNU
8812 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8813 *** your PATH or compiler configuration so that the native linker is
8814 *** used, and then restart.
8815
8816 _LT_EOF
8817         ;;
8818         *)
8819           # For security reasons, it is highly recommended that you always
8820           # use absolute paths for naming shared libraries, and exclude the
8821           # DT_RUNPATH tag from executables and libraries.  But doing so
8822           # requires that you compile everything twice, which is a pain.
8823           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8827           else
8828             ld_shlibs=no
8829           fi
8830         ;;
8831       esac
8832       ;;
8833
8834     sunos4*)
8835       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8836       wlarc=
8837       hardcode_direct=yes
8838       hardcode_shlibpath_var=no
8839       ;;
8840
8841     *)
8842       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8845       else
8846         ld_shlibs=no
8847       fi
8848       ;;
8849     esac
8850
8851     if test "$ld_shlibs" = no; then
8852       runpath_var=
8853       hardcode_libdir_flag_spec=
8854       export_dynamic_flag_spec=
8855       whole_archive_flag_spec=
8856     fi
8857   else
8858     # PORTME fill in a description of your system's linker (not GNU ld)
8859     case $host_os in
8860     aix3*)
8861       allow_undefined_flag=unsupported
8862       always_export_symbols=yes
8863       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'
8864       # Note: this linker hardcodes the directories in LIBPATH if there
8865       # are no directories specified by -L.
8866       hardcode_minus_L=yes
8867       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8868         # Neither direct hardcoding nor static linking is supported with a
8869         # broken collect2.
8870         hardcode_direct=unsupported
8871       fi
8872       ;;
8873
8874     aix[4-9]*)
8875       if test "$host_cpu" = ia64; then
8876         # On IA64, the linker does run time linking by default, so we don't
8877         # have to do anything special.
8878         aix_use_runtimelinking=no
8879         exp_sym_flag='-Bexport'
8880         no_entry_flag=""
8881       else
8882         # If we're using GNU nm, then we don't want the "-C" option.
8883         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8884         # Also, AIX nm treats weak defined symbols like other global
8885         # defined symbols, whereas GNU nm marks them as "W".
8886         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8887           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'
8888         else
8889           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'
8890         fi
8891         aix_use_runtimelinking=no
8892
8893         # Test if we are trying to use run time linking or normal
8894         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8895         # need to do runtime linking.
8896         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8897           for ld_flag in $LDFLAGS; do
8898           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8899             aix_use_runtimelinking=yes
8900             break
8901           fi
8902           done
8903           ;;
8904         esac
8905
8906         exp_sym_flag='-bexport'
8907         no_entry_flag='-bnoentry'
8908       fi
8909
8910       # When large executables or shared objects are built, AIX ld can
8911       # have problems creating the table of contents.  If linking a library
8912       # or program results in "error TOC overflow" add -mminimal-toc to
8913       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8914       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8915
8916       archive_cmds=''
8917       hardcode_direct=yes
8918       hardcode_direct_absolute=yes
8919       hardcode_libdir_separator=':'
8920       link_all_deplibs=yes
8921       file_list_spec='${wl}-f,'
8922
8923       if test "$GCC" = yes; then
8924         case $host_os in aix4.[012]|aix4.[012].*)
8925         # We only want to do this on AIX 4.2 and lower, the check
8926         # below for broken collect2 doesn't work under 4.3+
8927           collect2name=`${CC} -print-prog-name=collect2`
8928           if test -f "$collect2name" &&
8929            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8930           then
8931           # We have reworked collect2
8932           :
8933           else
8934           # We have old collect2
8935           hardcode_direct=unsupported
8936           # It fails to find uninstalled libraries when the uninstalled
8937           # path is not listed in the libpath.  Setting hardcode_minus_L
8938           # to unsupported forces relinking
8939           hardcode_minus_L=yes
8940           hardcode_libdir_flag_spec='-L$libdir'
8941           hardcode_libdir_separator=
8942           fi
8943           ;;
8944         esac
8945         shared_flag='-shared'
8946         if test "$aix_use_runtimelinking" = yes; then
8947           shared_flag="$shared_flag "'${wl}-G'
8948         fi
8949       else
8950         # not using gcc
8951         if test "$host_cpu" = ia64; then
8952         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8953         # chokes on -Wl,-G. The following line is correct:
8954           shared_flag='-G'
8955         else
8956           if test "$aix_use_runtimelinking" = yes; then
8957             shared_flag='${wl}-G'
8958           else
8959             shared_flag='${wl}-bM:SRE'
8960           fi
8961         fi
8962       fi
8963
8964       export_dynamic_flag_spec='${wl}-bexpall'
8965       # It seems that -bexpall does not export symbols beginning with
8966       # underscore (_), so it is better to generate a list of symbols to export.
8967       always_export_symbols=yes
8968       if test "$aix_use_runtimelinking" = yes; then
8969         # Warning - without using the other runtime loading flags (-brtl),
8970         # -berok will link without error, but may produce a broken library.
8971         allow_undefined_flag='-berok'
8972         # Determine the default libpath from the value encoded in an
8973         # empty executable.
8974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976
8977 int
8978 main ()
8979 {
8980
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 if ac_fn_c_try_link "$LINENO"; then :
8986
8987 lt_aix_libpath_sed='
8988     /Import File Strings/,/^$/ {
8989         /^0/ {
8990             s/^0  *\(.*\)$/\1/
8991             p
8992         }
8993     }'
8994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8995 # Check for a 64-bit object if we didn't find anything.
8996 if test -z "$aix_libpath"; then
8997   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8998 fi
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext \
9001     conftest$ac_exeext conftest.$ac_ext
9002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9003
9004         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9005         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"
9006       else
9007         if test "$host_cpu" = ia64; then
9008           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9009           allow_undefined_flag="-z nodefs"
9010           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"
9011         else
9012          # Determine the default libpath from the value encoded in an
9013          # empty executable.
9014          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h.  */
9016
9017 int
9018 main ()
9019 {
9020
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 if ac_fn_c_try_link "$LINENO"; then :
9026
9027 lt_aix_libpath_sed='
9028     /Import File Strings/,/^$/ {
9029         /^0/ {
9030             s/^0  *\(.*\)$/\1/
9031             p
9032         }
9033     }'
9034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9035 # Check for a 64-bit object if we didn't find anything.
9036 if test -z "$aix_libpath"; then
9037   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9038 fi
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext \
9041     conftest$ac_exeext conftest.$ac_ext
9042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9043
9044          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9045           # Warning - without using the other run time loading flags,
9046           # -berok will link without error, but may produce a broken library.
9047           no_undefined_flag=' ${wl}-bernotok'
9048           allow_undefined_flag=' ${wl}-berok'
9049           if test "$with_gnu_ld" = yes; then
9050             # We only use this code for GNU lds that support --whole-archive.
9051             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9052           else
9053             # Exported symbols can be pulled into shared objects from archives
9054             whole_archive_flag_spec='$convenience'
9055           fi
9056           archive_cmds_need_lc=yes
9057           # This is similar to how AIX traditionally builds its shared libraries.
9058           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'
9059         fi
9060       fi
9061       ;;
9062
9063     amigaos*)
9064       case $host_cpu in
9065       powerpc)
9066             # see comment about AmigaOS4 .so support
9067             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9068             archive_expsym_cmds=''
9069         ;;
9070       m68k)
9071             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)'
9072             hardcode_libdir_flag_spec='-L$libdir'
9073             hardcode_minus_L=yes
9074         ;;
9075       esac
9076       ;;
9077
9078     bsdi[45]*)
9079       export_dynamic_flag_spec=-rdynamic
9080       ;;
9081
9082     cygwin* | mingw* | pw32* | cegcc*)
9083       # When not using gcc, we currently assume that we are using
9084       # Microsoft Visual C++.
9085       # hardcode_libdir_flag_spec is actually meaningless, as there is
9086       # no search path for DLLs.
9087       hardcode_libdir_flag_spec=' '
9088       allow_undefined_flag=unsupported
9089       # Tell ltmain to make .lib files, not .a files.
9090       libext=lib
9091       # Tell ltmain to make .dll files, not .so files.
9092       shrext_cmds=".dll"
9093       # FIXME: Setting linknames here is a bad hack.
9094       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9095       # The linker will automatically build a .lib file if we build a DLL.
9096       old_archive_from_new_cmds='true'
9097       # FIXME: Should let the user specify the lib program.
9098       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9099       fix_srcfile_path='`cygpath -w "$srcfile"`'
9100       enable_shared_with_static_runtimes=yes
9101       ;;
9102
9103     darwin* | rhapsody*)
9104
9105
9106   archive_cmds_need_lc=no
9107   hardcode_direct=no
9108   hardcode_automatic=yes
9109   hardcode_shlibpath_var=unsupported
9110   if test "$lt_cv_ld_force_load" = "yes"; then
9111     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\"`'
9112   else
9113     whole_archive_flag_spec=''
9114   fi
9115   link_all_deplibs=yes
9116   allow_undefined_flag="$_lt_dar_allow_undefined"
9117   case $cc_basename in
9118      ifort*) _lt_dar_can_shared=yes ;;
9119      *) _lt_dar_can_shared=$GCC ;;
9120   esac
9121   if test "$_lt_dar_can_shared" = "yes"; then
9122     output_verbose_link_cmd=func_echo_all
9123     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9124     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9125     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}"
9126     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}"
9127
9128   else
9129   ld_shlibs=no
9130   fi
9131
9132       ;;
9133
9134     dgux*)
9135       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136       hardcode_libdir_flag_spec='-L$libdir'
9137       hardcode_shlibpath_var=no
9138       ;;
9139
9140     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9141     # support.  Future versions do this automatically, but an explicit c++rt0.o
9142     # does not break anything, and helps significantly (at the cost of a little
9143     # extra space).
9144     freebsd2.2*)
9145       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9146       hardcode_libdir_flag_spec='-R$libdir'
9147       hardcode_direct=yes
9148       hardcode_shlibpath_var=no
9149       ;;
9150
9151     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9152     freebsd2*)
9153       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9154       hardcode_direct=yes
9155       hardcode_minus_L=yes
9156       hardcode_shlibpath_var=no
9157       ;;
9158
9159     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9160     freebsd* | dragonfly*)
9161       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9162       hardcode_libdir_flag_spec='-R$libdir'
9163       hardcode_direct=yes
9164       hardcode_shlibpath_var=no
9165       ;;
9166
9167     hpux9*)
9168       if test "$GCC" = yes; then
9169         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'
9170       else
9171         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'
9172       fi
9173       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9174       hardcode_libdir_separator=:
9175       hardcode_direct=yes
9176
9177       # hardcode_minus_L: Not really in the search PATH,
9178       # but as the default location of the library.
9179       hardcode_minus_L=yes
9180       export_dynamic_flag_spec='${wl}-E'
9181       ;;
9182
9183     hpux10*)
9184       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9185         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9186       else
9187         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9188       fi
9189       if test "$with_gnu_ld" = no; then
9190         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9191         hardcode_libdir_flag_spec_ld='+b $libdir'
9192         hardcode_libdir_separator=:
9193         hardcode_direct=yes
9194         hardcode_direct_absolute=yes
9195         export_dynamic_flag_spec='${wl}-E'
9196         # hardcode_minus_L: Not really in the search PATH,
9197         # but as the default location of the library.
9198         hardcode_minus_L=yes
9199       fi
9200       ;;
9201
9202     hpux11*)
9203       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9204         case $host_cpu in
9205         hppa*64*)
9206           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9207           ;;
9208         ia64*)
9209           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9210           ;;
9211         *)
9212           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9213           ;;
9214         esac
9215       else
9216         case $host_cpu in
9217         hppa*64*)
9218           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9219           ;;
9220         ia64*)
9221           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9222           ;;
9223         *)
9224
9225           # Older versions of the 11.00 compiler do not understand -b yet
9226           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9227           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9228 $as_echo_n "checking if $CC understands -b... " >&6; }
9229 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9230   $as_echo_n "(cached) " >&6
9231 else
9232   lt_cv_prog_compiler__b=no
9233    save_LDFLAGS="$LDFLAGS"
9234    LDFLAGS="$LDFLAGS -b"
9235    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9236    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9237      # The linker can only warn and ignore the option if not recognized
9238      # So say no if there are warnings
9239      if test -s conftest.err; then
9240        # Append any errors to the config.log.
9241        cat conftest.err 1>&5
9242        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9243        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244        if diff conftest.exp conftest.er2 >/dev/null; then
9245          lt_cv_prog_compiler__b=yes
9246        fi
9247      else
9248        lt_cv_prog_compiler__b=yes
9249      fi
9250    fi
9251    $RM -r conftest*
9252    LDFLAGS="$save_LDFLAGS"
9253
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9256 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9257
9258 if test x"$lt_cv_prog_compiler__b" = xyes; then
9259     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9260 else
9261     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9262 fi
9263
9264           ;;
9265         esac
9266       fi
9267       if test "$with_gnu_ld" = no; then
9268         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9269         hardcode_libdir_separator=:
9270
9271         case $host_cpu in
9272         hppa*64*|ia64*)
9273           hardcode_direct=no
9274           hardcode_shlibpath_var=no
9275           ;;
9276         *)
9277           hardcode_direct=yes
9278           hardcode_direct_absolute=yes
9279           export_dynamic_flag_spec='${wl}-E'
9280
9281           # hardcode_minus_L: Not really in the search PATH,
9282           # but as the default location of the library.
9283           hardcode_minus_L=yes
9284           ;;
9285         esac
9286       fi
9287       ;;
9288
9289     irix5* | irix6* | nonstopux*)
9290       if test "$GCC" = yes; then
9291         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'
9292         # Try to use the -exported_symbol ld option, if it does not
9293         # work, assume that -exports_file does not work either and
9294         # implicitly export all symbols.
9295         save_LDFLAGS="$LDFLAGS"
9296         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9297         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h.  */
9299 int foo(void) {}
9300 _ACEOF
9301 if ac_fn_c_try_link "$LINENO"; then :
9302   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'
9303
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext \
9306     conftest$ac_exeext conftest.$ac_ext
9307         LDFLAGS="$save_LDFLAGS"
9308       else
9309         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'
9310         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'
9311       fi
9312       archive_cmds_need_lc='no'
9313       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314       hardcode_libdir_separator=:
9315       inherit_rpath=yes
9316       link_all_deplibs=yes
9317       ;;
9318
9319     netbsd*)
9320       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9322       else
9323         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9324       fi
9325       hardcode_libdir_flag_spec='-R$libdir'
9326       hardcode_direct=yes
9327       hardcode_shlibpath_var=no
9328       ;;
9329
9330     newsos6)
9331       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332       hardcode_direct=yes
9333       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334       hardcode_libdir_separator=:
9335       hardcode_shlibpath_var=no
9336       ;;
9337
9338     *nto* | *qnx*)
9339       ;;
9340
9341     openbsd*)
9342       if test -f /usr/libexec/ld.so; then
9343         hardcode_direct=yes
9344         hardcode_shlibpath_var=no
9345         hardcode_direct_absolute=yes
9346         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9347           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9348           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9349           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9350           export_dynamic_flag_spec='${wl}-E'
9351         else
9352           case $host_os in
9353            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9354              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9355              hardcode_libdir_flag_spec='-R$libdir'
9356              ;;
9357            *)
9358              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9359              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9360              ;;
9361           esac
9362         fi
9363       else
9364         ld_shlibs=no
9365       fi
9366       ;;
9367
9368     os2*)
9369       hardcode_libdir_flag_spec='-L$libdir'
9370       hardcode_minus_L=yes
9371       allow_undefined_flag=unsupported
9372       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'
9373       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9374       ;;
9375
9376     osf3*)
9377       if test "$GCC" = yes; then
9378         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9379         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'
9380       else
9381         allow_undefined_flag=' -expect_unresolved \*'
9382         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'
9383       fi
9384       archive_cmds_need_lc='no'
9385       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386       hardcode_libdir_separator=:
9387       ;;
9388
9389     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9390       if test "$GCC" = yes; then
9391         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9392         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'
9393         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394       else
9395         allow_undefined_flag=' -expect_unresolved \*'
9396         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'
9397         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~
9398         $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'
9399
9400         # Both c and cxx compiler support -rpath directly
9401         hardcode_libdir_flag_spec='-rpath $libdir'
9402       fi
9403       archive_cmds_need_lc='no'
9404       hardcode_libdir_separator=:
9405       ;;
9406
9407     solaris*)
9408       no_undefined_flag=' -z defs'
9409       if test "$GCC" = yes; then
9410         wlarc='${wl}'
9411         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9413           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9414       else
9415         case `$CC -V 2>&1` in
9416         *"Compilers 5.0"*)
9417           wlarc=''
9418           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9420           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9421           ;;
9422         *)
9423           wlarc='${wl}'
9424           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9425           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9426           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9427           ;;
9428         esac
9429       fi
9430       hardcode_libdir_flag_spec='-R$libdir'
9431       hardcode_shlibpath_var=no
9432       case $host_os in
9433       solaris2.[0-5] | solaris2.[0-5].*) ;;
9434       *)
9435         # The compiler driver will combine and reorder linker options,
9436         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9437         # but is careful enough not to reorder.
9438         # Supported since Solaris 2.6 (maybe 2.5.1?)
9439         if test "$GCC" = yes; then
9440           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9441         else
9442           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9443         fi
9444         ;;
9445       esac
9446       link_all_deplibs=yes
9447       ;;
9448
9449     sunos4*)
9450       if test "x$host_vendor" = xsequent; then
9451         # Use $CC to link under sequent, because it throws in some extra .o
9452         # files that make .init and .fini sections work.
9453         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9454       else
9455         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9456       fi
9457       hardcode_libdir_flag_spec='-L$libdir'
9458       hardcode_direct=yes
9459       hardcode_minus_L=yes
9460       hardcode_shlibpath_var=no
9461       ;;
9462
9463     sysv4)
9464       case $host_vendor in
9465         sni)
9466           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467           hardcode_direct=yes # is this really true???
9468         ;;
9469         siemens)
9470           ## LD is ld it makes a PLAMLIB
9471           ## CC just makes a GrossModule.
9472           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9473           reload_cmds='$CC -r -o $output$reload_objs'
9474           hardcode_direct=no
9475         ;;
9476         motorola)
9477           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9479         ;;
9480       esac
9481       runpath_var='LD_RUN_PATH'
9482       hardcode_shlibpath_var=no
9483       ;;
9484
9485     sysv4.3*)
9486       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487       hardcode_shlibpath_var=no
9488       export_dynamic_flag_spec='-Bexport'
9489       ;;
9490
9491     sysv4*MP*)
9492       if test -d /usr/nec; then
9493         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494         hardcode_shlibpath_var=no
9495         runpath_var=LD_RUN_PATH
9496         hardcode_runpath_var=yes
9497         ld_shlibs=yes
9498       fi
9499       ;;
9500
9501     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9502       no_undefined_flag='${wl}-z,text'
9503       archive_cmds_need_lc=no
9504       hardcode_shlibpath_var=no
9505       runpath_var='LD_RUN_PATH'
9506
9507       if test "$GCC" = yes; then
9508         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510       else
9511         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513       fi
9514       ;;
9515
9516     sysv5* | sco3.2v5* | sco5v6*)
9517       # Note: We can NOT use -z defs as we might desire, because we do not
9518       # link with -lc, and that would cause any symbols used from libc to
9519       # always be unresolved, which means just about no library would
9520       # ever link correctly.  If we're not using GNU ld we use -z text
9521       # though, which does catch some bad symbols but isn't as heavy-handed
9522       # as -z defs.
9523       no_undefined_flag='${wl}-z,text'
9524       allow_undefined_flag='${wl}-z,nodefs'
9525       archive_cmds_need_lc=no
9526       hardcode_shlibpath_var=no
9527       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9528       hardcode_libdir_separator=':'
9529       link_all_deplibs=yes
9530       export_dynamic_flag_spec='${wl}-Bexport'
9531       runpath_var='LD_RUN_PATH'
9532
9533       if test "$GCC" = yes; then
9534         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536       else
9537         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9539       fi
9540       ;;
9541
9542     uts4*)
9543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544       hardcode_libdir_flag_spec='-L$libdir'
9545       hardcode_shlibpath_var=no
9546       ;;
9547
9548     *)
9549       ld_shlibs=no
9550       ;;
9551     esac
9552
9553     if test x$host_vendor = xsni; then
9554       case $host in
9555       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9556         export_dynamic_flag_spec='${wl}-Blargedynsym'
9557         ;;
9558       esac
9559     fi
9560   fi
9561
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9563 $as_echo "$ld_shlibs" >&6; }
9564 test "$ld_shlibs" = no && can_build_shared=no
9565
9566 with_gnu_ld=$with_gnu_ld
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582 #
9583 # Do we need to explicitly link libc?
9584 #
9585 case "x$archive_cmds_need_lc" in
9586 x|xyes)
9587   # Assume -lc should be added
9588   archive_cmds_need_lc=yes
9589
9590   if test "$enable_shared" = yes && test "$GCC" = yes; then
9591     case $archive_cmds in
9592     *'~'*)
9593       # FIXME: we may have to deal with multi-command sequences.
9594       ;;
9595     '$CC '*)
9596       # Test whether the compiler implicitly links with -lc since on some
9597       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9598       # to ld, don't add -lc before -lgcc.
9599       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9600 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9601 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9602   $as_echo_n "(cached) " >&6
9603 else
9604   $RM conftest*
9605         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9606
9607         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9608   (eval $ac_compile) 2>&5
9609   ac_status=$?
9610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9611   test $ac_status = 0; } 2>conftest.err; then
9612           soname=conftest
9613           lib=conftest
9614           libobjs=conftest.$ac_objext
9615           deplibs=
9616           wl=$lt_prog_compiler_wl
9617           pic_flag=$lt_prog_compiler_pic
9618           compiler_flags=-v
9619           linker_flags=-v
9620           verstring=
9621           output_objdir=.
9622           libname=conftest
9623           lt_save_allow_undefined_flag=$allow_undefined_flag
9624           allow_undefined_flag=
9625           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9626   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9627   ac_status=$?
9628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9629   test $ac_status = 0; }
9630           then
9631             lt_cv_archive_cmds_need_lc=no
9632           else
9633             lt_cv_archive_cmds_need_lc=yes
9634           fi
9635           allow_undefined_flag=$lt_save_allow_undefined_flag
9636         else
9637           cat conftest.err 1>&5
9638         fi
9639         $RM conftest*
9640
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9643 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9644       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9645       ;;
9646     esac
9647   fi
9648   ;;
9649 esac
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9808 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9809
9810 if test "$GCC" = yes; then
9811   case $host_os in
9812     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9813     *) lt_awk_arg="/^libraries:/" ;;
9814   esac
9815   case $host_os in
9816     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9817     *) lt_sed_strip_eq="s,=/,/,g" ;;
9818   esac
9819   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9820   case $lt_search_path_spec in
9821   *\;*)
9822     # if the path contains ";" then we assume it to be the separator
9823     # otherwise default to the standard path separator (i.e. ":") - it is
9824     # assumed that no part of a normal pathname contains ";" but that should
9825     # okay in the real world where ";" in dirpaths is itself problematic.
9826     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9827     ;;
9828   *)
9829     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9830     ;;
9831   esac
9832   # Ok, now we have the path, separated by spaces, we can step through it
9833   # and add multilib dir if necessary.
9834   lt_tmp_lt_search_path_spec=
9835   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9836   for lt_sys_path in $lt_search_path_spec; do
9837     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9838       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9839     else
9840       test -d "$lt_sys_path" && \
9841         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9842     fi
9843   done
9844   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9845 BEGIN {RS=" "; FS="/|\n";} {
9846   lt_foo="";
9847   lt_count=0;
9848   for (lt_i = NF; lt_i > 0; lt_i--) {
9849     if ($lt_i != "" && $lt_i != ".") {
9850       if ($lt_i == "..") {
9851         lt_count++;
9852       } else {
9853         if (lt_count == 0) {
9854           lt_foo="/" $lt_i lt_foo;
9855         } else {
9856           lt_count--;
9857         }
9858       }
9859     }
9860   }
9861   if (lt_foo != "") { lt_freq[lt_foo]++; }
9862   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9863 }'`
9864   # AWK program above erroneously prepends '/' to C:/dos/paths
9865   # for these hosts.
9866   case $host_os in
9867     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9868       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9869   esac
9870   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9871 else
9872   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9873 fi
9874 library_names_spec=
9875 libname_spec='lib$name'
9876 soname_spec=
9877 shrext_cmds=".so"
9878 postinstall_cmds=
9879 postuninstall_cmds=
9880 finish_cmds=
9881 finish_eval=
9882 shlibpath_var=
9883 shlibpath_overrides_runpath=unknown
9884 version_type=none
9885 dynamic_linker="$host_os ld.so"
9886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9887 need_lib_prefix=unknown
9888 hardcode_into_libs=no
9889
9890 # when you set need_version to no, make sure it does not cause -set_version
9891 # flags to be left without arguments
9892 need_version=unknown
9893
9894 case $host_os in
9895 aix3*)
9896   version_type=linux
9897   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9898   shlibpath_var=LIBPATH
9899
9900   # AIX 3 has no versioning support, so we append a major version to the name.
9901   soname_spec='${libname}${release}${shared_ext}$major'
9902   ;;
9903
9904 aix[4-9]*)
9905   version_type=linux
9906   need_lib_prefix=no
9907   need_version=no
9908   hardcode_into_libs=yes
9909   if test "$host_cpu" = ia64; then
9910     # AIX 5 supports IA64
9911     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9912     shlibpath_var=LD_LIBRARY_PATH
9913   else
9914     # With GCC up to 2.95.x, collect2 would create an import file
9915     # for dependence libraries.  The import file would start with
9916     # the line `#! .'.  This would cause the generated library to
9917     # depend on `.', always an invalid library.  This was fixed in
9918     # development snapshots of GCC prior to 3.0.
9919     case $host_os in
9920       aix4 | aix4.[01] | aix4.[01].*)
9921       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9922            echo ' yes '
9923            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9924         :
9925       else
9926         can_build_shared=no
9927       fi
9928       ;;
9929     esac
9930     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9931     # soname into executable. Probably we can add versioning support to
9932     # collect2, so additional links can be useful in future.
9933     if test "$aix_use_runtimelinking" = yes; then
9934       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9935       # instead of lib<name>.a to let people know that these are not
9936       # typical AIX shared libraries.
9937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938     else
9939       # We preserve .a as extension for shared libraries through AIX4.2
9940       # and later when we are not doing run time linking.
9941       library_names_spec='${libname}${release}.a $libname.a'
9942       soname_spec='${libname}${release}${shared_ext}$major'
9943     fi
9944     shlibpath_var=LIBPATH
9945   fi
9946   ;;
9947
9948 amigaos*)
9949   case $host_cpu in
9950   powerpc)
9951     # Since July 2007 AmigaOS4 officially supports .so libraries.
9952     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954     ;;
9955   m68k)
9956     library_names_spec='$libname.ixlibrary $libname.a'
9957     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9958     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'
9959     ;;
9960   esac
9961   ;;
9962
9963 beos*)
9964   library_names_spec='${libname}${shared_ext}'
9965   dynamic_linker="$host_os ld.so"
9966   shlibpath_var=LIBRARY_PATH
9967   ;;
9968
9969 bsdi[45]*)
9970   version_type=linux
9971   need_version=no
9972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973   soname_spec='${libname}${release}${shared_ext}$major'
9974   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9975   shlibpath_var=LD_LIBRARY_PATH
9976   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9977   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9978   # the default ld.so.conf also contains /usr/contrib/lib and
9979   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9980   # libtool to hard-code these into programs
9981   ;;
9982
9983 cygwin* | mingw* | pw32* | cegcc*)
9984   version_type=windows
9985   shrext_cmds=".dll"
9986   need_version=no
9987   need_lib_prefix=no
9988
9989   case $GCC,$host_os in
9990   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9991     library_names_spec='$libname.dll.a'
9992     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9993     postinstall_cmds='base_file=`basename \${file}`~
9994       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9995       dldir=$destdir/`dirname \$dlpath`~
9996       test -d \$dldir || mkdir -p \$dldir~
9997       $install_prog $dir/$dlname \$dldir/$dlname~
9998       chmod a+x \$dldir/$dlname~
9999       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10000         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10001       fi'
10002     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10003       dlpath=$dir/\$dldll~
10004        $RM \$dlpath'
10005     shlibpath_overrides_runpath=yes
10006
10007     case $host_os in
10008     cygwin*)
10009       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10010       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10011
10012       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10013       ;;
10014     mingw* | cegcc*)
10015       # MinGW DLLs use traditional 'lib' prefix
10016       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10017       ;;
10018     pw32*)
10019       # pw32 DLLs use 'pw' prefix rather than 'lib'
10020       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021       ;;
10022     esac
10023     ;;
10024
10025   *)
10026     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10027     ;;
10028   esac
10029   dynamic_linker='Win32 ld.exe'
10030   # FIXME: first we should search . and the directory the executable is in
10031   shlibpath_var=PATH
10032   ;;
10033
10034 darwin* | rhapsody*)
10035   dynamic_linker="$host_os dyld"
10036   version_type=darwin
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10040   soname_spec='${libname}${release}${major}$shared_ext'
10041   shlibpath_overrides_runpath=yes
10042   shlibpath_var=DYLD_LIBRARY_PATH
10043   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10044
10045   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10046   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10047   ;;
10048
10049 dgux*)
10050   version_type=linux
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10054   soname_spec='${libname}${release}${shared_ext}$major'
10055   shlibpath_var=LD_LIBRARY_PATH
10056   ;;
10057
10058 freebsd* | dragonfly*)
10059   # DragonFly does not have aout.  When/if they implement a new
10060   # versioning mechanism, adjust this.
10061   if test -x /usr/bin/objformat; then
10062     objformat=`/usr/bin/objformat`
10063   else
10064     case $host_os in
10065     freebsd[123]*) objformat=aout ;;
10066     *) objformat=elf ;;
10067     esac
10068   fi
10069   version_type=freebsd-$objformat
10070   case $version_type in
10071     freebsd-elf*)
10072       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10073       need_version=no
10074       need_lib_prefix=no
10075       ;;
10076     freebsd-*)
10077       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10078       need_version=yes
10079       ;;
10080   esac
10081   shlibpath_var=LD_LIBRARY_PATH
10082   case $host_os in
10083   freebsd2*)
10084     shlibpath_overrides_runpath=yes
10085     ;;
10086   freebsd3.[01]* | freebsdelf3.[01]*)
10087     shlibpath_overrides_runpath=yes
10088     hardcode_into_libs=yes
10089     ;;
10090   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10091   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10092     shlibpath_overrides_runpath=no
10093     hardcode_into_libs=yes
10094     ;;
10095   *) # from 4.6 on, and DragonFly
10096     shlibpath_overrides_runpath=yes
10097     hardcode_into_libs=yes
10098     ;;
10099   esac
10100   ;;
10101
10102 gnu*)
10103   version_type=linux
10104   need_lib_prefix=no
10105   need_version=no
10106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10107   soname_spec='${libname}${release}${shared_ext}$major'
10108   shlibpath_var=LD_LIBRARY_PATH
10109   hardcode_into_libs=yes
10110   ;;
10111
10112 haiku*)
10113   version_type=linux
10114   need_lib_prefix=no
10115   need_version=no
10116   dynamic_linker="$host_os runtime_loader"
10117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10118   soname_spec='${libname}${release}${shared_ext}$major'
10119   shlibpath_var=LIBRARY_PATH
10120   shlibpath_overrides_runpath=yes
10121   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10122   hardcode_into_libs=yes
10123   ;;
10124
10125 hpux9* | hpux10* | hpux11*)
10126   # Give a soname corresponding to the major version so that dld.sl refuses to
10127   # link against other versions.
10128   version_type=sunos
10129   need_lib_prefix=no
10130   need_version=no
10131   case $host_cpu in
10132   ia64*)
10133     shrext_cmds='.so'
10134     hardcode_into_libs=yes
10135     dynamic_linker="$host_os dld.so"
10136     shlibpath_var=LD_LIBRARY_PATH
10137     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139     soname_spec='${libname}${release}${shared_ext}$major'
10140     if test "X$HPUX_IA64_MODE" = X32; then
10141       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10142     else
10143       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10144     fi
10145     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10146     ;;
10147   hppa*64*)
10148     shrext_cmds='.sl'
10149     hardcode_into_libs=yes
10150     dynamic_linker="$host_os dld.sl"
10151     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10152     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154     soname_spec='${libname}${release}${shared_ext}$major'
10155     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10156     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10157     ;;
10158   *)
10159     shrext_cmds='.sl'
10160     dynamic_linker="$host_os dld.sl"
10161     shlibpath_var=SHLIB_PATH
10162     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
10166   esac
10167   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10168   postinstall_cmds='chmod 555 $lib'
10169   # or fails outright, so override atomically:
10170   install_override_mode=555
10171   ;;
10172
10173 interix[3-9]*)
10174   version_type=linux
10175   need_lib_prefix=no
10176   need_version=no
10177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10178   soname_spec='${libname}${release}${shared_ext}$major'
10179   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10180   shlibpath_var=LD_LIBRARY_PATH
10181   shlibpath_overrides_runpath=no
10182   hardcode_into_libs=yes
10183   ;;
10184
10185 irix5* | irix6* | nonstopux*)
10186   case $host_os in
10187     nonstopux*) version_type=nonstopux ;;
10188     *)
10189         if test "$lt_cv_prog_gnu_ld" = yes; then
10190                 version_type=linux
10191         else
10192                 version_type=irix
10193         fi ;;
10194   esac
10195   need_lib_prefix=no
10196   need_version=no
10197   soname_spec='${libname}${release}${shared_ext}$major'
10198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10199   case $host_os in
10200   irix5* | nonstopux*)
10201     libsuff= shlibsuff=
10202     ;;
10203   *)
10204     case $LD in # libtool.m4 will add one of these switches to LD
10205     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10206       libsuff= shlibsuff= libmagic=32-bit;;
10207     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10208       libsuff=32 shlibsuff=N32 libmagic=N32;;
10209     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10210       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10211     *) libsuff= shlibsuff= libmagic=never-match;;
10212     esac
10213     ;;
10214   esac
10215   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10216   shlibpath_overrides_runpath=no
10217   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10218   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10219   hardcode_into_libs=yes
10220   ;;
10221
10222 # No shared lib support for Linux oldld, aout, or coff.
10223 linux*oldld* | linux*aout* | linux*coff*)
10224   dynamic_linker=no
10225   ;;
10226
10227 # This must be Linux ELF.
10228 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10229   version_type=linux
10230   need_lib_prefix=no
10231   need_version=no
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233   soname_spec='${libname}${release}${shared_ext}$major'
10234   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10235   shlibpath_var=LD_LIBRARY_PATH
10236   shlibpath_overrides_runpath=no
10237
10238   # Some binutils ld are patched to set DT_RUNPATH
10239   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10240   $as_echo_n "(cached) " >&6
10241 else
10242   lt_cv_shlibpath_overrides_runpath=no
10243     save_LDFLAGS=$LDFLAGS
10244     save_libdir=$libdir
10245     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10246          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h.  */
10249
10250 int
10251 main ()
10252 {
10253
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 if ac_fn_c_try_link "$LINENO"; then :
10259   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10260   lt_cv_shlibpath_overrides_runpath=yes
10261 fi
10262 fi
10263 rm -f core conftest.err conftest.$ac_objext \
10264     conftest$ac_exeext conftest.$ac_ext
10265     LDFLAGS=$save_LDFLAGS
10266     libdir=$save_libdir
10267
10268 fi
10269
10270   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10271
10272   # This implies no fast_install, which is unacceptable.
10273   # Some rework will be needed to allow for fast_install
10274   # before this can be enabled.
10275   hardcode_into_libs=yes
10276
10277   # Append ld.so.conf contents to the search path
10278   if test -f /etc/ld.so.conf; then
10279     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' ' '`
10280     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10281   fi
10282
10283   # We used to test for /lib/ld.so.1 and disable shared libraries on
10284   # powerpc, because MkLinux only supported shared libraries with the
10285   # GNU dynamic linker.  Since this was broken with cross compilers,
10286   # most powerpc-linux boxes support dynamic linking these days and
10287   # people can always --disable-shared, the test was removed, and we
10288   # assume the GNU/Linux dynamic linker is in use.
10289   dynamic_linker='GNU/Linux ld.so'
10290   ;;
10291
10292 netbsd*)
10293   version_type=sunos
10294   need_lib_prefix=no
10295   need_version=no
10296   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10298     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10299     dynamic_linker='NetBSD (a.out) ld.so'
10300   else
10301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10302     soname_spec='${libname}${release}${shared_ext}$major'
10303     dynamic_linker='NetBSD ld.elf_so'
10304   fi
10305   shlibpath_var=LD_LIBRARY_PATH
10306   shlibpath_overrides_runpath=yes
10307   hardcode_into_libs=yes
10308   ;;
10309
10310 newsos6)
10311   version_type=linux
10312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313   shlibpath_var=LD_LIBRARY_PATH
10314   shlibpath_overrides_runpath=yes
10315   ;;
10316
10317 *nto* | *qnx*)
10318   version_type=qnx
10319   need_lib_prefix=no
10320   need_version=no
10321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322   soname_spec='${libname}${release}${shared_ext}$major'
10323   shlibpath_var=LD_LIBRARY_PATH
10324   shlibpath_overrides_runpath=no
10325   hardcode_into_libs=yes
10326   dynamic_linker='ldqnx.so'
10327   ;;
10328
10329 openbsd*)
10330   version_type=sunos
10331   sys_lib_dlsearch_path_spec="/usr/lib"
10332   need_lib_prefix=no
10333   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10334   case $host_os in
10335     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10336     *)                          need_version=no  ;;
10337   esac
10338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10339   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10340   shlibpath_var=LD_LIBRARY_PATH
10341   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10342     case $host_os in
10343       openbsd2.[89] | openbsd2.[89].*)
10344         shlibpath_overrides_runpath=no
10345         ;;
10346       *)
10347         shlibpath_overrides_runpath=yes
10348         ;;
10349       esac
10350   else
10351     shlibpath_overrides_runpath=yes
10352   fi
10353   ;;
10354
10355 os2*)
10356   libname_spec='$name'
10357   shrext_cmds=".dll"
10358   need_lib_prefix=no
10359   library_names_spec='$libname${shared_ext} $libname.a'
10360   dynamic_linker='OS/2 ld.exe'
10361   shlibpath_var=LIBPATH
10362   ;;
10363
10364 osf3* | osf4* | osf5*)
10365   version_type=osf
10366   need_lib_prefix=no
10367   need_version=no
10368   soname_spec='${libname}${release}${shared_ext}$major'
10369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370   shlibpath_var=LD_LIBRARY_PATH
10371   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10372   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10373   ;;
10374
10375 rdos*)
10376   dynamic_linker=no
10377   ;;
10378
10379 solaris*)
10380   version_type=linux
10381   need_lib_prefix=no
10382   need_version=no
10383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384   soname_spec='${libname}${release}${shared_ext}$major'
10385   shlibpath_var=LD_LIBRARY_PATH
10386   shlibpath_overrides_runpath=yes
10387   hardcode_into_libs=yes
10388   # ldd complains unless libraries are executable
10389   postinstall_cmds='chmod +x $lib'
10390   ;;
10391
10392 sunos4*)
10393   version_type=sunos
10394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10395   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10396   shlibpath_var=LD_LIBRARY_PATH
10397   shlibpath_overrides_runpath=yes
10398   if test "$with_gnu_ld" = yes; then
10399     need_lib_prefix=no
10400   fi
10401   need_version=yes
10402   ;;
10403
10404 sysv4 | sysv4.3*)
10405   version_type=linux
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   shlibpath_var=LD_LIBRARY_PATH
10409   case $host_vendor in
10410     sni)
10411       shlibpath_overrides_runpath=no
10412       need_lib_prefix=no
10413       runpath_var=LD_RUN_PATH
10414       ;;
10415     siemens)
10416       need_lib_prefix=no
10417       ;;
10418     motorola)
10419       need_lib_prefix=no
10420       need_version=no
10421       shlibpath_overrides_runpath=no
10422       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10423       ;;
10424   esac
10425   ;;
10426
10427 sysv4*MP*)
10428   if test -d /usr/nec ;then
10429     version_type=linux
10430     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10431     soname_spec='$libname${shared_ext}.$major'
10432     shlibpath_var=LD_LIBRARY_PATH
10433   fi
10434   ;;
10435
10436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10437   version_type=freebsd-elf
10438   need_lib_prefix=no
10439   need_version=no
10440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10441   soname_spec='${libname}${release}${shared_ext}$major'
10442   shlibpath_var=LD_LIBRARY_PATH
10443   shlibpath_overrides_runpath=yes
10444   hardcode_into_libs=yes
10445   if test "$with_gnu_ld" = yes; then
10446     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10447   else
10448     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10449     case $host_os in
10450       sco3.2v5*)
10451         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10452         ;;
10453     esac
10454   fi
10455   sys_lib_dlsearch_path_spec='/usr/lib'
10456   ;;
10457
10458 tpf*)
10459   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10460   version_type=linux
10461   need_lib_prefix=no
10462   need_version=no
10463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464   shlibpath_var=LD_LIBRARY_PATH
10465   shlibpath_overrides_runpath=no
10466   hardcode_into_libs=yes
10467   ;;
10468
10469 uts4*)
10470   version_type=linux
10471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472   soname_spec='${libname}${release}${shared_ext}$major'
10473   shlibpath_var=LD_LIBRARY_PATH
10474   ;;
10475
10476 *)
10477   dynamic_linker=no
10478   ;;
10479 esac
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10481 $as_echo "$dynamic_linker" >&6; }
10482 test "$dynamic_linker" = no && can_build_shared=no
10483
10484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10485 if test "$GCC" = yes; then
10486   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10487 fi
10488
10489 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10490   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10491 fi
10492 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10493   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10494 fi
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10588 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10589 hardcode_action=
10590 if test -n "$hardcode_libdir_flag_spec" ||
10591    test -n "$runpath_var" ||
10592    test "X$hardcode_automatic" = "Xyes" ; then
10593
10594   # We can hardcode non-existent directories.
10595   if test "$hardcode_direct" != no &&
10596      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10597      # have to relink, otherwise we might link with an installed library
10598      # when we should be linking with a yet-to-be-installed one
10599      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10600      test "$hardcode_minus_L" != no; then
10601     # Linking always hardcodes the temporary library directory.
10602     hardcode_action=relink
10603   else
10604     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10605     hardcode_action=immediate
10606   fi
10607 else
10608   # We cannot hardcode anything, or else we can only hardcode existing
10609   # directories.
10610   hardcode_action=unsupported
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10613 $as_echo "$hardcode_action" >&6; }
10614
10615 if test "$hardcode_action" = relink ||
10616    test "$inherit_rpath" = yes; then
10617   # Fast installation is not supported
10618   enable_fast_install=no
10619 elif test "$shlibpath_overrides_runpath" = yes ||
10620      test "$enable_shared" = no; then
10621   # Fast installation is not necessary
10622   enable_fast_install=needless
10623 fi
10624
10625
10626
10627
10628
10629
10630   if test "x$enable_dlopen" != xyes; then
10631   enable_dlopen=unknown
10632   enable_dlopen_self=unknown
10633   enable_dlopen_self_static=unknown
10634 else
10635   lt_cv_dlopen=no
10636   lt_cv_dlopen_libs=
10637
10638   case $host_os in
10639   beos*)
10640     lt_cv_dlopen="load_add_on"
10641     lt_cv_dlopen_libs=
10642     lt_cv_dlopen_self=yes
10643     ;;
10644
10645   mingw* | pw32* | cegcc*)
10646     lt_cv_dlopen="LoadLibrary"
10647     lt_cv_dlopen_libs=
10648     ;;
10649
10650   cygwin*)
10651     lt_cv_dlopen="dlopen"
10652     lt_cv_dlopen_libs=
10653     ;;
10654
10655   darwin*)
10656   # if libdl is installed we need to link against it
10657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10658 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-ldl  $LIBS"
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h.  */
10666
10667 /* Override any GCC internal prototype to avoid an error.
10668    Use char because int might match the return type of a GCC
10669    builtin and then its argument prototype would still apply.  */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char dlopen ();
10674 int
10675 main ()
10676 {
10677 return dlopen ();
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_link "$LINENO"; then :
10683   ac_cv_lib_dl_dlopen=yes
10684 else
10685   ac_cv_lib_dl_dlopen=no
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext \
10688     conftest$ac_exeext conftest.$ac_ext
10689 LIBS=$ac_check_lib_save_LIBS
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10692 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10693 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10694   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10695 else
10696
10697     lt_cv_dlopen="dyld"
10698     lt_cv_dlopen_libs=
10699     lt_cv_dlopen_self=yes
10700
10701 fi
10702
10703     ;;
10704
10705   *)
10706     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10707 if test "x$ac_cv_func_shl_load" = x""yes; then :
10708   lt_cv_dlopen="shl_load"
10709 else
10710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10711 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10712 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10713   $as_echo_n "(cached) " >&6
10714 else
10715   ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-ldld  $LIBS"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h.  */
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721    Use char because int might match the return type of a GCC
10722    builtin and then its argument prototype would still apply.  */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char shl_load ();
10727 int
10728 main ()
10729 {
10730 return shl_load ();
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736   ac_cv_lib_dld_shl_load=yes
10737 else
10738   ac_cv_lib_dld_shl_load=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741     conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10745 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10746 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10747   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10748 else
10749   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10750 if test "x$ac_cv_func_dlopen" = x""yes; then :
10751   lt_cv_dlopen="dlopen"
10752 else
10753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10755 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10756   $as_echo_n "(cached) " >&6
10757 else
10758   ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-ldl  $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h.  */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764    Use char because int might match the return type of a GCC
10765    builtin and then its argument prototype would still apply.  */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char dlopen ();
10770 int
10771 main ()
10772 {
10773 return dlopen ();
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779   ac_cv_lib_dl_dlopen=yes
10780 else
10781   ac_cv_lib_dl_dlopen=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10789 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10790   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10791 else
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10793 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10794 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-lsvld  $LIBS"
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h.  */
10801
10802 /* Override any GCC internal prototype to avoid an error.
10803    Use char because int might match the return type of a GCC
10804    builtin and then its argument prototype would still apply.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char dlopen ();
10809 int
10810 main ()
10811 {
10812 return dlopen ();
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10818   ac_cv_lib_svld_dlopen=yes
10819 else
10820   ac_cv_lib_svld_dlopen=no
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823     conftest$ac_exeext conftest.$ac_ext
10824 LIBS=$ac_check_lib_save_LIBS
10825 fi
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10827 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10828 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10830 else
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10832 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10833 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10834   $as_echo_n "(cached) " >&6
10835 else
10836   ac_check_lib_save_LIBS=$LIBS
10837 LIBS="-ldld  $LIBS"
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h.  */
10840
10841 /* Override any GCC internal prototype to avoid an error.
10842    Use char because int might match the return type of a GCC
10843    builtin and then its argument prototype would still apply.  */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 char dld_link ();
10848 int
10849 main ()
10850 {
10851 return dld_link ();
10852   ;
10853   return 0;
10854 }
10855 _ACEOF
10856 if ac_fn_c_try_link "$LINENO"; then :
10857   ac_cv_lib_dld_dld_link=yes
10858 else
10859   ac_cv_lib_dld_dld_link=no
10860 fi
10861 rm -f core conftest.err conftest.$ac_objext \
10862     conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10864 fi
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10866 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10867 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10868   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10869 fi
10870
10871
10872 fi
10873
10874
10875 fi
10876
10877
10878 fi
10879
10880
10881 fi
10882
10883
10884 fi
10885
10886     ;;
10887   esac
10888
10889   if test "x$lt_cv_dlopen" != xno; then
10890     enable_dlopen=yes
10891   else
10892     enable_dlopen=no
10893   fi
10894
10895   case $lt_cv_dlopen in
10896   dlopen)
10897     save_CPPFLAGS="$CPPFLAGS"
10898     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10899
10900     save_LDFLAGS="$LDFLAGS"
10901     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10902
10903     save_LIBS="$LIBS"
10904     LIBS="$lt_cv_dlopen_libs $LIBS"
10905
10906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10907 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10908 if test "${lt_cv_dlopen_self+set}" = set; then :
10909   $as_echo_n "(cached) " >&6
10910 else
10911           if test "$cross_compiling" = yes; then :
10912   lt_cv_dlopen_self=cross
10913 else
10914   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10915   lt_status=$lt_dlunknown
10916   cat > conftest.$ac_ext <<_LT_EOF
10917 #line 10917 "configure"
10918 #include "confdefs.h"
10919
10920 #if HAVE_DLFCN_H
10921 #include <dlfcn.h>
10922 #endif
10923
10924 #include <stdio.h>
10925
10926 #ifdef RTLD_GLOBAL
10927 #  define LT_DLGLOBAL           RTLD_GLOBAL
10928 #else
10929 #  ifdef DL_GLOBAL
10930 #    define LT_DLGLOBAL         DL_GLOBAL
10931 #  else
10932 #    define LT_DLGLOBAL         0
10933 #  endif
10934 #endif
10935
10936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10937    find out it does not work in some platform. */
10938 #ifndef LT_DLLAZY_OR_NOW
10939 #  ifdef RTLD_LAZY
10940 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10941 #  else
10942 #    ifdef DL_LAZY
10943 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10944 #    else
10945 #      ifdef RTLD_NOW
10946 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10947 #      else
10948 #        ifdef DL_NOW
10949 #          define LT_DLLAZY_OR_NOW      DL_NOW
10950 #        else
10951 #          define LT_DLLAZY_OR_NOW      0
10952 #        endif
10953 #      endif
10954 #    endif
10955 #  endif
10956 #endif
10957
10958 /* When -fvisbility=hidden is used, assume the code has been annotated
10959    correspondingly for the symbols needed.  */
10960 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10961 void fnord () __attribute__((visibility("default")));
10962 #endif
10963
10964 void fnord () { int i=42; }
10965 int main ()
10966 {
10967   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10968   int status = $lt_dlunknown;
10969
10970   if (self)
10971     {
10972       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10973       else
10974         {
10975           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10976           else puts (dlerror ());
10977         }
10978       /* dlclose (self); */
10979     }
10980   else
10981     puts (dlerror ());
10982
10983   return status;
10984 }
10985 _LT_EOF
10986   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10987   (eval $ac_link) 2>&5
10988   ac_status=$?
10989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10990   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10991     (./conftest; exit; ) >&5 2>/dev/null
10992     lt_status=$?
10993     case x$lt_status in
10994       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10995       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10996       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10997     esac
10998   else :
10999     # compilation failed
11000     lt_cv_dlopen_self=no
11001   fi
11002 fi
11003 rm -fr conftest*
11004
11005
11006 fi
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11008 $as_echo "$lt_cv_dlopen_self" >&6; }
11009
11010     if test "x$lt_cv_dlopen_self" = xyes; then
11011       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11013 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11014 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017           if test "$cross_compiling" = yes; then :
11018   lt_cv_dlopen_self_static=cross
11019 else
11020   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11021   lt_status=$lt_dlunknown
11022   cat > conftest.$ac_ext <<_LT_EOF
11023 #line 11023 "configure"
11024 #include "confdefs.h"
11025
11026 #if HAVE_DLFCN_H
11027 #include <dlfcn.h>
11028 #endif
11029
11030 #include <stdio.h>
11031
11032 #ifdef RTLD_GLOBAL
11033 #  define LT_DLGLOBAL           RTLD_GLOBAL
11034 #else
11035 #  ifdef DL_GLOBAL
11036 #    define LT_DLGLOBAL         DL_GLOBAL
11037 #  else
11038 #    define LT_DLGLOBAL         0
11039 #  endif
11040 #endif
11041
11042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11043    find out it does not work in some platform. */
11044 #ifndef LT_DLLAZY_OR_NOW
11045 #  ifdef RTLD_LAZY
11046 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11047 #  else
11048 #    ifdef DL_LAZY
11049 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11050 #    else
11051 #      ifdef RTLD_NOW
11052 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11053 #      else
11054 #        ifdef DL_NOW
11055 #          define LT_DLLAZY_OR_NOW      DL_NOW
11056 #        else
11057 #          define LT_DLLAZY_OR_NOW      0
11058 #        endif
11059 #      endif
11060 #    endif
11061 #  endif
11062 #endif
11063
11064 /* When -fvisbility=hidden is used, assume the code has been annotated
11065    correspondingly for the symbols needed.  */
11066 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11067 void fnord () __attribute__((visibility("default")));
11068 #endif
11069
11070 void fnord () { int i=42; }
11071 int main ()
11072 {
11073   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11074   int status = $lt_dlunknown;
11075
11076   if (self)
11077     {
11078       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11079       else
11080         {
11081           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11082           else puts (dlerror ());
11083         }
11084       /* dlclose (self); */
11085     }
11086   else
11087     puts (dlerror ());
11088
11089   return status;
11090 }
11091 _LT_EOF
11092   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11093   (eval $ac_link) 2>&5
11094   ac_status=$?
11095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11097     (./conftest; exit; ) >&5 2>/dev/null
11098     lt_status=$?
11099     case x$lt_status in
11100       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11101       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11102       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11103     esac
11104   else :
11105     # compilation failed
11106     lt_cv_dlopen_self_static=no
11107   fi
11108 fi
11109 rm -fr conftest*
11110
11111
11112 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11114 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11115     fi
11116
11117     CPPFLAGS="$save_CPPFLAGS"
11118     LDFLAGS="$save_LDFLAGS"
11119     LIBS="$save_LIBS"
11120     ;;
11121   esac
11122
11123   case $lt_cv_dlopen_self in
11124   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11125   *) enable_dlopen_self=unknown ;;
11126   esac
11127
11128   case $lt_cv_dlopen_self_static in
11129   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11130   *) enable_dlopen_self_static=unknown ;;
11131   esac
11132 fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150 striplib=
11151 old_striplib=
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11153 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11154 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11155   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11156   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11158 $as_echo "yes" >&6; }
11159 else
11160 # FIXME - insert some real tests, host_os isn't really good enough
11161   case $host_os in
11162   darwin*)
11163     if test -n "$STRIP" ; then
11164       striplib="$STRIP -x"
11165       old_striplib="$STRIP -S"
11166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11168     else
11169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; }
11171     fi
11172     ;;
11173   *)
11174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11176     ;;
11177   esac
11178 fi
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191   # Report which library types will actually be built
11192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11193 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11195 $as_echo "$can_build_shared" >&6; }
11196
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11198 $as_echo_n "checking whether to build shared libraries... " >&6; }
11199   test "$can_build_shared" = "no" && enable_shared=no
11200
11201   # On AIX, shared libraries and static libraries use the same namespace, and
11202   # are all built from PIC.
11203   case $host_os in
11204   aix3*)
11205     test "$enable_shared" = yes && enable_static=no
11206     if test -n "$RANLIB"; then
11207       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11208       postinstall_cmds='$RANLIB $lib'
11209     fi
11210     ;;
11211
11212   aix[4-9]*)
11213     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11214       test "$enable_shared" = yes && enable_static=no
11215     fi
11216     ;;
11217   esac
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11219 $as_echo "$enable_shared" >&6; }
11220
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11222 $as_echo_n "checking whether to build static libraries... " >&6; }
11223   # Make sure either enable_shared or enable_static is yes.
11224   test "$enable_shared" = yes || enable_static=yes
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11226 $as_echo "$enable_static" >&6; }
11227
11228
11229
11230
11231 fi
11232 ac_ext=c
11233 ac_cpp='$CPP $CPPFLAGS'
11234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11237
11238 CC="$lt_save_CC"
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 # Source file extension for Go test sources.
11253 ac_ext=go
11254
11255 # Object file extension for compiled Go test sources.
11256 objext=o
11257 objext_GO=$objext
11258
11259 # Code to be used in simple compile tests
11260 lt_simple_compile_test_code="package main; func main() { }"
11261
11262 # Code to be used in simple link tests
11263 lt_simple_link_test_code='package main; func main() { }'
11264
11265 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11266
11267
11268
11269
11270
11271
11272 # If no C compiler was specified, use CC.
11273 LTCC=${LTCC-"$CC"}
11274
11275 # If no C compiler flags were specified, use CFLAGS.
11276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11277
11278 # Allow CC to be a program name with arguments.
11279 compiler=$CC
11280
11281
11282 # save warnings/boilerplate of simple test code
11283 ac_outfile=conftest.$ac_objext
11284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11286 _lt_compiler_boilerplate=`cat conftest.err`
11287 $RM conftest*
11288
11289 ac_outfile=conftest.$ac_objext
11290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11292 _lt_linker_boilerplate=`cat conftest.err`
11293 $RM -r conftest*
11294
11295
11296 # Allow CC to be a program name with arguments.
11297 lt_save_CC="$CC"
11298 lt_save_GCC="$GCC"
11299 GCC=yes
11300 CC=${GOC-"gccgo"}
11301 compiler=$CC
11302 compiler_GO=$CC
11303 LD_GO="$LD"
11304 for cc_temp in $compiler""; do
11305   case $cc_temp in
11306     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11307     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11308     \-*) ;;
11309     *) break;;
11310   esac
11311 done
11312 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11313
11314
11315 # Go did not exist at the time GCC didn't implicitly link libc in.
11316 archive_cmds_need_lc_GO=no
11317
11318 old_archive_cmds_GO=$old_archive_cmds
11319
11320 ## CAVEAT EMPTOR:
11321 ## There is no encapsulation within the following macros, do not change
11322 ## the running order or otherwise move them around unless you know exactly
11323 ## what you are doing...
11324 if test -n "$compiler"; then
11325
11326 lt_prog_compiler_no_builtin_flag_GO=
11327
11328 if test "$GCC" = yes; then
11329   case $cc_basename in
11330   nvcc*)
11331     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11332   *)
11333     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11334   esac
11335
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11337 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11338 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11339   $as_echo_n "(cached) " >&6
11340 else
11341   lt_cv_prog_compiler_rtti_exceptions=no
11342    ac_outfile=conftest.$ac_objext
11343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11344    lt_compiler_flag="-fno-rtti -fno-exceptions"
11345    # Insert the option either (1) after the last *FLAGS variable, or
11346    # (2) before a word containing "conftest.", or (3) at the end.
11347    # Note that $ac_compile itself does not contain backslashes and begins
11348    # with a dollar sign (not a hyphen), so the echo should work correctly.
11349    # The option is referenced via a variable to avoid confusing sed.
11350    lt_compile=`echo "$ac_compile" | $SED \
11351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11353    -e 's:$: $lt_compiler_flag:'`
11354    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11355    (eval "$lt_compile" 2>conftest.err)
11356    ac_status=$?
11357    cat conftest.err >&5
11358    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359    if (exit $ac_status) && test -s "$ac_outfile"; then
11360      # The compiler can only warn and ignore the option if not recognized
11361      # So say no if there are warnings other than the usual output.
11362      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11363      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11364      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11365        lt_cv_prog_compiler_rtti_exceptions=yes
11366      fi
11367    fi
11368    $RM conftest*
11369
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11372 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11373
11374 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11375     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11376 else
11377     :
11378 fi
11379
11380 fi
11381
11382
11383
11384   lt_prog_compiler_wl_GO=
11385 lt_prog_compiler_pic_GO=
11386 lt_prog_compiler_static_GO=
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11389 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11390
11391   if test "$GCC" = yes; then
11392     lt_prog_compiler_wl_GO='-Wl,'
11393     lt_prog_compiler_static_GO='-static'
11394
11395     case $host_os in
11396       aix*)
11397       # All AIX code is PIC.
11398       if test "$host_cpu" = ia64; then
11399         # AIX 5 now supports IA64 processor
11400         lt_prog_compiler_static_GO='-Bstatic'
11401       fi
11402       ;;
11403
11404     amigaos*)
11405       case $host_cpu in
11406       powerpc)
11407             # see comment about AmigaOS4 .so support
11408             lt_prog_compiler_pic_GO='-fPIC'
11409         ;;
11410       m68k)
11411             # FIXME: we need at least 68020 code to build shared libraries, but
11412             # adding the `-m68020' flag to GCC prevents building anything better,
11413             # like `-m68040'.
11414             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11415         ;;
11416       esac
11417       ;;
11418
11419     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11420       # PIC is the default for these OSes.
11421       ;;
11422
11423     mingw* | cygwin* | pw32* | os2* | cegcc*)
11424       # This hack is so that the source file can tell whether it is being
11425       # built for inclusion in a dll (and should export symbols for example).
11426       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11427       # (--disable-auto-import) libraries
11428       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11429       ;;
11430
11431     darwin* | rhapsody*)
11432       # PIC is the default on this platform
11433       # Common symbols not allowed in MH_DYLIB files
11434       lt_prog_compiler_pic_GO='-fno-common'
11435       ;;
11436
11437     haiku*)
11438       # PIC is the default for Haiku.
11439       # The "-static" flag exists, but is broken.
11440       lt_prog_compiler_static_GO=
11441       ;;
11442
11443     hpux*)
11444       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11445       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11446       # sets the default TLS model and affects inlining.
11447       case $host_cpu in
11448       hppa*64*)
11449         # +Z the default
11450         ;;
11451       *)
11452         lt_prog_compiler_pic_GO='-fPIC'
11453         ;;
11454       esac
11455       ;;
11456
11457     interix[3-9]*)
11458       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11459       # Instead, we relocate shared libraries at runtime.
11460       ;;
11461
11462     msdosdjgpp*)
11463       # Just because we use GCC doesn't mean we suddenly get shared libraries
11464       # on systems that don't support them.
11465       lt_prog_compiler_can_build_shared_GO=no
11466       enable_shared=no
11467       ;;
11468
11469     *nto* | *qnx*)
11470       # QNX uses GNU C++, but need to define -shared option too, otherwise
11471       # it will coredump.
11472       lt_prog_compiler_pic_GO='-fPIC -shared'
11473       ;;
11474
11475     sysv4*MP*)
11476       if test -d /usr/nec; then
11477         lt_prog_compiler_pic_GO=-Kconform_pic
11478       fi
11479       ;;
11480
11481     *)
11482       lt_prog_compiler_pic_GO='-fPIC'
11483       ;;
11484     esac
11485
11486     case $cc_basename in
11487     nvcc*) # Cuda Compiler Driver 2.2
11488       lt_prog_compiler_wl_GO='-Xlinker '
11489       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11490       ;;
11491     esac
11492   else
11493     # PORTME Check for flag to pass linker flags through the system compiler.
11494     case $host_os in
11495     aix*)
11496       lt_prog_compiler_wl_GO='-Wl,'
11497       if test "$host_cpu" = ia64; then
11498         # AIX 5 now supports IA64 processor
11499         lt_prog_compiler_static_GO='-Bstatic'
11500       else
11501         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11502       fi
11503       ;;
11504
11505     mingw* | cygwin* | pw32* | os2* | cegcc*)
11506       # This hack is so that the source file can tell whether it is being
11507       # built for inclusion in a dll (and should export symbols for example).
11508       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11509       ;;
11510
11511     hpux9* | hpux10* | hpux11*)
11512       lt_prog_compiler_wl_GO='-Wl,'
11513       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11514       # not for PA HP-UX.
11515       case $host_cpu in
11516       hppa*64*|ia64*)
11517         # +Z the default
11518         ;;
11519       *)
11520         lt_prog_compiler_pic_GO='+Z'
11521         ;;
11522       esac
11523       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11524       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11525       ;;
11526
11527     irix5* | irix6* | nonstopux*)
11528       lt_prog_compiler_wl_GO='-Wl,'
11529       # PIC (with -KPIC) is the default.
11530       lt_prog_compiler_static_GO='-non_shared'
11531       ;;
11532
11533     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11534       case $cc_basename in
11535       # old Intel for x86_64 which still supported -KPIC.
11536       ecc*)
11537         lt_prog_compiler_wl_GO='-Wl,'
11538         lt_prog_compiler_pic_GO='-KPIC'
11539         lt_prog_compiler_static_GO='-static'
11540         ;;
11541       # icc used to be incompatible with GCC.
11542       # ICC 10 doesn't accept -KPIC any more.
11543       icc* | ifort*)
11544         lt_prog_compiler_wl_GO='-Wl,'
11545         lt_prog_compiler_pic_GO='-fPIC'
11546         lt_prog_compiler_static_GO='-static'
11547         ;;
11548       # Lahey Fortran 8.1.
11549       lf95*)
11550         lt_prog_compiler_wl_GO='-Wl,'
11551         lt_prog_compiler_pic_GO='--shared'
11552         lt_prog_compiler_static_GO='--static'
11553         ;;
11554       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11555         # Portland Group compilers (*not* the Pentium gcc compiler,
11556         # which looks to be a dead project)
11557         lt_prog_compiler_wl_GO='-Wl,'
11558         lt_prog_compiler_pic_GO='-fpic'
11559         lt_prog_compiler_static_GO='-Bstatic'
11560         ;;
11561       ccc*)
11562         lt_prog_compiler_wl_GO='-Wl,'
11563         # All Alpha code is PIC.
11564         lt_prog_compiler_static_GO='-non_shared'
11565         ;;
11566       xl* | bgxl* | bgf* | mpixl*)
11567         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11568         lt_prog_compiler_wl_GO='-Wl,'
11569         lt_prog_compiler_pic_GO='-qpic'
11570         lt_prog_compiler_static_GO='-qstaticlink'
11571         ;;
11572       *)
11573         case `$CC -V 2>&1 | sed 5q` in
11574         *Sun\ F* | *Sun*Fortran*)
11575           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11576           lt_prog_compiler_pic_GO='-KPIC'
11577           lt_prog_compiler_static_GO='-Bstatic'
11578           lt_prog_compiler_wl_GO=''
11579           ;;
11580         *Sun\ C*)
11581           # Sun C 5.9
11582           lt_prog_compiler_pic_GO='-KPIC'
11583           lt_prog_compiler_static_GO='-Bstatic'
11584           lt_prog_compiler_wl_GO='-Wl,'
11585           ;;
11586         esac
11587         ;;
11588       esac
11589       ;;
11590
11591     newsos6)
11592       lt_prog_compiler_pic_GO='-KPIC'
11593       lt_prog_compiler_static_GO='-Bstatic'
11594       ;;
11595
11596     *nto* | *qnx*)
11597       # QNX uses GNU C++, but need to define -shared option too, otherwise
11598       # it will coredump.
11599       lt_prog_compiler_pic_GO='-fPIC -shared'
11600       ;;
11601
11602     osf3* | osf4* | osf5*)
11603       lt_prog_compiler_wl_GO='-Wl,'
11604       # All OSF/1 code is PIC.
11605       lt_prog_compiler_static_GO='-non_shared'
11606       ;;
11607
11608     rdos*)
11609       lt_prog_compiler_static_GO='-non_shared'
11610       ;;
11611
11612     solaris*)
11613       lt_prog_compiler_pic_GO='-KPIC'
11614       lt_prog_compiler_static_GO='-Bstatic'
11615       case $cc_basename in
11616       f77* | f90* | f95*)
11617         lt_prog_compiler_wl_GO='-Qoption ld ';;
11618       *)
11619         lt_prog_compiler_wl_GO='-Wl,';;
11620       esac
11621       ;;
11622
11623     sunos4*)
11624       lt_prog_compiler_wl_GO='-Qoption ld '
11625       lt_prog_compiler_pic_GO='-PIC'
11626       lt_prog_compiler_static_GO='-Bstatic'
11627       ;;
11628
11629     sysv4 | sysv4.2uw2* | sysv4.3*)
11630       lt_prog_compiler_wl_GO='-Wl,'
11631       lt_prog_compiler_pic_GO='-KPIC'
11632       lt_prog_compiler_static_GO='-Bstatic'
11633       ;;
11634
11635     sysv4*MP*)
11636       if test -d /usr/nec ;then
11637         lt_prog_compiler_pic_GO='-Kconform_pic'
11638         lt_prog_compiler_static_GO='-Bstatic'
11639       fi
11640       ;;
11641
11642     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11643       lt_prog_compiler_wl_GO='-Wl,'
11644       lt_prog_compiler_pic_GO='-KPIC'
11645       lt_prog_compiler_static_GO='-Bstatic'
11646       ;;
11647
11648     unicos*)
11649       lt_prog_compiler_wl_GO='-Wl,'
11650       lt_prog_compiler_can_build_shared_GO=no
11651       ;;
11652
11653     uts4*)
11654       lt_prog_compiler_pic_GO='-pic'
11655       lt_prog_compiler_static_GO='-Bstatic'
11656       ;;
11657
11658     *)
11659       lt_prog_compiler_can_build_shared_GO=no
11660       ;;
11661     esac
11662   fi
11663
11664 case $host_os in
11665   # For platforms which do not support PIC, -DPIC is meaningless:
11666   *djgpp*)
11667     lt_prog_compiler_pic_GO=
11668     ;;
11669   *)
11670     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11671     ;;
11672 esac
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11674 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11675
11676
11677
11678 #
11679 # Check to make sure the PIC flag actually works.
11680 #
11681 if test -n "$lt_prog_compiler_pic_GO"; then
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11683 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11684 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   lt_cv_prog_compiler_pic_works_GO=no
11688    ac_outfile=conftest.$ac_objext
11689    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11690    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11691    # Insert the option either (1) after the last *FLAGS variable, or
11692    # (2) before a word containing "conftest.", or (3) at the end.
11693    # Note that $ac_compile itself does not contain backslashes and begins
11694    # with a dollar sign (not a hyphen), so the echo should work correctly.
11695    # The option is referenced via a variable to avoid confusing sed.
11696    lt_compile=`echo "$ac_compile" | $SED \
11697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11699    -e 's:$: $lt_compiler_flag:'`
11700    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11701    (eval "$lt_compile" 2>conftest.err)
11702    ac_status=$?
11703    cat conftest.err >&5
11704    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705    if (exit $ac_status) && test -s "$ac_outfile"; then
11706      # The compiler can only warn and ignore the option if not recognized
11707      # So say no if there are warnings other than the usual output.
11708      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11709      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11710      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11711        lt_cv_prog_compiler_pic_works_GO=yes
11712      fi
11713    fi
11714    $RM conftest*
11715
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11718 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11719
11720 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11721     case $lt_prog_compiler_pic_GO in
11722      "" | " "*) ;;
11723      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11724      esac
11725 else
11726     lt_prog_compiler_pic_GO=
11727      lt_prog_compiler_can_build_shared_GO=no
11728 fi
11729
11730 fi
11731
11732
11733
11734 #
11735 # Check to make sure the static flag actually works.
11736 #
11737 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11739 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11740 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743   lt_cv_prog_compiler_static_works_GO=no
11744    save_LDFLAGS="$LDFLAGS"
11745    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11746    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11748      # The linker can only warn and ignore the option if not recognized
11749      # So say no if there are warnings
11750      if test -s conftest.err; then
11751        # Append any errors to the config.log.
11752        cat conftest.err 1>&5
11753        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11755        if diff conftest.exp conftest.er2 >/dev/null; then
11756          lt_cv_prog_compiler_static_works_GO=yes
11757        fi
11758      else
11759        lt_cv_prog_compiler_static_works_GO=yes
11760      fi
11761    fi
11762    $RM -r conftest*
11763    LDFLAGS="$save_LDFLAGS"
11764
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11767 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11768
11769 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11770     :
11771 else
11772     lt_prog_compiler_static_GO=
11773 fi
11774
11775
11776
11777
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11779 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11780 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   lt_cv_prog_compiler_c_o_GO=no
11784    $RM -r conftest 2>/dev/null
11785    mkdir conftest
11786    cd conftest
11787    mkdir out
11788    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11789
11790    lt_compiler_flag="-o out/conftest2.$ac_objext"
11791    # Insert the option either (1) after the last *FLAGS variable, or
11792    # (2) before a word containing "conftest.", or (3) at the end.
11793    # Note that $ac_compile itself does not contain backslashes and begins
11794    # with a dollar sign (not a hyphen), so the echo should work correctly.
11795    lt_compile=`echo "$ac_compile" | $SED \
11796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11798    -e 's:$: $lt_compiler_flag:'`
11799    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11800    (eval "$lt_compile" 2>out/conftest.err)
11801    ac_status=$?
11802    cat out/conftest.err >&5
11803    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11805    then
11806      # The compiler can only warn and ignore the option if not recognized
11807      # So say no if there are warnings
11808      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11809      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11810      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11811        lt_cv_prog_compiler_c_o_GO=yes
11812      fi
11813    fi
11814    chmod u+w . 2>&5
11815    $RM conftest*
11816    # SGI C++ compiler will create directory out/ii_files/ for
11817    # template instantiation
11818    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11819    $RM out/* && rmdir out
11820    cd ..
11821    $RM -r conftest
11822    $RM conftest*
11823
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11826 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11827
11828
11829
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11831 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11832 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11833   $as_echo_n "(cached) " >&6
11834 else
11835   lt_cv_prog_compiler_c_o_GO=no
11836    $RM -r conftest 2>/dev/null
11837    mkdir conftest
11838    cd conftest
11839    mkdir out
11840    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11841
11842    lt_compiler_flag="-o out/conftest2.$ac_objext"
11843    # Insert the option either (1) after the last *FLAGS variable, or
11844    # (2) before a word containing "conftest.", or (3) at the end.
11845    # Note that $ac_compile itself does not contain backslashes and begins
11846    # with a dollar sign (not a hyphen), so the echo should work correctly.
11847    lt_compile=`echo "$ac_compile" | $SED \
11848    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11850    -e 's:$: $lt_compiler_flag:'`
11851    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11852    (eval "$lt_compile" 2>out/conftest.err)
11853    ac_status=$?
11854    cat out/conftest.err >&5
11855    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11857    then
11858      # The compiler can only warn and ignore the option if not recognized
11859      # So say no if there are warnings
11860      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11861      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11862      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11863        lt_cv_prog_compiler_c_o_GO=yes
11864      fi
11865    fi
11866    chmod u+w . 2>&5
11867    $RM conftest*
11868    # SGI C++ compiler will create directory out/ii_files/ for
11869    # template instantiation
11870    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11871    $RM out/* && rmdir out
11872    cd ..
11873    $RM -r conftest
11874    $RM conftest*
11875
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11878 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11879
11880
11881
11882
11883 hard_links="nottested"
11884 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11885   # do not overwrite the value of need_locks provided by the user
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11887 $as_echo_n "checking if we can lock with hard links... " >&6; }
11888   hard_links=yes
11889   $RM conftest*
11890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11891   touch conftest.a
11892   ln conftest.a conftest.b 2>&5 || hard_links=no
11893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11895 $as_echo "$hard_links" >&6; }
11896   if test "$hard_links" = no; then
11897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11898 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11899     need_locks=warn
11900   fi
11901 else
11902   need_locks=no
11903 fi
11904
11905
11906
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11908 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11909
11910   runpath_var=
11911   allow_undefined_flag_GO=
11912   always_export_symbols_GO=no
11913   archive_cmds_GO=
11914   archive_expsym_cmds_GO=
11915   compiler_needs_object_GO=no
11916   enable_shared_with_static_runtimes_GO=no
11917   export_dynamic_flag_spec_GO=
11918   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11919   hardcode_automatic_GO=no
11920   hardcode_direct_GO=no
11921   hardcode_direct_absolute_GO=no
11922   hardcode_libdir_flag_spec_GO=
11923   hardcode_libdir_flag_spec_ld_GO=
11924   hardcode_libdir_separator_GO=
11925   hardcode_minus_L_GO=no
11926   hardcode_shlibpath_var_GO=unsupported
11927   inherit_rpath_GO=no
11928   link_all_deplibs_GO=unknown
11929   module_cmds_GO=
11930   module_expsym_cmds_GO=
11931   old_archive_from_new_cmds_GO=
11932   old_archive_from_expsyms_cmds_GO=
11933   thread_safe_flag_spec_GO=
11934   whole_archive_flag_spec_GO=
11935   # include_expsyms should be a list of space-separated symbols to be *always*
11936   # included in the symbol list
11937   include_expsyms_GO=
11938   # exclude_expsyms can be an extended regexp of symbols to exclude
11939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11941   # as well as any symbol that contains `d'.
11942   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11944   # platforms (ab)use it in PIC code, but their linkers get confused if
11945   # the symbol is explicitly referenced.  Since portable code cannot
11946   # rely on this symbol name, it's probably fine to never include it in
11947   # preloaded symbol tables.
11948   # Exclude shared library initialization/finalization symbols.
11949   extract_expsyms_cmds=
11950
11951   case $host_os in
11952   cygwin* | mingw* | pw32* | cegcc*)
11953     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11954     # When not using gcc, we currently assume that we are using
11955     # Microsoft Visual C++.
11956     if test "$GCC" != yes; then
11957       with_gnu_ld=no
11958     fi
11959     ;;
11960   interix*)
11961     # we just hope/assume this is gcc and not c89 (= MSVC++)
11962     with_gnu_ld=yes
11963     ;;
11964   openbsd*)
11965     with_gnu_ld=no
11966     ;;
11967   esac
11968
11969   ld_shlibs_GO=yes
11970
11971   # On some targets, GNU ld is compatible enough with the native linker
11972   # that we're better off using the native interface for both.
11973   lt_use_gnu_ld_interface=no
11974   if test "$with_gnu_ld" = yes; then
11975     case $host_os in
11976       aix*)
11977         # The AIX port of GNU ld has always aspired to compatibility
11978         # with the native linker.  However, as the warning in the GNU ld
11979         # block says, versions before 2.19.5* couldn't really create working
11980         # shared libraries, regardless of the interface used.
11981         case `$LD -v 2>&1` in
11982           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11983           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11984           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11985           *)
11986             lt_use_gnu_ld_interface=yes
11987             ;;
11988         esac
11989         ;;
11990       *)
11991         lt_use_gnu_ld_interface=yes
11992         ;;
11993     esac
11994   fi
11995
11996   if test "$lt_use_gnu_ld_interface" = yes; then
11997     # If archive_cmds runs LD, not CC, wlarc should be empty
11998     wlarc='${wl}'
11999
12000     # Set some defaults for GNU ld with shared library support. These
12001     # are reset later if shared libraries are not supported. Putting them
12002     # here allows them to be overridden if necessary.
12003     runpath_var=LD_RUN_PATH
12004     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12005     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12006     # ancient GNU ld didn't support --whole-archive et. al.
12007     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12008       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12009     else
12010       whole_archive_flag_spec_GO=
12011     fi
12012     supports_anon_versioning=no
12013     case `$LD -v 2>&1` in
12014       *GNU\ gold*) supports_anon_versioning=yes ;;
12015       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12016       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12017       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12018       *\ 2.11.*) ;; # other 2.11 versions
12019       *) supports_anon_versioning=yes ;;
12020     esac
12021
12022     # See if GNU ld supports shared libraries.
12023     case $host_os in
12024     aix[3-9]*)
12025       # On AIX/PPC, the GNU linker is very broken
12026       if test "$host_cpu" != ia64; then
12027         ld_shlibs_GO=no
12028         cat <<_LT_EOF 1>&2
12029
12030 *** Warning: the GNU linker, at least up to release 2.19, is reported
12031 *** to be unable to reliably create shared libraries on AIX.
12032 *** Therefore, libtool is disabling shared libraries support.  If you
12033 *** really care for shared libraries, you may want to install binutils
12034 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12035 *** You will then need to restart the configuration process.
12036
12037 _LT_EOF
12038       fi
12039       ;;
12040
12041     amigaos*)
12042       case $host_cpu in
12043       powerpc)
12044             # see comment about AmigaOS4 .so support
12045             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046             archive_expsym_cmds_GO=''
12047         ;;
12048       m68k)
12049             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)'
12050             hardcode_libdir_flag_spec_GO='-L$libdir'
12051             hardcode_minus_L_GO=yes
12052         ;;
12053       esac
12054       ;;
12055
12056     beos*)
12057       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12058         allow_undefined_flag_GO=unsupported
12059         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12060         # support --undefined.  This deserves some investigation.  FIXME
12061         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12062       else
12063         ld_shlibs_GO=no
12064       fi
12065       ;;
12066
12067     cygwin* | mingw* | pw32* | cegcc*)
12068       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12069       # as there is no search path for DLLs.
12070       hardcode_libdir_flag_spec_GO='-L$libdir'
12071       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12072       allow_undefined_flag_GO=unsupported
12073       always_export_symbols_GO=no
12074       enable_shared_with_static_runtimes_GO=yes
12075       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12076
12077       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12078         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12079         # If the export-symbols file already is a .def file (1st line
12080         # is EXPORTS), use it as is; otherwise, prepend...
12081         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12082           cp $export_symbols $output_objdir/$soname.def;
12083         else
12084           echo EXPORTS > $output_objdir/$soname.def;
12085           cat $export_symbols >> $output_objdir/$soname.def;
12086         fi~
12087         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12088       else
12089         ld_shlibs_GO=no
12090       fi
12091       ;;
12092
12093     haiku*)
12094       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095       link_all_deplibs_GO=yes
12096       ;;
12097
12098     interix[3-9]*)
12099       hardcode_direct_GO=no
12100       hardcode_shlibpath_var_GO=no
12101       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12102       export_dynamic_flag_spec_GO='${wl}-E'
12103       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12104       # Instead, shared libraries are loaded at an image base (0x10000000 by
12105       # default) and relocated if they conflict, which is a slow very memory
12106       # consuming and fragmenting process.  To avoid this, we pick a random,
12107       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12108       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12109       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'
12110       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'
12111       ;;
12112
12113     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12114       tmp_diet=no
12115       if test "$host_os" = linux-dietlibc; then
12116         case $cc_basename in
12117           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12118         esac
12119       fi
12120       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12121          && test "$tmp_diet" = no
12122       then
12123         tmp_addflag=
12124         tmp_sharedflag='-shared'
12125         case $cc_basename,$host_cpu in
12126         pgcc*)                          # Portland Group C compiler
12127           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'
12128           tmp_addflag=' $pic_flag'
12129           ;;
12130         pgf77* | pgf90* | pgf95* | pgfortran*)
12131                                         # Portland Group f77 and f90 compilers
12132           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'
12133           tmp_addflag=' $pic_flag -Mnomain' ;;
12134         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12135           tmp_addflag=' -i_dynamic' ;;
12136         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12137           tmp_addflag=' -i_dynamic -nofor_main' ;;
12138         ifc* | ifort*)                  # Intel Fortran compiler
12139           tmp_addflag=' -nofor_main' ;;
12140         lf95*)                          # Lahey Fortran 8.1
12141           whole_archive_flag_spec_GO=
12142           tmp_sharedflag='--shared' ;;
12143         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12144           tmp_sharedflag='-qmkshrobj'
12145           tmp_addflag= ;;
12146         nvcc*)  # Cuda Compiler Driver 2.2
12147           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'
12148           compiler_needs_object_GO=yes
12149           ;;
12150         esac
12151         case `$CC -V 2>&1 | sed 5q` in
12152         *Sun\ C*)                       # Sun C 5.9
12153           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'
12154           compiler_needs_object_GO=yes
12155           tmp_sharedflag='-G' ;;
12156         *Sun\ F*)                       # Sun Fortran 8.3
12157           tmp_sharedflag='-G' ;;
12158         esac
12159         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12160
12161         if test "x$supports_anon_versioning" = xyes; then
12162           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12163             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12164             echo "local: *; };" >> $output_objdir/$libname.ver~
12165             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12166         fi
12167
12168         case $cc_basename in
12169         xlf* | bgf* | bgxlf* | mpixlf*)
12170           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12171           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12172           hardcode_libdir_flag_spec_GO=
12173           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12174           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12175           if test "x$supports_anon_versioning" = xyes; then
12176             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12177               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12178               echo "local: *; };" >> $output_objdir/$libname.ver~
12179               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12180           fi
12181           ;;
12182         esac
12183       else
12184         ld_shlibs_GO=no
12185       fi
12186       ;;
12187
12188     netbsd*)
12189       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12190         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12191         wlarc=
12192       else
12193         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12194         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12195       fi
12196       ;;
12197
12198     solaris*)
12199       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12200         ld_shlibs_GO=no
12201         cat <<_LT_EOF 1>&2
12202
12203 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12204 *** create shared libraries on Solaris systems.  Therefore, libtool
12205 *** is disabling shared libraries support.  We urge you to upgrade GNU
12206 *** binutils to release 2.9.1 or newer.  Another option is to modify
12207 *** your PATH or compiler configuration so that the native linker is
12208 *** used, and then restart.
12209
12210 _LT_EOF
12211       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12212         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12213         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12214       else
12215         ld_shlibs_GO=no
12216       fi
12217       ;;
12218
12219     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12220       case `$LD -v 2>&1` in
12221         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12222         ld_shlibs_GO=no
12223         cat <<_LT_EOF 1>&2
12224
12225 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12226 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12227 *** is disabling shared libraries support.  We urge you to upgrade GNU
12228 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12229 *** your PATH or compiler configuration so that the native linker is
12230 *** used, and then restart.
12231
12232 _LT_EOF
12233         ;;
12234         *)
12235           # For security reasons, it is highly recommended that you always
12236           # use absolute paths for naming shared libraries, and exclude the
12237           # DT_RUNPATH tag from executables and libraries.  But doing so
12238           # requires that you compile everything twice, which is a pain.
12239           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12240             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12241             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12243           else
12244             ld_shlibs_GO=no
12245           fi
12246         ;;
12247       esac
12248       ;;
12249
12250     sunos4*)
12251       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12252       wlarc=
12253       hardcode_direct_GO=yes
12254       hardcode_shlibpath_var_GO=no
12255       ;;
12256
12257     *)
12258       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12259         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12260         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12261       else
12262         ld_shlibs_GO=no
12263       fi
12264       ;;
12265     esac
12266
12267     if test "$ld_shlibs_GO" = no; then
12268       runpath_var=
12269       hardcode_libdir_flag_spec_GO=
12270       export_dynamic_flag_spec_GO=
12271       whole_archive_flag_spec_GO=
12272     fi
12273   else
12274     # PORTME fill in a description of your system's linker (not GNU ld)
12275     case $host_os in
12276     aix3*)
12277       allow_undefined_flag_GO=unsupported
12278       always_export_symbols_GO=yes
12279       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'
12280       # Note: this linker hardcodes the directories in LIBPATH if there
12281       # are no directories specified by -L.
12282       hardcode_minus_L_GO=yes
12283       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12284         # Neither direct hardcoding nor static linking is supported with a
12285         # broken collect2.
12286         hardcode_direct_GO=unsupported
12287       fi
12288       ;;
12289
12290     aix[4-9]*)
12291       if test "$host_cpu" = ia64; then
12292         # On IA64, the linker does run time linking by default, so we don't
12293         # have to do anything special.
12294         aix_use_runtimelinking=no
12295         exp_sym_flag='-Bexport'
12296         no_entry_flag=""
12297       else
12298         # If we're using GNU nm, then we don't want the "-C" option.
12299         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12300         # Also, AIX nm treats weak defined symbols like other global
12301         # defined symbols, whereas GNU nm marks them as "W".
12302         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12303           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'
12304         else
12305           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'
12306         fi
12307         aix_use_runtimelinking=no
12308
12309         # Test if we are trying to use run time linking or normal
12310         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12311         # need to do runtime linking.
12312         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12313           for ld_flag in $LDFLAGS; do
12314           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12315             aix_use_runtimelinking=yes
12316             break
12317           fi
12318           done
12319           ;;
12320         esac
12321
12322         exp_sym_flag='-bexport'
12323         no_entry_flag='-bnoentry'
12324       fi
12325
12326       # When large executables or shared objects are built, AIX ld can
12327       # have problems creating the table of contents.  If linking a library
12328       # or program results in "error TOC overflow" add -mminimal-toc to
12329       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12330       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12331
12332       archive_cmds_GO=''
12333       hardcode_direct_GO=yes
12334       hardcode_direct_absolute_GO=yes
12335       hardcode_libdir_separator_GO=':'
12336       link_all_deplibs_GO=yes
12337       file_list_spec_GO='${wl}-f,'
12338
12339       if test "$GCC" = yes; then
12340         case $host_os in aix4.[012]|aix4.[012].*)
12341         # We only want to do this on AIX 4.2 and lower, the check
12342         # below for broken collect2 doesn't work under 4.3+
12343           collect2name=`${CC} -print-prog-name=collect2`
12344           if test -f "$collect2name" &&
12345            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12346           then
12347           # We have reworked collect2
12348           :
12349           else
12350           # We have old collect2
12351           hardcode_direct_GO=unsupported
12352           # It fails to find uninstalled libraries when the uninstalled
12353           # path is not listed in the libpath.  Setting hardcode_minus_L
12354           # to unsupported forces relinking
12355           hardcode_minus_L_GO=yes
12356           hardcode_libdir_flag_spec_GO='-L$libdir'
12357           hardcode_libdir_separator_GO=
12358           fi
12359           ;;
12360         esac
12361         shared_flag='-shared'
12362         if test "$aix_use_runtimelinking" = yes; then
12363           shared_flag="$shared_flag "'${wl}-G'
12364         fi
12365       else
12366         # not using gcc
12367         if test "$host_cpu" = ia64; then
12368         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12369         # chokes on -Wl,-G. The following line is correct:
12370           shared_flag='-G'
12371         else
12372           if test "$aix_use_runtimelinking" = yes; then
12373             shared_flag='${wl}-G'
12374           else
12375             shared_flag='${wl}-bM:SRE'
12376           fi
12377         fi
12378       fi
12379
12380       export_dynamic_flag_spec_GO='${wl}-bexpall'
12381       # It seems that -bexpall does not export symbols beginning with
12382       # underscore (_), so it is better to generate a list of symbols to export.
12383       always_export_symbols_GO=yes
12384       if test "$aix_use_runtimelinking" = yes; then
12385         # Warning - without using the other runtime loading flags (-brtl),
12386         # -berok will link without error, but may produce a broken library.
12387         allow_undefined_flag_GO='-berok'
12388         # Determine the default libpath from the value encoded in an
12389         # empty executable.
12390         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h.  */
12392
12393 int
12394 main ()
12395 {
12396
12397   ;
12398   return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402
12403 lt_aix_libpath_sed='
12404     /Import File Strings/,/^$/ {
12405         /^0/ {
12406             s/^0  *\(.*\)$/\1/
12407             p
12408         }
12409     }'
12410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 # Check for a 64-bit object if we didn't find anything.
12412 if test -z "$aix_libpath"; then
12413   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12414 fi
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext \
12417     conftest$ac_exeext conftest.$ac_ext
12418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12419
12420         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12421         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"
12422       else
12423         if test "$host_cpu" = ia64; then
12424           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12425           allow_undefined_flag_GO="-z nodefs"
12426           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"
12427         else
12428          # Determine the default libpath from the value encoded in an
12429          # empty executable.
12430          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h.  */
12432
12433 int
12434 main ()
12435 {
12436
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 if ac_fn_c_try_link "$LINENO"; then :
12442
12443 lt_aix_libpath_sed='
12444     /Import File Strings/,/^$/ {
12445         /^0/ {
12446             s/^0  *\(.*\)$/\1/
12447             p
12448         }
12449     }'
12450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451 # Check for a 64-bit object if we didn't find anything.
12452 if test -z "$aix_libpath"; then
12453   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12454 fi
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457     conftest$ac_exeext conftest.$ac_ext
12458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12459
12460          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12461           # Warning - without using the other run time loading flags,
12462           # -berok will link without error, but may produce a broken library.
12463           no_undefined_flag_GO=' ${wl}-bernotok'
12464           allow_undefined_flag_GO=' ${wl}-berok'
12465           if test "$with_gnu_ld" = yes; then
12466             # We only use this code for GNU lds that support --whole-archive.
12467             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12468           else
12469             # Exported symbols can be pulled into shared objects from archives
12470             whole_archive_flag_spec_GO='$convenience'
12471           fi
12472           archive_cmds_need_lc_GO=yes
12473           # This is similar to how AIX traditionally builds its shared libraries.
12474           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'
12475         fi
12476       fi
12477       ;;
12478
12479     amigaos*)
12480       case $host_cpu in
12481       powerpc)
12482             # see comment about AmigaOS4 .so support
12483             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12484             archive_expsym_cmds_GO=''
12485         ;;
12486       m68k)
12487             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)'
12488             hardcode_libdir_flag_spec_GO='-L$libdir'
12489             hardcode_minus_L_GO=yes
12490         ;;
12491       esac
12492       ;;
12493
12494     bsdi[45]*)
12495       export_dynamic_flag_spec_GO=-rdynamic
12496       ;;
12497
12498     cygwin* | mingw* | pw32* | cegcc*)
12499       # When not using gcc, we currently assume that we are using
12500       # Microsoft Visual C++.
12501       # hardcode_libdir_flag_spec is actually meaningless, as there is
12502       # no search path for DLLs.
12503       hardcode_libdir_flag_spec_GO=' '
12504       allow_undefined_flag_GO=unsupported
12505       # Tell ltmain to make .lib files, not .a files.
12506       libext=lib
12507       # Tell ltmain to make .dll files, not .so files.
12508       shrext_cmds=".dll"
12509       # FIXME: Setting linknames here is a bad hack.
12510       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12511       # The linker will automatically build a .lib file if we build a DLL.
12512       old_archive_from_new_cmds_GO='true'
12513       # FIXME: Should let the user specify the lib program.
12514       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12515       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12516       enable_shared_with_static_runtimes_GO=yes
12517       ;;
12518
12519     darwin* | rhapsody*)
12520
12521
12522   archive_cmds_need_lc_GO=no
12523   hardcode_direct_GO=no
12524   hardcode_automatic_GO=yes
12525   hardcode_shlibpath_var_GO=unsupported
12526   if test "$lt_cv_ld_force_load" = "yes"; then
12527     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\"`'
12528   else
12529     whole_archive_flag_spec_GO=''
12530   fi
12531   link_all_deplibs_GO=yes
12532   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12533   case $cc_basename in
12534      ifort*) _lt_dar_can_shared=yes ;;
12535      *) _lt_dar_can_shared=$GCC ;;
12536   esac
12537   if test "$_lt_dar_can_shared" = "yes"; then
12538     output_verbose_link_cmd=func_echo_all
12539     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}"
12540     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12541     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}"
12542     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}"
12543
12544   else
12545   ld_shlibs_GO=no
12546   fi
12547
12548       ;;
12549
12550     dgux*)
12551       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12552       hardcode_libdir_flag_spec_GO='-L$libdir'
12553       hardcode_shlibpath_var_GO=no
12554       ;;
12555
12556     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12557     # support.  Future versions do this automatically, but an explicit c++rt0.o
12558     # does not break anything, and helps significantly (at the cost of a little
12559     # extra space).
12560     freebsd2.2*)
12561       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12562       hardcode_libdir_flag_spec_GO='-R$libdir'
12563       hardcode_direct_GO=yes
12564       hardcode_shlibpath_var_GO=no
12565       ;;
12566
12567     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12568     freebsd2*)
12569       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12570       hardcode_direct_GO=yes
12571       hardcode_minus_L_GO=yes
12572       hardcode_shlibpath_var_GO=no
12573       ;;
12574
12575     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12576     freebsd* | dragonfly*)
12577       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12578       hardcode_libdir_flag_spec_GO='-R$libdir'
12579       hardcode_direct_GO=yes
12580       hardcode_shlibpath_var_GO=no
12581       ;;
12582
12583     hpux9*)
12584       if test "$GCC" = yes; then
12585         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'
12586       else
12587         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'
12588       fi
12589       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12590       hardcode_libdir_separator_GO=:
12591       hardcode_direct_GO=yes
12592
12593       # hardcode_minus_L: Not really in the search PATH,
12594       # but as the default location of the library.
12595       hardcode_minus_L_GO=yes
12596       export_dynamic_flag_spec_GO='${wl}-E'
12597       ;;
12598
12599     hpux10*)
12600       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12601         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12602       else
12603         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12604       fi
12605       if test "$with_gnu_ld" = no; then
12606         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12607         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12608         hardcode_libdir_separator_GO=:
12609         hardcode_direct_GO=yes
12610         hardcode_direct_absolute_GO=yes
12611         export_dynamic_flag_spec_GO='${wl}-E'
12612         # hardcode_minus_L: Not really in the search PATH,
12613         # but as the default location of the library.
12614         hardcode_minus_L_GO=yes
12615       fi
12616       ;;
12617
12618     hpux11*)
12619       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12620         case $host_cpu in
12621         hppa*64*)
12622           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12623           ;;
12624         ia64*)
12625           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12626           ;;
12627         *)
12628           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12629           ;;
12630         esac
12631       else
12632         case $host_cpu in
12633         hppa*64*)
12634           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12635           ;;
12636         ia64*)
12637           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12638           ;;
12639         *)
12640         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12641           ;;
12642         esac
12643       fi
12644       if test "$with_gnu_ld" = no; then
12645         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12646         hardcode_libdir_separator_GO=:
12647
12648         case $host_cpu in
12649         hppa*64*|ia64*)
12650           hardcode_direct_GO=no
12651           hardcode_shlibpath_var_GO=no
12652           ;;
12653         *)
12654           hardcode_direct_GO=yes
12655           hardcode_direct_absolute_GO=yes
12656           export_dynamic_flag_spec_GO='${wl}-E'
12657
12658           # hardcode_minus_L: Not really in the search PATH,
12659           # but as the default location of the library.
12660           hardcode_minus_L_GO=yes
12661           ;;
12662         esac
12663       fi
12664       ;;
12665
12666     irix5* | irix6* | nonstopux*)
12667       if test "$GCC" = yes; then
12668         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'
12669         # Try to use the -exported_symbol ld option, if it does not
12670         # work, assume that -exports_file does not work either and
12671         # implicitly export all symbols.
12672         save_LDFLAGS="$LDFLAGS"
12673         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12674         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h.  */
12676 int foo(void) {}
12677 _ACEOF
12678 if ac_fn_c_try_link "$LINENO"; then :
12679   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'
12680
12681 fi
12682 rm -f core conftest.err conftest.$ac_objext \
12683     conftest$ac_exeext conftest.$ac_ext
12684         LDFLAGS="$save_LDFLAGS"
12685       else
12686         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'
12687         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'
12688       fi
12689       archive_cmds_need_lc_GO='no'
12690       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12691       hardcode_libdir_separator_GO=:
12692       inherit_rpath_GO=yes
12693       link_all_deplibs_GO=yes
12694       ;;
12695
12696     netbsd*)
12697       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12698         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12699       else
12700         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12701       fi
12702       hardcode_libdir_flag_spec_GO='-R$libdir'
12703       hardcode_direct_GO=yes
12704       hardcode_shlibpath_var_GO=no
12705       ;;
12706
12707     newsos6)
12708       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12709       hardcode_direct_GO=yes
12710       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12711       hardcode_libdir_separator_GO=:
12712       hardcode_shlibpath_var_GO=no
12713       ;;
12714
12715     *nto* | *qnx*)
12716       ;;
12717
12718     openbsd*)
12719       if test -f /usr/libexec/ld.so; then
12720         hardcode_direct_GO=yes
12721         hardcode_shlibpath_var_GO=no
12722         hardcode_direct_absolute_GO=yes
12723         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12724           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12725           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12726           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12727           export_dynamic_flag_spec_GO='${wl}-E'
12728         else
12729           case $host_os in
12730            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12731              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12732              hardcode_libdir_flag_spec_GO='-R$libdir'
12733              ;;
12734            *)
12735              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12736              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12737              ;;
12738           esac
12739         fi
12740       else
12741         ld_shlibs_GO=no
12742       fi
12743       ;;
12744
12745     os2*)
12746       hardcode_libdir_flag_spec_GO='-L$libdir'
12747       hardcode_minus_L_GO=yes
12748       allow_undefined_flag_GO=unsupported
12749       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'
12750       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12751       ;;
12752
12753     osf3*)
12754       if test "$GCC" = yes; then
12755         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12756         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'
12757       else
12758         allow_undefined_flag_GO=' -expect_unresolved \*'
12759         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'
12760       fi
12761       archive_cmds_need_lc_GO='no'
12762       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12763       hardcode_libdir_separator_GO=:
12764       ;;
12765
12766     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12767       if test "$GCC" = yes; then
12768         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12769         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'
12770         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12771       else
12772         allow_undefined_flag_GO=' -expect_unresolved \*'
12773         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'
12774         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~
12775         $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'
12776
12777         # Both c and cxx compiler support -rpath directly
12778         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12779       fi
12780       archive_cmds_need_lc_GO='no'
12781       hardcode_libdir_separator_GO=:
12782       ;;
12783
12784     solaris*)
12785       no_undefined_flag_GO=' -z defs'
12786       if test "$GCC" = yes; then
12787         wlarc='${wl}'
12788         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12789         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12790           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12791       else
12792         case `$CC -V 2>&1` in
12793         *"Compilers 5.0"*)
12794           wlarc=''
12795           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12796           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12797           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12798           ;;
12799         *)
12800           wlarc='${wl}'
12801           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12802           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12803           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12804           ;;
12805         esac
12806       fi
12807       hardcode_libdir_flag_spec_GO='-R$libdir'
12808       hardcode_shlibpath_var_GO=no
12809       case $host_os in
12810       solaris2.[0-5] | solaris2.[0-5].*) ;;
12811       *)
12812         # The compiler driver will combine and reorder linker options,
12813         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12814         # but is careful enough not to reorder.
12815         # Supported since Solaris 2.6 (maybe 2.5.1?)
12816         if test "$GCC" = yes; then
12817           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12818         else
12819           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12820         fi
12821         ;;
12822       esac
12823       link_all_deplibs_GO=yes
12824       ;;
12825
12826     sunos4*)
12827       if test "x$host_vendor" = xsequent; then
12828         # Use $CC to link under sequent, because it throws in some extra .o
12829         # files that make .init and .fini sections work.
12830         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12831       else
12832         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12833       fi
12834       hardcode_libdir_flag_spec_GO='-L$libdir'
12835       hardcode_direct_GO=yes
12836       hardcode_minus_L_GO=yes
12837       hardcode_shlibpath_var_GO=no
12838       ;;
12839
12840     sysv4)
12841       case $host_vendor in
12842         sni)
12843           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844           hardcode_direct_GO=yes # is this really true???
12845         ;;
12846         siemens)
12847           ## LD is ld it makes a PLAMLIB
12848           ## CC just makes a GrossModule.
12849           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12850           reload_cmds_GO='$CC -r -o $output$reload_objs'
12851           hardcode_direct_GO=no
12852         ;;
12853         motorola)
12854           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12856         ;;
12857       esac
12858       runpath_var='LD_RUN_PATH'
12859       hardcode_shlibpath_var_GO=no
12860       ;;
12861
12862     sysv4.3*)
12863       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12864       hardcode_shlibpath_var_GO=no
12865       export_dynamic_flag_spec_GO='-Bexport'
12866       ;;
12867
12868     sysv4*MP*)
12869       if test -d /usr/nec; then
12870         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12871         hardcode_shlibpath_var_GO=no
12872         runpath_var=LD_RUN_PATH
12873         hardcode_runpath_var=yes
12874         ld_shlibs_GO=yes
12875       fi
12876       ;;
12877
12878     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12879       no_undefined_flag_GO='${wl}-z,text'
12880       archive_cmds_need_lc_GO=no
12881       hardcode_shlibpath_var_GO=no
12882       runpath_var='LD_RUN_PATH'
12883
12884       if test "$GCC" = yes; then
12885         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12886         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12887       else
12888         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12889         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12890       fi
12891       ;;
12892
12893     sysv5* | sco3.2v5* | sco5v6*)
12894       # Note: We can NOT use -z defs as we might desire, because we do not
12895       # link with -lc, and that would cause any symbols used from libc to
12896       # always be unresolved, which means just about no library would
12897       # ever link correctly.  If we're not using GNU ld we use -z text
12898       # though, which does catch some bad symbols but isn't as heavy-handed
12899       # as -z defs.
12900       no_undefined_flag_GO='${wl}-z,text'
12901       allow_undefined_flag_GO='${wl}-z,nodefs'
12902       archive_cmds_need_lc_GO=no
12903       hardcode_shlibpath_var_GO=no
12904       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12905       hardcode_libdir_separator_GO=':'
12906       link_all_deplibs_GO=yes
12907       export_dynamic_flag_spec_GO='${wl}-Bexport'
12908       runpath_var='LD_RUN_PATH'
12909
12910       if test "$GCC" = yes; then
12911         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12913       else
12914         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12915         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12916       fi
12917       ;;
12918
12919     uts4*)
12920       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12921       hardcode_libdir_flag_spec_GO='-L$libdir'
12922       hardcode_shlibpath_var_GO=no
12923       ;;
12924
12925     *)
12926       ld_shlibs_GO=no
12927       ;;
12928     esac
12929
12930     if test x$host_vendor = xsni; then
12931       case $host in
12932       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12933         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12934         ;;
12935       esac
12936     fi
12937   fi
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12940 $as_echo "$ld_shlibs_GO" >&6; }
12941 test "$ld_shlibs_GO" = no && can_build_shared=no
12942
12943 with_gnu_ld_GO=$with_gnu_ld
12944
12945
12946
12947
12948
12949
12950 #
12951 # Do we need to explicitly link libc?
12952 #
12953 case "x$archive_cmds_need_lc_GO" in
12954 x|xyes)
12955   # Assume -lc should be added
12956   archive_cmds_need_lc_GO=yes
12957
12958   if test "$enable_shared" = yes && test "$GCC" = yes; then
12959     case $archive_cmds_GO in
12960     *'~'*)
12961       # FIXME: we may have to deal with multi-command sequences.
12962       ;;
12963     '$CC '*)
12964       # Test whether the compiler implicitly links with -lc since on some
12965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12966       # to ld, don't add -lc before -lgcc.
12967       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12968 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12969 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   $RM conftest*
12973         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12974
12975         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12976   (eval $ac_compile) 2>&5
12977   ac_status=$?
12978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12979   test $ac_status = 0; } 2>conftest.err; then
12980           soname=conftest
12981           lib=conftest
12982           libobjs=conftest.$ac_objext
12983           deplibs=
12984           wl=$lt_prog_compiler_wl_GO
12985           pic_flag=$lt_prog_compiler_pic_GO
12986           compiler_flags=-v
12987           linker_flags=-v
12988           verstring=
12989           output_objdir=.
12990           libname=conftest
12991           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12992           allow_undefined_flag_GO=
12993           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12994   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12995   ac_status=$?
12996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997   test $ac_status = 0; }
12998           then
12999             lt_cv_archive_cmds_need_lc_GO=no
13000           else
13001             lt_cv_archive_cmds_need_lc_GO=yes
13002           fi
13003           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13004         else
13005           cat conftest.err 1>&5
13006         fi
13007         $RM conftest*
13008
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13011 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13012       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13013       ;;
13014     esac
13015   fi
13016   ;;
13017 esac
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13083 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13084 hardcode_action_GO=
13085 if test -n "$hardcode_libdir_flag_spec_GO" ||
13086    test -n "$runpath_var_GO" ||
13087    test "X$hardcode_automatic_GO" = "Xyes" ; then
13088
13089   # We can hardcode non-existent directories.
13090   if test "$hardcode_direct_GO" != no &&
13091      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13092      # have to relink, otherwise we might link with an installed library
13093      # when we should be linking with a yet-to-be-installed one
13094      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13095      test "$hardcode_minus_L_GO" != no; then
13096     # Linking always hardcodes the temporary library directory.
13097     hardcode_action_GO=relink
13098   else
13099     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13100     hardcode_action_GO=immediate
13101   fi
13102 else
13103   # We cannot hardcode anything, or else we can only hardcode existing
13104   # directories.
13105   hardcode_action_GO=unsupported
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13108 $as_echo "$hardcode_action_GO" >&6; }
13109
13110 if test "$hardcode_action_GO" = relink ||
13111    test "$inherit_rpath_GO" = yes; then
13112   # Fast installation is not supported
13113   enable_fast_install=no
13114 elif test "$shlibpath_overrides_runpath" = yes ||
13115      test "$enable_shared" = no; then
13116   # Fast installation is not necessary
13117   enable_fast_install=needless
13118 fi
13119
13120
13121
13122
13123
13124
13125
13126 fi
13127
13128 ac_ext=c
13129 ac_cpp='$CPP $CPPFLAGS'
13130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13133
13134
13135 GCC=$lt_save_GCC
13136 CC="$lt_save_CC"
13137
13138
13139
13140
13141         ac_config_commands="$ac_config_commands libtool"
13142
13143
13144
13145
13146 # Only expand once:
13147
13148
13149
13150
13151
13152 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13153
13154
13155 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13156
13157
13158 WERROR="-Werror"
13159
13160
13161 glibgo_toolexecdir=no
13162 glibgo_toolexeclibdir=no
13163 glibgo_prefixdir=$prefix
13164
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13166 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13167 # Check whether --enable-version-specific-runtime-libs was given.
13168 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13169   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13170     yes) version_specific_libs=yes ;;
13171     no)  version_specific_libs=no ;;
13172     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13173    esac
13174 else
13175   version_specific_libs=no
13176 fi
13177
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13179 $as_echo "$version_specific_libs" >&6; }
13180
13181 # Version-specific runtime libs processing.
13182 if test $version_specific_libs = yes; then
13183   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13184   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13185 fi
13186
13187 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13188 # Install a library built with a cross compiler in tooldir, not libdir.
13189 if test x"$glibgo_toolexecdir" = x"no"; then
13190   if test -n "$with_cross_host" &&
13191      test x"$with_cross_host" != x"no"; then
13192     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13193     glibgo_toolexeclibdir='${toolexecdir}/lib'
13194   else
13195     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13196     glibgo_toolexeclibdir='${libdir}'
13197   fi
13198   multi_os_directory=`$CC -print-multi-os-directory`
13199   case $multi_os_directory in
13200     .) ;; # Avoid trailing /.
13201     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13202   esac
13203 fi
13204
13205
13206
13207
13208
13209 # See if the user wants to configure without libffi.  Some
13210 # architectures don't support it.  FIXME: We should set a default
13211 # based on the host.
13212
13213 # Check whether --with-libffi was given.
13214 if test "${with_libffi+set}" = set; then :
13215   withval=$with_libffi; :
13216 else
13217   with_libffi=${with_libffi_default-yes}
13218 fi
13219
13220
13221 LIBFFI=
13222 LIBFFIINCS=
13223 if test "$with_libffi" != no; then
13224
13225 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13226
13227    LIBFFI=../libffi/libffi_convenience.la
13228    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13229 fi
13230
13231
13232
13233 is_darwin=no
13234 is_freebsd=no
13235 is_irix=no
13236 is_linux=no
13237 is_rtems=no
13238 is_solaris=no
13239 GOOS=unknown
13240 case ${host} in
13241   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13242   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13243   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13244   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13245   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13246   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13247 esac
13248  if test $is_darwin = yes; then
13249   LIBGO_IS_DARWIN_TRUE=
13250   LIBGO_IS_DARWIN_FALSE='#'
13251 else
13252   LIBGO_IS_DARWIN_TRUE='#'
13253   LIBGO_IS_DARWIN_FALSE=
13254 fi
13255
13256  if test $is_freebsd = yes; then
13257   LIBGO_IS_FREEBSD_TRUE=
13258   LIBGO_IS_FREEBSD_FALSE='#'
13259 else
13260   LIBGO_IS_FREEBSD_TRUE='#'
13261   LIBGO_IS_FREEBSD_FALSE=
13262 fi
13263
13264  if test $is_irix = yes; then
13265   LIBGO_IS_IRIX_TRUE=
13266   LIBGO_IS_IRIX_FALSE='#'
13267 else
13268   LIBGO_IS_IRIX_TRUE='#'
13269   LIBGO_IS_IRIX_FALSE=
13270 fi
13271
13272  if test $is_linux = yes; then
13273   LIBGO_IS_LINUX_TRUE=
13274   LIBGO_IS_LINUX_FALSE='#'
13275 else
13276   LIBGO_IS_LINUX_TRUE='#'
13277   LIBGO_IS_LINUX_FALSE=
13278 fi
13279
13280  if test $is_rtems = yes; then
13281   LIBGO_IS_RTEMS_TRUE=
13282   LIBGO_IS_RTEMS_FALSE='#'
13283 else
13284   LIBGO_IS_RTEMS_TRUE='#'
13285   LIBGO_IS_RTEMS_FALSE=
13286 fi
13287
13288  if test $is_solaris = yes; then
13289   LIBGO_IS_SOLARIS_TRUE=
13290   LIBGO_IS_SOLARIS_FALSE='#'
13291 else
13292   LIBGO_IS_SOLARIS_TRUE='#'
13293   LIBGO_IS_SOLARIS_FALSE=
13294 fi
13295
13296
13297
13298 is_386=no
13299 is_alpha=no
13300 is_arm=no
13301 is_m68k=no
13302 mips_abi=unknown
13303 is_ppc=no
13304 is_ppc64=no
13305 is_sparc=no
13306 is_sparc64=no
13307 is_x86_64=no
13308 GOARCH=unknown
13309 case ${host} in
13310   alpha*-*-*)
13311     is_alpha=yes
13312     GOARCH=alpha
13313     ;;
13314   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13315     is_arm=yes
13316     GOARCH=arm
13317     ;;
13318   i[34567]86-*-* | x86_64-*-*)
13319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h.  */
13321
13322 #ifdef __x86_64__
13323 #error 64-bit
13324 #endif
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327   is_386=yes
13328 else
13329   is_x86_64=yes
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332     if test "$is_386" = "yes"; then
13333       GOARCH=386
13334     else
13335       GOARCH=amd64
13336     fi
13337     ;;
13338   m68k*-*-*)
13339     is_m68k=yes
13340     GOARCH=m68k
13341     ;;
13342   mips*-*-*)
13343     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h.  */
13345
13346 #if _MIPS_SIM != _ABIO32
13347 #error not o32
13348 #endif
13349 _ACEOF
13350 if ac_fn_c_try_compile "$LINENO"; then :
13351   mips_abi="o32"
13352 else
13353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h.  */
13355
13356 #if _MIPS_SIM != _ABIN32
13357 #error not n32
13358 #endif
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361   mips_abi="n32"
13362 else
13363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h.  */
13365
13366 #if _MIPS_SIM != _ABI64
13367 #error not n64
13368 #endif
13369 _ACEOF
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371   mips_abi="n64"
13372 else
13373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h.  */
13375
13376 #if _MIPS_SIM != _ABIO64
13377 #error not o64
13378 #endif
13379 _ACEOF
13380 if ac_fn_c_try_compile "$LINENO"; then :
13381   mips_abi="o64"
13382 else
13383   as_fn_error "unknown MIPS ABI" "$LINENO" 5
13384 mips_abi="n32"
13385 fi
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393     case "$mips_abi" in
13394     "o32") GOARCH=mipso32 ;;
13395     "n32") GOARCH=mipsn32 ;;
13396     "n64") GOARCH=mipsn64 ;;
13397     "o64") GOARCH=mipso64 ;;
13398     esac
13399     ;;
13400   rs6000*-*-* | powerpc*-*-*)
13401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h.  */
13403
13404 #ifdef _ARCH_PPC64
13405 #error 64-bit
13406 #endif
13407 _ACEOF
13408 if ac_fn_c_try_compile "$LINENO"; then :
13409   is_ppc=yes
13410 else
13411   is_ppc64=yes
13412 fi
13413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414     if test "$is_ppc" = "yes"; then
13415       GOARCH=ppc
13416     else
13417       GOARCH=ppc64
13418     fi
13419     ;;
13420   sparc*-*-*)
13421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h.  */
13423
13424 #if defined(__sparcv9) || defined(__arch64__)
13425 #error 64-bit
13426 #endif
13427 _ACEOF
13428 if ac_fn_c_try_compile "$LINENO"; then :
13429   is_sparc=yes
13430 else
13431   is_sparc64=yes
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434     if test "$is_sparc" = "yes"; then
13435       GOARCH=sparc
13436     else
13437       GOARCH=sparc64
13438     fi
13439     ;;
13440 esac
13441  if test $is_386 = yes; then
13442   LIBGO_IS_386_TRUE=
13443   LIBGO_IS_386_FALSE='#'
13444 else
13445   LIBGO_IS_386_TRUE='#'
13446   LIBGO_IS_386_FALSE=
13447 fi
13448
13449  if test $is_alpha = yes; then
13450   LIBGO_IS_ALPHA_TRUE=
13451   LIBGO_IS_ALPHA_FALSE='#'
13452 else
13453   LIBGO_IS_ALPHA_TRUE='#'
13454   LIBGO_IS_ALPHA_FALSE=
13455 fi
13456
13457  if test $is_arm = yes; then
13458   LIBGO_IS_ARM_TRUE=
13459   LIBGO_IS_ARM_FALSE='#'
13460 else
13461   LIBGO_IS_ARM_TRUE='#'
13462   LIBGO_IS_ARM_FALSE=
13463 fi
13464
13465  if test $is_m68k = yes; then
13466   LIBGO_IS_M68K_TRUE=
13467   LIBGO_IS_M68K_FALSE='#'
13468 else
13469   LIBGO_IS_M68K_TRUE='#'
13470   LIBGO_IS_M68K_FALSE=
13471 fi
13472
13473  if test $mips_abi != unknown; then
13474   LIBGO_IS_MIPS_TRUE=
13475   LIBGO_IS_MIPS_FALSE='#'
13476 else
13477   LIBGO_IS_MIPS_TRUE='#'
13478   LIBGO_IS_MIPS_FALSE=
13479 fi
13480
13481  if test $mips_abi = o32; then
13482   LIBGO_IS_MIPSO32_TRUE=
13483   LIBGO_IS_MIPSO32_FALSE='#'
13484 else
13485   LIBGO_IS_MIPSO32_TRUE='#'
13486   LIBGO_IS_MIPSO32_FALSE=
13487 fi
13488
13489  if test $mips_abi = n32; then
13490   LIBGO_IS_MIPSN32_TRUE=
13491   LIBGO_IS_MIPSN32_FALSE='#'
13492 else
13493   LIBGO_IS_MIPSN32_TRUE='#'
13494   LIBGO_IS_MIPSN32_FALSE=
13495 fi
13496
13497  if test $mips_abi = n64; then
13498   LIBGO_IS_MIPSN64_TRUE=
13499   LIBGO_IS_MIPSN64_FALSE='#'
13500 else
13501   LIBGO_IS_MIPSN64_TRUE='#'
13502   LIBGO_IS_MIPSN64_FALSE=
13503 fi
13504
13505  if test $mips_abi = o64; then
13506   LIBGO_IS_MIPSO64_TRUE=
13507   LIBGO_IS_MIPSO64_FALSE='#'
13508 else
13509   LIBGO_IS_MIPSO64_TRUE='#'
13510   LIBGO_IS_MIPSO64_FALSE=
13511 fi
13512
13513  if test $is_ppc = yes; then
13514   LIBGO_IS_PPC_TRUE=
13515   LIBGO_IS_PPC_FALSE='#'
13516 else
13517   LIBGO_IS_PPC_TRUE='#'
13518   LIBGO_IS_PPC_FALSE=
13519 fi
13520
13521  if test $is_ppc64 = yes; then
13522   LIBGO_IS_PPC64_TRUE=
13523   LIBGO_IS_PPC64_FALSE='#'
13524 else
13525   LIBGO_IS_PPC64_TRUE='#'
13526   LIBGO_IS_PPC64_FALSE=
13527 fi
13528
13529  if test $is_sparc = yes; then
13530   LIBGO_IS_SPARC_TRUE=
13531   LIBGO_IS_SPARC_FALSE='#'
13532 else
13533   LIBGO_IS_SPARC_TRUE='#'
13534   LIBGO_IS_SPARC_FALSE=
13535 fi
13536
13537  if test $is_sparc64 = yes; then
13538   LIBGO_IS_SPARC64_TRUE=
13539   LIBGO_IS_SPARC64_FALSE='#'
13540 else
13541   LIBGO_IS_SPARC64_TRUE='#'
13542   LIBGO_IS_SPARC64_FALSE=
13543 fi
13544
13545  if test $is_x86_64 = yes; then
13546   LIBGO_IS_X86_64_TRUE=
13547   LIBGO_IS_X86_64_FALSE='#'
13548 else
13549   LIBGO_IS_X86_64_TRUE='#'
13550   LIBGO_IS_X86_64_FALSE=
13551 fi
13552
13553
13554
13555 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13556 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13557   GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13558 fi
13559
13560
13561 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13562 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13563   GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13564 fi
13565
13566
13567 case "$target" in
13568     mips-sgi-irix6.5*)
13569         # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13570         # msghdr in <sys/socket.h>.
13571         OSCFLAGS='-D_XOPEN_SOURCE=500'
13572         ;;
13573     *-*-solaris2.[89])
13574         # Solaris 8/9 need this so struct msghdr gets the msg_control
13575         # etc. fields in <sys/socket.h> (_XPG4_2).
13576         OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13577         ;;
13578     *-*-solaris2.1[01])
13579         # Solaris 10+ needs this so struct msghdr gets the msg_control
13580         # etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=500 as
13581         # above doesn't work with C99.
13582         OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13583         ;;
13584 esac
13585
13586
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13588 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13589 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13590   $as_echo_n "(cached) " >&6
13591 else
13592   CFLAGS_hold=$CFLAGS
13593 CFLAGS="$CFLAGS -fsplit-stack"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h.  */
13596 int i;
13597 _ACEOF
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599   libgo_cv_c_split_stack_supported=yes
13600 else
13601   libgo_cv_c_split_stack_supported=no
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 CFLAGS=$CFLAGS_hold
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13607 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13608 if test "$libgo_cv_c_split_stack_supported" = yes; then
13609   SPLIT_STACK=-fsplit-stack
13610
13611 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13612
13613 else
13614   SPLIT_STACK=
13615 fi
13616
13617  if test "$libgo_cv_c_split_stack_supported" = yes; then
13618   USING_SPLIT_STACK_TRUE=
13619   USING_SPLIT_STACK_FALSE='#'
13620 else
13621   USING_SPLIT_STACK_TRUE='#'
13622   USING_SPLIT_STACK_FALSE=
13623 fi
13624
13625
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13627 $as_echo_n "checking whether linker supports split stack... " >&6; }
13628 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13629   $as_echo_n "(cached) " >&6
13630 else
13631   libgo_cv_c_linker_supports_split_stack=no
13632 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13633   libgo_cv_c_linker_supports_split_stack=yes
13634 fi
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13637 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13638 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13639
13640 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13641
13642 fi
13643
13644 MATH_LIBS=
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13646 $as_echo_n "checking for sqrt in -lm... " >&6; }
13647 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13648   $as_echo_n "(cached) " >&6
13649 else
13650   ac_check_lib_save_LIBS=$LIBS
13651 LIBS="-lm  $LIBS"
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h.  */
13654
13655 /* Override any GCC internal prototype to avoid an error.
13656    Use char because int might match the return type of a GCC
13657    builtin and then its argument prototype would still apply.  */
13658 #ifdef __cplusplus
13659 extern "C"
13660 #endif
13661 char sqrt ();
13662 int
13663 main ()
13664 {
13665 return sqrt ();
13666   ;
13667   return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671   ac_cv_lib_m_sqrt=yes
13672 else
13673   ac_cv_lib_m_sqrt=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676     conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13680 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13681 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13682   MATH_LIBS=-lm
13683 fi
13684
13685
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13688 $as_echo_n "checking for socket libraries... " >&6; }
13689 if test "${libgo_cv_lib_sockets+set}" = set; then :
13690   $as_echo_n "(cached) " >&6
13691 else
13692   libgo_cv_lib_sockets=
13693    libgo_check_both=no
13694    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13695 if test "x$ac_cv_func_connect" = x""yes; then :
13696   libgo_check_socket=no
13697 else
13698   libgo_check_socket=yes
13699 fi
13700
13701    if test "$libgo_check_socket" = "yes"; then
13702      unset ac_cv_func_connect
13703      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13704 $as_echo_n "checking for main in -lsocket... " >&6; }
13705 if test "${ac_cv_lib_socket_main+set}" = set; then :
13706   $as_echo_n "(cached) " >&6
13707 else
13708   ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-lsocket  $LIBS"
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h.  */
13712
13713
13714 int
13715 main ()
13716 {
13717 return main ();
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 if ac_fn_c_try_link "$LINENO"; then :
13723   ac_cv_lib_socket_main=yes
13724 else
13725   ac_cv_lib_socket_main=no
13726 fi
13727 rm -f core conftest.err conftest.$ac_objext \
13728     conftest$ac_exeext conftest.$ac_ext
13729 LIBS=$ac_check_lib_save_LIBS
13730 fi
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13732 $as_echo "$ac_cv_lib_socket_main" >&6; }
13733 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13734   libgo_cv_lib_sockets="-lsocket"
13735 else
13736   libgo_check_both=yes
13737 fi
13738
13739    fi
13740    if test "$libgo_check_both" = "yes"; then
13741      libgo_old_libs=$LIBS
13742      LIBS="$LIBS -lsocket -lnsl"
13743      unset ac_cv_func_accept
13744      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13745 if test "x$ac_cv_func_accept" = x""yes; then :
13746   libgo_check_nsl=no
13747                     libgo_cv_lib_sockets="-lsocket -lnsl"
13748 fi
13749
13750      unset ac_cv_func_accept
13751      LIBS=$libgo_old_libs
13752    fi
13753    unset ac_cv_func_gethostbyname
13754    libgo_old_libs="$LIBS"
13755    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13756 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13757
13758 else
13759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13760 $as_echo_n "checking for main in -lnsl... " >&6; }
13761 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13762   $as_echo_n "(cached) " >&6
13763 else
13764   ac_check_lib_save_LIBS=$LIBS
13765 LIBS="-lnsl  $LIBS"
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h.  */
13768
13769
13770 int
13771 main ()
13772 {
13773 return main ();
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_link "$LINENO"; then :
13779   ac_cv_lib_nsl_main=yes
13780 else
13781   ac_cv_lib_nsl_main=no
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext \
13784     conftest$ac_exeext conftest.$ac_ext
13785 LIBS=$ac_check_lib_save_LIBS
13786 fi
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13788 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13789 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13790   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13791 fi
13792
13793 fi
13794
13795    unset ac_cv_func_gethostbyname
13796    LIBS=$libgo_old_libs
13797
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13800 $as_echo "$libgo_cv_lib_sockets" >&6; }
13801 NET_LIBS="$libgo_cv_lib_sockets"
13802
13803
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13805 $as_echo_n "checking whether -pthread is supported... " >&6; }
13806 if test "${libgo_cv_lib_pthread+set}" = set; then :
13807   $as_echo_n "(cached) " >&6
13808 else
13809   CFLAGS_hold=$CFLAGS
13810 CFLAGS="$CFLAGS -pthread"
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h.  */
13813 int i;
13814 _ACEOF
13815 if ac_fn_c_try_compile "$LINENO"; then :
13816   libgo_cv_lib_pthread=yes
13817 else
13818   libgo_cv_lib_pthread=no
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 CFLAGS=$CFLAGS_hold
13822 fi
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13824 $as_echo "$libgo_cv_lib_pthread" >&6; }
13825 PTHREAD_CFLAGS=
13826 if test "$libgo_cv_lib_pthread" = yes; then
13827   PTHREAD_CFLAGS=-pthread
13828 fi
13829
13830
13831 PTHREAD_LIBS=
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13833 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13834 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13835   $as_echo_n "(cached) " >&6
13836 else
13837   ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lpthread  $LIBS"
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h.  */
13841
13842 /* Override any GCC internal prototype to avoid an error.
13843    Use char because int might match the return type of a GCC
13844    builtin and then its argument prototype would still apply.  */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char pthread_create ();
13849 int
13850 main ()
13851 {
13852 return pthread_create ();
13853   ;
13854   return 0;
13855 }
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858   ac_cv_lib_pthread_pthread_create=yes
13859 else
13860   ac_cv_lib_pthread_pthread_create=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext \
13863     conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13865 fi
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13867 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13868 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13869   PTHREAD_LIBS=-lpthread
13870 fi
13871
13872
13873
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13875 $as_echo_n "checking for library containing sched_yield... " >&6; }
13876 if test "${ac_cv_search_sched_yield+set}" = set; then :
13877   $as_echo_n "(cached) " >&6
13878 else
13879   ac_func_search_save_LIBS=$LIBS
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h.  */
13882
13883 /* Override any GCC internal prototype to avoid an error.
13884    Use char because int might match the return type of a GCC
13885    builtin and then its argument prototype would still apply.  */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char sched_yield ();
13890 int
13891 main ()
13892 {
13893 return sched_yield ();
13894   ;
13895   return 0;
13896 }
13897 _ACEOF
13898 for ac_lib in '' rt; do
13899   if test -z "$ac_lib"; then
13900     ac_res="none required"
13901   else
13902     ac_res=-l$ac_lib
13903     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13904   fi
13905   if ac_fn_c_try_link "$LINENO"; then :
13906   ac_cv_search_sched_yield=$ac_res
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext \
13909     conftest$ac_exeext
13910   if test "${ac_cv_search_sched_yield+set}" = set; then :
13911   break
13912 fi
13913 done
13914 if test "${ac_cv_search_sched_yield+set}" = set; then :
13915
13916 else
13917   ac_cv_search_sched_yield=no
13918 fi
13919 rm conftest.$ac_ext
13920 LIBS=$ac_func_search_save_LIBS
13921 fi
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13923 $as_echo "$ac_cv_search_sched_yield" >&6; }
13924 ac_res=$ac_cv_search_sched_yield
13925 if test "$ac_res" != no; then :
13926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13927
13928 fi
13929
13930
13931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13932 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13933 if test "${ac_cv_c_bigendian+set}" = set; then :
13934   $as_echo_n "(cached) " >&6
13935 else
13936   ac_cv_c_bigendian=unknown
13937     # See if we're dealing with a universal compiler.
13938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940 #ifndef __APPLE_CC__
13941                not a universal capable compiler
13942              #endif
13943              typedef int dummy;
13944
13945 _ACEOF
13946 if ac_fn_c_try_compile "$LINENO"; then :
13947
13948         # Check for potential -arch flags.  It is not universal unless
13949         # there are at least two -arch flags with different values.
13950         ac_arch=
13951         ac_prev=
13952         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13953          if test -n "$ac_prev"; then
13954            case $ac_word in
13955              i?86 | x86_64 | ppc | ppc64)
13956                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13957                  ac_arch=$ac_word
13958                else
13959                  ac_cv_c_bigendian=universal
13960                  break
13961                fi
13962                ;;
13963            esac
13964            ac_prev=
13965          elif test "x$ac_word" = "x-arch"; then
13966            ac_prev=arch
13967          fi
13968        done
13969 fi
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971     if test $ac_cv_c_bigendian = unknown; then
13972       # See if sys/param.h defines the BYTE_ORDER macro.
13973       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h.  */
13975 #include <sys/types.h>
13976              #include <sys/param.h>
13977
13978 int
13979 main ()
13980 {
13981 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13982                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13983                      && LITTLE_ENDIAN)
13984               bogus endian macros
13985              #endif
13986
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992   # It does; now see whether it defined to BIG_ENDIAN or not.
13993          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h.  */
13995 #include <sys/types.h>
13996                 #include <sys/param.h>
13997
13998 int
13999 main ()
14000 {
14001 #if BYTE_ORDER != BIG_ENDIAN
14002                  not big endian
14003                 #endif
14004
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010   ac_cv_c_bigendian=yes
14011 else
14012   ac_cv_c_bigendian=no
14013 fi
14014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017     fi
14018     if test $ac_cv_c_bigendian = unknown; then
14019       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h.  */
14022 #include <limits.h>
14023
14024 int
14025 main ()
14026 {
14027 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14028               bogus endian macros
14029              #endif
14030
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_compile "$LINENO"; then :
14036   # It does; now see whether it defined to _BIG_ENDIAN or not.
14037          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h.  */
14039 #include <limits.h>
14040
14041 int
14042 main ()
14043 {
14044 #ifndef _BIG_ENDIAN
14045                  not big endian
14046                 #endif
14047
14048   ;
14049   return 0;
14050 }
14051 _ACEOF
14052 if ac_fn_c_try_compile "$LINENO"; then :
14053   ac_cv_c_bigendian=yes
14054 else
14055   ac_cv_c_bigendian=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060     fi
14061     if test $ac_cv_c_bigendian = unknown; then
14062       # Compile a test program.
14063       if test "$cross_compiling" = yes; then :
14064   # Try to guess by grepping values from an object file.
14065          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h.  */
14067 short int ascii_mm[] =
14068                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14069                 short int ascii_ii[] =
14070                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14071                 int use_ascii (int i) {
14072                   return ascii_mm[i] + ascii_ii[i];
14073                 }
14074                 short int ebcdic_ii[] =
14075                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14076                 short int ebcdic_mm[] =
14077                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14078                 int use_ebcdic (int i) {
14079                   return ebcdic_mm[i] + ebcdic_ii[i];
14080                 }
14081                 extern int foo;
14082
14083 int
14084 main ()
14085 {
14086 return use_ascii (foo) == use_ebcdic (foo);
14087   ;
14088   return 0;
14089 }
14090 _ACEOF
14091 if ac_fn_c_try_compile "$LINENO"; then :
14092   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14093               ac_cv_c_bigendian=yes
14094             fi
14095             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14096               if test "$ac_cv_c_bigendian" = unknown; then
14097                 ac_cv_c_bigendian=no
14098               else
14099                 # finding both strings is unlikely to happen, but who knows?
14100                 ac_cv_c_bigendian=unknown
14101               fi
14102             fi
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 else
14106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h.  */
14108 $ac_includes_default
14109 int
14110 main ()
14111 {
14112
14113              /* Are we little or big endian?  From Harbison&Steele.  */
14114              union
14115              {
14116                long int l;
14117                char c[sizeof (long int)];
14118              } u;
14119              u.l = 1;
14120              return u.c[sizeof (long int) - 1] == 1;
14121
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 if ac_fn_c_try_run "$LINENO"; then :
14127   ac_cv_c_bigendian=no
14128 else
14129   ac_cv_c_bigendian=yes
14130 fi
14131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14132   conftest.$ac_objext conftest.beam conftest.$ac_ext
14133 fi
14134
14135     fi
14136 fi
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14138 $as_echo "$ac_cv_c_bigendian" >&6; }
14139  case $ac_cv_c_bigendian in #(
14140    yes)
14141      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14142 ;; #(
14143    no)
14144       ;; #(
14145    universal)
14146
14147 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14148
14149      ;; #(
14150    *)
14151      as_fn_error "unknown endianness
14152  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14153  esac
14154
14155
14156
14157
14158 # Check whether --with-system-libunwind was given.
14159 if test "${with_system_libunwind+set}" = set; then :
14160   withval=$with_system_libunwind;
14161 fi
14162
14163   # If system-libunwind was not specifically set, pick a default setting.
14164   if test x$with_system_libunwind = x; then
14165     case ${target} in
14166       ia64-*-hpux*) with_system_libunwind=yes ;;
14167       *) with_system_libunwind=no ;;
14168     esac
14169   fi
14170   # Based on system-libunwind and target, do we have ipinfo?
14171   if  test x$with_system_libunwind = xyes; then
14172     case ${target} in
14173       ia64-*-*) have_unwind_getipinfo=no ;;
14174       *) have_unwind_getipinfo=yes ;;
14175     esac
14176   else
14177     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14178
14179     case ${target} in
14180       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14181       *) have_unwind_getipinfo=yes ;;
14182     esac
14183
14184   fi
14185
14186   if test x$have_unwind_getipinfo = xyes; then
14187
14188 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14189
14190   fi
14191
14192
14193 # Check whether --enable-sjlj-exceptions was given.
14194 if test "${enable_sjlj_exceptions+set}" = set; then :
14195   enableval=$enable_sjlj_exceptions; case "$enableval" in
14196    yes|no|auto) ;;
14197    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14198    esac
14199 else
14200   enable_sjlj_exceptions=auto
14201 fi
14202
14203
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14205 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14206 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14207   $as_echo_n "(cached) " >&6
14208 else
14209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211
14212 void bar ();
14213 void clean (int *);
14214 void foo ()
14215 {
14216   int i __attribute__ ((cleanup (clean)));
14217   bar();
14218 }
14219
14220 _ACEOF
14221 CFLAGS_hold=$CFLAGS
14222 CFLAGS="--save-temps -fexceptions"
14223 libgo_cv_lib_sjlj_exceptions=unknown
14224 if ac_fn_c_try_compile; then :
14225   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14226     libgo_cv_lib_sjlj_exceptions=yes
14227   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14228     libgo_cv_lib_sjlj_exceptions=no
14229   fi
14230 fi
14231 CFLAGS=$CFLAGS_hold
14232 rm -f conftest*
14233
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14236 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14237
14238 if test "$enable_sjlj_exceptions" = "auto"; then
14239   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14240 fi
14241
14242 case $enable_sjlj_exceptions in
14243 yes)
14244
14245 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14246
14247   ;;
14248 no)
14249   ;;
14250 *)
14251   as_fn_error "unable to detect exception model" "$LINENO" 5
14252   ;;
14253 esac
14254
14255 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h
14256 do :
14257   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14259 eval as_val=\$$as_ac_Header
14260    if test "x$as_val" = x""yes; then :
14261   cat >>confdefs.h <<_ACEOF
14262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14263 _ACEOF
14264
14265 fi
14266
14267 done
14268
14269  if test "$ac_cv_header_sys_mman_h" = yes; then
14270   HAVE_SYS_MMAN_H_TRUE=
14271   HAVE_SYS_MMAN_H_FALSE='#'
14272 else
14273   HAVE_SYS_MMAN_H_TRUE='#'
14274   HAVE_SYS_MMAN_H_FALSE=
14275 fi
14276
14277
14278 for ac_func in srandom random strerror_r strsignal wait4 mincore setenv
14279 do :
14280   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14282 eval as_val=\$$as_ac_var
14283    if test "x$as_val" = x""yes; then :
14284   cat >>confdefs.h <<_ACEOF
14285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14286 _ACEOF
14287
14288 fi
14289 done
14290
14291  if test "$ac_cv_func_strerror_r" = yes; then
14292   HAVE_STRERROR_R_TRUE=
14293   HAVE_STRERROR_R_FALSE='#'
14294 else
14295   HAVE_STRERROR_R_TRUE='#'
14296   HAVE_STRERROR_R_FALSE=
14297 fi
14298
14299  if test "$ac_cv_func_wait4" = yes; then
14300   HAVE_WAIT4_TRUE=
14301   HAVE_WAIT4_FALSE='#'
14302 else
14303   HAVE_WAIT4_TRUE='#'
14304   HAVE_WAIT4_FALSE=
14305 fi
14306
14307
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14309 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14310 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14311   $as_echo_n "(cached) " >&6
14312 else
14313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h.  */
14315
14316 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14317 uint32 i;
14318 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14319
14320 _ACEOF
14321 if ac_fn_c_try_link "$LINENO"; then :
14322   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14323 else
14324   libgo_cv_func___sync_bool_compare_and_swap_4=no
14325 fi
14326 rm -f core conftest.err conftest.$ac_objext \
14327     conftest$ac_exeext conftest.$ac_ext
14328 fi
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14330 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14331 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14332
14333 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14334
14335 fi
14336
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14338 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14339 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14340   $as_echo_n "(cached) " >&6
14341 else
14342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h.  */
14344
14345 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14346 uint32 i;
14347 int main() { return __sync_fetch_and_add (&i, 1); }
14348
14349 _ACEOF
14350 if ac_fn_c_try_link "$LINENO"; then :
14351   libgo_cv_func___sync_fetch_and_add_4=yes
14352 else
14353   libgo_cv_func___sync_fetch_and_add_4=no
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext \
14356     conftest$ac_exeext conftest.$ac_ext
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14359 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14360 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14361
14362 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14363
14364 fi
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14367 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14368 if test "${libgo_cv_c_stringops+set}" = set; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371   CFLAGS_hold=$CFLAGS
14372 CFLAGS="$CFLAGS -minline-all-stringops"
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h.  */
14375 int i;
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378   libgo_cv_c_stringops=yes
14379 else
14380   libgo_cv_c_stringops=no
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 CFLAGS=$CFLAGS_hold
14384 fi
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14386 $as_echo "$libgo_cv_c_stringops" >&6; }
14387 STRINGOPS_FLAG=
14388 if test "$libgo_cv_c_stringops" = yes; then
14389   STRINGOPS_FLAG=-minline-all-stringops
14390 fi
14391
14392
14393 CFLAGS_hold=$CFLAGS
14394 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14395 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14396 if test "x$ac_cv_type_off64_t" = x""yes; then :
14397
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_OFF64_T 1
14400 _ACEOF
14401
14402
14403 fi
14404
14405 CFLAGS=$CFLAGS_hold
14406
14407 cat >confcache <<\_ACEOF
14408 # This file is a shell script that caches the results of configure
14409 # tests run on this system so they can be shared between configure
14410 # scripts and configure runs, see configure's option --config-cache.
14411 # It is not useful on other systems.  If it contains results you don't
14412 # want to keep, you may remove or edit it.
14413 #
14414 # config.status only pays attention to the cache file if you give it
14415 # the --recheck option to rerun configure.
14416 #
14417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14419 # following values.
14420
14421 _ACEOF
14422
14423 # The following way of writing the cache mishandles newlines in values,
14424 # but we know of no workaround that is simple, portable, and efficient.
14425 # So, we kill variables containing newlines.
14426 # Ultrix sh set writes to stderr and can't be redirected directly,
14427 # and sets the high bit in the cache file unless we assign to the vars.
14428 (
14429   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14430     eval ac_val=\$$ac_var
14431     case $ac_val in #(
14432     *${as_nl}*)
14433       case $ac_var in #(
14434       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14436       esac
14437       case $ac_var in #(
14438       _ | IFS | as_nl) ;; #(
14439       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14440       *) { eval $ac_var=; unset $ac_var;} ;;
14441       esac ;;
14442     esac
14443   done
14444
14445   (set) 2>&1 |
14446     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14447     *${as_nl}ac_space=\ *)
14448       # `set' does not quote correctly, so add quotes: double-quote
14449       # substitution turns \\\\ into \\, and sed turns \\ into \.
14450       sed -n \
14451         "s/'/'\\\\''/g;
14452           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14453       ;; #(
14454     *)
14455       # `set' quotes correctly as required by POSIX, so do not add quotes.
14456       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14457       ;;
14458     esac |
14459     sort
14460 ) |
14461   sed '
14462      /^ac_cv_env_/b end
14463      t clear
14464      :clear
14465      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14466      t end
14467      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14468      :end' >>confcache
14469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14470   if test -w "$cache_file"; then
14471     test "x$cache_file" != "x/dev/null" &&
14472       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14473 $as_echo "$as_me: updating cache $cache_file" >&6;}
14474     cat confcache >$cache_file
14475   else
14476     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14477 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14478   fi
14479 fi
14480 rm -f confcache
14481
14482 if test ${multilib} = yes; then
14483   multilib_arg="--enable-multilib"
14484 else
14485   multilib_arg=
14486 fi
14487
14488 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14489
14490
14491 ac_config_commands="$ac_config_commands default"
14492
14493
14494 cat >confcache <<\_ACEOF
14495 # This file is a shell script that caches the results of configure
14496 # tests run on this system so they can be shared between configure
14497 # scripts and configure runs, see configure's option --config-cache.
14498 # It is not useful on other systems.  If it contains results you don't
14499 # want to keep, you may remove or edit it.
14500 #
14501 # config.status only pays attention to the cache file if you give it
14502 # the --recheck option to rerun configure.
14503 #
14504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14506 # following values.
14507
14508 _ACEOF
14509
14510 # The following way of writing the cache mishandles newlines in values,
14511 # but we know of no workaround that is simple, portable, and efficient.
14512 # So, we kill variables containing newlines.
14513 # Ultrix sh set writes to stderr and can't be redirected directly,
14514 # and sets the high bit in the cache file unless we assign to the vars.
14515 (
14516   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14517     eval ac_val=\$$ac_var
14518     case $ac_val in #(
14519     *${as_nl}*)
14520       case $ac_var in #(
14521       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14523       esac
14524       case $ac_var in #(
14525       _ | IFS | as_nl) ;; #(
14526       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14527       *) { eval $ac_var=; unset $ac_var;} ;;
14528       esac ;;
14529     esac
14530   done
14531
14532   (set) 2>&1 |
14533     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14534     *${as_nl}ac_space=\ *)
14535       # `set' does not quote correctly, so add quotes: double-quote
14536       # substitution turns \\\\ into \\, and sed turns \\ into \.
14537       sed -n \
14538         "s/'/'\\\\''/g;
14539           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14540       ;; #(
14541     *)
14542       # `set' quotes correctly as required by POSIX, so do not add quotes.
14543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14544       ;;
14545     esac |
14546     sort
14547 ) |
14548   sed '
14549      /^ac_cv_env_/b end
14550      t clear
14551      :clear
14552      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14553      t end
14554      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14555      :end' >>confcache
14556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14557   if test -w "$cache_file"; then
14558     test "x$cache_file" != "x/dev/null" &&
14559       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14560 $as_echo "$as_me: updating cache $cache_file" >&6;}
14561     cat confcache >$cache_file
14562   else
14563     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14565   fi
14566 fi
14567 rm -f confcache
14568
14569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14570 # Let make expand exec_prefix.
14571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14572
14573 DEFS=-DHAVE_CONFIG_H
14574
14575 ac_libobjs=
14576 ac_ltlibobjs=
14577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14578   # 1. Remove the extension, and $U if already installed.
14579   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14580   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14581   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14582   #    will be set to the directory where LIBOBJS objects are built.
14583   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14584   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14585 done
14586 LIBOBJS=$ac_libobjs
14587
14588 LTLIBOBJS=$ac_ltlibobjs
14589
14590
14591  if test -n "$EXEEXT"; then
14592   am__EXEEXT_TRUE=
14593   am__EXEEXT_FALSE='#'
14594 else
14595   am__EXEEXT_TRUE='#'
14596   am__EXEEXT_FALSE=
14597 fi
14598
14599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14600   as_fn_error "conditional \"AMDEP\" was never defined.
14601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14602 fi
14603 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14604   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14606 fi
14607 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14608   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14610 fi
14611 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14612   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14614 fi
14615 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14616   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14618 fi
14619 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14620   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14622 fi
14623 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14624   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14626 fi
14627 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14628   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14630 fi
14631 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14632   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14634 fi
14635 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14636   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14638 fi
14639 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14640   as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14642 fi
14643 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14644   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14646 fi
14647 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14648   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14650 fi
14651 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14652   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14654 fi
14655 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14656   as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14658 fi
14659 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14660   as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14662 fi
14663 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14664   as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14666 fi
14667 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14668   as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14670 fi
14671 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14672   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14674 fi
14675 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14676   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14678 fi
14679 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14680   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14682 fi
14683 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14684   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14686 fi
14687 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14688   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14690 fi
14691 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14692   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694 fi
14695
14696 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14697   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14699 fi
14700 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14701   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14703 fi
14704 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14705   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14707 fi
14708
14709 : ${CONFIG_STATUS=./config.status}
14710 ac_write_fail=0
14711 ac_clean_files_save=$ac_clean_files
14712 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14714 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14715 as_write_fail=0
14716 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14717 #! $SHELL
14718 # Generated by $as_me.
14719 # Run this file to recreate the current configuration.
14720 # Compiler output produced by configure, useful for debugging
14721 # configure, is in config.log if it exists.
14722
14723 debug=false
14724 ac_cs_recheck=false
14725 ac_cs_silent=false
14726
14727 SHELL=\${CONFIG_SHELL-$SHELL}
14728 export SHELL
14729 _ASEOF
14730 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14731 ## -------------------- ##
14732 ## M4sh Initialization. ##
14733 ## -------------------- ##
14734
14735 # Be more Bourne compatible
14736 DUALCASE=1; export DUALCASE # for MKS sh
14737 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14738   emulate sh
14739   NULLCMD=:
14740   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14741   # is contrary to our usage.  Disable this feature.
14742   alias -g '${1+"$@"}'='"$@"'
14743   setopt NO_GLOB_SUBST
14744 else
14745   case `(set -o) 2>/dev/null` in #(
14746   *posix*) :
14747     set -o posix ;; #(
14748   *) :
14749      ;;
14750 esac
14751 fi
14752
14753
14754 as_nl='
14755 '
14756 export as_nl
14757 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14758 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14760 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14761 # Prefer a ksh shell builtin over an external printf program on Solaris,
14762 # but without wasting forks for bash or zsh.
14763 if test -z "$BASH_VERSION$ZSH_VERSION" \
14764     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14765   as_echo='print -r --'
14766   as_echo_n='print -rn --'
14767 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14768   as_echo='printf %s\n'
14769   as_echo_n='printf %s'
14770 else
14771   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14772     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14773     as_echo_n='/usr/ucb/echo -n'
14774   else
14775     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14776     as_echo_n_body='eval
14777       arg=$1;
14778       case $arg in #(
14779       *"$as_nl"*)
14780         expr "X$arg" : "X\\(.*\\)$as_nl";
14781         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14782       esac;
14783       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14784     '
14785     export as_echo_n_body
14786     as_echo_n='sh -c $as_echo_n_body as_echo'
14787   fi
14788   export as_echo_body
14789   as_echo='sh -c $as_echo_body as_echo'
14790 fi
14791
14792 # The user is always right.
14793 if test "${PATH_SEPARATOR+set}" != set; then
14794   PATH_SEPARATOR=:
14795   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14796     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14797       PATH_SEPARATOR=';'
14798   }
14799 fi
14800
14801
14802 # IFS
14803 # We need space, tab and new line, in precisely that order.  Quoting is
14804 # there to prevent editors from complaining about space-tab.
14805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14806 # splitting by setting IFS to empty value.)
14807 IFS=" ""        $as_nl"
14808
14809 # Find who we are.  Look in the path if we contain no directory separator.
14810 case $0 in #((
14811   *[\\/]* ) as_myself=$0 ;;
14812   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14813 for as_dir in $PATH
14814 do
14815   IFS=$as_save_IFS
14816   test -z "$as_dir" && as_dir=.
14817     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14818   done
14819 IFS=$as_save_IFS
14820
14821      ;;
14822 esac
14823 # We did not find ourselves, most probably we were run as `sh COMMAND'
14824 # in which case we are not to be found in the path.
14825 if test "x$as_myself" = x; then
14826   as_myself=$0
14827 fi
14828 if test ! -f "$as_myself"; then
14829   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14830   exit 1
14831 fi
14832
14833 # Unset variables that we do not need and which cause bugs (e.g. in
14834 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14835 # suppresses any "Segmentation fault" message there.  '((' could
14836 # trigger a bug in pdksh 5.2.14.
14837 for as_var in BASH_ENV ENV MAIL MAILPATH
14838 do eval test x\${$as_var+set} = xset \
14839   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14840 done
14841 PS1='$ '
14842 PS2='> '
14843 PS4='+ '
14844
14845 # NLS nuisances.
14846 LC_ALL=C
14847 export LC_ALL
14848 LANGUAGE=C
14849 export LANGUAGE
14850
14851 # CDPATH.
14852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14853
14854
14855 # as_fn_error ERROR [LINENO LOG_FD]
14856 # ---------------------------------
14857 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14858 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14859 # script with status $?, using 1 if that was 0.
14860 as_fn_error ()
14861 {
14862   as_status=$?; test $as_status -eq 0 && as_status=1
14863   if test "$3"; then
14864     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14865     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14866   fi
14867   $as_echo "$as_me: error: $1" >&2
14868   as_fn_exit $as_status
14869 } # as_fn_error
14870
14871
14872 # as_fn_set_status STATUS
14873 # -----------------------
14874 # Set $? to STATUS, without forking.
14875 as_fn_set_status ()
14876 {
14877   return $1
14878 } # as_fn_set_status
14879
14880 # as_fn_exit STATUS
14881 # -----------------
14882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14883 as_fn_exit ()
14884 {
14885   set +e
14886   as_fn_set_status $1
14887   exit $1
14888 } # as_fn_exit
14889
14890 # as_fn_unset VAR
14891 # ---------------
14892 # Portably unset VAR.
14893 as_fn_unset ()
14894 {
14895   { eval $1=; unset $1;}
14896 }
14897 as_unset=as_fn_unset
14898 # as_fn_append VAR VALUE
14899 # ----------------------
14900 # Append the text in VALUE to the end of the definition contained in VAR. Take
14901 # advantage of any shell optimizations that allow amortized linear growth over
14902 # repeated appends, instead of the typical quadratic growth present in naive
14903 # implementations.
14904 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14905   eval 'as_fn_append ()
14906   {
14907     eval $1+=\$2
14908   }'
14909 else
14910   as_fn_append ()
14911   {
14912     eval $1=\$$1\$2
14913   }
14914 fi # as_fn_append
14915
14916 # as_fn_arith ARG...
14917 # ------------------
14918 # Perform arithmetic evaluation on the ARGs, and store the result in the
14919 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14920 # must be portable across $(()) and expr.
14921 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14922   eval 'as_fn_arith ()
14923   {
14924     as_val=$(( $* ))
14925   }'
14926 else
14927   as_fn_arith ()
14928   {
14929     as_val=`expr "$@" || test $? -eq 1`
14930   }
14931 fi # as_fn_arith
14932
14933
14934 if expr a : '\(a\)' >/dev/null 2>&1 &&
14935    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14936   as_expr=expr
14937 else
14938   as_expr=false
14939 fi
14940
14941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14942   as_basename=basename
14943 else
14944   as_basename=false
14945 fi
14946
14947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14948   as_dirname=dirname
14949 else
14950   as_dirname=false
14951 fi
14952
14953 as_me=`$as_basename -- "$0" ||
14954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14955          X"$0" : 'X\(//\)$' \| \
14956          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14957 $as_echo X/"$0" |
14958     sed '/^.*\/\([^/][^/]*\)\/*$/{
14959             s//\1/
14960             q
14961           }
14962           /^X\/\(\/\/\)$/{
14963             s//\1/
14964             q
14965           }
14966           /^X\/\(\/\).*/{
14967             s//\1/
14968             q
14969           }
14970           s/.*/./; q'`
14971
14972 # Avoid depending upon Character Ranges.
14973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14976 as_cr_digits='0123456789'
14977 as_cr_alnum=$as_cr_Letters$as_cr_digits
14978
14979 ECHO_C= ECHO_N= ECHO_T=
14980 case `echo -n x` in #(((((
14981 -n*)
14982   case `echo 'xy\c'` in
14983   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14984   xy)  ECHO_C='\c';;
14985   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14986        ECHO_T=' ';;
14987   esac;;
14988 *)
14989   ECHO_N='-n';;
14990 esac
14991
14992 rm -f conf$$ conf$$.exe conf$$.file
14993 if test -d conf$$.dir; then
14994   rm -f conf$$.dir/conf$$.file
14995 else
14996   rm -f conf$$.dir
14997   mkdir conf$$.dir 2>/dev/null
14998 fi
14999 if (echo >conf$$.file) 2>/dev/null; then
15000   if ln -s conf$$.file conf$$ 2>/dev/null; then
15001     as_ln_s='ln -s'
15002     # ... but there are two gotchas:
15003     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15004     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15005     # In both cases, we have to default to `cp -p'.
15006     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15007       as_ln_s='cp -p'
15008   elif ln conf$$.file conf$$ 2>/dev/null; then
15009     as_ln_s=ln
15010   else
15011     as_ln_s='cp -p'
15012   fi
15013 else
15014   as_ln_s='cp -p'
15015 fi
15016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15017 rmdir conf$$.dir 2>/dev/null
15018
15019
15020 # as_fn_mkdir_p
15021 # -------------
15022 # Create "$as_dir" as a directory, including parents if necessary.
15023 as_fn_mkdir_p ()
15024 {
15025
15026   case $as_dir in #(
15027   -*) as_dir=./$as_dir;;
15028   esac
15029   test -d "$as_dir" || eval $as_mkdir_p || {
15030     as_dirs=
15031     while :; do
15032       case $as_dir in #(
15033       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15034       *) as_qdir=$as_dir;;
15035       esac
15036       as_dirs="'$as_qdir' $as_dirs"
15037       as_dir=`$as_dirname -- "$as_dir" ||
15038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15039          X"$as_dir" : 'X\(//\)[^/]' \| \
15040          X"$as_dir" : 'X\(//\)$' \| \
15041          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15042 $as_echo X"$as_dir" |
15043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15044             s//\1/
15045             q
15046           }
15047           /^X\(\/\/\)[^/].*/{
15048             s//\1/
15049             q
15050           }
15051           /^X\(\/\/\)$/{
15052             s//\1/
15053             q
15054           }
15055           /^X\(\/\).*/{
15056             s//\1/
15057             q
15058           }
15059           s/.*/./; q'`
15060       test -d "$as_dir" && break
15061     done
15062     test -z "$as_dirs" || eval "mkdir $as_dirs"
15063   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15064
15065
15066 } # as_fn_mkdir_p
15067 if mkdir -p . 2>/dev/null; then
15068   as_mkdir_p='mkdir -p "$as_dir"'
15069 else
15070   test -d ./-p && rmdir ./-p
15071   as_mkdir_p=false
15072 fi
15073
15074 if test -x / >/dev/null 2>&1; then
15075   as_test_x='test -x'
15076 else
15077   if ls -dL / >/dev/null 2>&1; then
15078     as_ls_L_option=L
15079   else
15080     as_ls_L_option=
15081   fi
15082   as_test_x='
15083     eval sh -c '\''
15084       if test -d "$1"; then
15085         test -d "$1/.";
15086       else
15087         case $1 in #(
15088         -*)set "./$1";;
15089         esac;
15090         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15091         ???[sx]*):;;*)false;;esac;fi
15092     '\'' sh
15093   '
15094 fi
15095 as_executable_p=$as_test_x
15096
15097 # Sed expression to map a string onto a valid CPP name.
15098 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15099
15100 # Sed expression to map a string onto a valid variable name.
15101 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15102
15103
15104 exec 6>&1
15105 ## ----------------------------------- ##
15106 ## Main body of $CONFIG_STATUS script. ##
15107 ## ----------------------------------- ##
15108 _ASEOF
15109 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15110
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 # Save the log message, to keep $0 and so on meaningful, and to
15113 # report actual input values of CONFIG_FILES etc. instead of their
15114 # values after options handling.
15115 ac_log="
15116 This file was extended by package-unused $as_me version-unused, which was
15117 generated by GNU Autoconf 2.64.  Invocation command line was
15118
15119   CONFIG_FILES    = $CONFIG_FILES
15120   CONFIG_HEADERS  = $CONFIG_HEADERS
15121   CONFIG_LINKS    = $CONFIG_LINKS
15122   CONFIG_COMMANDS = $CONFIG_COMMANDS
15123   $ $0 $@
15124
15125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15126 "
15127
15128 _ACEOF
15129
15130 case $ac_config_files in *"
15131 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15132 esac
15133
15134 case $ac_config_headers in *"
15135 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15136 esac
15137
15138
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 # Files that config.status was made for.
15141 config_files="$ac_config_files"
15142 config_headers="$ac_config_headers"
15143 config_commands="$ac_config_commands"
15144
15145 _ACEOF
15146
15147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15148 ac_cs_usage="\
15149 \`$as_me' instantiates files and other configuration actions
15150 from templates according to the current configuration.  Unless the files
15151 and actions are specified as TAGs, all are instantiated by default.
15152
15153 Usage: $0 [OPTION]... [TAG]...
15154
15155   -h, --help       print this help, then exit
15156   -V, --version    print version number and configuration settings, then exit
15157   -q, --quiet, --silent
15158                    do not print progress messages
15159   -d, --debug      don't remove temporary files
15160       --recheck    update $as_me by reconfiguring in the same conditions
15161       --file=FILE[:TEMPLATE]
15162                    instantiate the configuration file FILE
15163       --header=FILE[:TEMPLATE]
15164                    instantiate the configuration header FILE
15165
15166 Configuration files:
15167 $config_files
15168
15169 Configuration headers:
15170 $config_headers
15171
15172 Configuration commands:
15173 $config_commands
15174
15175 Report bugs to the package provider."
15176
15177 _ACEOF
15178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15179 ac_cs_version="\\
15180 package-unused config.status version-unused
15181 configured by $0, generated by GNU Autoconf 2.64,
15182   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15183
15184 Copyright (C) 2009 Free Software Foundation, Inc.
15185 This config.status script is free software; the Free Software Foundation
15186 gives unlimited permission to copy, distribute and modify it."
15187
15188 ac_pwd='$ac_pwd'
15189 srcdir='$srcdir'
15190 INSTALL='$INSTALL'
15191 MKDIR_P='$MKDIR_P'
15192 AWK='$AWK'
15193 test -n "\$AWK" || AWK=awk
15194 _ACEOF
15195
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 # The default lists apply if the user does not specify any file.
15198 ac_need_defaults=:
15199 while test $# != 0
15200 do
15201   case $1 in
15202   --*=*)
15203     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15204     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15205     ac_shift=:
15206     ;;
15207   *)
15208     ac_option=$1
15209     ac_optarg=$2
15210     ac_shift=shift
15211     ;;
15212   esac
15213
15214   case $ac_option in
15215   # Handling of the options.
15216   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15217     ac_cs_recheck=: ;;
15218   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15219     $as_echo "$ac_cs_version"; exit ;;
15220   --debug | --debu | --deb | --de | --d | -d )
15221     debug=: ;;
15222   --file | --fil | --fi | --f )
15223     $ac_shift
15224     case $ac_optarg in
15225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15226     esac
15227     as_fn_append CONFIG_FILES " '$ac_optarg'"
15228     ac_need_defaults=false;;
15229   --header | --heade | --head | --hea )
15230     $ac_shift
15231     case $ac_optarg in
15232     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15233     esac
15234     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15235     ac_need_defaults=false;;
15236   --he | --h)
15237     # Conflict between --help and --header
15238     as_fn_error "ambiguous option: \`$1'
15239 Try \`$0 --help' for more information.";;
15240   --help | --hel | -h )
15241     $as_echo "$ac_cs_usage"; exit ;;
15242   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15243   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15244     ac_cs_silent=: ;;
15245
15246   # This is an error.
15247   -*) as_fn_error "unrecognized option: \`$1'
15248 Try \`$0 --help' for more information." ;;
15249
15250   *) as_fn_append ac_config_targets " $1"
15251      ac_need_defaults=false ;;
15252
15253   esac
15254   shift
15255 done
15256
15257 ac_configure_extra_args=
15258
15259 if $ac_cs_silent; then
15260   exec 6>/dev/null
15261   ac_configure_extra_args="$ac_configure_extra_args --silent"
15262 fi
15263
15264 _ACEOF
15265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15266 if \$ac_cs_recheck; then
15267   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15268   shift
15269   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15270   CONFIG_SHELL='$SHELL'
15271   export CONFIG_SHELL
15272   exec "\$@"
15273 fi
15274
15275 _ACEOF
15276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15277 exec 5>>config.log
15278 {
15279   echo
15280   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15281 ## Running $as_me. ##
15282 _ASBOX
15283   $as_echo "$ac_log"
15284 } >&5
15285
15286 _ACEOF
15287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15288 #
15289 # INIT-COMMANDS
15290 #
15291
15292 srcdir="$srcdir"
15293 host="$host"
15294 target="$target"
15295 with_multisubdir="$with_multisubdir"
15296 with_multisrctop="$with_multisrctop"
15297 with_target_subdir="$with_target_subdir"
15298 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15299 multi_basedir="$multi_basedir"
15300 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15301 CC="$CC"
15302 CXX="$CXX"
15303 GFORTRAN="$GFORTRAN"
15304 GCJ="$GCJ"
15305 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15306
15307
15308 # The HP-UX ksh and POSIX shell print the target directory to stdout
15309 # if CDPATH is set.
15310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15311
15312 sed_quote_subst='$sed_quote_subst'
15313 double_quote_subst='$double_quote_subst'
15314 delay_variable_subst='$delay_variable_subst'
15315 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15316 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15317 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15318 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15319 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15320 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15321 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15322 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15323 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15324 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15325 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15326 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15327 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15328 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15329 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15330 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15331 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15332 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15333 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15334 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15335 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15336 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15337 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15338 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15339 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15340 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15341 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15342 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15343 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15344 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15345 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15346 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15347 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15348 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15349 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15350 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15351 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15352 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15353 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15354 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15355 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15356 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15357 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15358 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15359 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15360 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15362 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15363 lt_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"`'
15364 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15365 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15366 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15367 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15369 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15370 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15371 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15372 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15373 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15374 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15375 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15376 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15377 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15378 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15379 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15380 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15381 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15382 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15383 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15384 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15385 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15386 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15387 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15388 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15389 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15390 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15391 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15392 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15393 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15394 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15395 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15396 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15397 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15398 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15399 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15400 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15401 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15402 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15403 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15404 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15405 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15406 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15407 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15408 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15409 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15410 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15411 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15412 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15413 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15414 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15415 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15416 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15417 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15418 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15419 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15420 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15421 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15422 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15423 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15424 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15425 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15426 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15427 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15428 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15429 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15430 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15431 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15432 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15433 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15434 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15435 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15436 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15437 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15438 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15439 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15440 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15441 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15442 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15443 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15444 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15445 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15446 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15447 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15448 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15449 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15450 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15451 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15452 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15453 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15454 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15455 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15456 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15457 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15458 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15459 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15460 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15461 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15462 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15463 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15464 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15465 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15466 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15467 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15468 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15469 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15470 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15471 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15472 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15473 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15474 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15475 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15476 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15477 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15478
15479 LTCC='$LTCC'
15480 LTCFLAGS='$LTCFLAGS'
15481 compiler='$compiler_DEFAULT'
15482
15483 # A function that is used when there is no print builtin or printf.
15484 func_fallback_echo ()
15485 {
15486   eval 'cat <<_LTECHO_EOF
15487 \$1
15488 _LTECHO_EOF'
15489 }
15490
15491 # Quote evaled strings.
15492 for var in SED \
15493 GREP \
15494 EGREP \
15495 FGREP \
15496 SHELL \
15497 ECHO \
15498 LD \
15499 NM \
15500 LN_S \
15501 lt_SP2NL \
15502 lt_NL2SP \
15503 reload_flag \
15504 OBJDUMP \
15505 deplibs_check_method \
15506 file_magic_cmd \
15507 AR \
15508 AR_FLAGS \
15509 STRIP \
15510 RANLIB \
15511 CC \
15512 CFLAGS \
15513 compiler \
15514 lt_cv_sys_global_symbol_pipe \
15515 lt_cv_sys_global_symbol_to_cdecl \
15516 lt_cv_sys_global_symbol_to_c_name_address \
15517 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15518 lt_prog_compiler_no_builtin_flag \
15519 lt_prog_compiler_wl \
15520 lt_prog_compiler_pic \
15521 lt_prog_compiler_static \
15522 lt_cv_prog_compiler_c_o \
15523 need_locks \
15524 DSYMUTIL \
15525 NMEDIT \
15526 LIPO \
15527 OTOOL \
15528 OTOOL64 \
15529 shrext_cmds \
15530 export_dynamic_flag_spec \
15531 whole_archive_flag_spec \
15532 compiler_needs_object \
15533 with_gnu_ld \
15534 allow_undefined_flag \
15535 no_undefined_flag \
15536 hardcode_libdir_flag_spec \
15537 hardcode_libdir_flag_spec_ld \
15538 hardcode_libdir_separator \
15539 fix_srcfile_path \
15540 exclude_expsyms \
15541 include_expsyms \
15542 file_list_spec \
15543 variables_saved_for_relink \
15544 libname_spec \
15545 library_names_spec \
15546 soname_spec \
15547 install_override_mode \
15548 finish_eval \
15549 old_striplib \
15550 striplib \
15551 LD_GO \
15552 reload_flag_GO \
15553 compiler_GO \
15554 lt_prog_compiler_no_builtin_flag_GO \
15555 lt_prog_compiler_wl_GO \
15556 lt_prog_compiler_pic_GO \
15557 lt_prog_compiler_static_GO \
15558 lt_cv_prog_compiler_c_o_GO \
15559 export_dynamic_flag_spec_GO \
15560 whole_archive_flag_spec_GO \
15561 compiler_needs_object_GO \
15562 with_gnu_ld_GO \
15563 allow_undefined_flag_GO \
15564 no_undefined_flag_GO \
15565 hardcode_libdir_flag_spec_GO \
15566 hardcode_libdir_flag_spec_ld_GO \
15567 hardcode_libdir_separator_GO \
15568 fix_srcfile_path_GO \
15569 exclude_expsyms_GO \
15570 include_expsyms_GO \
15571 file_list_spec_GO; do
15572     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15573     *[\\\\\\\`\\"\\\$]*)
15574       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15575       ;;
15576     *)
15577       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15578       ;;
15579     esac
15580 done
15581
15582 # Double-quote double-evaled strings.
15583 for var in reload_cmds \
15584 old_postinstall_cmds \
15585 old_postuninstall_cmds \
15586 old_archive_cmds \
15587 extract_expsyms_cmds \
15588 old_archive_from_new_cmds \
15589 old_archive_from_expsyms_cmds \
15590 archive_cmds \
15591 archive_expsym_cmds \
15592 module_cmds \
15593 module_expsym_cmds \
15594 export_symbols_cmds \
15595 prelink_cmds \
15596 postinstall_cmds \
15597 postuninstall_cmds \
15598 finish_cmds \
15599 sys_lib_search_path_spec \
15600 sys_lib_dlsearch_path_spec \
15601 reload_cmds_GO \
15602 old_archive_cmds_GO \
15603 old_archive_from_new_cmds_GO \
15604 old_archive_from_expsyms_cmds_GO \
15605 archive_cmds_GO \
15606 archive_expsym_cmds_GO \
15607 module_cmds_GO \
15608 module_expsym_cmds_GO \
15609 export_symbols_cmds_GO \
15610 prelink_cmds_GO; do
15611     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15612     *[\\\\\\\`\\"\\\$]*)
15613       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15614       ;;
15615     *)
15616       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15617       ;;
15618     esac
15619 done
15620
15621 ac_aux_dir='$ac_aux_dir'
15622 xsi_shell='$xsi_shell'
15623 lt_shell_append='$lt_shell_append'
15624
15625 # See if we are running on zsh, and set the options which allow our
15626 # commands through without removal of \ escapes INIT.
15627 if test -n "\${ZSH_VERSION+set}" ; then
15628    setopt NO_GLOB_SUBST
15629 fi
15630
15631
15632     PACKAGE='$PACKAGE'
15633     VERSION='$VERSION'
15634     TIMESTAMP='$TIMESTAMP'
15635     RM='$RM'
15636     ofile='$ofile'
15637
15638
15639
15640
15641
15642
15643 # Variables needed in config.status (file generation) which aren't already
15644 # passed by autoconf.
15645 SUBDIRS="$SUBDIRS"
15646
15647
15648 _ACEOF
15649
15650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15651
15652 # Handling of arguments.
15653 for ac_config_target in $ac_config_targets
15654 do
15655   case $ac_config_target in
15656     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15657     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15658     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15659     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15660     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15661     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15662     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15663
15664   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15665   esac
15666 done
15667
15668
15669 # If the user did not use the arguments to specify the items to instantiate,
15670 # then the envvar interface is used.  Set only those that are not.
15671 # We use the long form for the default assignment because of an extremely
15672 # bizarre bug on SunOS 4.1.3.
15673 if $ac_need_defaults; then
15674   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15675   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15676   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15677 fi
15678
15679 # Have a temporary directory for convenience.  Make it in the build tree
15680 # simply because there is no reason against having it here, and in addition,
15681 # creating and moving files from /tmp can sometimes cause problems.
15682 # Hook for its removal unless debugging.
15683 # Note that there is a small window in which the directory will not be cleaned:
15684 # after its creation but before its name has been assigned to `$tmp'.
15685 $debug ||
15686 {
15687   tmp=
15688   trap 'exit_status=$?
15689   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15690 ' 0
15691   trap 'as_fn_exit 1' 1 2 13 15
15692 }
15693 # Create a (secure) tmp directory for tmp files.
15694
15695 {
15696   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15697   test -n "$tmp" && test -d "$tmp"
15698 }  ||
15699 {
15700   tmp=./conf$$-$RANDOM
15701   (umask 077 && mkdir "$tmp")
15702 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15703
15704 # Set up the scripts for CONFIG_FILES section.
15705 # No need to generate them if there are no CONFIG_FILES.
15706 # This happens for instance with `./config.status config.h'.
15707 if test -n "$CONFIG_FILES"; then
15708
15709
15710 ac_cr=`echo X | tr X '\015'`
15711 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15712 # But we know of no other shell where ac_cr would be empty at this
15713 # point, so we can use a bashism as a fallback.
15714 if test "x$ac_cr" = x; then
15715   eval ac_cr=\$\'\\r\'
15716 fi
15717 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15718 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15719   ac_cs_awk_cr='\r'
15720 else
15721   ac_cs_awk_cr=$ac_cr
15722 fi
15723
15724 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15725 _ACEOF
15726
15727
15728 {
15729   echo "cat >conf$$subs.awk <<_ACEOF" &&
15730   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15731   echo "_ACEOF"
15732 } >conf$$subs.sh ||
15733   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15734 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15735 ac_delim='%!_!# '
15736 for ac_last_try in false false false false false :; do
15737   . ./conf$$subs.sh ||
15738     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15739
15740   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15741   if test $ac_delim_n = $ac_delim_num; then
15742     break
15743   elif $ac_last_try; then
15744     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15745   else
15746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15747   fi
15748 done
15749 rm -f conf$$subs.sh
15750
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15753 _ACEOF
15754 sed -n '
15755 h
15756 s/^/S["/; s/!.*/"]=/
15757 p
15758 g
15759 s/^[^!]*!//
15760 :repl
15761 t repl
15762 s/'"$ac_delim"'$//
15763 t delim
15764 :nl
15765 h
15766 s/\(.\{148\}\).*/\1/
15767 t more1
15768 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15769 p
15770 n
15771 b repl
15772 :more1
15773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15774 p
15775 g
15776 s/.\{148\}//
15777 t nl
15778 :delim
15779 h
15780 s/\(.\{148\}\).*/\1/
15781 t more2
15782 s/["\\]/\\&/g; s/^/"/; s/$/"/
15783 p
15784 b
15785 :more2
15786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15787 p
15788 g
15789 s/.\{148\}//
15790 t delim
15791 ' <conf$$subs.awk | sed '
15792 /^[^""]/{
15793   N
15794   s/\n//
15795 }
15796 ' >>$CONFIG_STATUS || ac_write_fail=1
15797 rm -f conf$$subs.awk
15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799 _ACAWK
15800 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15801   for (key in S) S_is_set[key] = 1
15802   FS = "\a"
15803
15804 }
15805 {
15806   line = $ 0
15807   nfields = split(line, field, "@")
15808   substed = 0
15809   len = length(field[1])
15810   for (i = 2; i < nfields; i++) {
15811     key = field[i]
15812     keylen = length(key)
15813     if (S_is_set[key]) {
15814       value = S[key]
15815       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15816       len += length(value) + length(field[++i])
15817       substed = 1
15818     } else
15819       len += 1 + keylen
15820   }
15821
15822   print line
15823 }
15824
15825 _ACAWK
15826 _ACEOF
15827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15828 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15829   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15830 else
15831   cat
15832 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15833   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15834 _ACEOF
15835
15836 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15837 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15838 # trailing colons and then remove the whole line if VPATH becomes empty
15839 # (actually we leave an empty line to preserve line numbers).
15840 if test "x$srcdir" = x.; then
15841   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15842 s/:*\$(srcdir):*/:/
15843 s/:*\${srcdir}:*/:/
15844 s/:*@srcdir@:*/:/
15845 s/^\([^=]*=[     ]*\):*/\1/
15846 s/:*$//
15847 s/^[^=]*=[       ]*$//
15848 }'
15849 fi
15850
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852 fi # test -n "$CONFIG_FILES"
15853
15854 # Set up the scripts for CONFIG_HEADERS section.
15855 # No need to generate them if there are no CONFIG_HEADERS.
15856 # This happens for instance with `./config.status Makefile'.
15857 if test -n "$CONFIG_HEADERS"; then
15858 cat >"$tmp/defines.awk" <<\_ACAWK ||
15859 BEGIN {
15860 _ACEOF
15861
15862 # Transform confdefs.h into an awk script `defines.awk', embedded as
15863 # here-document in config.status, that substitutes the proper values into
15864 # config.h.in to produce config.h.
15865
15866 # Create a delimiter string that does not exist in confdefs.h, to ease
15867 # handling of long lines.
15868 ac_delim='%!_!# '
15869 for ac_last_try in false false :; do
15870   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15871   if test -z "$ac_t"; then
15872     break
15873   elif $ac_last_try; then
15874     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15875   else
15876     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15877   fi
15878 done
15879
15880 # For the awk script, D is an array of macro values keyed by name,
15881 # likewise P contains macro parameters if any.  Preserve backslash
15882 # newline sequences.
15883
15884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15885 sed -n '
15886 s/.\{148\}/&'"$ac_delim"'/g
15887 t rset
15888 :rset
15889 s/^[     ]*#[    ]*define[       ][      ]*/ /
15890 t def
15891 d
15892 :def
15893 s/\\$//
15894 t bsnl
15895 s/["\\]/\\&/g
15896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15897 D["\1"]=" \3"/p
15898 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15899 d
15900 :bsnl
15901 s/["\\]/\\&/g
15902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15903 D["\1"]=" \3\\\\\\n"\\/p
15904 t cont
15905 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15906 t cont
15907 d
15908 :cont
15909 n
15910 s/.\{148\}/&'"$ac_delim"'/g
15911 t clear
15912 :clear
15913 s/\\$//
15914 t bsnlc
15915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15916 d
15917 :bsnlc
15918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15919 b cont
15920 ' <confdefs.h | sed '
15921 s/'"$ac_delim"'/"\\\
15922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15923
15924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15925   for (key in D) D_is_set[key] = 1
15926   FS = "\a"
15927 }
15928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15929   line = \$ 0
15930   split(line, arg, " ")
15931   if (arg[1] == "#") {
15932     defundef = arg[2]
15933     mac1 = arg[3]
15934   } else {
15935     defundef = substr(arg[1], 2)
15936     mac1 = arg[2]
15937   }
15938   split(mac1, mac2, "(") #)
15939   macro = mac2[1]
15940   prefix = substr(line, 1, index(line, defundef) - 1)
15941   if (D_is_set[macro]) {
15942     # Preserve the white space surrounding the "#".
15943     print prefix "define", macro P[macro] D[macro]
15944     next
15945   } else {
15946     # Replace #undef with comments.  This is necessary, for example,
15947     # in the case of _POSIX_SOURCE, which is predefined and required
15948     # on some systems where configure will not decide to define it.
15949     if (defundef == "undef") {
15950       print "/*", prefix defundef, macro, "*/"
15951       next
15952     }
15953   }
15954 }
15955 { print }
15956 _ACAWK
15957 _ACEOF
15958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15959   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15960 fi # test -n "$CONFIG_HEADERS"
15961
15962
15963 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15964 shift
15965 for ac_tag
15966 do
15967   case $ac_tag in
15968   :[FHLC]) ac_mode=$ac_tag; continue;;
15969   esac
15970   case $ac_mode$ac_tag in
15971   :[FHL]*:*);;
15972   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15973   :[FH]-) ac_tag=-:-;;
15974   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15975   esac
15976   ac_save_IFS=$IFS
15977   IFS=:
15978   set x $ac_tag
15979   IFS=$ac_save_IFS
15980   shift
15981   ac_file=$1
15982   shift
15983
15984   case $ac_mode in
15985   :L) ac_source=$1;;
15986   :[FH])
15987     ac_file_inputs=
15988     for ac_f
15989     do
15990       case $ac_f in
15991       -) ac_f="$tmp/stdin";;
15992       *) # Look for the file first in the build tree, then in the source tree
15993          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15994          # because $ac_f cannot contain `:'.
15995          test -f "$ac_f" ||
15996            case $ac_f in
15997            [\\/$]*) false;;
15998            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15999            esac ||
16000            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16001       esac
16002       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16003       as_fn_append ac_file_inputs " '$ac_f'"
16004     done
16005
16006     # Let's still pretend it is `configure' which instantiates (i.e., don't
16007     # use $as_me), people would be surprised to read:
16008     #    /* config.h.  Generated by config.status.  */
16009     configure_input='Generated from '`
16010           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16011         `' by configure.'
16012     if test x"$ac_file" != x-; then
16013       configure_input="$ac_file.  $configure_input"
16014       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16015 $as_echo "$as_me: creating $ac_file" >&6;}
16016     fi
16017     # Neutralize special characters interpreted by sed in replacement strings.
16018     case $configure_input in #(
16019     *\&* | *\|* | *\\* )
16020        ac_sed_conf_input=`$as_echo "$configure_input" |
16021        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16022     *) ac_sed_conf_input=$configure_input;;
16023     esac
16024
16025     case $ac_tag in
16026     *:-:* | *:-) cat >"$tmp/stdin" \
16027       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16028     esac
16029     ;;
16030   esac
16031
16032   ac_dir=`$as_dirname -- "$ac_file" ||
16033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16034          X"$ac_file" : 'X\(//\)[^/]' \| \
16035          X"$ac_file" : 'X\(//\)$' \| \
16036          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16037 $as_echo X"$ac_file" |
16038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16039             s//\1/
16040             q
16041           }
16042           /^X\(\/\/\)[^/].*/{
16043             s//\1/
16044             q
16045           }
16046           /^X\(\/\/\)$/{
16047             s//\1/
16048             q
16049           }
16050           /^X\(\/\).*/{
16051             s//\1/
16052             q
16053           }
16054           s/.*/./; q'`
16055   as_dir="$ac_dir"; as_fn_mkdir_p
16056   ac_builddir=.
16057
16058 case "$ac_dir" in
16059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16060 *)
16061   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16062   # A ".." for each directory in $ac_dir_suffix.
16063   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16064   case $ac_top_builddir_sub in
16065   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16066   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16067   esac ;;
16068 esac
16069 ac_abs_top_builddir=$ac_pwd
16070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16071 # for backward compatibility:
16072 ac_top_builddir=$ac_top_build_prefix
16073
16074 case $srcdir in
16075   .)  # We are building in place.
16076     ac_srcdir=.
16077     ac_top_srcdir=$ac_top_builddir_sub
16078     ac_abs_top_srcdir=$ac_pwd ;;
16079   [\\/]* | ?:[\\/]* )  # Absolute name.
16080     ac_srcdir=$srcdir$ac_dir_suffix;
16081     ac_top_srcdir=$srcdir
16082     ac_abs_top_srcdir=$srcdir ;;
16083   *) # Relative name.
16084     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16085     ac_top_srcdir=$ac_top_build_prefix$srcdir
16086     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16087 esac
16088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16089
16090
16091   case $ac_mode in
16092   :F)
16093   #
16094   # CONFIG_FILE
16095   #
16096
16097   case $INSTALL in
16098   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16099   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16100   esac
16101   ac_MKDIR_P=$MKDIR_P
16102   case $MKDIR_P in
16103   [\\/$]* | ?:[\\/]* ) ;;
16104   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16105   esac
16106 _ACEOF
16107
16108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16109 # If the template does not know about datarootdir, expand it.
16110 # FIXME: This hack should be removed a few years after 2.60.
16111 ac_datarootdir_hack=; ac_datarootdir_seen=
16112 ac_sed_dataroot='
16113 /datarootdir/ {
16114   p
16115   q
16116 }
16117 /@datadir@/p
16118 /@docdir@/p
16119 /@infodir@/p
16120 /@localedir@/p
16121 /@mandir@/p'
16122 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16123 *datarootdir*) ac_datarootdir_seen=yes;;
16124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16125   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16126 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16127 _ACEOF
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129   ac_datarootdir_hack='
16130   s&@datadir@&$datadir&g
16131   s&@docdir@&$docdir&g
16132   s&@infodir@&$infodir&g
16133   s&@localedir@&$localedir&g
16134   s&@mandir@&$mandir&g
16135   s&\\\${datarootdir}&$datarootdir&g' ;;
16136 esac
16137 _ACEOF
16138
16139 # Neutralize VPATH when `$srcdir' = `.'.
16140 # Shell code in configure.ac might set extrasub.
16141 # FIXME: do we really want to maintain this feature?
16142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16143 ac_sed_extra="$ac_vpsub
16144 $extrasub
16145 _ACEOF
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 :t
16148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16149 s|@configure_input@|$ac_sed_conf_input|;t t
16150 s&@top_builddir@&$ac_top_builddir_sub&;t t
16151 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16152 s&@srcdir@&$ac_srcdir&;t t
16153 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16154 s&@top_srcdir@&$ac_top_srcdir&;t t
16155 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16156 s&@builddir@&$ac_builddir&;t t
16157 s&@abs_builddir@&$ac_abs_builddir&;t t
16158 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16159 s&@INSTALL@&$ac_INSTALL&;t t
16160 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16161 $ac_datarootdir_hack
16162 "
16163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16164   || as_fn_error "could not create $ac_file" "$LINENO" 5
16165
16166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16167   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16168   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16169   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16170 which seems to be undefined.  Please make sure it is defined." >&5
16171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16172 which seems to be undefined.  Please make sure it is defined." >&2;}
16173
16174   rm -f "$tmp/stdin"
16175   case $ac_file in
16176   -) cat "$tmp/out" && rm -f "$tmp/out";;
16177   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16178   esac \
16179   || as_fn_error "could not create $ac_file" "$LINENO" 5
16180  ;;
16181   :H)
16182   #
16183   # CONFIG_HEADER
16184   #
16185   if test x"$ac_file" != x-; then
16186     {
16187       $as_echo "/* $configure_input  */" \
16188       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16189     } >"$tmp/config.h" \
16190       || as_fn_error "could not create $ac_file" "$LINENO" 5
16191     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16192       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16194     else
16195       rm -f "$ac_file"
16196       mv "$tmp/config.h" "$ac_file" \
16197         || as_fn_error "could not create $ac_file" "$LINENO" 5
16198     fi
16199   else
16200     $as_echo "/* $configure_input  */" \
16201       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16202       || as_fn_error "could not create -" "$LINENO" 5
16203   fi
16204 # Compute "$ac_file"'s index in $config_headers.
16205 _am_arg="$ac_file"
16206 _am_stamp_count=1
16207 for _am_header in $config_headers :; do
16208   case $_am_header in
16209     $_am_arg | $_am_arg:* )
16210       break ;;
16211     * )
16212       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16213   esac
16214 done
16215 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16216 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16217          X"$_am_arg" : 'X\(//\)[^/]' \| \
16218          X"$_am_arg" : 'X\(//\)$' \| \
16219          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16220 $as_echo X"$_am_arg" |
16221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16222             s//\1/
16223             q
16224           }
16225           /^X\(\/\/\)[^/].*/{
16226             s//\1/
16227             q
16228           }
16229           /^X\(\/\/\)$/{
16230             s//\1/
16231             q
16232           }
16233           /^X\(\/\).*/{
16234             s//\1/
16235             q
16236           }
16237           s/.*/./; q'`/stamp-h$_am_stamp_count
16238  ;;
16239
16240   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16241 $as_echo "$as_me: executing $ac_file commands" >&6;}
16242  ;;
16243   esac
16244
16245
16246   case $ac_file$ac_mode in
16247     "default-1":C)
16248 # Only add multilib support code if we just rebuilt the top-level
16249 # Makefile.
16250 case " $CONFIG_FILES " in
16251  *" Makefile "*)
16252    ac_file=Makefile . ${multi_basedir}/config-ml.in
16253    ;;
16254 esac ;;
16255     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16256   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16257   # are listed without --file.  Let's play safe and only enable the eval
16258   # if we detect the quoting.
16259   case $CONFIG_FILES in
16260   *\'*) eval set x "$CONFIG_FILES" ;;
16261   *)   set x $CONFIG_FILES ;;
16262   esac
16263   shift
16264   for mf
16265   do
16266     # Strip MF so we end up with the name of the file.
16267     mf=`echo "$mf" | sed -e 's/:.*$//'`
16268     # Check whether this is an Automake generated Makefile or not.
16269     # We used to match only the files named `Makefile.in', but
16270     # some people rename them; so instead we look at the file content.
16271     # Grep'ing the first line is not enough: some people post-process
16272     # each Makefile.in and add a new line on top of each file to say so.
16273     # Grep'ing the whole file is not good either: AIX grep has a line
16274     # limit of 2048, but all sed's we know have understand at least 4000.
16275     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16276       dirpart=`$as_dirname -- "$mf" ||
16277 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16278          X"$mf" : 'X\(//\)[^/]' \| \
16279          X"$mf" : 'X\(//\)$' \| \
16280          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16281 $as_echo X"$mf" |
16282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16283             s//\1/
16284             q
16285           }
16286           /^X\(\/\/\)[^/].*/{
16287             s//\1/
16288             q
16289           }
16290           /^X\(\/\/\)$/{
16291             s//\1/
16292             q
16293           }
16294           /^X\(\/\).*/{
16295             s//\1/
16296             q
16297           }
16298           s/.*/./; q'`
16299     else
16300       continue
16301     fi
16302     # Extract the definition of DEPDIR, am__include, and am__quote
16303     # from the Makefile without running `make'.
16304     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16305     test -z "$DEPDIR" && continue
16306     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16307     test -z "am__include" && continue
16308     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16309     # When using ansi2knr, U may be empty or an underscore; expand it
16310     U=`sed -n 's/^U = //p' < "$mf"`
16311     # Find all dependency output files, they are included files with
16312     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16313     # simplest approach to changing $(DEPDIR) to its actual value in the
16314     # expansion.
16315     for file in `sed -n "
16316       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16317          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16318       # Make sure the directory exists.
16319       test -f "$dirpart/$file" && continue
16320       fdir=`$as_dirname -- "$file" ||
16321 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16322          X"$file" : 'X\(//\)[^/]' \| \
16323          X"$file" : 'X\(//\)$' \| \
16324          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16325 $as_echo X"$file" |
16326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16327             s//\1/
16328             q
16329           }
16330           /^X\(\/\/\)[^/].*/{
16331             s//\1/
16332             q
16333           }
16334           /^X\(\/\/\)$/{
16335             s//\1/
16336             q
16337           }
16338           /^X\(\/\).*/{
16339             s//\1/
16340             q
16341           }
16342           s/.*/./; q'`
16343       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16344       # echo "creating $dirpart/$file"
16345       echo '# dummy' > "$dirpart/$file"
16346     done
16347   done
16348 }
16349  ;;
16350     "libtool":C)
16351
16352     # See if we are running on zsh, and set the options which allow our
16353     # commands through without removal of \ escapes.
16354     if test -n "${ZSH_VERSION+set}" ; then
16355       setopt NO_GLOB_SUBST
16356     fi
16357
16358     cfgfile="${ofile}T"
16359     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16360     $RM "$cfgfile"
16361
16362     cat <<_LT_EOF >> "$cfgfile"
16363 #! $SHELL
16364
16365 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16366 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16368 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16369 #
16370 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16371 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16372 #   Written by Gordon Matzigkeit, 1996
16373 #
16374 #   This file is part of GNU Libtool.
16375 #
16376 # GNU Libtool is free software; you can redistribute it and/or
16377 # modify it under the terms of the GNU General Public License as
16378 # published by the Free Software Foundation; either version 2 of
16379 # the License, or (at your option) any later version.
16380 #
16381 # As a special exception to the GNU General Public License,
16382 # if you distribute this file as part of a program or library that
16383 # is built using GNU Libtool, you may include this file under the
16384 # same distribution terms that you use for the rest of that program.
16385 #
16386 # GNU Libtool is distributed in the hope that it will be useful,
16387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16389 # GNU General Public License for more details.
16390 #
16391 # You should have received a copy of the GNU General Public License
16392 # along with GNU Libtool; see the file COPYING.  If not, a copy
16393 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16394 # obtained by writing to the Free Software Foundation, Inc.,
16395 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16396
16397
16398 # The names of the tagged configurations supported by this script.
16399 available_tags="GO "
16400
16401 # ### BEGIN LIBTOOL CONFIG
16402
16403 # A sed program that does not truncate output.
16404 SED=$lt_SED
16405
16406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16407 Xsed="\$SED -e 1s/^X//"
16408
16409 # A grep program that handles long lines.
16410 GREP=$lt_GREP
16411
16412 # An ERE matcher.
16413 EGREP=$lt_EGREP
16414
16415 # A literal string matcher.
16416 FGREP=$lt_FGREP
16417
16418 # Shell to use when invoking shell scripts.
16419 SHELL=$lt_SHELL
16420
16421 # An echo program that protects backslashes.
16422 ECHO=$lt_ECHO
16423
16424 # Which release of libtool.m4 was used?
16425 macro_version=$macro_version
16426 macro_revision=$macro_revision
16427
16428 # Whether or not to build shared libraries.
16429 build_libtool_libs=$enable_shared
16430
16431 # Whether or not to build static libraries.
16432 build_old_libs=$enable_static
16433
16434 # What type of objects to build.
16435 pic_mode=$pic_mode
16436
16437 # Whether or not to optimize for fast installation.
16438 fast_install=$enable_fast_install
16439
16440 # The host system.
16441 host_alias=$host_alias
16442 host=$host
16443 host_os=$host_os
16444
16445 # The build system.
16446 build_alias=$build_alias
16447 build=$build
16448 build_os=$build_os
16449
16450 # A BSD- or MS-compatible name lister.
16451 NM=$lt_NM
16452
16453 # Whether we need soft or hard links.
16454 LN_S=$lt_LN_S
16455
16456 # What is the maximum length of a command?
16457 max_cmd_len=$max_cmd_len
16458
16459 # Object file suffix (normally "o").
16460 objext=$ac_objext
16461
16462 # Executable file suffix (normally "").
16463 exeext=$exeext
16464
16465 # whether the shell understands "unset".
16466 lt_unset=$lt_unset
16467
16468 # turn spaces into newlines.
16469 SP2NL=$lt_lt_SP2NL
16470
16471 # turn newlines into spaces.
16472 NL2SP=$lt_lt_NL2SP
16473
16474 # An object symbol dumper.
16475 OBJDUMP=$lt_OBJDUMP
16476
16477 # Method to check whether dependent libraries are shared objects.
16478 deplibs_check_method=$lt_deplibs_check_method
16479
16480 # Command to use when deplibs_check_method == "file_magic".
16481 file_magic_cmd=$lt_file_magic_cmd
16482
16483 # The archiver.
16484 AR=$lt_AR
16485 AR_FLAGS=$lt_AR_FLAGS
16486
16487 # A symbol stripping program.
16488 STRIP=$lt_STRIP
16489
16490 # Commands used to install an old-style archive.
16491 RANLIB=$lt_RANLIB
16492 old_postinstall_cmds=$lt_old_postinstall_cmds
16493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16494
16495 # Whether to use a lock for old archive extraction.
16496 lock_old_archive_extraction=$lock_old_archive_extraction
16497
16498 # A C compiler.
16499 LTCC=$lt_CC
16500
16501 # LTCC compiler flags.
16502 LTCFLAGS=$lt_CFLAGS
16503
16504 # Take the output of nm and produce a listing of raw symbols and C names.
16505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16506
16507 # Transform the output of nm in a proper C declaration.
16508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16509
16510 # Transform the output of nm in a C name address pair.
16511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16512
16513 # Transform the output of nm in a C name address pair when lib prefix is needed.
16514 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16515
16516 # The name of the directory that contains temporary libtool files.
16517 objdir=$objdir
16518
16519 # Used to examine libraries when file_magic_cmd begins with "file".
16520 MAGIC_CMD=$MAGIC_CMD
16521
16522 # Must we lock files when doing compilation?
16523 need_locks=$lt_need_locks
16524
16525 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16526 DSYMUTIL=$lt_DSYMUTIL
16527
16528 # Tool to change global to local symbols on Mac OS X.
16529 NMEDIT=$lt_NMEDIT
16530
16531 # Tool to manipulate fat objects and archives on Mac OS X.
16532 LIPO=$lt_LIPO
16533
16534 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16535 OTOOL=$lt_OTOOL
16536
16537 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16538 OTOOL64=$lt_OTOOL64
16539
16540 # Old archive suffix (normally "a").
16541 libext=$libext
16542
16543 # Shared library suffix (normally ".so").
16544 shrext_cmds=$lt_shrext_cmds
16545
16546 # The commands to extract the exported symbol list from a shared archive.
16547 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16548
16549 # Variables whose values should be saved in libtool wrapper scripts and
16550 # restored at link time.
16551 variables_saved_for_relink=$lt_variables_saved_for_relink
16552
16553 # Do we need the "lib" prefix for modules?
16554 need_lib_prefix=$need_lib_prefix
16555
16556 # Do we need a version for libraries?
16557 need_version=$need_version
16558
16559 # Library versioning type.
16560 version_type=$version_type
16561
16562 # Shared library runtime path variable.
16563 runpath_var=$runpath_var
16564
16565 # Shared library path variable.
16566 shlibpath_var=$shlibpath_var
16567
16568 # Is shlibpath searched before the hard-coded library search path?
16569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16570
16571 # Format of library name prefix.
16572 libname_spec=$lt_libname_spec
16573
16574 # List of archive names.  First name is the real one, the rest are links.
16575 # The last name is the one that the linker finds with -lNAME
16576 library_names_spec=$lt_library_names_spec
16577
16578 # The coded name of the library, if different from the real name.
16579 soname_spec=$lt_soname_spec
16580
16581 # Permission mode override for installation of shared libraries.
16582 install_override_mode=$lt_install_override_mode
16583
16584 # Command to use after installation of a shared archive.
16585 postinstall_cmds=$lt_postinstall_cmds
16586
16587 # Command to use after uninstallation of a shared archive.
16588 postuninstall_cmds=$lt_postuninstall_cmds
16589
16590 # Commands used to finish a libtool library installation in a directory.
16591 finish_cmds=$lt_finish_cmds
16592
16593 # As "finish_cmds", except a single script fragment to be evaled but
16594 # not shown.
16595 finish_eval=$lt_finish_eval
16596
16597 # Whether we should hardcode library paths into libraries.
16598 hardcode_into_libs=$hardcode_into_libs
16599
16600 # Compile-time system search path for libraries.
16601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16602
16603 # Run-time system search path for libraries.
16604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16605
16606 # Whether dlopen is supported.
16607 dlopen_support=$enable_dlopen
16608
16609 # Whether dlopen of programs is supported.
16610 dlopen_self=$enable_dlopen_self
16611
16612 # Whether dlopen of statically linked programs is supported.
16613 dlopen_self_static=$enable_dlopen_self_static
16614
16615 # Commands to strip libraries.
16616 old_striplib=$lt_old_striplib
16617 striplib=$lt_striplib
16618
16619
16620 # The linker used to build libraries.
16621 LD=$lt_LD
16622
16623 # How to create reloadable object files.
16624 reload_flag=$lt_reload_flag
16625 reload_cmds=$lt_reload_cmds
16626
16627 # Commands used to build an old-style archive.
16628 old_archive_cmds=$lt_old_archive_cmds
16629
16630 # A language specific compiler.
16631 CC=$lt_compiler
16632
16633 # Is the compiler the GNU compiler?
16634 with_gcc=$GCC
16635
16636 # Compiler flag to turn off builtin functions.
16637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16638
16639 # How to pass a linker flag through the compiler.
16640 wl=$lt_lt_prog_compiler_wl
16641
16642 # Additional compiler flags for building library objects.
16643 pic_flag=$lt_lt_prog_compiler_pic
16644
16645 # Compiler flag to prevent dynamic linking.
16646 link_static_flag=$lt_lt_prog_compiler_static
16647
16648 # Does compiler simultaneously support -c and -o options?
16649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16650
16651 # Whether or not to add -lc for building shared libraries.
16652 build_libtool_need_lc=$archive_cmds_need_lc
16653
16654 # Whether or not to disallow shared libs when runtime libs are static.
16655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16656
16657 # Compiler flag to allow reflexive dlopens.
16658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16659
16660 # Compiler flag to generate shared objects directly from archives.
16661 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16662
16663 # Whether the compiler copes with passing no objects directly.
16664 compiler_needs_object=$lt_compiler_needs_object
16665
16666 # Create an old-style archive from a shared archive.
16667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16668
16669 # Create a temporary old-style archive to link instead of a shared archive.
16670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16671
16672 # Commands used to build a shared archive.
16673 archive_cmds=$lt_archive_cmds
16674 archive_expsym_cmds=$lt_archive_expsym_cmds
16675
16676 # Commands used to build a loadable module if different from building
16677 # a shared archive.
16678 module_cmds=$lt_module_cmds
16679 module_expsym_cmds=$lt_module_expsym_cmds
16680
16681 # Whether we are building with GNU ld or not.
16682 with_gnu_ld=$lt_with_gnu_ld
16683
16684 # Flag that allows shared libraries with undefined symbols to be built.
16685 allow_undefined_flag=$lt_allow_undefined_flag
16686
16687 # Flag that enforces no undefined symbols.
16688 no_undefined_flag=$lt_no_undefined_flag
16689
16690 # Flag to hardcode \$libdir into a binary during linking.
16691 # This must work even if \$libdir does not exist
16692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16693
16694 # If ld is used when linking, flag to hardcode \$libdir into a binary
16695 # during linking.  This must work even if \$libdir does not exist.
16696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16697
16698 # Whether we need a single "-rpath" flag with a separated argument.
16699 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16700
16701 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16702 # DIR into the resulting binary.
16703 hardcode_direct=$hardcode_direct
16704
16705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16706 # DIR into the resulting binary and the resulting library dependency is
16707 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16708 # library is relocated.
16709 hardcode_direct_absolute=$hardcode_direct_absolute
16710
16711 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16712 # into the resulting binary.
16713 hardcode_minus_L=$hardcode_minus_L
16714
16715 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16716 # into the resulting binary.
16717 hardcode_shlibpath_var=$hardcode_shlibpath_var
16718
16719 # Set to "yes" if building a shared library automatically hardcodes DIR
16720 # into the library and all subsequent libraries and executables linked
16721 # against it.
16722 hardcode_automatic=$hardcode_automatic
16723
16724 # Set to yes if linker adds runtime paths of dependent libraries
16725 # to runtime path list.
16726 inherit_rpath=$inherit_rpath
16727
16728 # Whether libtool must link a program against all its dependency libraries.
16729 link_all_deplibs=$link_all_deplibs
16730
16731 # Fix the shell variable \$srcfile for the compiler.
16732 fix_srcfile_path=$lt_fix_srcfile_path
16733
16734 # Set to "yes" if exported symbols are required.
16735 always_export_symbols=$always_export_symbols
16736
16737 # The commands to list exported symbols.
16738 export_symbols_cmds=$lt_export_symbols_cmds
16739
16740 # Symbols that should not be listed in the preloaded symbols.
16741 exclude_expsyms=$lt_exclude_expsyms
16742
16743 # Symbols that must always be exported.
16744 include_expsyms=$lt_include_expsyms
16745
16746 # Commands necessary for linking programs (against libraries) with templates.
16747 prelink_cmds=$lt_prelink_cmds
16748
16749 # Specify filename containing input files.
16750 file_list_spec=$lt_file_list_spec
16751
16752 # How to hardcode a shared library path into an executable.
16753 hardcode_action=$hardcode_action
16754
16755 # ### END LIBTOOL CONFIG
16756
16757 _LT_EOF
16758
16759   case $host_os in
16760   aix3*)
16761     cat <<\_LT_EOF >> "$cfgfile"
16762 # AIX sometimes has problems with the GCC collect2 program.  For some
16763 # reason, if we set the COLLECT_NAMES environment variable, the problems
16764 # vanish in a puff of smoke.
16765 if test "X${COLLECT_NAMES+set}" != Xset; then
16766   COLLECT_NAMES=
16767   export COLLECT_NAMES
16768 fi
16769 _LT_EOF
16770     ;;
16771   esac
16772
16773
16774 ltmain="$ac_aux_dir/ltmain.sh"
16775
16776
16777   # We use sed instead of cat because bash on DJGPP gets confused if
16778   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16779   # text mode, it properly converts lines to CR/LF.  This bash problem
16780   # is reportedly fixed, but why not run on old versions too?
16781   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16782     || (rm -f "$cfgfile"; exit 1)
16783
16784   case $xsi_shell in
16785   yes)
16786     cat << \_LT_EOF >> "$cfgfile"
16787
16788 # func_dirname file append nondir_replacement
16789 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16790 # otherwise set result to NONDIR_REPLACEMENT.
16791 func_dirname ()
16792 {
16793   case ${1} in
16794     */*) func_dirname_result="${1%/*}${2}" ;;
16795     *  ) func_dirname_result="${3}" ;;
16796   esac
16797 }
16798
16799 # func_basename file
16800 func_basename ()
16801 {
16802   func_basename_result="${1##*/}"
16803 }
16804
16805 # func_dirname_and_basename file append nondir_replacement
16806 # perform func_basename and func_dirname in a single function
16807 # call:
16808 #   dirname:  Compute the dirname of FILE.  If nonempty,
16809 #             add APPEND to the result, otherwise set result
16810 #             to NONDIR_REPLACEMENT.
16811 #             value returned in "$func_dirname_result"
16812 #   basename: Compute filename of FILE.
16813 #             value retuned in "$func_basename_result"
16814 # Implementation must be kept synchronized with func_dirname
16815 # and func_basename. For efficiency, we do not delegate to
16816 # those functions but instead duplicate the functionality here.
16817 func_dirname_and_basename ()
16818 {
16819   case ${1} in
16820     */*) func_dirname_result="${1%/*}${2}" ;;
16821     *  ) func_dirname_result="${3}" ;;
16822   esac
16823   func_basename_result="${1##*/}"
16824 }
16825
16826 # func_stripname prefix suffix name
16827 # strip PREFIX and SUFFIX off of NAME.
16828 # PREFIX and SUFFIX must not contain globbing or regex special
16829 # characters, hashes, percent signs, but SUFFIX may contain a leading
16830 # dot (in which case that matches only a dot).
16831 func_stripname ()
16832 {
16833   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16834   # positional parameters, so assign one to ordinary parameter first.
16835   func_stripname_result=${3}
16836   func_stripname_result=${func_stripname_result#"${1}"}
16837   func_stripname_result=${func_stripname_result%"${2}"}
16838 }
16839
16840 # func_opt_split
16841 func_opt_split ()
16842 {
16843   func_opt_split_opt=${1%%=*}
16844   func_opt_split_arg=${1#*=}
16845 }
16846
16847 # func_lo2o object
16848 func_lo2o ()
16849 {
16850   case ${1} in
16851     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16852     *)    func_lo2o_result=${1} ;;
16853   esac
16854 }
16855
16856 # func_xform libobj-or-source
16857 func_xform ()
16858 {
16859   func_xform_result=${1%.*}.lo
16860 }
16861
16862 # func_arith arithmetic-term...
16863 func_arith ()
16864 {
16865   func_arith_result=$(( $* ))
16866 }
16867
16868 # func_len string
16869 # STRING may not start with a hyphen.
16870 func_len ()
16871 {
16872   func_len_result=${#1}
16873 }
16874
16875 _LT_EOF
16876     ;;
16877   *) # Bourne compatible functions.
16878     cat << \_LT_EOF >> "$cfgfile"
16879
16880 # func_dirname file append nondir_replacement
16881 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16882 # otherwise set result to NONDIR_REPLACEMENT.
16883 func_dirname ()
16884 {
16885   # Extract subdirectory from the argument.
16886   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16887   if test "X$func_dirname_result" = "X${1}"; then
16888     func_dirname_result="${3}"
16889   else
16890     func_dirname_result="$func_dirname_result${2}"
16891   fi
16892 }
16893
16894 # func_basename file
16895 func_basename ()
16896 {
16897   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16898 }
16899
16900
16901 # func_stripname prefix suffix name
16902 # strip PREFIX and SUFFIX off of NAME.
16903 # PREFIX and SUFFIX must not contain globbing or regex special
16904 # characters, hashes, percent signs, but SUFFIX may contain a leading
16905 # dot (in which case that matches only a dot).
16906 # func_strip_suffix prefix name
16907 func_stripname ()
16908 {
16909   case ${2} in
16910     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16911     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16912   esac
16913 }
16914
16915 # sed scripts:
16916 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16917 my_sed_long_arg='1s/^-[^=]*=//'
16918
16919 # func_opt_split
16920 func_opt_split ()
16921 {
16922   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16923   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16924 }
16925
16926 # func_lo2o object
16927 func_lo2o ()
16928 {
16929   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16930 }
16931
16932 # func_xform libobj-or-source
16933 func_xform ()
16934 {
16935   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16936 }
16937
16938 # func_arith arithmetic-term...
16939 func_arith ()
16940 {
16941   func_arith_result=`expr "$@"`
16942 }
16943
16944 # func_len string
16945 # STRING may not start with a hyphen.
16946 func_len ()
16947 {
16948   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16949 }
16950
16951 _LT_EOF
16952 esac
16953
16954 case $lt_shell_append in
16955   yes)
16956     cat << \_LT_EOF >> "$cfgfile"
16957
16958 # func_append var value
16959 # Append VALUE to the end of shell variable VAR.
16960 func_append ()
16961 {
16962   eval "$1+=\$2"
16963 }
16964 _LT_EOF
16965     ;;
16966   *)
16967     cat << \_LT_EOF >> "$cfgfile"
16968
16969 # func_append var value
16970 # Append VALUE to the end of shell variable VAR.
16971 func_append ()
16972 {
16973   eval "$1=\$$1\$2"
16974 }
16975
16976 _LT_EOF
16977     ;;
16978   esac
16979
16980
16981   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16982     || (rm -f "$cfgfile"; exit 1)
16983
16984   mv -f "$cfgfile" "$ofile" ||
16985     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16986   chmod +x "$ofile"
16987
16988
16989     cat <<_LT_EOF >> "$ofile"
16990
16991 # ### BEGIN LIBTOOL TAG CONFIG: GO
16992
16993 # The linker used to build libraries.
16994 LD=$lt_LD_GO
16995
16996 # How to create reloadable object files.
16997 reload_flag=$lt_reload_flag_GO
16998 reload_cmds=$lt_reload_cmds_GO
16999
17000 # Commands used to build an old-style archive.
17001 old_archive_cmds=$lt_old_archive_cmds_GO
17002
17003 # A language specific compiler.
17004 CC=$lt_compiler_GO
17005
17006 # Is the compiler the GNU compiler?
17007 with_gcc=$GCC_GO
17008
17009 # Compiler flag to turn off builtin functions.
17010 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17011
17012 # How to pass a linker flag through the compiler.
17013 wl=$lt_lt_prog_compiler_wl_GO
17014
17015 # Additional compiler flags for building library objects.
17016 pic_flag=$lt_lt_prog_compiler_pic_GO
17017
17018 # Compiler flag to prevent dynamic linking.
17019 link_static_flag=$lt_lt_prog_compiler_static_GO
17020
17021 # Does compiler simultaneously support -c and -o options?
17022 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17023
17024 # Whether or not to add -lc for building shared libraries.
17025 build_libtool_need_lc=$archive_cmds_need_lc_GO
17026
17027 # Whether or not to disallow shared libs when runtime libs are static.
17028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17029
17030 # Compiler flag to allow reflexive dlopens.
17031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17032
17033 # Compiler flag to generate shared objects directly from archives.
17034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17035
17036 # Whether the compiler copes with passing no objects directly.
17037 compiler_needs_object=$lt_compiler_needs_object_GO
17038
17039 # Create an old-style archive from a shared archive.
17040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17041
17042 # Create a temporary old-style archive to link instead of a shared archive.
17043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17044
17045 # Commands used to build a shared archive.
17046 archive_cmds=$lt_archive_cmds_GO
17047 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17048
17049 # Commands used to build a loadable module if different from building
17050 # a shared archive.
17051 module_cmds=$lt_module_cmds_GO
17052 module_expsym_cmds=$lt_module_expsym_cmds_GO
17053
17054 # Whether we are building with GNU ld or not.
17055 with_gnu_ld=$lt_with_gnu_ld_GO
17056
17057 # Flag that allows shared libraries with undefined symbols to be built.
17058 allow_undefined_flag=$lt_allow_undefined_flag_GO
17059
17060 # Flag that enforces no undefined symbols.
17061 no_undefined_flag=$lt_no_undefined_flag_GO
17062
17063 # Flag to hardcode \$libdir into a binary during linking.
17064 # This must work even if \$libdir does not exist
17065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17066
17067 # If ld is used when linking, flag to hardcode \$libdir into a binary
17068 # during linking.  This must work even if \$libdir does not exist.
17069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17070
17071 # Whether we need a single "-rpath" flag with a separated argument.
17072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17073
17074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17075 # DIR into the resulting binary.
17076 hardcode_direct=$hardcode_direct_GO
17077
17078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17079 # DIR into the resulting binary and the resulting library dependency is
17080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17081 # library is relocated.
17082 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17083
17084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17085 # into the resulting binary.
17086 hardcode_minus_L=$hardcode_minus_L_GO
17087
17088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17089 # into the resulting binary.
17090 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17091
17092 # Set to "yes" if building a shared library automatically hardcodes DIR
17093 # into the library and all subsequent libraries and executables linked
17094 # against it.
17095 hardcode_automatic=$hardcode_automatic_GO
17096
17097 # Set to yes if linker adds runtime paths of dependent libraries
17098 # to runtime path list.
17099 inherit_rpath=$inherit_rpath_GO
17100
17101 # Whether libtool must link a program against all its dependency libraries.
17102 link_all_deplibs=$link_all_deplibs_GO
17103
17104 # Fix the shell variable \$srcfile for the compiler.
17105 fix_srcfile_path=$lt_fix_srcfile_path_GO
17106
17107 # Set to "yes" if exported symbols are required.
17108 always_export_symbols=$always_export_symbols_GO
17109
17110 # The commands to list exported symbols.
17111 export_symbols_cmds=$lt_export_symbols_cmds_GO
17112
17113 # Symbols that should not be listed in the preloaded symbols.
17114 exclude_expsyms=$lt_exclude_expsyms_GO
17115
17116 # Symbols that must always be exported.
17117 include_expsyms=$lt_include_expsyms_GO
17118
17119 # Commands necessary for linking programs (against libraries) with templates.
17120 prelink_cmds=$lt_prelink_cmds_GO
17121
17122 # Specify filename containing input files.
17123 file_list_spec=$lt_file_list_spec_GO
17124
17125 # How to hardcode a shared library path into an executable.
17126 hardcode_action=$hardcode_action_GO
17127
17128 # ### END LIBTOOL TAG CONFIG: GO
17129 _LT_EOF
17130
17131  ;;
17132     "default":C) if test -n "$CONFIG_FILES"; then
17133    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17134    # that multilib installs will end up installed in the correct place.
17135    # The testsuite needs it for multilib-aware ABI baseline files.
17136    # To work around this not being passed down from config-ml.in ->
17137    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17138    # append it here.  Only modify Makefiles that have just been created.
17139    #
17140    # Also, get rid of this simulated-VPATH thing that automake does.
17141    cat > vpsed << \_EOF
17142 s!`test -f '$<' || echo '$(srcdir)/'`!!
17143 _EOF
17144    for i in $SUBDIRS; do
17145     case $CONFIG_FILES in
17146      *${i}/Makefile*)
17147        #echo "Adding MULTISUBDIR to $i/Makefile"
17148        sed -f vpsed $i/Makefile > tmp
17149        grep '^MULTISUBDIR =' Makefile >> tmp
17150        mv tmp $i/Makefile
17151        ;;
17152     esac
17153    done
17154    rm vpsed
17155  fi
17156  ;;
17157
17158   esac
17159 done # for ac_tag
17160
17161
17162 as_fn_exit 0
17163 _ACEOF
17164 ac_clean_files=$ac_clean_files_save
17165
17166 test $ac_write_fail = 0 ||
17167   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17168
17169
17170 # configure is writing to config.log, and then calls config.status.
17171 # config.status does its own redirection, appending to config.log.
17172 # Unfortunately, on DOS this fails, as config.log is still kept open
17173 # by configure, so config.status won't be able to write to it; its
17174 # output is simply discarded.  So we exec the FD to /dev/null,
17175 # effectively closing config.log, so it can be properly (re)opened and
17176 # appended to by config.status.  When coming back to configure, we
17177 # need to make the FD available again.
17178 if test "$no_create" != yes; then
17179   ac_cs_success=:
17180   ac_config_status_args=
17181   test "$silent" = yes &&
17182     ac_config_status_args="$ac_config_status_args --quiet"
17183   exec 5>/dev/null
17184   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17185   exec 5>>config.log
17186   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17187   # would make configure fail if this is the last instruction.
17188   $ac_cs_success || as_fn_exit $?
17189 fi
17190 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17191   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17192 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17193 fi
17194