OSDN Git Service

Test for libitm directory present before testing for support.
[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 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 STRINGOPS_FLAG
608 HAVE_WAIT4_FALSE
609 HAVE_WAIT4_TRUE
610 HAVE_STRERROR_R_FALSE
611 HAVE_STRERROR_R_TRUE
612 HAVE_SYS_MMAN_H_FALSE
613 HAVE_SYS_MMAN_H_TRUE
614 PTHREAD_LIBS
615 PTHREAD_CFLAGS
616 NET_LIBS
617 MATH_LIBS
618 USING_SPLIT_STACK_FALSE
619 USING_SPLIT_STACK_TRUE
620 SPLIT_STACK
621 OSCFLAGS
622 GO_SYSCALL_OS_ARCH_FILE
623 GO_SYSCALL_OS_FILE
624 GO_LIBCALL_OS_ARCH_FILE
625 GO_LIBCALL_OS_FILE
626 GOARCH
627 LIBGO_IS_X86_64_FALSE
628 LIBGO_IS_X86_64_TRUE
629 LIBGO_IS_SPARC64_FALSE
630 LIBGO_IS_SPARC64_TRUE
631 LIBGO_IS_SPARC_FALSE
632 LIBGO_IS_SPARC_TRUE
633 LIBGO_IS_PPC64_FALSE
634 LIBGO_IS_PPC64_TRUE
635 LIBGO_IS_PPC_FALSE
636 LIBGO_IS_PPC_TRUE
637 LIBGO_IS_MIPSO64_FALSE
638 LIBGO_IS_MIPSO64_TRUE
639 LIBGO_IS_MIPSN64_FALSE
640 LIBGO_IS_MIPSN64_TRUE
641 LIBGO_IS_MIPSN32_FALSE
642 LIBGO_IS_MIPSN32_TRUE
643 LIBGO_IS_MIPSO32_FALSE
644 LIBGO_IS_MIPSO32_TRUE
645 LIBGO_IS_MIPS_FALSE
646 LIBGO_IS_MIPS_TRUE
647 LIBGO_IS_M68K_FALSE
648 LIBGO_IS_M68K_TRUE
649 LIBGO_IS_ARM_FALSE
650 LIBGO_IS_ARM_TRUE
651 LIBGO_IS_ALPHA_FALSE
652 LIBGO_IS_ALPHA_TRUE
653 LIBGO_IS_386_FALSE
654 LIBGO_IS_386_TRUE
655 GOOS
656 LIBGO_IS_SOLARIS_FALSE
657 LIBGO_IS_SOLARIS_TRUE
658 LIBGO_IS_RTEMS_FALSE
659 LIBGO_IS_RTEMS_TRUE
660 LIBGO_IS_LINUX_FALSE
661 LIBGO_IS_LINUX_TRUE
662 LIBGO_IS_IRIX_FALSE
663 LIBGO_IS_IRIX_TRUE
664 LIBGO_IS_FREEBSD_FALSE
665 LIBGO_IS_FREEBSD_TRUE
666 LIBGO_IS_DARWIN_FALSE
667 LIBGO_IS_DARWIN_TRUE
668 LIBFFIINCS
669 LIBFFI
670 glibgo_toolexeclibdir
671 glibgo_toolexecdir
672 glibgo_prefixdir
673 WERROR
674 WARN_FLAGS
675 CC_FOR_BUILD
676 enable_static
677 enable_shared
678 CPP
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 AR
685 OBJDUMP
686 LN_S
687 NM
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LIBTOOL
691 OBJCOPY
692 RANLIB
693 LD
694 FGREP
695 EGREP
696 GREP
697 SED
698 MAINT
699 MAINTAINER_MODE_FALSE
700 MAINTAINER_MODE_TRUE
701 GOCFLAGS
702 GOC
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 multi_basedir
755 libtool_VERSION
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_multilib
798 enable_dependency_tracking
799 enable_maintainer_mode
800 with_gnu_ld
801 enable_shared
802 enable_static
803 with_pic
804 enable_fast_install
805 enable_libtool_lock
806 enable_version_specific_runtime_libs
807 with_libffi
808 with_system_libunwind
809 enable_sjlj_exceptions
810 '
811       ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CPP
815 CPPFLAGS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924       as_fn_error "invalid feature name: $ac_useropt"
925     ac_useropt_orig=$ac_useropt
926     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927     case $ac_user_opts in
928       *"
929 "enable_$ac_useropt"
930 "*) ;;
931       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932          ac_unrecognized_sep=', ';;
933     esac
934     eval enable_$ac_useropt=no ;;
935
936   -docdir | --docdir | --docdi | --doc | --do)
937     ac_prev=docdir ;;
938   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939     docdir=$ac_optarg ;;
940
941   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942     ac_prev=dvidir ;;
943   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944     dvidir=$ac_optarg ;;
945
946   -enable-* | --enable-*)
947     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950       as_fn_error "invalid feature name: $ac_useropt"
951     ac_useropt_orig=$ac_useropt
952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953     case $ac_user_opts in
954       *"
955 "enable_$ac_useropt"
956 "*) ;;
957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958          ac_unrecognized_sep=', ';;
959     esac
960     eval enable_$ac_useropt=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154       as_fn_error "invalid package name: $ac_useropt"
1155     ac_useropt_orig=$ac_useropt
1156     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157     case $ac_user_opts in
1158       *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162          ac_unrecognized_sep=', ';;
1163     esac
1164     eval with_$ac_useropt=\$ac_optarg ;;
1165
1166   -without-* | --without-*)
1167     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170       as_fn_error "invalid package name: $ac_useropt"
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=no ;;
1181
1182   --x)
1183     # Obsolete; use --with-x.
1184     with_x=yes ;;
1185
1186   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187   | --x-incl | --x-inc | --x-in | --x-i)
1188     ac_prev=x_includes ;;
1189   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191     x_includes=$ac_optarg ;;
1192
1193   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195     ac_prev=x_libraries ;;
1196   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198     x_libraries=$ac_optarg ;;
1199
1200   -*) as_fn_error "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information."
1202     ;;
1203
1204   *=*)
1205     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206     # Reject names that are not valid shell variable names.
1207     case $ac_envvar in #(
1208       '' | [0-9]* | *[!_$as_cr_alnum]* )
1209       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1210     esac
1211     eval $ac_envvar=\$ac_optarg
1212     export $ac_envvar ;;
1213
1214   *)
1215     # FIXME: should be removed in autoconf 3.0.
1216     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220     ;;
1221
1222   esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227   as_fn_error "missing argument to $ac_option"
1228 fi
1229
1230 if test -n "$ac_unrecognized_opts"; then
1231   case $enable_option_checking in
1232     no) ;;
1233     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1234     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235   esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240                 datadir sysconfdir sharedstatedir localstatedir includedir \
1241                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242                 libdir localedir mandir
1243 do
1244   eval ac_val=\$$ac_var
1245   # Remove trailing slashes.
1246   case $ac_val in
1247     */ )
1248       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249       eval $ac_var=\$ac_val;;
1250   esac
1251   # Be sure to have absolute directory names.
1252   case $ac_val in
1253     [\\/$]* | ?:[\\/]* )  continue;;
1254     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255   esac
1256   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268   if test "x$build_alias" = x; then
1269     cross_compiling=maybe
1270     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1271     If a cross compiler is detected then cross compile mode will be used." >&2
1272   elif test "x$build_alias" != "x$host_alias"; then
1273     cross_compiling=yes
1274   fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286   as_fn_error "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288   as_fn_error "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293   ac_srcdir_defaulted=yes
1294   # Try the directory containing this script, then the parent directory.
1295   ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297          X"$as_myself" : 'X\(//\)[^/]' \| \
1298          X"$as_myself" : 'X\(//\)$' \| \
1299          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 $as_echo X"$as_myself" |
1301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302             s//\1/
1303             q
1304           }
1305           /^X\(\/\/\)[^/].*/{
1306             s//\1/
1307             q
1308           }
1309           /^X\(\/\/\)$/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\).*/{
1314             s//\1/
1315             q
1316           }
1317           s/.*/./; q'`
1318   srcdir=$ac_confdir
1319   if test ! -r "$srcdir/$ac_unique_file"; then
1320     srcdir=..
1321   fi
1322 else
1323   ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1332         pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335   srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345   eval ac_env_${ac_var}_value=\$${ac_var}
1346   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354   # Omit some internal or obsolete options to make the list less imposing.
1355   # This message is too long to be a string in the A/UX 3.1 sh.
1356   cat <<_ACEOF
1357 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367   -h, --help              display this help and exit
1368       --help=short        display options specific to this package
1369       --help=recursive    display the short help of all the included packages
1370   -V, --version           display version information and exit
1371   -q, --quiet, --silent   do not print \`checking...' messages
1372       --cache-file=FILE   cache test results in FILE [disabled]
1373   -C, --config-cache      alias for \`--cache-file=config.cache'
1374   -n, --no-create         do not create output files
1375       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378   --prefix=PREFIX         install architecture-independent files in PREFIX
1379                           [$ac_default_prefix]
1380   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                           [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391   --bindir=DIR            user executables [EPREFIX/bin]
1392   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393   --libexecdir=DIR        program executables [EPREFIX/libexec]
1394   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397   --libdir=DIR            object code libraries [EPREFIX/lib]
1398   --includedir=DIR        C header files [PREFIX/include]
1399   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402   --infodir=DIR           info documentation [DATAROOTDIR/info]
1403   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404   --mandir=DIR            man documentation [DATAROOTDIR/man]
1405   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1406   --htmldir=DIR           html documentation [DOCDIR]
1407   --dvidir=DIR            dvi documentation [DOCDIR]
1408   --pdfdir=DIR            pdf documentation [DOCDIR]
1409   --psdir=DIR             ps documentation [DOCDIR]
1410 _ACEOF
1411
1412   cat <<\_ACEOF
1413
1414 Program names:
1415   --program-prefix=PREFIX            prepend PREFIX to installed program names
1416   --program-suffix=SUFFIX            append SUFFIX to installed program names
1417   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1418
1419 System types:
1420   --build=BUILD     configure for building on BUILD [guessed]
1421   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422   --target=TARGET   configure for building compilers for TARGET [HOST]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427   case $ac_init_help in
1428      short | recursive ) echo "Configuration of package-unused version-unused:";;
1429    esac
1430   cat <<\_ACEOF
1431
1432 Optional Features:
1433   --disable-option-checking  ignore unrecognized --enable/--with options
1434   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436   --enable-multilib       build many library versions (default)
1437   --disable-dependency-tracking  speeds up one-time build
1438   --enable-dependency-tracking   do not reject slow dependency extractors
1439   --enable-maintainer-mode  enable make rules and dependencies not useful
1440                           (and sometimes confusing) to the casual installer
1441   --enable-shared[=PKGS]  build shared libraries [default=yes]
1442   --enable-static[=PKGS]  build static libraries [default=yes]
1443   --enable-fast-install[=PKGS]
1444                           optimize for fast installation [default=yes]
1445   --disable-libtool-lock  avoid locking (might break parallel builds)
1446   --enable-version-specific-runtime-libs
1447                           Specify that runtime libraries should be installed
1448                           in a compiler-specific directory
1449   --enable-sjlj-exceptions
1450                           force use of builtin_setjmp for exceptions
1451
1452 Optional Packages:
1453   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1456   --with-pic              try to use only PIC/non-PIC objects [default=use
1457                           both]
1458   --without-libffi        don't use libffi
1459   --with-system-libunwind use installed libunwind
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   LIBS        libraries to pass to the linker, e.g. -l<library>
1467   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468               you have headers in a nonstandard directory <include dir>
1469   GOC         Go compiler command
1470   GOCFLAGS    Go compiler flags
1471   CPP         C preprocessor
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to the package provider.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482   # If there are subdirs, report their specific --help.
1483   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484     test -d "$ac_dir" ||
1485       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486       continue
1487     ac_builddir=.
1488
1489 case "$ac_dir" in
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *)
1492   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493   # A ".." for each directory in $ac_dir_suffix.
1494   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495   case $ac_top_builddir_sub in
1496   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498   esac ;;
1499 esac
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1504
1505 case $srcdir in
1506   .)  # We are building in place.
1507     ac_srcdir=.
1508     ac_top_srcdir=$ac_top_builddir_sub
1509     ac_abs_top_srcdir=$ac_pwd ;;
1510   [\\/]* | ?:[\\/]* )  # Absolute name.
1511     ac_srcdir=$srcdir$ac_dir_suffix;
1512     ac_top_srcdir=$srcdir
1513     ac_abs_top_srcdir=$srcdir ;;
1514   *) # Relative name.
1515     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516     ac_top_srcdir=$ac_top_build_prefix$srcdir
1517     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 esac
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520
1521     cd "$ac_dir" || { ac_status=$?; continue; }
1522     # Check for guested configure.
1523     if test -f "$ac_srcdir/configure.gnu"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526     elif test -f "$ac_srcdir/configure"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure" --help=recursive
1529     else
1530       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531     fi || ac_status=$?
1532     cd "$ac_pwd" || { ac_status=$?; break; }
1533   done
1534 fi
1535
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538   cat <<\_ACEOF
1539 package-unused configure version-unused
1540 generated by GNU Autoconf 2.64
1541
1542 Copyright (C) 2009 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546   exit
1547 fi
1548
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1552
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1557 {
1558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559   rm -f conftest.$ac_objext
1560   if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563   *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567   (eval "$ac_compile") 2>conftest.err
1568   ac_status=$?
1569   if test -s conftest.err; then
1570     grep -v '^ *+' conftest.err >conftest.er1
1571     cat conftest.er1 >&5
1572     mv -f conftest.er1 conftest.err
1573   fi
1574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575   test $ac_status = 0; } && {
1576          test -z "$ac_c_werror_flag" ||
1577          test ! -s conftest.err
1578        } && test -s conftest.$ac_objext; then :
1579   ac_retval=0
1580 else
1581   $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584         ac_retval=1
1585 fi
1586   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587   return $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_c_try_link LINENO
1592 # -----------------------
1593 # Try to link conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_link ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   rm -f conftest.$ac_objext conftest$ac_exeext
1598   if { { ac_try="$ac_link"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_link") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } && {
1614          test -z "$ac_c_werror_flag" ||
1615          test ! -s conftest.err
1616        } && test -s conftest$ac_exeext && {
1617          test "$cross_compiling" = yes ||
1618          $as_test_x conftest$ac_exeext
1619        }; then :
1620   ac_retval=0
1621 else
1622   $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625         ac_retval=1
1626 fi
1627   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1628   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1629   # interfere with the next link command; also delete a directory that is
1630   # left behind by Apple's compiler.  We do this before executing the actions.
1631   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633   return $ac_retval
1634
1635 } # ac_fn_c_try_link
1636
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647   $as_echo_n "(cached) " >&6
1648 else
1649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h.  */
1651 $4
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"; then :
1655   eval "$3=yes"
1656 else
1657   eval "$3=no"
1658 fi
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 fi
1661 eval ac_res=\$$3
1662                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665
1666 } # ac_fn_c_check_header_compile
1667
1668 # ac_fn_c_try_cpp LINENO
1669 # ----------------------
1670 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_cpp ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   if { { ac_try="$ac_cpp conftest.$ac_ext"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } >/dev/null && {
1690          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1691          test ! -s conftest.err
1692        }; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698     ac_retval=1
1699 fi
1700   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701   return $ac_retval
1702
1703 } # ac_fn_c_try_cpp
1704
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_link") 2>&5
1720   ac_status=$?
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723   { { case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_try") 2>&5
1730   ac_status=$?
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; }; }; then :
1733   ac_retval=0
1734 else
1735   $as_echo "$as_me: program exited with status $ac_status" >&5
1736        $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739        ac_retval=$ac_status
1740 fi
1741   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743   return $ac_retval
1744
1745 } # ac_fn_c_try_run
1746
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756   $as_echo_n "(cached) " >&6
1757 else
1758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1762 #define $2 innocuous_$2
1763
1764 /* System header to define __stub macros and hopefully few prototypes,
1765     which can conflict with char $2 (); below.
1766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767     <limits.h> exists even on freestanding compilers.  */
1768
1769 #ifdef __STDC__
1770 # include <limits.h>
1771 #else
1772 # include <assert.h>
1773 #endif
1774
1775 #undef $2
1776
1777 /* Override any GCC internal prototype to avoid an error.
1778    Use char because int might match the return type of a GCC
1779    builtin and then its argument prototype would still apply.  */
1780 #ifdef __cplusplus
1781 extern "C"
1782 #endif
1783 char $2 ();
1784 /* The GNU C library defines this for functions which it implements
1785     to always fail with ENOSYS.  Some functions are actually named
1786     something starting with __ and the normal name is an alias.  */
1787 #if defined __stub_$2 || defined __stub___$2
1788 choke me
1789 #endif
1790
1791 int
1792 main ()
1793 {
1794 return $2 ();
1795   ;
1796   return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_link "$LINENO"; then :
1800   eval "$3=yes"
1801 else
1802   eval "$3=no"
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext \
1805     conftest$ac_exeext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812 } # ac_fn_c_check_func
1813
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1818 # accordingly.
1819 ac_fn_c_check_header_mongrel ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826   $as_echo_n "(cached) " >&6
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 else
1832   # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 $4
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841   ac_header_compiler=yes
1842 else
1843   ac_header_compiler=no
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1848
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857   ac_header_preproc=yes
1858 else
1859   ac_header_preproc=no
1860 fi
1861 rm -f conftest.err conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1864
1865 # So?  What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867   yes:no: )
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872     ;;
1873   no:yes:* )
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884     ;;
1885 esac
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   eval "$3=\$ac_header_compiler"
1892 fi
1893 eval ac_res=\$$3
1894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 fi
1897   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898
1899 } # ac_fn_c_check_header_mongrel
1900
1901 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1902 # -------------------------------------------
1903 # Tests whether TYPE exists after having included INCLUDES, setting cache
1904 # variable VAR accordingly.
1905 ac_fn_c_check_type ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911   $as_echo_n "(cached) " >&6
1912 else
1913   eval "$3=no"
1914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h.  */
1916 $4
1917 int
1918 main ()
1919 {
1920 if (sizeof ($2))
1921          return 0;
1922   ;
1923   return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 $4
1930 int
1931 main ()
1932 {
1933 if (sizeof (($2)))
1934             return 0;
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940
1941 else
1942   eval "$3=yes"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_type
1954
1955 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1956 # --------------------------------------------
1957 # Tries to find the compile-time value of EXPR in a program that includes
1958 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1959 # computed
1960 ac_fn_c_compute_int ()
1961 {
1962   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963   if test "$cross_compiling" = yes; then
1964     # Depending upon the size, compute the lo and hi bounds.
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 $4
1968 int
1969 main ()
1970 {
1971 static int test_array [1 - 2 * !(($2) >= 0)];
1972 test_array [0] = 0
1973
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979   ac_lo=0 ac_mid=0
1980   while :; do
1981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h.  */
1983 $4
1984 int
1985 main ()
1986 {
1987 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 test_array [0] = 0
1989
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995   ac_hi=$ac_mid; break
1996 else
1997   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1998                         if test $ac_lo -le $ac_mid; then
1999                           ac_lo= ac_hi=
2000                           break
2001                         fi
2002                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005   done
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 int
2011 main ()
2012 {
2013 static int test_array [1 - 2 * !(($2) < 0)];
2014 test_array [0] = 0
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021   ac_hi=-1 ac_mid=-1
2022   while :; do
2023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $4
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2030 test_array [0] = 0
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   ac_lo=$ac_mid; break
2038 else
2039   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2040                         if test $ac_mid -le $ac_hi; then
2041                           ac_lo= ac_hi=
2042                           break
2043                         fi
2044                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047   done
2048 else
2049   ac_lo= ac_hi=
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 # Binary search between lo and hi bounds.
2055 while test "x$ac_lo" != "x$ac_hi"; do
2056   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 test_array [0] = 0
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   ac_hi=$ac_mid
2072 else
2073   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 done
2077 case $ac_lo in #((
2078 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2079 '') ac_retval=1 ;;
2080 esac
2081   else
2082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 static long int longval () { return $2; }
2086 static unsigned long int ulongval () { return $2; }
2087 #include <stdio.h>
2088 #include <stdlib.h>
2089 int
2090 main ()
2091 {
2092
2093   FILE *f = fopen ("conftest.val", "w");
2094   if (! f)
2095     return 1;
2096   if (($2) < 0)
2097     {
2098       long int i = longval ();
2099       if (i != ($2))
2100         return 1;
2101       fprintf (f, "%ld", i);
2102     }
2103   else
2104     {
2105       unsigned long int i = ulongval ();
2106       if (i != ($2))
2107         return 1;
2108       fprintf (f, "%lu", i);
2109     }
2110   /* Do not output a trailing newline, as this causes \r\n confusion
2111      on some platforms.  */
2112   return ferror (f) || fclose (f) != 0;
2113
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_run "$LINENO"; then :
2119   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2120 else
2121   ac_retval=1
2122 fi
2123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2124   conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 rm -f conftest.val
2126
2127   fi
2128   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129   return $ac_retval
2130
2131 } # ac_fn_c_compute_int
2132 cat >config.log <<_ACEOF
2133 This file contains any messages produced by compilers while
2134 running configure, to aid debugging if configure makes a mistake.
2135
2136 It was created by package-unused $as_me version-unused, which was
2137 generated by GNU Autoconf 2.64.  Invocation command line was
2138
2139   $ $0 $@
2140
2141 _ACEOF
2142 exec 5>>config.log
2143 {
2144 cat <<_ASUNAME
2145 ## --------- ##
2146 ## Platform. ##
2147 ## --------- ##
2148
2149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154
2155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2157
2158 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2159 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2162 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2163 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2164 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2165
2166 _ASUNAME
2167
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171   IFS=$as_save_IFS
2172   test -z "$as_dir" && as_dir=.
2173     $as_echo "PATH: $as_dir"
2174   done
2175 IFS=$as_save_IFS
2176
2177 } >&5
2178
2179 cat >&5 <<_ACEOF
2180
2181
2182 ## ----------- ##
2183 ## Core tests. ##
2184 ## ----------- ##
2185
2186 _ACEOF
2187
2188
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_configure_args=
2195 ac_configure_args0=
2196 ac_configure_args1=
2197 ac_must_keep_next=false
2198 for ac_pass in 1 2
2199 do
2200   for ac_arg
2201   do
2202     case $ac_arg in
2203     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205     | -silent | --silent | --silen | --sile | --sil)
2206       continue ;;
2207     *\'*)
2208       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209     esac
2210     case $ac_pass in
2211     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212     2)
2213       as_fn_append ac_configure_args1 " '$ac_arg'"
2214       if test $ac_must_keep_next = true; then
2215         ac_must_keep_next=false # Got value, back to normal.
2216       else
2217         case $ac_arg in
2218           *=* | --config-cache | -C | -disable-* | --disable-* \
2219           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221           | -with-* | --with-* | -without-* | --without-* | --x)
2222             case "$ac_configure_args0 " in
2223               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224             esac
2225             ;;
2226           -* ) ac_must_keep_next=true ;;
2227         esac
2228       fi
2229       as_fn_append ac_configure_args " '$ac_arg'"
2230       ;;
2231     esac
2232   done
2233 done
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2236
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log.  We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2243   # Save into config.log some information that might help in debugging.
2244   {
2245     echo
2246
2247     cat <<\_ASBOX
2248 ## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##
2251 _ASBOX
2252     echo
2253     # The following way of writing the cache mishandles newlines in values,
2254 (
2255   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256     eval ac_val=\$$ac_var
2257     case $ac_val in #(
2258     *${as_nl}*)
2259       case $ac_var in #(
2260       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262       esac
2263       case $ac_var in #(
2264       _ | IFS | as_nl) ;; #(
2265       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266       *) { eval $ac_var=; unset $ac_var;} ;;
2267       esac ;;
2268     esac
2269   done
2270   (set) 2>&1 |
2271     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272     *${as_nl}ac_space=\ *)
2273       sed -n \
2274         "s/'\''/'\''\\\\'\'''\''/g;
2275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276       ;; #(
2277     *)
2278       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279       ;;
2280     esac |
2281     sort
2282 )
2283     echo
2284
2285     cat <<\_ASBOX
2286 ## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##
2289 _ASBOX
2290     echo
2291     for ac_var in $ac_subst_vars
2292     do
2293       eval ac_val=\$$ac_var
2294       case $ac_val in
2295       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296       esac
2297       $as_echo "$ac_var='\''$ac_val'\''"
2298     done | sort
2299     echo
2300
2301     if test -n "$ac_subst_files"; then
2302       cat <<\_ASBOX
2303 ## ------------------- ##
2304 ## File substitutions. ##
2305 ## ------------------- ##
2306 _ASBOX
2307       echo
2308       for ac_var in $ac_subst_files
2309       do
2310         eval ac_val=\$$ac_var
2311         case $ac_val in
2312         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313         esac
2314         $as_echo "$ac_var='\''$ac_val'\''"
2315       done | sort
2316       echo
2317     fi
2318
2319     if test -s confdefs.h; then
2320       cat <<\_ASBOX
2321 ## ----------- ##
2322 ## confdefs.h. ##
2323 ## ----------- ##
2324 _ASBOX
2325       echo
2326       cat confdefs.h
2327       echo
2328     fi
2329     test "$ac_signal" != 0 &&
2330       $as_echo "$as_me: caught signal $ac_signal"
2331     $as_echo "$as_me: exit $exit_status"
2332   } >&5
2333   rm -f core *.core core.conftest.* &&
2334     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2335     exit $exit_status
2336 ' 0
2337 for ac_signal in 1 2 13 15; do
2338   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2339 done
2340 ac_signal=0
2341
2342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2343 rm -f -r conftest* confdefs.h
2344
2345 $as_echo "/* confdefs.h */" > confdefs.h
2346
2347 # Predefined preprocessor variables.
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_NAME "$PACKAGE_NAME"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_STRING "$PACKAGE_STRING"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_URL "$PACKAGE_URL"
2371 _ACEOF
2372
2373
2374 # Let the site file select an alternate cache file if it wants to.
2375 # Prefer an explicitly selected file to automatically selected ones.
2376 ac_site_file1=NONE
2377 ac_site_file2=NONE
2378 if test -n "$CONFIG_SITE"; then
2379   ac_site_file1=$CONFIG_SITE
2380 elif test "x$prefix" != xNONE; then
2381   ac_site_file1=$prefix/share/config.site
2382   ac_site_file2=$prefix/etc/config.site
2383 else
2384   ac_site_file1=$ac_default_prefix/share/config.site
2385   ac_site_file2=$ac_default_prefix/etc/config.site
2386 fi
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 do
2389   test "x$ac_site_file" = xNONE && continue
2390   if test -r "$ac_site_file"; then
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393     sed 's/^/| /' "$ac_site_file" >&5
2394     . "$ac_site_file"
2395   fi
2396 done
2397
2398 if test -r "$cache_file"; then
2399   # Some versions of bash will fail to source /dev/null (special
2400   # files actually), so we avoid doing that.
2401   if test -f "$cache_file"; then
2402     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2403 $as_echo "$as_me: loading cache $cache_file" >&6;}
2404     case $cache_file in
2405       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2406       *)                      . "./$cache_file";;
2407     esac
2408   fi
2409 else
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2411 $as_echo "$as_me: creating cache $cache_file" >&6;}
2412   >$cache_file
2413 fi
2414
2415 # Check that the precious variables saved in the cache have kept the same
2416 # value.
2417 ac_cache_corrupted=false
2418 for ac_var in $ac_precious_vars; do
2419   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420   eval ac_new_set=\$ac_env_${ac_var}_set
2421   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422   eval ac_new_val=\$ac_env_${ac_var}_value
2423   case $ac_old_set,$ac_new_set in
2424     set,)
2425       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427       ac_cache_corrupted=: ;;
2428     ,set)
2429       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431       ac_cache_corrupted=: ;;
2432     ,);;
2433     *)
2434       if test "x$ac_old_val" != "x$ac_new_val"; then
2435         # differences in whitespace do not lead to failure.
2436         ac_old_val_w=`echo x $ac_old_val`
2437         ac_new_val_w=`echo x $ac_new_val`
2438         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441           ac_cache_corrupted=:
2442         else
2443           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445           eval $ac_var=\$ac_old_val
2446         fi
2447         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2448 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2449         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2450 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2451       fi;;
2452   esac
2453   # Pass precious variables to config.status.
2454   if test "$ac_new_set" = set; then
2455     case $ac_new_val in
2456     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457     *) ac_arg=$ac_var=$ac_new_val ;;
2458     esac
2459     case " $ac_configure_args " in
2460       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2461       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2462     esac
2463   fi
2464 done
2465 if $ac_cache_corrupted; then
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2470   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471 fi
2472 ## -------------------- ##
2473 ## Main body of script. ##
2474 ## -------------------- ##
2475
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482
2483
2484
2485
2486
2487 ac_config_headers="$ac_config_headers config.h"
2488
2489
2490 libtool_VERSION=1:0:0
2491
2492
2493 # Default to --enable-multilib
2494 # Check whether --enable-multilib was given.
2495 if test "${enable_multilib+set}" = set; then :
2496   enableval=$enable_multilib; case "$enableval" in
2497   yes) multilib=yes ;;
2498   no)  multilib=no ;;
2499   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2500  esac
2501 else
2502   multilib=yes
2503 fi
2504
2505
2506 # We may get other options which we leave undocumented:
2507 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2508 # See config-ml.in if you want the gory details.
2509
2510 if test "$srcdir" = "."; then
2511   if test "$with_target_subdir" != "."; then
2512     multi_basedir="$srcdir/$with_multisrctop../.."
2513   else
2514     multi_basedir="$srcdir/$with_multisrctop.."
2515   fi
2516 else
2517   multi_basedir="$srcdir/.."
2518 fi
2519
2520
2521 # Even if the default multilib is not a cross compilation,
2522 # it may be that some of the other multilibs are.
2523 if test $cross_compiling = no && test $multilib = yes \
2524    && test "x${with_multisubdir}" != x ; then
2525    cross_compiling=maybe
2526 fi
2527
2528 ac_config_commands="$ac_config_commands default-1"
2529
2530
2531 ac_aux_dir=
2532 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2533   for ac_t in install-sh install.sh shtool; do
2534     if test -f "$ac_dir/$ac_t"; then
2535       ac_aux_dir=$ac_dir
2536       ac_install_sh="$ac_aux_dir/$ac_t -c"
2537       break 2
2538     fi
2539   done
2540 done
2541 if test -z "$ac_aux_dir"; then
2542   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2543 fi
2544
2545 # These three variables are undocumented and unsupported,
2546 # and are intended to be withdrawn in a future Autoconf release.
2547 # They can cause serious problems if a builder's source tree is in a directory
2548 # whose full name contains unusual characters.
2549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2551 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2552
2553
2554 # Make sure we can run config.sub.
2555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2556   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2559 $as_echo_n "checking build system type... " >&6; }
2560 if test "${ac_cv_build+set}" = set; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   ac_build_alias=$build_alias
2564 test "x$ac_build_alias" = x &&
2565   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2566 test "x$ac_build_alias" = x &&
2567   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2569   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2570
2571 fi
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2573 $as_echo "$ac_cv_build" >&6; }
2574 case $ac_cv_build in
2575 *-*-*) ;;
2576 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2577 esac
2578 build=$ac_cv_build
2579 ac_save_IFS=$IFS; IFS='-'
2580 set x $ac_cv_build
2581 shift
2582 build_cpu=$1
2583 build_vendor=$2
2584 shift; shift
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2587 build_os=$*
2588 IFS=$ac_save_IFS
2589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2590
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2593 $as_echo_n "checking host system type... " >&6; }
2594 if test "${ac_cv_host+set}" = set; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   if test "x$host_alias" = x; then
2598   ac_cv_host=$ac_cv_build
2599 else
2600   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2601     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2602 fi
2603
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2606 $as_echo "$ac_cv_host" >&6; }
2607 case $ac_cv_host in
2608 *-*-*) ;;
2609 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2610 esac
2611 host=$ac_cv_host
2612 ac_save_IFS=$IFS; IFS='-'
2613 set x $ac_cv_host
2614 shift
2615 host_cpu=$1
2616 host_vendor=$2
2617 shift; shift
2618 # Remember, the first character of IFS is used to create $*,
2619 # except with old shells:
2620 host_os=$*
2621 IFS=$ac_save_IFS
2622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2623
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2626 $as_echo_n "checking target system type... " >&6; }
2627 if test "${ac_cv_target+set}" = set; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test "x$target_alias" = x; then
2631   ac_cv_target=$ac_cv_host
2632 else
2633   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2634     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2635 fi
2636
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2639 $as_echo "$ac_cv_target" >&6; }
2640 case $ac_cv_target in
2641 *-*-*) ;;
2642 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2643 esac
2644 target=$ac_cv_target
2645 ac_save_IFS=$IFS; IFS='-'
2646 set x $ac_cv_target
2647 shift
2648 target_cpu=$1
2649 target_vendor=$2
2650 shift; shift
2651 # Remember, the first character of IFS is used to create $*,
2652 # except with old shells:
2653 target_os=$*
2654 IFS=$ac_save_IFS
2655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2656
2657
2658 # The aliases save the names the user supplied, while $host etc.
2659 # will get canonicalized.
2660 test -n "$target_alias" &&
2661   test "$program_prefix$program_suffix$program_transform_name" = \
2662     NONENONEs,x,x, &&
2663   program_prefix=${target_alias}-
2664
2665 target_alias=${target_alias-$host_alias}
2666
2667 am__api_version='1.11'
2668
2669 # Find a good install program.  We prefer a C program (faster),
2670 # so one script is as good as another.  But avoid the broken or
2671 # incompatible versions:
2672 # SysV /etc/install, /usr/sbin/install
2673 # SunOS /usr/etc/install
2674 # IRIX /sbin/install
2675 # AIX /bin/install
2676 # AmigaOS /C/install, which installs bootblocks on floppy discs
2677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2680 # OS/2's system install, which has a completely different semantic
2681 # ./install, which can be erroneously created by make from ./install.sh.
2682 # Reject install programs that cannot install multiple files.
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2684 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2685 if test -z "$INSTALL"; then
2686 if test "${ac_cv_path_install+set}" = set; then :
2687   $as_echo_n "(cached) " >&6
2688 else
2689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694     # Account for people who put trailing slashes in PATH elements.
2695 case $as_dir/ in #((
2696   ./ | .// | /[cC]/* | \
2697   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2698   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2699   /usr/ucb/* ) ;;
2700   *)
2701     # OSF1 and SCO ODT 3.0 have their own names for install.
2702     # Don't use installbsd from OSF since it installs stuff as root
2703     # by default.
2704     for ac_prog in ginstall scoinst install; do
2705       for ac_exec_ext in '' $ac_executable_extensions; do
2706         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2707           if test $ac_prog = install &&
2708             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709             # AIX install.  It has an incompatible calling convention.
2710             :
2711           elif test $ac_prog = install &&
2712             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713             # program-specific install script used by HP pwplus--don't use.
2714             :
2715           else
2716             rm -rf conftest.one conftest.two conftest.dir
2717             echo one > conftest.one
2718             echo two > conftest.two
2719             mkdir conftest.dir
2720             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2721               test -s conftest.one && test -s conftest.two &&
2722               test -s conftest.dir/conftest.one &&
2723               test -s conftest.dir/conftest.two
2724             then
2725               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2726               break 3
2727             fi
2728           fi
2729         fi
2730       done
2731     done
2732     ;;
2733 esac
2734
2735   done
2736 IFS=$as_save_IFS
2737
2738 rm -rf conftest.one conftest.two conftest.dir
2739
2740 fi
2741   if test "${ac_cv_path_install+set}" = set; then
2742     INSTALL=$ac_cv_path_install
2743   else
2744     # As a last resort, use the slow shell script.  Don't cache a
2745     # value for INSTALL within a source directory, because that will
2746     # break other packages using the cache if that directory is
2747     # removed, or if the value is a relative name.
2748     INSTALL=$ac_install_sh
2749   fi
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2752 $as_echo "$INSTALL" >&6; }
2753
2754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755 # It thinks the first close brace ends the variable substitution.
2756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
2758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759
2760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2763 $as_echo_n "checking whether build environment is sane... " >&6; }
2764 # Just in case
2765 sleep 1
2766 echo timestamp > conftest.file
2767 # Reject unsafe characters in $srcdir or the absolute working directory
2768 # name.  Accept space and tab only in the latter.
2769 am_lf='
2770 '
2771 case `pwd` in
2772   *[\\\"\#\$\&\'\`$am_lf]*)
2773     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2774 esac
2775 case $srcdir in
2776   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2777     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2778 esac
2779
2780 # Do `set' in a subshell so we don't clobber the current shell's
2781 # arguments.  Must try -L first in case configure is actually a
2782 # symlink; some systems play weird games with the mod time of symlinks
2783 # (eg FreeBSD returns the mod time of the symlink's containing
2784 # directory).
2785 if (
2786    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2787    if test "$*" = "X"; then
2788       # -L didn't work.
2789       set X `ls -t "$srcdir/configure" conftest.file`
2790    fi
2791    rm -f conftest.file
2792    if test "$*" != "X $srcdir/configure conftest.file" \
2793       && test "$*" != "X conftest.file $srcdir/configure"; then
2794
2795       # If neither matched, then we have a broken ls.  This can happen
2796       # if, for instance, CONFIG_SHELL is bash and it inherits a
2797       # broken ls alias from the environment.  This has actually
2798       # happened.  Such a system could not be considered "sane".
2799       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2800 alias in your environment" "$LINENO" 5
2801    fi
2802
2803    test "$2" = conftest.file
2804    )
2805 then
2806    # Ok.
2807    :
2808 else
2809    as_fn_error "newly created file is older than distributed files!
2810 Check your system clock" "$LINENO" 5
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2813 $as_echo "yes" >&6; }
2814 test "$program_prefix" != NONE &&
2815   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
2818   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2819 # Double any \ or $.
2820 # By default was `s,x,x', remove it if useless.
2821 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2822 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2823
2824 # expand $ac_aux_dir to an absolute path
2825 am_aux_dir=`cd $ac_aux_dir && pwd`
2826
2827 if test x"${MISSING+set}" != xset; then
2828   case $am_aux_dir in
2829   *\ * | *\     *)
2830     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2831   *)
2832     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2833   esac
2834 fi
2835 # Use eval to expand $SHELL
2836 if eval "$MISSING --run true"; then
2837   am_missing_run="$MISSING --run "
2838 else
2839   am_missing_run=
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2841 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2842 fi
2843
2844 if test x"${install_sh}" != xset; then
2845   case $am_aux_dir in
2846   *\ * | *\     *)
2847     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2848   *)
2849     install_sh="\${SHELL} $am_aux_dir/install-sh"
2850   esac
2851 fi
2852
2853 # Installed binaries are usually stripped using `strip' when the user
2854 # run `make install-strip'.  However `strip' might not be the right
2855 # tool to use in cross-compilation environments, therefore Automake
2856 # will honor the `STRIP' environment variable to overrule this program.
2857 if test "$cross_compiling" != no; then
2858   if test -n "$ac_tool_prefix"; then
2859   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}strip; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_STRIP+set}" = set; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$STRIP"; then
2867   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 STRIP=$ac_cv_prog_STRIP
2887 if test -n "$STRIP"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2889 $as_echo "$STRIP" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 fi
2897 if test -z "$ac_cv_prog_STRIP"; then
2898   ac_ct_STRIP=$STRIP
2899   # Extract the first word of "strip", so it can be a program name with args.
2900 set dummy strip; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   if test -n "$ac_ct_STRIP"; then
2907   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912   IFS=$as_save_IFS
2913   test -z "$as_dir" && as_dir=.
2914     for ac_exec_ext in '' $ac_executable_extensions; do
2915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916     ac_cv_prog_ac_ct_STRIP="strip"
2917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918     break 2
2919   fi
2920 done
2921   done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2927 if test -n "$ac_ct_STRIP"; then
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2929 $as_echo "$ac_ct_STRIP" >&6; }
2930 else
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935   if test "x$ac_ct_STRIP" = x; then
2936     STRIP=":"
2937   else
2938     case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944     STRIP=$ac_ct_STRIP
2945   fi
2946 else
2947   STRIP="$ac_cv_prog_STRIP"
2948 fi
2949
2950 fi
2951 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2952
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2954 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2955 if test -z "$MKDIR_P"; then
2956   if test "${ac_cv_path_mkdir+set}" = set; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964     for ac_prog in mkdir gmkdir; do
2965          for ac_exec_ext in '' $ac_executable_extensions; do
2966            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2967            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2968              'mkdir (GNU coreutils) '* | \
2969              'mkdir (coreutils) '* | \
2970              'mkdir (fileutils) '4.1*)
2971                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2972                break 3;;
2973            esac
2974          done
2975        done
2976   done
2977 IFS=$as_save_IFS
2978
2979 fi
2980
2981   if test "${ac_cv_path_mkdir+set}" = set; then
2982     MKDIR_P="$ac_cv_path_mkdir -p"
2983   else
2984     # As a last resort, use the slow shell script.  Don't cache a
2985     # value for MKDIR_P within a source directory, because that will
2986     # break other packages using the cache if that directory is
2987     # removed, or if the value is a relative name.
2988     test -d ./--version && rmdir ./--version
2989     MKDIR_P="$ac_install_sh -d"
2990   fi
2991 fi
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2993 $as_echo "$MKDIR_P" >&6; }
2994
2995 mkdir_p="$MKDIR_P"
2996 case $mkdir_p in
2997   [\\/$]* | ?:[\\/]*) ;;
2998   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2999 esac
3000
3001 for ac_prog in gawk mawk nawk awk
3002 do
3003   # Extract the first word of "$ac_prog", so it can be a program name with args.
3004 set dummy $ac_prog; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_AWK+set}" = set; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$AWK"; then
3011   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020     ac_cv_prog_AWK="$ac_prog"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 AWK=$ac_cv_prog_AWK
3031 if test -n "$AWK"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3033 $as_echo "$AWK" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040   test -n "$AWK" && break
3041 done
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3044 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3045 set x ${MAKE-make}
3046 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3047 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   cat >conftest.make <<\_ACEOF
3051 SHELL = /bin/sh
3052 all:
3053         @echo '@@@%%%=$(MAKE)=@@@%%%'
3054 _ACEOF
3055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3057   *@@@%%%=?*=@@@%%%*)
3058     eval ac_cv_prog_make_${ac_make}_set=yes;;
3059   *)
3060     eval ac_cv_prog_make_${ac_make}_set=no;;
3061 esac
3062 rm -f conftest.make
3063 fi
3064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066 $as_echo "yes" >&6; }
3067   SET_MAKE=
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071   SET_MAKE="MAKE=${MAKE-make}"
3072 fi
3073
3074 rm -rf .tst 2>/dev/null
3075 mkdir .tst 2>/dev/null
3076 if test -d .tst; then
3077   am__leading_dot=.
3078 else
3079   am__leading_dot=_
3080 fi
3081 rmdir .tst 2>/dev/null
3082
3083 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3084   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3085   # is not polluted with repeated "-I."
3086   am__isrc=' -I$(srcdir)'
3087   # test to see if srcdir already configured
3088   if test -f $srcdir/config.status; then
3089     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3090   fi
3091 fi
3092
3093 # test whether we have cygpath
3094 if test -z "$CYGPATH_W"; then
3095   if (cygpath --version) >/dev/null 2>/dev/null; then
3096     CYGPATH_W='cygpath -w'
3097   else
3098     CYGPATH_W=echo
3099   fi
3100 fi
3101
3102
3103 # Define the identity of the package.
3104  PACKAGE='libgo'
3105  VERSION='version-unused'
3106
3107
3108 # Some tools Automake needs.
3109
3110 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3111
3112
3113 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3114
3115
3116 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3117
3118
3119 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3120
3121
3122 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3123
3124 # We need awk for the "check" target.  The system "awk" is bad on
3125 # some platforms.
3126 # Always define AMTAR for backward compatibility.
3127
3128 AMTAR=${AMTAR-"${am_missing_run}tar"}
3129
3130 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 if test -n "$ac_tool_prefix"; then
3147   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   if test -n "$CC"; then
3155   ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160   IFS=$as_save_IFS
3161   test -z "$as_dir" && as_dir=.
3162     for ac_exec_ext in '' $ac_executable_extensions; do
3163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166     break 2
3167   fi
3168 done
3169   done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 fi
3185 if test -z "$ac_cv_prog_CC"; then
3186   ac_ct_CC=$CC
3187   # Extract the first word of "gcc", so it can be a program name with args.
3188 set dummy gcc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   if test -n "$ac_ct_CC"; then
3195   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202     for ac_exec_ext in '' $ac_executable_extensions; do
3203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204     ac_cv_prog_ac_ct_CC="gcc"
3205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209   done
3210 IFS=$as_save_IFS
3211
3212 fi
3213 fi
3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217 $as_echo "$ac_ct_CC" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223   if test "x$ac_ct_CC" = x; then
3224     CC=""
3225   else
3226     case $cross_compiling:$ac_tool_warned in
3227 yes:)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230 ac_tool_warned=yes ;;
3231 esac
3232     CC=$ac_ct_CC
3233   fi
3234 else
3235   CC="$ac_cv_prog_CC"
3236 fi
3237
3238 if test -z "$CC"; then
3239           if test -n "$ac_tool_prefix"; then
3240     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3241 set dummy ${ac_tool_prefix}cc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_CC+set}" = set; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   if test -n "$CC"; then
3248   ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255     for ac_exec_ext in '' $ac_executable_extensions; do
3256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257     ac_cv_prog_CC="${ac_tool_prefix}cc"
3258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259     break 2
3260   fi
3261 done
3262   done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277   fi
3278 fi
3279 if test -z "$CC"; then
3280   # Extract the first word of "cc", so it can be a program name with args.
3281 set dummy cc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_CC+set}" = set; then :
3285   $as_echo_n "(cached) " >&6
3286 else
3287   if test -n "$CC"; then
3288   ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290   ac_prog_rejected=no
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296     for ac_exec_ext in '' $ac_executable_extensions; do
3297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3299        ac_prog_rejected=yes
3300        continue
3301      fi
3302     ac_cv_prog_CC="cc"
3303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307   done
3308 IFS=$as_save_IFS
3309
3310 if test $ac_prog_rejected = yes; then
3311   # We found a bogon in the path, so make sure we never use it.
3312   set dummy $ac_cv_prog_CC
3313   shift
3314   if test $# != 0; then
3315     # We chose a different compiler from the bogus one.
3316     # However, it has the same basename, so the bogon will be chosen
3317     # first if we set CC to just the basename; use the full file name.
3318     shift
3319     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3320   fi
3321 fi
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 $as_echo "$CC" >&6; }
3328 else
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 fi
3335 if test -z "$CC"; then
3336   if test -n "$ac_tool_prefix"; then
3337   for ac_prog in cl.exe
3338   do
3339     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if test "${ac_cv_prog_CC+set}" = set; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   if test -n "$CC"; then
3347   ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354     for ac_exec_ext in '' $ac_executable_extensions; do
3355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361   done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369 $as_echo "$CC" >&6; }
3370 else
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375
3376     test -n "$CC" && break
3377   done
3378 fi
3379 if test -z "$CC"; then
3380   ac_ct_CC=$CC
3381   for ac_prog in cl.exe
3382 do
3383   # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3388   $as_echo_n "(cached) " >&6
3389 else
3390   if test -n "$ac_ct_CC"; then
3391   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396   IFS=$as_save_IFS
3397   test -z "$as_dir" && as_dir=.
3398     for ac_exec_ext in '' $ac_executable_extensions; do
3399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400     ac_cv_prog_ac_ct_CC="$ac_prog"
3401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402     break 2
3403   fi
3404 done
3405   done
3406 IFS=$as_save_IFS
3407
3408 fi
3409 fi
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3414 else
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420   test -n "$ac_ct_CC" && break
3421 done
3422
3423   if test "x$ac_ct_CC" = x; then
3424     CC=""
3425   else
3426     case $cross_compiling:$ac_tool_warned in
3427 yes:)
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3430 ac_tool_warned=yes ;;
3431 esac
3432     CC=$ac_ct_CC
3433   fi
3434 fi
3435
3436 fi
3437
3438
3439 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error "no acceptable C compiler found in \$PATH
3442 See \`config.log' for more details." "$LINENO" 5; }
3443
3444 # Provide some information about the compiler.
3445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446 set X $ac_compile
3447 ac_compiler=$2
3448 for ac_option in --version -v -V -qversion; do
3449   { { ac_try="$ac_compiler $ac_option >&5"
3450 case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3457   ac_status=$?
3458   if test -s conftest.err; then
3459     sed '10a\
3460 ... rest of stderr output deleted ...
3461          10q' conftest.err >conftest.er1
3462     cat conftest.er1 >&5
3463     rm -f conftest.er1 conftest.err
3464   fi
3465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466   test $ac_status = 0; }
3467 done
3468
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 ac_clean_files_save=$ac_clean_files
3481 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3482 # Try to create an executable without -o first, disregard a.out.
3483 # It will help us diagnose broken compilers, and finding out an intuition
3484 # of exeext.
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3486 $as_echo_n "checking for C compiler default output file name... " >&6; }
3487 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3488
3489 # The possible output files:
3490 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3491
3492 ac_rmfiles=
3493 for ac_file in $ac_files
3494 do
3495   case $ac_file in
3496     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3497     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3498   esac
3499 done
3500 rm -f $ac_rmfiles
3501
3502 if { { ac_try="$ac_link_default"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509   (eval "$ac_link_default") 2>&5
3510   ac_status=$?
3511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512   test $ac_status = 0; }; then :
3513   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3514 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3515 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3516 # so that the user can short-circuit this test for compilers unknown to
3517 # Autoconf.
3518 for ac_file in $ac_files ''
3519 do
3520   test -f "$ac_file" || continue
3521   case $ac_file in
3522     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3523         ;;
3524     [ab].out )
3525         # We found the default executable, but exeext='' is most
3526         # certainly right.
3527         break;;
3528     *.* )
3529         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3530         then :; else
3531            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532         fi
3533         # We set ac_cv_exeext here because the later test for it is not
3534         # safe: cross compilers may not add the suffix if given an `-o'
3535         # argument, so we may need to know it at that point already.
3536         # Even if this section looks crufty: it has the advantage of
3537         # actually working.
3538         break;;
3539     * )
3540         break;;
3541   esac
3542 done
3543 test "$ac_cv_exeext" = no && ac_cv_exeext=
3544
3545 else
3546   ac_file=''
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3549 $as_echo "$ac_file" >&6; }
3550 if test -z "$ac_file"; then :
3551   $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 { as_fn_set_status 77
3557 as_fn_error "C compiler cannot create executables
3558 See \`config.log' for more details." "$LINENO" 5; }; }
3559 fi
3560 ac_exeext=$ac_cv_exeext
3561
3562 # Check that the compiler produces executables we can run.  If not, either
3563 # the compiler is broken, or we cross compile.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3565 $as_echo_n "checking whether the C compiler works... " >&6; }
3566 # If not cross compiling, check that we can run a simple program.
3567 if test "$cross_compiling" != yes; then
3568   if { ac_try='./$ac_file'
3569   { { case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_try") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }; }; then
3579     cross_compiling=no
3580   else
3581     if test "$cross_compiling" = maybe; then
3582         cross_compiling=yes
3583     else
3584         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error "cannot run C compiled programs.
3587 If you meant to cross compile, use \`--host'.
3588 See \`config.log' for more details." "$LINENO" 5; }
3589     fi
3590   fi
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593 $as_echo "yes" >&6; }
3594
3595 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3596 ac_clean_files=$ac_clean_files_save
3597 # Check that the compiler produces executables we can run.  If not, either
3598 # the compiler is broken, or we cross compile.
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3600 $as_echo_n "checking whether we are cross compiling... " >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3602 $as_echo "$cross_compiling" >&6; }
3603
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 $as_echo_n "checking for suffix of executables... " >&6; }
3606 if { { ac_try="$ac_link"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_link") 2>&5
3614   ac_status=$?
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }; then :
3617   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3619 # work properly (i.e., refer to `conftest.exe'), while it won't with
3620 # `rm'.
3621 for ac_file in conftest.exe conftest conftest.*; do
3622   test -f "$ac_file" || continue
3623   case $ac_file in
3624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626           break;;
3627     * ) break;;
3628   esac
3629 done
3630 else
3631   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error "cannot compute suffix of executables: cannot compile and link
3634 See \`config.log' for more details." "$LINENO" 5; }
3635 fi
3636 rm -f conftest$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 $as_echo "$ac_cv_exeext" >&6; }
3639
3640 rm -f conftest.$ac_ext
3641 EXEEXT=$ac_cv_exeext
3642 ac_exeext=$EXEEXT
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3644 $as_echo_n "checking for suffix of object files... " >&6; }
3645 if test "${ac_cv_objext+set}" = set; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest.o conftest.obj
3660 if { { ac_try="$ac_compile"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667   (eval "$ac_compile") 2>&5
3668   ac_status=$?
3669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670   test $ac_status = 0; }; then :
3671   for ac_file in conftest.o conftest.obj conftest.*; do
3672   test -f "$ac_file" || continue;
3673   case $ac_file in
3674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3675     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3676        break;;
3677   esac
3678 done
3679 else
3680   $as_echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error "cannot compute suffix of object files: cannot compile
3686 See \`config.log' for more details." "$LINENO" 5; }
3687 fi
3688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3691 $as_echo "$ac_cv_objext" >&6; }
3692 OBJEXT=$ac_cv_objext
3693 ac_objext=$OBJEXT
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3695 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3696 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h.  */
3701
3702 int
3703 main ()
3704 {
3705 #ifndef __GNUC__
3706        choke me
3707 #endif
3708
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714   ac_compiler_gnu=yes
3715 else
3716   ac_compiler_gnu=no
3717 fi
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3720
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3723 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3724 if test $ac_compiler_gnu = yes; then
3725   GCC=yes
3726 else
3727   GCC=
3728 fi
3729 ac_test_CFLAGS=${CFLAGS+set}
3730 ac_save_CFLAGS=$CFLAGS
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3732 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3733 if test "${ac_cv_prog_cc_g+set}" = set; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   ac_save_c_werror_flag=$ac_c_werror_flag
3737    ac_c_werror_flag=yes
3738    ac_cv_prog_cc_g=no
3739    CFLAGS="-g"
3740    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742
3743 int
3744 main ()
3745 {
3746
3747   ;
3748   return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752   ac_cv_prog_cc_g=yes
3753 else
3754   CFLAGS=""
3755       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767
3768 else
3769   ac_c_werror_flag=$ac_save_c_werror_flag
3770          CFLAGS="-g"
3771          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h.  */
3773
3774 int
3775 main ()
3776 {
3777
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783   ac_cv_prog_cc_g=yes
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 fi
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790    ac_c_werror_flag=$ac_save_c_werror_flag
3791 fi
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3793 $as_echo "$ac_cv_prog_cc_g" >&6; }
3794 if test "$ac_test_CFLAGS" = set; then
3795   CFLAGS=$ac_save_CFLAGS
3796 elif test $ac_cv_prog_cc_g = yes; then
3797   if test "$GCC" = yes; then
3798     CFLAGS="-g -O2"
3799   else
3800     CFLAGS="-g"
3801   fi
3802 else
3803   if test "$GCC" = yes; then
3804     CFLAGS="-O2"
3805   else
3806     CFLAGS=
3807   fi
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3811 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3812   $as_echo_n "(cached) " >&6
3813 else
3814   ac_cv_prog_cc_c89=no
3815 ac_save_CC=$CC
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818 #include <stdarg.h>
3819 #include <stdio.h>
3820 #include <sys/types.h>
3821 #include <sys/stat.h>
3822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3823 struct buf { int x; };
3824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3825 static char *e (p, i)
3826      char **p;
3827      int i;
3828 {
3829   return p[i];
3830 }
3831 static char *f (char * (*g) (char **, int), char **p, ...)
3832 {
3833   char *s;
3834   va_list v;
3835   va_start (v,p);
3836   s = g (p, va_arg (v,int));
3837   va_end (v);
3838   return s;
3839 }
3840
3841 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3842    function prototypes and stuff, but not '\xHH' hex character constants.
3843    These don't provoke an error unfortunately, instead are silently treated
3844    as 'x'.  The following induces an error, until -std is added to get
3845    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3846    array size at least.  It's necessary to write '\x00'==0 to get something
3847    that's true only with -std.  */
3848 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3849
3850 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3851    inside strings and character constants.  */
3852 #define FOO(x) 'x'
3853 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3854
3855 int test (int i, double x);
3856 struct s1 {int (*f) (int a);};
3857 struct s2 {int (*f) (double a);};
3858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3859 int argc;
3860 char **argv;
3861 int
3862 main ()
3863 {
3864 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3870         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3871 do
3872   CC="$ac_save_CC $ac_arg"
3873   if ac_fn_c_try_compile "$LINENO"; then :
3874   ac_cv_prog_cc_c89=$ac_arg
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext
3877   test "x$ac_cv_prog_cc_c89" != "xno" && break
3878 done
3879 rm -f conftest.$ac_ext
3880 CC=$ac_save_CC
3881
3882 fi
3883 # AC_CACHE_VAL
3884 case "x$ac_cv_prog_cc_c89" in
3885   x)
3886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3887 $as_echo "none needed" >&6; } ;;
3888   xno)
3889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3890 $as_echo "unsupported" >&6; } ;;
3891   *)
3892     CC="$CC $ac_cv_prog_cc_c89"
3893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3894 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3895 esac
3896 if test "x$ac_cv_prog_cc_c89" != xno; then :
3897
3898 fi
3899
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 DEPDIR="${am__leading_dot}deps"
3906
3907 ac_config_commands="$ac_config_commands depfiles"
3908
3909
3910 am_make=${MAKE-make}
3911 cat > confinc << 'END'
3912 am__doit:
3913         @echo this is the am__doit target
3914 .PHONY: am__doit
3915 END
3916 # If we don't find an include directive, just comment out the code.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3918 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3919 am__include="#"
3920 am__quote=
3921 _am_result=none
3922 # First try GNU make style include.
3923 echo "include confinc" > confmf
3924 # Ignore all kinds of additional output from `make'.
3925 case `$am_make -s -f confmf 2> /dev/null` in #(
3926 *the\ am__doit\ target*)
3927   am__include=include
3928   am__quote=
3929   _am_result=GNU
3930   ;;
3931 esac
3932 # Now try BSD make style include.
3933 if test "$am__include" = "#"; then
3934    echo '.include "confinc"' > confmf
3935    case `$am_make -s -f confmf 2> /dev/null` in #(
3936    *the\ am__doit\ target*)
3937      am__include=.include
3938      am__quote="\""
3939      _am_result=BSD
3940      ;;
3941    esac
3942 fi
3943
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3946 $as_echo "$_am_result" >&6; }
3947 rm -f confinc confmf
3948
3949 # Check whether --enable-dependency-tracking was given.
3950 if test "${enable_dependency_tracking+set}" = set; then :
3951   enableval=$enable_dependency_tracking;
3952 fi
3953
3954 if test "x$enable_dependency_tracking" != xno; then
3955   am_depcomp="$ac_aux_dir/depcomp"
3956   AMDEPBACKSLASH='\'
3957 fi
3958  if test "x$enable_dependency_tracking" != xno; then
3959   AMDEP_TRUE=
3960   AMDEP_FALSE='#'
3961 else
3962   AMDEP_TRUE='#'
3963   AMDEP_FALSE=
3964 fi
3965
3966
3967
3968 depcc="$CC"   am_compiler_list=
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3971 $as_echo_n "checking dependency style of $depcc... " >&6; }
3972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3976   # We make a subdir and do the tests there.  Otherwise we can end up
3977   # making bogus files that we don't know about and never remove.  For
3978   # instance it was reported that on HP-UX the gcc test will end up
3979   # making a dummy file named `D' -- because `-MD' means `put the output
3980   # in D'.
3981   mkdir conftest.dir
3982   # Copy depcomp to subdir because otherwise we won't find it if we're
3983   # using a relative directory.
3984   cp "$am_depcomp" conftest.dir
3985   cd conftest.dir
3986   # We will build objects and dependencies in a subdirectory because
3987   # it helps to detect inapplicable dependency modes.  For instance
3988   # both Tru64's cc and ICC support -MD to output dependencies as a
3989   # side effect of compilation, but ICC will put the dependencies in
3990   # the current directory while Tru64 will put them in the object
3991   # directory.
3992   mkdir sub
3993
3994   am_cv_CC_dependencies_compiler_type=none
3995   if test "$am_compiler_list" = ""; then
3996      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3997   fi
3998   am__universal=false
3999   case " $depcc " in #(
4000      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4001      esac
4002
4003   for depmode in $am_compiler_list; do
4004     # Setup a source with many dependencies, because some compilers
4005     # like to wrap large dependency lists on column 80 (with \), and
4006     # we should not choose a depcomp mode which is confused by this.
4007     #
4008     # We need to recreate these files for each test, as the compiler may
4009     # overwrite some of them when testing with obscure command lines.
4010     # This happens at least with the AIX C compiler.
4011     : > sub/conftest.c
4012     for i in 1 2 3 4 5 6; do
4013       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4014       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4015       # Solaris 8's {/usr,}/bin/sh.
4016       touch sub/conftst$i.h
4017     done
4018     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4019
4020     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4021     # mode.  It turns out that the SunPro C++ compiler does not properly
4022     # handle `-M -o', and we need to detect this.  Also, some Intel
4023     # versions had trouble with output in subdirs
4024     am__obj=sub/conftest.${OBJEXT-o}
4025     am__minus_obj="-o $am__obj"
4026     case $depmode in
4027     gcc)
4028       # This depmode causes a compiler race in universal mode.
4029       test "$am__universal" = false || continue
4030       ;;
4031     nosideeffect)
4032       # after this tag, mechanisms are not by side-effect, so they'll
4033       # only be used when explicitly requested
4034       if test "x$enable_dependency_tracking" = xyes; then
4035         continue
4036       else
4037         break
4038       fi
4039       ;;
4040     msvisualcpp | msvcmsys)
4041       # This compiler won't grok `-c -o', but also, the minuso test has
4042       # not run yet.  These depmodes are late enough in the game, and
4043       # so weak that their functioning should not be impacted.
4044       am__obj=conftest.${OBJEXT-o}
4045       am__minus_obj=
4046       ;;
4047     none) break ;;
4048     esac
4049     if depmode=$depmode \
4050        source=sub/conftest.c object=$am__obj \
4051        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4052        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4053          >/dev/null 2>conftest.err &&
4054        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4055        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4056        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4057        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4058       # icc doesn't choke on unknown options, it will just issue warnings
4059       # or remarks (even with -Werror).  So we grep stderr for any message
4060       # that says an option was ignored or not supported.
4061       # When given -MP, icc 7.0 and 7.1 complain thusly:
4062       #   icc: Command line warning: ignoring option '-M'; no argument required
4063       # The diagnosis changed in icc 8.0:
4064       #   icc: Command line remark: option '-MP' not supported
4065       if (grep 'ignoring option' conftest.err ||
4066           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4067         am_cv_CC_dependencies_compiler_type=$depmode
4068         break
4069       fi
4070     fi
4071   done
4072
4073   cd ..
4074   rm -rf conftest.dir
4075 else
4076   am_cv_CC_dependencies_compiler_type=none
4077 fi
4078
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4081 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4083
4084  if
4085   test "x$enable_dependency_tracking" != xno \
4086   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4087   am__fastdepCC_TRUE=
4088   am__fastdepCC_FALSE='#'
4089 else
4090   am__fastdepCC_TRUE='#'
4091   am__fastdepCC_FALSE=
4092 fi
4093
4094
4095 ac_ext=go
4096 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4097 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compile_gnu=yes
4099 if test -n "$ac_tool_prefix"; then
4100   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_GOC+set}" = set; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   if test -n "$GOC"; then
4108   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115     for ac_exec_ext in '' $ac_executable_extensions; do
4116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122   done
4123 IFS=$as_save_IFS
4124
4125 fi
4126 fi
4127 GOC=$ac_cv_prog_GOC
4128 if test -n "$GOC"; then
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4130 $as_echo "$GOC" >&6; }
4131 else
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4134 fi
4135
4136
4137 fi
4138 if test -z "$ac_cv_prog_GOC"; then
4139   ac_ct_GOC=$GOC
4140   # Extract the first word of "gccgo", so it can be a program name with args.
4141 set dummy gccgo; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4145   $as_echo_n "(cached) " >&6
4146 else
4147   if test -n "$ac_ct_GOC"; then
4148   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155     for ac_exec_ext in '' $ac_executable_extensions; do
4156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157     ac_cv_prog_ac_ct_GOC="gccgo"
4158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162   done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4168 if test -n "$ac_ct_GOC"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4170 $as_echo "$ac_ct_GOC" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176   if test "x$ac_ct_GOC" = x; then
4177     GOC=""
4178   else
4179     case $cross_compiling:$ac_tool_warned in
4180 yes:)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4183 ac_tool_warned=yes ;;
4184 esac
4185     GOC=$ac_ct_GOC
4186   fi
4187 else
4188   GOC="$ac_cv_prog_GOC"
4189 fi
4190
4191 if test -z "$GOC"; then
4192   if test -n "$ac_tool_prefix"; then
4193     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if test "${ac_cv_prog_GOC+set}" = set; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   if test -n "$GOC"; then
4201   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208     for ac_exec_ext in '' $ac_executable_extensions; do
4209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215   done
4216 IFS=$as_save_IFS
4217
4218 fi
4219 fi
4220 GOC=$ac_cv_prog_GOC
4221 if test -n "$GOC"; then
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4223 $as_echo "$GOC" >&6; }
4224 else
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 fi
4228
4229
4230   fi
4231 fi
4232 if test -z "$GOC"; then
4233   # Extract the first word of "gccgo", so it can be a program name with args.
4234 set dummy gccgo; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_GOC+set}" = set; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -n "$GOC"; then
4241   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4242 else
4243   ac_prog_rejected=no
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249     for ac_exec_ext in '' $ac_executable_extensions; do
4250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4252        ac_prog_rejected=yes
4253        continue
4254      fi
4255     ac_cv_prog_GOC="gccgo"
4256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257     break 2
4258   fi
4259 done
4260   done
4261 IFS=$as_save_IFS
4262
4263 if test $ac_prog_rejected = yes; then
4264   # We found a bogon in the path, so make sure we never use it.
4265   set dummy $ac_cv_prog_GOC
4266   shift
4267   if test $# != 0; then
4268     # We chose a different compiler from the bogus one.
4269     # However, it has the same basename, so the bogon will be chosen
4270     # first if we set GOC to just the basename; use the full file name.
4271     shift
4272     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4273   fi
4274 fi
4275 fi
4276 fi
4277 GOC=$ac_cv_prog_GOC
4278 if test -n "$GOC"; then
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4280 $as_echo "$GOC" >&6; }
4281 else
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 fi
4285
4286
4287 fi
4288
4289
4290 # Provide some information about the compiler.
4291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4292 set X $ac_compile
4293 ac_compiler=$2
4294 { { ac_try="$ac_compiler --version >&5"
4295 case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301   (eval "$ac_compiler --version >&5") 2>conftest.err
4302   ac_status=$?
4303   if test -s conftest.err; then
4304     sed '10a\
4305 ... rest of stderr output deleted ...
4306          10q' conftest.err >conftest.er1
4307     cat conftest.er1 >&5
4308     rm -f conftest.er1 conftest.err
4309   fi
4310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311   test $ac_status = 0; }
4312 GOCFLAGS="-g -O2"
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319
4320
4321
4322
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4325 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4326     # Check whether --enable-maintainer-mode was given.
4327 if test "${enable_maintainer_mode+set}" = set; then :
4328   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4329 else
4330   USE_MAINTAINER_MODE=no
4331 fi
4332
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4334 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4335    if test $USE_MAINTAINER_MODE = yes; then
4336   MAINTAINER_MODE_TRUE=
4337   MAINTAINER_MODE_FALSE='#'
4338 else
4339   MAINTAINER_MODE_TRUE='#'
4340   MAINTAINER_MODE_FALSE=
4341 fi
4342
4343   MAINT=$MAINTAINER_MODE_TRUE
4344
4345
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4348 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4349 if test "${ac_cv_path_SED+set}" = set; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4353      for ac_i in 1 2 3 4 5 6 7; do
4354        ac_script="$ac_script$as_nl$ac_script"
4355      done
4356      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4357      { ac_script=; unset ac_script;}
4358      if test -z "$SED"; then
4359   ac_path_SED_found=false
4360   # Loop through the user's path and test for each of PROGNAME-LIST
4361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364   IFS=$as_save_IFS
4365   test -z "$as_dir" && as_dir=.
4366     for ac_prog in sed gsed; do
4367     for ac_exec_ext in '' $ac_executable_extensions; do
4368       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4369       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4370 # Check for GNU ac_path_SED and select it if it is found.
4371   # Check for GNU $ac_path_SED
4372 case `"$ac_path_SED" --version 2>&1` in
4373 *GNU*)
4374   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4375 *)
4376   ac_count=0
4377   $as_echo_n 0123456789 >"conftest.in"
4378   while :
4379   do
4380     cat "conftest.in" "conftest.in" >"conftest.tmp"
4381     mv "conftest.tmp" "conftest.in"
4382     cp "conftest.in" "conftest.nl"
4383     $as_echo '' >> "conftest.nl"
4384     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4385     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4386     as_fn_arith $ac_count + 1 && ac_count=$as_val
4387     if test $ac_count -gt ${ac_path_SED_max-0}; then
4388       # Best one so far, save it but keep looking for a better one
4389       ac_cv_path_SED="$ac_path_SED"
4390       ac_path_SED_max=$ac_count
4391     fi
4392     # 10*(2^10) chars as input seems more than enough
4393     test $ac_count -gt 10 && break
4394   done
4395   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4396 esac
4397
4398       $ac_path_SED_found && break 3
4399     done
4400   done
4401   done
4402 IFS=$as_save_IFS
4403   if test -z "$ac_cv_path_SED"; then
4404     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4405   fi
4406 else
4407   ac_cv_path_SED=$SED
4408 fi
4409
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4412 $as_echo "$ac_cv_path_SED" >&6; }
4413  SED="$ac_cv_path_SED"
4414   rm -f conftest.sed
4415
4416 test -z "$SED" && SED=sed
4417 Xsed="$SED -e 1s/^X//"
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4430 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4431 if test "${ac_cv_path_GREP+set}" = set; then :
4432   $as_echo_n "(cached) " >&6
4433 else
4434   if test -z "$GREP"; then
4435   ac_path_GREP_found=false
4436   # Loop through the user's path and test for each of PROGNAME-LIST
4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442     for ac_prog in grep ggrep; do
4443     for ac_exec_ext in '' $ac_executable_extensions; do
4444       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4445       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4446 # Check for GNU ac_path_GREP and select it if it is found.
4447   # Check for GNU $ac_path_GREP
4448 case `"$ac_path_GREP" --version 2>&1` in
4449 *GNU*)
4450   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4451 *)
4452   ac_count=0
4453   $as_echo_n 0123456789 >"conftest.in"
4454   while :
4455   do
4456     cat "conftest.in" "conftest.in" >"conftest.tmp"
4457     mv "conftest.tmp" "conftest.in"
4458     cp "conftest.in" "conftest.nl"
4459     $as_echo 'GREP' >> "conftest.nl"
4460     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4461     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4462     as_fn_arith $ac_count + 1 && ac_count=$as_val
4463     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4464       # Best one so far, save it but keep looking for a better one
4465       ac_cv_path_GREP="$ac_path_GREP"
4466       ac_path_GREP_max=$ac_count
4467     fi
4468     # 10*(2^10) chars as input seems more than enough
4469     test $ac_count -gt 10 && break
4470   done
4471   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4472 esac
4473
4474       $ac_path_GREP_found && break 3
4475     done
4476   done
4477   done
4478 IFS=$as_save_IFS
4479   if test -z "$ac_cv_path_GREP"; then
4480     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4481   fi
4482 else
4483   ac_cv_path_GREP=$GREP
4484 fi
4485
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4488 $as_echo "$ac_cv_path_GREP" >&6; }
4489  GREP="$ac_cv_path_GREP"
4490
4491
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4493 $as_echo_n "checking for egrep... " >&6; }
4494 if test "${ac_cv_path_EGREP+set}" = set; then :
4495   $as_echo_n "(cached) " >&6
4496 else
4497   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4498    then ac_cv_path_EGREP="$GREP -E"
4499    else
4500      if test -z "$EGREP"; then
4501   ac_path_EGREP_found=false
4502   # Loop through the user's path and test for each of PROGNAME-LIST
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508     for ac_prog in egrep; do
4509     for ac_exec_ext in '' $ac_executable_extensions; do
4510       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4511       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4512 # Check for GNU ac_path_EGREP and select it if it is found.
4513   # Check for GNU $ac_path_EGREP
4514 case `"$ac_path_EGREP" --version 2>&1` in
4515 *GNU*)
4516   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4517 *)
4518   ac_count=0
4519   $as_echo_n 0123456789 >"conftest.in"
4520   while :
4521   do
4522     cat "conftest.in" "conftest.in" >"conftest.tmp"
4523     mv "conftest.tmp" "conftest.in"
4524     cp "conftest.in" "conftest.nl"
4525     $as_echo 'EGREP' >> "conftest.nl"
4526     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528     as_fn_arith $ac_count + 1 && ac_count=$as_val
4529     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4530       # Best one so far, save it but keep looking for a better one
4531       ac_cv_path_EGREP="$ac_path_EGREP"
4532       ac_path_EGREP_max=$ac_count
4533     fi
4534     # 10*(2^10) chars as input seems more than enough
4535     test $ac_count -gt 10 && break
4536   done
4537   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538 esac
4539
4540       $ac_path_EGREP_found && break 3
4541     done
4542   done
4543   done
4544 IFS=$as_save_IFS
4545   if test -z "$ac_cv_path_EGREP"; then
4546     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4547   fi
4548 else
4549   ac_cv_path_EGREP=$EGREP
4550 fi
4551
4552    fi
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4555 $as_echo "$ac_cv_path_EGREP" >&6; }
4556  EGREP="$ac_cv_path_EGREP"
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4560 $as_echo_n "checking for fgrep... " >&6; }
4561 if test "${ac_cv_path_FGREP+set}" = set; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4565    then ac_cv_path_FGREP="$GREP -F"
4566    else
4567      if test -z "$FGREP"; then
4568   ac_path_FGREP_found=false
4569   # Loop through the user's path and test for each of PROGNAME-LIST
4570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575     for ac_prog in fgrep; do
4576     for ac_exec_ext in '' $ac_executable_extensions; do
4577       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4578       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4579 # Check for GNU ac_path_FGREP and select it if it is found.
4580   # Check for GNU $ac_path_FGREP
4581 case `"$ac_path_FGREP" --version 2>&1` in
4582 *GNU*)
4583   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4584 *)
4585   ac_count=0
4586   $as_echo_n 0123456789 >"conftest.in"
4587   while :
4588   do
4589     cat "conftest.in" "conftest.in" >"conftest.tmp"
4590     mv "conftest.tmp" "conftest.in"
4591     cp "conftest.in" "conftest.nl"
4592     $as_echo 'FGREP' >> "conftest.nl"
4593     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595     as_fn_arith $ac_count + 1 && ac_count=$as_val
4596     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4597       # Best one so far, save it but keep looking for a better one
4598       ac_cv_path_FGREP="$ac_path_FGREP"
4599       ac_path_FGREP_max=$ac_count
4600     fi
4601     # 10*(2^10) chars as input seems more than enough
4602     test $ac_count -gt 10 && break
4603   done
4604   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 esac
4606
4607       $ac_path_FGREP_found && break 3
4608     done
4609   done
4610   done
4611 IFS=$as_save_IFS
4612   if test -z "$ac_cv_path_FGREP"; then
4613     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4614   fi
4615 else
4616   ac_cv_path_FGREP=$FGREP
4617 fi
4618
4619    fi
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4622 $as_echo "$ac_cv_path_FGREP" >&6; }
4623  FGREP="$ac_cv_path_FGREP"
4624
4625
4626 test -z "$GREP" && GREP=grep
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4645 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4649 $as_echo_n "checking how to print strings... " >&6; }
4650 # Test print first, because it will be a builtin if present.
4651 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4652    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4653   ECHO='print -r --'
4654 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4655   ECHO='printf %s\n'
4656 else
4657   # Use this function as a fallback that always works.
4658   func_fallback_echo ()
4659   {
4660     eval 'cat <<_LTECHO_EOF
4661 $1
4662 _LTECHO_EOF'
4663   }
4664   ECHO='func_fallback_echo'
4665 fi
4666
4667 # func_echo_all arg...
4668 # Invoke $ECHO with all args, space-separated.
4669 func_echo_all ()
4670 {
4671     $ECHO ""
4672 }
4673
4674 case "$ECHO" in
4675   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4676 $as_echo "printf" >&6; } ;;
4677   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4678 $as_echo "print -r" >&6; } ;;
4679   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4680 $as_echo "cat" >&6; } ;;
4681 esac
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698 # Check whether --with-gnu-ld was given.
4699 if test "${with_gnu_ld+set}" = set; then :
4700   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4701 else
4702   with_gnu_ld=no
4703 fi
4704
4705 ac_prog=ld
4706 if test "$GCC" = yes; then
4707   # Check if gcc -print-prog-name=ld gives a path.
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4709 $as_echo_n "checking for ld used by $CC... " >&6; }
4710   case $host in
4711   *-*-mingw*)
4712     # gcc leaves a trailing carriage return which upsets mingw
4713     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4714   *)
4715     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4716   esac
4717   case $ac_prog in
4718     # Accept absolute paths.
4719     [\\/]* | ?:[\\/]*)
4720       re_direlt='/[^/][^/]*/\.\./'
4721       # Canonicalize the pathname of ld
4722       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4723       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4724         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4725       done
4726       test -z "$LD" && LD="$ac_prog"
4727       ;;
4728   "")
4729     # If it fails, then pretend we aren't using GCC.
4730     ac_prog=ld
4731     ;;
4732   *)
4733     # If it is relative, then search for the first ld in PATH.
4734     with_gnu_ld=unknown
4735     ;;
4736   esac
4737 elif test "$with_gnu_ld" = yes; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4739 $as_echo_n "checking for GNU ld... " >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4742 $as_echo_n "checking for non-GNU ld... " >&6; }
4743 fi
4744 if test "${lt_cv_path_LD+set}" = set; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   if test -z "$LD"; then
4748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4749   for ac_dir in $PATH; do
4750     IFS="$lt_save_ifs"
4751     test -z "$ac_dir" && ac_dir=.
4752     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4753       lt_cv_path_LD="$ac_dir/$ac_prog"
4754       # Check to see if the program is GNU ld.  I'd rather use --version,
4755       # but apparently some variants of GNU ld only accept -v.
4756       # Break only if it was the GNU/non-GNU ld that we prefer.
4757       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4758       *GNU* | *'with BFD'*)
4759         test "$with_gnu_ld" != no && break
4760         ;;
4761       *)
4762         test "$with_gnu_ld" != yes && break
4763         ;;
4764       esac
4765     fi
4766   done
4767   IFS="$lt_save_ifs"
4768 else
4769   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4770 fi
4771 fi
4772
4773 LD="$lt_cv_path_LD"
4774 if test -n "$LD"; then
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4776 $as_echo "$LD" >&6; }
4777 else
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4783 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4784 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4788 case `$LD -v 2>&1 </dev/null` in
4789 *GNU* | *'with BFD'*)
4790   lt_cv_prog_gnu_ld=yes
4791   ;;
4792 *)
4793   lt_cv_prog_gnu_ld=no
4794   ;;
4795 esac
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4798 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4799 with_gnu_ld=$lt_cv_prog_gnu_ld
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 if test -n "$ac_tool_prefix"; then
4810   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   if test -n "$RANLIB"; then
4818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825     for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832   done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 RANLIB=$ac_cv_prog_RANLIB
4838 if test -n "$RANLIB"; then
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4840 $as_echo "$RANLIB" >&6; }
4841 else
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 fi
4848 if test -z "$ac_cv_prog_RANLIB"; then
4849   ac_ct_RANLIB=$RANLIB
4850   # Extract the first word of "ranlib", so it can be a program name with args.
4851 set dummy ranlib; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857   if test -n "$ac_ct_RANLIB"; then
4858   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865     for ac_exec_ext in '' $ac_executable_extensions; do
4866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867     ac_cv_prog_ac_ct_RANLIB="ranlib"
4868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872   done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4878 if test -n "$ac_ct_RANLIB"; then
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4880 $as_echo "$ac_ct_RANLIB" >&6; }
4881 else
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886   if test "x$ac_ct_RANLIB" = x; then
4887     RANLIB=":"
4888   else
4889     case $cross_compiling:$ac_tool_warned in
4890 yes:)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895     RANLIB=$ac_ct_RANLIB
4896   fi
4897 else
4898   RANLIB="$ac_cv_prog_RANLIB"
4899 fi
4900
4901 if test -n "$ac_tool_prefix"; then
4902   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   if test -n "$OBJCOPY"; then
4910   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917     for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924   done
4925 IFS=$as_save_IFS
4926
4927 fi
4928 fi
4929 OBJCOPY=$ac_cv_prog_OBJCOPY
4930 if test -n "$OBJCOPY"; then
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4932 $as_echo "$OBJCOPY" >&6; }
4933 else
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937
4938
4939 fi
4940 if test -z "$ac_cv_prog_OBJCOPY"; then
4941   ac_ct_OBJCOPY=$OBJCOPY
4942   # Extract the first word of "objcopy", so it can be a program name with args.
4943 set dummy objcopy; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   if test -n "$ac_ct_OBJCOPY"; then
4950   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957     for ac_exec_ext in '' $ac_executable_extensions; do
4958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961     break 2
4962   fi
4963 done
4964   done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4970 if test -n "$ac_ct_OBJCOPY"; then
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4972 $as_echo "$ac_ct_OBJCOPY" >&6; }
4973 else
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978   if test "x$ac_ct_OBJCOPY" = x; then
4979     OBJCOPY="missing-objcopy"
4980   else
4981     case $cross_compiling:$ac_tool_warned in
4982 yes:)
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4985 ac_tool_warned=yes ;;
4986 esac
4987     OBJCOPY=$ac_ct_OBJCOPY
4988   fi
4989 else
4990   OBJCOPY="$ac_cv_prog_OBJCOPY"
4991 fi
4992
4993
4994 enable_dlopen=yes
4995
4996
4997
4998 case `pwd` in
4999   *\ * | *\     *)
5000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5001 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5002 esac
5003
5004
5005
5006 macro_version='2.2.7a'
5007 macro_revision='1.3134'
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 ltmain="$ac_aux_dir/ltmain.sh"
5022
5023 # Backslashify metacharacters that are still active within
5024 # double-quoted strings.
5025 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5026
5027 # Same as above, but do not quote variable references.
5028 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5029
5030 # Sed substitution to delay expansion of an escaped shell variable in a
5031 # double_quote_subst'ed string.
5032 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5033
5034 # Sed substitution to delay expansion of an escaped single quote.
5035 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5036
5037 # Sed substitution to avoid accidental globbing in evaled expressions
5038 no_glob_subst='s/\*/\\\*/g'
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5041 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5042 if test "${lt_cv_path_NM+set}" = set; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   if test -n "$NM"; then
5046   # Let the user override the test.
5047   lt_cv_path_NM="$NM"
5048 else
5049   lt_nm_to_check="${ac_tool_prefix}nm"
5050   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5051     lt_nm_to_check="$lt_nm_to_check nm"
5052   fi
5053   for lt_tmp_nm in $lt_nm_to_check; do
5054     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5055     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5056       IFS="$lt_save_ifs"
5057       test -z "$ac_dir" && ac_dir=.
5058       tmp_nm="$ac_dir/$lt_tmp_nm"
5059       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5060         # Check to see if the nm accepts a BSD-compat flag.
5061         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5062         #   nm: unknown option "B" ignored
5063         # Tru64's nm complains that /dev/null is an invalid object file
5064         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5065         */dev/null* | *'Invalid file or object type'*)
5066           lt_cv_path_NM="$tmp_nm -B"
5067           break
5068           ;;
5069         *)
5070           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5071           */dev/null*)
5072             lt_cv_path_NM="$tmp_nm -p"
5073             break
5074             ;;
5075           *)
5076             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5077             continue # so that we can try to find one that supports BSD flags
5078             ;;
5079           esac
5080           ;;
5081         esac
5082       fi
5083     done
5084     IFS="$lt_save_ifs"
5085   done
5086   : ${lt_cv_path_NM=no}
5087 fi
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5090 $as_echo "$lt_cv_path_NM" >&6; }
5091 if test "$lt_cv_path_NM" != "no"; then
5092   NM="$lt_cv_path_NM"
5093 else
5094   # Didn't find any BSD compatible name lister, look for dumpbin.
5095   if test -n "$DUMPBIN"; then :
5096     # Let the user override the test.
5097   else
5098     if test -n "$ac_tool_prefix"; then
5099   for ac_prog in dumpbin "link -dump"
5100   do
5101     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   if test -n "$DUMPBIN"; then
5109   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123   done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 DUMPBIN=$ac_cv_prog_DUMPBIN
5129 if test -n "$DUMPBIN"; then
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5131 $as_echo "$DUMPBIN" >&6; }
5132 else
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137
5138     test -n "$DUMPBIN" && break
5139   done
5140 fi
5141 if test -z "$DUMPBIN"; then
5142   ac_ct_DUMPBIN=$DUMPBIN
5143   for ac_prog in dumpbin "link -dump"
5144 do
5145   # Extract the first word of "$ac_prog", so it can be a program name with args.
5146 set dummy $ac_prog; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   if test -n "$ac_ct_DUMPBIN"; then
5153   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160     for ac_exec_ext in '' $ac_executable_extensions; do
5161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167   done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5173 if test -n "$ac_ct_DUMPBIN"; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5175 $as_echo "$ac_ct_DUMPBIN" >&6; }
5176 else
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182   test -n "$ac_ct_DUMPBIN" && break
5183 done
5184
5185   if test "x$ac_ct_DUMPBIN" = x; then
5186     DUMPBIN=":"
5187   else
5188     case $cross_compiling:$ac_tool_warned in
5189 yes:)
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5192 ac_tool_warned=yes ;;
5193 esac
5194     DUMPBIN=$ac_ct_DUMPBIN
5195   fi
5196 fi
5197
5198     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5199     *COFF*)
5200       DUMPBIN="$DUMPBIN -symbols"
5201       ;;
5202     *)
5203       DUMPBIN=:
5204       ;;
5205     esac
5206   fi
5207
5208   if test "$DUMPBIN" != ":"; then
5209     NM="$DUMPBIN"
5210   fi
5211 fi
5212 test -z "$NM" && NM=nm
5213
5214
5215
5216
5217
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5220 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5221 if test "${lt_cv_nm_interface+set}" = set; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   lt_cv_nm_interface="BSD nm"
5225   echo "int some_variable = 0;" > conftest.$ac_ext
5226   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5227   (eval "$ac_compile" 2>conftest.err)
5228   cat conftest.err >&5
5229   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5230   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5231   cat conftest.err >&5
5232   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5233   cat conftest.out >&5
5234   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5235     lt_cv_nm_interface="MS dumpbin"
5236   fi
5237   rm -f conftest*
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5240 $as_echo "$lt_cv_nm_interface" >&6; }
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5243 $as_echo_n "checking whether ln -s works... " >&6; }
5244 LN_S=$as_ln_s
5245 if test "$LN_S" = "ln -s"; then
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5247 $as_echo "yes" >&6; }
5248 else
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5250 $as_echo "no, using $LN_S" >&6; }
5251 fi
5252
5253 # find the maximum length of command line arguments
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5255 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5256 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259     i=0
5260   teststring="ABCD"
5261
5262   case $build_os in
5263   msdosdjgpp*)
5264     # On DJGPP, this test can blow up pretty badly due to problems in libc
5265     # (any single argument exceeding 2000 bytes causes a buffer overrun
5266     # during glob expansion).  Even if it were fixed, the result of this
5267     # check would be larger than it should be.
5268     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5269     ;;
5270
5271   gnu*)
5272     # Under GNU Hurd, this test is not required because there is
5273     # no limit to the length of command line arguments.
5274     # Libtool will interpret -1 as no limit whatsoever
5275     lt_cv_sys_max_cmd_len=-1;
5276     ;;
5277
5278   cygwin* | mingw* | cegcc*)
5279     # On Win9x/ME, this test blows up -- it succeeds, but takes
5280     # about 5 minutes as the teststring grows exponentially.
5281     # Worse, since 9x/ME are not pre-emptively multitasking,
5282     # you end up with a "frozen" computer, even though with patience
5283     # the test eventually succeeds (with a max line length of 256k).
5284     # Instead, let's just punt: use the minimum linelength reported by
5285     # all of the supported platforms: 8192 (on NT/2K/XP).
5286     lt_cv_sys_max_cmd_len=8192;
5287     ;;
5288
5289   mint*)
5290     # On MiNT this can take a long time and run out of memory.
5291     lt_cv_sys_max_cmd_len=8192;
5292     ;;
5293
5294   amigaos*)
5295     # On AmigaOS with pdksh, this test takes hours, literally.
5296     # So we just punt and use a minimum line length of 8192.
5297     lt_cv_sys_max_cmd_len=8192;
5298     ;;
5299
5300   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5301     # This has been around since 386BSD, at least.  Likely further.
5302     if test -x /sbin/sysctl; then
5303       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5304     elif test -x /usr/sbin/sysctl; then
5305       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5306     else
5307       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5308     fi
5309     # And add a safety zone
5310     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5311     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5312     ;;
5313
5314   interix*)
5315     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5316     lt_cv_sys_max_cmd_len=196608
5317     ;;
5318
5319   osf*)
5320     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5321     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5322     # nice to cause kernel panics so lets avoid the loop below.
5323     # First set a reasonable default.
5324     lt_cv_sys_max_cmd_len=16384
5325     #
5326     if test -x /sbin/sysconfig; then
5327       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5328         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5329       esac
5330     fi
5331     ;;
5332   sco3.2v5*)
5333     lt_cv_sys_max_cmd_len=102400
5334     ;;
5335   sysv5* | sco5v6* | sysv4.2uw2*)
5336     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5337     if test -n "$kargmax"; then
5338       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5339     else
5340       lt_cv_sys_max_cmd_len=32768
5341     fi
5342     ;;
5343   *)
5344     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5345     if test -n "$lt_cv_sys_max_cmd_len"; then
5346       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5347       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5348     else
5349       # Make teststring a little bigger before we do anything with it.
5350       # a 1K string should be a reasonable start.
5351       for i in 1 2 3 4 5 6 7 8 ; do
5352         teststring=$teststring$teststring
5353       done
5354       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5355       # If test is not a shell built-in, we'll probably end up computing a
5356       # maximum length that is only half of the actual maximum length, but
5357       # we can't tell.
5358       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5359                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5360               test $i != 17 # 1/2 MB should be enough
5361       do
5362         i=`expr $i + 1`
5363         teststring=$teststring$teststring
5364       done
5365       # Only check the string length outside the loop.
5366       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5367       teststring=
5368       # Add a significant safety factor because C++ compilers can tack on
5369       # massive amounts of additional arguments before passing them to the
5370       # linker.  It appears as though 1/2 is a usable value.
5371       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5372     fi
5373     ;;
5374   esac
5375
5376 fi
5377
5378 if test -n $lt_cv_sys_max_cmd_len ; then
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5380 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5381 else
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5383 $as_echo "none" >&6; }
5384 fi
5385 max_cmd_len=$lt_cv_sys_max_cmd_len
5386
5387
5388
5389
5390
5391
5392 : ${CP="cp -f"}
5393 : ${MV="mv -f"}
5394 : ${RM="rm -f"}
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5397 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5398 # Try some XSI features
5399 xsi_shell=no
5400 ( _lt_dummy="a/b/c"
5401   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5402       = c,a/b,, \
5403     && eval 'test $(( 1 + 1 )) -eq 2 \
5404     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5405   && xsi_shell=yes
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5407 $as_echo "$xsi_shell" >&6; }
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5411 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5412 lt_shell_append=no
5413 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5414     >/dev/null 2>&1 \
5415   && lt_shell_append=yes
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5417 $as_echo "$lt_shell_append" >&6; }
5418
5419
5420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5421   lt_unset=unset
5422 else
5423   lt_unset=false
5424 fi
5425
5426
5427
5428
5429
5430 # test EBCDIC or ASCII
5431 case `echo X|tr X '\101'` in
5432  A) # ASCII based system
5433     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5434   lt_SP2NL='tr \040 \012'
5435   lt_NL2SP='tr \015\012 \040\040'
5436   ;;
5437  *) # EBCDIC based system
5438   lt_SP2NL='tr \100 \n'
5439   lt_NL2SP='tr \r\n \100\100'
5440   ;;
5441 esac
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5452 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5453 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   lt_cv_ld_reload_flag='-r'
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5459 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5460 reload_flag=$lt_cv_ld_reload_flag
5461 case $reload_flag in
5462 "" | " "*) ;;
5463 *) reload_flag=" $reload_flag" ;;
5464 esac
5465 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5466 case $host_os in
5467   darwin*)
5468     if test "$GCC" = yes; then
5469       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5470     else
5471       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472     fi
5473     ;;
5474 esac
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 if test -n "$ac_tool_prefix"; then
5485   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5486 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   if test -n "$OBJDUMP"; then
5493   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500     for ac_exec_ext in '' $ac_executable_extensions; do
5501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507   done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 OBJDUMP=$ac_cv_prog_OBJDUMP
5513 if test -n "$OBJDUMP"; then
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5515 $as_echo "$OBJDUMP" >&6; }
5516 else
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521
5522 fi
5523 if test -z "$ac_cv_prog_OBJDUMP"; then
5524   ac_ct_OBJDUMP=$OBJDUMP
5525   # Extract the first word of "objdump", so it can be a program name with args.
5526 set dummy objdump; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   if test -n "$ac_ct_OBJDUMP"; then
5533   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538   IFS=$as_save_IFS
5539   test -z "$as_dir" && as_dir=.
5540     for ac_exec_ext in '' $ac_executable_extensions; do
5541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544     break 2
5545   fi
5546 done
5547   done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5553 if test -n "$ac_ct_OBJDUMP"; then
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5555 $as_echo "$ac_ct_OBJDUMP" >&6; }
5556 else
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561   if test "x$ac_ct_OBJDUMP" = x; then
5562     OBJDUMP="false"
5563   else
5564     case $cross_compiling:$ac_tool_warned in
5565 yes:)
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568 ac_tool_warned=yes ;;
5569 esac
5570     OBJDUMP=$ac_ct_OBJDUMP
5571   fi
5572 else
5573   OBJDUMP="$ac_cv_prog_OBJDUMP"
5574 fi
5575
5576 test -z "$OBJDUMP" && OBJDUMP=objdump
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5587 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5588 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   lt_cv_file_magic_cmd='$MAGIC_CMD'
5592 lt_cv_file_magic_test_file=
5593 lt_cv_deplibs_check_method='unknown'
5594 # Need to set the preceding variable on all platforms that support
5595 # interlibrary dependencies.
5596 # 'none' -- dependencies not supported.
5597 # `unknown' -- same as none, but documents that we really don't know.
5598 # 'pass_all' -- all dependencies passed with no checks.
5599 # 'test_compile' -- check by making test program.
5600 # 'file_magic [[regex]]' -- check by looking for files in library path
5601 # which responds to the $file_magic_cmd with a given extended regex.
5602 # If you have `file' or equivalent on your system and you're not sure
5603 # whether `pass_all' will *always* work, you probably want this one.
5604
5605 case $host_os in
5606 aix[4-9]*)
5607   lt_cv_deplibs_check_method=pass_all
5608   ;;
5609
5610 beos*)
5611   lt_cv_deplibs_check_method=pass_all
5612   ;;
5613
5614 bsdi[45]*)
5615   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5616   lt_cv_file_magic_cmd='/usr/bin/file -L'
5617   lt_cv_file_magic_test_file=/shlib/libc.so
5618   ;;
5619
5620 cygwin*)
5621   # func_win32_libid is a shell function defined in ltmain.sh
5622   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5623   lt_cv_file_magic_cmd='func_win32_libid'
5624   ;;
5625
5626 mingw* | pw32*)
5627   # Base MSYS/MinGW do not provide the 'file' command needed by
5628   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5629   # unless we find 'file', for example because we are cross-compiling.
5630   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5631   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5632     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5633     lt_cv_file_magic_cmd='func_win32_libid'
5634   else
5635     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5636     lt_cv_file_magic_cmd='$OBJDUMP -f'
5637   fi
5638   ;;
5639
5640 cegcc*)
5641   # use the weaker test based on 'objdump'. See mingw*.
5642   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5643   lt_cv_file_magic_cmd='$OBJDUMP -f'
5644   ;;
5645
5646 darwin* | rhapsody*)
5647   lt_cv_deplibs_check_method=pass_all
5648   ;;
5649
5650 freebsd* | dragonfly*)
5651   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5652     case $host_cpu in
5653     i*86 )
5654       # Not sure whether the presence of OpenBSD here was a mistake.
5655       # Let's accept both of them until this is cleared up.
5656       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5657       lt_cv_file_magic_cmd=/usr/bin/file
5658       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5659       ;;
5660     esac
5661   else
5662     lt_cv_deplibs_check_method=pass_all
5663   fi
5664   ;;
5665
5666 gnu*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669
5670 haiku*)
5671   lt_cv_deplibs_check_method=pass_all
5672   ;;
5673
5674 hpux10.20* | hpux11*)
5675   lt_cv_file_magic_cmd=/usr/bin/file
5676   case $host_cpu in
5677   ia64*)
5678     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5679     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5680     ;;
5681   hppa*64*)
5682     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]'
5683     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5684     ;;
5685   *)
5686     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5687     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5688     ;;
5689   esac
5690   ;;
5691
5692 interix[3-9]*)
5693   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5694   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5695   ;;
5696
5697 irix5* | irix6* | nonstopux*)
5698   case $LD in
5699   *-32|*"-32 ") libmagic=32-bit;;
5700   *-n32|*"-n32 ") libmagic=N32;;
5701   *-64|*"-64 ") libmagic=64-bit;;
5702   *) libmagic=never-match;;
5703   esac
5704   lt_cv_deplibs_check_method=pass_all
5705   ;;
5706
5707 # This must be Linux ELF.
5708 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711
5712 netbsd*)
5713   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5714     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5715   else
5716     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5717   fi
5718   ;;
5719
5720 newos6*)
5721   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5722   lt_cv_file_magic_cmd=/usr/bin/file
5723   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5724   ;;
5725
5726 *nto* | *qnx*)
5727   lt_cv_deplibs_check_method=pass_all
5728   ;;
5729
5730 openbsd*)
5731   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5732     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5733   else
5734     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5735   fi
5736   ;;
5737
5738 osf3* | osf4* | osf5*)
5739   lt_cv_deplibs_check_method=pass_all
5740   ;;
5741
5742 rdos*)
5743   lt_cv_deplibs_check_method=pass_all
5744   ;;
5745
5746 solaris*)
5747   lt_cv_deplibs_check_method=pass_all
5748   ;;
5749
5750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5751   lt_cv_deplibs_check_method=pass_all
5752   ;;
5753
5754 sysv4 | sysv4.3*)
5755   case $host_vendor in
5756   motorola)
5757     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]'
5758     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5759     ;;
5760   ncr)
5761     lt_cv_deplibs_check_method=pass_all
5762     ;;
5763   sequent)
5764     lt_cv_file_magic_cmd='/bin/file'
5765     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5766     ;;
5767   sni)
5768     lt_cv_file_magic_cmd='/bin/file'
5769     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5770     lt_cv_file_magic_test_file=/lib/libc.so
5771     ;;
5772   siemens)
5773     lt_cv_deplibs_check_method=pass_all
5774     ;;
5775   pc)
5776     lt_cv_deplibs_check_method=pass_all
5777     ;;
5778   esac
5779   ;;
5780
5781 tpf*)
5782   lt_cv_deplibs_check_method=pass_all
5783   ;;
5784 esac
5785
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5788 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5789 file_magic_cmd=$lt_cv_file_magic_cmd
5790 deplibs_check_method=$lt_cv_deplibs_check_method
5791 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 if test -n "$ac_tool_prefix"; then
5805   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}ar; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if test "${ac_cv_prog_AR+set}" = set; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   if test -n "$AR"; then
5813   ac_cv_prog_AR="$AR" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822     ac_cv_prog_AR="${ac_tool_prefix}ar"
5823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 AR=$ac_cv_prog_AR
5833 if test -n "$AR"; then
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5835 $as_echo "$AR" >&6; }
5836 else
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 fi
5843 if test -z "$ac_cv_prog_AR"; then
5844   ac_ct_AR=$AR
5845   # Extract the first word of "ar", so it can be a program name with args.
5846 set dummy ar; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$ac_ct_AR"; then
5853   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_ac_ct_AR="ar"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5873 if test -n "$ac_ct_AR"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5875 $as_echo "$ac_ct_AR" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881   if test "x$ac_ct_AR" = x; then
5882     AR="false"
5883   else
5884     case $cross_compiling:$ac_tool_warned in
5885 yes:)
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890     AR=$ac_ct_AR
5891   fi
5892 else
5893   AR="$ac_cv_prog_AR"
5894 fi
5895
5896 test -z "$AR" && AR=ar
5897 test -z "$AR_FLAGS" && AR_FLAGS=cru
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 if test -n "$ac_tool_prefix"; then
5910   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}strip; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_STRIP+set}" = set; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   if test -n "$STRIP"; then
5918   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932   done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 STRIP=$ac_cv_prog_STRIP
5938 if test -n "$STRIP"; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5940 $as_echo "$STRIP" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947 fi
5948 if test -z "$ac_cv_prog_STRIP"; then
5949   ac_ct_STRIP=$STRIP
5950   # Extract the first word of "strip", so it can be a program name with args.
5951 set dummy strip; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   if test -n "$ac_ct_STRIP"; then
5958   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   test -z "$as_dir" && as_dir=.
5965     for ac_exec_ext in '' $ac_executable_extensions; do
5966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_prog_ac_ct_STRIP="strip"
5968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969     break 2
5970   fi
5971 done
5972   done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5978 if test -n "$ac_ct_STRIP"; then
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5980 $as_echo "$ac_ct_STRIP" >&6; }
5981 else
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985
5986   if test "x$ac_ct_STRIP" = x; then
5987     STRIP=":"
5988   else
5989     case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995     STRIP=$ac_ct_STRIP
5996   fi
5997 else
5998   STRIP="$ac_cv_prog_STRIP"
5999 fi
6000
6001 test -z "$STRIP" && STRIP=:
6002
6003
6004
6005
6006
6007
6008 if test -n "$ac_tool_prefix"; then
6009   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -n "$RANLIB"; then
6017   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024     for ac_exec_ext in '' $ac_executable_extensions; do
6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031   done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 RANLIB=$ac_cv_prog_RANLIB
6037 if test -n "$RANLIB"; then
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6039 $as_echo "$RANLIB" >&6; }
6040 else
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_RANLIB"; then
6048   ac_ct_RANLIB=$RANLIB
6049   # Extract the first word of "ranlib", so it can be a program name with args.
6050 set dummy ranlib; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$ac_ct_RANLIB"; then
6057   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064     for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_prog_ac_ct_RANLIB="ranlib"
6067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071   done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6077 if test -n "$ac_ct_RANLIB"; then
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6079 $as_echo "$ac_ct_RANLIB" >&6; }
6080 else
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085   if test "x$ac_ct_RANLIB" = x; then
6086     RANLIB=":"
6087   else
6088     case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094     RANLIB=$ac_ct_RANLIB
6095   fi
6096 else
6097   RANLIB="$ac_cv_prog_RANLIB"
6098 fi
6099
6100 test -z "$RANLIB" && RANLIB=:
6101
6102
6103
6104
6105
6106
6107 # Determine commands to create old-style static archives.
6108 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6109 old_postinstall_cmds='chmod 644 $oldlib'
6110 old_postuninstall_cmds=
6111
6112 if test -n "$RANLIB"; then
6113   case $host_os in
6114   openbsd*)
6115     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6116     ;;
6117   *)
6118     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6119     ;;
6120   esac
6121   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6122 fi
6123
6124 case $host_os in
6125   darwin*)
6126     lock_old_archive_extraction=yes ;;
6127   *)
6128     lock_old_archive_extraction=no ;;
6129 esac
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 # If no C compiler was specified, use CC.
6170 LTCC=${LTCC-"$CC"}
6171
6172 # If no C compiler flags were specified, use CFLAGS.
6173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6174
6175 # Allow CC to be a program name with arguments.
6176 compiler=$CC
6177
6178
6179 # Check for command to grab the raw symbol name followed by C symbol from nm.
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6181 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6182 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6183   $as_echo_n "(cached) " >&6
6184 else
6185
6186 # These are sane defaults that work on at least a few old systems.
6187 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6188
6189 # Character class describing NM global symbol codes.
6190 symcode='[BCDEGRST]'
6191
6192 # Regexp to match symbols that can be accessed directly from C.
6193 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6194
6195 # Define system-specific variables.
6196 case $host_os in
6197 aix*)
6198   symcode='[BCDT]'
6199   ;;
6200 cygwin* | mingw* | pw32* | cegcc*)
6201   symcode='[ABCDGISTW]'
6202   ;;
6203 hpux*)
6204   if test "$host_cpu" = ia64; then
6205     symcode='[ABCDEGRST]'
6206   fi
6207   ;;
6208 irix* | nonstopux*)
6209   symcode='[BCDEGRST]'
6210   ;;
6211 osf*)
6212   symcode='[BCDEGQRST]'
6213   ;;
6214 solaris*)
6215   symcode='[BDRT]'
6216   ;;
6217 sco3.2v5*)
6218   symcode='[DT]'
6219   ;;
6220 sysv4.2uw2*)
6221   symcode='[DT]'
6222   ;;
6223 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6224   symcode='[ABDT]'
6225   ;;
6226 sysv4)
6227   symcode='[DFNSTU]'
6228   ;;
6229 esac
6230
6231 # If we're using GNU nm, then use its standard symbol codes.
6232 case `$NM -V 2>&1` in
6233 *GNU* | *'with BFD'*)
6234   symcode='[ABCDGIRSTW]' ;;
6235 esac
6236
6237 # Transform an extracted symbol line into a proper C declaration.
6238 # Some systems (esp. on ia64) link data and code symbols differently,
6239 # so use this general approach.
6240 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6241
6242 # Transform an extracted symbol line into symbol name and symbol address
6243 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6244 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'"
6245
6246 # Handle CRLF in mingw tool chain
6247 opt_cr=
6248 case $build_os in
6249 mingw*)
6250   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6251   ;;
6252 esac
6253
6254 # Try without a prefix underscore, then with it.
6255 for ac_symprfx in "" "_"; do
6256
6257   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6258   symxfrm="\\1 $ac_symprfx\\2 \\2"
6259
6260   # Write the raw and C identifiers.
6261   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6262     # Fake it for dumpbin and say T for any non-static function
6263     # and D for any global variable.
6264     # Also find C++ and __fastcall symbols from MSVC++,
6265     # which start with @ or ?.
6266     lt_cv_sys_global_symbol_pipe="$AWK '"\
6267 "     {last_section=section; section=\$ 3};"\
6268 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6269 "     \$ 0!~/External *\|/{next};"\
6270 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6271 "     {if(hide[section]) next};"\
6272 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6273 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6274 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6275 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6276 "     ' prfx=^$ac_symprfx"
6277   else
6278     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6279   fi
6280
6281   # Check to see that the pipe works correctly.
6282   pipe_works=no
6283
6284   rm -f conftest*
6285   cat > conftest.$ac_ext <<_LT_EOF
6286 #ifdef __cplusplus
6287 extern "C" {
6288 #endif
6289 char nm_test_var;
6290 void nm_test_func(void);
6291 void nm_test_func(void){}
6292 #ifdef __cplusplus
6293 }
6294 #endif
6295 int main(){nm_test_var='a';nm_test_func();return(0);}
6296 _LT_EOF
6297
6298   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299   (eval $ac_compile) 2>&5
6300   ac_status=$?
6301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302   test $ac_status = 0; }; then
6303     # Now try to grab the symbols.
6304     nlist=conftest.nm
6305     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6306   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6307   ac_status=$?
6308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309   test $ac_status = 0; } && test -s "$nlist"; then
6310       # Try sorting and uniquifying the output.
6311       if sort "$nlist" | uniq > "$nlist"T; then
6312         mv -f "$nlist"T "$nlist"
6313       else
6314         rm -f "$nlist"T
6315       fi
6316
6317       # Make sure that we snagged all the symbols we need.
6318       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6319         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6320           cat <<_LT_EOF > conftest.$ac_ext
6321 #ifdef __cplusplus
6322 extern "C" {
6323 #endif
6324
6325 _LT_EOF
6326           # Now generate the symbol file.
6327           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6328
6329           cat <<_LT_EOF >> conftest.$ac_ext
6330
6331 /* The mapping between symbol names and symbols.  */
6332 const struct {
6333   const char *name;
6334   void       *address;
6335 }
6336 lt__PROGRAM__LTX_preloaded_symbols[] =
6337 {
6338   { "@PROGRAM@", (void *) 0 },
6339 _LT_EOF
6340           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6341           cat <<\_LT_EOF >> conftest.$ac_ext
6342   {0, (void *) 0}
6343 };
6344
6345 /* This works around a problem in FreeBSD linker */
6346 #ifdef FREEBSD_WORKAROUND
6347 static const void *lt_preloaded_setup() {
6348   return lt__PROGRAM__LTX_preloaded_symbols;
6349 }
6350 #endif
6351
6352 #ifdef __cplusplus
6353 }
6354 #endif
6355 _LT_EOF
6356           # Now try linking the two files.
6357           mv conftest.$ac_objext conftstm.$ac_objext
6358           lt_save_LIBS="$LIBS"
6359           lt_save_CFLAGS="$CFLAGS"
6360           LIBS="conftstm.$ac_objext"
6361           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6362           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6363   (eval $ac_link) 2>&5
6364   ac_status=$?
6365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6367             pipe_works=yes
6368           fi
6369           LIBS="$lt_save_LIBS"
6370           CFLAGS="$lt_save_CFLAGS"
6371         else
6372           echo "cannot find nm_test_func in $nlist" >&5
6373         fi
6374       else
6375         echo "cannot find nm_test_var in $nlist" >&5
6376       fi
6377     else
6378       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6379     fi
6380   else
6381     echo "$progname: failed program was:" >&5
6382     cat conftest.$ac_ext >&5
6383   fi
6384   rm -rf conftest* conftst*
6385
6386   # Do not use the global_symbol_pipe unless it works.
6387   if test "$pipe_works" = yes; then
6388     break
6389   else
6390     lt_cv_sys_global_symbol_pipe=
6391   fi
6392 done
6393
6394 fi
6395
6396 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6397   lt_cv_sys_global_symbol_to_cdecl=
6398 fi
6399 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6401 $as_echo "failed" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6404 $as_echo "ok" >&6; }
6405 fi
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 # Check whether --enable-libtool-lock was given.
6430 if test "${enable_libtool_lock+set}" = set; then :
6431   enableval=$enable_libtool_lock;
6432 fi
6433
6434 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6435
6436 # Some flags need to be propagated to the compiler or linker for good
6437 # libtool support.
6438 case $host in
6439 ia64-*-hpux*)
6440   # Find out which ABI we are using.
6441   echo 'int i;' > conftest.$ac_ext
6442   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443   (eval $ac_compile) 2>&5
6444   ac_status=$?
6445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446   test $ac_status = 0; }; then
6447     case `/usr/bin/file conftest.$ac_objext` in
6448       *ELF-32*)
6449         HPUX_IA64_MODE="32"
6450         ;;
6451       *ELF-64*)
6452         HPUX_IA64_MODE="64"
6453         ;;
6454     esac
6455   fi
6456   rm -rf conftest*
6457   ;;
6458 *-*-irix6*)
6459   # Find out which ABI we are using.
6460   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6461   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462   (eval $ac_compile) 2>&5
6463   ac_status=$?
6464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465   test $ac_status = 0; }; then
6466     if test "$lt_cv_prog_gnu_ld" = yes; then
6467       case `/usr/bin/file conftest.$ac_objext` in
6468         *32-bit*)
6469           LD="${LD-ld} -melf32bsmip"
6470           ;;
6471         *N32*)
6472           LD="${LD-ld} -melf32bmipn32"
6473           ;;
6474         *64-bit*)
6475           LD="${LD-ld} -melf64bmip"
6476         ;;
6477       esac
6478     else
6479       case `/usr/bin/file conftest.$ac_objext` in
6480         *32-bit*)
6481           LD="${LD-ld} -32"
6482           ;;
6483         *N32*)
6484           LD="${LD-ld} -n32"
6485           ;;
6486         *64-bit*)
6487           LD="${LD-ld} -64"
6488           ;;
6489       esac
6490     fi
6491   fi
6492   rm -rf conftest*
6493   ;;
6494
6495 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6496 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6497   # Find out which ABI we are using.
6498   echo 'int i;' > conftest.$ac_ext
6499   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500   (eval $ac_compile) 2>&5
6501   ac_status=$?
6502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503   test $ac_status = 0; }; then
6504     case `/usr/bin/file conftest.o` in
6505       *32-bit*)
6506         case $host in
6507           x86_64-*kfreebsd*-gnu)
6508             LD="${LD-ld} -m elf_i386_fbsd"
6509             ;;
6510           x86_64-*linux*)
6511             LD="${LD-ld} -m elf_i386"
6512             ;;
6513           ppc64-*linux*|powerpc64-*linux*)
6514             LD="${LD-ld} -m elf32ppclinux"
6515             ;;
6516           s390x-*linux*)
6517             LD="${LD-ld} -m elf_s390"
6518             ;;
6519           sparc64-*linux*)
6520             LD="${LD-ld} -m elf32_sparc"
6521             ;;
6522         esac
6523         ;;
6524       *64-bit*)
6525         case $host in
6526           x86_64-*kfreebsd*-gnu)
6527             LD="${LD-ld} -m elf_x86_64_fbsd"
6528             ;;
6529           x86_64-*linux*)
6530             LD="${LD-ld} -m elf_x86_64"
6531             ;;
6532           ppc*-*linux*|powerpc*-*linux*)
6533             LD="${LD-ld} -m elf64ppc"
6534             ;;
6535           s390*-*linux*|s390*-*tpf*)
6536             LD="${LD-ld} -m elf64_s390"
6537             ;;
6538           sparc*-*linux*)
6539             LD="${LD-ld} -m elf64_sparc"
6540             ;;
6541         esac
6542         ;;
6543     esac
6544   fi
6545   rm -rf conftest*
6546   ;;
6547
6548 *-*-sco3.2v5*)
6549   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550   SAVE_CFLAGS="$CFLAGS"
6551   CFLAGS="$CFLAGS -belf"
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6553 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6554 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   ac_ext=c
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h.  */
6565
6566 int
6567 main ()
6568 {
6569
6570   ;
6571   return 0;
6572 }
6573 _ACEOF
6574 if ac_fn_c_try_link "$LINENO"; then :
6575   lt_cv_cc_needs_belf=yes
6576 else
6577   lt_cv_cc_needs_belf=no
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext \
6580     conftest$ac_exeext conftest.$ac_ext
6581      ac_ext=c
6582 ac_cpp='$CPP $CPPFLAGS'
6583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6589 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6590   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6591     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6592     CFLAGS="$SAVE_CFLAGS"
6593   fi
6594   ;;
6595 *-*solaris*)
6596   # Find out which ABI we are using.
6597   echo 'int i;' > conftest.$ac_ext
6598   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6599   (eval $ac_compile) 2>&5
6600   ac_status=$?
6601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6602   test $ac_status = 0; }; then
6603     case `/usr/bin/file conftest.o` in
6604     *64-bit*)
6605       case $lt_cv_prog_gnu_ld in
6606       yes*)
6607         case $host in
6608         i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6609           LD="${LD-ld} -m elf_x86_64"
6610           ;;
6611         sparc*-*-solaris*)
6612           LD="${LD-ld} -m elf64_sparc"
6613           ;;
6614         esac
6615         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6616         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6617           LD="${LD-ld}_sol2"
6618         fi
6619         ;;
6620       *)
6621         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6622           LD="${LD-ld} -64"
6623         fi
6624         ;;
6625       esac
6626       ;;
6627     esac
6628   fi
6629   rm -rf conftest*
6630   ;;
6631 esac
6632
6633 need_locks="$enable_libtool_lock"
6634
6635
6636   case $host_os in
6637     rhapsody* | darwin*)
6638     if test -n "$ac_tool_prefix"; then
6639   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$DSYMUTIL"; then
6647   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654     for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661   done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6667 if test -n "$DSYMUTIL"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6669 $as_echo "$DSYMUTIL" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_DSYMUTIL"; then
6678   ac_ct_DSYMUTIL=$DSYMUTIL
6679   # Extract the first word of "dsymutil", so it can be a program name with args.
6680 set dummy dsymutil; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   if test -n "$ac_ct_DSYMUTIL"; then
6687   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694     for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701   done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715   if test "x$ac_ct_DSYMUTIL" = x; then
6716     DSYMUTIL=":"
6717   else
6718     case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6723 esac
6724     DSYMUTIL=$ac_ct_DSYMUTIL
6725   fi
6726 else
6727   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6728 fi
6729
6730     if test -n "$ac_tool_prefix"; then
6731   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   if test -n "$NMEDIT"; then
6739   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746     for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753   done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 NMEDIT=$ac_cv_prog_NMEDIT
6759 if test -n "$NMEDIT"; then
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6761 $as_echo "$NMEDIT" >&6; }
6762 else
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767
6768 fi
6769 if test -z "$ac_cv_prog_NMEDIT"; then
6770   ac_ct_NMEDIT=$NMEDIT
6771   # Extract the first word of "nmedit", so it can be a program name with args.
6772 set dummy nmedit; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   if test -n "$ac_ct_NMEDIT"; then
6779   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786     for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793   done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6799 if test -n "$ac_ct_NMEDIT"; then
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6801 $as_echo "$ac_ct_NMEDIT" >&6; }
6802 else
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807   if test "x$ac_ct_NMEDIT" = x; then
6808     NMEDIT=":"
6809   else
6810     case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816     NMEDIT=$ac_ct_NMEDIT
6817   fi
6818 else
6819   NMEDIT="$ac_cv_prog_NMEDIT"
6820 fi
6821
6822     if test -n "$ac_tool_prefix"; then
6823   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_LIPO+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$LIPO"; then
6831   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 LIPO=$ac_cv_prog_LIPO
6851 if test -n "$LIPO"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6853 $as_echo "$LIPO" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_LIPO"; then
6862   ac_ct_LIPO=$LIPO
6863   # Extract the first word of "lipo", so it can be a program name with args.
6864 set dummy lipo; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   if test -n "$ac_ct_LIPO"; then
6871   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878     for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_LIPO="lipo"
6881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885   done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6891 if test -n "$ac_ct_LIPO"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6893 $as_echo "$ac_ct_LIPO" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899   if test "x$ac_ct_LIPO" = x; then
6900     LIPO=":"
6901   else
6902     case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908     LIPO=$ac_ct_LIPO
6909   fi
6910 else
6911   LIPO="$ac_cv_prog_LIPO"
6912 fi
6913
6914     if test -n "$ac_tool_prefix"; then
6915   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}otool; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -n "$OTOOL"; then
6923   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 OTOOL=$ac_cv_prog_OTOOL
6943 if test -n "$OTOOL"; then
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6945 $as_echo "$OTOOL" >&6; }
6946 else
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_OTOOL"; then
6954   ac_ct_OTOOL=$OTOOL
6955   # Extract the first word of "otool", so it can be a program name with args.
6956 set dummy otool; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   if test -n "$ac_ct_OTOOL"; then
6963   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970     for ac_exec_ext in '' $ac_executable_extensions; do
6971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972     ac_cv_prog_ac_ct_OTOOL="otool"
6973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974     break 2
6975   fi
6976 done
6977   done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6983 if test -n "$ac_ct_OTOOL"; then
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6985 $as_echo "$ac_ct_OTOOL" >&6; }
6986 else
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991   if test "x$ac_ct_OTOOL" = x; then
6992     OTOOL=":"
6993   else
6994     case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000     OTOOL=$ac_ct_OTOOL
7001   fi
7002 else
7003   OTOOL="$ac_cv_prog_OTOOL"
7004 fi
7005
7006     if test -n "$ac_tool_prefix"; then
7007   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$OTOOL64"; then
7015   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 OTOOL64=$ac_cv_prog_OTOOL64
7035 if test -n "$OTOOL64"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7037 $as_echo "$OTOOL64" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_OTOOL64"; then
7046   ac_ct_OTOOL64=$OTOOL64
7047   # Extract the first word of "otool64", so it can be a program name with args.
7048 set dummy otool64; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   if test -n "$ac_ct_OTOOL64"; then
7055   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062     for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_prog_ac_ct_OTOOL64="otool64"
7065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069   done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7075 if test -n "$ac_ct_OTOOL64"; then
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7077 $as_echo "$ac_ct_OTOOL64" >&6; }
7078 else
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083   if test "x$ac_ct_OTOOL64" = x; then
7084     OTOOL64=":"
7085   else
7086     case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7091 esac
7092     OTOOL64=$ac_ct_OTOOL64
7093   fi
7094 else
7095   OTOOL64="$ac_cv_prog_OTOOL64"
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7125 $as_echo_n "checking for -single_module linker flag... " >&6; }
7126 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   lt_cv_apple_cc_single_mod=no
7130       if test -z "${LT_MULTI_MODULE}"; then
7131         # By default we will add the -single_module flag. You can override
7132         # by either setting the environment variable LT_MULTI_MODULE
7133         # non-empty at configure time, or by adding -multi_module to the
7134         # link flags.
7135         rm -rf libconftest.dylib*
7136         echo "int foo(void){return 1;}" > conftest.c
7137         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7138 -dynamiclib -Wl,-single_module conftest.c" >&5
7139         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7141         _lt_result=$?
7142         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7143           lt_cv_apple_cc_single_mod=yes
7144         else
7145           cat conftest.err >&5
7146         fi
7147         rm -rf libconftest.dylib*
7148         rm -f conftest.*
7149       fi
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7154 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7155 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   lt_cv_ld_exported_symbols_list=no
7159       save_LDFLAGS=$LDFLAGS
7160       echo "_main" > conftest.sym
7161       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7162       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h.  */
7164
7165 int
7166 main ()
7167 {
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_link "$LINENO"; then :
7174   lt_cv_ld_exported_symbols_list=yes
7175 else
7176   lt_cv_ld_exported_symbols_list=no
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext \
7179     conftest$ac_exeext conftest.$ac_ext
7180         LDFLAGS="$save_LDFLAGS"
7181
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7184 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7186 $as_echo_n "checking for -force_load linker flag... " >&6; }
7187 if test "${lt_cv_ld_force_load+set}" = set; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   lt_cv_ld_force_load=no
7191       cat > conftest.c << _LT_EOF
7192 int forced_loaded() { return 2;}
7193 _LT_EOF
7194       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7195       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7196       echo "$AR cru libconftest.a conftest.o" >&5
7197       $AR cru libconftest.a conftest.o 2>&5
7198       cat > conftest.c << _LT_EOF
7199 int main() { return 0;}
7200 _LT_EOF
7201       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7202       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7203       _lt_result=$?
7204       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7205         lt_cv_ld_force_load=yes
7206       else
7207         cat conftest.err >&5
7208       fi
7209         rm -f conftest.err libconftest.a conftest conftest.c
7210         rm -rf conftest.dSYM
7211
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7214 $as_echo "$lt_cv_ld_force_load" >&6; }
7215     case $host_os in
7216     rhapsody* | darwin1.[012])
7217       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7218     darwin1.*)
7219       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7220     darwin*) # darwin 5.x on
7221       # if running on 10.5 or later, the deployment target defaults
7222       # to the OS version, if on x86, and 10.4, the deployment
7223       # target defaults to 10.4. Don't you love it?
7224       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7225         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7226           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7227         10.[012]*)
7228           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7229         10.*)
7230           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7231       esac
7232     ;;
7233   esac
7234     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7235       _lt_dar_single_mod='$single_module'
7236     fi
7237     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7238       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7239     else
7240       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7241     fi
7242     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7243       _lt_dsymutil='~$DSYMUTIL $lib || :'
7244     else
7245       _lt_dsymutil=
7246     fi
7247     ;;
7248   esac
7249
7250 ac_ext=c
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7256 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7257 # On Suns, sometimes $CPP names a directory.
7258 if test -n "$CPP" && test -d "$CPP"; then
7259   CPP=
7260 fi
7261 if test -z "$CPP"; then
7262   if test "${ac_cv_prog_CPP+set}" = set; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265       # Double quotes because CPP needs to be expanded
7266     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7267     do
7268       ac_preproc_ok=false
7269 for ac_c_preproc_warn_flag in '' yes
7270 do
7271   # Use a header file that comes with gcc, so configuring glibc
7272   # with a fresh cross-compiler works.
7273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274   # <limits.h> exists even on freestanding compilers.
7275   # On the NeXT, cc -E runs the code through the compiler's parser,
7276   # not just through cpp. "Syntax error" is here to catch this case.
7277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h.  */
7279 #ifdef __STDC__
7280 # include <limits.h>
7281 #else
7282 # include <assert.h>
7283 #endif
7284                      Syntax error
7285 _ACEOF
7286 if ac_fn_c_try_cpp "$LINENO"; then :
7287
7288 else
7289   # Broken: fails on valid input.
7290 continue
7291 fi
7292 rm -f conftest.err conftest.$ac_ext
7293
7294   # OK, works on sane cases.  Now check whether nonexistent headers
7295   # can be detected and how.
7296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h.  */
7298 #include <ac_nonexistent.h>
7299 _ACEOF
7300 if ac_fn_c_try_cpp "$LINENO"; then :
7301   # Broken: success on invalid input.
7302 continue
7303 else
7304   # Passes both tests.
7305 ac_preproc_ok=:
7306 break
7307 fi
7308 rm -f conftest.err conftest.$ac_ext
7309
7310 done
7311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7312 rm -f conftest.err conftest.$ac_ext
7313 if $ac_preproc_ok; then :
7314   break
7315 fi
7316
7317     done
7318     ac_cv_prog_CPP=$CPP
7319
7320 fi
7321   CPP=$ac_cv_prog_CPP
7322 else
7323   ac_cv_prog_CPP=$CPP
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7326 $as_echo "$CPP" >&6; }
7327 ac_preproc_ok=false
7328 for ac_c_preproc_warn_flag in '' yes
7329 do
7330   # Use a header file that comes with gcc, so configuring glibc
7331   # with a fresh cross-compiler works.
7332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7333   # <limits.h> exists even on freestanding compilers.
7334   # On the NeXT, cc -E runs the code through the compiler's parser,
7335   # not just through cpp. "Syntax error" is here to catch this case.
7336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h.  */
7338 #ifdef __STDC__
7339 # include <limits.h>
7340 #else
7341 # include <assert.h>
7342 #endif
7343                      Syntax error
7344 _ACEOF
7345 if ac_fn_c_try_cpp "$LINENO"; then :
7346
7347 else
7348   # Broken: fails on valid input.
7349 continue
7350 fi
7351 rm -f conftest.err conftest.$ac_ext
7352
7353   # OK, works on sane cases.  Now check whether nonexistent headers
7354   # can be detected and how.
7355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h.  */
7357 #include <ac_nonexistent.h>
7358 _ACEOF
7359 if ac_fn_c_try_cpp "$LINENO"; then :
7360   # Broken: success on invalid input.
7361 continue
7362 else
7363   # Passes both tests.
7364 ac_preproc_ok=:
7365 break
7366 fi
7367 rm -f conftest.err conftest.$ac_ext
7368
7369 done
7370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7371 rm -f conftest.err conftest.$ac_ext
7372 if $ac_preproc_ok; then :
7373
7374 else
7375   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7377 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7378 See \`config.log' for more details." "$LINENO" 5; }
7379 fi
7380
7381 ac_ext=c
7382 ac_cpp='$CPP $CPPFLAGS'
7383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7386
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7389 $as_echo_n "checking for ANSI C header files... " >&6; }
7390 if test "${ac_cv_header_stdc+set}" = set; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h.  */
7395 #include <stdlib.h>
7396 #include <stdarg.h>
7397 #include <string.h>
7398 #include <float.h>
7399
7400 int
7401 main ()
7402 {
7403
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409   ac_cv_header_stdc=yes
7410 else
7411   ac_cv_header_stdc=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414
7415 if test $ac_cv_header_stdc = yes; then
7416   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h.  */
7419 #include <string.h>
7420
7421 _ACEOF
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423   $EGREP "memchr" >/dev/null 2>&1; then :
7424
7425 else
7426   ac_cv_header_stdc=no
7427 fi
7428 rm -f conftest*
7429
7430 fi
7431
7432 if test $ac_cv_header_stdc = yes; then
7433   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h.  */
7436 #include <stdlib.h>
7437
7438 _ACEOF
7439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440   $EGREP "free" >/dev/null 2>&1; then :
7441
7442 else
7443   ac_cv_header_stdc=no
7444 fi
7445 rm -f conftest*
7446
7447 fi
7448
7449 if test $ac_cv_header_stdc = yes; then
7450   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7451   if test "$cross_compiling" = yes; then :
7452   :
7453 else
7454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h.  */
7456 #include <ctype.h>
7457 #include <stdlib.h>
7458 #if ((' ' & 0x0FF) == 0x020)
7459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7461 #else
7462 # define ISLOWER(c) \
7463                    (('a' <= (c) && (c) <= 'i') \
7464                      || ('j' <= (c) && (c) <= 'r') \
7465                      || ('s' <= (c) && (c) <= 'z'))
7466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7467 #endif
7468
7469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7470 int
7471 main ()
7472 {
7473   int i;
7474   for (i = 0; i < 256; i++)
7475     if (XOR (islower (i), ISLOWER (i))
7476         || toupper (i) != TOUPPER (i))
7477       return 2;
7478   return 0;
7479 }
7480 _ACEOF
7481 if ac_fn_c_try_run "$LINENO"; then :
7482
7483 else
7484   ac_cv_header_stdc=no
7485 fi
7486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7487   conftest.$ac_objext conftest.beam conftest.$ac_ext
7488 fi
7489
7490 fi
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7493 $as_echo "$ac_cv_header_stdc" >&6; }
7494 if test $ac_cv_header_stdc = yes; then
7495
7496 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7497
7498 fi
7499
7500 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7502                   inttypes.h stdint.h unistd.h
7503 do :
7504   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7505 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7506 "
7507 eval as_val=\$$as_ac_Header
7508    if test "x$as_val" = x""yes; then :
7509   cat >>confdefs.h <<_ACEOF
7510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7511 _ACEOF
7512
7513 fi
7514
7515 done
7516
7517
7518 for ac_header in dlfcn.h
7519 do :
7520   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7521 "
7522 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7523   cat >>confdefs.h <<_ACEOF
7524 #define HAVE_DLFCN_H 1
7525 _ACEOF
7526
7527 fi
7528
7529 done
7530
7531 if test -n "$ac_tool_prefix"; then
7532   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7533 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if test "${ac_cv_prog_GOC+set}" = set; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539   if test -n "$GOC"; then
7540   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547     for ac_exec_ext in '' $ac_executable_extensions; do
7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554   done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 GOC=$ac_cv_prog_GOC
7560 if test -n "$GOC"; then
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7562 $as_echo "$GOC" >&6; }
7563 else
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566 fi
7567
7568
7569 fi
7570 if test -z "$ac_cv_prog_GOC"; then
7571   ac_ct_GOC=$GOC
7572   # Extract the first word of "gccgo", so it can be a program name with args.
7573 set dummy gccgo; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   if test -n "$ac_ct_GOC"; then
7580   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587     for ac_exec_ext in '' $ac_executable_extensions; do
7588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7589     ac_cv_prog_ac_ct_GOC="gccgo"
7590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594   done
7595 IFS=$as_save_IFS
7596
7597 fi
7598 fi
7599 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7600 if test -n "$ac_ct_GOC"; then
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7602 $as_echo "$ac_ct_GOC" >&6; }
7603 else
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 fi
7607
7608   if test "x$ac_ct_GOC" = x; then
7609     GOC=""
7610   else
7611     case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7616 esac
7617     GOC=$ac_ct_GOC
7618   fi
7619 else
7620   GOC="$ac_cv_prog_GOC"
7621 fi
7622
7623
7624
7625
7626
7627
7628 # Set options
7629
7630
7631
7632
7633   enable_win32_dll=no
7634
7635
7636             # Check whether --enable-shared was given.
7637 if test "${enable_shared+set}" = set; then :
7638   enableval=$enable_shared; p=${PACKAGE-default}
7639     case $enableval in
7640     yes) enable_shared=yes ;;
7641     no) enable_shared=no ;;
7642     *)
7643       enable_shared=no
7644       # Look at the argument we got.  We use all the common list separators.
7645       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7646       for pkg in $enableval; do
7647         IFS="$lt_save_ifs"
7648         if test "X$pkg" = "X$p"; then
7649           enable_shared=yes
7650         fi
7651       done
7652       IFS="$lt_save_ifs"
7653       ;;
7654     esac
7655 else
7656   enable_shared=yes
7657 fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667   # Check whether --enable-static was given.
7668 if test "${enable_static+set}" = set; then :
7669   enableval=$enable_static; p=${PACKAGE-default}
7670     case $enableval in
7671     yes) enable_static=yes ;;
7672     no) enable_static=no ;;
7673     *)
7674      enable_static=no
7675       # Look at the argument we got.  We use all the common list separators.
7676       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7677       for pkg in $enableval; do
7678         IFS="$lt_save_ifs"
7679         if test "X$pkg" = "X$p"; then
7680           enable_static=yes
7681         fi
7682       done
7683       IFS="$lt_save_ifs"
7684       ;;
7685     esac
7686 else
7687   enable_static=yes
7688 fi
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 # Check whether --with-pic was given.
7700 if test "${with_pic+set}" = set; then :
7701   withval=$with_pic; pic_mode="$withval"
7702 else
7703   pic_mode=default
7704 fi
7705
7706
7707 test -z "$pic_mode" && pic_mode=default
7708
7709
7710
7711
7712
7713
7714
7715   # Check whether --enable-fast-install was given.
7716 if test "${enable_fast_install+set}" = set; then :
7717   enableval=$enable_fast_install; p=${PACKAGE-default}
7718     case $enableval in
7719     yes) enable_fast_install=yes ;;
7720     no) enable_fast_install=no ;;
7721     *)
7722       enable_fast_install=no
7723       # Look at the argument we got.  We use all the common list separators.
7724       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7725       for pkg in $enableval; do
7726         IFS="$lt_save_ifs"
7727         if test "X$pkg" = "X$p"; then
7728           enable_fast_install=yes
7729         fi
7730       done
7731       IFS="$lt_save_ifs"
7732       ;;
7733     esac
7734 else
7735   enable_fast_install=yes
7736 fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748 # This can be used to rebuild libtool when needed
7749 LIBTOOL_DEPS="$ltmain"
7750
7751 # Always use our own libtool.
7752 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779 test -z "$LN_S" && LN_S="ln -s"
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794 if test -n "${ZSH_VERSION+set}" ; then
7795    setopt NO_GLOB_SUBST
7796 fi
7797
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7799 $as_echo_n "checking for objdir... " >&6; }
7800 if test "${lt_cv_objdir+set}" = set; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   rm -f .libs 2>/dev/null
7804 mkdir .libs 2>/dev/null
7805 if test -d .libs; then
7806   lt_cv_objdir=.libs
7807 else
7808   # MS-DOS does not allow filenames that begin with a dot.
7809   lt_cv_objdir=_libs
7810 fi
7811 rmdir .libs 2>/dev/null
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7814 $as_echo "$lt_cv_objdir" >&6; }
7815 objdir=$lt_cv_objdir
7816
7817
7818
7819
7820
7821 cat >>confdefs.h <<_ACEOF
7822 #define LT_OBJDIR "$lt_cv_objdir/"
7823 _ACEOF
7824
7825
7826
7827
7828 case $host_os in
7829 aix3*)
7830   # AIX sometimes has problems with the GCC collect2 program.  For some
7831   # reason, if we set the COLLECT_NAMES environment variable, the problems
7832   # vanish in a puff of smoke.
7833   if test "X${COLLECT_NAMES+set}" != Xset; then
7834     COLLECT_NAMES=
7835     export COLLECT_NAMES
7836   fi
7837   ;;
7838 esac
7839
7840 # Global variables:
7841 ofile=libtool
7842 can_build_shared=yes
7843
7844 # All known linkers require a `.a' archive for static linking (except MSVC,
7845 # which needs '.lib').
7846 libext=a
7847
7848 with_gnu_ld="$lt_cv_prog_gnu_ld"
7849
7850 old_CC="$CC"
7851 old_CFLAGS="$CFLAGS"
7852
7853 # Set sane defaults for various variables
7854 test -z "$CC" && CC=cc
7855 test -z "$LTCC" && LTCC=$CC
7856 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7857 test -z "$LD" && LD=ld
7858 test -z "$ac_objext" && ac_objext=o
7859
7860 for cc_temp in $compiler""; do
7861   case $cc_temp in
7862     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7863     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7864     \-*) ;;
7865     *) break;;
7866   esac
7867 done
7868 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7869
7870
7871 # Only perform the check for file, if the check method requires it
7872 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7873 case $deplibs_check_method in
7874 file_magic*)
7875   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7877 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7878 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   case $MAGIC_CMD in
7882 [\\/*] |  ?:[\\/]*)
7883   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7884   ;;
7885 *)
7886   lt_save_MAGIC_CMD="$MAGIC_CMD"
7887   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7888   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7889   for ac_dir in $ac_dummy; do
7890     IFS="$lt_save_ifs"
7891     test -z "$ac_dir" && ac_dir=.
7892     if test -f $ac_dir/${ac_tool_prefix}file; then
7893       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7894       if test -n "$file_magic_test_file"; then
7895         case $deplibs_check_method in
7896         "file_magic "*)
7897           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7898           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7899           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7900             $EGREP "$file_magic_regex" > /dev/null; then
7901             :
7902           else
7903             cat <<_LT_EOF 1>&2
7904
7905 *** Warning: the command libtool uses to detect shared libraries,
7906 *** $file_magic_cmd, produces output that libtool cannot recognize.
7907 *** The result is that libtool may fail to recognize shared libraries
7908 *** as such.  This will affect the creation of libtool libraries that
7909 *** depend on shared libraries, but programs linked with such libtool
7910 *** libraries will work regardless of this problem.  Nevertheless, you
7911 *** may want to report the problem to your system manager and/or to
7912 *** bug-libtool@gnu.org
7913
7914 _LT_EOF
7915           fi ;;
7916         esac
7917       fi
7918       break
7919     fi
7920   done
7921   IFS="$lt_save_ifs"
7922   MAGIC_CMD="$lt_save_MAGIC_CMD"
7923   ;;
7924 esac
7925 fi
7926
7927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7928 if test -n "$MAGIC_CMD"; then
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7930 $as_echo "$MAGIC_CMD" >&6; }
7931 else
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937
7938
7939
7940 if test -z "$lt_cv_path_MAGIC_CMD"; then
7941   if test -n "$ac_tool_prefix"; then
7942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7943 $as_echo_n "checking for file... " >&6; }
7944 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7945   $as_echo_n "(cached) " >&6
7946 else
7947   case $MAGIC_CMD in
7948 [\\/*] |  ?:[\\/]*)
7949   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950   ;;
7951 *)
7952   lt_save_MAGIC_CMD="$MAGIC_CMD"
7953   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7954   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7955   for ac_dir in $ac_dummy; do
7956     IFS="$lt_save_ifs"
7957     test -z "$ac_dir" && ac_dir=.
7958     if test -f $ac_dir/file; then
7959       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7960       if test -n "$file_magic_test_file"; then
7961         case $deplibs_check_method in
7962         "file_magic "*)
7963           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7964           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7965           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7966             $EGREP "$file_magic_regex" > /dev/null; then
7967             :
7968           else
7969             cat <<_LT_EOF 1>&2
7970
7971 *** Warning: the command libtool uses to detect shared libraries,
7972 *** $file_magic_cmd, produces output that libtool cannot recognize.
7973 *** The result is that libtool may fail to recognize shared libraries
7974 *** as such.  This will affect the creation of libtool libraries that
7975 *** depend on shared libraries, but programs linked with such libtool
7976 *** libraries will work regardless of this problem.  Nevertheless, you
7977 *** may want to report the problem to your system manager and/or to
7978 *** bug-libtool@gnu.org
7979
7980 _LT_EOF
7981           fi ;;
7982         esac
7983       fi
7984       break
7985     fi
7986   done
7987   IFS="$lt_save_ifs"
7988   MAGIC_CMD="$lt_save_MAGIC_CMD"
7989   ;;
7990 esac
7991 fi
7992
7993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994 if test -n "$MAGIC_CMD"; then
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7996 $as_echo "$MAGIC_CMD" >&6; }
7997 else
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000 fi
8001
8002
8003   else
8004     MAGIC_CMD=:
8005   fi
8006 fi
8007
8008   fi
8009   ;;
8010 esac
8011
8012 # Use C for the default configuration in the libtool script
8013
8014 lt_save_CC="$CC"
8015 ac_ext=c
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021
8022 # Source file extension for C test sources.
8023 ac_ext=c
8024
8025 # Object file extension for compiled C test sources.
8026 objext=o
8027 objext=$objext
8028
8029 # Code to be used in simple compile tests
8030 lt_simple_compile_test_code="int some_variable = 0;"
8031
8032 # Code to be used in simple link tests
8033 lt_simple_link_test_code='int main(){return(0);}'
8034
8035
8036
8037
8038
8039
8040
8041 # If no C compiler was specified, use CC.
8042 LTCC=${LTCC-"$CC"}
8043
8044 # If no C compiler flags were specified, use CFLAGS.
8045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8046
8047 # Allow CC to be a program name with arguments.
8048 compiler=$CC
8049
8050 # Save the default compiler, since it gets overwritten when the other
8051 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8052 compiler_DEFAULT=$CC
8053
8054 # save warnings/boilerplate of simple test code
8055 ac_outfile=conftest.$ac_objext
8056 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8058 _lt_compiler_boilerplate=`cat conftest.err`
8059 $RM conftest*
8060
8061 ac_outfile=conftest.$ac_objext
8062 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8064 _lt_linker_boilerplate=`cat conftest.err`
8065 $RM -r conftest*
8066
8067
8068 ## CAVEAT EMPTOR:
8069 ## There is no encapsulation within the following macros, do not change
8070 ## the running order or otherwise move them around unless you know exactly
8071 ## what you are doing...
8072 if test -n "$compiler"; then
8073
8074 lt_prog_compiler_no_builtin_flag=
8075
8076 if test "$GCC" = yes; then
8077   case $cc_basename in
8078   nvcc*)
8079     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8080   *)
8081     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8082   esac
8083
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8085 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8086 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089   lt_cv_prog_compiler_rtti_exceptions=no
8090    ac_outfile=conftest.$ac_objext
8091    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8092    lt_compiler_flag="-fno-rtti -fno-exceptions"
8093    # Insert the option either (1) after the last *FLAGS variable, or
8094    # (2) before a word containing "conftest.", or (3) at the end.
8095    # Note that $ac_compile itself does not contain backslashes and begins
8096    # with a dollar sign (not a hyphen), so the echo should work correctly.
8097    # The option is referenced via a variable to avoid confusing sed.
8098    lt_compile=`echo "$ac_compile" | $SED \
8099    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8100    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8101    -e 's:$: $lt_compiler_flag:'`
8102    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8103    (eval "$lt_compile" 2>conftest.err)
8104    ac_status=$?
8105    cat conftest.err >&5
8106    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107    if (exit $ac_status) && test -s "$ac_outfile"; then
8108      # The compiler can only warn and ignore the option if not recognized
8109      # So say no if there are warnings other than the usual output.
8110      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8111      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8112      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8113        lt_cv_prog_compiler_rtti_exceptions=yes
8114      fi
8115    fi
8116    $RM conftest*
8117
8118 fi
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8120 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8121
8122 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8123     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8124 else
8125     :
8126 fi
8127
8128 fi
8129
8130
8131
8132
8133
8134
8135   lt_prog_compiler_wl=
8136 lt_prog_compiler_pic=
8137 lt_prog_compiler_static=
8138
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8140 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8141
8142   if test "$GCC" = yes; then
8143     lt_prog_compiler_wl='-Wl,'
8144     lt_prog_compiler_static='-static'
8145
8146     case $host_os in
8147       aix*)
8148       # All AIX code is PIC.
8149       if test "$host_cpu" = ia64; then
8150         # AIX 5 now supports IA64 processor
8151         lt_prog_compiler_static='-Bstatic'
8152       fi
8153       ;;
8154
8155     amigaos*)
8156       case $host_cpu in
8157       powerpc)
8158             # see comment about AmigaOS4 .so support
8159             lt_prog_compiler_pic='-fPIC'
8160         ;;
8161       m68k)
8162             # FIXME: we need at least 68020 code to build shared libraries, but
8163             # adding the `-m68020' flag to GCC prevents building anything better,
8164             # like `-m68040'.
8165             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8166         ;;
8167       esac
8168       ;;
8169
8170     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8171       # PIC is the default for these OSes.
8172       ;;
8173
8174     mingw* | cygwin* | pw32* | os2* | cegcc*)
8175       # This hack is so that the source file can tell whether it is being
8176       # built for inclusion in a dll (and should export symbols for example).
8177       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8178       # (--disable-auto-import) libraries
8179       lt_prog_compiler_pic='-DDLL_EXPORT'
8180       ;;
8181
8182     darwin* | rhapsody*)
8183       # PIC is the default on this platform
8184       # Common symbols not allowed in MH_DYLIB files
8185       lt_prog_compiler_pic='-fno-common'
8186       ;;
8187
8188     haiku*)
8189       # PIC is the default for Haiku.
8190       # The "-static" flag exists, but is broken.
8191       lt_prog_compiler_static=
8192       ;;
8193
8194     hpux*)
8195       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8196       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8197       # sets the default TLS model and affects inlining.
8198       case $host_cpu in
8199       hppa*64*)
8200         # +Z the default
8201         ;;
8202       *)
8203         lt_prog_compiler_pic='-fPIC'
8204         ;;
8205       esac
8206       ;;
8207
8208     interix[3-9]*)
8209       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8210       # Instead, we relocate shared libraries at runtime.
8211       ;;
8212
8213     msdosdjgpp*)
8214       # Just because we use GCC doesn't mean we suddenly get shared libraries
8215       # on systems that don't support them.
8216       lt_prog_compiler_can_build_shared=no
8217       enable_shared=no
8218       ;;
8219
8220     *nto* | *qnx*)
8221       # QNX uses GNU C++, but need to define -shared option too, otherwise
8222       # it will coredump.
8223       lt_prog_compiler_pic='-fPIC -shared'
8224       ;;
8225
8226     sysv4*MP*)
8227       if test -d /usr/nec; then
8228         lt_prog_compiler_pic=-Kconform_pic
8229       fi
8230       ;;
8231
8232     *)
8233       lt_prog_compiler_pic='-fPIC'
8234       ;;
8235     esac
8236
8237     case $cc_basename in
8238     nvcc*) # Cuda Compiler Driver 2.2
8239       lt_prog_compiler_wl='-Xlinker '
8240       lt_prog_compiler_pic='-Xcompiler -fPIC'
8241       ;;
8242     esac
8243   else
8244     # PORTME Check for flag to pass linker flags through the system compiler.
8245     case $host_os in
8246     aix*)
8247       lt_prog_compiler_wl='-Wl,'
8248       if test "$host_cpu" = ia64; then
8249         # AIX 5 now supports IA64 processor
8250         lt_prog_compiler_static='-Bstatic'
8251       else
8252         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8253       fi
8254       ;;
8255
8256     mingw* | cygwin* | pw32* | os2* | cegcc*)
8257       # This hack is so that the source file can tell whether it is being
8258       # built for inclusion in a dll (and should export symbols for example).
8259       lt_prog_compiler_pic='-DDLL_EXPORT'
8260       ;;
8261
8262     hpux9* | hpux10* | hpux11*)
8263       lt_prog_compiler_wl='-Wl,'
8264       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8265       # not for PA HP-UX.
8266       case $host_cpu in
8267       hppa*64*|ia64*)
8268         # +Z the default
8269         ;;
8270       *)
8271         lt_prog_compiler_pic='+Z'
8272         ;;
8273       esac
8274       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8275       lt_prog_compiler_static='${wl}-a ${wl}archive'
8276       ;;
8277
8278     irix5* | irix6* | nonstopux*)
8279       lt_prog_compiler_wl='-Wl,'
8280       # PIC (with -KPIC) is the default.
8281       lt_prog_compiler_static='-non_shared'
8282       ;;
8283
8284     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8285       case $cc_basename in
8286       # old Intel for x86_64 which still supported -KPIC.
8287       ecc*)
8288         lt_prog_compiler_wl='-Wl,'
8289         lt_prog_compiler_pic='-KPIC'
8290         lt_prog_compiler_static='-static'
8291         ;;
8292       # icc used to be incompatible with GCC.
8293       # ICC 10 doesn't accept -KPIC any more.
8294       icc* | ifort*)
8295         lt_prog_compiler_wl='-Wl,'
8296         lt_prog_compiler_pic='-fPIC'
8297         lt_prog_compiler_static='-static'
8298         ;;
8299       # Lahey Fortran 8.1.
8300       lf95*)
8301         lt_prog_compiler_wl='-Wl,'
8302         lt_prog_compiler_pic='--shared'
8303         lt_prog_compiler_static='--static'
8304         ;;
8305       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8306         # Portland Group compilers (*not* the Pentium gcc compiler,
8307         # which looks to be a dead project)
8308         lt_prog_compiler_wl='-Wl,'
8309         lt_prog_compiler_pic='-fpic'
8310         lt_prog_compiler_static='-Bstatic'
8311         ;;
8312       ccc*)
8313         lt_prog_compiler_wl='-Wl,'
8314         # All Alpha code is PIC.
8315         lt_prog_compiler_static='-non_shared'
8316         ;;
8317       xl* | bgxl* | bgf* | mpixl*)
8318         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8319         lt_prog_compiler_wl='-Wl,'
8320         lt_prog_compiler_pic='-qpic'
8321         lt_prog_compiler_static='-qstaticlink'
8322         ;;
8323       *)
8324         case `$CC -V 2>&1 | sed 5q` in
8325         *Sun\ F* | *Sun*Fortran*)
8326           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8327           lt_prog_compiler_pic='-KPIC'
8328           lt_prog_compiler_static='-Bstatic'
8329           lt_prog_compiler_wl=''
8330           ;;
8331         *Sun\ C*)
8332           # Sun C 5.9
8333           lt_prog_compiler_pic='-KPIC'
8334           lt_prog_compiler_static='-Bstatic'
8335           lt_prog_compiler_wl='-Wl,'
8336           ;;
8337         esac
8338         ;;
8339       esac
8340       ;;
8341
8342     newsos6)
8343       lt_prog_compiler_pic='-KPIC'
8344       lt_prog_compiler_static='-Bstatic'
8345       ;;
8346
8347     *nto* | *qnx*)
8348       # QNX uses GNU C++, but need to define -shared option too, otherwise
8349       # it will coredump.
8350       lt_prog_compiler_pic='-fPIC -shared'
8351       ;;
8352
8353     osf3* | osf4* | osf5*)
8354       lt_prog_compiler_wl='-Wl,'
8355       # All OSF/1 code is PIC.
8356       lt_prog_compiler_static='-non_shared'
8357       ;;
8358
8359     rdos*)
8360       lt_prog_compiler_static='-non_shared'
8361       ;;
8362
8363     solaris*)
8364       lt_prog_compiler_pic='-KPIC'
8365       lt_prog_compiler_static='-Bstatic'
8366       case $cc_basename in
8367       f77* | f90* | f95*)
8368         lt_prog_compiler_wl='-Qoption ld ';;
8369       *)
8370         lt_prog_compiler_wl='-Wl,';;
8371       esac
8372       ;;
8373
8374     sunos4*)
8375       lt_prog_compiler_wl='-Qoption ld '
8376       lt_prog_compiler_pic='-PIC'
8377       lt_prog_compiler_static='-Bstatic'
8378       ;;
8379
8380     sysv4 | sysv4.2uw2* | sysv4.3*)
8381       lt_prog_compiler_wl='-Wl,'
8382       lt_prog_compiler_pic='-KPIC'
8383       lt_prog_compiler_static='-Bstatic'
8384       ;;
8385
8386     sysv4*MP*)
8387       if test -d /usr/nec ;then
8388         lt_prog_compiler_pic='-Kconform_pic'
8389         lt_prog_compiler_static='-Bstatic'
8390       fi
8391       ;;
8392
8393     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8394       lt_prog_compiler_wl='-Wl,'
8395       lt_prog_compiler_pic='-KPIC'
8396       lt_prog_compiler_static='-Bstatic'
8397       ;;
8398
8399     unicos*)
8400       lt_prog_compiler_wl='-Wl,'
8401       lt_prog_compiler_can_build_shared=no
8402       ;;
8403
8404     uts4*)
8405       lt_prog_compiler_pic='-pic'
8406       lt_prog_compiler_static='-Bstatic'
8407       ;;
8408
8409     *)
8410       lt_prog_compiler_can_build_shared=no
8411       ;;
8412     esac
8413   fi
8414
8415 case $host_os in
8416   # For platforms which do not support PIC, -DPIC is meaningless:
8417   *djgpp*)
8418     lt_prog_compiler_pic=
8419     ;;
8420   *)
8421     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8422     ;;
8423 esac
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8425 $as_echo "$lt_prog_compiler_pic" >&6; }
8426
8427
8428
8429
8430
8431
8432 #
8433 # Check to make sure the PIC flag actually works.
8434 #
8435 if test -n "$lt_prog_compiler_pic"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8437 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8438 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   lt_cv_prog_compiler_pic_works=no
8442    ac_outfile=conftest.$ac_objext
8443    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8444    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8445    # Insert the option either (1) after the last *FLAGS variable, or
8446    # (2) before a word containing "conftest.", or (3) at the end.
8447    # Note that $ac_compile itself does not contain backslashes and begins
8448    # with a dollar sign (not a hyphen), so the echo should work correctly.
8449    # The option is referenced via a variable to avoid confusing sed.
8450    lt_compile=`echo "$ac_compile" | $SED \
8451    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8452    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8453    -e 's:$: $lt_compiler_flag:'`
8454    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8455    (eval "$lt_compile" 2>conftest.err)
8456    ac_status=$?
8457    cat conftest.err >&5
8458    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459    if (exit $ac_status) && test -s "$ac_outfile"; then
8460      # The compiler can only warn and ignore the option if not recognized
8461      # So say no if there are warnings other than the usual output.
8462      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8463      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8464      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8465        lt_cv_prog_compiler_pic_works=yes
8466      fi
8467    fi
8468    $RM conftest*
8469
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8472 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8473
8474 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8475     case $lt_prog_compiler_pic in
8476      "" | " "*) ;;
8477      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8478      esac
8479 else
8480     lt_prog_compiler_pic=
8481      lt_prog_compiler_can_build_shared=no
8482 fi
8483
8484 fi
8485
8486
8487
8488
8489
8490
8491 #
8492 # Check to make sure the static flag actually works.
8493 #
8494 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8497 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8498   $as_echo_n "(cached) " >&6
8499 else
8500   lt_cv_prog_compiler_static_works=no
8501    save_LDFLAGS="$LDFLAGS"
8502    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8503    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8504    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8505      # The linker can only warn and ignore the option if not recognized
8506      # So say no if there are warnings
8507      if test -s conftest.err; then
8508        # Append any errors to the config.log.
8509        cat conftest.err 1>&5
8510        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8511        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512        if diff conftest.exp conftest.er2 >/dev/null; then
8513          lt_cv_prog_compiler_static_works=yes
8514        fi
8515      else
8516        lt_cv_prog_compiler_static_works=yes
8517      fi
8518    fi
8519    $RM -r conftest*
8520    LDFLAGS="$save_LDFLAGS"
8521
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8524 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8525
8526 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8527     :
8528 else
8529     lt_prog_compiler_static=
8530 fi
8531
8532
8533
8534
8535
8536
8537
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8540 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   lt_cv_prog_compiler_c_o=no
8544    $RM -r conftest 2>/dev/null
8545    mkdir conftest
8546    cd conftest
8547    mkdir out
8548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549
8550    lt_compiler_flag="-o out/conftest2.$ac_objext"
8551    # Insert the option either (1) after the last *FLAGS variable, or
8552    # (2) before a word containing "conftest.", or (3) at the end.
8553    # Note that $ac_compile itself does not contain backslashes and begins
8554    # with a dollar sign (not a hyphen), so the echo should work correctly.
8555    lt_compile=`echo "$ac_compile" | $SED \
8556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558    -e 's:$: $lt_compiler_flag:'`
8559    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560    (eval "$lt_compile" 2>out/conftest.err)
8561    ac_status=$?
8562    cat out/conftest.err >&5
8563    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8565    then
8566      # The compiler can only warn and ignore the option if not recognized
8567      # So say no if there are warnings
8568      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8569      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8570      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8571        lt_cv_prog_compiler_c_o=yes
8572      fi
8573    fi
8574    chmod u+w . 2>&5
8575    $RM conftest*
8576    # SGI C++ compiler will create directory out/ii_files/ for
8577    # template instantiation
8578    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8579    $RM out/* && rmdir out
8580    cd ..
8581    $RM -r conftest
8582    $RM conftest*
8583
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8586 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8587
8588
8589
8590
8591
8592
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8595 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8596   $as_echo_n "(cached) " >&6
8597 else
8598   lt_cv_prog_compiler_c_o=no
8599    $RM -r conftest 2>/dev/null
8600    mkdir conftest
8601    cd conftest
8602    mkdir out
8603    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604
8605    lt_compiler_flag="-o out/conftest2.$ac_objext"
8606    # Insert the option either (1) after the last *FLAGS variable, or
8607    # (2) before a word containing "conftest.", or (3) at the end.
8608    # Note that $ac_compile itself does not contain backslashes and begins
8609    # with a dollar sign (not a hyphen), so the echo should work correctly.
8610    lt_compile=`echo "$ac_compile" | $SED \
8611    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613    -e 's:$: $lt_compiler_flag:'`
8614    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8615    (eval "$lt_compile" 2>out/conftest.err)
8616    ac_status=$?
8617    cat out/conftest.err >&5
8618    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8620    then
8621      # The compiler can only warn and ignore the option if not recognized
8622      # So say no if there are warnings
8623      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8624      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8625      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8626        lt_cv_prog_compiler_c_o=yes
8627      fi
8628    fi
8629    chmod u+w . 2>&5
8630    $RM conftest*
8631    # SGI C++ compiler will create directory out/ii_files/ for
8632    # template instantiation
8633    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8634    $RM out/* && rmdir out
8635    cd ..
8636    $RM -r conftest
8637    $RM conftest*
8638
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8641 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8642
8643
8644
8645
8646 hard_links="nottested"
8647 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8648   # do not overwrite the value of need_locks provided by the user
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8650 $as_echo_n "checking if we can lock with hard links... " >&6; }
8651   hard_links=yes
8652   $RM conftest*
8653   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8654   touch conftest.a
8655   ln conftest.a conftest.b 2>&5 || hard_links=no
8656   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8658 $as_echo "$hard_links" >&6; }
8659   if test "$hard_links" = no; then
8660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8661 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8662     need_locks=warn
8663   fi
8664 else
8665   need_locks=no
8666 fi
8667
8668
8669
8670
8671
8672
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8674 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8675
8676   runpath_var=
8677   allow_undefined_flag=
8678   always_export_symbols=no
8679   archive_cmds=
8680   archive_expsym_cmds=
8681   compiler_needs_object=no
8682   enable_shared_with_static_runtimes=no
8683   export_dynamic_flag_spec=
8684   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8685   hardcode_automatic=no
8686   hardcode_direct=no
8687   hardcode_direct_absolute=no
8688   hardcode_libdir_flag_spec=
8689   hardcode_libdir_flag_spec_ld=
8690   hardcode_libdir_separator=
8691   hardcode_minus_L=no
8692   hardcode_shlibpath_var=unsupported
8693   inherit_rpath=no
8694   link_all_deplibs=unknown
8695   module_cmds=
8696   module_expsym_cmds=
8697   old_archive_from_new_cmds=
8698   old_archive_from_expsyms_cmds=
8699   thread_safe_flag_spec=
8700   whole_archive_flag_spec=
8701   # include_expsyms should be a list of space-separated symbols to be *always*
8702   # included in the symbol list
8703   include_expsyms=
8704   # exclude_expsyms can be an extended regexp of symbols to exclude
8705   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8706   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8707   # as well as any symbol that contains `d'.
8708   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8709   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8710   # platforms (ab)use it in PIC code, but their linkers get confused if
8711   # the symbol is explicitly referenced.  Since portable code cannot
8712   # rely on this symbol name, it's probably fine to never include it in
8713   # preloaded symbol tables.
8714   # Exclude shared library initialization/finalization symbols.
8715   extract_expsyms_cmds=
8716
8717   case $host_os in
8718   cygwin* | mingw* | pw32* | cegcc*)
8719     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8720     # When not using gcc, we currently assume that we are using
8721     # Microsoft Visual C++.
8722     if test "$GCC" != yes; then
8723       with_gnu_ld=no
8724     fi
8725     ;;
8726   interix*)
8727     # we just hope/assume this is gcc and not c89 (= MSVC++)
8728     with_gnu_ld=yes
8729     ;;
8730   openbsd*)
8731     with_gnu_ld=no
8732     ;;
8733   esac
8734
8735   ld_shlibs=yes
8736
8737   # On some targets, GNU ld is compatible enough with the native linker
8738   # that we're better off using the native interface for both.
8739   lt_use_gnu_ld_interface=no
8740   if test "$with_gnu_ld" = yes; then
8741     case $host_os in
8742       aix*)
8743         # The AIX port of GNU ld has always aspired to compatibility
8744         # with the native linker.  However, as the warning in the GNU ld
8745         # block says, versions before 2.19.5* couldn't really create working
8746         # shared libraries, regardless of the interface used.
8747         case `$LD -v 2>&1` in
8748           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8749           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8750           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8751           *)
8752             lt_use_gnu_ld_interface=yes
8753             ;;
8754         esac
8755         ;;
8756       *)
8757         lt_use_gnu_ld_interface=yes
8758         ;;
8759     esac
8760   fi
8761
8762   if test "$lt_use_gnu_ld_interface" = yes; then
8763     # If archive_cmds runs LD, not CC, wlarc should be empty
8764     wlarc='${wl}'
8765
8766     # Set some defaults for GNU ld with shared library support. These
8767     # are reset later if shared libraries are not supported. Putting them
8768     # here allows them to be overridden if necessary.
8769     runpath_var=LD_RUN_PATH
8770     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771     export_dynamic_flag_spec='${wl}--export-dynamic'
8772     # ancient GNU ld didn't support --whole-archive et. al.
8773     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8774       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8775     else
8776       whole_archive_flag_spec=
8777     fi
8778     supports_anon_versioning=no
8779     case `$LD -v 2>&1` in
8780       *GNU\ gold*) supports_anon_versioning=yes ;;
8781       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8782       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8783       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8784       *\ 2.11.*) ;; # other 2.11 versions
8785       *) supports_anon_versioning=yes ;;
8786     esac
8787
8788     # See if GNU ld supports shared libraries.
8789     case $host_os in
8790     aix[3-9]*)
8791       # On AIX/PPC, the GNU linker is very broken
8792       if test "$host_cpu" != ia64; then
8793         ld_shlibs=no
8794         cat <<_LT_EOF 1>&2
8795
8796 *** Warning: the GNU linker, at least up to release 2.19, is reported
8797 *** to be unable to reliably create shared libraries on AIX.
8798 *** Therefore, libtool is disabling shared libraries support.  If you
8799 *** really care for shared libraries, you may want to install binutils
8800 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8801 *** You will then need to restart the configuration process.
8802
8803 _LT_EOF
8804       fi
8805       ;;
8806
8807     amigaos*)
8808       case $host_cpu in
8809       powerpc)
8810             # see comment about AmigaOS4 .so support
8811             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812             archive_expsym_cmds=''
8813         ;;
8814       m68k)
8815             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)'
8816             hardcode_libdir_flag_spec='-L$libdir'
8817             hardcode_minus_L=yes
8818         ;;
8819       esac
8820       ;;
8821
8822     beos*)
8823       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824         allow_undefined_flag=unsupported
8825         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8826         # support --undefined.  This deserves some investigation.  FIXME
8827         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828       else
8829         ld_shlibs=no
8830       fi
8831       ;;
8832
8833     cygwin* | mingw* | pw32* | cegcc*)
8834       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8835       # as there is no search path for DLLs.
8836       hardcode_libdir_flag_spec='-L$libdir'
8837       export_dynamic_flag_spec='${wl}--export-all-symbols'
8838       allow_undefined_flag=unsupported
8839       always_export_symbols=no
8840       enable_shared_with_static_runtimes=yes
8841       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8842
8843       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8844         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8845         # If the export-symbols file already is a .def file (1st line
8846         # is EXPORTS), use it as is; otherwise, prepend...
8847         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8848           cp $export_symbols $output_objdir/$soname.def;
8849         else
8850           echo EXPORTS > $output_objdir/$soname.def;
8851           cat $export_symbols >> $output_objdir/$soname.def;
8852         fi~
8853         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854       else
8855         ld_shlibs=no
8856       fi
8857       ;;
8858
8859     haiku*)
8860       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861       link_all_deplibs=yes
8862       ;;
8863
8864     interix[3-9]*)
8865       hardcode_direct=no
8866       hardcode_shlibpath_var=no
8867       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8868       export_dynamic_flag_spec='${wl}-E'
8869       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8870       # Instead, shared libraries are loaded at an image base (0x10000000 by
8871       # default) and relocated if they conflict, which is a slow very memory
8872       # consuming and fragmenting process.  To avoid this, we pick a random,
8873       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8874       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8875       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8876       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'
8877       ;;
8878
8879     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8880       tmp_diet=no
8881       if test "$host_os" = linux-dietlibc; then
8882         case $cc_basename in
8883           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8884         esac
8885       fi
8886       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8887          && test "$tmp_diet" = no
8888       then
8889         tmp_addflag=
8890         tmp_sharedflag='-shared'
8891         case $cc_basename,$host_cpu in
8892         pgcc*)                          # Portland Group C compiler
8893           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'
8894           tmp_addflag=' $pic_flag'
8895           ;;
8896         pgf77* | pgf90* | pgf95* | pgfortran*)
8897                                         # Portland Group f77 and f90 compilers
8898           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'
8899           tmp_addflag=' $pic_flag -Mnomain' ;;
8900         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8901           tmp_addflag=' -i_dynamic' ;;
8902         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8903           tmp_addflag=' -i_dynamic -nofor_main' ;;
8904         ifc* | ifort*)                  # Intel Fortran compiler
8905           tmp_addflag=' -nofor_main' ;;
8906         lf95*)                          # Lahey Fortran 8.1
8907           whole_archive_flag_spec=
8908           tmp_sharedflag='--shared' ;;
8909         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8910           tmp_sharedflag='-qmkshrobj'
8911           tmp_addflag= ;;
8912         nvcc*)  # Cuda Compiler Driver 2.2
8913           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'
8914           compiler_needs_object=yes
8915           ;;
8916         esac
8917         case `$CC -V 2>&1 | sed 5q` in
8918         *Sun\ C*)                       # Sun C 5.9
8919           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'
8920           compiler_needs_object=yes
8921           tmp_sharedflag='-G' ;;
8922         *Sun\ F*)                       # Sun Fortran 8.3
8923           tmp_sharedflag='-G' ;;
8924         esac
8925         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8926
8927         if test "x$supports_anon_versioning" = xyes; then
8928           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8929             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8930             echo "local: *; };" >> $output_objdir/$libname.ver~
8931             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8932         fi
8933
8934         case $cc_basename in
8935         xlf* | bgf* | bgxlf* | mpixlf*)
8936           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8937           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8938           hardcode_libdir_flag_spec=
8939           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8940           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8941           if test "x$supports_anon_versioning" = xyes; then
8942             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8943               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8944               echo "local: *; };" >> $output_objdir/$libname.ver~
8945               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8946           fi
8947           ;;
8948         esac
8949       else
8950         ld_shlibs=no
8951       fi
8952       ;;
8953
8954     netbsd*)
8955       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8956         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8957         wlarc=
8958       else
8959         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8961       fi
8962       ;;
8963
8964     solaris*)
8965       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8966         ld_shlibs=no
8967         cat <<_LT_EOF 1>&2
8968
8969 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8970 *** create shared libraries on Solaris systems.  Therefore, libtool
8971 *** is disabling shared libraries support.  We urge you to upgrade GNU
8972 *** binutils to release 2.9.1 or newer.  Another option is to modify
8973 *** your PATH or compiler configuration so that the native linker is
8974 *** used, and then restart.
8975
8976 _LT_EOF
8977       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8978         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8980       else
8981         ld_shlibs=no
8982       fi
8983       ;;
8984
8985     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8986       case `$LD -v 2>&1` in
8987         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8988         ld_shlibs=no
8989         cat <<_LT_EOF 1>&2
8990
8991 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8992 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8993 *** is disabling shared libraries support.  We urge you to upgrade GNU
8994 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8997
8998 _LT_EOF
8999         ;;
9000         *)
9001           # For security reasons, it is highly recommended that you always
9002           # use absolute paths for naming shared libraries, and exclude the
9003           # DT_RUNPATH tag from executables and libraries.  But doing so
9004           # requires that you compile everything twice, which is a pain.
9005           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9006             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9007             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9009           else
9010             ld_shlibs=no
9011           fi
9012         ;;
9013       esac
9014       ;;
9015
9016     sunos4*)
9017       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9018       wlarc=
9019       hardcode_direct=yes
9020       hardcode_shlibpath_var=no
9021       ;;
9022
9023     *)
9024       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9025         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027       else
9028         ld_shlibs=no
9029       fi
9030       ;;
9031     esac
9032
9033     if test "$ld_shlibs" = no; then
9034       runpath_var=
9035       hardcode_libdir_flag_spec=
9036       export_dynamic_flag_spec=
9037       whole_archive_flag_spec=
9038     fi
9039   else
9040     # PORTME fill in a description of your system's linker (not GNU ld)
9041     case $host_os in
9042     aix3*)
9043       allow_undefined_flag=unsupported
9044       always_export_symbols=yes
9045       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'
9046       # Note: this linker hardcodes the directories in LIBPATH if there
9047       # are no directories specified by -L.
9048       hardcode_minus_L=yes
9049       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9050         # Neither direct hardcoding nor static linking is supported with a
9051         # broken collect2.
9052         hardcode_direct=unsupported
9053       fi
9054       ;;
9055
9056     aix[4-9]*)
9057       if test "$host_cpu" = ia64; then
9058         # On IA64, the linker does run time linking by default, so we don't
9059         # have to do anything special.
9060         aix_use_runtimelinking=no
9061         exp_sym_flag='-Bexport'
9062         no_entry_flag=""
9063       else
9064         # If we're using GNU nm, then we don't want the "-C" option.
9065         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9066         # Also, AIX nm treats weak defined symbols like other global
9067         # defined symbols, whereas GNU nm marks them as "W".
9068         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9069           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'
9070         else
9071           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'
9072         fi
9073         aix_use_runtimelinking=no
9074
9075         # Test if we are trying to use run time linking or normal
9076         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9077         # need to do runtime linking.
9078         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9079           for ld_flag in $LDFLAGS; do
9080           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9081             aix_use_runtimelinking=yes
9082             break
9083           fi
9084           done
9085           ;;
9086         esac
9087
9088         exp_sym_flag='-bexport'
9089         no_entry_flag='-bnoentry'
9090       fi
9091
9092       # When large executables or shared objects are built, AIX ld can
9093       # have problems creating the table of contents.  If linking a library
9094       # or program results in "error TOC overflow" add -mminimal-toc to
9095       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9096       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097
9098       archive_cmds=''
9099       hardcode_direct=yes
9100       hardcode_direct_absolute=yes
9101       hardcode_libdir_separator=':'
9102       link_all_deplibs=yes
9103       file_list_spec='${wl}-f,'
9104
9105       if test "$GCC" = yes; then
9106         case $host_os in aix4.[012]|aix4.[012].*)
9107         # We only want to do this on AIX 4.2 and lower, the check
9108         # below for broken collect2 doesn't work under 4.3+
9109           collect2name=`${CC} -print-prog-name=collect2`
9110           if test -f "$collect2name" &&
9111            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9112           then
9113           # We have reworked collect2
9114           :
9115           else
9116           # We have old collect2
9117           hardcode_direct=unsupported
9118           # It fails to find uninstalled libraries when the uninstalled
9119           # path is not listed in the libpath.  Setting hardcode_minus_L
9120           # to unsupported forces relinking
9121           hardcode_minus_L=yes
9122           hardcode_libdir_flag_spec='-L$libdir'
9123           hardcode_libdir_separator=
9124           fi
9125           ;;
9126         esac
9127         shared_flag='-shared'
9128         if test "$aix_use_runtimelinking" = yes; then
9129           shared_flag="$shared_flag "'${wl}-G'
9130         fi
9131       else
9132         # not using gcc
9133         if test "$host_cpu" = ia64; then
9134         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9135         # chokes on -Wl,-G. The following line is correct:
9136           shared_flag='-G'
9137         else
9138           if test "$aix_use_runtimelinking" = yes; then
9139             shared_flag='${wl}-G'
9140           else
9141             shared_flag='${wl}-bM:SRE'
9142           fi
9143         fi
9144       fi
9145
9146       export_dynamic_flag_spec='${wl}-bexpall'
9147       # It seems that -bexpall does not export symbols beginning with
9148       # underscore (_), so it is better to generate a list of symbols to export.
9149       always_export_symbols=yes
9150       if test "$aix_use_runtimelinking" = yes; then
9151         # Warning - without using the other runtime loading flags (-brtl),
9152         # -berok will link without error, but may produce a broken library.
9153         allow_undefined_flag='-berok'
9154         # Determine the default libpath from the value encoded in an
9155         # empty executable.
9156         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h.  */
9158
9159 int
9160 main ()
9161 {
9162
9163   ;
9164   return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"; then :
9168
9169 lt_aix_libpath_sed='
9170     /Import File Strings/,/^$/ {
9171         /^0/ {
9172             s/^0  *\(.*\)$/\1/
9173             p
9174         }
9175     }'
9176 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9177 # Check for a 64-bit object if we didn't find anything.
9178 if test -z "$aix_libpath"; then
9179   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 fi
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext \
9183     conftest$ac_exeext conftest.$ac_ext
9184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9185
9186         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9187         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"
9188       else
9189         if test "$host_cpu" = ia64; then
9190           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9191           allow_undefined_flag="-z nodefs"
9192           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"
9193         else
9194          # Determine the default libpath from the value encoded in an
9195          # empty executable.
9196          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h.  */
9198
9199 int
9200 main ()
9201 {
9202
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9208
9209 lt_aix_libpath_sed='
9210     /Import File Strings/,/^$/ {
9211         /^0/ {
9212             s/^0  *\(.*\)$/\1/
9213             p
9214         }
9215     }'
9216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9217 # Check for a 64-bit object if we didn't find anything.
9218 if test -z "$aix_libpath"; then
9219   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9220 fi
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext \
9223     conftest$ac_exeext conftest.$ac_ext
9224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9225
9226          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9227           # Warning - without using the other run time loading flags,
9228           # -berok will link without error, but may produce a broken library.
9229           no_undefined_flag=' ${wl}-bernotok'
9230           allow_undefined_flag=' ${wl}-berok'
9231           if test "$with_gnu_ld" = yes; then
9232             # We only use this code for GNU lds that support --whole-archive.
9233             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9234           else
9235             # Exported symbols can be pulled into shared objects from archives
9236             whole_archive_flag_spec='$convenience'
9237           fi
9238           archive_cmds_need_lc=yes
9239           # This is similar to how AIX traditionally builds its shared libraries.
9240           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'
9241         fi
9242       fi
9243       ;;
9244
9245     amigaos*)
9246       case $host_cpu in
9247       powerpc)
9248             # see comment about AmigaOS4 .so support
9249             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250             archive_expsym_cmds=''
9251         ;;
9252       m68k)
9253             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)'
9254             hardcode_libdir_flag_spec='-L$libdir'
9255             hardcode_minus_L=yes
9256         ;;
9257       esac
9258       ;;
9259
9260     bsdi[45]*)
9261       export_dynamic_flag_spec=-rdynamic
9262       ;;
9263
9264     cygwin* | mingw* | pw32* | cegcc*)
9265       # When not using gcc, we currently assume that we are using
9266       # Microsoft Visual C++.
9267       # hardcode_libdir_flag_spec is actually meaningless, as there is
9268       # no search path for DLLs.
9269       hardcode_libdir_flag_spec=' '
9270       allow_undefined_flag=unsupported
9271       # Tell ltmain to make .lib files, not .a files.
9272       libext=lib
9273       # Tell ltmain to make .dll files, not .so files.
9274       shrext_cmds=".dll"
9275       # FIXME: Setting linknames here is a bad hack.
9276       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9277       # The linker will automatically build a .lib file if we build a DLL.
9278       old_archive_from_new_cmds='true'
9279       # FIXME: Should let the user specify the lib program.
9280       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9281       fix_srcfile_path='`cygpath -w "$srcfile"`'
9282       enable_shared_with_static_runtimes=yes
9283       ;;
9284
9285     darwin* | rhapsody*)
9286
9287
9288   archive_cmds_need_lc=no
9289   hardcode_direct=no
9290   hardcode_automatic=yes
9291   hardcode_shlibpath_var=unsupported
9292   if test "$lt_cv_ld_force_load" = "yes"; then
9293     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\"`'
9294   else
9295     whole_archive_flag_spec=''
9296   fi
9297   link_all_deplibs=yes
9298   allow_undefined_flag="$_lt_dar_allow_undefined"
9299   case $cc_basename in
9300      ifort*) _lt_dar_can_shared=yes ;;
9301      *) _lt_dar_can_shared=$GCC ;;
9302   esac
9303   if test "$_lt_dar_can_shared" = "yes"; then
9304     output_verbose_link_cmd=func_echo_all
9305     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9306     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9307     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}"
9308     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}"
9309
9310   else
9311   ld_shlibs=no
9312   fi
9313
9314       ;;
9315
9316     dgux*)
9317       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318       hardcode_libdir_flag_spec='-L$libdir'
9319       hardcode_shlibpath_var=no
9320       ;;
9321
9322     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9323     # support.  Future versions do this automatically, but an explicit c++rt0.o
9324     # does not break anything, and helps significantly (at the cost of a little
9325     # extra space).
9326     freebsd2.2*)
9327       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9328       hardcode_libdir_flag_spec='-R$libdir'
9329       hardcode_direct=yes
9330       hardcode_shlibpath_var=no
9331       ;;
9332
9333     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9334     freebsd2*)
9335       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9336       hardcode_direct=yes
9337       hardcode_minus_L=yes
9338       hardcode_shlibpath_var=no
9339       ;;
9340
9341     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9342     freebsd* | dragonfly*)
9343       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9344       hardcode_libdir_flag_spec='-R$libdir'
9345       hardcode_direct=yes
9346       hardcode_shlibpath_var=no
9347       ;;
9348
9349     hpux9*)
9350       if test "$GCC" = yes; then
9351         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'
9352       else
9353         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'
9354       fi
9355       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9356       hardcode_libdir_separator=:
9357       hardcode_direct=yes
9358
9359       # hardcode_minus_L: Not really in the search PATH,
9360       # but as the default location of the library.
9361       hardcode_minus_L=yes
9362       export_dynamic_flag_spec='${wl}-E'
9363       ;;
9364
9365     hpux10*)
9366       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9367         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9368       else
9369         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9370       fi
9371       if test "$with_gnu_ld" = no; then
9372         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9373         hardcode_libdir_flag_spec_ld='+b $libdir'
9374         hardcode_libdir_separator=:
9375         hardcode_direct=yes
9376         hardcode_direct_absolute=yes
9377         export_dynamic_flag_spec='${wl}-E'
9378         # hardcode_minus_L: Not really in the search PATH,
9379         # but as the default location of the library.
9380         hardcode_minus_L=yes
9381       fi
9382       ;;
9383
9384     hpux11*)
9385       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9386         case $host_cpu in
9387         hppa*64*)
9388           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9389           ;;
9390         ia64*)
9391           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9392           ;;
9393         *)
9394           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9395           ;;
9396         esac
9397       else
9398         case $host_cpu in
9399         hppa*64*)
9400           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401           ;;
9402         ia64*)
9403           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9404           ;;
9405         *)
9406
9407           # Older versions of the 11.00 compiler do not understand -b yet
9408           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9409           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9410 $as_echo_n "checking if $CC understands -b... " >&6; }
9411 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9412   $as_echo_n "(cached) " >&6
9413 else
9414   lt_cv_prog_compiler__b=no
9415    save_LDFLAGS="$LDFLAGS"
9416    LDFLAGS="$LDFLAGS -b"
9417    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9418    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9419      # The linker can only warn and ignore the option if not recognized
9420      # So say no if there are warnings
9421      if test -s conftest.err; then
9422        # Append any errors to the config.log.
9423        cat conftest.err 1>&5
9424        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9425        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9426        if diff conftest.exp conftest.er2 >/dev/null; then
9427          lt_cv_prog_compiler__b=yes
9428        fi
9429      else
9430        lt_cv_prog_compiler__b=yes
9431      fi
9432    fi
9433    $RM -r conftest*
9434    LDFLAGS="$save_LDFLAGS"
9435
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9438 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9439
9440 if test x"$lt_cv_prog_compiler__b" = xyes; then
9441     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9442 else
9443     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9444 fi
9445
9446           ;;
9447         esac
9448       fi
9449       if test "$with_gnu_ld" = no; then
9450         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9451         hardcode_libdir_separator=:
9452
9453         case $host_cpu in
9454         hppa*64*|ia64*)
9455           hardcode_direct=no
9456           hardcode_shlibpath_var=no
9457           ;;
9458         *)
9459           hardcode_direct=yes
9460           hardcode_direct_absolute=yes
9461           export_dynamic_flag_spec='${wl}-E'
9462
9463           # hardcode_minus_L: Not really in the search PATH,
9464           # but as the default location of the library.
9465           hardcode_minus_L=yes
9466           ;;
9467         esac
9468       fi
9469       ;;
9470
9471     irix5* | irix6* | nonstopux*)
9472       if test "$GCC" = yes; then
9473         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'
9474         # Try to use the -exported_symbol ld option, if it does not
9475         # work, assume that -exports_file does not work either and
9476         # implicitly export all symbols.
9477         save_LDFLAGS="$LDFLAGS"
9478         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9479         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h.  */
9481 int foo(void) {}
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9484   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'
9485
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488     conftest$ac_exeext conftest.$ac_ext
9489         LDFLAGS="$save_LDFLAGS"
9490       else
9491         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'
9492         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'
9493       fi
9494       archive_cmds_need_lc='no'
9495       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496       hardcode_libdir_separator=:
9497       inherit_rpath=yes
9498       link_all_deplibs=yes
9499       ;;
9500
9501     netbsd*)
9502       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9503         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9504       else
9505         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9506       fi
9507       hardcode_libdir_flag_spec='-R$libdir'
9508       hardcode_direct=yes
9509       hardcode_shlibpath_var=no
9510       ;;
9511
9512     newsos6)
9513       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514       hardcode_direct=yes
9515       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9516       hardcode_libdir_separator=:
9517       hardcode_shlibpath_var=no
9518       ;;
9519
9520     *nto* | *qnx*)
9521       ;;
9522
9523     openbsd*)
9524       if test -f /usr/libexec/ld.so; then
9525         hardcode_direct=yes
9526         hardcode_shlibpath_var=no
9527         hardcode_direct_absolute=yes
9528         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9529           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9530           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9531           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9532           export_dynamic_flag_spec='${wl}-E'
9533         else
9534           case $host_os in
9535            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9536              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9537              hardcode_libdir_flag_spec='-R$libdir'
9538              ;;
9539            *)
9540              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9541              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542              ;;
9543           esac
9544         fi
9545       else
9546         ld_shlibs=no
9547       fi
9548       ;;
9549
9550     os2*)
9551       hardcode_libdir_flag_spec='-L$libdir'
9552       hardcode_minus_L=yes
9553       allow_undefined_flag=unsupported
9554       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'
9555       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9556       ;;
9557
9558     osf3*)
9559       if test "$GCC" = yes; then
9560         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9561         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'
9562       else
9563         allow_undefined_flag=' -expect_unresolved \*'
9564         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'
9565       fi
9566       archive_cmds_need_lc='no'
9567       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9568       hardcode_libdir_separator=:
9569       ;;
9570
9571     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9572       if test "$GCC" = yes; then
9573         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9574         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'
9575         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576       else
9577         allow_undefined_flag=' -expect_unresolved \*'
9578         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'
9579         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~
9580         $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'
9581
9582         # Both c and cxx compiler support -rpath directly
9583         hardcode_libdir_flag_spec='-rpath $libdir'
9584       fi
9585       archive_cmds_need_lc='no'
9586       hardcode_libdir_separator=:
9587       ;;
9588
9589     solaris*)
9590       no_undefined_flag=' -z defs'
9591       if test "$GCC" = yes; then
9592         wlarc='${wl}'
9593         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9594         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9595           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9596       else
9597         case `$CC -V 2>&1` in
9598         *"Compilers 5.0"*)
9599           wlarc=''
9600           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9602           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9603           ;;
9604         *)
9605           wlarc='${wl}'
9606           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9607           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9608           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9609           ;;
9610         esac
9611       fi
9612       hardcode_libdir_flag_spec='-R$libdir'
9613       hardcode_shlibpath_var=no
9614       case $host_os in
9615       solaris2.[0-5] | solaris2.[0-5].*) ;;
9616       *)
9617         # The compiler driver will combine and reorder linker options,
9618         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9619         # but is careful enough not to reorder.
9620         # Supported since Solaris 2.6 (maybe 2.5.1?)
9621         if test "$GCC" = yes; then
9622           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9623         else
9624           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9625         fi
9626         ;;
9627       esac
9628       link_all_deplibs=yes
9629       ;;
9630
9631     sunos4*)
9632       if test "x$host_vendor" = xsequent; then
9633         # Use $CC to link under sequent, because it throws in some extra .o
9634         # files that make .init and .fini sections work.
9635         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636       else
9637         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9638       fi
9639       hardcode_libdir_flag_spec='-L$libdir'
9640       hardcode_direct=yes
9641       hardcode_minus_L=yes
9642       hardcode_shlibpath_var=no
9643       ;;
9644
9645     sysv4)
9646       case $host_vendor in
9647         sni)
9648           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649           hardcode_direct=yes # is this really true???
9650         ;;
9651         siemens)
9652           ## LD is ld it makes a PLAMLIB
9653           ## CC just makes a GrossModule.
9654           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9655           reload_cmds='$CC -r -o $output$reload_objs'
9656           hardcode_direct=no
9657         ;;
9658         motorola)
9659           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9661         ;;
9662       esac
9663       runpath_var='LD_RUN_PATH'
9664       hardcode_shlibpath_var=no
9665       ;;
9666
9667     sysv4.3*)
9668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669       hardcode_shlibpath_var=no
9670       export_dynamic_flag_spec='-Bexport'
9671       ;;
9672
9673     sysv4*MP*)
9674       if test -d /usr/nec; then
9675         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676         hardcode_shlibpath_var=no
9677         runpath_var=LD_RUN_PATH
9678         hardcode_runpath_var=yes
9679         ld_shlibs=yes
9680       fi
9681       ;;
9682
9683     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9684       no_undefined_flag='${wl}-z,text'
9685       archive_cmds_need_lc=no
9686       hardcode_shlibpath_var=no
9687       runpath_var='LD_RUN_PATH'
9688
9689       if test "$GCC" = yes; then
9690         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692       else
9693         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695       fi
9696       ;;
9697
9698     sysv5* | sco3.2v5* | sco5v6*)
9699       # Note: We can NOT use -z defs as we might desire, because we do not
9700       # link with -lc, and that would cause any symbols used from libc to
9701       # always be unresolved, which means just about no library would
9702       # ever link correctly.  If we're not using GNU ld we use -z text
9703       # though, which does catch some bad symbols but isn't as heavy-handed
9704       # as -z defs.
9705       no_undefined_flag='${wl}-z,text'
9706       allow_undefined_flag='${wl}-z,nodefs'
9707       archive_cmds_need_lc=no
9708       hardcode_shlibpath_var=no
9709       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9710       hardcode_libdir_separator=':'
9711       link_all_deplibs=yes
9712       export_dynamic_flag_spec='${wl}-Bexport'
9713       runpath_var='LD_RUN_PATH'
9714
9715       if test "$GCC" = yes; then
9716         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718       else
9719         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721       fi
9722       ;;
9723
9724     uts4*)
9725       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726       hardcode_libdir_flag_spec='-L$libdir'
9727       hardcode_shlibpath_var=no
9728       ;;
9729
9730     *)
9731       ld_shlibs=no
9732       ;;
9733     esac
9734
9735     if test x$host_vendor = xsni; then
9736       case $host in
9737       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9738         export_dynamic_flag_spec='${wl}-Blargedynsym'
9739         ;;
9740       esac
9741     fi
9742   fi
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9745 $as_echo "$ld_shlibs" >&6; }
9746 test "$ld_shlibs" = no && can_build_shared=no
9747
9748 with_gnu_ld=$with_gnu_ld
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764 #
9765 # Do we need to explicitly link libc?
9766 #
9767 case "x$archive_cmds_need_lc" in
9768 x|xyes)
9769   # Assume -lc should be added
9770   archive_cmds_need_lc=yes
9771
9772   if test "$enable_shared" = yes && test "$GCC" = yes; then
9773     case $archive_cmds in
9774     *'~'*)
9775       # FIXME: we may have to deal with multi-command sequences.
9776       ;;
9777     '$CC '*)
9778       # Test whether the compiler implicitly links with -lc since on some
9779       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9780       # to ld, don't add -lc before -lgcc.
9781       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9782 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9783 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   $RM conftest*
9787         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9788
9789         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9790   (eval $ac_compile) 2>&5
9791   ac_status=$?
9792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793   test $ac_status = 0; } 2>conftest.err; then
9794           soname=conftest
9795           lib=conftest
9796           libobjs=conftest.$ac_objext
9797           deplibs=
9798           wl=$lt_prog_compiler_wl
9799           pic_flag=$lt_prog_compiler_pic
9800           compiler_flags=-v
9801           linker_flags=-v
9802           verstring=
9803           output_objdir=.
9804           libname=conftest
9805           lt_save_allow_undefined_flag=$allow_undefined_flag
9806           allow_undefined_flag=
9807           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9808   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9809   ac_status=$?
9810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9811   test $ac_status = 0; }
9812           then
9813             lt_cv_archive_cmds_need_lc=no
9814           else
9815             lt_cv_archive_cmds_need_lc=yes
9816           fi
9817           allow_undefined_flag=$lt_save_allow_undefined_flag
9818         else
9819           cat conftest.err 1>&5
9820         fi
9821         $RM conftest*
9822
9823 fi
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9825 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9826       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9827       ;;
9828     esac
9829   fi
9830   ;;
9831 esac
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9990 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9991
9992 if test "$GCC" = yes; then
9993   case $host_os in
9994     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9995     *) lt_awk_arg="/^libraries:/" ;;
9996   esac
9997   case $host_os in
9998     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9999     *) lt_sed_strip_eq="s,=/,/,g" ;;
10000   esac
10001   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10002   case $lt_search_path_spec in
10003   *\;*)
10004     # if the path contains ";" then we assume it to be the separator
10005     # otherwise default to the standard path separator (i.e. ":") - it is
10006     # assumed that no part of a normal pathname contains ";" but that should
10007     # okay in the real world where ";" in dirpaths is itself problematic.
10008     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10009     ;;
10010   *)
10011     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10012     ;;
10013   esac
10014   # Ok, now we have the path, separated by spaces, we can step through it
10015   # and add multilib dir if necessary.
10016   lt_tmp_lt_search_path_spec=
10017   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10018   for lt_sys_path in $lt_search_path_spec; do
10019     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10020       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10021     else
10022       test -d "$lt_sys_path" && \
10023         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10024     fi
10025   done
10026   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10027 BEGIN {RS=" "; FS="/|\n";} {
10028   lt_foo="";
10029   lt_count=0;
10030   for (lt_i = NF; lt_i > 0; lt_i--) {
10031     if ($lt_i != "" && $lt_i != ".") {
10032       if ($lt_i == "..") {
10033         lt_count++;
10034       } else {
10035         if (lt_count == 0) {
10036           lt_foo="/" $lt_i lt_foo;
10037         } else {
10038           lt_count--;
10039         }
10040       }
10041     }
10042   }
10043   if (lt_foo != "") { lt_freq[lt_foo]++; }
10044   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10045 }'`
10046   # AWK program above erroneously prepends '/' to C:/dos/paths
10047   # for these hosts.
10048   case $host_os in
10049     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10050       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10051   esac
10052   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10053 else
10054   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10055 fi
10056 library_names_spec=
10057 libname_spec='lib$name'
10058 soname_spec=
10059 shrext_cmds=".so"
10060 postinstall_cmds=
10061 postuninstall_cmds=
10062 finish_cmds=
10063 finish_eval=
10064 shlibpath_var=
10065 shlibpath_overrides_runpath=unknown
10066 version_type=none
10067 dynamic_linker="$host_os ld.so"
10068 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10069 need_lib_prefix=unknown
10070 hardcode_into_libs=no
10071
10072 # when you set need_version to no, make sure it does not cause -set_version
10073 # flags to be left without arguments
10074 need_version=unknown
10075
10076 case $host_os in
10077 aix3*)
10078   version_type=linux
10079   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10080   shlibpath_var=LIBPATH
10081
10082   # AIX 3 has no versioning support, so we append a major version to the name.
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   ;;
10085
10086 aix[4-9]*)
10087   version_type=linux
10088   need_lib_prefix=no
10089   need_version=no
10090   hardcode_into_libs=yes
10091   if test "$host_cpu" = ia64; then
10092     # AIX 5 supports IA64
10093     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10094     shlibpath_var=LD_LIBRARY_PATH
10095   else
10096     # With GCC up to 2.95.x, collect2 would create an import file
10097     # for dependence libraries.  The import file would start with
10098     # the line `#! .'.  This would cause the generated library to
10099     # depend on `.', always an invalid library.  This was fixed in
10100     # development snapshots of GCC prior to 3.0.
10101     case $host_os in
10102       aix4 | aix4.[01] | aix4.[01].*)
10103       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10104            echo ' yes '
10105            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10106         :
10107       else
10108         can_build_shared=no
10109       fi
10110       ;;
10111     esac
10112     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10113     # soname into executable. Probably we can add versioning support to
10114     # collect2, so additional links can be useful in future.
10115     if test "$aix_use_runtimelinking" = yes; then
10116       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10117       # instead of lib<name>.a to let people know that these are not
10118       # typical AIX shared libraries.
10119       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120     else
10121       # We preserve .a as extension for shared libraries through AIX4.2
10122       # and later when we are not doing run time linking.
10123       library_names_spec='${libname}${release}.a $libname.a'
10124       soname_spec='${libname}${release}${shared_ext}$major'
10125     fi
10126     shlibpath_var=LIBPATH
10127   fi
10128   ;;
10129
10130 amigaos*)
10131   case $host_cpu in
10132   powerpc)
10133     # Since July 2007 AmigaOS4 officially supports .so libraries.
10134     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136     ;;
10137   m68k)
10138     library_names_spec='$libname.ixlibrary $libname.a'
10139     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10140     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'
10141     ;;
10142   esac
10143   ;;
10144
10145 beos*)
10146   library_names_spec='${libname}${shared_ext}'
10147   dynamic_linker="$host_os ld.so"
10148   shlibpath_var=LIBRARY_PATH
10149   ;;
10150
10151 bsdi[45]*)
10152   version_type=linux
10153   need_version=no
10154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155   soname_spec='${libname}${release}${shared_ext}$major'
10156   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10157   shlibpath_var=LD_LIBRARY_PATH
10158   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10159   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10160   # the default ld.so.conf also contains /usr/contrib/lib and
10161   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10162   # libtool to hard-code these into programs
10163   ;;
10164
10165 cygwin* | mingw* | pw32* | cegcc*)
10166   version_type=windows
10167   shrext_cmds=".dll"
10168   need_version=no
10169   need_lib_prefix=no
10170
10171   case $GCC,$host_os in
10172   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10173     library_names_spec='$libname.dll.a'
10174     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10175     postinstall_cmds='base_file=`basename \${file}`~
10176       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10177       dldir=$destdir/`dirname \$dlpath`~
10178       test -d \$dldir || mkdir -p \$dldir~
10179       $install_prog $dir/$dlname \$dldir/$dlname~
10180       chmod a+x \$dldir/$dlname~
10181       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10182         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10183       fi'
10184     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10185       dlpath=$dir/\$dldll~
10186        $RM \$dlpath'
10187     shlibpath_overrides_runpath=yes
10188
10189     case $host_os in
10190     cygwin*)
10191       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10192       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193
10194       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10195       ;;
10196     mingw* | cegcc*)
10197       # MinGW DLLs use traditional 'lib' prefix
10198       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199       ;;
10200     pw32*)
10201       # pw32 DLLs use 'pw' prefix rather than 'lib'
10202       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203       ;;
10204     esac
10205     ;;
10206
10207   *)
10208     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10209     ;;
10210   esac
10211   dynamic_linker='Win32 ld.exe'
10212   # FIXME: first we should search . and the directory the executable is in
10213   shlibpath_var=PATH
10214   ;;
10215
10216 darwin* | rhapsody*)
10217   dynamic_linker="$host_os dyld"
10218   version_type=darwin
10219   need_lib_prefix=no
10220   need_version=no
10221   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10222   soname_spec='${libname}${release}${major}$shared_ext'
10223   shlibpath_overrides_runpath=yes
10224   shlibpath_var=DYLD_LIBRARY_PATH
10225   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10226
10227   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10228   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10229   ;;
10230
10231 dgux*)
10232   version_type=linux
10233   need_lib_prefix=no
10234   need_version=no
10235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10236   soname_spec='${libname}${release}${shared_ext}$major'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   ;;
10239
10240 freebsd* | dragonfly*)
10241   # DragonFly does not have aout.  When/if they implement a new
10242   # versioning mechanism, adjust this.
10243   if test -x /usr/bin/objformat; then
10244     objformat=`/usr/bin/objformat`
10245   else
10246     case $host_os in
10247     freebsd[123]*) objformat=aout ;;
10248     *) objformat=elf ;;
10249     esac
10250   fi
10251   version_type=freebsd-$objformat
10252   case $version_type in
10253     freebsd-elf*)
10254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255       need_version=no
10256       need_lib_prefix=no
10257       ;;
10258     freebsd-*)
10259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10260       need_version=yes
10261       ;;
10262   esac
10263   shlibpath_var=LD_LIBRARY_PATH
10264   case $host_os in
10265   freebsd2*)
10266     shlibpath_overrides_runpath=yes
10267     ;;
10268   freebsd3.[01]* | freebsdelf3.[01]*)
10269     shlibpath_overrides_runpath=yes
10270     hardcode_into_libs=yes
10271     ;;
10272   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10273   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10274     shlibpath_overrides_runpath=no
10275     hardcode_into_libs=yes
10276     ;;
10277   *) # from 4.6 on, and DragonFly
10278     shlibpath_overrides_runpath=yes
10279     hardcode_into_libs=yes
10280     ;;
10281   esac
10282   ;;
10283
10284 gnu*)
10285   version_type=linux
10286   need_lib_prefix=no
10287   need_version=no
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   hardcode_into_libs=yes
10292   ;;
10293
10294 haiku*)
10295   version_type=linux
10296   need_lib_prefix=no
10297   need_version=no
10298   dynamic_linker="$host_os runtime_loader"
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   shlibpath_var=LIBRARY_PATH
10302   shlibpath_overrides_runpath=yes
10303   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10304   hardcode_into_libs=yes
10305   ;;
10306
10307 hpux9* | hpux10* | hpux11*)
10308   # Give a soname corresponding to the major version so that dld.sl refuses to
10309   # link against other versions.
10310   version_type=sunos
10311   need_lib_prefix=no
10312   need_version=no
10313   case $host_cpu in
10314   ia64*)
10315     shrext_cmds='.so'
10316     hardcode_into_libs=yes
10317     dynamic_linker="$host_os dld.so"
10318     shlibpath_var=LD_LIBRARY_PATH
10319     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321     soname_spec='${libname}${release}${shared_ext}$major'
10322     if test "X$HPUX_IA64_MODE" = X32; then
10323       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10324     else
10325       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10326     fi
10327     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10328     ;;
10329   hppa*64*)
10330     shrext_cmds='.sl'
10331     hardcode_into_libs=yes
10332     dynamic_linker="$host_os dld.sl"
10333     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336     soname_spec='${libname}${release}${shared_ext}$major'
10337     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10338     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10339     ;;
10340   *)
10341     shrext_cmds='.sl'
10342     dynamic_linker="$host_os dld.sl"
10343     shlibpath_var=SHLIB_PATH
10344     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346     soname_spec='${libname}${release}${shared_ext}$major'
10347     ;;
10348   esac
10349   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10350   postinstall_cmds='chmod 555 $lib'
10351   # or fails outright, so override atomically:
10352   install_override_mode=555
10353   ;;
10354
10355 interix[3-9]*)
10356   version_type=linux
10357   need_lib_prefix=no
10358   need_version=no
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10362   shlibpath_var=LD_LIBRARY_PATH
10363   shlibpath_overrides_runpath=no
10364   hardcode_into_libs=yes
10365   ;;
10366
10367 irix5* | irix6* | nonstopux*)
10368   case $host_os in
10369     nonstopux*) version_type=nonstopux ;;
10370     *)
10371         if test "$lt_cv_prog_gnu_ld" = yes; then
10372                 version_type=linux
10373         else
10374                 version_type=irix
10375         fi ;;
10376   esac
10377   need_lib_prefix=no
10378   need_version=no
10379   soname_spec='${libname}${release}${shared_ext}$major'
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10381   case $host_os in
10382   irix5* | nonstopux*)
10383     libsuff= shlibsuff=
10384     ;;
10385   *)
10386     case $LD in # libtool.m4 will add one of these switches to LD
10387     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10388       libsuff= shlibsuff= libmagic=32-bit;;
10389     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10390       libsuff=32 shlibsuff=N32 libmagic=N32;;
10391     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10392       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10393     *) libsuff= shlibsuff= libmagic=never-match;;
10394     esac
10395     ;;
10396   esac
10397   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10398   shlibpath_overrides_runpath=no
10399   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10400   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10401   hardcode_into_libs=yes
10402   ;;
10403
10404 # No shared lib support for Linux oldld, aout, or coff.
10405 linux*oldld* | linux*aout* | linux*coff*)
10406   dynamic_linker=no
10407   ;;
10408
10409 # This must be Linux ELF.
10410 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10411   version_type=linux
10412   need_lib_prefix=no
10413   need_version=no
10414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415   soname_spec='${libname}${release}${shared_ext}$major'
10416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10417   shlibpath_var=LD_LIBRARY_PATH
10418   shlibpath_overrides_runpath=no
10419
10420   # Some binutils ld are patched to set DT_RUNPATH
10421   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10422   $as_echo_n "(cached) " >&6
10423 else
10424   lt_cv_shlibpath_overrides_runpath=no
10425     save_LDFLAGS=$LDFLAGS
10426     save_libdir=$libdir
10427     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10428          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h.  */
10431
10432 int
10433 main ()
10434 {
10435
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10442   lt_cv_shlibpath_overrides_runpath=yes
10443 fi
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext \
10446     conftest$ac_exeext conftest.$ac_ext
10447     LDFLAGS=$save_LDFLAGS
10448     libdir=$save_libdir
10449
10450 fi
10451
10452   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10453
10454   # This implies no fast_install, which is unacceptable.
10455   # Some rework will be needed to allow for fast_install
10456   # before this can be enabled.
10457   hardcode_into_libs=yes
10458
10459   # Append ld.so.conf contents to the search path
10460   if test -f /etc/ld.so.conf; then
10461     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' ' '`
10462     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10463   fi
10464
10465   # We used to test for /lib/ld.so.1 and disable shared libraries on
10466   # powerpc, because MkLinux only supported shared libraries with the
10467   # GNU dynamic linker.  Since this was broken with cross compilers,
10468   # most powerpc-linux boxes support dynamic linking these days and
10469   # people can always --disable-shared, the test was removed, and we
10470   # assume the GNU/Linux dynamic linker is in use.
10471   dynamic_linker='GNU/Linux ld.so'
10472   ;;
10473
10474 netbsd*)
10475   version_type=sunos
10476   need_lib_prefix=no
10477   need_version=no
10478   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10480     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10481     dynamic_linker='NetBSD (a.out) ld.so'
10482   else
10483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10484     soname_spec='${libname}${release}${shared_ext}$major'
10485     dynamic_linker='NetBSD ld.elf_so'
10486   fi
10487   shlibpath_var=LD_LIBRARY_PATH
10488   shlibpath_overrides_runpath=yes
10489   hardcode_into_libs=yes
10490   ;;
10491
10492 newsos6)
10493   version_type=linux
10494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495   shlibpath_var=LD_LIBRARY_PATH
10496   shlibpath_overrides_runpath=yes
10497   ;;
10498
10499 *nto* | *qnx*)
10500   version_type=qnx
10501   need_lib_prefix=no
10502   need_version=no
10503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504   soname_spec='${libname}${release}${shared_ext}$major'
10505   shlibpath_var=LD_LIBRARY_PATH
10506   shlibpath_overrides_runpath=no
10507   hardcode_into_libs=yes
10508   dynamic_linker='ldqnx.so'
10509   ;;
10510
10511 openbsd*)
10512   version_type=sunos
10513   sys_lib_dlsearch_path_spec="/usr/lib"
10514   need_lib_prefix=no
10515   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10516   case $host_os in
10517     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10518     *)                          need_version=no  ;;
10519   esac
10520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10521   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10522   shlibpath_var=LD_LIBRARY_PATH
10523   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10524     case $host_os in
10525       openbsd2.[89] | openbsd2.[89].*)
10526         shlibpath_overrides_runpath=no
10527         ;;
10528       *)
10529         shlibpath_overrides_runpath=yes
10530         ;;
10531       esac
10532   else
10533     shlibpath_overrides_runpath=yes
10534   fi
10535   ;;
10536
10537 os2*)
10538   libname_spec='$name'
10539   shrext_cmds=".dll"
10540   need_lib_prefix=no
10541   library_names_spec='$libname${shared_ext} $libname.a'
10542   dynamic_linker='OS/2 ld.exe'
10543   shlibpath_var=LIBPATH
10544   ;;
10545
10546 osf3* | osf4* | osf5*)
10547   version_type=osf
10548   need_lib_prefix=no
10549   need_version=no
10550   soname_spec='${libname}${release}${shared_ext}$major'
10551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552   shlibpath_var=LD_LIBRARY_PATH
10553   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10554   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10555   ;;
10556
10557 rdos*)
10558   dynamic_linker=no
10559   ;;
10560
10561 solaris*)
10562   version_type=linux
10563   need_lib_prefix=no
10564   need_version=no
10565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566   soname_spec='${libname}${release}${shared_ext}$major'
10567   shlibpath_var=LD_LIBRARY_PATH
10568   shlibpath_overrides_runpath=yes
10569   hardcode_into_libs=yes
10570   # ldd complains unless libraries are executable
10571   postinstall_cmds='chmod +x $lib'
10572   ;;
10573
10574 sunos4*)
10575   version_type=sunos
10576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10577   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10578   shlibpath_var=LD_LIBRARY_PATH
10579   shlibpath_overrides_runpath=yes
10580   if test "$with_gnu_ld" = yes; then
10581     need_lib_prefix=no
10582   fi
10583   need_version=yes
10584   ;;
10585
10586 sysv4 | sysv4.3*)
10587   version_type=linux
10588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589   soname_spec='${libname}${release}${shared_ext}$major'
10590   shlibpath_var=LD_LIBRARY_PATH
10591   case $host_vendor in
10592     sni)
10593       shlibpath_overrides_runpath=no
10594       need_lib_prefix=no
10595       runpath_var=LD_RUN_PATH
10596       ;;
10597     siemens)
10598       need_lib_prefix=no
10599       ;;
10600     motorola)
10601       need_lib_prefix=no
10602       need_version=no
10603       shlibpath_overrides_runpath=no
10604       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10605       ;;
10606   esac
10607   ;;
10608
10609 sysv4*MP*)
10610   if test -d /usr/nec ;then
10611     version_type=linux
10612     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10613     soname_spec='$libname${shared_ext}.$major'
10614     shlibpath_var=LD_LIBRARY_PATH
10615   fi
10616   ;;
10617
10618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10619   version_type=freebsd-elf
10620   need_lib_prefix=no
10621   need_version=no
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   shlibpath_var=LD_LIBRARY_PATH
10625   shlibpath_overrides_runpath=yes
10626   hardcode_into_libs=yes
10627   if test "$with_gnu_ld" = yes; then
10628     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10629   else
10630     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10631     case $host_os in
10632       sco3.2v5*)
10633         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10634         ;;
10635     esac
10636   fi
10637   sys_lib_dlsearch_path_spec='/usr/lib'
10638   ;;
10639
10640 tpf*)
10641   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10642   version_type=linux
10643   need_lib_prefix=no
10644   need_version=no
10645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646   shlibpath_var=LD_LIBRARY_PATH
10647   shlibpath_overrides_runpath=no
10648   hardcode_into_libs=yes
10649   ;;
10650
10651 uts4*)
10652   version_type=linux
10653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654   soname_spec='${libname}${release}${shared_ext}$major'
10655   shlibpath_var=LD_LIBRARY_PATH
10656   ;;
10657
10658 *)
10659   dynamic_linker=no
10660   ;;
10661 esac
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10663 $as_echo "$dynamic_linker" >&6; }
10664 test "$dynamic_linker" = no && can_build_shared=no
10665
10666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10667 if test "$GCC" = yes; then
10668   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10669 fi
10670
10671 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10672   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10673 fi
10674 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10675   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10676 fi
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10770 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10771 hardcode_action=
10772 if test -n "$hardcode_libdir_flag_spec" ||
10773    test -n "$runpath_var" ||
10774    test "X$hardcode_automatic" = "Xyes" ; then
10775
10776   # We can hardcode non-existent directories.
10777   if test "$hardcode_direct" != no &&
10778      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10779      # have to relink, otherwise we might link with an installed library
10780      # when we should be linking with a yet-to-be-installed one
10781      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10782      test "$hardcode_minus_L" != no; then
10783     # Linking always hardcodes the temporary library directory.
10784     hardcode_action=relink
10785   else
10786     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10787     hardcode_action=immediate
10788   fi
10789 else
10790   # We cannot hardcode anything, or else we can only hardcode existing
10791   # directories.
10792   hardcode_action=unsupported
10793 fi
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10795 $as_echo "$hardcode_action" >&6; }
10796
10797 if test "$hardcode_action" = relink ||
10798    test "$inherit_rpath" = yes; then
10799   # Fast installation is not supported
10800   enable_fast_install=no
10801 elif test "$shlibpath_overrides_runpath" = yes ||
10802      test "$enable_shared" = no; then
10803   # Fast installation is not necessary
10804   enable_fast_install=needless
10805 fi
10806
10807
10808
10809
10810
10811
10812   if test "x$enable_dlopen" != xyes; then
10813   enable_dlopen=unknown
10814   enable_dlopen_self=unknown
10815   enable_dlopen_self_static=unknown
10816 else
10817   lt_cv_dlopen=no
10818   lt_cv_dlopen_libs=
10819
10820   case $host_os in
10821   beos*)
10822     lt_cv_dlopen="load_add_on"
10823     lt_cv_dlopen_libs=
10824     lt_cv_dlopen_self=yes
10825     ;;
10826
10827   mingw* | pw32* | cegcc*)
10828     lt_cv_dlopen="LoadLibrary"
10829     lt_cv_dlopen_libs=
10830     ;;
10831
10832   cygwin*)
10833     lt_cv_dlopen="dlopen"
10834     lt_cv_dlopen_libs=
10835     ;;
10836
10837   darwin*)
10838   # if libdl is installed we need to link against it
10839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10840 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10841 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844   ac_check_lib_save_LIBS=$LIBS
10845 LIBS="-ldl  $LIBS"
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h.  */
10848
10849 /* Override any GCC internal prototype to avoid an error.
10850    Use char because int might match the return type of a GCC
10851    builtin and then its argument prototype would still apply.  */
10852 #ifdef __cplusplus
10853 extern "C"
10854 #endif
10855 char dlopen ();
10856 int
10857 main ()
10858 {
10859 return dlopen ();
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"; then :
10865   ac_cv_lib_dl_dlopen=yes
10866 else
10867   ac_cv_lib_dl_dlopen=no
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext \
10870     conftest$ac_exeext conftest.$ac_ext
10871 LIBS=$ac_check_lib_save_LIBS
10872 fi
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10874 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10875 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10876   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10877 else
10878
10879     lt_cv_dlopen="dyld"
10880     lt_cv_dlopen_libs=
10881     lt_cv_dlopen_self=yes
10882
10883 fi
10884
10885     ;;
10886
10887   *)
10888     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10889 if test "x$ac_cv_func_shl_load" = x""yes; then :
10890   lt_cv_dlopen="shl_load"
10891 else
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10893 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10895   $as_echo_n "(cached) " >&6
10896 else
10897   ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-ldld  $LIBS"
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h.  */
10901
10902 /* Override any GCC internal prototype to avoid an error.
10903    Use char because int might match the return type of a GCC
10904    builtin and then its argument prototype would still apply.  */
10905 #ifdef __cplusplus
10906 extern "C"
10907 #endif
10908 char shl_load ();
10909 int
10910 main ()
10911 {
10912 return shl_load ();
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_c_try_link "$LINENO"; then :
10918   ac_cv_lib_dld_shl_load=yes
10919 else
10920   ac_cv_lib_dld_shl_load=no
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext \
10923     conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10927 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10928 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10929   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10930 else
10931   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10932 if test "x$ac_cv_func_dlopen" = x""yes; then :
10933   lt_cv_dlopen="dlopen"
10934 else
10935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10938   $as_echo_n "(cached) " >&6
10939 else
10940   ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-ldl  $LIBS"
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h.  */
10944
10945 /* Override any GCC internal prototype to avoid an error.
10946    Use char because int might match the return type of a GCC
10947    builtin and then its argument prototype would still apply.  */
10948 #ifdef __cplusplus
10949 extern "C"
10950 #endif
10951 char dlopen ();
10952 int
10953 main ()
10954 {
10955 return dlopen ();
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 if ac_fn_c_try_link "$LINENO"; then :
10961   ac_cv_lib_dl_dlopen=yes
10962 else
10963   ac_cv_lib_dl_dlopen=no
10964 fi
10965 rm -f core conftest.err conftest.$ac_objext \
10966     conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10971 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10973 else
10974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10975 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10976 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   ac_check_lib_save_LIBS=$LIBS
10980 LIBS="-lsvld  $LIBS"
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h.  */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985    Use char because int might match the return type of a GCC
10986    builtin and then its argument prototype would still apply.  */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char dlopen ();
10991 int
10992 main ()
10993 {
10994 return dlopen ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000   ac_cv_lib_svld_dlopen=yes
11001 else
11002   ac_cv_lib_svld_dlopen=no
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext \
11005     conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11007 fi
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11009 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11010 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11011   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11012 else
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11016   $as_echo_n "(cached) " >&6
11017 else
11018   ac_check_lib_save_LIBS=$LIBS
11019 LIBS="-ldld  $LIBS"
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h.  */
11022
11023 /* Override any GCC internal prototype to avoid an error.
11024    Use char because int might match the return type of a GCC
11025    builtin and then its argument prototype would still apply.  */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char dld_link ();
11030 int
11031 main ()
11032 {
11033 return dld_link ();
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039   ac_cv_lib_dld_dld_link=yes
11040 else
11041   ac_cv_lib_dld_dld_link=no
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext \
11044     conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11046 fi
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11049 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11050   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11051 fi
11052
11053
11054 fi
11055
11056
11057 fi
11058
11059
11060 fi
11061
11062
11063 fi
11064
11065
11066 fi
11067
11068     ;;
11069   esac
11070
11071   if test "x$lt_cv_dlopen" != xno; then
11072     enable_dlopen=yes
11073   else
11074     enable_dlopen=no
11075   fi
11076
11077   case $lt_cv_dlopen in
11078   dlopen)
11079     save_CPPFLAGS="$CPPFLAGS"
11080     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11081
11082     save_LDFLAGS="$LDFLAGS"
11083     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11084
11085     save_LIBS="$LIBS"
11086     LIBS="$lt_cv_dlopen_libs $LIBS"
11087
11088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11089 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11090 if test "${lt_cv_dlopen_self+set}" = set; then :
11091   $as_echo_n "(cached) " >&6
11092 else
11093           if test "$cross_compiling" = yes; then :
11094   lt_cv_dlopen_self=cross
11095 else
11096   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11097   lt_status=$lt_dlunknown
11098   cat > conftest.$ac_ext <<_LT_EOF
11099 #line 11099 "configure"
11100 #include "confdefs.h"
11101
11102 #if HAVE_DLFCN_H
11103 #include <dlfcn.h>
11104 #endif
11105
11106 #include <stdio.h>
11107
11108 #ifdef RTLD_GLOBAL
11109 #  define LT_DLGLOBAL           RTLD_GLOBAL
11110 #else
11111 #  ifdef DL_GLOBAL
11112 #    define LT_DLGLOBAL         DL_GLOBAL
11113 #  else
11114 #    define LT_DLGLOBAL         0
11115 #  endif
11116 #endif
11117
11118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11119    find out it does not work in some platform. */
11120 #ifndef LT_DLLAZY_OR_NOW
11121 #  ifdef RTLD_LAZY
11122 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11123 #  else
11124 #    ifdef DL_LAZY
11125 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11126 #    else
11127 #      ifdef RTLD_NOW
11128 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11129 #      else
11130 #        ifdef DL_NOW
11131 #          define LT_DLLAZY_OR_NOW      DL_NOW
11132 #        else
11133 #          define LT_DLLAZY_OR_NOW      0
11134 #        endif
11135 #      endif
11136 #    endif
11137 #  endif
11138 #endif
11139
11140 /* When -fvisbility=hidden is used, assume the code has been annotated
11141    correspondingly for the symbols needed.  */
11142 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11143 void fnord () __attribute__((visibility("default")));
11144 #endif
11145
11146 void fnord () { int i=42; }
11147 int main ()
11148 {
11149   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11150   int status = $lt_dlunknown;
11151
11152   if (self)
11153     {
11154       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11155       else
11156         {
11157           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11158           else puts (dlerror ());
11159         }
11160       /* dlclose (self); */
11161     }
11162   else
11163     puts (dlerror ());
11164
11165   return status;
11166 }
11167 _LT_EOF
11168   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11169   (eval $ac_link) 2>&5
11170   ac_status=$?
11171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11172   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11173     (./conftest; exit; ) >&5 2>/dev/null
11174     lt_status=$?
11175     case x$lt_status in
11176       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11177       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11178       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11179     esac
11180   else :
11181     # compilation failed
11182     lt_cv_dlopen_self=no
11183   fi
11184 fi
11185 rm -fr conftest*
11186
11187
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11190 $as_echo "$lt_cv_dlopen_self" >&6; }
11191
11192     if test "x$lt_cv_dlopen_self" = xyes; then
11193       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11195 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11196 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199           if test "$cross_compiling" = yes; then :
11200   lt_cv_dlopen_self_static=cross
11201 else
11202   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11203   lt_status=$lt_dlunknown
11204   cat > conftest.$ac_ext <<_LT_EOF
11205 #line 11205 "configure"
11206 #include "confdefs.h"
11207
11208 #if HAVE_DLFCN_H
11209 #include <dlfcn.h>
11210 #endif
11211
11212 #include <stdio.h>
11213
11214 #ifdef RTLD_GLOBAL
11215 #  define LT_DLGLOBAL           RTLD_GLOBAL
11216 #else
11217 #  ifdef DL_GLOBAL
11218 #    define LT_DLGLOBAL         DL_GLOBAL
11219 #  else
11220 #    define LT_DLGLOBAL         0
11221 #  endif
11222 #endif
11223
11224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11225    find out it does not work in some platform. */
11226 #ifndef LT_DLLAZY_OR_NOW
11227 #  ifdef RTLD_LAZY
11228 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11229 #  else
11230 #    ifdef DL_LAZY
11231 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11232 #    else
11233 #      ifdef RTLD_NOW
11234 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11235 #      else
11236 #        ifdef DL_NOW
11237 #          define LT_DLLAZY_OR_NOW      DL_NOW
11238 #        else
11239 #          define LT_DLLAZY_OR_NOW      0
11240 #        endif
11241 #      endif
11242 #    endif
11243 #  endif
11244 #endif
11245
11246 /* When -fvisbility=hidden is used, assume the code has been annotated
11247    correspondingly for the symbols needed.  */
11248 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11249 void fnord () __attribute__((visibility("default")));
11250 #endif
11251
11252 void fnord () { int i=42; }
11253 int main ()
11254 {
11255   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11256   int status = $lt_dlunknown;
11257
11258   if (self)
11259     {
11260       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11261       else
11262         {
11263           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11264           else puts (dlerror ());
11265         }
11266       /* dlclose (self); */
11267     }
11268   else
11269     puts (dlerror ());
11270
11271   return status;
11272 }
11273 _LT_EOF
11274   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11275   (eval $ac_link) 2>&5
11276   ac_status=$?
11277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11278   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11279     (./conftest; exit; ) >&5 2>/dev/null
11280     lt_status=$?
11281     case x$lt_status in
11282       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11283       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11284       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11285     esac
11286   else :
11287     # compilation failed
11288     lt_cv_dlopen_self_static=no
11289   fi
11290 fi
11291 rm -fr conftest*
11292
11293
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11296 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11297     fi
11298
11299     CPPFLAGS="$save_CPPFLAGS"
11300     LDFLAGS="$save_LDFLAGS"
11301     LIBS="$save_LIBS"
11302     ;;
11303   esac
11304
11305   case $lt_cv_dlopen_self in
11306   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11307   *) enable_dlopen_self=unknown ;;
11308   esac
11309
11310   case $lt_cv_dlopen_self_static in
11311   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11312   *) enable_dlopen_self_static=unknown ;;
11313   esac
11314 fi
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332 striplib=
11333 old_striplib=
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11335 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11336 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11337   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11338   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11340 $as_echo "yes" >&6; }
11341 else
11342 # FIXME - insert some real tests, host_os isn't really good enough
11343   case $host_os in
11344   darwin*)
11345     if test -n "$STRIP" ; then
11346       striplib="$STRIP -x"
11347       old_striplib="$STRIP -S"
11348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11349 $as_echo "yes" >&6; }
11350     else
11351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11353     fi
11354     ;;
11355   *)
11356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358     ;;
11359   esac
11360 fi
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373   # Report which library types will actually be built
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11375 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11377 $as_echo "$can_build_shared" >&6; }
11378
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11380 $as_echo_n "checking whether to build shared libraries... " >&6; }
11381   test "$can_build_shared" = "no" && enable_shared=no
11382
11383   # On AIX, shared libraries and static libraries use the same namespace, and
11384   # are all built from PIC.
11385   case $host_os in
11386   aix3*)
11387     test "$enable_shared" = yes && enable_static=no
11388     if test -n "$RANLIB"; then
11389       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11390       postinstall_cmds='$RANLIB $lib'
11391     fi
11392     ;;
11393
11394   aix[4-9]*)
11395     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11396       test "$enable_shared" = yes && enable_static=no
11397     fi
11398     ;;
11399   esac
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11401 $as_echo "$enable_shared" >&6; }
11402
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11404 $as_echo_n "checking whether to build static libraries... " >&6; }
11405   # Make sure either enable_shared or enable_static is yes.
11406   test "$enable_shared" = yes || enable_static=yes
11407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11408 $as_echo "$enable_static" >&6; }
11409
11410
11411
11412
11413 fi
11414 ac_ext=c
11415 ac_cpp='$CPP $CPPFLAGS'
11416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11419
11420 CC="$lt_save_CC"
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434 # Source file extension for Go test sources.
11435 ac_ext=go
11436
11437 # Object file extension for compiled Go test sources.
11438 objext=o
11439 objext_GO=$objext
11440
11441 # Code to be used in simple compile tests
11442 lt_simple_compile_test_code="package main; func main() { }"
11443
11444 # Code to be used in simple link tests
11445 lt_simple_link_test_code='package main; func main() { }'
11446
11447 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11448
11449
11450
11451
11452
11453
11454 # If no C compiler was specified, use CC.
11455 LTCC=${LTCC-"$CC"}
11456
11457 # If no C compiler flags were specified, use CFLAGS.
11458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11459
11460 # Allow CC to be a program name with arguments.
11461 compiler=$CC
11462
11463
11464 # save warnings/boilerplate of simple test code
11465 ac_outfile=conftest.$ac_objext
11466 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11468 _lt_compiler_boilerplate=`cat conftest.err`
11469 $RM conftest*
11470
11471 ac_outfile=conftest.$ac_objext
11472 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11474 _lt_linker_boilerplate=`cat conftest.err`
11475 $RM -r conftest*
11476
11477
11478 # Allow CC to be a program name with arguments.
11479 lt_save_CC="$CC"
11480 lt_save_GCC="$GCC"
11481 GCC=yes
11482 CC=${GOC-"gccgo"}
11483 compiler=$CC
11484 compiler_GO=$CC
11485 LD_GO="$LD"
11486 for cc_temp in $compiler""; do
11487   case $cc_temp in
11488     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11489     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11490     \-*) ;;
11491     *) break;;
11492   esac
11493 done
11494 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11495
11496
11497 # Go did not exist at the time GCC didn't implicitly link libc in.
11498 archive_cmds_need_lc_GO=no
11499
11500 old_archive_cmds_GO=$old_archive_cmds
11501
11502 ## CAVEAT EMPTOR:
11503 ## There is no encapsulation within the following macros, do not change
11504 ## the running order or otherwise move them around unless you know exactly
11505 ## what you are doing...
11506 if test -n "$compiler"; then
11507
11508 lt_prog_compiler_no_builtin_flag_GO=
11509
11510 if test "$GCC" = yes; then
11511   case $cc_basename in
11512   nvcc*)
11513     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11514   *)
11515     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11516   esac
11517
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11519 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11521   $as_echo_n "(cached) " >&6
11522 else
11523   lt_cv_prog_compiler_rtti_exceptions=no
11524    ac_outfile=conftest.$ac_objext
11525    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11526    lt_compiler_flag="-fno-rtti -fno-exceptions"
11527    # Insert the option either (1) after the last *FLAGS variable, or
11528    # (2) before a word containing "conftest.", or (3) at the end.
11529    # Note that $ac_compile itself does not contain backslashes and begins
11530    # with a dollar sign (not a hyphen), so the echo should work correctly.
11531    # The option is referenced via a variable to avoid confusing sed.
11532    lt_compile=`echo "$ac_compile" | $SED \
11533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11535    -e 's:$: $lt_compiler_flag:'`
11536    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11537    (eval "$lt_compile" 2>conftest.err)
11538    ac_status=$?
11539    cat conftest.err >&5
11540    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541    if (exit $ac_status) && test -s "$ac_outfile"; then
11542      # The compiler can only warn and ignore the option if not recognized
11543      # So say no if there are warnings other than the usual output.
11544      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11545      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11546      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11547        lt_cv_prog_compiler_rtti_exceptions=yes
11548      fi
11549    fi
11550    $RM conftest*
11551
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11554 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11555
11556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11557     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11558 else
11559     :
11560 fi
11561
11562 fi
11563
11564
11565
11566   lt_prog_compiler_wl_GO=
11567 lt_prog_compiler_pic_GO=
11568 lt_prog_compiler_static_GO=
11569
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11571 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11572
11573   if test "$GCC" = yes; then
11574     lt_prog_compiler_wl_GO='-Wl,'
11575     lt_prog_compiler_static_GO='-static'
11576
11577     case $host_os in
11578       aix*)
11579       # All AIX code is PIC.
11580       if test "$host_cpu" = ia64; then
11581         # AIX 5 now supports IA64 processor
11582         lt_prog_compiler_static_GO='-Bstatic'
11583       fi
11584       ;;
11585
11586     amigaos*)
11587       case $host_cpu in
11588       powerpc)
11589             # see comment about AmigaOS4 .so support
11590             lt_prog_compiler_pic_GO='-fPIC'
11591         ;;
11592       m68k)
11593             # FIXME: we need at least 68020 code to build shared libraries, but
11594             # adding the `-m68020' flag to GCC prevents building anything better,
11595             # like `-m68040'.
11596             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11597         ;;
11598       esac
11599       ;;
11600
11601     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11602       # PIC is the default for these OSes.
11603       ;;
11604
11605     mingw* | cygwin* | pw32* | os2* | cegcc*)
11606       # This hack is so that the source file can tell whether it is being
11607       # built for inclusion in a dll (and should export symbols for example).
11608       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11609       # (--disable-auto-import) libraries
11610       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11611       ;;
11612
11613     darwin* | rhapsody*)
11614       # PIC is the default on this platform
11615       # Common symbols not allowed in MH_DYLIB files
11616       lt_prog_compiler_pic_GO='-fno-common'
11617       ;;
11618
11619     haiku*)
11620       # PIC is the default for Haiku.
11621       # The "-static" flag exists, but is broken.
11622       lt_prog_compiler_static_GO=
11623       ;;
11624
11625     hpux*)
11626       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11627       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11628       # sets the default TLS model and affects inlining.
11629       case $host_cpu in
11630       hppa*64*)
11631         # +Z the default
11632         ;;
11633       *)
11634         lt_prog_compiler_pic_GO='-fPIC'
11635         ;;
11636       esac
11637       ;;
11638
11639     interix[3-9]*)
11640       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11641       # Instead, we relocate shared libraries at runtime.
11642       ;;
11643
11644     msdosdjgpp*)
11645       # Just because we use GCC doesn't mean we suddenly get shared libraries
11646       # on systems that don't support them.
11647       lt_prog_compiler_can_build_shared_GO=no
11648       enable_shared=no
11649       ;;
11650
11651     *nto* | *qnx*)
11652       # QNX uses GNU C++, but need to define -shared option too, otherwise
11653       # it will coredump.
11654       lt_prog_compiler_pic_GO='-fPIC -shared'
11655       ;;
11656
11657     sysv4*MP*)
11658       if test -d /usr/nec; then
11659         lt_prog_compiler_pic_GO=-Kconform_pic
11660       fi
11661       ;;
11662
11663     *)
11664       lt_prog_compiler_pic_GO='-fPIC'
11665       ;;
11666     esac
11667
11668     case $cc_basename in
11669     nvcc*) # Cuda Compiler Driver 2.2
11670       lt_prog_compiler_wl_GO='-Xlinker '
11671       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11672       ;;
11673     esac
11674   else
11675     # PORTME Check for flag to pass linker flags through the system compiler.
11676     case $host_os in
11677     aix*)
11678       lt_prog_compiler_wl_GO='-Wl,'
11679       if test "$host_cpu" = ia64; then
11680         # AIX 5 now supports IA64 processor
11681         lt_prog_compiler_static_GO='-Bstatic'
11682       else
11683         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11684       fi
11685       ;;
11686
11687     mingw* | cygwin* | pw32* | os2* | cegcc*)
11688       # This hack is so that the source file can tell whether it is being
11689       # built for inclusion in a dll (and should export symbols for example).
11690       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11691       ;;
11692
11693     hpux9* | hpux10* | hpux11*)
11694       lt_prog_compiler_wl_GO='-Wl,'
11695       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11696       # not for PA HP-UX.
11697       case $host_cpu in
11698       hppa*64*|ia64*)
11699         # +Z the default
11700         ;;
11701       *)
11702         lt_prog_compiler_pic_GO='+Z'
11703         ;;
11704       esac
11705       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11706       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11707       ;;
11708
11709     irix5* | irix6* | nonstopux*)
11710       lt_prog_compiler_wl_GO='-Wl,'
11711       # PIC (with -KPIC) is the default.
11712       lt_prog_compiler_static_GO='-non_shared'
11713       ;;
11714
11715     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11716       case $cc_basename in
11717       # old Intel for x86_64 which still supported -KPIC.
11718       ecc*)
11719         lt_prog_compiler_wl_GO='-Wl,'
11720         lt_prog_compiler_pic_GO='-KPIC'
11721         lt_prog_compiler_static_GO='-static'
11722         ;;
11723       # icc used to be incompatible with GCC.
11724       # ICC 10 doesn't accept -KPIC any more.
11725       icc* | ifort*)
11726         lt_prog_compiler_wl_GO='-Wl,'
11727         lt_prog_compiler_pic_GO='-fPIC'
11728         lt_prog_compiler_static_GO='-static'
11729         ;;
11730       # Lahey Fortran 8.1.
11731       lf95*)
11732         lt_prog_compiler_wl_GO='-Wl,'
11733         lt_prog_compiler_pic_GO='--shared'
11734         lt_prog_compiler_static_GO='--static'
11735         ;;
11736       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11737         # Portland Group compilers (*not* the Pentium gcc compiler,
11738         # which looks to be a dead project)
11739         lt_prog_compiler_wl_GO='-Wl,'
11740         lt_prog_compiler_pic_GO='-fpic'
11741         lt_prog_compiler_static_GO='-Bstatic'
11742         ;;
11743       ccc*)
11744         lt_prog_compiler_wl_GO='-Wl,'
11745         # All Alpha code is PIC.
11746         lt_prog_compiler_static_GO='-non_shared'
11747         ;;
11748       xl* | bgxl* | bgf* | mpixl*)
11749         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11750         lt_prog_compiler_wl_GO='-Wl,'
11751         lt_prog_compiler_pic_GO='-qpic'
11752         lt_prog_compiler_static_GO='-qstaticlink'
11753         ;;
11754       *)
11755         case `$CC -V 2>&1 | sed 5q` in
11756         *Sun\ F* | *Sun*Fortran*)
11757           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11758           lt_prog_compiler_pic_GO='-KPIC'
11759           lt_prog_compiler_static_GO='-Bstatic'
11760           lt_prog_compiler_wl_GO=''
11761           ;;
11762         *Sun\ C*)
11763           # Sun C 5.9
11764           lt_prog_compiler_pic_GO='-KPIC'
11765           lt_prog_compiler_static_GO='-Bstatic'
11766           lt_prog_compiler_wl_GO='-Wl,'
11767           ;;
11768         esac
11769         ;;
11770       esac
11771       ;;
11772
11773     newsos6)
11774       lt_prog_compiler_pic_GO='-KPIC'
11775       lt_prog_compiler_static_GO='-Bstatic'
11776       ;;
11777
11778     *nto* | *qnx*)
11779       # QNX uses GNU C++, but need to define -shared option too, otherwise
11780       # it will coredump.
11781       lt_prog_compiler_pic_GO='-fPIC -shared'
11782       ;;
11783
11784     osf3* | osf4* | osf5*)
11785       lt_prog_compiler_wl_GO='-Wl,'
11786       # All OSF/1 code is PIC.
11787       lt_prog_compiler_static_GO='-non_shared'
11788       ;;
11789
11790     rdos*)
11791       lt_prog_compiler_static_GO='-non_shared'
11792       ;;
11793
11794     solaris*)
11795       lt_prog_compiler_pic_GO='-KPIC'
11796       lt_prog_compiler_static_GO='-Bstatic'
11797       case $cc_basename in
11798       f77* | f90* | f95*)
11799         lt_prog_compiler_wl_GO='-Qoption ld ';;
11800       *)
11801         lt_prog_compiler_wl_GO='-Wl,';;
11802       esac
11803       ;;
11804
11805     sunos4*)
11806       lt_prog_compiler_wl_GO='-Qoption ld '
11807       lt_prog_compiler_pic_GO='-PIC'
11808       lt_prog_compiler_static_GO='-Bstatic'
11809       ;;
11810
11811     sysv4 | sysv4.2uw2* | sysv4.3*)
11812       lt_prog_compiler_wl_GO='-Wl,'
11813       lt_prog_compiler_pic_GO='-KPIC'
11814       lt_prog_compiler_static_GO='-Bstatic'
11815       ;;
11816
11817     sysv4*MP*)
11818       if test -d /usr/nec ;then
11819         lt_prog_compiler_pic_GO='-Kconform_pic'
11820         lt_prog_compiler_static_GO='-Bstatic'
11821       fi
11822       ;;
11823
11824     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11825       lt_prog_compiler_wl_GO='-Wl,'
11826       lt_prog_compiler_pic_GO='-KPIC'
11827       lt_prog_compiler_static_GO='-Bstatic'
11828       ;;
11829
11830     unicos*)
11831       lt_prog_compiler_wl_GO='-Wl,'
11832       lt_prog_compiler_can_build_shared_GO=no
11833       ;;
11834
11835     uts4*)
11836       lt_prog_compiler_pic_GO='-pic'
11837       lt_prog_compiler_static_GO='-Bstatic'
11838       ;;
11839
11840     *)
11841       lt_prog_compiler_can_build_shared_GO=no
11842       ;;
11843     esac
11844   fi
11845
11846 case $host_os in
11847   # For platforms which do not support PIC, -DPIC is meaningless:
11848   *djgpp*)
11849     lt_prog_compiler_pic_GO=
11850     ;;
11851   *)
11852     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11853     ;;
11854 esac
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11856 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11857
11858
11859
11860 #
11861 # Check to make sure the PIC flag actually works.
11862 #
11863 if test -n "$lt_prog_compiler_pic_GO"; then
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11865 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11866 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11867   $as_echo_n "(cached) " >&6
11868 else
11869   lt_cv_prog_compiler_pic_works_GO=no
11870    ac_outfile=conftest.$ac_objext
11871    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11872    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11873    # Insert the option either (1) after the last *FLAGS variable, or
11874    # (2) before a word containing "conftest.", or (3) at the end.
11875    # Note that $ac_compile itself does not contain backslashes and begins
11876    # with a dollar sign (not a hyphen), so the echo should work correctly.
11877    # The option is referenced via a variable to avoid confusing sed.
11878    lt_compile=`echo "$ac_compile" | $SED \
11879    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11881    -e 's:$: $lt_compiler_flag:'`
11882    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11883    (eval "$lt_compile" 2>conftest.err)
11884    ac_status=$?
11885    cat conftest.err >&5
11886    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887    if (exit $ac_status) && test -s "$ac_outfile"; then
11888      # The compiler can only warn and ignore the option if not recognized
11889      # So say no if there are warnings other than the usual output.
11890      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11891      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11892      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11893        lt_cv_prog_compiler_pic_works_GO=yes
11894      fi
11895    fi
11896    $RM conftest*
11897
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11900 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11901
11902 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11903     case $lt_prog_compiler_pic_GO in
11904      "" | " "*) ;;
11905      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11906      esac
11907 else
11908     lt_prog_compiler_pic_GO=
11909      lt_prog_compiler_can_build_shared_GO=no
11910 fi
11911
11912 fi
11913
11914
11915
11916 #
11917 # Check to make sure the static flag actually works.
11918 #
11919 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11921 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11922 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11923   $as_echo_n "(cached) " >&6
11924 else
11925   lt_cv_prog_compiler_static_works_GO=no
11926    save_LDFLAGS="$LDFLAGS"
11927    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11928    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11929    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11930      # The linker can only warn and ignore the option if not recognized
11931      # So say no if there are warnings
11932      if test -s conftest.err; then
11933        # Append any errors to the config.log.
11934        cat conftest.err 1>&5
11935        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11936        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11937        if diff conftest.exp conftest.er2 >/dev/null; then
11938          lt_cv_prog_compiler_static_works_GO=yes
11939        fi
11940      else
11941        lt_cv_prog_compiler_static_works_GO=yes
11942      fi
11943    fi
11944    $RM -r conftest*
11945    LDFLAGS="$save_LDFLAGS"
11946
11947 fi
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11949 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11950
11951 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11952     :
11953 else
11954     lt_prog_compiler_static_GO=
11955 fi
11956
11957
11958
11959
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11962 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965   lt_cv_prog_compiler_c_o_GO=no
11966    $RM -r conftest 2>/dev/null
11967    mkdir conftest
11968    cd conftest
11969    mkdir out
11970    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11971
11972    lt_compiler_flag="-o out/conftest2.$ac_objext"
11973    # Insert the option either (1) after the last *FLAGS variable, or
11974    # (2) before a word containing "conftest.", or (3) at the end.
11975    # Note that $ac_compile itself does not contain backslashes and begins
11976    # with a dollar sign (not a hyphen), so the echo should work correctly.
11977    lt_compile=`echo "$ac_compile" | $SED \
11978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11980    -e 's:$: $lt_compiler_flag:'`
11981    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11982    (eval "$lt_compile" 2>out/conftest.err)
11983    ac_status=$?
11984    cat out/conftest.err >&5
11985    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11987    then
11988      # The compiler can only warn and ignore the option if not recognized
11989      # So say no if there are warnings
11990      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11991      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11992      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11993        lt_cv_prog_compiler_c_o_GO=yes
11994      fi
11995    fi
11996    chmod u+w . 2>&5
11997    $RM conftest*
11998    # SGI C++ compiler will create directory out/ii_files/ for
11999    # template instantiation
12000    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12001    $RM out/* && rmdir out
12002    cd ..
12003    $RM -r conftest
12004    $RM conftest*
12005
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12008 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12009
12010
12011
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12013 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12014 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   lt_cv_prog_compiler_c_o_GO=no
12018    $RM -r conftest 2>/dev/null
12019    mkdir conftest
12020    cd conftest
12021    mkdir out
12022    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12023
12024    lt_compiler_flag="-o out/conftest2.$ac_objext"
12025    # Insert the option either (1) after the last *FLAGS variable, or
12026    # (2) before a word containing "conftest.", or (3) at the end.
12027    # Note that $ac_compile itself does not contain backslashes and begins
12028    # with a dollar sign (not a hyphen), so the echo should work correctly.
12029    lt_compile=`echo "$ac_compile" | $SED \
12030    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12031    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12032    -e 's:$: $lt_compiler_flag:'`
12033    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12034    (eval "$lt_compile" 2>out/conftest.err)
12035    ac_status=$?
12036    cat out/conftest.err >&5
12037    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12039    then
12040      # The compiler can only warn and ignore the option if not recognized
12041      # So say no if there are warnings
12042      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12043      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12044      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12045        lt_cv_prog_compiler_c_o_GO=yes
12046      fi
12047    fi
12048    chmod u+w . 2>&5
12049    $RM conftest*
12050    # SGI C++ compiler will create directory out/ii_files/ for
12051    # template instantiation
12052    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12053    $RM out/* && rmdir out
12054    cd ..
12055    $RM -r conftest
12056    $RM conftest*
12057
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12060 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12061
12062
12063
12064
12065 hard_links="nottested"
12066 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12067   # do not overwrite the value of need_locks provided by the user
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12069 $as_echo_n "checking if we can lock with hard links... " >&6; }
12070   hard_links=yes
12071   $RM conftest*
12072   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12073   touch conftest.a
12074   ln conftest.a conftest.b 2>&5 || hard_links=no
12075   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12077 $as_echo "$hard_links" >&6; }
12078   if test "$hard_links" = no; then
12079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12080 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12081     need_locks=warn
12082   fi
12083 else
12084   need_locks=no
12085 fi
12086
12087
12088
12089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12090 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12091
12092   runpath_var=
12093   allow_undefined_flag_GO=
12094   always_export_symbols_GO=no
12095   archive_cmds_GO=
12096   archive_expsym_cmds_GO=
12097   compiler_needs_object_GO=no
12098   enable_shared_with_static_runtimes_GO=no
12099   export_dynamic_flag_spec_GO=
12100   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12101   hardcode_automatic_GO=no
12102   hardcode_direct_GO=no
12103   hardcode_direct_absolute_GO=no
12104   hardcode_libdir_flag_spec_GO=
12105   hardcode_libdir_flag_spec_ld_GO=
12106   hardcode_libdir_separator_GO=
12107   hardcode_minus_L_GO=no
12108   hardcode_shlibpath_var_GO=unsupported
12109   inherit_rpath_GO=no
12110   link_all_deplibs_GO=unknown
12111   module_cmds_GO=
12112   module_expsym_cmds_GO=
12113   old_archive_from_new_cmds_GO=
12114   old_archive_from_expsyms_cmds_GO=
12115   thread_safe_flag_spec_GO=
12116   whole_archive_flag_spec_GO=
12117   # include_expsyms should be a list of space-separated symbols to be *always*
12118   # included in the symbol list
12119   include_expsyms_GO=
12120   # exclude_expsyms can be an extended regexp of symbols to exclude
12121   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12122   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12123   # as well as any symbol that contains `d'.
12124   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12125   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12126   # platforms (ab)use it in PIC code, but their linkers get confused if
12127   # the symbol is explicitly referenced.  Since portable code cannot
12128   # rely on this symbol name, it's probably fine to never include it in
12129   # preloaded symbol tables.
12130   # Exclude shared library initialization/finalization symbols.
12131   extract_expsyms_cmds=
12132
12133   case $host_os in
12134   cygwin* | mingw* | pw32* | cegcc*)
12135     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12136     # When not using gcc, we currently assume that we are using
12137     # Microsoft Visual C++.
12138     if test "$GCC" != yes; then
12139       with_gnu_ld=no
12140     fi
12141     ;;
12142   interix*)
12143     # we just hope/assume this is gcc and not c89 (= MSVC++)
12144     with_gnu_ld=yes
12145     ;;
12146   openbsd*)
12147     with_gnu_ld=no
12148     ;;
12149   esac
12150
12151   ld_shlibs_GO=yes
12152
12153   # On some targets, GNU ld is compatible enough with the native linker
12154   # that we're better off using the native interface for both.
12155   lt_use_gnu_ld_interface=no
12156   if test "$with_gnu_ld" = yes; then
12157     case $host_os in
12158       aix*)
12159         # The AIX port of GNU ld has always aspired to compatibility
12160         # with the native linker.  However, as the warning in the GNU ld
12161         # block says, versions before 2.19.5* couldn't really create working
12162         # shared libraries, regardless of the interface used.
12163         case `$LD -v 2>&1` in
12164           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12165           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12166           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12167           *)
12168             lt_use_gnu_ld_interface=yes
12169             ;;
12170         esac
12171         ;;
12172       *)
12173         lt_use_gnu_ld_interface=yes
12174         ;;
12175     esac
12176   fi
12177
12178   if test "$lt_use_gnu_ld_interface" = yes; then
12179     # If archive_cmds runs LD, not CC, wlarc should be empty
12180     wlarc='${wl}'
12181
12182     # Set some defaults for GNU ld with shared library support. These
12183     # are reset later if shared libraries are not supported. Putting them
12184     # here allows them to be overridden if necessary.
12185     runpath_var=LD_RUN_PATH
12186     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12187     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12188     # ancient GNU ld didn't support --whole-archive et. al.
12189     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12190       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12191     else
12192       whole_archive_flag_spec_GO=
12193     fi
12194     supports_anon_versioning=no
12195     case `$LD -v 2>&1` in
12196       *GNU\ gold*) supports_anon_versioning=yes ;;
12197       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12198       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12199       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12200       *\ 2.11.*) ;; # other 2.11 versions
12201       *) supports_anon_versioning=yes ;;
12202     esac
12203
12204     # See if GNU ld supports shared libraries.
12205     case $host_os in
12206     aix[3-9]*)
12207       # On AIX/PPC, the GNU linker is very broken
12208       if test "$host_cpu" != ia64; then
12209         ld_shlibs_GO=no
12210         cat <<_LT_EOF 1>&2
12211
12212 *** Warning: the GNU linker, at least up to release 2.19, is reported
12213 *** to be unable to reliably create shared libraries on AIX.
12214 *** Therefore, libtool is disabling shared libraries support.  If you
12215 *** really care for shared libraries, you may want to install binutils
12216 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12217 *** You will then need to restart the configuration process.
12218
12219 _LT_EOF
12220       fi
12221       ;;
12222
12223     amigaos*)
12224       case $host_cpu in
12225       powerpc)
12226             # see comment about AmigaOS4 .so support
12227             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228             archive_expsym_cmds_GO=''
12229         ;;
12230       m68k)
12231             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)'
12232             hardcode_libdir_flag_spec_GO='-L$libdir'
12233             hardcode_minus_L_GO=yes
12234         ;;
12235       esac
12236       ;;
12237
12238     beos*)
12239       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12240         allow_undefined_flag_GO=unsupported
12241         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12242         # support --undefined.  This deserves some investigation.  FIXME
12243         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244       else
12245         ld_shlibs_GO=no
12246       fi
12247       ;;
12248
12249     cygwin* | mingw* | pw32* | cegcc*)
12250       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12251       # as there is no search path for DLLs.
12252       hardcode_libdir_flag_spec_GO='-L$libdir'
12253       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12254       allow_undefined_flag_GO=unsupported
12255       always_export_symbols_GO=no
12256       enable_shared_with_static_runtimes_GO=yes
12257       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12258
12259       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12260         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12261         # If the export-symbols file already is a .def file (1st line
12262         # is EXPORTS), use it as is; otherwise, prepend...
12263         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12264           cp $export_symbols $output_objdir/$soname.def;
12265         else
12266           echo EXPORTS > $output_objdir/$soname.def;
12267           cat $export_symbols >> $output_objdir/$soname.def;
12268         fi~
12269         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12270       else
12271         ld_shlibs_GO=no
12272       fi
12273       ;;
12274
12275     haiku*)
12276       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277       link_all_deplibs_GO=yes
12278       ;;
12279
12280     interix[3-9]*)
12281       hardcode_direct_GO=no
12282       hardcode_shlibpath_var_GO=no
12283       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12284       export_dynamic_flag_spec_GO='${wl}-E'
12285       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12286       # Instead, shared libraries are loaded at an image base (0x10000000 by
12287       # default) and relocated if they conflict, which is a slow very memory
12288       # consuming and fragmenting process.  To avoid this, we pick a random,
12289       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12290       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12291       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'
12292       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'
12293       ;;
12294
12295     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12296       tmp_diet=no
12297       if test "$host_os" = linux-dietlibc; then
12298         case $cc_basename in
12299           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12300         esac
12301       fi
12302       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12303          && test "$tmp_diet" = no
12304       then
12305         tmp_addflag=
12306         tmp_sharedflag='-shared'
12307         case $cc_basename,$host_cpu in
12308         pgcc*)                          # Portland Group C compiler
12309           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'
12310           tmp_addflag=' $pic_flag'
12311           ;;
12312         pgf77* | pgf90* | pgf95* | pgfortran*)
12313                                         # Portland Group f77 and f90 compilers
12314           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'
12315           tmp_addflag=' $pic_flag -Mnomain' ;;
12316         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12317           tmp_addflag=' -i_dynamic' ;;
12318         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12319           tmp_addflag=' -i_dynamic -nofor_main' ;;
12320         ifc* | ifort*)                  # Intel Fortran compiler
12321           tmp_addflag=' -nofor_main' ;;
12322         lf95*)                          # Lahey Fortran 8.1
12323           whole_archive_flag_spec_GO=
12324           tmp_sharedflag='--shared' ;;
12325         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12326           tmp_sharedflag='-qmkshrobj'
12327           tmp_addflag= ;;
12328         nvcc*)  # Cuda Compiler Driver 2.2
12329           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'
12330           compiler_needs_object_GO=yes
12331           ;;
12332         esac
12333         case `$CC -V 2>&1 | sed 5q` in
12334         *Sun\ C*)                       # Sun C 5.9
12335           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'
12336           compiler_needs_object_GO=yes
12337           tmp_sharedflag='-G' ;;
12338         *Sun\ F*)                       # Sun Fortran 8.3
12339           tmp_sharedflag='-G' ;;
12340         esac
12341         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342
12343         if test "x$supports_anon_versioning" = xyes; then
12344           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12345             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12346             echo "local: *; };" >> $output_objdir/$libname.ver~
12347             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12348         fi
12349
12350         case $cc_basename in
12351         xlf* | bgf* | bgxlf* | mpixlf*)
12352           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12353           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12354           hardcode_libdir_flag_spec_GO=
12355           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12356           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12357           if test "x$supports_anon_versioning" = xyes; then
12358             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12359               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12360               echo "local: *; };" >> $output_objdir/$libname.ver~
12361               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12362           fi
12363           ;;
12364         esac
12365       else
12366         ld_shlibs_GO=no
12367       fi
12368       ;;
12369
12370     netbsd*)
12371       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12372         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12373         wlarc=
12374       else
12375         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12376         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12377       fi
12378       ;;
12379
12380     solaris*)
12381       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12382         ld_shlibs_GO=no
12383         cat <<_LT_EOF 1>&2
12384
12385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12386 *** create shared libraries on Solaris systems.  Therefore, libtool
12387 *** is disabling shared libraries support.  We urge you to upgrade GNU
12388 *** binutils to release 2.9.1 or newer.  Another option is to modify
12389 *** your PATH or compiler configuration so that the native linker is
12390 *** used, and then restart.
12391
12392 _LT_EOF
12393       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12394         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12395         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12396       else
12397         ld_shlibs_GO=no
12398       fi
12399       ;;
12400
12401     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12402       case `$LD -v 2>&1` in
12403         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12404         ld_shlibs_GO=no
12405         cat <<_LT_EOF 1>&2
12406
12407 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12408 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12409 *** is disabling shared libraries support.  We urge you to upgrade GNU
12410 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12411 *** your PATH or compiler configuration so that the native linker is
12412 *** used, and then restart.
12413
12414 _LT_EOF
12415         ;;
12416         *)
12417           # For security reasons, it is highly recommended that you always
12418           # use absolute paths for naming shared libraries, and exclude the
12419           # DT_RUNPATH tag from executables and libraries.  But doing so
12420           # requires that you compile everything twice, which is a pain.
12421           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12422             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12423             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12424             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12425           else
12426             ld_shlibs_GO=no
12427           fi
12428         ;;
12429       esac
12430       ;;
12431
12432     sunos4*)
12433       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12434       wlarc=
12435       hardcode_direct_GO=yes
12436       hardcode_shlibpath_var_GO=no
12437       ;;
12438
12439     *)
12440       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12441         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12442         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12443       else
12444         ld_shlibs_GO=no
12445       fi
12446       ;;
12447     esac
12448
12449     if test "$ld_shlibs_GO" = no; then
12450       runpath_var=
12451       hardcode_libdir_flag_spec_GO=
12452       export_dynamic_flag_spec_GO=
12453       whole_archive_flag_spec_GO=
12454     fi
12455   else
12456     # PORTME fill in a description of your system's linker (not GNU ld)
12457     case $host_os in
12458     aix3*)
12459       allow_undefined_flag_GO=unsupported
12460       always_export_symbols_GO=yes
12461       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'
12462       # Note: this linker hardcodes the directories in LIBPATH if there
12463       # are no directories specified by -L.
12464       hardcode_minus_L_GO=yes
12465       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12466         # Neither direct hardcoding nor static linking is supported with a
12467         # broken collect2.
12468         hardcode_direct_GO=unsupported
12469       fi
12470       ;;
12471
12472     aix[4-9]*)
12473       if test "$host_cpu" = ia64; then
12474         # On IA64, the linker does run time linking by default, so we don't
12475         # have to do anything special.
12476         aix_use_runtimelinking=no
12477         exp_sym_flag='-Bexport'
12478         no_entry_flag=""
12479       else
12480         # If we're using GNU nm, then we don't want the "-C" option.
12481         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12482         # Also, AIX nm treats weak defined symbols like other global
12483         # defined symbols, whereas GNU nm marks them as "W".
12484         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12485           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'
12486         else
12487           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'
12488         fi
12489         aix_use_runtimelinking=no
12490
12491         # Test if we are trying to use run time linking or normal
12492         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12493         # need to do runtime linking.
12494         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12495           for ld_flag in $LDFLAGS; do
12496           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12497             aix_use_runtimelinking=yes
12498             break
12499           fi
12500           done
12501           ;;
12502         esac
12503
12504         exp_sym_flag='-bexport'
12505         no_entry_flag='-bnoentry'
12506       fi
12507
12508       # When large executables or shared objects are built, AIX ld can
12509       # have problems creating the table of contents.  If linking a library
12510       # or program results in "error TOC overflow" add -mminimal-toc to
12511       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12512       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12513
12514       archive_cmds_GO=''
12515       hardcode_direct_GO=yes
12516       hardcode_direct_absolute_GO=yes
12517       hardcode_libdir_separator_GO=':'
12518       link_all_deplibs_GO=yes
12519       file_list_spec_GO='${wl}-f,'
12520
12521       if test "$GCC" = yes; then
12522         case $host_os in aix4.[012]|aix4.[012].*)
12523         # We only want to do this on AIX 4.2 and lower, the check
12524         # below for broken collect2 doesn't work under 4.3+
12525           collect2name=`${CC} -print-prog-name=collect2`
12526           if test -f "$collect2name" &&
12527            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12528           then
12529           # We have reworked collect2
12530           :
12531           else
12532           # We have old collect2
12533           hardcode_direct_GO=unsupported
12534           # It fails to find uninstalled libraries when the uninstalled
12535           # path is not listed in the libpath.  Setting hardcode_minus_L
12536           # to unsupported forces relinking
12537           hardcode_minus_L_GO=yes
12538           hardcode_libdir_flag_spec_GO='-L$libdir'
12539           hardcode_libdir_separator_GO=
12540           fi
12541           ;;
12542         esac
12543         shared_flag='-shared'
12544         if test "$aix_use_runtimelinking" = yes; then
12545           shared_flag="$shared_flag "'${wl}-G'
12546         fi
12547       else
12548         # not using gcc
12549         if test "$host_cpu" = ia64; then
12550         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12551         # chokes on -Wl,-G. The following line is correct:
12552           shared_flag='-G'
12553         else
12554           if test "$aix_use_runtimelinking" = yes; then
12555             shared_flag='${wl}-G'
12556           else
12557             shared_flag='${wl}-bM:SRE'
12558           fi
12559         fi
12560       fi
12561
12562       export_dynamic_flag_spec_GO='${wl}-bexpall'
12563       # It seems that -bexpall does not export symbols beginning with
12564       # underscore (_), so it is better to generate a list of symbols to export.
12565       always_export_symbols_GO=yes
12566       if test "$aix_use_runtimelinking" = yes; then
12567         # Warning - without using the other runtime loading flags (-brtl),
12568         # -berok will link without error, but may produce a broken library.
12569         allow_undefined_flag_GO='-berok'
12570         # Determine the default libpath from the value encoded in an
12571         # empty executable.
12572         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h.  */
12574
12575 int
12576 main ()
12577 {
12578
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 if ac_fn_c_try_link "$LINENO"; then :
12584
12585 lt_aix_libpath_sed='
12586     /Import File Strings/,/^$/ {
12587         /^0/ {
12588             s/^0  *\(.*\)$/\1/
12589             p
12590         }
12591     }'
12592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12593 # Check for a 64-bit object if we didn't find anything.
12594 if test -z "$aix_libpath"; then
12595   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596 fi
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext \
12599     conftest$ac_exeext conftest.$ac_ext
12600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12601
12602         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12603         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"
12604       else
12605         if test "$host_cpu" = ia64; then
12606           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12607           allow_undefined_flag_GO="-z nodefs"
12608           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"
12609         else
12610          # Determine the default libpath from the value encoded in an
12611          # empty executable.
12612          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h.  */
12614
12615 int
12616 main ()
12617 {
12618
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 if ac_fn_c_try_link "$LINENO"; then :
12624
12625 lt_aix_libpath_sed='
12626     /Import File Strings/,/^$/ {
12627         /^0/ {
12628             s/^0  *\(.*\)$/\1/
12629             p
12630         }
12631     }'
12632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12633 # Check for a 64-bit object if we didn't find anything.
12634 if test -z "$aix_libpath"; then
12635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12636 fi
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext \
12639     conftest$ac_exeext conftest.$ac_ext
12640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12641
12642          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12643           # Warning - without using the other run time loading flags,
12644           # -berok will link without error, but may produce a broken library.
12645           no_undefined_flag_GO=' ${wl}-bernotok'
12646           allow_undefined_flag_GO=' ${wl}-berok'
12647           if test "$with_gnu_ld" = yes; then
12648             # We only use this code for GNU lds that support --whole-archive.
12649             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12650           else
12651             # Exported symbols can be pulled into shared objects from archives
12652             whole_archive_flag_spec_GO='$convenience'
12653           fi
12654           archive_cmds_need_lc_GO=yes
12655           # This is similar to how AIX traditionally builds its shared libraries.
12656           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'
12657         fi
12658       fi
12659       ;;
12660
12661     amigaos*)
12662       case $host_cpu in
12663       powerpc)
12664             # see comment about AmigaOS4 .so support
12665             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12666             archive_expsym_cmds_GO=''
12667         ;;
12668       m68k)
12669             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)'
12670             hardcode_libdir_flag_spec_GO='-L$libdir'
12671             hardcode_minus_L_GO=yes
12672         ;;
12673       esac
12674       ;;
12675
12676     bsdi[45]*)
12677       export_dynamic_flag_spec_GO=-rdynamic
12678       ;;
12679
12680     cygwin* | mingw* | pw32* | cegcc*)
12681       # When not using gcc, we currently assume that we are using
12682       # Microsoft Visual C++.
12683       # hardcode_libdir_flag_spec is actually meaningless, as there is
12684       # no search path for DLLs.
12685       hardcode_libdir_flag_spec_GO=' '
12686       allow_undefined_flag_GO=unsupported
12687       # Tell ltmain to make .lib files, not .a files.
12688       libext=lib
12689       # Tell ltmain to make .dll files, not .so files.
12690       shrext_cmds=".dll"
12691       # FIXME: Setting linknames here is a bad hack.
12692       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12693       # The linker will automatically build a .lib file if we build a DLL.
12694       old_archive_from_new_cmds_GO='true'
12695       # FIXME: Should let the user specify the lib program.
12696       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12697       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12698       enable_shared_with_static_runtimes_GO=yes
12699       ;;
12700
12701     darwin* | rhapsody*)
12702
12703
12704   archive_cmds_need_lc_GO=no
12705   hardcode_direct_GO=no
12706   hardcode_automatic_GO=yes
12707   hardcode_shlibpath_var_GO=unsupported
12708   if test "$lt_cv_ld_force_load" = "yes"; then
12709     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\"`'
12710   else
12711     whole_archive_flag_spec_GO=''
12712   fi
12713   link_all_deplibs_GO=yes
12714   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12715   case $cc_basename in
12716      ifort*) _lt_dar_can_shared=yes ;;
12717      *) _lt_dar_can_shared=$GCC ;;
12718   esac
12719   if test "$_lt_dar_can_shared" = "yes"; then
12720     output_verbose_link_cmd=func_echo_all
12721     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}"
12722     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12723     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}"
12724     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}"
12725
12726   else
12727   ld_shlibs_GO=no
12728   fi
12729
12730       ;;
12731
12732     dgux*)
12733       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12734       hardcode_libdir_flag_spec_GO='-L$libdir'
12735       hardcode_shlibpath_var_GO=no
12736       ;;
12737
12738     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12739     # support.  Future versions do this automatically, but an explicit c++rt0.o
12740     # does not break anything, and helps significantly (at the cost of a little
12741     # extra space).
12742     freebsd2.2*)
12743       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12744       hardcode_libdir_flag_spec_GO='-R$libdir'
12745       hardcode_direct_GO=yes
12746       hardcode_shlibpath_var_GO=no
12747       ;;
12748
12749     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12750     freebsd2*)
12751       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12752       hardcode_direct_GO=yes
12753       hardcode_minus_L_GO=yes
12754       hardcode_shlibpath_var_GO=no
12755       ;;
12756
12757     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12758     freebsd* | dragonfly*)
12759       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12760       hardcode_libdir_flag_spec_GO='-R$libdir'
12761       hardcode_direct_GO=yes
12762       hardcode_shlibpath_var_GO=no
12763       ;;
12764
12765     hpux9*)
12766       if test "$GCC" = yes; then
12767         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'
12768       else
12769         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'
12770       fi
12771       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12772       hardcode_libdir_separator_GO=:
12773       hardcode_direct_GO=yes
12774
12775       # hardcode_minus_L: Not really in the search PATH,
12776       # but as the default location of the library.
12777       hardcode_minus_L_GO=yes
12778       export_dynamic_flag_spec_GO='${wl}-E'
12779       ;;
12780
12781     hpux10*)
12782       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12783         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12784       else
12785         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12786       fi
12787       if test "$with_gnu_ld" = no; then
12788         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12789         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12790         hardcode_libdir_separator_GO=:
12791         hardcode_direct_GO=yes
12792         hardcode_direct_absolute_GO=yes
12793         export_dynamic_flag_spec_GO='${wl}-E'
12794         # hardcode_minus_L: Not really in the search PATH,
12795         # but as the default location of the library.
12796         hardcode_minus_L_GO=yes
12797       fi
12798       ;;
12799
12800     hpux11*)
12801       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12802         case $host_cpu in
12803         hppa*64*)
12804           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12805           ;;
12806         ia64*)
12807           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12808           ;;
12809         *)
12810           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12811           ;;
12812         esac
12813       else
12814         case $host_cpu in
12815         hppa*64*)
12816           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12817           ;;
12818         ia64*)
12819           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12820           ;;
12821         *)
12822         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12823           ;;
12824         esac
12825       fi
12826       if test "$with_gnu_ld" = no; then
12827         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12828         hardcode_libdir_separator_GO=:
12829
12830         case $host_cpu in
12831         hppa*64*|ia64*)
12832           hardcode_direct_GO=no
12833           hardcode_shlibpath_var_GO=no
12834           ;;
12835         *)
12836           hardcode_direct_GO=yes
12837           hardcode_direct_absolute_GO=yes
12838           export_dynamic_flag_spec_GO='${wl}-E'
12839
12840           # hardcode_minus_L: Not really in the search PATH,
12841           # but as the default location of the library.
12842           hardcode_minus_L_GO=yes
12843           ;;
12844         esac
12845       fi
12846       ;;
12847
12848     irix5* | irix6* | nonstopux*)
12849       if test "$GCC" = yes; then
12850         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'
12851         # Try to use the -exported_symbol ld option, if it does not
12852         # work, assume that -exports_file does not work either and
12853         # implicitly export all symbols.
12854         save_LDFLAGS="$LDFLAGS"
12855         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12856         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h.  */
12858 int foo(void) {}
12859 _ACEOF
12860 if ac_fn_c_try_link "$LINENO"; then :
12861   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'
12862
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext \
12865     conftest$ac_exeext conftest.$ac_ext
12866         LDFLAGS="$save_LDFLAGS"
12867       else
12868         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'
12869         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'
12870       fi
12871       archive_cmds_need_lc_GO='no'
12872       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12873       hardcode_libdir_separator_GO=:
12874       inherit_rpath_GO=yes
12875       link_all_deplibs_GO=yes
12876       ;;
12877
12878     netbsd*)
12879       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12880         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12881       else
12882         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12883       fi
12884       hardcode_libdir_flag_spec_GO='-R$libdir'
12885       hardcode_direct_GO=yes
12886       hardcode_shlibpath_var_GO=no
12887       ;;
12888
12889     newsos6)
12890       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12891       hardcode_direct_GO=yes
12892       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12893       hardcode_libdir_separator_GO=:
12894       hardcode_shlibpath_var_GO=no
12895       ;;
12896
12897     *nto* | *qnx*)
12898       ;;
12899
12900     openbsd*)
12901       if test -f /usr/libexec/ld.so; then
12902         hardcode_direct_GO=yes
12903         hardcode_shlibpath_var_GO=no
12904         hardcode_direct_absolute_GO=yes
12905         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12906           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12907           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12908           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12909           export_dynamic_flag_spec_GO='${wl}-E'
12910         else
12911           case $host_os in
12912            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12913              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12914              hardcode_libdir_flag_spec_GO='-R$libdir'
12915              ;;
12916            *)
12917              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12918              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12919              ;;
12920           esac
12921         fi
12922       else
12923         ld_shlibs_GO=no
12924       fi
12925       ;;
12926
12927     os2*)
12928       hardcode_libdir_flag_spec_GO='-L$libdir'
12929       hardcode_minus_L_GO=yes
12930       allow_undefined_flag_GO=unsupported
12931       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'
12932       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12933       ;;
12934
12935     osf3*)
12936       if test "$GCC" = yes; then
12937         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12938         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'
12939       else
12940         allow_undefined_flag_GO=' -expect_unresolved \*'
12941         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'
12942       fi
12943       archive_cmds_need_lc_GO='no'
12944       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12945       hardcode_libdir_separator_GO=:
12946       ;;
12947
12948     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12949       if test "$GCC" = yes; then
12950         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12951         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'
12952         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12953       else
12954         allow_undefined_flag_GO=' -expect_unresolved \*'
12955         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'
12956         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~
12957         $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'
12958
12959         # Both c and cxx compiler support -rpath directly
12960         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12961       fi
12962       archive_cmds_need_lc_GO='no'
12963       hardcode_libdir_separator_GO=:
12964       ;;
12965
12966     solaris*)
12967       no_undefined_flag_GO=' -z defs'
12968       if test "$GCC" = yes; then
12969         wlarc='${wl}'
12970         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12971         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12972           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12973       else
12974         case `$CC -V 2>&1` in
12975         *"Compilers 5.0"*)
12976           wlarc=''
12977           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12978           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12979           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12980           ;;
12981         *)
12982           wlarc='${wl}'
12983           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12984           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12986           ;;
12987         esac
12988       fi
12989       hardcode_libdir_flag_spec_GO='-R$libdir'
12990       hardcode_shlibpath_var_GO=no
12991       case $host_os in
12992       solaris2.[0-5] | solaris2.[0-5].*) ;;
12993       *)
12994         # The compiler driver will combine and reorder linker options,
12995         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12996         # but is careful enough not to reorder.
12997         # Supported since Solaris 2.6 (maybe 2.5.1?)
12998         if test "$GCC" = yes; then
12999           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13000         else
13001           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13002         fi
13003         ;;
13004       esac
13005       link_all_deplibs_GO=yes
13006       ;;
13007
13008     sunos4*)
13009       if test "x$host_vendor" = xsequent; then
13010         # Use $CC to link under sequent, because it throws in some extra .o
13011         # files that make .init and .fini sections work.
13012         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13013       else
13014         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13015       fi
13016       hardcode_libdir_flag_spec_GO='-L$libdir'
13017       hardcode_direct_GO=yes
13018       hardcode_minus_L_GO=yes
13019       hardcode_shlibpath_var_GO=no
13020       ;;
13021
13022     sysv4)
13023       case $host_vendor in
13024         sni)
13025           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13026           hardcode_direct_GO=yes # is this really true???
13027         ;;
13028         siemens)
13029           ## LD is ld it makes a PLAMLIB
13030           ## CC just makes a GrossModule.
13031           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13032           reload_cmds_GO='$CC -r -o $output$reload_objs'
13033           hardcode_direct_GO=no
13034         ;;
13035         motorola)
13036           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13038         ;;
13039       esac
13040       runpath_var='LD_RUN_PATH'
13041       hardcode_shlibpath_var_GO=no
13042       ;;
13043
13044     sysv4.3*)
13045       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13046       hardcode_shlibpath_var_GO=no
13047       export_dynamic_flag_spec_GO='-Bexport'
13048       ;;
13049
13050     sysv4*MP*)
13051       if test -d /usr/nec; then
13052         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13053         hardcode_shlibpath_var_GO=no
13054         runpath_var=LD_RUN_PATH
13055         hardcode_runpath_var=yes
13056         ld_shlibs_GO=yes
13057       fi
13058       ;;
13059
13060     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13061       no_undefined_flag_GO='${wl}-z,text'
13062       archive_cmds_need_lc_GO=no
13063       hardcode_shlibpath_var_GO=no
13064       runpath_var='LD_RUN_PATH'
13065
13066       if test "$GCC" = yes; then
13067         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13068         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069       else
13070         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13072       fi
13073       ;;
13074
13075     sysv5* | sco3.2v5* | sco5v6*)
13076       # Note: We can NOT use -z defs as we might desire, because we do not
13077       # link with -lc, and that would cause any symbols used from libc to
13078       # always be unresolved, which means just about no library would
13079       # ever link correctly.  If we're not using GNU ld we use -z text
13080       # though, which does catch some bad symbols but isn't as heavy-handed
13081       # as -z defs.
13082       no_undefined_flag_GO='${wl}-z,text'
13083       allow_undefined_flag_GO='${wl}-z,nodefs'
13084       archive_cmds_need_lc_GO=no
13085       hardcode_shlibpath_var_GO=no
13086       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13087       hardcode_libdir_separator_GO=':'
13088       link_all_deplibs_GO=yes
13089       export_dynamic_flag_spec_GO='${wl}-Bexport'
13090       runpath_var='LD_RUN_PATH'
13091
13092       if test "$GCC" = yes; then
13093         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095       else
13096         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098       fi
13099       ;;
13100
13101     uts4*)
13102       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13103       hardcode_libdir_flag_spec_GO='-L$libdir'
13104       hardcode_shlibpath_var_GO=no
13105       ;;
13106
13107     *)
13108       ld_shlibs_GO=no
13109       ;;
13110     esac
13111
13112     if test x$host_vendor = xsni; then
13113       case $host in
13114       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13115         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13116         ;;
13117       esac
13118     fi
13119   fi
13120
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13122 $as_echo "$ld_shlibs_GO" >&6; }
13123 test "$ld_shlibs_GO" = no && can_build_shared=no
13124
13125 with_gnu_ld_GO=$with_gnu_ld
13126
13127
13128
13129
13130
13131
13132 #
13133 # Do we need to explicitly link libc?
13134 #
13135 case "x$archive_cmds_need_lc_GO" in
13136 x|xyes)
13137   # Assume -lc should be added
13138   archive_cmds_need_lc_GO=yes
13139
13140   if test "$enable_shared" = yes && test "$GCC" = yes; then
13141     case $archive_cmds_GO in
13142     *'~'*)
13143       # FIXME: we may have to deal with multi-command sequences.
13144       ;;
13145     '$CC '*)
13146       # Test whether the compiler implicitly links with -lc since on some
13147       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13148       # to ld, don't add -lc before -lgcc.
13149       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13150 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13151 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13152   $as_echo_n "(cached) " >&6
13153 else
13154   $RM conftest*
13155         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13156
13157         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13158   (eval $ac_compile) 2>&5
13159   ac_status=$?
13160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161   test $ac_status = 0; } 2>conftest.err; then
13162           soname=conftest
13163           lib=conftest
13164           libobjs=conftest.$ac_objext
13165           deplibs=
13166           wl=$lt_prog_compiler_wl_GO
13167           pic_flag=$lt_prog_compiler_pic_GO
13168           compiler_flags=-v
13169           linker_flags=-v
13170           verstring=
13171           output_objdir=.
13172           libname=conftest
13173           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13174           allow_undefined_flag_GO=
13175           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13176   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13177   ac_status=$?
13178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179   test $ac_status = 0; }
13180           then
13181             lt_cv_archive_cmds_need_lc_GO=no
13182           else
13183             lt_cv_archive_cmds_need_lc_GO=yes
13184           fi
13185           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13186         else
13187           cat conftest.err 1>&5
13188         fi
13189         $RM conftest*
13190
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13193 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13194       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13195       ;;
13196     esac
13197   fi
13198   ;;
13199 esac
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13265 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13266 hardcode_action_GO=
13267 if test -n "$hardcode_libdir_flag_spec_GO" ||
13268    test -n "$runpath_var_GO" ||
13269    test "X$hardcode_automatic_GO" = "Xyes" ; then
13270
13271   # We can hardcode non-existent directories.
13272   if test "$hardcode_direct_GO" != no &&
13273      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13274      # have to relink, otherwise we might link with an installed library
13275      # when we should be linking with a yet-to-be-installed one
13276      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13277      test "$hardcode_minus_L_GO" != no; then
13278     # Linking always hardcodes the temporary library directory.
13279     hardcode_action_GO=relink
13280   else
13281     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13282     hardcode_action_GO=immediate
13283   fi
13284 else
13285   # We cannot hardcode anything, or else we can only hardcode existing
13286   # directories.
13287   hardcode_action_GO=unsupported
13288 fi
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13290 $as_echo "$hardcode_action_GO" >&6; }
13291
13292 if test "$hardcode_action_GO" = relink ||
13293    test "$inherit_rpath_GO" = yes; then
13294   # Fast installation is not supported
13295   enable_fast_install=no
13296 elif test "$shlibpath_overrides_runpath" = yes ||
13297      test "$enable_shared" = no; then
13298   # Fast installation is not necessary
13299   enable_fast_install=needless
13300 fi
13301
13302
13303
13304
13305
13306
13307
13308 fi
13309
13310 ac_ext=c
13311 ac_cpp='$CPP $CPPFLAGS'
13312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13315
13316
13317 GCC=$lt_save_GCC
13318 CC="$lt_save_CC"
13319
13320
13321
13322
13323         ac_config_commands="$ac_config_commands libtool"
13324
13325
13326
13327
13328 # Only expand once:
13329
13330
13331
13332
13333
13334 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13335
13336
13337 for ac_prog in gawk mawk nawk awk
13338 do
13339   # Extract the first word of "$ac_prog", so it can be a program name with args.
13340 set dummy $ac_prog; ac_word=$2
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342 $as_echo_n "checking for $ac_word... " >&6; }
13343 if test "${ac_cv_prog_AWK+set}" = set; then :
13344   $as_echo_n "(cached) " >&6
13345 else
13346   if test -n "$AWK"; then
13347   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13348 else
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in $PATH
13351 do
13352   IFS=$as_save_IFS
13353   test -z "$as_dir" && as_dir=.
13354     for ac_exec_ext in '' $ac_executable_extensions; do
13355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13356     ac_cv_prog_AWK="$ac_prog"
13357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358     break 2
13359   fi
13360 done
13361   done
13362 IFS=$as_save_IFS
13363
13364 fi
13365 fi
13366 AWK=$ac_cv_prog_AWK
13367 if test -n "$AWK"; then
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13369 $as_echo "$AWK" >&6; }
13370 else
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13373 fi
13374
13375
13376   test -n "$AWK" && break
13377 done
13378
13379
13380 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13381
13382
13383 WERROR="-Werror"
13384
13385
13386 glibgo_toolexecdir=no
13387 glibgo_toolexeclibdir=no
13388 glibgo_prefixdir=$prefix
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13391 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13392 # Check whether --enable-version-specific-runtime-libs was given.
13393 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13394   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13395     yes) version_specific_libs=yes ;;
13396     no)  version_specific_libs=no ;;
13397     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13398    esac
13399 else
13400   version_specific_libs=no
13401 fi
13402
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13404 $as_echo "$version_specific_libs" >&6; }
13405
13406 # Version-specific runtime libs processing.
13407 if test $version_specific_libs = yes; then
13408   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13409   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13410 fi
13411
13412 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13413 # Install a library built with a cross compiler in tooldir, not libdir.
13414 if test x"$glibgo_toolexecdir" = x"no"; then
13415   if test -n "$with_cross_host" &&
13416      test x"$with_cross_host" != x"no"; then
13417     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13418     glibgo_toolexeclibdir='${toolexecdir}/lib'
13419   else
13420     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13421     glibgo_toolexeclibdir='${libdir}'
13422   fi
13423   multi_os_directory=`$CC -print-multi-os-directory`
13424   case $multi_os_directory in
13425     .) ;; # Avoid trailing /.
13426     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13427   esac
13428 fi
13429
13430
13431
13432
13433
13434 # See if the user wants to configure without libffi.  Some
13435 # architectures don't support it.  FIXME: We should set a default
13436 # based on the host.
13437
13438 # Check whether --with-libffi was given.
13439 if test "${with_libffi+set}" = set; then :
13440   withval=$with_libffi; :
13441 else
13442   with_libffi=${with_libffi_default-yes}
13443 fi
13444
13445
13446 LIBFFI=
13447 LIBFFIINCS=
13448 if test "$with_libffi" != no; then
13449
13450 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13451
13452    LIBFFI=../libffi/libffi_convenience.la
13453    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13454 fi
13455
13456
13457
13458 is_darwin=no
13459 is_freebsd=no
13460 is_irix=no
13461 is_linux=no
13462 is_rtems=no
13463 is_solaris=no
13464 GOOS=unknown
13465 case ${host} in
13466   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13467   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13468   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13469   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13470   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13471   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13472 esac
13473  if test $is_darwin = yes; then
13474   LIBGO_IS_DARWIN_TRUE=
13475   LIBGO_IS_DARWIN_FALSE='#'
13476 else
13477   LIBGO_IS_DARWIN_TRUE='#'
13478   LIBGO_IS_DARWIN_FALSE=
13479 fi
13480
13481  if test $is_freebsd = yes; then
13482   LIBGO_IS_FREEBSD_TRUE=
13483   LIBGO_IS_FREEBSD_FALSE='#'
13484 else
13485   LIBGO_IS_FREEBSD_TRUE='#'
13486   LIBGO_IS_FREEBSD_FALSE=
13487 fi
13488
13489  if test $is_irix = yes; then
13490   LIBGO_IS_IRIX_TRUE=
13491   LIBGO_IS_IRIX_FALSE='#'
13492 else
13493   LIBGO_IS_IRIX_TRUE='#'
13494   LIBGO_IS_IRIX_FALSE=
13495 fi
13496
13497  if test $is_linux = yes; then
13498   LIBGO_IS_LINUX_TRUE=
13499   LIBGO_IS_LINUX_FALSE='#'
13500 else
13501   LIBGO_IS_LINUX_TRUE='#'
13502   LIBGO_IS_LINUX_FALSE=
13503 fi
13504
13505  if test $is_rtems = yes; then
13506   LIBGO_IS_RTEMS_TRUE=
13507   LIBGO_IS_RTEMS_FALSE='#'
13508 else
13509   LIBGO_IS_RTEMS_TRUE='#'
13510   LIBGO_IS_RTEMS_FALSE=
13511 fi
13512
13513  if test $is_solaris = yes; then
13514   LIBGO_IS_SOLARIS_TRUE=
13515   LIBGO_IS_SOLARIS_FALSE='#'
13516 else
13517   LIBGO_IS_SOLARIS_TRUE='#'
13518   LIBGO_IS_SOLARIS_FALSE=
13519 fi
13520
13521
13522
13523 is_386=no
13524 is_alpha=no
13525 is_arm=no
13526 is_m68k=no
13527 mips_abi=unknown
13528 is_ppc=no
13529 is_ppc64=no
13530 is_sparc=no
13531 is_sparc64=no
13532 is_x86_64=no
13533 GOARCH=unknown
13534 case ${host} in
13535   alpha*-*-*)
13536     is_alpha=yes
13537     GOARCH=alpha
13538     ;;
13539   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13540     is_arm=yes
13541     GOARCH=arm
13542     ;;
13543   i[34567]86-*-* | x86_64-*-*)
13544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h.  */
13546
13547 #ifdef __x86_64__
13548 #error 64-bit
13549 #endif
13550 _ACEOF
13551 if ac_fn_c_try_compile "$LINENO"; then :
13552   is_386=yes
13553 else
13554   is_x86_64=yes
13555 fi
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557     if test "$is_386" = "yes"; then
13558       GOARCH=386
13559     else
13560       GOARCH=amd64
13561     fi
13562     ;;
13563   m68k*-*-*)
13564     is_m68k=yes
13565     GOARCH=m68k
13566     ;;
13567   mips*-*-*)
13568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h.  */
13570
13571 #if _MIPS_SIM != _ABIO32
13572 #error not o32
13573 #endif
13574 _ACEOF
13575 if ac_fn_c_try_compile "$LINENO"; then :
13576   mips_abi="o32"
13577 else
13578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h.  */
13580
13581 #if _MIPS_SIM != _ABIN32
13582 #error not n32
13583 #endif
13584 _ACEOF
13585 if ac_fn_c_try_compile "$LINENO"; then :
13586   mips_abi="n32"
13587 else
13588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h.  */
13590
13591 #if _MIPS_SIM != _ABI64
13592 #error not n64
13593 #endif
13594 _ACEOF
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596   mips_abi="n64"
13597 else
13598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h.  */
13600
13601 #if _MIPS_SIM != _ABIO64
13602 #error not o64
13603 #endif
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606   mips_abi="o64"
13607 else
13608   as_fn_error "unknown MIPS ABI" "$LINENO" 5
13609 mips_abi="n32"
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 fi
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618     case "$mips_abi" in
13619     "o32") GOARCH=mipso32 ;;
13620     "n32") GOARCH=mipsn32 ;;
13621     "n64") GOARCH=mipsn64 ;;
13622     "o64") GOARCH=mipso64 ;;
13623     esac
13624     ;;
13625   rs6000*-*-* | powerpc*-*-*)
13626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h.  */
13628
13629 #ifdef _ARCH_PPC64
13630 #error 64-bit
13631 #endif
13632 _ACEOF
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634   is_ppc=yes
13635 else
13636   is_ppc64=yes
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639     if test "$is_ppc" = "yes"; then
13640       GOARCH=ppc
13641     else
13642       GOARCH=ppc64
13643     fi
13644     ;;
13645   sparc*-*-*)
13646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h.  */
13648
13649 #if defined(__sparcv9) || defined(__arch64__)
13650 #error 64-bit
13651 #endif
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654   is_sparc=yes
13655 else
13656   is_sparc64=yes
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659     if test "$is_sparc" = "yes"; then
13660       GOARCH=sparc
13661     else
13662       GOARCH=sparc64
13663     fi
13664     ;;
13665 esac
13666  if test $is_386 = yes; then
13667   LIBGO_IS_386_TRUE=
13668   LIBGO_IS_386_FALSE='#'
13669 else
13670   LIBGO_IS_386_TRUE='#'
13671   LIBGO_IS_386_FALSE=
13672 fi
13673
13674  if test $is_alpha = yes; then
13675   LIBGO_IS_ALPHA_TRUE=
13676   LIBGO_IS_ALPHA_FALSE='#'
13677 else
13678   LIBGO_IS_ALPHA_TRUE='#'
13679   LIBGO_IS_ALPHA_FALSE=
13680 fi
13681
13682  if test $is_arm = yes; then
13683   LIBGO_IS_ARM_TRUE=
13684   LIBGO_IS_ARM_FALSE='#'
13685 else
13686   LIBGO_IS_ARM_TRUE='#'
13687   LIBGO_IS_ARM_FALSE=
13688 fi
13689
13690  if test $is_m68k = yes; then
13691   LIBGO_IS_M68K_TRUE=
13692   LIBGO_IS_M68K_FALSE='#'
13693 else
13694   LIBGO_IS_M68K_TRUE='#'
13695   LIBGO_IS_M68K_FALSE=
13696 fi
13697
13698  if test $mips_abi != unknown; then
13699   LIBGO_IS_MIPS_TRUE=
13700   LIBGO_IS_MIPS_FALSE='#'
13701 else
13702   LIBGO_IS_MIPS_TRUE='#'
13703   LIBGO_IS_MIPS_FALSE=
13704 fi
13705
13706  if test $mips_abi = o32; then
13707   LIBGO_IS_MIPSO32_TRUE=
13708   LIBGO_IS_MIPSO32_FALSE='#'
13709 else
13710   LIBGO_IS_MIPSO32_TRUE='#'
13711   LIBGO_IS_MIPSO32_FALSE=
13712 fi
13713
13714  if test $mips_abi = n32; then
13715   LIBGO_IS_MIPSN32_TRUE=
13716   LIBGO_IS_MIPSN32_FALSE='#'
13717 else
13718   LIBGO_IS_MIPSN32_TRUE='#'
13719   LIBGO_IS_MIPSN32_FALSE=
13720 fi
13721
13722  if test $mips_abi = n64; then
13723   LIBGO_IS_MIPSN64_TRUE=
13724   LIBGO_IS_MIPSN64_FALSE='#'
13725 else
13726   LIBGO_IS_MIPSN64_TRUE='#'
13727   LIBGO_IS_MIPSN64_FALSE=
13728 fi
13729
13730  if test $mips_abi = o64; then
13731   LIBGO_IS_MIPSO64_TRUE=
13732   LIBGO_IS_MIPSO64_FALSE='#'
13733 else
13734   LIBGO_IS_MIPSO64_TRUE='#'
13735   LIBGO_IS_MIPSO64_FALSE=
13736 fi
13737
13738  if test $is_ppc = yes; then
13739   LIBGO_IS_PPC_TRUE=
13740   LIBGO_IS_PPC_FALSE='#'
13741 else
13742   LIBGO_IS_PPC_TRUE='#'
13743   LIBGO_IS_PPC_FALSE=
13744 fi
13745
13746  if test $is_ppc64 = yes; then
13747   LIBGO_IS_PPC64_TRUE=
13748   LIBGO_IS_PPC64_FALSE='#'
13749 else
13750   LIBGO_IS_PPC64_TRUE='#'
13751   LIBGO_IS_PPC64_FALSE=
13752 fi
13753
13754  if test $is_sparc = yes; then
13755   LIBGO_IS_SPARC_TRUE=
13756   LIBGO_IS_SPARC_FALSE='#'
13757 else
13758   LIBGO_IS_SPARC_TRUE='#'
13759   LIBGO_IS_SPARC_FALSE=
13760 fi
13761
13762  if test $is_sparc64 = yes; then
13763   LIBGO_IS_SPARC64_TRUE=
13764   LIBGO_IS_SPARC64_FALSE='#'
13765 else
13766   LIBGO_IS_SPARC64_TRUE='#'
13767   LIBGO_IS_SPARC64_FALSE=
13768 fi
13769
13770  if test $is_x86_64 = yes; then
13771   LIBGO_IS_X86_64_TRUE=
13772   LIBGO_IS_X86_64_FALSE='#'
13773 else
13774   LIBGO_IS_X86_64_TRUE='#'
13775   LIBGO_IS_X86_64_FALSE=
13776 fi
13777
13778
13779
13780 GO_LIBCALL_OS_FILE=
13781 GO_LIBCALL_OS_ARCH_FILE=
13782 GO_SYSCALL_OS_FILE=
13783 GO_SYSCALL_OS_ARCH_FILE=
13784 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13785   GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13786 fi
13787 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13788   GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13789 fi
13790 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13791   GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13792 fi
13793 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13794   GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13795 fi
13796
13797
13798
13799
13800
13801 case "$target" in
13802     mips-sgi-irix6.5*)
13803         # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13804         # msghdr in <sys/socket.h>.
13805         OSCFLAGS='-D_XOPEN_SOURCE=500'
13806         ;;
13807     *-*-solaris2.[89])
13808         # Solaris 8/9 need this so struct msghdr gets the msg_control
13809         # etc. fields in <sys/socket.h> (_XPG4_2).
13810         OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13811         ;;
13812     *-*-solaris2.1[01])
13813         # Solaris 10+ needs this so struct msghdr gets the msg_control
13814         # etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=500 as
13815         # above doesn't work with C99.
13816         OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13817         ;;
13818 esac
13819
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13822 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13823 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13824   $as_echo_n "(cached) " >&6
13825 else
13826   CFLAGS_hold=$CFLAGS
13827 CFLAGS="$CFLAGS -fsplit-stack"
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h.  */
13830 int i;
13831 _ACEOF
13832 if ac_fn_c_try_compile "$LINENO"; then :
13833   libgo_cv_c_split_stack_supported=yes
13834 else
13835   libgo_cv_c_split_stack_supported=no
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 CFLAGS=$CFLAGS_hold
13839 fi
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13841 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13842 if test "$libgo_cv_c_split_stack_supported" = yes; then
13843   SPLIT_STACK=-fsplit-stack
13844
13845 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13846
13847 else
13848   SPLIT_STACK=
13849 fi
13850
13851  if test "$libgo_cv_c_split_stack_supported" = yes; then
13852   USING_SPLIT_STACK_TRUE=
13853   USING_SPLIT_STACK_FALSE='#'
13854 else
13855   USING_SPLIT_STACK_TRUE='#'
13856   USING_SPLIT_STACK_FALSE=
13857 fi
13858
13859
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13861 $as_echo_n "checking whether linker supports split stack... " >&6; }
13862 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13863   $as_echo_n "(cached) " >&6
13864 else
13865   libgo_cv_c_linker_supports_split_stack=no
13866 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13867   libgo_cv_c_linker_supports_split_stack=yes
13868 fi
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13871 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13872 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13873
13874 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13875
13876 fi
13877
13878 MATH_LIBS=
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13880 $as_echo_n "checking for sqrt in -lm... " >&6; }
13881 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13882   $as_echo_n "(cached) " >&6
13883 else
13884   ac_check_lib_save_LIBS=$LIBS
13885 LIBS="-lm  $LIBS"
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h.  */
13888
13889 /* Override any GCC internal prototype to avoid an error.
13890    Use char because int might match the return type of a GCC
13891    builtin and then its argument prototype would still apply.  */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 char sqrt ();
13896 int
13897 main ()
13898 {
13899 return sqrt ();
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 if ac_fn_c_try_link "$LINENO"; then :
13905   ac_cv_lib_m_sqrt=yes
13906 else
13907   ac_cv_lib_m_sqrt=no
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext \
13910     conftest$ac_exeext conftest.$ac_ext
13911 LIBS=$ac_check_lib_save_LIBS
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13914 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13915 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13916   MATH_LIBS=-lm
13917 fi
13918
13919
13920
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13922 $as_echo_n "checking for socket libraries... " >&6; }
13923 if test "${libgo_cv_lib_sockets+set}" = set; then :
13924   $as_echo_n "(cached) " >&6
13925 else
13926   libgo_cv_lib_sockets=
13927    libgo_check_both=no
13928    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13929 if test "x$ac_cv_func_connect" = x""yes; then :
13930   libgo_check_socket=no
13931 else
13932   libgo_check_socket=yes
13933 fi
13934
13935    if test "$libgo_check_socket" = "yes"; then
13936      unset ac_cv_func_connect
13937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13938 $as_echo_n "checking for main in -lsocket... " >&6; }
13939 if test "${ac_cv_lib_socket_main+set}" = set; then :
13940   $as_echo_n "(cached) " >&6
13941 else
13942   ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lsocket  $LIBS"
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h.  */
13946
13947
13948 int
13949 main ()
13950 {
13951 return main ();
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 if ac_fn_c_try_link "$LINENO"; then :
13957   ac_cv_lib_socket_main=yes
13958 else
13959   ac_cv_lib_socket_main=no
13960 fi
13961 rm -f core conftest.err conftest.$ac_objext \
13962     conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13966 $as_echo "$ac_cv_lib_socket_main" >&6; }
13967 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13968   libgo_cv_lib_sockets="-lsocket"
13969 else
13970   libgo_check_both=yes
13971 fi
13972
13973    fi
13974    if test "$libgo_check_both" = "yes"; then
13975      libgo_old_libs=$LIBS
13976      LIBS="$LIBS -lsocket -lnsl"
13977      unset ac_cv_func_accept
13978      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13979 if test "x$ac_cv_func_accept" = x""yes; then :
13980   libgo_check_nsl=no
13981                     libgo_cv_lib_sockets="-lsocket -lnsl"
13982 fi
13983
13984      unset ac_cv_func_accept
13985      LIBS=$libgo_old_libs
13986    fi
13987    unset ac_cv_func_gethostbyname
13988    libgo_old_libs="$LIBS"
13989    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13990 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13991
13992 else
13993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13994 $as_echo_n "checking for main in -lnsl... " >&6; }
13995 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13996   $as_echo_n "(cached) " >&6
13997 else
13998   ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-lnsl  $LIBS"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h.  */
14002
14003
14004 int
14005 main ()
14006 {
14007 return main ();
14008   ;
14009   return 0;
14010 }
14011 _ACEOF
14012 if ac_fn_c_try_link "$LINENO"; then :
14013   ac_cv_lib_nsl_main=yes
14014 else
14015   ac_cv_lib_nsl_main=no
14016 fi
14017 rm -f core conftest.err conftest.$ac_objext \
14018     conftest$ac_exeext conftest.$ac_ext
14019 LIBS=$ac_check_lib_save_LIBS
14020 fi
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14022 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14023 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14024   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14025 fi
14026
14027 fi
14028
14029    unset ac_cv_func_gethostbyname
14030    LIBS=$libgo_old_libs
14031
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14034 $as_echo "$libgo_cv_lib_sockets" >&6; }
14035 NET_LIBS="$libgo_cv_lib_sockets"
14036
14037
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14039 $as_echo_n "checking whether -pthread is supported... " >&6; }
14040 if test "${libgo_cv_lib_pthread+set}" = set; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   CFLAGS_hold=$CFLAGS
14044 CFLAGS="$CFLAGS -pthread"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h.  */
14047 int i;
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050   libgo_cv_lib_pthread=yes
14051 else
14052   libgo_cv_lib_pthread=no
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 CFLAGS=$CFLAGS_hold
14056 fi
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14058 $as_echo "$libgo_cv_lib_pthread" >&6; }
14059 PTHREAD_CFLAGS=
14060 if test "$libgo_cv_lib_pthread" = yes; then
14061   PTHREAD_CFLAGS=-pthread
14062 fi
14063
14064
14065 PTHREAD_LIBS=
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14067 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14068 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   ac_check_lib_save_LIBS=$LIBS
14072 LIBS="-lpthread  $LIBS"
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h.  */
14075
14076 /* Override any GCC internal prototype to avoid an error.
14077    Use char because int might match the return type of a GCC
14078    builtin and then its argument prototype would still apply.  */
14079 #ifdef __cplusplus
14080 extern "C"
14081 #endif
14082 char pthread_create ();
14083 int
14084 main ()
14085 {
14086 return pthread_create ();
14087   ;
14088   return 0;
14089 }
14090 _ACEOF
14091 if ac_fn_c_try_link "$LINENO"; then :
14092   ac_cv_lib_pthread_pthread_create=yes
14093 else
14094   ac_cv_lib_pthread_pthread_create=no
14095 fi
14096 rm -f core conftest.err conftest.$ac_objext \
14097     conftest$ac_exeext conftest.$ac_ext
14098 LIBS=$ac_check_lib_save_LIBS
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14101 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14102 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14103   PTHREAD_LIBS=-lpthread
14104 fi
14105
14106
14107
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14109 $as_echo_n "checking for library containing sched_yield... " >&6; }
14110 if test "${ac_cv_search_sched_yield+set}" = set; then :
14111   $as_echo_n "(cached) " >&6
14112 else
14113   ac_func_search_save_LIBS=$LIBS
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h.  */
14116
14117 /* Override any GCC internal prototype to avoid an error.
14118    Use char because int might match the return type of a GCC
14119    builtin and then its argument prototype would still apply.  */
14120 #ifdef __cplusplus
14121 extern "C"
14122 #endif
14123 char sched_yield ();
14124 int
14125 main ()
14126 {
14127 return sched_yield ();
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 for ac_lib in '' rt; do
14133   if test -z "$ac_lib"; then
14134     ac_res="none required"
14135   else
14136     ac_res=-l$ac_lib
14137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14138   fi
14139   if ac_fn_c_try_link "$LINENO"; then :
14140   ac_cv_search_sched_yield=$ac_res
14141 fi
14142 rm -f core conftest.err conftest.$ac_objext \
14143     conftest$ac_exeext
14144   if test "${ac_cv_search_sched_yield+set}" = set; then :
14145   break
14146 fi
14147 done
14148 if test "${ac_cv_search_sched_yield+set}" = set; then :
14149
14150 else
14151   ac_cv_search_sched_yield=no
14152 fi
14153 rm conftest.$ac_ext
14154 LIBS=$ac_func_search_save_LIBS
14155 fi
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14157 $as_echo "$ac_cv_search_sched_yield" >&6; }
14158 ac_res=$ac_cv_search_sched_yield
14159 if test "$ac_res" != no; then :
14160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14161
14162 fi
14163
14164
14165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14166 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14167 if test "${ac_cv_c_bigendian+set}" = set; then :
14168   $as_echo_n "(cached) " >&6
14169 else
14170   ac_cv_c_bigendian=unknown
14171     # See if we're dealing with a universal compiler.
14172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h.  */
14174 #ifndef __APPLE_CC__
14175                not a universal capable compiler
14176              #endif
14177              typedef int dummy;
14178
14179 _ACEOF
14180 if ac_fn_c_try_compile "$LINENO"; then :
14181
14182         # Check for potential -arch flags.  It is not universal unless
14183         # there are at least two -arch flags with different values.
14184         ac_arch=
14185         ac_prev=
14186         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14187          if test -n "$ac_prev"; then
14188            case $ac_word in
14189              i?86 | x86_64 | ppc | ppc64)
14190                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14191                  ac_arch=$ac_word
14192                else
14193                  ac_cv_c_bigendian=universal
14194                  break
14195                fi
14196                ;;
14197            esac
14198            ac_prev=
14199          elif test "x$ac_word" = "x-arch"; then
14200            ac_prev=arch
14201          fi
14202        done
14203 fi
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205     if test $ac_cv_c_bigendian = unknown; then
14206       # See if sys/param.h defines the BYTE_ORDER macro.
14207       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h.  */
14209 #include <sys/types.h>
14210              #include <sys/param.h>
14211
14212 int
14213 main ()
14214 {
14215 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14216                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14217                      && LITTLE_ENDIAN)
14218               bogus endian macros
14219              #endif
14220
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226   # It does; now see whether it defined to BIG_ENDIAN or not.
14227          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h.  */
14229 #include <sys/types.h>
14230                 #include <sys/param.h>
14231
14232 int
14233 main ()
14234 {
14235 #if BYTE_ORDER != BIG_ENDIAN
14236                  not big endian
14237                 #endif
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_c_try_compile "$LINENO"; then :
14244   ac_cv_c_bigendian=yes
14245 else
14246   ac_cv_c_bigendian=no
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 fi
14250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251     fi
14252     if test $ac_cv_c_bigendian = unknown; then
14253       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14254       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h.  */
14256 #include <limits.h>
14257
14258 int
14259 main ()
14260 {
14261 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14262               bogus endian macros
14263              #endif
14264
14265   ;
14266   return 0;
14267 }
14268 _ACEOF
14269 if ac_fn_c_try_compile "$LINENO"; then :
14270   # It does; now see whether it defined to _BIG_ENDIAN or not.
14271          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h.  */
14273 #include <limits.h>
14274
14275 int
14276 main ()
14277 {
14278 #ifndef _BIG_ENDIAN
14279                  not big endian
14280                 #endif
14281
14282   ;
14283   return 0;
14284 }
14285 _ACEOF
14286 if ac_fn_c_try_compile "$LINENO"; then :
14287   ac_cv_c_bigendian=yes
14288 else
14289   ac_cv_c_bigendian=no
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294     fi
14295     if test $ac_cv_c_bigendian = unknown; then
14296       # Compile a test program.
14297       if test "$cross_compiling" = yes; then :
14298   # Try to guess by grepping values from an object file.
14299          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h.  */
14301 short int ascii_mm[] =
14302                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14303                 short int ascii_ii[] =
14304                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14305                 int use_ascii (int i) {
14306                   return ascii_mm[i] + ascii_ii[i];
14307                 }
14308                 short int ebcdic_ii[] =
14309                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14310                 short int ebcdic_mm[] =
14311                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14312                 int use_ebcdic (int i) {
14313                   return ebcdic_mm[i] + ebcdic_ii[i];
14314                 }
14315                 extern int foo;
14316
14317 int
14318 main ()
14319 {
14320 return use_ascii (foo) == use_ebcdic (foo);
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_c_try_compile "$LINENO"; then :
14326   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14327               ac_cv_c_bigendian=yes
14328             fi
14329             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14330               if test "$ac_cv_c_bigendian" = unknown; then
14331                 ac_cv_c_bigendian=no
14332               else
14333                 # finding both strings is unlikely to happen, but who knows?
14334                 ac_cv_c_bigendian=unknown
14335               fi
14336             fi
14337 fi
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 else
14340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 int
14344 main ()
14345 {
14346
14347              /* Are we little or big endian?  From Harbison&Steele.  */
14348              union
14349              {
14350                long int l;
14351                char c[sizeof (long int)];
14352              } u;
14353              u.l = 1;
14354              return u.c[sizeof (long int) - 1] == 1;
14355
14356   ;
14357   return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_run "$LINENO"; then :
14361   ac_cv_c_bigendian=no
14362 else
14363   ac_cv_c_bigendian=yes
14364 fi
14365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14366   conftest.$ac_objext conftest.beam conftest.$ac_ext
14367 fi
14368
14369     fi
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14372 $as_echo "$ac_cv_c_bigendian" >&6; }
14373  case $ac_cv_c_bigendian in #(
14374    yes)
14375      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14376 ;; #(
14377    no)
14378       ;; #(
14379    universal)
14380
14381 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14382
14383      ;; #(
14384    *)
14385      as_fn_error "unknown endianness
14386  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14387  esac
14388
14389
14390
14391
14392 # Check whether --with-system-libunwind was given.
14393 if test "${with_system_libunwind+set}" = set; then :
14394   withval=$with_system_libunwind;
14395 fi
14396
14397   # If system-libunwind was not specifically set, pick a default setting.
14398   if test x$with_system_libunwind = x; then
14399     case ${target} in
14400       ia64-*-hpux*) with_system_libunwind=yes ;;
14401       *) with_system_libunwind=no ;;
14402     esac
14403   fi
14404   # Based on system-libunwind and target, do we have ipinfo?
14405   if  test x$with_system_libunwind = xyes; then
14406     case ${target} in
14407       ia64-*-*) have_unwind_getipinfo=no ;;
14408       *) have_unwind_getipinfo=yes ;;
14409     esac
14410   else
14411     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14412
14413     case ${target} in
14414       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14415       *) have_unwind_getipinfo=yes ;;
14416     esac
14417
14418   fi
14419
14420   if test x$have_unwind_getipinfo = xyes; then
14421
14422 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14423
14424   fi
14425
14426
14427 # Check whether --enable-sjlj-exceptions was given.
14428 if test "${enable_sjlj_exceptions+set}" = set; then :
14429   enableval=$enable_sjlj_exceptions; case "$enableval" in
14430    yes|no|auto) ;;
14431    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14432    esac
14433 else
14434   enable_sjlj_exceptions=auto
14435 fi
14436
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14439 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14440 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14441   $as_echo_n "(cached) " >&6
14442 else
14443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h.  */
14445
14446 void bar ();
14447 void clean (int *);
14448 void foo ()
14449 {
14450   int i __attribute__ ((cleanup (clean)));
14451   bar();
14452 }
14453
14454 _ACEOF
14455 CFLAGS_hold=$CFLAGS
14456 CFLAGS="--save-temps -fexceptions"
14457 libgo_cv_lib_sjlj_exceptions=unknown
14458 if ac_fn_c_try_compile; then :
14459   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14460     libgo_cv_lib_sjlj_exceptions=yes
14461   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14462     libgo_cv_lib_sjlj_exceptions=no
14463   fi
14464 fi
14465 CFLAGS=$CFLAGS_hold
14466 rm -f conftest*
14467
14468 fi
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14470 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14471
14472 if test "$enable_sjlj_exceptions" = "auto"; then
14473   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14474 fi
14475
14476 case $enable_sjlj_exceptions in
14477 yes)
14478
14479 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14480
14481   ;;
14482 no)
14483   ;;
14484 *)
14485   as_fn_error "unable to detect exception model" "$LINENO" 5
14486   ;;
14487 esac
14488
14489 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 sys/socket.h net/if.h
14490 do :
14491   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14492 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14493 eval as_val=\$$as_ac_Header
14494    if test "x$as_val" = x""yes; then :
14495   cat >>confdefs.h <<_ACEOF
14496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14497 _ACEOF
14498
14499 fi
14500
14501 done
14502
14503
14504 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14505 do :
14506   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14507 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14508 #include <sys/socket.h>
14509 #endif
14510
14511 "
14512 eval as_val=\$$as_ac_Header
14513    if test "x$as_val" = x""yes; then :
14514   cat >>confdefs.h <<_ACEOF
14515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14516 _ACEOF
14517
14518 fi
14519
14520 done
14521
14522
14523  if test "$ac_cv_header_sys_mman_h" = yes; then
14524   HAVE_SYS_MMAN_H_TRUE=
14525   HAVE_SYS_MMAN_H_FALSE='#'
14526 else
14527   HAVE_SYS_MMAN_H_TRUE='#'
14528   HAVE_SYS_MMAN_H_FALSE=
14529 fi
14530
14531
14532 for ac_func in srandom random strerror_r strsignal wait4 mincore setenv
14533 do :
14534   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14536 eval as_val=\$$as_ac_var
14537    if test "x$as_val" = x""yes; then :
14538   cat >>confdefs.h <<_ACEOF
14539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14540 _ACEOF
14541
14542 fi
14543 done
14544
14545  if test "$ac_cv_func_strerror_r" = yes; then
14546   HAVE_STRERROR_R_TRUE=
14547   HAVE_STRERROR_R_FALSE='#'
14548 else
14549   HAVE_STRERROR_R_TRUE='#'
14550   HAVE_STRERROR_R_FALSE=
14551 fi
14552
14553  if test "$ac_cv_func_wait4" = yes; then
14554   HAVE_WAIT4_TRUE=
14555   HAVE_WAIT4_FALSE='#'
14556 else
14557   HAVE_WAIT4_TRUE='#'
14558   HAVE_WAIT4_FALSE=
14559 fi
14560
14561
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14563 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14564 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h.  */
14569
14570 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14571 uint32 i;
14572 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14573
14574 _ACEOF
14575 if ac_fn_c_try_link "$LINENO"; then :
14576   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14577 else
14578   libgo_cv_func___sync_bool_compare_and_swap_4=no
14579 fi
14580 rm -f core conftest.err conftest.$ac_objext \
14581     conftest$ac_exeext conftest.$ac_ext
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14584 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14585 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14586
14587 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14588
14589 fi
14590
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14592 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14593 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14594   $as_echo_n "(cached) " >&6
14595 else
14596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h.  */
14598
14599 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14600 uint32 i;
14601 int main() { return __sync_fetch_and_add (&i, 1); }
14602
14603 _ACEOF
14604 if ac_fn_c_try_link "$LINENO"; then :
14605   libgo_cv_func___sync_fetch_and_add_4=yes
14606 else
14607   libgo_cv_func___sync_fetch_and_add_4=no
14608 fi
14609 rm -f core conftest.err conftest.$ac_objext \
14610     conftest$ac_exeext conftest.$ac_ext
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14613 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14614 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14615
14616 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14617
14618 fi
14619
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14621 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14622 if test "${libgo_cv_c_stringops+set}" = set; then :
14623   $as_echo_n "(cached) " >&6
14624 else
14625   CFLAGS_hold=$CFLAGS
14626 CFLAGS="$CFLAGS -minline-all-stringops"
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h.  */
14629 int i;
14630 _ACEOF
14631 if ac_fn_c_try_compile "$LINENO"; then :
14632   libgo_cv_c_stringops=yes
14633 else
14634   libgo_cv_c_stringops=no
14635 fi
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 CFLAGS=$CFLAGS_hold
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14640 $as_echo "$libgo_cv_c_stringops" >&6; }
14641 STRINGOPS_FLAG=
14642 if test "$libgo_cv_c_stringops" = yes; then
14643   STRINGOPS_FLAG=-minline-all-stringops
14644 fi
14645
14646
14647 CFLAGS_hold=$CFLAGS
14648 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14649 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14650 if test "x$ac_cv_type_off64_t" = x""yes; then :
14651
14652 cat >>confdefs.h <<_ACEOF
14653 #define HAVE_OFF64_T 1
14654 _ACEOF
14655
14656
14657 fi
14658
14659 CFLAGS=$CFLAGS_hold
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14662 $as_echo_n "checking epoll_event size... " >&6; }
14663 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14664   $as_echo_n "(cached) " >&6
14665 else
14666   if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size"        "#include <sys/epoll.h>"; then :
14667
14668 else
14669   libgo_cv_c_epoll_event_size=0
14670 fi
14671
14672 fi
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14674 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14675 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14676
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14679 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14680 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14681   $as_echo_n "(cached) " >&6
14682 else
14683   if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset"        "#include <stddef.h>
14684 #include <sys/epoll.h>"; then :
14685
14686 else
14687   libgo_cv_c_epoll_event_fd_offset=0
14688 fi
14689
14690 fi
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14692 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14693 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14694
14695
14696 cat >confcache <<\_ACEOF
14697 # This file is a shell script that caches the results of configure
14698 # tests run on this system so they can be shared between configure
14699 # scripts and configure runs, see configure's option --config-cache.
14700 # It is not useful on other systems.  If it contains results you don't
14701 # want to keep, you may remove or edit it.
14702 #
14703 # config.status only pays attention to the cache file if you give it
14704 # the --recheck option to rerun configure.
14705 #
14706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14708 # following values.
14709
14710 _ACEOF
14711
14712 # The following way of writing the cache mishandles newlines in values,
14713 # but we know of no workaround that is simple, portable, and efficient.
14714 # So, we kill variables containing newlines.
14715 # Ultrix sh set writes to stderr and can't be redirected directly,
14716 # and sets the high bit in the cache file unless we assign to the vars.
14717 (
14718   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14719     eval ac_val=\$$ac_var
14720     case $ac_val in #(
14721     *${as_nl}*)
14722       case $ac_var in #(
14723       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14724 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14725       esac
14726       case $ac_var in #(
14727       _ | IFS | as_nl) ;; #(
14728       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14729       *) { eval $ac_var=; unset $ac_var;} ;;
14730       esac ;;
14731     esac
14732   done
14733
14734   (set) 2>&1 |
14735     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14736     *${as_nl}ac_space=\ *)
14737       # `set' does not quote correctly, so add quotes: double-quote
14738       # substitution turns \\\\ into \\, and sed turns \\ into \.
14739       sed -n \
14740         "s/'/'\\\\''/g;
14741           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14742       ;; #(
14743     *)
14744       # `set' quotes correctly as required by POSIX, so do not add quotes.
14745       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14746       ;;
14747     esac |
14748     sort
14749 ) |
14750   sed '
14751      /^ac_cv_env_/b end
14752      t clear
14753      :clear
14754      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14755      t end
14756      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14757      :end' >>confcache
14758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14759   if test -w "$cache_file"; then
14760     test "x$cache_file" != "x/dev/null" &&
14761       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14762 $as_echo "$as_me: updating cache $cache_file" >&6;}
14763     cat confcache >$cache_file
14764   else
14765     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14767   fi
14768 fi
14769 rm -f confcache
14770
14771 if test ${multilib} = yes; then
14772   multilib_arg="--enable-multilib"
14773 else
14774   multilib_arg=
14775 fi
14776
14777 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14778
14779
14780 ac_config_commands="$ac_config_commands default"
14781
14782
14783 cat >confcache <<\_ACEOF
14784 # This file is a shell script that caches the results of configure
14785 # tests run on this system so they can be shared between configure
14786 # scripts and configure runs, see configure's option --config-cache.
14787 # It is not useful on other systems.  If it contains results you don't
14788 # want to keep, you may remove or edit it.
14789 #
14790 # config.status only pays attention to the cache file if you give it
14791 # the --recheck option to rerun configure.
14792 #
14793 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14794 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14795 # following values.
14796
14797 _ACEOF
14798
14799 # The following way of writing the cache mishandles newlines in values,
14800 # but we know of no workaround that is simple, portable, and efficient.
14801 # So, we kill variables containing newlines.
14802 # Ultrix sh set writes to stderr and can't be redirected directly,
14803 # and sets the high bit in the cache file unless we assign to the vars.
14804 (
14805   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14806     eval ac_val=\$$ac_var
14807     case $ac_val in #(
14808     *${as_nl}*)
14809       case $ac_var in #(
14810       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14812       esac
14813       case $ac_var in #(
14814       _ | IFS | as_nl) ;; #(
14815       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14816       *) { eval $ac_var=; unset $ac_var;} ;;
14817       esac ;;
14818     esac
14819   done
14820
14821   (set) 2>&1 |
14822     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14823     *${as_nl}ac_space=\ *)
14824       # `set' does not quote correctly, so add quotes: double-quote
14825       # substitution turns \\\\ into \\, and sed turns \\ into \.
14826       sed -n \
14827         "s/'/'\\\\''/g;
14828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14829       ;; #(
14830     *)
14831       # `set' quotes correctly as required by POSIX, so do not add quotes.
14832       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14833       ;;
14834     esac |
14835     sort
14836 ) |
14837   sed '
14838      /^ac_cv_env_/b end
14839      t clear
14840      :clear
14841      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14842      t end
14843      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14844      :end' >>confcache
14845 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14846   if test -w "$cache_file"; then
14847     test "x$cache_file" != "x/dev/null" &&
14848       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14849 $as_echo "$as_me: updating cache $cache_file" >&6;}
14850     cat confcache >$cache_file
14851   else
14852     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14853 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14854   fi
14855 fi
14856 rm -f confcache
14857
14858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14859 # Let make expand exec_prefix.
14860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14861
14862 DEFS=-DHAVE_CONFIG_H
14863
14864 ac_libobjs=
14865 ac_ltlibobjs=
14866 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14867   # 1. Remove the extension, and $U if already installed.
14868   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14869   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14870   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14871   #    will be set to the directory where LIBOBJS objects are built.
14872   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14873   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14874 done
14875 LIBOBJS=$ac_libobjs
14876
14877 LTLIBOBJS=$ac_ltlibobjs
14878
14879
14880  if test -n "$EXEEXT"; then
14881   am__EXEEXT_TRUE=
14882   am__EXEEXT_FALSE='#'
14883 else
14884   am__EXEEXT_TRUE='#'
14885   am__EXEEXT_FALSE=
14886 fi
14887
14888 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14889   as_fn_error "conditional \"AMDEP\" was never defined.
14890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14891 fi
14892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14893   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14895 fi
14896 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14897   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14899 fi
14900 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14901   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14903 fi
14904 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14905   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14907 fi
14908 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14909   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14911 fi
14912 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14913   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14915 fi
14916 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14917   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14919 fi
14920 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14921   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14923 fi
14924 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14925   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14927 fi
14928 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14929   as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14931 fi
14932 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14933   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14935 fi
14936 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14937   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14939 fi
14940 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14941   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14943 fi
14944 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14945   as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14947 fi
14948 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14949   as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14951 fi
14952 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14953   as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955 fi
14956 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14957   as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 fi
14960 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14961   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 fi
14964 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14965   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 fi
14968 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14969   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 fi
14972 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14973   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 fi
14976 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14977   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 fi
14980 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14981   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 fi
14984
14985 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14986   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14988 fi
14989 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14990   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14992 fi
14993 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14994   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14996 fi
14997
14998 : ${CONFIG_STATUS=./config.status}
14999 ac_write_fail=0
15000 ac_clean_files_save=$ac_clean_files
15001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15003 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15004 as_write_fail=0
15005 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15006 #! $SHELL
15007 # Generated by $as_me.
15008 # Run this file to recreate the current configuration.
15009 # Compiler output produced by configure, useful for debugging
15010 # configure, is in config.log if it exists.
15011
15012 debug=false
15013 ac_cs_recheck=false
15014 ac_cs_silent=false
15015
15016 SHELL=\${CONFIG_SHELL-$SHELL}
15017 export SHELL
15018 _ASEOF
15019 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15020 ## -------------------- ##
15021 ## M4sh Initialization. ##
15022 ## -------------------- ##
15023
15024 # Be more Bourne compatible
15025 DUALCASE=1; export DUALCASE # for MKS sh
15026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15027   emulate sh
15028   NULLCMD=:
15029   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15030   # is contrary to our usage.  Disable this feature.
15031   alias -g '${1+"$@"}'='"$@"'
15032   setopt NO_GLOB_SUBST
15033 else
15034   case `(set -o) 2>/dev/null` in #(
15035   *posix*) :
15036     set -o posix ;; #(
15037   *) :
15038      ;;
15039 esac
15040 fi
15041
15042
15043 as_nl='
15044 '
15045 export as_nl
15046 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15047 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15050 # Prefer a ksh shell builtin over an external printf program on Solaris,
15051 # but without wasting forks for bash or zsh.
15052 if test -z "$BASH_VERSION$ZSH_VERSION" \
15053     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15054   as_echo='print -r --'
15055   as_echo_n='print -rn --'
15056 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15057   as_echo='printf %s\n'
15058   as_echo_n='printf %s'
15059 else
15060   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15061     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15062     as_echo_n='/usr/ucb/echo -n'
15063   else
15064     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15065     as_echo_n_body='eval
15066       arg=$1;
15067       case $arg in #(
15068       *"$as_nl"*)
15069         expr "X$arg" : "X\\(.*\\)$as_nl";
15070         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15071       esac;
15072       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15073     '
15074     export as_echo_n_body
15075     as_echo_n='sh -c $as_echo_n_body as_echo'
15076   fi
15077   export as_echo_body
15078   as_echo='sh -c $as_echo_body as_echo'
15079 fi
15080
15081 # The user is always right.
15082 if test "${PATH_SEPARATOR+set}" != set; then
15083   PATH_SEPARATOR=:
15084   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15085     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15086       PATH_SEPARATOR=';'
15087   }
15088 fi
15089
15090
15091 # IFS
15092 # We need space, tab and new line, in precisely that order.  Quoting is
15093 # there to prevent editors from complaining about space-tab.
15094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15095 # splitting by setting IFS to empty value.)
15096 IFS=" ""        $as_nl"
15097
15098 # Find who we are.  Look in the path if we contain no directory separator.
15099 case $0 in #((
15100   *[\\/]* ) as_myself=$0 ;;
15101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15102 for as_dir in $PATH
15103 do
15104   IFS=$as_save_IFS
15105   test -z "$as_dir" && as_dir=.
15106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15107   done
15108 IFS=$as_save_IFS
15109
15110      ;;
15111 esac
15112 # We did not find ourselves, most probably we were run as `sh COMMAND'
15113 # in which case we are not to be found in the path.
15114 if test "x$as_myself" = x; then
15115   as_myself=$0
15116 fi
15117 if test ! -f "$as_myself"; then
15118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15119   exit 1
15120 fi
15121
15122 # Unset variables that we do not need and which cause bugs (e.g. in
15123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15124 # suppresses any "Segmentation fault" message there.  '((' could
15125 # trigger a bug in pdksh 5.2.14.
15126 for as_var in BASH_ENV ENV MAIL MAILPATH
15127 do eval test x\${$as_var+set} = xset \
15128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15129 done
15130 PS1='$ '
15131 PS2='> '
15132 PS4='+ '
15133
15134 # NLS nuisances.
15135 LC_ALL=C
15136 export LC_ALL
15137 LANGUAGE=C
15138 export LANGUAGE
15139
15140 # CDPATH.
15141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15142
15143
15144 # as_fn_error ERROR [LINENO LOG_FD]
15145 # ---------------------------------
15146 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15147 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15148 # script with status $?, using 1 if that was 0.
15149 as_fn_error ()
15150 {
15151   as_status=$?; test $as_status -eq 0 && as_status=1
15152   if test "$3"; then
15153     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15154     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15155   fi
15156   $as_echo "$as_me: error: $1" >&2
15157   as_fn_exit $as_status
15158 } # as_fn_error
15159
15160
15161 # as_fn_set_status STATUS
15162 # -----------------------
15163 # Set $? to STATUS, without forking.
15164 as_fn_set_status ()
15165 {
15166   return $1
15167 } # as_fn_set_status
15168
15169 # as_fn_exit STATUS
15170 # -----------------
15171 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15172 as_fn_exit ()
15173 {
15174   set +e
15175   as_fn_set_status $1
15176   exit $1
15177 } # as_fn_exit
15178
15179 # as_fn_unset VAR
15180 # ---------------
15181 # Portably unset VAR.
15182 as_fn_unset ()
15183 {
15184   { eval $1=; unset $1;}
15185 }
15186 as_unset=as_fn_unset
15187 # as_fn_append VAR VALUE
15188 # ----------------------
15189 # Append the text in VALUE to the end of the definition contained in VAR. Take
15190 # advantage of any shell optimizations that allow amortized linear growth over
15191 # repeated appends, instead of the typical quadratic growth present in naive
15192 # implementations.
15193 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15194   eval 'as_fn_append ()
15195   {
15196     eval $1+=\$2
15197   }'
15198 else
15199   as_fn_append ()
15200   {
15201     eval $1=\$$1\$2
15202   }
15203 fi # as_fn_append
15204
15205 # as_fn_arith ARG...
15206 # ------------------
15207 # Perform arithmetic evaluation on the ARGs, and store the result in the
15208 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15209 # must be portable across $(()) and expr.
15210 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15211   eval 'as_fn_arith ()
15212   {
15213     as_val=$(( $* ))
15214   }'
15215 else
15216   as_fn_arith ()
15217   {
15218     as_val=`expr "$@" || test $? -eq 1`
15219   }
15220 fi # as_fn_arith
15221
15222
15223 if expr a : '\(a\)' >/dev/null 2>&1 &&
15224    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15225   as_expr=expr
15226 else
15227   as_expr=false
15228 fi
15229
15230 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15231   as_basename=basename
15232 else
15233   as_basename=false
15234 fi
15235
15236 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15237   as_dirname=dirname
15238 else
15239   as_dirname=false
15240 fi
15241
15242 as_me=`$as_basename -- "$0" ||
15243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15244          X"$0" : 'X\(//\)$' \| \
15245          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15246 $as_echo X/"$0" |
15247     sed '/^.*\/\([^/][^/]*\)\/*$/{
15248             s//\1/
15249             q
15250           }
15251           /^X\/\(\/\/\)$/{
15252             s//\1/
15253             q
15254           }
15255           /^X\/\(\/\).*/{
15256             s//\1/
15257             q
15258           }
15259           s/.*/./; q'`
15260
15261 # Avoid depending upon Character Ranges.
15262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15265 as_cr_digits='0123456789'
15266 as_cr_alnum=$as_cr_Letters$as_cr_digits
15267
15268 ECHO_C= ECHO_N= ECHO_T=
15269 case `echo -n x` in #(((((
15270 -n*)
15271   case `echo 'xy\c'` in
15272   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15273   xy)  ECHO_C='\c';;
15274   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15275        ECHO_T=' ';;
15276   esac;;
15277 *)
15278   ECHO_N='-n';;
15279 esac
15280
15281 rm -f conf$$ conf$$.exe conf$$.file
15282 if test -d conf$$.dir; then
15283   rm -f conf$$.dir/conf$$.file
15284 else
15285   rm -f conf$$.dir
15286   mkdir conf$$.dir 2>/dev/null
15287 fi
15288 if (echo >conf$$.file) 2>/dev/null; then
15289   if ln -s conf$$.file conf$$ 2>/dev/null; then
15290     as_ln_s='ln -s'
15291     # ... but there are two gotchas:
15292     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15293     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15294     # In both cases, we have to default to `cp -p'.
15295     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15296       as_ln_s='cp -p'
15297   elif ln conf$$.file conf$$ 2>/dev/null; then
15298     as_ln_s=ln
15299   else
15300     as_ln_s='cp -p'
15301   fi
15302 else
15303   as_ln_s='cp -p'
15304 fi
15305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15306 rmdir conf$$.dir 2>/dev/null
15307
15308
15309 # as_fn_mkdir_p
15310 # -------------
15311 # Create "$as_dir" as a directory, including parents if necessary.
15312 as_fn_mkdir_p ()
15313 {
15314
15315   case $as_dir in #(
15316   -*) as_dir=./$as_dir;;
15317   esac
15318   test -d "$as_dir" || eval $as_mkdir_p || {
15319     as_dirs=
15320     while :; do
15321       case $as_dir in #(
15322       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15323       *) as_qdir=$as_dir;;
15324       esac
15325       as_dirs="'$as_qdir' $as_dirs"
15326       as_dir=`$as_dirname -- "$as_dir" ||
15327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15328          X"$as_dir" : 'X\(//\)[^/]' \| \
15329          X"$as_dir" : 'X\(//\)$' \| \
15330          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15331 $as_echo X"$as_dir" |
15332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15333             s//\1/
15334             q
15335           }
15336           /^X\(\/\/\)[^/].*/{
15337             s//\1/
15338             q
15339           }
15340           /^X\(\/\/\)$/{
15341             s//\1/
15342             q
15343           }
15344           /^X\(\/\).*/{
15345             s//\1/
15346             q
15347           }
15348           s/.*/./; q'`
15349       test -d "$as_dir" && break
15350     done
15351     test -z "$as_dirs" || eval "mkdir $as_dirs"
15352   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15353
15354
15355 } # as_fn_mkdir_p
15356 if mkdir -p . 2>/dev/null; then
15357   as_mkdir_p='mkdir -p "$as_dir"'
15358 else
15359   test -d ./-p && rmdir ./-p
15360   as_mkdir_p=false
15361 fi
15362
15363 if test -x / >/dev/null 2>&1; then
15364   as_test_x='test -x'
15365 else
15366   if ls -dL / >/dev/null 2>&1; then
15367     as_ls_L_option=L
15368   else
15369     as_ls_L_option=
15370   fi
15371   as_test_x='
15372     eval sh -c '\''
15373       if test -d "$1"; then
15374         test -d "$1/.";
15375       else
15376         case $1 in #(
15377         -*)set "./$1";;
15378         esac;
15379         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15380         ???[sx]*):;;*)false;;esac;fi
15381     '\'' sh
15382   '
15383 fi
15384 as_executable_p=$as_test_x
15385
15386 # Sed expression to map a string onto a valid CPP name.
15387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15388
15389 # Sed expression to map a string onto a valid variable name.
15390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15391
15392
15393 exec 6>&1
15394 ## ----------------------------------- ##
15395 ## Main body of $CONFIG_STATUS script. ##
15396 ## ----------------------------------- ##
15397 _ASEOF
15398 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15399
15400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15401 # Save the log message, to keep $0 and so on meaningful, and to
15402 # report actual input values of CONFIG_FILES etc. instead of their
15403 # values after options handling.
15404 ac_log="
15405 This file was extended by package-unused $as_me version-unused, which was
15406 generated by GNU Autoconf 2.64.  Invocation command line was
15407
15408   CONFIG_FILES    = $CONFIG_FILES
15409   CONFIG_HEADERS  = $CONFIG_HEADERS
15410   CONFIG_LINKS    = $CONFIG_LINKS
15411   CONFIG_COMMANDS = $CONFIG_COMMANDS
15412   $ $0 $@
15413
15414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15415 "
15416
15417 _ACEOF
15418
15419 case $ac_config_files in *"
15420 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15421 esac
15422
15423 case $ac_config_headers in *"
15424 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15425 esac
15426
15427
15428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15429 # Files that config.status was made for.
15430 config_files="$ac_config_files"
15431 config_headers="$ac_config_headers"
15432 config_commands="$ac_config_commands"
15433
15434 _ACEOF
15435
15436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15437 ac_cs_usage="\
15438 \`$as_me' instantiates files and other configuration actions
15439 from templates according to the current configuration.  Unless the files
15440 and actions are specified as TAGs, all are instantiated by default.
15441
15442 Usage: $0 [OPTION]... [TAG]...
15443
15444   -h, --help       print this help, then exit
15445   -V, --version    print version number and configuration settings, then exit
15446   -q, --quiet, --silent
15447                    do not print progress messages
15448   -d, --debug      don't remove temporary files
15449       --recheck    update $as_me by reconfiguring in the same conditions
15450       --file=FILE[:TEMPLATE]
15451                    instantiate the configuration file FILE
15452       --header=FILE[:TEMPLATE]
15453                    instantiate the configuration header FILE
15454
15455 Configuration files:
15456 $config_files
15457
15458 Configuration headers:
15459 $config_headers
15460
15461 Configuration commands:
15462 $config_commands
15463
15464 Report bugs to the package provider."
15465
15466 _ACEOF
15467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15468 ac_cs_version="\\
15469 package-unused config.status version-unused
15470 configured by $0, generated by GNU Autoconf 2.64,
15471   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15472
15473 Copyright (C) 2009 Free Software Foundation, Inc.
15474 This config.status script is free software; the Free Software Foundation
15475 gives unlimited permission to copy, distribute and modify it."
15476
15477 ac_pwd='$ac_pwd'
15478 srcdir='$srcdir'
15479 INSTALL='$INSTALL'
15480 MKDIR_P='$MKDIR_P'
15481 AWK='$AWK'
15482 test -n "\$AWK" || AWK=awk
15483 _ACEOF
15484
15485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15486 # The default lists apply if the user does not specify any file.
15487 ac_need_defaults=:
15488 while test $# != 0
15489 do
15490   case $1 in
15491   --*=*)
15492     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15493     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15494     ac_shift=:
15495     ;;
15496   *)
15497     ac_option=$1
15498     ac_optarg=$2
15499     ac_shift=shift
15500     ;;
15501   esac
15502
15503   case $ac_option in
15504   # Handling of the options.
15505   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15506     ac_cs_recheck=: ;;
15507   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15508     $as_echo "$ac_cs_version"; exit ;;
15509   --debug | --debu | --deb | --de | --d | -d )
15510     debug=: ;;
15511   --file | --fil | --fi | --f )
15512     $ac_shift
15513     case $ac_optarg in
15514     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15515     esac
15516     as_fn_append CONFIG_FILES " '$ac_optarg'"
15517     ac_need_defaults=false;;
15518   --header | --heade | --head | --hea )
15519     $ac_shift
15520     case $ac_optarg in
15521     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15522     esac
15523     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15524     ac_need_defaults=false;;
15525   --he | --h)
15526     # Conflict between --help and --header
15527     as_fn_error "ambiguous option: \`$1'
15528 Try \`$0 --help' for more information.";;
15529   --help | --hel | -h )
15530     $as_echo "$ac_cs_usage"; exit ;;
15531   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15532   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15533     ac_cs_silent=: ;;
15534
15535   # This is an error.
15536   -*) as_fn_error "unrecognized option: \`$1'
15537 Try \`$0 --help' for more information." ;;
15538
15539   *) as_fn_append ac_config_targets " $1"
15540      ac_need_defaults=false ;;
15541
15542   esac
15543   shift
15544 done
15545
15546 ac_configure_extra_args=
15547
15548 if $ac_cs_silent; then
15549   exec 6>/dev/null
15550   ac_configure_extra_args="$ac_configure_extra_args --silent"
15551 fi
15552
15553 _ACEOF
15554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555 if \$ac_cs_recheck; then
15556   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15557   shift
15558   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15559   CONFIG_SHELL='$SHELL'
15560   export CONFIG_SHELL
15561   exec "\$@"
15562 fi
15563
15564 _ACEOF
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 exec 5>>config.log
15567 {
15568   echo
15569   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15570 ## Running $as_me. ##
15571 _ASBOX
15572   $as_echo "$ac_log"
15573 } >&5
15574
15575 _ACEOF
15576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577 #
15578 # INIT-COMMANDS
15579 #
15580
15581 srcdir="$srcdir"
15582 host="$host"
15583 target="$target"
15584 with_multisubdir="$with_multisubdir"
15585 with_multisrctop="$with_multisrctop"
15586 with_target_subdir="$with_target_subdir"
15587 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15588 multi_basedir="$multi_basedir"
15589 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15590 CC="$CC"
15591 CXX="$CXX"
15592 GFORTRAN="$GFORTRAN"
15593 GCJ="$GCJ"
15594 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15595
15596
15597 # The HP-UX ksh and POSIX shell print the target directory to stdout
15598 # if CDPATH is set.
15599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15600
15601 sed_quote_subst='$sed_quote_subst'
15602 double_quote_subst='$double_quote_subst'
15603 delay_variable_subst='$delay_variable_subst'
15604 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15605 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15606 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15607 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15608 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15609 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15610 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15611 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15612 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15613 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15614 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15615 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15616 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15617 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15618 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15619 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15620 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15621 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15622 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15623 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15624 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15625 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15626 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15627 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15628 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15629 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15630 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15631 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15632 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15633 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15634 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15635 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15636 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15637 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15638 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15639 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15640 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15641 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15642 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15643 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15644 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15645 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15646 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15647 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15648 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15649 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15650 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15651 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15652 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"`'
15653 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15654 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15655 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15657 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15658 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15659 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15660 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15684 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15685 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15686 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15687 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15688 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15689 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15690 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15691 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15692 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15693 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15694 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15695 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15696 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15697 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15698 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15699 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15700 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15701 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15702 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15703 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15704 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15705 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15706 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15707 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15708 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15709 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15710 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15711 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15712 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15713 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15714 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15715 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15716 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15717 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15718 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15719 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15720 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15721 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15722 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15723 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15724 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15725 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15726 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15727 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15728 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15729 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15730 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15731 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15732 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15733 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15734 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15735 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15736 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15737 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15738 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15739 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15740 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15741 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15742 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15743 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15744 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15745 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15746 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15747 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15748 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15749 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15750 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15751 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15752 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15753 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15754 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15755 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15756 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15757 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15758 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15759 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15760 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15761 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15762 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15763 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15764 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15765 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15766 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15767
15768 LTCC='$LTCC'
15769 LTCFLAGS='$LTCFLAGS'
15770 compiler='$compiler_DEFAULT'
15771
15772 # A function that is used when there is no print builtin or printf.
15773 func_fallback_echo ()
15774 {
15775   eval 'cat <<_LTECHO_EOF
15776 \$1
15777 _LTECHO_EOF'
15778 }
15779
15780 # Quote evaled strings.
15781 for var in SED \
15782 GREP \
15783 EGREP \
15784 FGREP \
15785 SHELL \
15786 ECHO \
15787 LD \
15788 NM \
15789 LN_S \
15790 lt_SP2NL \
15791 lt_NL2SP \
15792 reload_flag \
15793 OBJDUMP \
15794 deplibs_check_method \
15795 file_magic_cmd \
15796 AR \
15797 AR_FLAGS \
15798 STRIP \
15799 RANLIB \
15800 CC \
15801 CFLAGS \
15802 compiler \
15803 lt_cv_sys_global_symbol_pipe \
15804 lt_cv_sys_global_symbol_to_cdecl \
15805 lt_cv_sys_global_symbol_to_c_name_address \
15806 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15807 lt_prog_compiler_no_builtin_flag \
15808 lt_prog_compiler_wl \
15809 lt_prog_compiler_pic \
15810 lt_prog_compiler_static \
15811 lt_cv_prog_compiler_c_o \
15812 need_locks \
15813 DSYMUTIL \
15814 NMEDIT \
15815 LIPO \
15816 OTOOL \
15817 OTOOL64 \
15818 shrext_cmds \
15819 export_dynamic_flag_spec \
15820 whole_archive_flag_spec \
15821 compiler_needs_object \
15822 with_gnu_ld \
15823 allow_undefined_flag \
15824 no_undefined_flag \
15825 hardcode_libdir_flag_spec \
15826 hardcode_libdir_flag_spec_ld \
15827 hardcode_libdir_separator \
15828 fix_srcfile_path \
15829 exclude_expsyms \
15830 include_expsyms \
15831 file_list_spec \
15832 variables_saved_for_relink \
15833 libname_spec \
15834 library_names_spec \
15835 soname_spec \
15836 install_override_mode \
15837 finish_eval \
15838 old_striplib \
15839 striplib \
15840 LD_GO \
15841 reload_flag_GO \
15842 compiler_GO \
15843 lt_prog_compiler_no_builtin_flag_GO \
15844 lt_prog_compiler_wl_GO \
15845 lt_prog_compiler_pic_GO \
15846 lt_prog_compiler_static_GO \
15847 lt_cv_prog_compiler_c_o_GO \
15848 export_dynamic_flag_spec_GO \
15849 whole_archive_flag_spec_GO \
15850 compiler_needs_object_GO \
15851 with_gnu_ld_GO \
15852 allow_undefined_flag_GO \
15853 no_undefined_flag_GO \
15854 hardcode_libdir_flag_spec_GO \
15855 hardcode_libdir_flag_spec_ld_GO \
15856 hardcode_libdir_separator_GO \
15857 fix_srcfile_path_GO \
15858 exclude_expsyms_GO \
15859 include_expsyms_GO \
15860 file_list_spec_GO; do
15861     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15862     *[\\\\\\\`\\"\\\$]*)
15863       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15864       ;;
15865     *)
15866       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15867       ;;
15868     esac
15869 done
15870
15871 # Double-quote double-evaled strings.
15872 for var in reload_cmds \
15873 old_postinstall_cmds \
15874 old_postuninstall_cmds \
15875 old_archive_cmds \
15876 extract_expsyms_cmds \
15877 old_archive_from_new_cmds \
15878 old_archive_from_expsyms_cmds \
15879 archive_cmds \
15880 archive_expsym_cmds \
15881 module_cmds \
15882 module_expsym_cmds \
15883 export_symbols_cmds \
15884 prelink_cmds \
15885 postinstall_cmds \
15886 postuninstall_cmds \
15887 finish_cmds \
15888 sys_lib_search_path_spec \
15889 sys_lib_dlsearch_path_spec \
15890 reload_cmds_GO \
15891 old_archive_cmds_GO \
15892 old_archive_from_new_cmds_GO \
15893 old_archive_from_expsyms_cmds_GO \
15894 archive_cmds_GO \
15895 archive_expsym_cmds_GO \
15896 module_cmds_GO \
15897 module_expsym_cmds_GO \
15898 export_symbols_cmds_GO \
15899 prelink_cmds_GO; do
15900     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15901     *[\\\\\\\`\\"\\\$]*)
15902       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15903       ;;
15904     *)
15905       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15906       ;;
15907     esac
15908 done
15909
15910 ac_aux_dir='$ac_aux_dir'
15911 xsi_shell='$xsi_shell'
15912 lt_shell_append='$lt_shell_append'
15913
15914 # See if we are running on zsh, and set the options which allow our
15915 # commands through without removal of \ escapes INIT.
15916 if test -n "\${ZSH_VERSION+set}" ; then
15917    setopt NO_GLOB_SUBST
15918 fi
15919
15920
15921     PACKAGE='$PACKAGE'
15922     VERSION='$VERSION'
15923     TIMESTAMP='$TIMESTAMP'
15924     RM='$RM'
15925     ofile='$ofile'
15926
15927
15928
15929
15930
15931
15932 # Variables needed in config.status (file generation) which aren't already
15933 # passed by autoconf.
15934 SUBDIRS="$SUBDIRS"
15935
15936
15937 _ACEOF
15938
15939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15940
15941 # Handling of arguments.
15942 for ac_config_target in $ac_config_targets
15943 do
15944   case $ac_config_target in
15945     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15946     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15947     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15948     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15949     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15950     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15951     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15952
15953   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15954   esac
15955 done
15956
15957
15958 # If the user did not use the arguments to specify the items to instantiate,
15959 # then the envvar interface is used.  Set only those that are not.
15960 # We use the long form for the default assignment because of an extremely
15961 # bizarre bug on SunOS 4.1.3.
15962 if $ac_need_defaults; then
15963   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15964   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15965   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15966 fi
15967
15968 # Have a temporary directory for convenience.  Make it in the build tree
15969 # simply because there is no reason against having it here, and in addition,
15970 # creating and moving files from /tmp can sometimes cause problems.
15971 # Hook for its removal unless debugging.
15972 # Note that there is a small window in which the directory will not be cleaned:
15973 # after its creation but before its name has been assigned to `$tmp'.
15974 $debug ||
15975 {
15976   tmp=
15977   trap 'exit_status=$?
15978   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15979 ' 0
15980   trap 'as_fn_exit 1' 1 2 13 15
15981 }
15982 # Create a (secure) tmp directory for tmp files.
15983
15984 {
15985   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15986   test -n "$tmp" && test -d "$tmp"
15987 }  ||
15988 {
15989   tmp=./conf$$-$RANDOM
15990   (umask 077 && mkdir "$tmp")
15991 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15992
15993 # Set up the scripts for CONFIG_FILES section.
15994 # No need to generate them if there are no CONFIG_FILES.
15995 # This happens for instance with `./config.status config.h'.
15996 if test -n "$CONFIG_FILES"; then
15997
15998
15999 ac_cr=`echo X | tr X '\015'`
16000 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16001 # But we know of no other shell where ac_cr would be empty at this
16002 # point, so we can use a bashism as a fallback.
16003 if test "x$ac_cr" = x; then
16004   eval ac_cr=\$\'\\r\'
16005 fi
16006 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16007 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16008   ac_cs_awk_cr='\r'
16009 else
16010   ac_cs_awk_cr=$ac_cr
16011 fi
16012
16013 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16014 _ACEOF
16015
16016
16017 {
16018   echo "cat >conf$$subs.awk <<_ACEOF" &&
16019   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16020   echo "_ACEOF"
16021 } >conf$$subs.sh ||
16022   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16023 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16024 ac_delim='%!_!# '
16025 for ac_last_try in false false false false false :; do
16026   . ./conf$$subs.sh ||
16027     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16028
16029   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16030   if test $ac_delim_n = $ac_delim_num; then
16031     break
16032   elif $ac_last_try; then
16033     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16034   else
16035     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16036   fi
16037 done
16038 rm -f conf$$subs.sh
16039
16040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16042 _ACEOF
16043 sed -n '
16044 h
16045 s/^/S["/; s/!.*/"]=/
16046 p
16047 g
16048 s/^[^!]*!//
16049 :repl
16050 t repl
16051 s/'"$ac_delim"'$//
16052 t delim
16053 :nl
16054 h
16055 s/\(.\{148\}\).*/\1/
16056 t more1
16057 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16058 p
16059 n
16060 b repl
16061 :more1
16062 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16063 p
16064 g
16065 s/.\{148\}//
16066 t nl
16067 :delim
16068 h
16069 s/\(.\{148\}\).*/\1/
16070 t more2
16071 s/["\\]/\\&/g; s/^/"/; s/$/"/
16072 p
16073 b
16074 :more2
16075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16076 p
16077 g
16078 s/.\{148\}//
16079 t delim
16080 ' <conf$$subs.awk | sed '
16081 /^[^""]/{
16082   N
16083   s/\n//
16084 }
16085 ' >>$CONFIG_STATUS || ac_write_fail=1
16086 rm -f conf$$subs.awk
16087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088 _ACAWK
16089 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16090   for (key in S) S_is_set[key] = 1
16091   FS = "\a"
16092
16093 }
16094 {
16095   line = $ 0
16096   nfields = split(line, field, "@")
16097   substed = 0
16098   len = length(field[1])
16099   for (i = 2; i < nfields; i++) {
16100     key = field[i]
16101     keylen = length(key)
16102     if (S_is_set[key]) {
16103       value = S[key]
16104       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16105       len += length(value) + length(field[++i])
16106       substed = 1
16107     } else
16108       len += 1 + keylen
16109   }
16110
16111   print line
16112 }
16113
16114 _ACAWK
16115 _ACEOF
16116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16117 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16118   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16119 else
16120   cat
16121 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16122   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16123 _ACEOF
16124
16125 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16126 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16127 # trailing colons and then remove the whole line if VPATH becomes empty
16128 # (actually we leave an empty line to preserve line numbers).
16129 if test "x$srcdir" = x.; then
16130   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16131 s/:*\$(srcdir):*/:/
16132 s/:*\${srcdir}:*/:/
16133 s/:*@srcdir@:*/:/
16134 s/^\([^=]*=[     ]*\):*/\1/
16135 s/:*$//
16136 s/^[^=]*=[       ]*$//
16137 }'
16138 fi
16139
16140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141 fi # test -n "$CONFIG_FILES"
16142
16143 # Set up the scripts for CONFIG_HEADERS section.
16144 # No need to generate them if there are no CONFIG_HEADERS.
16145 # This happens for instance with `./config.status Makefile'.
16146 if test -n "$CONFIG_HEADERS"; then
16147 cat >"$tmp/defines.awk" <<\_ACAWK ||
16148 BEGIN {
16149 _ACEOF
16150
16151 # Transform confdefs.h into an awk script `defines.awk', embedded as
16152 # here-document in config.status, that substitutes the proper values into
16153 # config.h.in to produce config.h.
16154
16155 # Create a delimiter string that does not exist in confdefs.h, to ease
16156 # handling of long lines.
16157 ac_delim='%!_!# '
16158 for ac_last_try in false false :; do
16159   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16160   if test -z "$ac_t"; then
16161     break
16162   elif $ac_last_try; then
16163     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16164   else
16165     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16166   fi
16167 done
16168
16169 # For the awk script, D is an array of macro values keyed by name,
16170 # likewise P contains macro parameters if any.  Preserve backslash
16171 # newline sequences.
16172
16173 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16174 sed -n '
16175 s/.\{148\}/&'"$ac_delim"'/g
16176 t rset
16177 :rset
16178 s/^[     ]*#[    ]*define[       ][      ]*/ /
16179 t def
16180 d
16181 :def
16182 s/\\$//
16183 t bsnl
16184 s/["\\]/\\&/g
16185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16186 D["\1"]=" \3"/p
16187 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16188 d
16189 :bsnl
16190 s/["\\]/\\&/g
16191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16192 D["\1"]=" \3\\\\\\n"\\/p
16193 t cont
16194 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16195 t cont
16196 d
16197 :cont
16198 n
16199 s/.\{148\}/&'"$ac_delim"'/g
16200 t clear
16201 :clear
16202 s/\\$//
16203 t bsnlc
16204 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16205 d
16206 :bsnlc
16207 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16208 b cont
16209 ' <confdefs.h | sed '
16210 s/'"$ac_delim"'/"\\\
16211 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16212
16213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16214   for (key in D) D_is_set[key] = 1
16215   FS = "\a"
16216 }
16217 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16218   line = \$ 0
16219   split(line, arg, " ")
16220   if (arg[1] == "#") {
16221     defundef = arg[2]
16222     mac1 = arg[3]
16223   } else {
16224     defundef = substr(arg[1], 2)
16225     mac1 = arg[2]
16226   }
16227   split(mac1, mac2, "(") #)
16228   macro = mac2[1]
16229   prefix = substr(line, 1, index(line, defundef) - 1)
16230   if (D_is_set[macro]) {
16231     # Preserve the white space surrounding the "#".
16232     print prefix "define", macro P[macro] D[macro]
16233     next
16234   } else {
16235     # Replace #undef with comments.  This is necessary, for example,
16236     # in the case of _POSIX_SOURCE, which is predefined and required
16237     # on some systems where configure will not decide to define it.
16238     if (defundef == "undef") {
16239       print "/*", prefix defundef, macro, "*/"
16240       next
16241     }
16242   }
16243 }
16244 { print }
16245 _ACAWK
16246 _ACEOF
16247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16248   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16249 fi # test -n "$CONFIG_HEADERS"
16250
16251
16252 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16253 shift
16254 for ac_tag
16255 do
16256   case $ac_tag in
16257   :[FHLC]) ac_mode=$ac_tag; continue;;
16258   esac
16259   case $ac_mode$ac_tag in
16260   :[FHL]*:*);;
16261   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16262   :[FH]-) ac_tag=-:-;;
16263   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16264   esac
16265   ac_save_IFS=$IFS
16266   IFS=:
16267   set x $ac_tag
16268   IFS=$ac_save_IFS
16269   shift
16270   ac_file=$1
16271   shift
16272
16273   case $ac_mode in
16274   :L) ac_source=$1;;
16275   :[FH])
16276     ac_file_inputs=
16277     for ac_f
16278     do
16279       case $ac_f in
16280       -) ac_f="$tmp/stdin";;
16281       *) # Look for the file first in the build tree, then in the source tree
16282          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16283          # because $ac_f cannot contain `:'.
16284          test -f "$ac_f" ||
16285            case $ac_f in
16286            [\\/$]*) false;;
16287            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16288            esac ||
16289            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16290       esac
16291       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16292       as_fn_append ac_file_inputs " '$ac_f'"
16293     done
16294
16295     # Let's still pretend it is `configure' which instantiates (i.e., don't
16296     # use $as_me), people would be surprised to read:
16297     #    /* config.h.  Generated by config.status.  */
16298     configure_input='Generated from '`
16299           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16300         `' by configure.'
16301     if test x"$ac_file" != x-; then
16302       configure_input="$ac_file.  $configure_input"
16303       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16304 $as_echo "$as_me: creating $ac_file" >&6;}
16305     fi
16306     # Neutralize special characters interpreted by sed in replacement strings.
16307     case $configure_input in #(
16308     *\&* | *\|* | *\\* )
16309        ac_sed_conf_input=`$as_echo "$configure_input" |
16310        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16311     *) ac_sed_conf_input=$configure_input;;
16312     esac
16313
16314     case $ac_tag in
16315     *:-:* | *:-) cat >"$tmp/stdin" \
16316       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16317     esac
16318     ;;
16319   esac
16320
16321   ac_dir=`$as_dirname -- "$ac_file" ||
16322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16323          X"$ac_file" : 'X\(//\)[^/]' \| \
16324          X"$ac_file" : 'X\(//\)$' \| \
16325          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16326 $as_echo X"$ac_file" |
16327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16328             s//\1/
16329             q
16330           }
16331           /^X\(\/\/\)[^/].*/{
16332             s//\1/
16333             q
16334           }
16335           /^X\(\/\/\)$/{
16336             s//\1/
16337             q
16338           }
16339           /^X\(\/\).*/{
16340             s//\1/
16341             q
16342           }
16343           s/.*/./; q'`
16344   as_dir="$ac_dir"; as_fn_mkdir_p
16345   ac_builddir=.
16346
16347 case "$ac_dir" in
16348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16349 *)
16350   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16351   # A ".." for each directory in $ac_dir_suffix.
16352   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16353   case $ac_top_builddir_sub in
16354   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16355   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16356   esac ;;
16357 esac
16358 ac_abs_top_builddir=$ac_pwd
16359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16360 # for backward compatibility:
16361 ac_top_builddir=$ac_top_build_prefix
16362
16363 case $srcdir in
16364   .)  # We are building in place.
16365     ac_srcdir=.
16366     ac_top_srcdir=$ac_top_builddir_sub
16367     ac_abs_top_srcdir=$ac_pwd ;;
16368   [\\/]* | ?:[\\/]* )  # Absolute name.
16369     ac_srcdir=$srcdir$ac_dir_suffix;
16370     ac_top_srcdir=$srcdir
16371     ac_abs_top_srcdir=$srcdir ;;
16372   *) # Relative name.
16373     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16374     ac_top_srcdir=$ac_top_build_prefix$srcdir
16375     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16376 esac
16377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16378
16379
16380   case $ac_mode in
16381   :F)
16382   #
16383   # CONFIG_FILE
16384   #
16385
16386   case $INSTALL in
16387   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16388   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16389   esac
16390   ac_MKDIR_P=$MKDIR_P
16391   case $MKDIR_P in
16392   [\\/$]* | ?:[\\/]* ) ;;
16393   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16394   esac
16395 _ACEOF
16396
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 # If the template does not know about datarootdir, expand it.
16399 # FIXME: This hack should be removed a few years after 2.60.
16400 ac_datarootdir_hack=; ac_datarootdir_seen=
16401 ac_sed_dataroot='
16402 /datarootdir/ {
16403   p
16404   q
16405 }
16406 /@datadir@/p
16407 /@docdir@/p
16408 /@infodir@/p
16409 /@localedir@/p
16410 /@mandir@/p'
16411 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16412 *datarootdir*) ac_datarootdir_seen=yes;;
16413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16414   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16415 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16416 _ACEOF
16417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16418   ac_datarootdir_hack='
16419   s&@datadir@&$datadir&g
16420   s&@docdir@&$docdir&g
16421   s&@infodir@&$infodir&g
16422   s&@localedir@&$localedir&g
16423   s&@mandir@&$mandir&g
16424   s&\\\${datarootdir}&$datarootdir&g' ;;
16425 esac
16426 _ACEOF
16427
16428 # Neutralize VPATH when `$srcdir' = `.'.
16429 # Shell code in configure.ac might set extrasub.
16430 # FIXME: do we really want to maintain this feature?
16431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16432 ac_sed_extra="$ac_vpsub
16433 $extrasub
16434 _ACEOF
16435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16436 :t
16437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16438 s|@configure_input@|$ac_sed_conf_input|;t t
16439 s&@top_builddir@&$ac_top_builddir_sub&;t t
16440 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16441 s&@srcdir@&$ac_srcdir&;t t
16442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16443 s&@top_srcdir@&$ac_top_srcdir&;t t
16444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16445 s&@builddir@&$ac_builddir&;t t
16446 s&@abs_builddir@&$ac_abs_builddir&;t t
16447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16448 s&@INSTALL@&$ac_INSTALL&;t t
16449 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16450 $ac_datarootdir_hack
16451 "
16452 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16453   || as_fn_error "could not create $ac_file" "$LINENO" 5
16454
16455 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16456   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16457   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16458   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16459 which seems to be undefined.  Please make sure it is defined." >&5
16460 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16461 which seems to be undefined.  Please make sure it is defined." >&2;}
16462
16463   rm -f "$tmp/stdin"
16464   case $ac_file in
16465   -) cat "$tmp/out" && rm -f "$tmp/out";;
16466   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16467   esac \
16468   || as_fn_error "could not create $ac_file" "$LINENO" 5
16469  ;;
16470   :H)
16471   #
16472   # CONFIG_HEADER
16473   #
16474   if test x"$ac_file" != x-; then
16475     {
16476       $as_echo "/* $configure_input  */" \
16477       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16478     } >"$tmp/config.h" \
16479       || as_fn_error "could not create $ac_file" "$LINENO" 5
16480     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16481       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16482 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16483     else
16484       rm -f "$ac_file"
16485       mv "$tmp/config.h" "$ac_file" \
16486         || as_fn_error "could not create $ac_file" "$LINENO" 5
16487     fi
16488   else
16489     $as_echo "/* $configure_input  */" \
16490       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16491       || as_fn_error "could not create -" "$LINENO" 5
16492   fi
16493 # Compute "$ac_file"'s index in $config_headers.
16494 _am_arg="$ac_file"
16495 _am_stamp_count=1
16496 for _am_header in $config_headers :; do
16497   case $_am_header in
16498     $_am_arg | $_am_arg:* )
16499       break ;;
16500     * )
16501       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16502   esac
16503 done
16504 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16505 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16506          X"$_am_arg" : 'X\(//\)[^/]' \| \
16507          X"$_am_arg" : 'X\(//\)$' \| \
16508          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16509 $as_echo X"$_am_arg" |
16510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16511             s//\1/
16512             q
16513           }
16514           /^X\(\/\/\)[^/].*/{
16515             s//\1/
16516             q
16517           }
16518           /^X\(\/\/\)$/{
16519             s//\1/
16520             q
16521           }
16522           /^X\(\/\).*/{
16523             s//\1/
16524             q
16525           }
16526           s/.*/./; q'`/stamp-h$_am_stamp_count
16527  ;;
16528
16529   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16530 $as_echo "$as_me: executing $ac_file commands" >&6;}
16531  ;;
16532   esac
16533
16534
16535   case $ac_file$ac_mode in
16536     "default-1":C)
16537 # Only add multilib support code if we just rebuilt the top-level
16538 # Makefile.
16539 case " $CONFIG_FILES " in
16540  *" Makefile "*)
16541    ac_file=Makefile . ${multi_basedir}/config-ml.in
16542    ;;
16543 esac ;;
16544     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16545   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16546   # are listed without --file.  Let's play safe and only enable the eval
16547   # if we detect the quoting.
16548   case $CONFIG_FILES in
16549   *\'*) eval set x "$CONFIG_FILES" ;;
16550   *)   set x $CONFIG_FILES ;;
16551   esac
16552   shift
16553   for mf
16554   do
16555     # Strip MF so we end up with the name of the file.
16556     mf=`echo "$mf" | sed -e 's/:.*$//'`
16557     # Check whether this is an Automake generated Makefile or not.
16558     # We used to match only the files named `Makefile.in', but
16559     # some people rename them; so instead we look at the file content.
16560     # Grep'ing the first line is not enough: some people post-process
16561     # each Makefile.in and add a new line on top of each file to say so.
16562     # Grep'ing the whole file is not good either: AIX grep has a line
16563     # limit of 2048, but all sed's we know have understand at least 4000.
16564     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16565       dirpart=`$as_dirname -- "$mf" ||
16566 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16567          X"$mf" : 'X\(//\)[^/]' \| \
16568          X"$mf" : 'X\(//\)$' \| \
16569          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16570 $as_echo X"$mf" |
16571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16572             s//\1/
16573             q
16574           }
16575           /^X\(\/\/\)[^/].*/{
16576             s//\1/
16577             q
16578           }
16579           /^X\(\/\/\)$/{
16580             s//\1/
16581             q
16582           }
16583           /^X\(\/\).*/{
16584             s//\1/
16585             q
16586           }
16587           s/.*/./; q'`
16588     else
16589       continue
16590     fi
16591     # Extract the definition of DEPDIR, am__include, and am__quote
16592     # from the Makefile without running `make'.
16593     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16594     test -z "$DEPDIR" && continue
16595     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16596     test -z "am__include" && continue
16597     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16598     # When using ansi2knr, U may be empty or an underscore; expand it
16599     U=`sed -n 's/^U = //p' < "$mf"`
16600     # Find all dependency output files, they are included files with
16601     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16602     # simplest approach to changing $(DEPDIR) to its actual value in the
16603     # expansion.
16604     for file in `sed -n "
16605       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16606          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16607       # Make sure the directory exists.
16608       test -f "$dirpart/$file" && continue
16609       fdir=`$as_dirname -- "$file" ||
16610 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16611          X"$file" : 'X\(//\)[^/]' \| \
16612          X"$file" : 'X\(//\)$' \| \
16613          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16614 $as_echo X"$file" |
16615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16616             s//\1/
16617             q
16618           }
16619           /^X\(\/\/\)[^/].*/{
16620             s//\1/
16621             q
16622           }
16623           /^X\(\/\/\)$/{
16624             s//\1/
16625             q
16626           }
16627           /^X\(\/\).*/{
16628             s//\1/
16629             q
16630           }
16631           s/.*/./; q'`
16632       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16633       # echo "creating $dirpart/$file"
16634       echo '# dummy' > "$dirpart/$file"
16635     done
16636   done
16637 }
16638  ;;
16639     "libtool":C)
16640
16641     # See if we are running on zsh, and set the options which allow our
16642     # commands through without removal of \ escapes.
16643     if test -n "${ZSH_VERSION+set}" ; then
16644       setopt NO_GLOB_SUBST
16645     fi
16646
16647     cfgfile="${ofile}T"
16648     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16649     $RM "$cfgfile"
16650
16651     cat <<_LT_EOF >> "$cfgfile"
16652 #! $SHELL
16653
16654 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16655 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16657 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16658 #
16659 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16660 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16661 #   Written by Gordon Matzigkeit, 1996
16662 #
16663 #   This file is part of GNU Libtool.
16664 #
16665 # GNU Libtool is free software; you can redistribute it and/or
16666 # modify it under the terms of the GNU General Public License as
16667 # published by the Free Software Foundation; either version 2 of
16668 # the License, or (at your option) any later version.
16669 #
16670 # As a special exception to the GNU General Public License,
16671 # if you distribute this file as part of a program or library that
16672 # is built using GNU Libtool, you may include this file under the
16673 # same distribution terms that you use for the rest of that program.
16674 #
16675 # GNU Libtool is distributed in the hope that it will be useful,
16676 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16677 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16678 # GNU General Public License for more details.
16679 #
16680 # You should have received a copy of the GNU General Public License
16681 # along with GNU Libtool; see the file COPYING.  If not, a copy
16682 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16683 # obtained by writing to the Free Software Foundation, Inc.,
16684 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16685
16686
16687 # The names of the tagged configurations supported by this script.
16688 available_tags="GO "
16689
16690 # ### BEGIN LIBTOOL CONFIG
16691
16692 # A sed program that does not truncate output.
16693 SED=$lt_SED
16694
16695 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16696 Xsed="\$SED -e 1s/^X//"
16697
16698 # A grep program that handles long lines.
16699 GREP=$lt_GREP
16700
16701 # An ERE matcher.
16702 EGREP=$lt_EGREP
16703
16704 # A literal string matcher.
16705 FGREP=$lt_FGREP
16706
16707 # Shell to use when invoking shell scripts.
16708 SHELL=$lt_SHELL
16709
16710 # An echo program that protects backslashes.
16711 ECHO=$lt_ECHO
16712
16713 # Which release of libtool.m4 was used?
16714 macro_version=$macro_version
16715 macro_revision=$macro_revision
16716
16717 # Whether or not to build shared libraries.
16718 build_libtool_libs=$enable_shared
16719
16720 # Whether or not to build static libraries.
16721 build_old_libs=$enable_static
16722
16723 # What type of objects to build.
16724 pic_mode=$pic_mode
16725
16726 # Whether or not to optimize for fast installation.
16727 fast_install=$enable_fast_install
16728
16729 # The host system.
16730 host_alias=$host_alias
16731 host=$host
16732 host_os=$host_os
16733
16734 # The build system.
16735 build_alias=$build_alias
16736 build=$build
16737 build_os=$build_os
16738
16739 # A BSD- or MS-compatible name lister.
16740 NM=$lt_NM
16741
16742 # Whether we need soft or hard links.
16743 LN_S=$lt_LN_S
16744
16745 # What is the maximum length of a command?
16746 max_cmd_len=$max_cmd_len
16747
16748 # Object file suffix (normally "o").
16749 objext=$ac_objext
16750
16751 # Executable file suffix (normally "").
16752 exeext=$exeext
16753
16754 # whether the shell understands "unset".
16755 lt_unset=$lt_unset
16756
16757 # turn spaces into newlines.
16758 SP2NL=$lt_lt_SP2NL
16759
16760 # turn newlines into spaces.
16761 NL2SP=$lt_lt_NL2SP
16762
16763 # An object symbol dumper.
16764 OBJDUMP=$lt_OBJDUMP
16765
16766 # Method to check whether dependent libraries are shared objects.
16767 deplibs_check_method=$lt_deplibs_check_method
16768
16769 # Command to use when deplibs_check_method == "file_magic".
16770 file_magic_cmd=$lt_file_magic_cmd
16771
16772 # The archiver.
16773 AR=$lt_AR
16774 AR_FLAGS=$lt_AR_FLAGS
16775
16776 # A symbol stripping program.
16777 STRIP=$lt_STRIP
16778
16779 # Commands used to install an old-style archive.
16780 RANLIB=$lt_RANLIB
16781 old_postinstall_cmds=$lt_old_postinstall_cmds
16782 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16783
16784 # Whether to use a lock for old archive extraction.
16785 lock_old_archive_extraction=$lock_old_archive_extraction
16786
16787 # A C compiler.
16788 LTCC=$lt_CC
16789
16790 # LTCC compiler flags.
16791 LTCFLAGS=$lt_CFLAGS
16792
16793 # Take the output of nm and produce a listing of raw symbols and C names.
16794 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16795
16796 # Transform the output of nm in a proper C declaration.
16797 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16798
16799 # Transform the output of nm in a C name address pair.
16800 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16801
16802 # Transform the output of nm in a C name address pair when lib prefix is needed.
16803 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16804
16805 # The name of the directory that contains temporary libtool files.
16806 objdir=$objdir
16807
16808 # Used to examine libraries when file_magic_cmd begins with "file".
16809 MAGIC_CMD=$MAGIC_CMD
16810
16811 # Must we lock files when doing compilation?
16812 need_locks=$lt_need_locks
16813
16814 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16815 DSYMUTIL=$lt_DSYMUTIL
16816
16817 # Tool to change global to local symbols on Mac OS X.
16818 NMEDIT=$lt_NMEDIT
16819
16820 # Tool to manipulate fat objects and archives on Mac OS X.
16821 LIPO=$lt_LIPO
16822
16823 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16824 OTOOL=$lt_OTOOL
16825
16826 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16827 OTOOL64=$lt_OTOOL64
16828
16829 # Old archive suffix (normally "a").
16830 libext=$libext
16831
16832 # Shared library suffix (normally ".so").
16833 shrext_cmds=$lt_shrext_cmds
16834
16835 # The commands to extract the exported symbol list from a shared archive.
16836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16837
16838 # Variables whose values should be saved in libtool wrapper scripts and
16839 # restored at link time.
16840 variables_saved_for_relink=$lt_variables_saved_for_relink
16841
16842 # Do we need the "lib" prefix for modules?
16843 need_lib_prefix=$need_lib_prefix
16844
16845 # Do we need a version for libraries?
16846 need_version=$need_version
16847
16848 # Library versioning type.
16849 version_type=$version_type
16850
16851 # Shared library runtime path variable.
16852 runpath_var=$runpath_var
16853
16854 # Shared library path variable.
16855 shlibpath_var=$shlibpath_var
16856
16857 # Is shlibpath searched before the hard-coded library search path?
16858 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16859
16860 # Format of library name prefix.
16861 libname_spec=$lt_libname_spec
16862
16863 # List of archive names.  First name is the real one, the rest are links.
16864 # The last name is the one that the linker finds with -lNAME
16865 library_names_spec=$lt_library_names_spec
16866
16867 # The coded name of the library, if different from the real name.
16868 soname_spec=$lt_soname_spec
16869
16870 # Permission mode override for installation of shared libraries.
16871 install_override_mode=$lt_install_override_mode
16872
16873 # Command to use after installation of a shared archive.
16874 postinstall_cmds=$lt_postinstall_cmds
16875
16876 # Command to use after uninstallation of a shared archive.
16877 postuninstall_cmds=$lt_postuninstall_cmds
16878
16879 # Commands used to finish a libtool library installation in a directory.
16880 finish_cmds=$lt_finish_cmds
16881
16882 # As "finish_cmds", except a single script fragment to be evaled but
16883 # not shown.
16884 finish_eval=$lt_finish_eval
16885
16886 # Whether we should hardcode library paths into libraries.
16887 hardcode_into_libs=$hardcode_into_libs
16888
16889 # Compile-time system search path for libraries.
16890 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16891
16892 # Run-time system search path for libraries.
16893 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16894
16895 # Whether dlopen is supported.
16896 dlopen_support=$enable_dlopen
16897
16898 # Whether dlopen of programs is supported.
16899 dlopen_self=$enable_dlopen_self
16900
16901 # Whether dlopen of statically linked programs is supported.
16902 dlopen_self_static=$enable_dlopen_self_static
16903
16904 # Commands to strip libraries.
16905 old_striplib=$lt_old_striplib
16906 striplib=$lt_striplib
16907
16908
16909 # The linker used to build libraries.
16910 LD=$lt_LD
16911
16912 # How to create reloadable object files.
16913 reload_flag=$lt_reload_flag
16914 reload_cmds=$lt_reload_cmds
16915
16916 # Commands used to build an old-style archive.
16917 old_archive_cmds=$lt_old_archive_cmds
16918
16919 # A language specific compiler.
16920 CC=$lt_compiler
16921
16922 # Is the compiler the GNU compiler?
16923 with_gcc=$GCC
16924
16925 # Compiler flag to turn off builtin functions.
16926 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16927
16928 # How to pass a linker flag through the compiler.
16929 wl=$lt_lt_prog_compiler_wl
16930
16931 # Additional compiler flags for building library objects.
16932 pic_flag=$lt_lt_prog_compiler_pic
16933
16934 # Compiler flag to prevent dynamic linking.
16935 link_static_flag=$lt_lt_prog_compiler_static
16936
16937 # Does compiler simultaneously support -c and -o options?
16938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16939
16940 # Whether or not to add -lc for building shared libraries.
16941 build_libtool_need_lc=$archive_cmds_need_lc
16942
16943 # Whether or not to disallow shared libs when runtime libs are static.
16944 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16945
16946 # Compiler flag to allow reflexive dlopens.
16947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16948
16949 # Compiler flag to generate shared objects directly from archives.
16950 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16951
16952 # Whether the compiler copes with passing no objects directly.
16953 compiler_needs_object=$lt_compiler_needs_object
16954
16955 # Create an old-style archive from a shared archive.
16956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16957
16958 # Create a temporary old-style archive to link instead of a shared archive.
16959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16960
16961 # Commands used to build a shared archive.
16962 archive_cmds=$lt_archive_cmds
16963 archive_expsym_cmds=$lt_archive_expsym_cmds
16964
16965 # Commands used to build a loadable module if different from building
16966 # a shared archive.
16967 module_cmds=$lt_module_cmds
16968 module_expsym_cmds=$lt_module_expsym_cmds
16969
16970 # Whether we are building with GNU ld or not.
16971 with_gnu_ld=$lt_with_gnu_ld
16972
16973 # Flag that allows shared libraries with undefined symbols to be built.
16974 allow_undefined_flag=$lt_allow_undefined_flag
16975
16976 # Flag that enforces no undefined symbols.
16977 no_undefined_flag=$lt_no_undefined_flag
16978
16979 # Flag to hardcode \$libdir into a binary during linking.
16980 # This must work even if \$libdir does not exist
16981 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16982
16983 # If ld is used when linking, flag to hardcode \$libdir into a binary
16984 # during linking.  This must work even if \$libdir does not exist.
16985 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16986
16987 # Whether we need a single "-rpath" flag with a separated argument.
16988 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16989
16990 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16991 # DIR into the resulting binary.
16992 hardcode_direct=$hardcode_direct
16993
16994 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16995 # DIR into the resulting binary and the resulting library dependency is
16996 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16997 # library is relocated.
16998 hardcode_direct_absolute=$hardcode_direct_absolute
16999
17000 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17001 # into the resulting binary.
17002 hardcode_minus_L=$hardcode_minus_L
17003
17004 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17005 # into the resulting binary.
17006 hardcode_shlibpath_var=$hardcode_shlibpath_var
17007
17008 # Set to "yes" if building a shared library automatically hardcodes DIR
17009 # into the library and all subsequent libraries and executables linked
17010 # against it.
17011 hardcode_automatic=$hardcode_automatic
17012
17013 # Set to yes if linker adds runtime paths of dependent libraries
17014 # to runtime path list.
17015 inherit_rpath=$inherit_rpath
17016
17017 # Whether libtool must link a program against all its dependency libraries.
17018 link_all_deplibs=$link_all_deplibs
17019
17020 # Fix the shell variable \$srcfile for the compiler.
17021 fix_srcfile_path=$lt_fix_srcfile_path
17022
17023 # Set to "yes" if exported symbols are required.
17024 always_export_symbols=$always_export_symbols
17025
17026 # The commands to list exported symbols.
17027 export_symbols_cmds=$lt_export_symbols_cmds
17028
17029 # Symbols that should not be listed in the preloaded symbols.
17030 exclude_expsyms=$lt_exclude_expsyms
17031
17032 # Symbols that must always be exported.
17033 include_expsyms=$lt_include_expsyms
17034
17035 # Commands necessary for linking programs (against libraries) with templates.
17036 prelink_cmds=$lt_prelink_cmds
17037
17038 # Specify filename containing input files.
17039 file_list_spec=$lt_file_list_spec
17040
17041 # How to hardcode a shared library path into an executable.
17042 hardcode_action=$hardcode_action
17043
17044 # ### END LIBTOOL CONFIG
17045
17046 _LT_EOF
17047
17048   case $host_os in
17049   aix3*)
17050     cat <<\_LT_EOF >> "$cfgfile"
17051 # AIX sometimes has problems with the GCC collect2 program.  For some
17052 # reason, if we set the COLLECT_NAMES environment variable, the problems
17053 # vanish in a puff of smoke.
17054 if test "X${COLLECT_NAMES+set}" != Xset; then
17055   COLLECT_NAMES=
17056   export COLLECT_NAMES
17057 fi
17058 _LT_EOF
17059     ;;
17060   esac
17061
17062
17063 ltmain="$ac_aux_dir/ltmain.sh"
17064
17065
17066   # We use sed instead of cat because bash on DJGPP gets confused if
17067   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17068   # text mode, it properly converts lines to CR/LF.  This bash problem
17069   # is reportedly fixed, but why not run on old versions too?
17070   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17071     || (rm -f "$cfgfile"; exit 1)
17072
17073   case $xsi_shell in
17074   yes)
17075     cat << \_LT_EOF >> "$cfgfile"
17076
17077 # func_dirname file append nondir_replacement
17078 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17079 # otherwise set result to NONDIR_REPLACEMENT.
17080 func_dirname ()
17081 {
17082   case ${1} in
17083     */*) func_dirname_result="${1%/*}${2}" ;;
17084     *  ) func_dirname_result="${3}" ;;
17085   esac
17086 }
17087
17088 # func_basename file
17089 func_basename ()
17090 {
17091   func_basename_result="${1##*/}"
17092 }
17093
17094 # func_dirname_and_basename file append nondir_replacement
17095 # perform func_basename and func_dirname in a single function
17096 # call:
17097 #   dirname:  Compute the dirname of FILE.  If nonempty,
17098 #             add APPEND to the result, otherwise set result
17099 #             to NONDIR_REPLACEMENT.
17100 #             value returned in "$func_dirname_result"
17101 #   basename: Compute filename of FILE.
17102 #             value retuned in "$func_basename_result"
17103 # Implementation must be kept synchronized with func_dirname
17104 # and func_basename. For efficiency, we do not delegate to
17105 # those functions but instead duplicate the functionality here.
17106 func_dirname_and_basename ()
17107 {
17108   case ${1} in
17109     */*) func_dirname_result="${1%/*}${2}" ;;
17110     *  ) func_dirname_result="${3}" ;;
17111   esac
17112   func_basename_result="${1##*/}"
17113 }
17114
17115 # func_stripname prefix suffix name
17116 # strip PREFIX and SUFFIX off of NAME.
17117 # PREFIX and SUFFIX must not contain globbing or regex special
17118 # characters, hashes, percent signs, but SUFFIX may contain a leading
17119 # dot (in which case that matches only a dot).
17120 func_stripname ()
17121 {
17122   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17123   # positional parameters, so assign one to ordinary parameter first.
17124   func_stripname_result=${3}
17125   func_stripname_result=${func_stripname_result#"${1}"}
17126   func_stripname_result=${func_stripname_result%"${2}"}
17127 }
17128
17129 # func_opt_split
17130 func_opt_split ()
17131 {
17132   func_opt_split_opt=${1%%=*}
17133   func_opt_split_arg=${1#*=}
17134 }
17135
17136 # func_lo2o object
17137 func_lo2o ()
17138 {
17139   case ${1} in
17140     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17141     *)    func_lo2o_result=${1} ;;
17142   esac
17143 }
17144
17145 # func_xform libobj-or-source
17146 func_xform ()
17147 {
17148   func_xform_result=${1%.*}.lo
17149 }
17150
17151 # func_arith arithmetic-term...
17152 func_arith ()
17153 {
17154   func_arith_result=$(( $* ))
17155 }
17156
17157 # func_len string
17158 # STRING may not start with a hyphen.
17159 func_len ()
17160 {
17161   func_len_result=${#1}
17162 }
17163
17164 _LT_EOF
17165     ;;
17166   *) # Bourne compatible functions.
17167     cat << \_LT_EOF >> "$cfgfile"
17168
17169 # func_dirname file append nondir_replacement
17170 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17171 # otherwise set result to NONDIR_REPLACEMENT.
17172 func_dirname ()
17173 {
17174   # Extract subdirectory from the argument.
17175   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17176   if test "X$func_dirname_result" = "X${1}"; then
17177     func_dirname_result="${3}"
17178   else
17179     func_dirname_result="$func_dirname_result${2}"
17180   fi
17181 }
17182
17183 # func_basename file
17184 func_basename ()
17185 {
17186   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17187 }
17188
17189
17190 # func_stripname prefix suffix name
17191 # strip PREFIX and SUFFIX off of NAME.
17192 # PREFIX and SUFFIX must not contain globbing or regex special
17193 # characters, hashes, percent signs, but SUFFIX may contain a leading
17194 # dot (in which case that matches only a dot).
17195 # func_strip_suffix prefix name
17196 func_stripname ()
17197 {
17198   case ${2} in
17199     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17200     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17201   esac
17202 }
17203
17204 # sed scripts:
17205 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17206 my_sed_long_arg='1s/^-[^=]*=//'
17207
17208 # func_opt_split
17209 func_opt_split ()
17210 {
17211   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17212   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17213 }
17214
17215 # func_lo2o object
17216 func_lo2o ()
17217 {
17218   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17219 }
17220
17221 # func_xform libobj-or-source
17222 func_xform ()
17223 {
17224   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17225 }
17226
17227 # func_arith arithmetic-term...
17228 func_arith ()
17229 {
17230   func_arith_result=`expr "$@"`
17231 }
17232
17233 # func_len string
17234 # STRING may not start with a hyphen.
17235 func_len ()
17236 {
17237   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17238 }
17239
17240 _LT_EOF
17241 esac
17242
17243 case $lt_shell_append in
17244   yes)
17245     cat << \_LT_EOF >> "$cfgfile"
17246
17247 # func_append var value
17248 # Append VALUE to the end of shell variable VAR.
17249 func_append ()
17250 {
17251   eval "$1+=\$2"
17252 }
17253 _LT_EOF
17254     ;;
17255   *)
17256     cat << \_LT_EOF >> "$cfgfile"
17257
17258 # func_append var value
17259 # Append VALUE to the end of shell variable VAR.
17260 func_append ()
17261 {
17262   eval "$1=\$$1\$2"
17263 }
17264
17265 _LT_EOF
17266     ;;
17267   esac
17268
17269
17270   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17271     || (rm -f "$cfgfile"; exit 1)
17272
17273   mv -f "$cfgfile" "$ofile" ||
17274     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17275   chmod +x "$ofile"
17276
17277
17278     cat <<_LT_EOF >> "$ofile"
17279
17280 # ### BEGIN LIBTOOL TAG CONFIG: GO
17281
17282 # The linker used to build libraries.
17283 LD=$lt_LD_GO
17284
17285 # How to create reloadable object files.
17286 reload_flag=$lt_reload_flag_GO
17287 reload_cmds=$lt_reload_cmds_GO
17288
17289 # Commands used to build an old-style archive.
17290 old_archive_cmds=$lt_old_archive_cmds_GO
17291
17292 # A language specific compiler.
17293 CC=$lt_compiler_GO
17294
17295 # Is the compiler the GNU compiler?
17296 with_gcc=$GCC_GO
17297
17298 # Compiler flag to turn off builtin functions.
17299 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17300
17301 # How to pass a linker flag through the compiler.
17302 wl=$lt_lt_prog_compiler_wl_GO
17303
17304 # Additional compiler flags for building library objects.
17305 pic_flag=$lt_lt_prog_compiler_pic_GO
17306
17307 # Compiler flag to prevent dynamic linking.
17308 link_static_flag=$lt_lt_prog_compiler_static_GO
17309
17310 # Does compiler simultaneously support -c and -o options?
17311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17312
17313 # Whether or not to add -lc for building shared libraries.
17314 build_libtool_need_lc=$archive_cmds_need_lc_GO
17315
17316 # Whether or not to disallow shared libs when runtime libs are static.
17317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17318
17319 # Compiler flag to allow reflexive dlopens.
17320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17321
17322 # Compiler flag to generate shared objects directly from archives.
17323 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17324
17325 # Whether the compiler copes with passing no objects directly.
17326 compiler_needs_object=$lt_compiler_needs_object_GO
17327
17328 # Create an old-style archive from a shared archive.
17329 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17330
17331 # Create a temporary old-style archive to link instead of a shared archive.
17332 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17333
17334 # Commands used to build a shared archive.
17335 archive_cmds=$lt_archive_cmds_GO
17336 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17337
17338 # Commands used to build a loadable module if different from building
17339 # a shared archive.
17340 module_cmds=$lt_module_cmds_GO
17341 module_expsym_cmds=$lt_module_expsym_cmds_GO
17342
17343 # Whether we are building with GNU ld or not.
17344 with_gnu_ld=$lt_with_gnu_ld_GO
17345
17346 # Flag that allows shared libraries with undefined symbols to be built.
17347 allow_undefined_flag=$lt_allow_undefined_flag_GO
17348
17349 # Flag that enforces no undefined symbols.
17350 no_undefined_flag=$lt_no_undefined_flag_GO
17351
17352 # Flag to hardcode \$libdir into a binary during linking.
17353 # This must work even if \$libdir does not exist
17354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17355
17356 # If ld is used when linking, flag to hardcode \$libdir into a binary
17357 # during linking.  This must work even if \$libdir does not exist.
17358 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17359
17360 # Whether we need a single "-rpath" flag with a separated argument.
17361 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17362
17363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17364 # DIR into the resulting binary.
17365 hardcode_direct=$hardcode_direct_GO
17366
17367 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17368 # DIR into the resulting binary and the resulting library dependency is
17369 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17370 # library is relocated.
17371 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17372
17373 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17374 # into the resulting binary.
17375 hardcode_minus_L=$hardcode_minus_L_GO
17376
17377 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17378 # into the resulting binary.
17379 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17380
17381 # Set to "yes" if building a shared library automatically hardcodes DIR
17382 # into the library and all subsequent libraries and executables linked
17383 # against it.
17384 hardcode_automatic=$hardcode_automatic_GO
17385
17386 # Set to yes if linker adds runtime paths of dependent libraries
17387 # to runtime path list.
17388 inherit_rpath=$inherit_rpath_GO
17389
17390 # Whether libtool must link a program against all its dependency libraries.
17391 link_all_deplibs=$link_all_deplibs_GO
17392
17393 # Fix the shell variable \$srcfile for the compiler.
17394 fix_srcfile_path=$lt_fix_srcfile_path_GO
17395
17396 # Set to "yes" if exported symbols are required.
17397 always_export_symbols=$always_export_symbols_GO
17398
17399 # The commands to list exported symbols.
17400 export_symbols_cmds=$lt_export_symbols_cmds_GO
17401
17402 # Symbols that should not be listed in the preloaded symbols.
17403 exclude_expsyms=$lt_exclude_expsyms_GO
17404
17405 # Symbols that must always be exported.
17406 include_expsyms=$lt_include_expsyms_GO
17407
17408 # Commands necessary for linking programs (against libraries) with templates.
17409 prelink_cmds=$lt_prelink_cmds_GO
17410
17411 # Specify filename containing input files.
17412 file_list_spec=$lt_file_list_spec_GO
17413
17414 # How to hardcode a shared library path into an executable.
17415 hardcode_action=$hardcode_action_GO
17416
17417 # ### END LIBTOOL TAG CONFIG: GO
17418 _LT_EOF
17419
17420  ;;
17421     "default":C) if test -n "$CONFIG_FILES"; then
17422    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17423    # that multilib installs will end up installed in the correct place.
17424    # The testsuite needs it for multilib-aware ABI baseline files.
17425    # To work around this not being passed down from config-ml.in ->
17426    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17427    # append it here.  Only modify Makefiles that have just been created.
17428    #
17429    # Also, get rid of this simulated-VPATH thing that automake does.
17430    cat > vpsed << \_EOF
17431 s!`test -f '$<' || echo '$(srcdir)/'`!!
17432 _EOF
17433    for i in $SUBDIRS; do
17434     case $CONFIG_FILES in
17435      *${i}/Makefile*)
17436        #echo "Adding MULTISUBDIR to $i/Makefile"
17437        sed -f vpsed $i/Makefile > tmp
17438        grep '^MULTISUBDIR =' Makefile >> tmp
17439        mv tmp $i/Makefile
17440        ;;
17441     esac
17442    done
17443    rm vpsed
17444  fi
17445  ;;
17446
17447   esac
17448 done # for ac_tag
17449
17450
17451 as_fn_exit 0
17452 _ACEOF
17453 ac_clean_files=$ac_clean_files_save
17454
17455 test $ac_write_fail = 0 ||
17456   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17457
17458
17459 # configure is writing to config.log, and then calls config.status.
17460 # config.status does its own redirection, appending to config.log.
17461 # Unfortunately, on DOS this fails, as config.log is still kept open
17462 # by configure, so config.status won't be able to write to it; its
17463 # output is simply discarded.  So we exec the FD to /dev/null,
17464 # effectively closing config.log, so it can be properly (re)opened and
17465 # appended to by config.status.  When coming back to configure, we
17466 # need to make the FD available again.
17467 if test "$no_create" != yes; then
17468   ac_cs_success=:
17469   ac_config_status_args=
17470   test "$silent" = yes &&
17471     ac_config_status_args="$ac_config_status_args --quiet"
17472   exec 5>/dev/null
17473   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17474   exec 5>>config.log
17475   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17476   # would make configure fail if this is the last instruction.
17477   $ac_cs_success || as_fn_exit $?
17478 fi
17479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17480   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17482 fi
17483