OSDN Git Service

461aea3f15744a282475bce608acb1be08d5dadc
[pf3gnuchains/gcc-fork.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 MATH_LIBS
611 USING_SPLIT_STACK_FALSE
612 USING_SPLIT_STACK_TRUE
613 SPLIT_STACK
614 GOARCH
615 LIBGO_IS_ARM_FALSE
616 LIBGO_IS_ARM_TRUE
617 LIBGO_IS_X86_64_FALSE
618 LIBGO_IS_X86_64_TRUE
619 LIBGO_IS_386_FALSE
620 LIBGO_IS_386_TRUE
621 GOOS
622 LIBGO_IS_RTEMS_FALSE
623 LIBGO_IS_RTEMS_TRUE
624 LIBGO_IS_LINUX_FALSE
625 LIBGO_IS_LINUX_TRUE
626 LIBGO_IS_FREEBSD_FALSE
627 LIBGO_IS_FREEBSD_TRUE
628 LIBGO_IS_DARWIN_FALSE
629 LIBGO_IS_DARWIN_TRUE
630 LIBFFIINCS
631 LIBFFI
632 glibgo_toolexeclibdir
633 glibgo_toolexecdir
634 glibgo_prefixdir
635 WERROR
636 WARN_FLAGS
637 enable_static
638 enable_shared
639 CPP
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 AR
646 OBJDUMP
647 LN_S
648 NM
649 ac_ct_DUMPBIN
650 DUMPBIN
651 LIBTOOL
652 OBJCOPY
653 RANLIB
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 GOCFLAGS
663 GOC
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 am__untar
681 am__tar
682 AMTAR
683 am__leading_dot
684 SET_MAKE
685 AWK
686 mkdir_p
687 MKDIR_P
688 INSTALL_STRIP_PROGRAM
689 STRIP
690 install_sh
691 MAKEINFO
692 AUTOHEADER
693 AUTOMAKE
694 AUTOCONF
695 ACLOCAL
696 VERSION
697 PACKAGE
698 CYGPATH_W
699 am__isrc
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 target_os
704 target_vendor
705 target_cpu
706 target
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 multi_basedir
716 libtool_VERSION
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_multilib
759 enable_dependency_tracking
760 enable_maintainer_mode
761 with_gnu_ld
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 enable_libtool_lock
767 enable_version_specific_runtime_libs
768 with_libffi
769 with_system_libunwind
770 '
771       ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CPP
775 CPPFLAGS'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
836
837   case $ac_option in
838   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *)    ac_optarg=yes ;;
840   esac
841
842   # Accept the important Cygnus configure options, so we can diagnose typos.
843
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
847
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
852
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
857
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
864
865   --config-cache | -C)
866     cache_file=config.cache ;;
867
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
872
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
879
880   -disable-* | --disable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=no ;;
895
896   -docdir | --docdir | --docdi | --doc | --do)
897     ac_prev=docdir ;;
898   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899     docdir=$ac_optarg ;;
900
901   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902     ac_prev=dvidir ;;
903   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904     dvidir=$ac_optarg ;;
905
906   -enable-* | --enable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=\$ac_optarg ;;
921
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
930
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
941
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
946
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
952
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
959
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
964
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
969
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
976
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
988
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
993
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
997
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1001
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1005
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1014
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1019
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1026
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1033
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1050
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1055
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1060
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1070
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1081
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1086
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1091
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1098
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1103
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1106
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1109
1110   -with-* | --with-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error "invalid package name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=\$ac_optarg ;;
1125
1126   -without-* | --without-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error "invalid package name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=no ;;
1141
1142   --x)
1143     # Obsolete; use --with-x.
1144     with_x=yes ;;
1145
1146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147   | --x-incl | --x-inc | --x-in | --x-i)
1148     ac_prev=x_includes ;;
1149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151     x_includes=$ac_optarg ;;
1152
1153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155     ac_prev=x_libraries ;;
1156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158     x_libraries=$ac_optarg ;;
1159
1160   -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1162     ;;
1163
1164   *=*)
1165     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166     # Reject names that are not valid shell variable names.
1167     case $ac_envvar in #(
1168       '' | [0-9]* | *[!_$as_cr_alnum]* )
1169       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1170     esac
1171     eval $ac_envvar=\$ac_optarg
1172     export $ac_envvar ;;
1173
1174   *)
1175     # FIXME: should be removed in autoconf 3.0.
1176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180     ;;
1181
1182   esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187   as_fn_error "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191   case $enable_option_checking in
1192     no) ;;
1193     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195   esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200                 datadir sysconfdir sharedstatedir localstatedir includedir \
1201                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202                 libdir localedir mandir
1203 do
1204   eval ac_val=\$$ac_var
1205   # Remove trailing slashes.
1206   case $ac_val in
1207     */ )
1208       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209       eval $ac_var=\$ac_val;;
1210   esac
1211   # Be sure to have absolute directory names.
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   as_fn_error "pwd does not report name of working directory"
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$as_myself" : 'X\(//\)[^/]' \| \
1258          X"$as_myself" : 'X\(//\)$' \| \
1259          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           [$ac_default_prefix]
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351   --bindir=DIR            user executables [EPREFIX/bin]
1352   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR        program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR            object code libraries [EPREFIX/lib]
1358   --includedir=DIR        C header files [PREFIX/include]
1359   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR           info documentation [DATAROOTDIR/info]
1363   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR            man documentation [DATAROOTDIR/man]
1365   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1366   --htmldir=DIR           html documentation [DOCDIR]
1367   --dvidir=DIR            dvi documentation [DOCDIR]
1368   --pdfdir=DIR            pdf documentation [DOCDIR]
1369   --psdir=DIR             ps documentation [DOCDIR]
1370 _ACEOF
1371
1372   cat <<\_ACEOF
1373
1374 Program names:
1375   --program-prefix=PREFIX            prepend PREFIX to installed program names
1376   --program-suffix=SUFFIX            append SUFFIX to installed program names
1377   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of package-unused version-unused:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-option-checking  ignore unrecognized --enable/--with options
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --enable-multilib       build many library versions (default)
1397   --disable-dependency-tracking  speeds up one-time build
1398   --enable-dependency-tracking   do not reject slow dependency extractors
1399   --enable-maintainer-mode  enable make rules and dependencies not useful
1400                           (and sometimes confusing) to the casual installer
1401   --enable-shared[=PKGS]  build shared libraries [default=yes]
1402   --enable-static[=PKGS]  build static libraries [default=yes]
1403   --enable-fast-install[=PKGS]
1404                           optimize for fast installation [default=yes]
1405   --disable-libtool-lock  avoid locking (might break parallel builds)
1406   --enable-version-specific-runtime-libs
1407                           Specify that runtime libraries should be installed
1408                           in a compiler-specific directory
1409
1410 Optional Packages:
1411   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1414   --with-pic              try to use only PIC/non-PIC objects [default=use
1415                           both]
1416   --without-libffi        don't use libffi
1417   --with-system-libunwind use installed libunwind
1418
1419 Some influential environment variables:
1420   CC          C compiler command
1421   CFLAGS      C compiler flags
1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423               nonstandard directory <lib dir>
1424   LIBS        libraries to pass to the linker, e.g. -l<library>
1425   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426               you have headers in a nonstandard directory <include dir>
1427   GOC         Go compiler command
1428   GOCFLAGS    Go compiler flags
1429   CPP         C preprocessor
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to the package provider.
1435 _ACEOF
1436 ac_status=$?
1437 fi
1438
1439 if test "$ac_init_help" = "recursive"; then
1440   # If there are subdirs, report their specific --help.
1441   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442     test -d "$ac_dir" ||
1443       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444       continue
1445     ac_builddir=.
1446
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *)
1450   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451   # A ".." for each directory in $ac_dir_suffix.
1452   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453   case $ac_top_builddir_sub in
1454   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456   esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1462
1463 case $srcdir in
1464   .)  # We are building in place.
1465     ac_srcdir=.
1466     ac_top_srcdir=$ac_top_builddir_sub
1467     ac_abs_top_srcdir=$ac_pwd ;;
1468   [\\/]* | ?:[\\/]* )  # Absolute name.
1469     ac_srcdir=$srcdir$ac_dir_suffix;
1470     ac_top_srcdir=$srcdir
1471     ac_abs_top_srcdir=$srcdir ;;
1472   *) # Relative name.
1473     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474     ac_top_srcdir=$ac_top_build_prefix$srcdir
1475     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
1479     cd "$ac_dir" || { ac_status=$?; continue; }
1480     # Check for guested configure.
1481     if test -f "$ac_srcdir/configure.gnu"; then
1482       echo &&
1483       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484     elif test -f "$ac_srcdir/configure"; then
1485       echo &&
1486       $SHELL "$ac_srcdir/configure" --help=recursive
1487     else
1488       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489     fi || ac_status=$?
1490     cd "$ac_pwd" || { ac_status=$?; break; }
1491   done
1492 fi
1493
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496   cat <<\_ACEOF
1497 package-unused configure version-unused
1498 generated by GNU Autoconf 2.64
1499
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504   exit
1505 fi
1506
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1510
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1515 {
1516   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517   rm -f conftest.$ac_objext
1518   if { { ac_try="$ac_compile"
1519 case "(($ac_try" in
1520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521   *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525   (eval "$ac_compile") 2>conftest.err
1526   ac_status=$?
1527   if test -s conftest.err; then
1528     grep -v '^ *+' conftest.err >conftest.er1
1529     cat conftest.er1 >&5
1530     mv -f conftest.er1 conftest.err
1531   fi
1532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533   test $ac_status = 0; } && {
1534          test -z "$ac_c_werror_flag" ||
1535          test ! -s conftest.err
1536        } && test -s conftest.$ac_objext; then :
1537   ac_retval=0
1538 else
1539   $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1541
1542         ac_retval=1
1543 fi
1544   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545   return $ac_retval
1546
1547 } # ac_fn_c_try_compile
1548
1549 # ac_fn_c_try_link LINENO
1550 # -----------------------
1551 # Try to link conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_link ()
1553 {
1554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555   rm -f conftest.$ac_objext conftest$ac_exeext
1556   if { { ac_try="$ac_link"
1557 case "(($ac_try" in
1558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559   *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563   (eval "$ac_link") 2>conftest.err
1564   ac_status=$?
1565   if test -s conftest.err; then
1566     grep -v '^ *+' conftest.err >conftest.er1
1567     cat conftest.er1 >&5
1568     mv -f conftest.er1 conftest.err
1569   fi
1570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571   test $ac_status = 0; } && {
1572          test -z "$ac_c_werror_flag" ||
1573          test ! -s conftest.err
1574        } && test -s conftest$ac_exeext && {
1575          test "$cross_compiling" = yes ||
1576          $as_test_x conftest$ac_exeext
1577        }; then :
1578   ac_retval=0
1579 else
1580   $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583         ac_retval=1
1584 fi
1585   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1586   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1587   # interfere with the next link command; also delete a directory that is
1588   # left behind by Apple's compiler.  We do this before executing the actions.
1589   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591   return $ac_retval
1592
1593 } # ac_fn_c_try_link
1594
1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists and can be compiled using the include files in
1598 # INCLUDES, setting the cache variable VAR accordingly.
1599 ac_fn_c_check_header_compile ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605   $as_echo_n "(cached) " >&6
1606 else
1607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h.  */
1609 $4
1610 #include <$2>
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"; then :
1613   eval "$3=yes"
1614 else
1615   eval "$3=no"
1616 fi
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618 fi
1619 eval ac_res=\$$3
1620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1622   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623
1624 } # ac_fn_c_check_header_compile
1625
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_cpp ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640   ac_status=$?
1641   if test -s conftest.err; then
1642     grep -v '^ *+' conftest.err >conftest.er1
1643     cat conftest.er1 >&5
1644     mv -f conftest.er1 conftest.err
1645   fi
1646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647   test $ac_status = 0; } >/dev/null && {
1648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649          test ! -s conftest.err
1650        }; then :
1651   ac_retval=0
1652 else
1653   $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656     ac_retval=1
1657 fi
1658   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659   return $ac_retval
1660
1661 } # ac_fn_c_try_cpp
1662
1663 # ac_fn_c_try_run LINENO
1664 # ----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666 # that executables *can* be run.
1667 ac_fn_c_try_run ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673   *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677   (eval "$ac_link") 2>&5
1678   ac_status=$?
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681   { { case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_try") 2>&5
1688   ac_status=$?
1689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690   test $ac_status = 0; }; }; then :
1691   ac_retval=0
1692 else
1693   $as_echo "$as_me: program exited with status $ac_status" >&5
1694        $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697        ac_retval=$ac_status
1698 fi
1699   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
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_run
1704
1705 # ac_fn_c_check_func LINENO FUNC VAR
1706 # ----------------------------------
1707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1708 ac_fn_c_check_func ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714   $as_echo_n "(cached) " >&6
1715 else
1716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h.  */
1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1720 #define $2 innocuous_$2
1721
1722 /* System header to define __stub macros and hopefully few prototypes,
1723     which can conflict with char $2 (); below.
1724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1725     <limits.h> exists even on freestanding compilers.  */
1726
1727 #ifdef __STDC__
1728 # include <limits.h>
1729 #else
1730 # include <assert.h>
1731 #endif
1732
1733 #undef $2
1734
1735 /* Override any GCC internal prototype to avoid an error.
1736    Use char because int might match the return type of a GCC
1737    builtin and then its argument prototype would still apply.  */
1738 #ifdef __cplusplus
1739 extern "C"
1740 #endif
1741 char $2 ();
1742 /* The GNU C library defines this for functions which it implements
1743     to always fail with ENOSYS.  Some functions are actually named
1744     something starting with __ and the normal name is an alias.  */
1745 #if defined __stub_$2 || defined __stub___$2
1746 choke me
1747 #endif
1748
1749 int
1750 main ()
1751 {
1752 return $2 ();
1753   ;
1754   return 0;
1755 }
1756 _ACEOF
1757 if ac_fn_c_try_link "$LINENO"; then :
1758   eval "$3=yes"
1759 else
1760   eval "$3=no"
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext \
1763     conftest$ac_exeext conftest.$ac_ext
1764 fi
1765 eval ac_res=\$$3
1766                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
1770 } # ac_fn_c_check_func
1771
1772 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1775 # the include files in INCLUDES and setting the cache variable VAR
1776 # accordingly.
1777 ac_fn_c_check_header_mongrel ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784   $as_echo_n "(cached) " >&6
1785 fi
1786 eval ac_res=\$$3
1787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 else
1790   # Is the header compilable?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1792 $as_echo_n "checking $2 usability... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h.  */
1795 $4
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799   ac_header_compiler=yes
1800 else
1801   ac_header_compiler=no
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1805 $as_echo "$ac_header_compiler" >&6; }
1806
1807 # Is the header present?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1809 $as_echo_n "checking $2 presence... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_cpp "$LINENO"; then :
1815   ac_header_preproc=yes
1816 else
1817   ac_header_preproc=no
1818 fi
1819 rm -f conftest.err conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1821 $as_echo "$ac_header_preproc" >&6; }
1822
1823 # So?  What about this header?
1824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1825   yes:no: )
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1827 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830     ;;
1831   no:yes:* )
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1833 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1835 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1837 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1839 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1840     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842     ;;
1843 esac
1844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847   $as_echo_n "(cached) " >&6
1848 else
1849   eval "$3=\$ac_header_compiler"
1850 fi
1851 eval ac_res=\$$3
1852                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 fi
1855   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857 } # ac_fn_c_check_header_mongrel
1858
1859 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1860 # -------------------------------------------
1861 # Tests whether TYPE exists after having included INCLUDES, setting cache
1862 # variable VAR accordingly.
1863 ac_fn_c_check_type ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869   $as_echo_n "(cached) " >&6
1870 else
1871   eval "$3=no"
1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1874 $4
1875 int
1876 main ()
1877 {
1878 if (sizeof ($2))
1879          return 0;
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h.  */
1887 $4
1888 int
1889 main ()
1890 {
1891 if (sizeof (($2)))
1892             return 0;
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898
1899 else
1900   eval "$3=yes"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 fi
1906 eval ac_res=\$$3
1907                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910
1911 } # ac_fn_c_check_type
1912 cat >config.log <<_ACEOF
1913 This file contains any messages produced by compilers while
1914 running configure, to aid debugging if configure makes a mistake.
1915
1916 It was created by package-unused $as_me version-unused, which was
1917 generated by GNU Autoconf 2.64.  Invocation command line was
1918
1919   $ $0 $@
1920
1921 _ACEOF
1922 exec 5>>config.log
1923 {
1924 cat <<_ASUNAME
1925 ## --------- ##
1926 ## Platform. ##
1927 ## --------- ##
1928
1929 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934
1935 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1937
1938 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1939 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1940 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1942 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1943 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1944 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1945
1946 _ASUNAME
1947
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953     $as_echo "PATH: $as_dir"
1954   done
1955 IFS=$as_save_IFS
1956
1957 } >&5
1958
1959 cat >&5 <<_ACEOF
1960
1961
1962 ## ----------- ##
1963 ## Core tests. ##
1964 ## ----------- ##
1965
1966 _ACEOF
1967
1968
1969 # Keep a trace of the command line.
1970 # Strip out --no-create and --no-recursion so they do not pile up.
1971 # Strip out --silent because we don't want to record it for future runs.
1972 # Also quote any args containing shell meta-characters.
1973 # Make two passes to allow for proper duplicate-argument suppression.
1974 ac_configure_args=
1975 ac_configure_args0=
1976 ac_configure_args1=
1977 ac_must_keep_next=false
1978 for ac_pass in 1 2
1979 do
1980   for ac_arg
1981   do
1982     case $ac_arg in
1983     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985     | -silent | --silent | --silen | --sile | --sil)
1986       continue ;;
1987     *\'*)
1988       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989     esac
1990     case $ac_pass in
1991     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992     2)
1993       as_fn_append ac_configure_args1 " '$ac_arg'"
1994       if test $ac_must_keep_next = true; then
1995         ac_must_keep_next=false # Got value, back to normal.
1996       else
1997         case $ac_arg in
1998           *=* | --config-cache | -C | -disable-* | --disable-* \
1999           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001           | -with-* | --with-* | -without-* | --without-* | --x)
2002             case "$ac_configure_args0 " in
2003               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004             esac
2005             ;;
2006           -* ) ac_must_keep_next=true ;;
2007         esac
2008       fi
2009       as_fn_append ac_configure_args " '$ac_arg'"
2010       ;;
2011     esac
2012   done
2013 done
2014 { ac_configure_args0=; unset ac_configure_args0;}
2015 { ac_configure_args1=; unset ac_configure_args1;}
2016
2017 # When interrupted or exit'd, cleanup temporary files, and complete
2018 # config.log.  We remove comments because anyway the quotes in there
2019 # would cause problems or look ugly.
2020 # WARNING: Use '\'' to represent an apostrophe within the trap.
2021 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022 trap 'exit_status=$?
2023   # Save into config.log some information that might help in debugging.
2024   {
2025     echo
2026
2027     cat <<\_ASBOX
2028 ## ---------------- ##
2029 ## Cache variables. ##
2030 ## ---------------- ##
2031 _ASBOX
2032     echo
2033     # The following way of writing the cache mishandles newlines in values,
2034 (
2035   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036     eval ac_val=\$$ac_var
2037     case $ac_val in #(
2038     *${as_nl}*)
2039       case $ac_var in #(
2040       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042       esac
2043       case $ac_var in #(
2044       _ | IFS | as_nl) ;; #(
2045       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046       *) { eval $ac_var=; unset $ac_var;} ;;
2047       esac ;;
2048     esac
2049   done
2050   (set) 2>&1 |
2051     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052     *${as_nl}ac_space=\ *)
2053       sed -n \
2054         "s/'\''/'\''\\\\'\'''\''/g;
2055           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056       ;; #(
2057     *)
2058       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059       ;;
2060     esac |
2061     sort
2062 )
2063     echo
2064
2065     cat <<\_ASBOX
2066 ## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##
2069 _ASBOX
2070     echo
2071     for ac_var in $ac_subst_vars
2072     do
2073       eval ac_val=\$$ac_var
2074       case $ac_val in
2075       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076       esac
2077       $as_echo "$ac_var='\''$ac_val'\''"
2078     done | sort
2079     echo
2080
2081     if test -n "$ac_subst_files"; then
2082       cat <<\_ASBOX
2083 ## ------------------- ##
2084 ## File substitutions. ##
2085 ## ------------------- ##
2086 _ASBOX
2087       echo
2088       for ac_var in $ac_subst_files
2089       do
2090         eval ac_val=\$$ac_var
2091         case $ac_val in
2092         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093         esac
2094         $as_echo "$ac_var='\''$ac_val'\''"
2095       done | sort
2096       echo
2097     fi
2098
2099     if test -s confdefs.h; then
2100       cat <<\_ASBOX
2101 ## ----------- ##
2102 ## confdefs.h. ##
2103 ## ----------- ##
2104 _ASBOX
2105       echo
2106       cat confdefs.h
2107       echo
2108     fi
2109     test "$ac_signal" != 0 &&
2110       $as_echo "$as_me: caught signal $ac_signal"
2111     $as_echo "$as_me: exit $exit_status"
2112   } >&5
2113   rm -f core *.core core.conftest.* &&
2114     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115     exit $exit_status
2116 ' 0
2117 for ac_signal in 1 2 13 15; do
2118   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2119 done
2120 ac_signal=0
2121
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest* confdefs.h
2124
2125 $as_echo "/* confdefs.h */" > confdefs.h
2126
2127 # Predefined preprocessor variables.
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2151 _ACEOF
2152
2153
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2156 ac_site_file1=NONE
2157 ac_site_file2=NONE
2158 if test -n "$CONFIG_SITE"; then
2159   ac_site_file1=$CONFIG_SITE
2160 elif test "x$prefix" != xNONE; then
2161   ac_site_file1=$prefix/share/config.site
2162   ac_site_file2=$prefix/etc/config.site
2163 else
2164   ac_site_file1=$ac_default_prefix/share/config.site
2165   ac_site_file2=$ac_default_prefix/etc/config.site
2166 fi
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2168 do
2169   test "x$ac_site_file" = xNONE && continue
2170   if test -r "$ac_site_file"; then
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173     sed 's/^/| /' "$ac_site_file" >&5
2174     . "$ac_site_file"
2175   fi
2176 done
2177
2178 if test -r "$cache_file"; then
2179   # Some versions of bash will fail to source /dev/null (special
2180   # files actually), so we avoid doing that.
2181   if test -f "$cache_file"; then
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2184     case $cache_file in
2185       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186       *)                      . "./$cache_file";;
2187     esac
2188   fi
2189 else
2190   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192   >$cache_file
2193 fi
2194
2195 # Check that the precious variables saved in the cache have kept the same
2196 # value.
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200   eval ac_new_set=\$ac_env_${ac_var}_set
2201   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202   eval ac_new_val=\$ac_env_${ac_var}_value
2203   case $ac_old_set,$ac_new_set in
2204     set,)
2205       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207       ac_cache_corrupted=: ;;
2208     ,set)
2209       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211       ac_cache_corrupted=: ;;
2212     ,);;
2213     *)
2214       if test "x$ac_old_val" != "x$ac_new_val"; then
2215         # differences in whitespace do not lead to failure.
2216         ac_old_val_w=`echo x $ac_old_val`
2217         ac_new_val_w=`echo x $ac_new_val`
2218         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221           ac_cache_corrupted=:
2222         else
2223           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225           eval $ac_var=\$ac_old_val
2226         fi
2227         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2228 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2229         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2231       fi;;
2232   esac
2233   # Pass precious variables to config.status.
2234   if test "$ac_new_set" = set; then
2235     case $ac_new_val in
2236     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237     *) ac_arg=$ac_var=$ac_new_val ;;
2238     esac
2239     case " $ac_configure_args " in
2240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2241       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242     esac
2243   fi
2244 done
2245 if $ac_cache_corrupted; then
2246   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2251 fi
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2255
2256 ac_ext=c
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
2262
2263
2264
2265
2266
2267 ac_config_headers="$ac_config_headers config.h"
2268
2269
2270 libtool_VERSION=1:0:0
2271
2272
2273 # Default to --enable-multilib
2274 # Check whether --enable-multilib was given.
2275 if test "${enable_multilib+set}" = set; then :
2276   enableval=$enable_multilib; case "$enableval" in
2277   yes) multilib=yes ;;
2278   no)  multilib=no ;;
2279   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2280  esac
2281 else
2282   multilib=yes
2283 fi
2284
2285
2286 # We may get other options which we leave undocumented:
2287 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2288 # See config-ml.in if you want the gory details.
2289
2290 if test "$srcdir" = "."; then
2291   if test "$with_target_subdir" != "."; then
2292     multi_basedir="$srcdir/$with_multisrctop../.."
2293   else
2294     multi_basedir="$srcdir/$with_multisrctop.."
2295   fi
2296 else
2297   multi_basedir="$srcdir/.."
2298 fi
2299
2300
2301 # Even if the default multilib is not a cross compilation,
2302 # it may be that some of the other multilibs are.
2303 if test $cross_compiling = no && test $multilib = yes \
2304    && test "x${with_multisubdir}" != x ; then
2305    cross_compiling=maybe
2306 fi
2307
2308 ac_config_commands="$ac_config_commands default-1"
2309
2310
2311 ac_aux_dir=
2312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313   for ac_t in install-sh install.sh shtool; do
2314     if test -f "$ac_dir/$ac_t"; then
2315       ac_aux_dir=$ac_dir
2316       ac_install_sh="$ac_aux_dir/$ac_t -c"
2317       break 2
2318     fi
2319   done
2320 done
2321 if test -z "$ac_aux_dir"; then
2322   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2323 fi
2324
2325 # These three variables are undocumented and unsupported,
2326 # and are intended to be withdrawn in a future Autoconf release.
2327 # They can cause serious problems if a builder's source tree is in a directory
2328 # whose full name contains unusual characters.
2329 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2330 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2331 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2332
2333
2334 # Make sure we can run config.sub.
2335 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2336   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2337
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2339 $as_echo_n "checking build system type... " >&6; }
2340 if test "${ac_cv_build+set}" = set; then :
2341   $as_echo_n "(cached) " >&6
2342 else
2343   ac_build_alias=$build_alias
2344 test "x$ac_build_alias" = x &&
2345   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2346 test "x$ac_build_alias" = x &&
2347   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2349   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2350
2351 fi
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2353 $as_echo "$ac_cv_build" >&6; }
2354 case $ac_cv_build in
2355 *-*-*) ;;
2356 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2357 esac
2358 build=$ac_cv_build
2359 ac_save_IFS=$IFS; IFS='-'
2360 set x $ac_cv_build
2361 shift
2362 build_cpu=$1
2363 build_vendor=$2
2364 shift; shift
2365 # Remember, the first character of IFS is used to create $*,
2366 # except with old shells:
2367 build_os=$*
2368 IFS=$ac_save_IFS
2369 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2370
2371
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2373 $as_echo_n "checking host system type... " >&6; }
2374 if test "${ac_cv_host+set}" = set; then :
2375   $as_echo_n "(cached) " >&6
2376 else
2377   if test "x$host_alias" = x; then
2378   ac_cv_host=$ac_cv_build
2379 else
2380   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2381     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2382 fi
2383
2384 fi
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2386 $as_echo "$ac_cv_host" >&6; }
2387 case $ac_cv_host in
2388 *-*-*) ;;
2389 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2390 esac
2391 host=$ac_cv_host
2392 ac_save_IFS=$IFS; IFS='-'
2393 set x $ac_cv_host
2394 shift
2395 host_cpu=$1
2396 host_vendor=$2
2397 shift; shift
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2400 host_os=$*
2401 IFS=$ac_save_IFS
2402 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2403
2404
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2406 $as_echo_n "checking target system type... " >&6; }
2407 if test "${ac_cv_target+set}" = set; then :
2408   $as_echo_n "(cached) " >&6
2409 else
2410   if test "x$target_alias" = x; then
2411   ac_cv_target=$ac_cv_host
2412 else
2413   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2414     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2415 fi
2416
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2419 $as_echo "$ac_cv_target" >&6; }
2420 case $ac_cv_target in
2421 *-*-*) ;;
2422 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2423 esac
2424 target=$ac_cv_target
2425 ac_save_IFS=$IFS; IFS='-'
2426 set x $ac_cv_target
2427 shift
2428 target_cpu=$1
2429 target_vendor=$2
2430 shift; shift
2431 # Remember, the first character of IFS is used to create $*,
2432 # except with old shells:
2433 target_os=$*
2434 IFS=$ac_save_IFS
2435 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2436
2437
2438 # The aliases save the names the user supplied, while $host etc.
2439 # will get canonicalized.
2440 test -n "$target_alias" &&
2441   test "$program_prefix$program_suffix$program_transform_name" = \
2442     NONENONEs,x,x, &&
2443   program_prefix=${target_alias}-
2444
2445 target_alias=${target_alias-$host_alias}
2446
2447 am__api_version='1.11'
2448
2449 # Find a good install program.  We prefer a C program (faster),
2450 # so one script is as good as another.  But avoid the broken or
2451 # incompatible versions:
2452 # SysV /etc/install, /usr/sbin/install
2453 # SunOS /usr/etc/install
2454 # IRIX /sbin/install
2455 # AIX /bin/install
2456 # AmigaOS /C/install, which installs bootblocks on floppy discs
2457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2460 # OS/2's system install, which has a completely different semantic
2461 # ./install, which can be erroneously created by make from ./install.sh.
2462 # Reject install programs that cannot install multiple files.
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2464 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2465 if test -z "$INSTALL"; then
2466 if test "${ac_cv_path_install+set}" = set; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     # Account for people who put trailing slashes in PATH elements.
2475 case $as_dir/ in #((
2476   ./ | .// | /[cC]/* | \
2477   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2478   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2479   /usr/ucb/* ) ;;
2480   *)
2481     # OSF1 and SCO ODT 3.0 have their own names for install.
2482     # Don't use installbsd from OSF since it installs stuff as root
2483     # by default.
2484     for ac_prog in ginstall scoinst install; do
2485       for ac_exec_ext in '' $ac_executable_extensions; do
2486         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2487           if test $ac_prog = install &&
2488             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2489             # AIX install.  It has an incompatible calling convention.
2490             :
2491           elif test $ac_prog = install &&
2492             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493             # program-specific install script used by HP pwplus--don't use.
2494             :
2495           else
2496             rm -rf conftest.one conftest.two conftest.dir
2497             echo one > conftest.one
2498             echo two > conftest.two
2499             mkdir conftest.dir
2500             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2501               test -s conftest.one && test -s conftest.two &&
2502               test -s conftest.dir/conftest.one &&
2503               test -s conftest.dir/conftest.two
2504             then
2505               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2506               break 3
2507             fi
2508           fi
2509         fi
2510       done
2511     done
2512     ;;
2513 esac
2514
2515   done
2516 IFS=$as_save_IFS
2517
2518 rm -rf conftest.one conftest.two conftest.dir
2519
2520 fi
2521   if test "${ac_cv_path_install+set}" = set; then
2522     INSTALL=$ac_cv_path_install
2523   else
2524     # As a last resort, use the slow shell script.  Don't cache a
2525     # value for INSTALL within a source directory, because that will
2526     # break other packages using the cache if that directory is
2527     # removed, or if the value is a relative name.
2528     INSTALL=$ac_install_sh
2529   fi
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2532 $as_echo "$INSTALL" >&6; }
2533
2534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2535 # It thinks the first close brace ends the variable substitution.
2536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2537
2538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2539
2540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2541
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2543 $as_echo_n "checking whether build environment is sane... " >&6; }
2544 # Just in case
2545 sleep 1
2546 echo timestamp > conftest.file
2547 # Reject unsafe characters in $srcdir or the absolute working directory
2548 # name.  Accept space and tab only in the latter.
2549 am_lf='
2550 '
2551 case `pwd` in
2552   *[\\\"\#\$\&\'\`$am_lf]*)
2553     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2554 esac
2555 case $srcdir in
2556   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2557     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2558 esac
2559
2560 # Do `set' in a subshell so we don't clobber the current shell's
2561 # arguments.  Must try -L first in case configure is actually a
2562 # symlink; some systems play weird games with the mod time of symlinks
2563 # (eg FreeBSD returns the mod time of the symlink's containing
2564 # directory).
2565 if (
2566    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2567    if test "$*" = "X"; then
2568       # -L didn't work.
2569       set X `ls -t "$srcdir/configure" conftest.file`
2570    fi
2571    rm -f conftest.file
2572    if test "$*" != "X $srcdir/configure conftest.file" \
2573       && test "$*" != "X conftest.file $srcdir/configure"; then
2574
2575       # If neither matched, then we have a broken ls.  This can happen
2576       # if, for instance, CONFIG_SHELL is bash and it inherits a
2577       # broken ls alias from the environment.  This has actually
2578       # happened.  Such a system could not be considered "sane".
2579       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2580 alias in your environment" "$LINENO" 5
2581    fi
2582
2583    test "$2" = conftest.file
2584    )
2585 then
2586    # Ok.
2587    :
2588 else
2589    as_fn_error "newly created file is older than distributed files!
2590 Check your system clock" "$LINENO" 5
2591 fi
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593 $as_echo "yes" >&6; }
2594 test "$program_prefix" != NONE &&
2595   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2596 # Use a double $ so make ignores it.
2597 test "$program_suffix" != NONE &&
2598   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2599 # Double any \ or $.
2600 # By default was `s,x,x', remove it if useless.
2601 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2602 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2603
2604 # expand $ac_aux_dir to an absolute path
2605 am_aux_dir=`cd $ac_aux_dir && pwd`
2606
2607 if test x"${MISSING+set}" != xset; then
2608   case $am_aux_dir in
2609   *\ * | *\     *)
2610     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2611   *)
2612     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2613   esac
2614 fi
2615 # Use eval to expand $SHELL
2616 if eval "$MISSING --run true"; then
2617   am_missing_run="$MISSING --run "
2618 else
2619   am_missing_run=
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2621 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2622 fi
2623
2624 if test x"${install_sh}" != xset; then
2625   case $am_aux_dir in
2626   *\ * | *\     *)
2627     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2628   *)
2629     install_sh="\${SHELL} $am_aux_dir/install-sh"
2630   esac
2631 fi
2632
2633 # Installed binaries are usually stripped using `strip' when the user
2634 # run `make install-strip'.  However `strip' might not be the right
2635 # tool to use in cross-compilation environments, therefore Automake
2636 # will honor the `STRIP' environment variable to overrule this program.
2637 if test "$cross_compiling" != no; then
2638   if test -n "$ac_tool_prefix"; then
2639   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}strip; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_STRIP+set}" = set; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test -n "$STRIP"; then
2647   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661   done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 STRIP=$ac_cv_prog_STRIP
2667 if test -n "$STRIP"; then
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2669 $as_echo "$STRIP" >&6; }
2670 else
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676 fi
2677 if test -z "$ac_cv_prog_STRIP"; then
2678   ac_ct_STRIP=$STRIP
2679   # Extract the first word of "strip", so it can be a program name with args.
2680 set dummy strip; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   if test -n "$ac_ct_STRIP"; then
2687   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
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     for ac_exec_ext in '' $ac_executable_extensions; do
2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696     ac_cv_prog_ac_ct_STRIP="strip"
2697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701   done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2707 if test -n "$ac_ct_STRIP"; then
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2709 $as_echo "$ac_ct_STRIP" >&6; }
2710 else
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715   if test "x$ac_ct_STRIP" = x; then
2716     STRIP=":"
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned=yes ;;
2723 esac
2724     STRIP=$ac_ct_STRIP
2725   fi
2726 else
2727   STRIP="$ac_cv_prog_STRIP"
2728 fi
2729
2730 fi
2731 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2734 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2735 if test -z "$MKDIR_P"; then
2736   if test "${ac_cv_path_mkdir+set}" = set; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2741 do
2742   IFS=$as_save_IFS
2743   test -z "$as_dir" && as_dir=.
2744     for ac_prog in mkdir gmkdir; do
2745          for ac_exec_ext in '' $ac_executable_extensions; do
2746            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2747            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2748              'mkdir (GNU coreutils) '* | \
2749              'mkdir (coreutils) '* | \
2750              'mkdir (fileutils) '4.1*)
2751                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752                break 3;;
2753            esac
2754          done
2755        done
2756   done
2757 IFS=$as_save_IFS
2758
2759 fi
2760
2761   if test "${ac_cv_path_mkdir+set}" = set; then
2762     MKDIR_P="$ac_cv_path_mkdir -p"
2763   else
2764     # As a last resort, use the slow shell script.  Don't cache a
2765     # value for MKDIR_P within a source directory, because that will
2766     # break other packages using the cache if that directory is
2767     # removed, or if the value is a relative name.
2768     test -d ./--version && rmdir ./--version
2769     MKDIR_P="$ac_install_sh -d"
2770   fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2773 $as_echo "$MKDIR_P" >&6; }
2774
2775 mkdir_p="$MKDIR_P"
2776 case $mkdir_p in
2777   [\\/$]* | ?:[\\/]*) ;;
2778   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2779 esac
2780
2781 for ac_prog in gawk mawk nawk awk
2782 do
2783   # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_AWK+set}" = set; then :
2788   $as_echo_n "(cached) " >&6
2789 else
2790   if test -n "$AWK"; then
2791   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798     for ac_exec_ext in '' $ac_executable_extensions; do
2799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800     ac_cv_prog_AWK="$ac_prog"
2801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805   done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 AWK=$ac_cv_prog_AWK
2811 if test -n "$AWK"; then
2812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2813 $as_echo "$AWK" >&6; }
2814 else
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819
2820   test -n "$AWK" && break
2821 done
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2824 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2825 set x ${MAKE-make}
2826 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2827 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2828   $as_echo_n "(cached) " >&6
2829 else
2830   cat >conftest.make <<\_ACEOF
2831 SHELL = /bin/sh
2832 all:
2833         @echo '@@@%%%=$(MAKE)=@@@%%%'
2834 _ACEOF
2835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2836 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2837   *@@@%%%=?*=@@@%%%*)
2838     eval ac_cv_prog_make_${ac_make}_set=yes;;
2839   *)
2840     eval ac_cv_prog_make_${ac_make}_set=no;;
2841 esac
2842 rm -f conftest.make
2843 fi
2844 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846 $as_echo "yes" >&6; }
2847   SET_MAKE=
2848 else
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851   SET_MAKE="MAKE=${MAKE-make}"
2852 fi
2853
2854 rm -rf .tst 2>/dev/null
2855 mkdir .tst 2>/dev/null
2856 if test -d .tst; then
2857   am__leading_dot=.
2858 else
2859   am__leading_dot=_
2860 fi
2861 rmdir .tst 2>/dev/null
2862
2863 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2864   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2865   # is not polluted with repeated "-I."
2866   am__isrc=' -I$(srcdir)'
2867   # test to see if srcdir already configured
2868   if test -f $srcdir/config.status; then
2869     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2870   fi
2871 fi
2872
2873 # test whether we have cygpath
2874 if test -z "$CYGPATH_W"; then
2875   if (cygpath --version) >/dev/null 2>/dev/null; then
2876     CYGPATH_W='cygpath -w'
2877   else
2878     CYGPATH_W=echo
2879   fi
2880 fi
2881
2882
2883 # Define the identity of the package.
2884  PACKAGE='libgo'
2885  VERSION='version-unused'
2886
2887
2888 # Some tools Automake needs.
2889
2890 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2891
2892
2893 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2894
2895
2896 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2897
2898
2899 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2900
2901
2902 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2903
2904 # We need awk for the "check" target.  The system "awk" is bad on
2905 # some platforms.
2906 # Always define AMTAR for backward compatibility.
2907
2908 AMTAR=${AMTAR-"${am_missing_run}tar"}
2909
2910 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   if test -n "$CC"; then
2935   ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940   IFS=$as_save_IFS
2941   test -z "$as_dir" && as_dir=.
2942     for ac_exec_ext in '' $ac_executable_extensions; do
2943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946     break 2
2947   fi
2948 done
2949   done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$ac_cv_prog_CC"; then
2966   ac_ct_CC=$CC
2967   # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$ac_ct_CC"; then
2975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     for ac_exec_ext in '' $ac_executable_extensions; do
2983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984     ac_cv_prog_ac_ct_CC="gcc"
2985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989   done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003   if test "x$ac_ct_CC" = x; then
3004     CC=""
3005   else
3006     case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012     CC=$ac_ct_CC
3013   fi
3014 else
3015   CC="$ac_cv_prog_CC"
3016 fi
3017
3018 if test -z "$CC"; then
3019           if test -n "$ac_tool_prefix"; then
3020     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then :
3025   $as_echo_n "(cached) " >&6
3026 else
3027   if test -n "$CC"; then
3028   ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035     for ac_exec_ext in '' $ac_executable_extensions; do
3036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037     ac_cv_prog_CC="${ac_tool_prefix}cc"
3038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039     break 2
3040   fi
3041 done
3042   done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057   fi
3058 fi
3059 if test -z "$CC"; then
3060   # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   if test -n "$CC"; then
3068   ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070   ac_prog_rejected=no
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079        ac_prog_rejected=yes
3080        continue
3081      fi
3082     ac_cv_prog_CC="cc"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 if test $ac_prog_rejected = yes; then
3091   # We found a bogon in the path, so make sure we never use it.
3092   set dummy $ac_cv_prog_CC
3093   shift
3094   if test $# != 0; then
3095     # We chose a different compiler from the bogus one.
3096     # However, it has the same basename, so the bogon will be chosen
3097     # first if we set CC to just the basename; use the full file name.
3098     shift
3099     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100   fi
3101 fi
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$CC"; then
3116   if test -n "$ac_tool_prefix"; then
3117   for ac_prog in cl.exe
3118   do
3119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if test "${ac_cv_prog_CC+set}" = set; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   if test -n "$CC"; then
3127   ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134     for ac_exec_ext in '' $ac_executable_extensions; do
3135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138     break 2
3139   fi
3140 done
3141   done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156     test -n "$CC" && break
3157   done
3158 fi
3159 if test -z "$CC"; then
3160   ac_ct_CC=$CC
3161   for ac_prog in cl.exe
3162 do
3163   # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$ac_ct_CC"; then
3171   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178     for ac_exec_ext in '' $ac_executable_extensions; do
3179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180     ac_cv_prog_ac_ct_CC="$ac_prog"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200   test -n "$ac_ct_CC" && break
3201 done
3202
3203   if test "x$ac_ct_CC" = x; then
3204     CC=""
3205   else
3206     case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212     CC=$ac_ct_CC
3213   fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." "$LINENO" 5; }
3223
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226 set X $ac_compile
3227 ac_compiler=$2
3228 for ac_option in --version -v -V -qversion; do
3229   { { ac_try="$ac_compiler $ac_option >&5"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237   ac_status=$?
3238   if test -s conftest.err; then
3239     sed '10a\
3240 ... rest of stderr output deleted ...
3241          10q' conftest.err >conftest.er1
3242     cat conftest.er1 >&5
3243     rm -f conftest.er1 conftest.err
3244   fi
3245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246   test $ac_status = 0; }
3247 done
3248
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h.  */
3251
3252 int
3253 main ()
3254 {
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3264 # of exeext.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3266 $as_echo_n "checking for C compiler default output file name... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3274 do
3275   case $ac_file in
3276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278   esac
3279 done
3280 rm -f $ac_rmfiles
3281
3282 if { { ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289   (eval "$ac_link_default") 2>&5
3290   ac_status=$?
3291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292   test $ac_status = 0; }; then :
3293   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3297 # Autoconf.
3298 for ac_file in $ac_files ''
3299 do
3300   test -f "$ac_file" || continue
3301   case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303         ;;
3304     [ab].out )
3305         # We found the default executable, but exeext='' is most
3306         # certainly right.
3307         break;;
3308     *.* )
3309         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310         then :; else
3311            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312         fi
3313         # We set ac_cv_exeext here because the later test for it is not
3314         # safe: cross compilers may not add the suffix if given an `-o'
3315         # argument, so we may need to know it at that point already.
3316         # Even if this section looks crufty: it has the advantage of
3317         # actually working.
3318         break;;
3319     * )
3320         break;;
3321   esac
3322 done
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324
3325 else
3326   ac_file=''
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3329 $as_echo "$ac_file" >&6; }
3330 if test -z "$ac_file"; then :
3331   $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 { as_fn_set_status 77
3337 as_fn_error "C compiler cannot create executables
3338 See \`config.log' for more details." "$LINENO" 5; }; }
3339 fi
3340 ac_exeext=$ac_cv_exeext
3341
3342 # Check that the compiler produces executables we can run.  If not, either
3343 # the compiler is broken, or we cross compile.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3345 $as_echo_n "checking whether the C compiler works... " >&6; }
3346 # If not cross compiling, check that we can run a simple program.
3347 if test "$cross_compiling" != yes; then
3348   if { ac_try='./$ac_file'
3349   { { case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355   (eval "$ac_try") 2>&5
3356   ac_status=$?
3357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358   test $ac_status = 0; }; }; then
3359     cross_compiling=no
3360   else
3361     if test "$cross_compiling" = maybe; then
3362         cross_compiling=yes
3363     else
3364         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error "cannot run C compiled programs.
3367 If you meant to cross compile, use \`--host'.
3368 See \`config.log' for more details." "$LINENO" 5; }
3369     fi
3370   fi
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3374
3375 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3376 ac_clean_files=$ac_clean_files_save
3377 # Check that the compiler produces executables we can run.  If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3380 $as_echo_n "checking whether we are cross compiling... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3382 $as_echo "$cross_compiling" >&6; }
3383
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3385 $as_echo_n "checking for suffix of executables... " >&6; }
3386 if { { ac_try="$ac_link"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393   (eval "$ac_link") 2>&5
3394   ac_status=$?
3395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396   test $ac_status = 0; }; then :
3397   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3398 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3399 # work properly (i.e., refer to `conftest.exe'), while it won't with
3400 # `rm'.
3401 for ac_file in conftest.exe conftest conftest.*; do
3402   test -f "$ac_file" || continue
3403   case $ac_file in
3404     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406           break;;
3407     * ) break;;
3408   esac
3409 done
3410 else
3411   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error "cannot compute suffix of executables: cannot compile and link
3414 See \`config.log' for more details." "$LINENO" 5; }
3415 fi
3416 rm -f conftest$ac_cv_exeext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3418 $as_echo "$ac_cv_exeext" >&6; }
3419
3420 rm -f conftest.$ac_ext
3421 EXEEXT=$ac_cv_exeext
3422 ac_exeext=$EXEEXT
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if test "${ac_cv_objext+set}" = set; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.o conftest.obj
3440 if { { ac_try="$ac_compile"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_compile") 2>&5
3448   ac_status=$?
3449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450   test $ac_status = 0; }; then :
3451   for ac_file in conftest.o conftest.obj conftest.*; do
3452   test -f "$ac_file" || continue;
3453   case $ac_file in
3454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3455     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456        break;;
3457   esac
3458 done
3459 else
3460   $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error "cannot compute suffix of object files: cannot compile
3466 See \`config.log' for more details." "$LINENO" 5; }
3467 fi
3468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471 $as_echo "$ac_cv_objext" >&6; }
3472 OBJEXT=$ac_cv_objext
3473 ac_objext=$OBJEXT
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3476 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481
3482 int
3483 main ()
3484 {
3485 #ifndef __GNUC__
3486        choke me
3487 #endif
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494   ac_compiler_gnu=yes
3495 else
3496   ac_compiler_gnu=no
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3504 if test $ac_compiler_gnu = yes; then
3505   GCC=yes
3506 else
3507   GCC=
3508 fi
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3513 if test "${ac_cv_prog_cc_g+set}" = set; then :
3514   $as_echo_n "(cached) " >&6
3515 else
3516   ac_save_c_werror_flag=$ac_c_werror_flag
3517    ac_c_werror_flag=yes
3518    ac_cv_prog_cc_g=no
3519    CFLAGS="-g"
3520    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h.  */
3522
3523 int
3524 main ()
3525 {
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532   ac_cv_prog_cc_g=yes
3533 else
3534   CFLAGS=""
3535       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547
3548 else
3549   ac_c_werror_flag=$ac_save_c_werror_flag
3550          CFLAGS="-g"
3551          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h.  */
3553
3554 int
3555 main ()
3556 {
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563   ac_cv_prog_cc_g=yes
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570    ac_c_werror_flag=$ac_save_c_werror_flag
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575   CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577   if test "$GCC" = yes; then
3578     CFLAGS="-g -O2"
3579   else
3580     CFLAGS="-g"
3581   fi
3582 else
3583   if test "$GCC" = yes; then
3584     CFLAGS="-O2"
3585   else
3586     CFLAGS=
3587   fi
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_cv_prog_cc_c89=no
3595 ac_save_CC=$CC
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606      char **p;
3607      int i;
3608 {
3609   return p[i];
3610 }
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3612 {
3613   char *s;
3614   va_list v;
3615   va_start (v,p);
3616   s = g (p, va_arg (v,int));
3617   va_end (v);
3618   return s;
3619 }
3620
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3622    function prototypes and stuff, but not '\xHH' hex character constants.
3623    These don't provoke an error unfortunately, instead are silently treated
3624    as 'x'.  The following induces an error, until -std is added to get
3625    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3626    array size at least.  It's necessary to write '\x00'==0 to get something
3627    that's true only with -std.  */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631    inside strings and character constants.  */
3632 #define FOO(x) 'x'
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 int argc;
3640 char **argv;
3641 int
3642 main ()
3643 {
3644 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3651 do
3652   CC="$ac_save_CC $ac_arg"
3653   if ac_fn_c_try_compile "$LINENO"; then :
3654   ac_cv_prog_cc_c89=$ac_arg
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext
3657   test "x$ac_cv_prog_cc_c89" != "xno" && break
3658 done
3659 rm -f conftest.$ac_ext
3660 CC=$ac_save_CC
3661
3662 fi
3663 # AC_CACHE_VAL
3664 case "x$ac_cv_prog_cc_c89" in
3665   x)
3666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 $as_echo "none needed" >&6; } ;;
3668   xno)
3669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3670 $as_echo "unsupported" >&6; } ;;
3671   *)
3672     CC="$CC $ac_cv_prog_cc_c89"
3673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3675 esac
3676 if test "x$ac_cv_prog_cc_c89" != xno; then :
3677
3678 fi
3679
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 DEPDIR="${am__leading_dot}deps"
3686
3687 ac_config_commands="$ac_config_commands depfiles"
3688
3689
3690 am_make=${MAKE-make}
3691 cat > confinc << 'END'
3692 am__doit:
3693         @echo this is the am__doit target
3694 .PHONY: am__doit
3695 END
3696 # If we don't find an include directive, just comment out the code.
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3698 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3699 am__include="#"
3700 am__quote=
3701 _am_result=none
3702 # First try GNU make style include.
3703 echo "include confinc" > confmf
3704 # Ignore all kinds of additional output from `make'.
3705 case `$am_make -s -f confmf 2> /dev/null` in #(
3706 *the\ am__doit\ target*)
3707   am__include=include
3708   am__quote=
3709   _am_result=GNU
3710   ;;
3711 esac
3712 # Now try BSD make style include.
3713 if test "$am__include" = "#"; then
3714    echo '.include "confinc"' > confmf
3715    case `$am_make -s -f confmf 2> /dev/null` in #(
3716    *the\ am__doit\ target*)
3717      am__include=.include
3718      am__quote="\""
3719      _am_result=BSD
3720      ;;
3721    esac
3722 fi
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3726 $as_echo "$_am_result" >&6; }
3727 rm -f confinc confmf
3728
3729 # Check whether --enable-dependency-tracking was given.
3730 if test "${enable_dependency_tracking+set}" = set; then :
3731   enableval=$enable_dependency_tracking;
3732 fi
3733
3734 if test "x$enable_dependency_tracking" != xno; then
3735   am_depcomp="$ac_aux_dir/depcomp"
3736   AMDEPBACKSLASH='\'
3737 fi
3738  if test "x$enable_dependency_tracking" != xno; then
3739   AMDEP_TRUE=
3740   AMDEP_FALSE='#'
3741 else
3742   AMDEP_TRUE='#'
3743   AMDEP_FALSE=
3744 fi
3745
3746
3747
3748 depcc="$CC"   am_compiler_list=
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3751 $as_echo_n "checking dependency style of $depcc... " >&6; }
3752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3756   # We make a subdir and do the tests there.  Otherwise we can end up
3757   # making bogus files that we don't know about and never remove.  For
3758   # instance it was reported that on HP-UX the gcc test will end up
3759   # making a dummy file named `D' -- because `-MD' means `put the output
3760   # in D'.
3761   mkdir conftest.dir
3762   # Copy depcomp to subdir because otherwise we won't find it if we're
3763   # using a relative directory.
3764   cp "$am_depcomp" conftest.dir
3765   cd conftest.dir
3766   # We will build objects and dependencies in a subdirectory because
3767   # it helps to detect inapplicable dependency modes.  For instance
3768   # both Tru64's cc and ICC support -MD to output dependencies as a
3769   # side effect of compilation, but ICC will put the dependencies in
3770   # the current directory while Tru64 will put them in the object
3771   # directory.
3772   mkdir sub
3773
3774   am_cv_CC_dependencies_compiler_type=none
3775   if test "$am_compiler_list" = ""; then
3776      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3777   fi
3778   am__universal=false
3779   case " $depcc " in #(
3780      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3781      esac
3782
3783   for depmode in $am_compiler_list; do
3784     # Setup a source with many dependencies, because some compilers
3785     # like to wrap large dependency lists on column 80 (with \), and
3786     # we should not choose a depcomp mode which is confused by this.
3787     #
3788     # We need to recreate these files for each test, as the compiler may
3789     # overwrite some of them when testing with obscure command lines.
3790     # This happens at least with the AIX C compiler.
3791     : > sub/conftest.c
3792     for i in 1 2 3 4 5 6; do
3793       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3794       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3795       # Solaris 8's {/usr,}/bin/sh.
3796       touch sub/conftst$i.h
3797     done
3798     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3799
3800     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801     # mode.  It turns out that the SunPro C++ compiler does not properly
3802     # handle `-M -o', and we need to detect this.  Also, some Intel
3803     # versions had trouble with output in subdirs
3804     am__obj=sub/conftest.${OBJEXT-o}
3805     am__minus_obj="-o $am__obj"
3806     case $depmode in
3807     gcc)
3808       # This depmode causes a compiler race in universal mode.
3809       test "$am__universal" = false || continue
3810       ;;
3811     nosideeffect)
3812       # after this tag, mechanisms are not by side-effect, so they'll
3813       # only be used when explicitly requested
3814       if test "x$enable_dependency_tracking" = xyes; then
3815         continue
3816       else
3817         break
3818       fi
3819       ;;
3820     msvisualcpp | msvcmsys)
3821       # This compiler won't grok `-c -o', but also, the minuso test has
3822       # not run yet.  These depmodes are late enough in the game, and
3823       # so weak that their functioning should not be impacted.
3824       am__obj=conftest.${OBJEXT-o}
3825       am__minus_obj=
3826       ;;
3827     none) break ;;
3828     esac
3829     if depmode=$depmode \
3830        source=sub/conftest.c object=$am__obj \
3831        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3832        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3833          >/dev/null 2>conftest.err &&
3834        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3835        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3836        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3837        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3838       # icc doesn't choke on unknown options, it will just issue warnings
3839       # or remarks (even with -Werror).  So we grep stderr for any message
3840       # that says an option was ignored or not supported.
3841       # When given -MP, icc 7.0 and 7.1 complain thusly:
3842       #   icc: Command line warning: ignoring option '-M'; no argument required
3843       # The diagnosis changed in icc 8.0:
3844       #   icc: Command line remark: option '-MP' not supported
3845       if (grep 'ignoring option' conftest.err ||
3846           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3847         am_cv_CC_dependencies_compiler_type=$depmode
3848         break
3849       fi
3850     fi
3851   done
3852
3853   cd ..
3854   rm -rf conftest.dir
3855 else
3856   am_cv_CC_dependencies_compiler_type=none
3857 fi
3858
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3863
3864  if
3865   test "x$enable_dependency_tracking" != xno \
3866   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3867   am__fastdepCC_TRUE=
3868   am__fastdepCC_FALSE='#'
3869 else
3870   am__fastdepCC_TRUE='#'
3871   am__fastdepCC_FALSE=
3872 fi
3873
3874
3875 ac_ext=go
3876 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3877 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compile_gnu=yes
3879 if test -n "$ac_tool_prefix"; then
3880   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3881 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_GOC+set}" = set; then :
3885   $as_echo_n "(cached) " >&6
3886 else
3887   if test -n "$GOC"; then
3888   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895     for ac_exec_ext in '' $ac_executable_extensions; do
3896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899     break 2
3900   fi
3901 done
3902   done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 GOC=$ac_cv_prog_GOC
3908 if test -n "$GOC"; then
3909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3910 $as_echo "$GOC" >&6; }
3911 else
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914 fi
3915
3916
3917 fi
3918 if test -z "$ac_cv_prog_GOC"; then
3919   ac_ct_GOC=$GOC
3920   # Extract the first word of "gccgo", so it can be a program name with args.
3921 set dummy gccgo; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -n "$ac_ct_GOC"; then
3928   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935     for ac_exec_ext in '' $ac_executable_extensions; do
3936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937     ac_cv_prog_ac_ct_GOC="gccgo"
3938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942   done
3943 IFS=$as_save_IFS
3944
3945 fi
3946 fi
3947 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3948 if test -n "$ac_ct_GOC"; then
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3950 $as_echo "$ac_ct_GOC" >&6; }
3951 else
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956   if test "x$ac_ct_GOC" = x; then
3957     GOC=""
3958   else
3959     case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965     GOC=$ac_ct_GOC
3966   fi
3967 else
3968   GOC="$ac_cv_prog_GOC"
3969 fi
3970
3971 if test -z "$GOC"; then
3972   if test -n "$ac_tool_prefix"; then
3973     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3974 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_prog_GOC+set}" = set; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   if test -n "$GOC"; then
3981   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986   IFS=$as_save_IFS
3987   test -z "$as_dir" && as_dir=.
3988     for ac_exec_ext in '' $ac_executable_extensions; do
3989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992     break 2
3993   fi
3994 done
3995   done
3996 IFS=$as_save_IFS
3997
3998 fi
3999 fi
4000 GOC=$ac_cv_prog_GOC
4001 if test -n "$GOC"; then
4002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4003 $as_echo "$GOC" >&6; }
4004 else
4005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 fi
4008
4009
4010   fi
4011 fi
4012 if test -z "$GOC"; then
4013   # Extract the first word of "gccgo", so it can be a program name with args.
4014 set dummy gccgo; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_prog_GOC+set}" = set; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   if test -n "$GOC"; then
4021   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4022 else
4023   ac_prog_rejected=no
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027   IFS=$as_save_IFS
4028   test -z "$as_dir" && as_dir=.
4029     for ac_exec_ext in '' $ac_executable_extensions; do
4030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4032        ac_prog_rejected=yes
4033        continue
4034      fi
4035     ac_cv_prog_GOC="gccgo"
4036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040   done
4041 IFS=$as_save_IFS
4042
4043 if test $ac_prog_rejected = yes; then
4044   # We found a bogon in the path, so make sure we never use it.
4045   set dummy $ac_cv_prog_GOC
4046   shift
4047   if test $# != 0; then
4048     # We chose a different compiler from the bogus one.
4049     # However, it has the same basename, so the bogon will be chosen
4050     # first if we set GOC to just the basename; use the full file name.
4051     shift
4052     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4053   fi
4054 fi
4055 fi
4056 fi
4057 GOC=$ac_cv_prog_GOC
4058 if test -n "$GOC"; then
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4060 $as_echo "$GOC" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066
4067 fi
4068
4069
4070 # Provide some information about the compiler.
4071 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4072 set X $ac_compile
4073 ac_compiler=$2
4074 { { ac_try="$ac_compiler --version >&5"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081   (eval "$ac_compiler --version >&5") 2>conftest.err
4082   ac_status=$?
4083   if test -s conftest.err; then
4084     sed '10a\
4085 ... rest of stderr output deleted ...
4086          10q' conftest.err >conftest.er1
4087     cat conftest.er1 >&5
4088     rm -f conftest.er1 conftest.err
4089   fi
4090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091   test $ac_status = 0; }
4092 GOCFLAGS="-g -O2"
4093 ac_ext=c
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100
4101
4102
4103
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4105 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4106     # Check whether --enable-maintainer-mode was given.
4107 if test "${enable_maintainer_mode+set}" = set; then :
4108   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4109 else
4110   USE_MAINTAINER_MODE=no
4111 fi
4112
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4114 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4115    if test $USE_MAINTAINER_MODE = yes; then
4116   MAINTAINER_MODE_TRUE=
4117   MAINTAINER_MODE_FALSE='#'
4118 else
4119   MAINTAINER_MODE_TRUE='#'
4120   MAINTAINER_MODE_FALSE=
4121 fi
4122
4123   MAINT=$MAINTAINER_MODE_TRUE
4124
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4128 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4129 if test "${ac_cv_path_SED+set}" = set; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4133      for ac_i in 1 2 3 4 5 6 7; do
4134        ac_script="$ac_script$as_nl$ac_script"
4135      done
4136      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4137      { ac_script=; unset ac_script;}
4138      if test -z "$SED"; then
4139   ac_path_SED_found=false
4140   # Loop through the user's path and test for each of PROGNAME-LIST
4141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144   IFS=$as_save_IFS
4145   test -z "$as_dir" && as_dir=.
4146     for ac_prog in sed gsed; do
4147     for ac_exec_ext in '' $ac_executable_extensions; do
4148       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4149       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4150 # Check for GNU ac_path_SED and select it if it is found.
4151   # Check for GNU $ac_path_SED
4152 case `"$ac_path_SED" --version 2>&1` in
4153 *GNU*)
4154   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4155 *)
4156   ac_count=0
4157   $as_echo_n 0123456789 >"conftest.in"
4158   while :
4159   do
4160     cat "conftest.in" "conftest.in" >"conftest.tmp"
4161     mv "conftest.tmp" "conftest.in"
4162     cp "conftest.in" "conftest.nl"
4163     $as_echo '' >> "conftest.nl"
4164     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166     as_fn_arith $ac_count + 1 && ac_count=$as_val
4167     if test $ac_count -gt ${ac_path_SED_max-0}; then
4168       # Best one so far, save it but keep looking for a better one
4169       ac_cv_path_SED="$ac_path_SED"
4170       ac_path_SED_max=$ac_count
4171     fi
4172     # 10*(2^10) chars as input seems more than enough
4173     test $ac_count -gt 10 && break
4174   done
4175   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176 esac
4177
4178       $ac_path_SED_found && break 3
4179     done
4180   done
4181   done
4182 IFS=$as_save_IFS
4183   if test -z "$ac_cv_path_SED"; then
4184     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4185   fi
4186 else
4187   ac_cv_path_SED=$SED
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4192 $as_echo "$ac_cv_path_SED" >&6; }
4193  SED="$ac_cv_path_SED"
4194   rm -f conftest.sed
4195
4196 test -z "$SED" && SED=sed
4197 Xsed="$SED -e 1s/^X//"
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4210 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4211 if test "${ac_cv_path_GREP+set}" = set; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214   if test -z "$GREP"; then
4215   ac_path_GREP_found=false
4216   # Loop through the user's path and test for each of PROGNAME-LIST
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222     for ac_prog in grep ggrep; do
4223     for ac_exec_ext in '' $ac_executable_extensions; do
4224       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4225       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4226 # Check for GNU ac_path_GREP and select it if it is found.
4227   # Check for GNU $ac_path_GREP
4228 case `"$ac_path_GREP" --version 2>&1` in
4229 *GNU*)
4230   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4231 *)
4232   ac_count=0
4233   $as_echo_n 0123456789 >"conftest.in"
4234   while :
4235   do
4236     cat "conftest.in" "conftest.in" >"conftest.tmp"
4237     mv "conftest.tmp" "conftest.in"
4238     cp "conftest.in" "conftest.nl"
4239     $as_echo 'GREP' >> "conftest.nl"
4240     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242     as_fn_arith $ac_count + 1 && ac_count=$as_val
4243     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4244       # Best one so far, save it but keep looking for a better one
4245       ac_cv_path_GREP="$ac_path_GREP"
4246       ac_path_GREP_max=$ac_count
4247     fi
4248     # 10*(2^10) chars as input seems more than enough
4249     test $ac_count -gt 10 && break
4250   done
4251   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4253
4254       $ac_path_GREP_found && break 3
4255     done
4256   done
4257   done
4258 IFS=$as_save_IFS
4259   if test -z "$ac_cv_path_GREP"; then
4260     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261   fi
4262 else
4263   ac_cv_path_GREP=$GREP
4264 fi
4265
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4268 $as_echo "$ac_cv_path_GREP" >&6; }
4269  GREP="$ac_cv_path_GREP"
4270
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4273 $as_echo_n "checking for egrep... " >&6; }
4274 if test "${ac_cv_path_EGREP+set}" = set; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4278    then ac_cv_path_EGREP="$GREP -E"
4279    else
4280      if test -z "$EGREP"; then
4281   ac_path_EGREP_found=false
4282   # Loop through the user's path and test for each of PROGNAME-LIST
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_prog in egrep; do
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4291       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4292 # Check for GNU ac_path_EGREP and select it if it is found.
4293   # Check for GNU $ac_path_EGREP
4294 case `"$ac_path_EGREP" --version 2>&1` in
4295 *GNU*)
4296   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4297 *)
4298   ac_count=0
4299   $as_echo_n 0123456789 >"conftest.in"
4300   while :
4301   do
4302     cat "conftest.in" "conftest.in" >"conftest.tmp"
4303     mv "conftest.tmp" "conftest.in"
4304     cp "conftest.in" "conftest.nl"
4305     $as_echo 'EGREP' >> "conftest.nl"
4306     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308     as_fn_arith $ac_count + 1 && ac_count=$as_val
4309     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310       # Best one so far, save it but keep looking for a better one
4311       ac_cv_path_EGREP="$ac_path_EGREP"
4312       ac_path_EGREP_max=$ac_count
4313     fi
4314     # 10*(2^10) chars as input seems more than enough
4315     test $ac_count -gt 10 && break
4316   done
4317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4319
4320       $ac_path_EGREP_found && break 3
4321     done
4322   done
4323   done
4324 IFS=$as_save_IFS
4325   if test -z "$ac_cv_path_EGREP"; then
4326     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4327   fi
4328 else
4329   ac_cv_path_EGREP=$EGREP
4330 fi
4331
4332    fi
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4335 $as_echo "$ac_cv_path_EGREP" >&6; }
4336  EGREP="$ac_cv_path_EGREP"
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4340 $as_echo_n "checking for fgrep... " >&6; }
4341 if test "${ac_cv_path_FGREP+set}" = set; then :
4342   $as_echo_n "(cached) " >&6
4343 else
4344   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4345    then ac_cv_path_FGREP="$GREP -F"
4346    else
4347      if test -z "$FGREP"; then
4348   ac_path_FGREP_found=false
4349   # Loop through the user's path and test for each of PROGNAME-LIST
4350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355     for ac_prog in fgrep; do
4356     for ac_exec_ext in '' $ac_executable_extensions; do
4357       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4358       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4359 # Check for GNU ac_path_FGREP and select it if it is found.
4360   # Check for GNU $ac_path_FGREP
4361 case `"$ac_path_FGREP" --version 2>&1` in
4362 *GNU*)
4363   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4364 *)
4365   ac_count=0
4366   $as_echo_n 0123456789 >"conftest.in"
4367   while :
4368   do
4369     cat "conftest.in" "conftest.in" >"conftest.tmp"
4370     mv "conftest.tmp" "conftest.in"
4371     cp "conftest.in" "conftest.nl"
4372     $as_echo 'FGREP' >> "conftest.nl"
4373     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375     as_fn_arith $ac_count + 1 && ac_count=$as_val
4376     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4377       # Best one so far, save it but keep looking for a better one
4378       ac_cv_path_FGREP="$ac_path_FGREP"
4379       ac_path_FGREP_max=$ac_count
4380     fi
4381     # 10*(2^10) chars as input seems more than enough
4382     test $ac_count -gt 10 && break
4383   done
4384   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4385 esac
4386
4387       $ac_path_FGREP_found && break 3
4388     done
4389   done
4390   done
4391 IFS=$as_save_IFS
4392   if test -z "$ac_cv_path_FGREP"; then
4393     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4394   fi
4395 else
4396   ac_cv_path_FGREP=$FGREP
4397 fi
4398
4399    fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4402 $as_echo "$ac_cv_path_FGREP" >&6; }
4403  FGREP="$ac_cv_path_FGREP"
4404
4405
4406 test -z "$GREP" && GREP=grep
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4425 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4426 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4429 $as_echo_n "checking how to print strings... " >&6; }
4430 # Test print first, because it will be a builtin if present.
4431 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4432    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4433   ECHO='print -r --'
4434 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4435   ECHO='printf %s\n'
4436 else
4437   # Use this function as a fallback that always works.
4438   func_fallback_echo ()
4439   {
4440     eval 'cat <<_LTECHO_EOF
4441 $1
4442 _LTECHO_EOF'
4443   }
4444   ECHO='func_fallback_echo'
4445 fi
4446
4447 # func_echo_all arg...
4448 # Invoke $ECHO with all args, space-separated.
4449 func_echo_all ()
4450 {
4451     $ECHO ""
4452 }
4453
4454 case "$ECHO" in
4455   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4456 $as_echo "printf" >&6; } ;;
4457   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4458 $as_echo "print -r" >&6; } ;;
4459   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4460 $as_echo "cat" >&6; } ;;
4461 esac
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478 # Check whether --with-gnu-ld was given.
4479 if test "${with_gnu_ld+set}" = set; then :
4480   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4481 else
4482   with_gnu_ld=no
4483 fi
4484
4485 ac_prog=ld
4486 if test "$GCC" = yes; then
4487   # Check if gcc -print-prog-name=ld gives a path.
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4489 $as_echo_n "checking for ld used by $CC... " >&6; }
4490   case $host in
4491   *-*-mingw*)
4492     # gcc leaves a trailing carriage return which upsets mingw
4493     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4494   *)
4495     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4496   esac
4497   case $ac_prog in
4498     # Accept absolute paths.
4499     [\\/]* | ?:[\\/]*)
4500       re_direlt='/[^/][^/]*/\.\./'
4501       # Canonicalize the pathname of ld
4502       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4503       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4504         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4505       done
4506       test -z "$LD" && LD="$ac_prog"
4507       ;;
4508   "")
4509     # If it fails, then pretend we aren't using GCC.
4510     ac_prog=ld
4511     ;;
4512   *)
4513     # If it is relative, then search for the first ld in PATH.
4514     with_gnu_ld=unknown
4515     ;;
4516   esac
4517 elif test "$with_gnu_ld" = yes; then
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4519 $as_echo_n "checking for GNU ld... " >&6; }
4520 else
4521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4522 $as_echo_n "checking for non-GNU ld... " >&6; }
4523 fi
4524 if test "${lt_cv_path_LD+set}" = set; then :
4525   $as_echo_n "(cached) " >&6
4526 else
4527   if test -z "$LD"; then
4528   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4529   for ac_dir in $PATH; do
4530     IFS="$lt_save_ifs"
4531     test -z "$ac_dir" && ac_dir=.
4532     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4533       lt_cv_path_LD="$ac_dir/$ac_prog"
4534       # Check to see if the program is GNU ld.  I'd rather use --version,
4535       # but apparently some variants of GNU ld only accept -v.
4536       # Break only if it was the GNU/non-GNU ld that we prefer.
4537       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4538       *GNU* | *'with BFD'*)
4539         test "$with_gnu_ld" != no && break
4540         ;;
4541       *)
4542         test "$with_gnu_ld" != yes && break
4543         ;;
4544       esac
4545     fi
4546   done
4547   IFS="$lt_save_ifs"
4548 else
4549   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4550 fi
4551 fi
4552
4553 LD="$lt_cv_path_LD"
4554 if test -n "$LD"; then
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4556 $as_echo "$LD" >&6; }
4557 else
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4563 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4564 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4568 case `$LD -v 2>&1 </dev/null` in
4569 *GNU* | *'with BFD'*)
4570   lt_cv_prog_gnu_ld=yes
4571   ;;
4572 *)
4573   lt_cv_prog_gnu_ld=no
4574   ;;
4575 esac
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4578 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4579 with_gnu_ld=$lt_cv_prog_gnu_ld
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589 if test -n "$ac_tool_prefix"; then
4590   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   if test -n "$RANLIB"; then
4598   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605     for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612   done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 RANLIB=$ac_cv_prog_RANLIB
4618 if test -n "$RANLIB"; then
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4620 $as_echo "$RANLIB" >&6; }
4621 else
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 fi
4628 if test -z "$ac_cv_prog_RANLIB"; then
4629   ac_ct_RANLIB=$RANLIB
4630   # Extract the first word of "ranlib", so it can be a program name with args.
4631 set dummy ranlib; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   if test -n "$ac_ct_RANLIB"; then
4638   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645     for ac_exec_ext in '' $ac_executable_extensions; do
4646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647     ac_cv_prog_ac_ct_RANLIB="ranlib"
4648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649     break 2
4650   fi
4651 done
4652   done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4658 if test -n "$ac_ct_RANLIB"; then
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4660 $as_echo "$ac_ct_RANLIB" >&6; }
4661 else
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666   if test "x$ac_ct_RANLIB" = x; then
4667     RANLIB=":"
4668   else
4669     case $cross_compiling:$ac_tool_warned in
4670 yes:)
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned=yes ;;
4674 esac
4675     RANLIB=$ac_ct_RANLIB
4676   fi
4677 else
4678   RANLIB="$ac_cv_prog_RANLIB"
4679 fi
4680
4681 if test -n "$ac_tool_prefix"; then
4682   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   if test -n "$OBJCOPY"; then
4690   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_exec_ext in '' $ac_executable_extensions; do
4698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704   done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 OBJCOPY=$ac_cv_prog_OBJCOPY
4710 if test -n "$OBJCOPY"; then
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4712 $as_echo "$OBJCOPY" >&6; }
4713 else
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718
4719 fi
4720 if test -z "$ac_cv_prog_OBJCOPY"; then
4721   ac_ct_OBJCOPY=$OBJCOPY
4722   # Extract the first word of "objcopy", so it can be a program name with args.
4723 set dummy objcopy; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   if test -n "$ac_ct_OBJCOPY"; then
4730   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737     for ac_exec_ext in '' $ac_executable_extensions; do
4738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744   done
4745 IFS=$as_save_IFS
4746
4747 fi
4748 fi
4749 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4750 if test -n "$ac_ct_OBJCOPY"; then
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4752 $as_echo "$ac_ct_OBJCOPY" >&6; }
4753 else
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757
4758   if test "x$ac_ct_OBJCOPY" = x; then
4759     OBJCOPY="missing-objcopy"
4760   else
4761     case $cross_compiling:$ac_tool_warned in
4762 yes:)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4766 esac
4767     OBJCOPY=$ac_ct_OBJCOPY
4768   fi
4769 else
4770   OBJCOPY="$ac_cv_prog_OBJCOPY"
4771 fi
4772
4773
4774 enable_dlopen=yes
4775
4776
4777
4778 case `pwd` in
4779   *\ * | *\     *)
4780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4782 esac
4783
4784
4785
4786 macro_version='2.2.7a'
4787 macro_revision='1.3134'
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 ltmain="$ac_aux_dir/ltmain.sh"
4802
4803 # Backslashify metacharacters that are still active within
4804 # double-quoted strings.
4805 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4806
4807 # Same as above, but do not quote variable references.
4808 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4809
4810 # Sed substitution to delay expansion of an escaped shell variable in a
4811 # double_quote_subst'ed string.
4812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4813
4814 # Sed substitution to delay expansion of an escaped single quote.
4815 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4816
4817 # Sed substitution to avoid accidental globbing in evaled expressions
4818 no_glob_subst='s/\*/\\\*/g'
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4821 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4822 if test "${lt_cv_path_NM+set}" = set; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   if test -n "$NM"; then
4826   # Let the user override the test.
4827   lt_cv_path_NM="$NM"
4828 else
4829   lt_nm_to_check="${ac_tool_prefix}nm"
4830   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4831     lt_nm_to_check="$lt_nm_to_check nm"
4832   fi
4833   for lt_tmp_nm in $lt_nm_to_check; do
4834     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4835     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4836       IFS="$lt_save_ifs"
4837       test -z "$ac_dir" && ac_dir=.
4838       tmp_nm="$ac_dir/$lt_tmp_nm"
4839       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4840         # Check to see if the nm accepts a BSD-compat flag.
4841         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4842         #   nm: unknown option "B" ignored
4843         # Tru64's nm complains that /dev/null is an invalid object file
4844         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4845         */dev/null* | *'Invalid file or object type'*)
4846           lt_cv_path_NM="$tmp_nm -B"
4847           break
4848           ;;
4849         *)
4850           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4851           */dev/null*)
4852             lt_cv_path_NM="$tmp_nm -p"
4853             break
4854             ;;
4855           *)
4856             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4857             continue # so that we can try to find one that supports BSD flags
4858             ;;
4859           esac
4860           ;;
4861         esac
4862       fi
4863     done
4864     IFS="$lt_save_ifs"
4865   done
4866   : ${lt_cv_path_NM=no}
4867 fi
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4870 $as_echo "$lt_cv_path_NM" >&6; }
4871 if test "$lt_cv_path_NM" != "no"; then
4872   NM="$lt_cv_path_NM"
4873 else
4874   # Didn't find any BSD compatible name lister, look for dumpbin.
4875   if test -n "$DUMPBIN"; then :
4876     # Let the user override the test.
4877   else
4878     if test -n "$ac_tool_prefix"; then
4879   for ac_prog in dumpbin "link -dump"
4880   do
4881     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   if test -n "$DUMPBIN"; then
4889   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896     for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903   done
4904 IFS=$as_save_IFS
4905
4906 fi
4907 fi
4908 DUMPBIN=$ac_cv_prog_DUMPBIN
4909 if test -n "$DUMPBIN"; then
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4911 $as_echo "$DUMPBIN" >&6; }
4912 else
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916
4917
4918     test -n "$DUMPBIN" && break
4919   done
4920 fi
4921 if test -z "$DUMPBIN"; then
4922   ac_ct_DUMPBIN=$DUMPBIN
4923   for ac_prog in dumpbin "link -dump"
4924 do
4925   # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   if test -n "$ac_ct_DUMPBIN"; then
4933   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947   done
4948 IFS=$as_save_IFS
4949
4950 fi
4951 fi
4952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4953 if test -n "$ac_ct_DUMPBIN"; then
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4955 $as_echo "$ac_ct_DUMPBIN" >&6; }
4956 else
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4959 fi
4960
4961
4962   test -n "$ac_ct_DUMPBIN" && break
4963 done
4964
4965   if test "x$ac_ct_DUMPBIN" = x; then
4966     DUMPBIN=":"
4967   else
4968     case $cross_compiling:$ac_tool_warned in
4969 yes:)
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972 ac_tool_warned=yes ;;
4973 esac
4974     DUMPBIN=$ac_ct_DUMPBIN
4975   fi
4976 fi
4977
4978     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4979     *COFF*)
4980       DUMPBIN="$DUMPBIN -symbols"
4981       ;;
4982     *)
4983       DUMPBIN=:
4984       ;;
4985     esac
4986   fi
4987
4988   if test "$DUMPBIN" != ":"; then
4989     NM="$DUMPBIN"
4990   fi
4991 fi
4992 test -z "$NM" && NM=nm
4993
4994
4995
4996
4997
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5000 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5001 if test "${lt_cv_nm_interface+set}" = set; then :
5002   $as_echo_n "(cached) " >&6
5003 else
5004   lt_cv_nm_interface="BSD nm"
5005   echo "int some_variable = 0;" > conftest.$ac_ext
5006   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5007   (eval "$ac_compile" 2>conftest.err)
5008   cat conftest.err >&5
5009   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5010   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5011   cat conftest.err >&5
5012   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5013   cat conftest.out >&5
5014   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5015     lt_cv_nm_interface="MS dumpbin"
5016   fi
5017   rm -f conftest*
5018 fi
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5020 $as_echo "$lt_cv_nm_interface" >&6; }
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5023 $as_echo_n "checking whether ln -s works... " >&6; }
5024 LN_S=$as_ln_s
5025 if test "$LN_S" = "ln -s"; then
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027 $as_echo "yes" >&6; }
5028 else
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5030 $as_echo "no, using $LN_S" >&6; }
5031 fi
5032
5033 # find the maximum length of command line arguments
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5035 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5036 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039     i=0
5040   teststring="ABCD"
5041
5042   case $build_os in
5043   msdosdjgpp*)
5044     # On DJGPP, this test can blow up pretty badly due to problems in libc
5045     # (any single argument exceeding 2000 bytes causes a buffer overrun
5046     # during glob expansion).  Even if it were fixed, the result of this
5047     # check would be larger than it should be.
5048     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5049     ;;
5050
5051   gnu*)
5052     # Under GNU Hurd, this test is not required because there is
5053     # no limit to the length of command line arguments.
5054     # Libtool will interpret -1 as no limit whatsoever
5055     lt_cv_sys_max_cmd_len=-1;
5056     ;;
5057
5058   cygwin* | mingw* | cegcc*)
5059     # On Win9x/ME, this test blows up -- it succeeds, but takes
5060     # about 5 minutes as the teststring grows exponentially.
5061     # Worse, since 9x/ME are not pre-emptively multitasking,
5062     # you end up with a "frozen" computer, even though with patience
5063     # the test eventually succeeds (with a max line length of 256k).
5064     # Instead, let's just punt: use the minimum linelength reported by
5065     # all of the supported platforms: 8192 (on NT/2K/XP).
5066     lt_cv_sys_max_cmd_len=8192;
5067     ;;
5068
5069   mint*)
5070     # On MiNT this can take a long time and run out of memory.
5071     lt_cv_sys_max_cmd_len=8192;
5072     ;;
5073
5074   amigaos*)
5075     # On AmigaOS with pdksh, this test takes hours, literally.
5076     # So we just punt and use a minimum line length of 8192.
5077     lt_cv_sys_max_cmd_len=8192;
5078     ;;
5079
5080   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5081     # This has been around since 386BSD, at least.  Likely further.
5082     if test -x /sbin/sysctl; then
5083       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5084     elif test -x /usr/sbin/sysctl; then
5085       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5086     else
5087       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5088     fi
5089     # And add a safety zone
5090     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5091     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5092     ;;
5093
5094   interix*)
5095     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5096     lt_cv_sys_max_cmd_len=196608
5097     ;;
5098
5099   osf*)
5100     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5101     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5102     # nice to cause kernel panics so lets avoid the loop below.
5103     # First set a reasonable default.
5104     lt_cv_sys_max_cmd_len=16384
5105     #
5106     if test -x /sbin/sysconfig; then
5107       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5108         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5109       esac
5110     fi
5111     ;;
5112   sco3.2v5*)
5113     lt_cv_sys_max_cmd_len=102400
5114     ;;
5115   sysv5* | sco5v6* | sysv4.2uw2*)
5116     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5117     if test -n "$kargmax"; then
5118       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5119     else
5120       lt_cv_sys_max_cmd_len=32768
5121     fi
5122     ;;
5123   *)
5124     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5125     if test -n "$lt_cv_sys_max_cmd_len"; then
5126       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5127       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5128     else
5129       # Make teststring a little bigger before we do anything with it.
5130       # a 1K string should be a reasonable start.
5131       for i in 1 2 3 4 5 6 7 8 ; do
5132         teststring=$teststring$teststring
5133       done
5134       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5135       # If test is not a shell built-in, we'll probably end up computing a
5136       # maximum length that is only half of the actual maximum length, but
5137       # we can't tell.
5138       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5139                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5140               test $i != 17 # 1/2 MB should be enough
5141       do
5142         i=`expr $i + 1`
5143         teststring=$teststring$teststring
5144       done
5145       # Only check the string length outside the loop.
5146       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5147       teststring=
5148       # Add a significant safety factor because C++ compilers can tack on
5149       # massive amounts of additional arguments before passing them to the
5150       # linker.  It appears as though 1/2 is a usable value.
5151       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5152     fi
5153     ;;
5154   esac
5155
5156 fi
5157
5158 if test -n $lt_cv_sys_max_cmd_len ; then
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5160 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5161 else
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5163 $as_echo "none" >&6; }
5164 fi
5165 max_cmd_len=$lt_cv_sys_max_cmd_len
5166
5167
5168
5169
5170
5171
5172 : ${CP="cp -f"}
5173 : ${MV="mv -f"}
5174 : ${RM="rm -f"}
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5177 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5178 # Try some XSI features
5179 xsi_shell=no
5180 ( _lt_dummy="a/b/c"
5181   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5182       = c,a/b,, \
5183     && eval 'test $(( 1 + 1 )) -eq 2 \
5184     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5185   && xsi_shell=yes
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5187 $as_echo "$xsi_shell" >&6; }
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5191 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5192 lt_shell_append=no
5193 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5194     >/dev/null 2>&1 \
5195   && lt_shell_append=yes
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5197 $as_echo "$lt_shell_append" >&6; }
5198
5199
5200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5201   lt_unset=unset
5202 else
5203   lt_unset=false
5204 fi
5205
5206
5207
5208
5209
5210 # test EBCDIC or ASCII
5211 case `echo X|tr X '\101'` in
5212  A) # ASCII based system
5213     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5214   lt_SP2NL='tr \040 \012'
5215   lt_NL2SP='tr \015\012 \040\040'
5216   ;;
5217  *) # EBCDIC based system
5218   lt_SP2NL='tr \100 \n'
5219   lt_NL2SP='tr \r\n \100\100'
5220   ;;
5221 esac
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5232 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5233 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   lt_cv_ld_reload_flag='-r'
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5239 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5240 reload_flag=$lt_cv_ld_reload_flag
5241 case $reload_flag in
5242 "" | " "*) ;;
5243 *) reload_flag=" $reload_flag" ;;
5244 esac
5245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5246 case $host_os in
5247   darwin*)
5248     if test "$GCC" = yes; then
5249       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5250     else
5251       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5252     fi
5253     ;;
5254 esac
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264 if test -n "$ac_tool_prefix"; then
5265   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   if test -n "$OBJDUMP"; then
5273   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280     for ac_exec_ext in '' $ac_executable_extensions; do
5281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287   done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 OBJDUMP=$ac_cv_prog_OBJDUMP
5293 if test -n "$OBJDUMP"; then
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5295 $as_echo "$OBJDUMP" >&6; }
5296 else
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 fi
5303 if test -z "$ac_cv_prog_OBJDUMP"; then
5304   ac_ct_OBJDUMP=$OBJDUMP
5305   # Extract the first word of "objdump", so it can be a program name with args.
5306 set dummy objdump; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   if test -n "$ac_ct_OBJDUMP"; then
5313   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5333 if test -n "$ac_ct_OBJDUMP"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5335 $as_echo "$ac_ct_OBJDUMP" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341   if test "x$ac_ct_OBJDUMP" = x; then
5342     OBJDUMP="false"
5343   else
5344     case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350     OBJDUMP=$ac_ct_OBJDUMP
5351   fi
5352 else
5353   OBJDUMP="$ac_cv_prog_OBJDUMP"
5354 fi
5355
5356 test -z "$OBJDUMP" && OBJDUMP=objdump
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5367 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5368 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5369   $as_echo_n "(cached) " >&6
5370 else
5371   lt_cv_file_magic_cmd='$MAGIC_CMD'
5372 lt_cv_file_magic_test_file=
5373 lt_cv_deplibs_check_method='unknown'
5374 # Need to set the preceding variable on all platforms that support
5375 # interlibrary dependencies.
5376 # 'none' -- dependencies not supported.
5377 # `unknown' -- same as none, but documents that we really don't know.
5378 # 'pass_all' -- all dependencies passed with no checks.
5379 # 'test_compile' -- check by making test program.
5380 # 'file_magic [[regex]]' -- check by looking for files in library path
5381 # which responds to the $file_magic_cmd with a given extended regex.
5382 # If you have `file' or equivalent on your system and you're not sure
5383 # whether `pass_all' will *always* work, you probably want this one.
5384
5385 case $host_os in
5386 aix[4-9]*)
5387   lt_cv_deplibs_check_method=pass_all
5388   ;;
5389
5390 beos*)
5391   lt_cv_deplibs_check_method=pass_all
5392   ;;
5393
5394 bsdi[45]*)
5395   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5396   lt_cv_file_magic_cmd='/usr/bin/file -L'
5397   lt_cv_file_magic_test_file=/shlib/libc.so
5398   ;;
5399
5400 cygwin*)
5401   # func_win32_libid is a shell function defined in ltmain.sh
5402   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5403   lt_cv_file_magic_cmd='func_win32_libid'
5404   ;;
5405
5406 mingw* | pw32*)
5407   # Base MSYS/MinGW do not provide the 'file' command needed by
5408   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5409   # unless we find 'file', for example because we are cross-compiling.
5410   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5411   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5412     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5413     lt_cv_file_magic_cmd='func_win32_libid'
5414   else
5415     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5416     lt_cv_file_magic_cmd='$OBJDUMP -f'
5417   fi
5418   ;;
5419
5420 cegcc*)
5421   # use the weaker test based on 'objdump'. See mingw*.
5422   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5423   lt_cv_file_magic_cmd='$OBJDUMP -f'
5424   ;;
5425
5426 darwin* | rhapsody*)
5427   lt_cv_deplibs_check_method=pass_all
5428   ;;
5429
5430 freebsd* | dragonfly*)
5431   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5432     case $host_cpu in
5433     i*86 )
5434       # Not sure whether the presence of OpenBSD here was a mistake.
5435       # Let's accept both of them until this is cleared up.
5436       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437       lt_cv_file_magic_cmd=/usr/bin/file
5438       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439       ;;
5440     esac
5441   else
5442     lt_cv_deplibs_check_method=pass_all
5443   fi
5444   ;;
5445
5446 gnu*)
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 haiku*)
5451   lt_cv_deplibs_check_method=pass_all
5452   ;;
5453
5454 hpux10.20* | hpux11*)
5455   lt_cv_file_magic_cmd=/usr/bin/file
5456   case $host_cpu in
5457   ia64*)
5458     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5459     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5460     ;;
5461   hppa*64*)
5462     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]'
5463     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5464     ;;
5465   *)
5466     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5467     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5468     ;;
5469   esac
5470   ;;
5471
5472 interix[3-9]*)
5473   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5474   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5475   ;;
5476
5477 irix5* | irix6* | nonstopux*)
5478   case $LD in
5479   *-32|*"-32 ") libmagic=32-bit;;
5480   *-n32|*"-n32 ") libmagic=N32;;
5481   *-64|*"-64 ") libmagic=64-bit;;
5482   *) libmagic=never-match;;
5483   esac
5484   lt_cv_deplibs_check_method=pass_all
5485   ;;
5486
5487 # This must be Linux ELF.
5488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5489   lt_cv_deplibs_check_method=pass_all
5490   ;;
5491
5492 netbsd*)
5493   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5495   else
5496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5497   fi
5498   ;;
5499
5500 newos6*)
5501   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5502   lt_cv_file_magic_cmd=/usr/bin/file
5503   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5504   ;;
5505
5506 *nto* | *qnx*)
5507   lt_cv_deplibs_check_method=pass_all
5508   ;;
5509
5510 openbsd*)
5511   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5513   else
5514     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5515   fi
5516   ;;
5517
5518 osf3* | osf4* | osf5*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 rdos*)
5523   lt_cv_deplibs_check_method=pass_all
5524   ;;
5525
5526 solaris*)
5527   lt_cv_deplibs_check_method=pass_all
5528   ;;
5529
5530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5531   lt_cv_deplibs_check_method=pass_all
5532   ;;
5533
5534 sysv4 | sysv4.3*)
5535   case $host_vendor in
5536   motorola)
5537     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]'
5538     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5539     ;;
5540   ncr)
5541     lt_cv_deplibs_check_method=pass_all
5542     ;;
5543   sequent)
5544     lt_cv_file_magic_cmd='/bin/file'
5545     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5546     ;;
5547   sni)
5548     lt_cv_file_magic_cmd='/bin/file'
5549     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5550     lt_cv_file_magic_test_file=/lib/libc.so
5551     ;;
5552   siemens)
5553     lt_cv_deplibs_check_method=pass_all
5554     ;;
5555   pc)
5556     lt_cv_deplibs_check_method=pass_all
5557     ;;
5558   esac
5559   ;;
5560
5561 tpf*)
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564 esac
5565
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5568 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5569 file_magic_cmd=$lt_cv_file_magic_cmd
5570 deplibs_check_method=$lt_cv_deplibs_check_method
5571 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584 if test -n "$ac_tool_prefix"; then
5585   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}ar; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if test "${ac_cv_prog_AR+set}" = set; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   if test -n "$AR"; then
5593   ac_cv_prog_AR="$AR" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598   IFS=$as_save_IFS
5599   test -z "$as_dir" && as_dir=.
5600     for ac_exec_ext in '' $ac_executable_extensions; do
5601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602     ac_cv_prog_AR="${ac_tool_prefix}ar"
5603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604     break 2
5605   fi
5606 done
5607   done
5608 IFS=$as_save_IFS
5609
5610 fi
5611 fi
5612 AR=$ac_cv_prog_AR
5613 if test -n "$AR"; then
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5615 $as_echo "$AR" >&6; }
5616 else
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622 fi
5623 if test -z "$ac_cv_prog_AR"; then
5624   ac_ct_AR=$AR
5625   # Extract the first word of "ar", so it can be a program name with args.
5626 set dummy ar; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   if test -n "$ac_ct_AR"; then
5633   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638   IFS=$as_save_IFS
5639   test -z "$as_dir" && as_dir=.
5640     for ac_exec_ext in '' $ac_executable_extensions; do
5641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642     ac_cv_prog_ac_ct_AR="ar"
5643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644     break 2
5645   fi
5646 done
5647   done
5648 IFS=$as_save_IFS
5649
5650 fi
5651 fi
5652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5653 if test -n "$ac_ct_AR"; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5655 $as_echo "$ac_ct_AR" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661   if test "x$ac_ct_AR" = x; then
5662     AR="false"
5663   else
5664     case $cross_compiling:$ac_tool_warned in
5665 yes:)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5669 esac
5670     AR=$ac_ct_AR
5671   fi
5672 else
5673   AR="$ac_cv_prog_AR"
5674 fi
5675
5676 test -z "$AR" && AR=ar
5677 test -z "$AR_FLAGS" && AR_FLAGS=cru
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 if test -n "$ac_tool_prefix"; then
5690   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5691 set dummy ${ac_tool_prefix}strip; ac_word=$2
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 $as_echo_n "checking for $ac_word... " >&6; }
5694 if test "${ac_cv_prog_STRIP+set}" = set; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   if test -n "$STRIP"; then
5698   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705     for ac_exec_ext in '' $ac_executable_extensions; do
5706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709     break 2
5710   fi
5711 done
5712   done
5713 IFS=$as_save_IFS
5714
5715 fi
5716 fi
5717 STRIP=$ac_cv_prog_STRIP
5718 if test -n "$STRIP"; then
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5720 $as_echo "$STRIP" >&6; }
5721 else
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5724 fi
5725
5726
5727 fi
5728 if test -z "$ac_cv_prog_STRIP"; then
5729   ac_ct_STRIP=$STRIP
5730   # Extract the first word of "strip", so it can be a program name with args.
5731 set dummy strip; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$ac_ct_STRIP"; then
5738   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747     ac_cv_prog_ac_ct_STRIP="strip"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5758 if test -n "$ac_ct_STRIP"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5760 $as_echo "$ac_ct_STRIP" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766   if test "x$ac_ct_STRIP" = x; then
5767     STRIP=":"
5768   else
5769     case $cross_compiling:$ac_tool_warned in
5770 yes:)
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5773 ac_tool_warned=yes ;;
5774 esac
5775     STRIP=$ac_ct_STRIP
5776   fi
5777 else
5778   STRIP="$ac_cv_prog_STRIP"
5779 fi
5780
5781 test -z "$STRIP" && STRIP=:
5782
5783
5784
5785
5786
5787
5788 if test -n "$ac_tool_prefix"; then
5789   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if test -n "$RANLIB"; then
5797   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 RANLIB=$ac_cv_prog_RANLIB
5817 if test -n "$RANLIB"; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5819 $as_echo "$RANLIB" >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825
5826 fi
5827 if test -z "$ac_cv_prog_RANLIB"; then
5828   ac_ct_RANLIB=$RANLIB
5829   # Extract the first word of "ranlib", so it can be a program name with args.
5830 set dummy ranlib; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -n "$ac_ct_RANLIB"; then
5837   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_prog_ac_ct_RANLIB="ranlib"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5857 if test -n "$ac_ct_RANLIB"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5859 $as_echo "$ac_ct_RANLIB" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865   if test "x$ac_ct_RANLIB" = x; then
5866     RANLIB=":"
5867   else
5868     case $cross_compiling:$ac_tool_warned in
5869 yes:)
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5873 esac
5874     RANLIB=$ac_ct_RANLIB
5875   fi
5876 else
5877   RANLIB="$ac_cv_prog_RANLIB"
5878 fi
5879
5880 test -z "$RANLIB" && RANLIB=:
5881
5882
5883
5884
5885
5886
5887 # Determine commands to create old-style static archives.
5888 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5889 old_postinstall_cmds='chmod 644 $oldlib'
5890 old_postuninstall_cmds=
5891
5892 if test -n "$RANLIB"; then
5893   case $host_os in
5894   openbsd*)
5895     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5896     ;;
5897   *)
5898     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5899     ;;
5900   esac
5901   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5902 fi
5903
5904 case $host_os in
5905   darwin*)
5906     lock_old_archive_extraction=yes ;;
5907   *)
5908     lock_old_archive_extraction=no ;;
5909 esac
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949 # If no C compiler was specified, use CC.
5950 LTCC=${LTCC-"$CC"}
5951
5952 # If no C compiler flags were specified, use CFLAGS.
5953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5954
5955 # Allow CC to be a program name with arguments.
5956 compiler=$CC
5957
5958
5959 # Check for command to grab the raw symbol name followed by C symbol from nm.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5961 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5962 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965
5966 # These are sane defaults that work on at least a few old systems.
5967 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5968
5969 # Character class describing NM global symbol codes.
5970 symcode='[BCDEGRST]'
5971
5972 # Regexp to match symbols that can be accessed directly from C.
5973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5974
5975 # Define system-specific variables.
5976 case $host_os in
5977 aix*)
5978   symcode='[BCDT]'
5979   ;;
5980 cygwin* | mingw* | pw32* | cegcc*)
5981   symcode='[ABCDGISTW]'
5982   ;;
5983 hpux*)
5984   if test "$host_cpu" = ia64; then
5985     symcode='[ABCDEGRST]'
5986   fi
5987   ;;
5988 irix* | nonstopux*)
5989   symcode='[BCDEGRST]'
5990   ;;
5991 osf*)
5992   symcode='[BCDEGQRST]'
5993   ;;
5994 solaris*)
5995   symcode='[BDRT]'
5996   ;;
5997 sco3.2v5*)
5998   symcode='[DT]'
5999   ;;
6000 sysv4.2uw2*)
6001   symcode='[DT]'
6002   ;;
6003 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6004   symcode='[ABDT]'
6005   ;;
6006 sysv4)
6007   symcode='[DFNSTU]'
6008   ;;
6009 esac
6010
6011 # If we're using GNU nm, then use its standard symbol codes.
6012 case `$NM -V 2>&1` in
6013 *GNU* | *'with BFD'*)
6014   symcode='[ABCDGIRSTW]' ;;
6015 esac
6016
6017 # Transform an extracted symbol line into a proper C declaration.
6018 # Some systems (esp. on ia64) link data and code symbols differently,
6019 # so use this general approach.
6020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6021
6022 # Transform an extracted symbol line into symbol name and symbol address
6023 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6024 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'"
6025
6026 # Handle CRLF in mingw tool chain
6027 opt_cr=
6028 case $build_os in
6029 mingw*)
6030   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6031   ;;
6032 esac
6033
6034 # Try without a prefix underscore, then with it.
6035 for ac_symprfx in "" "_"; do
6036
6037   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6038   symxfrm="\\1 $ac_symprfx\\2 \\2"
6039
6040   # Write the raw and C identifiers.
6041   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6042     # Fake it for dumpbin and say T for any non-static function
6043     # and D for any global variable.
6044     # Also find C++ and __fastcall symbols from MSVC++,
6045     # which start with @ or ?.
6046     lt_cv_sys_global_symbol_pipe="$AWK '"\
6047 "     {last_section=section; section=\$ 3};"\
6048 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6049 "     \$ 0!~/External *\|/{next};"\
6050 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6051 "     {if(hide[section]) next};"\
6052 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6053 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6054 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6055 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6056 "     ' prfx=^$ac_symprfx"
6057   else
6058     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6059   fi
6060
6061   # Check to see that the pipe works correctly.
6062   pipe_works=no
6063
6064   rm -f conftest*
6065   cat > conftest.$ac_ext <<_LT_EOF
6066 #ifdef __cplusplus
6067 extern "C" {
6068 #endif
6069 char nm_test_var;
6070 void nm_test_func(void);
6071 void nm_test_func(void){}
6072 #ifdef __cplusplus
6073 }
6074 #endif
6075 int main(){nm_test_var='a';nm_test_func();return(0);}
6076 _LT_EOF
6077
6078   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6079   (eval $ac_compile) 2>&5
6080   ac_status=$?
6081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082   test $ac_status = 0; }; then
6083     # Now try to grab the symbols.
6084     nlist=conftest.nm
6085     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6086   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6087   ac_status=$?
6088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089   test $ac_status = 0; } && test -s "$nlist"; then
6090       # Try sorting and uniquifying the output.
6091       if sort "$nlist" | uniq > "$nlist"T; then
6092         mv -f "$nlist"T "$nlist"
6093       else
6094         rm -f "$nlist"T
6095       fi
6096
6097       # Make sure that we snagged all the symbols we need.
6098       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6099         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6100           cat <<_LT_EOF > conftest.$ac_ext
6101 #ifdef __cplusplus
6102 extern "C" {
6103 #endif
6104
6105 _LT_EOF
6106           # Now generate the symbol file.
6107           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6108
6109           cat <<_LT_EOF >> conftest.$ac_ext
6110
6111 /* The mapping between symbol names and symbols.  */
6112 const struct {
6113   const char *name;
6114   void       *address;
6115 }
6116 lt__PROGRAM__LTX_preloaded_symbols[] =
6117 {
6118   { "@PROGRAM@", (void *) 0 },
6119 _LT_EOF
6120           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6121           cat <<\_LT_EOF >> conftest.$ac_ext
6122   {0, (void *) 0}
6123 };
6124
6125 /* This works around a problem in FreeBSD linker */
6126 #ifdef FREEBSD_WORKAROUND
6127 static const void *lt_preloaded_setup() {
6128   return lt__PROGRAM__LTX_preloaded_symbols;
6129 }
6130 #endif
6131
6132 #ifdef __cplusplus
6133 }
6134 #endif
6135 _LT_EOF
6136           # Now try linking the two files.
6137           mv conftest.$ac_objext conftstm.$ac_objext
6138           lt_save_LIBS="$LIBS"
6139           lt_save_CFLAGS="$CFLAGS"
6140           LIBS="conftstm.$ac_objext"
6141           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6142           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6143   (eval $ac_link) 2>&5
6144   ac_status=$?
6145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6147             pipe_works=yes
6148           fi
6149           LIBS="$lt_save_LIBS"
6150           CFLAGS="$lt_save_CFLAGS"
6151         else
6152           echo "cannot find nm_test_func in $nlist" >&5
6153         fi
6154       else
6155         echo "cannot find nm_test_var in $nlist" >&5
6156       fi
6157     else
6158       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6159     fi
6160   else
6161     echo "$progname: failed program was:" >&5
6162     cat conftest.$ac_ext >&5
6163   fi
6164   rm -rf conftest* conftst*
6165
6166   # Do not use the global_symbol_pipe unless it works.
6167   if test "$pipe_works" = yes; then
6168     break
6169   else
6170     lt_cv_sys_global_symbol_pipe=
6171   fi
6172 done
6173
6174 fi
6175
6176 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6177   lt_cv_sys_global_symbol_to_cdecl=
6178 fi
6179 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6181 $as_echo "failed" >&6; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6184 $as_echo "ok" >&6; }
6185 fi
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209 # Check whether --enable-libtool-lock was given.
6210 if test "${enable_libtool_lock+set}" = set; then :
6211   enableval=$enable_libtool_lock;
6212 fi
6213
6214 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6215
6216 # Some flags need to be propagated to the compiler or linker for good
6217 # libtool support.
6218 case $host in
6219 ia64-*-hpux*)
6220   # Find out which ABI we are using.
6221   echo 'int i;' > conftest.$ac_ext
6222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223   (eval $ac_compile) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; }; then
6227     case `/usr/bin/file conftest.$ac_objext` in
6228       *ELF-32*)
6229         HPUX_IA64_MODE="32"
6230         ;;
6231       *ELF-64*)
6232         HPUX_IA64_MODE="64"
6233         ;;
6234     esac
6235   fi
6236   rm -rf conftest*
6237   ;;
6238 *-*-irix6*)
6239   # Find out which ABI we are using.
6240   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242   (eval $ac_compile) 2>&5
6243   ac_status=$?
6244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245   test $ac_status = 0; }; then
6246     if test "$lt_cv_prog_gnu_ld" = yes; then
6247       case `/usr/bin/file conftest.$ac_objext` in
6248         *32-bit*)
6249           LD="${LD-ld} -melf32bsmip"
6250           ;;
6251         *N32*)
6252           LD="${LD-ld} -melf32bmipn32"
6253           ;;
6254         *64-bit*)
6255           LD="${LD-ld} -melf64bmip"
6256         ;;
6257       esac
6258     else
6259       case `/usr/bin/file conftest.$ac_objext` in
6260         *32-bit*)
6261           LD="${LD-ld} -32"
6262           ;;
6263         *N32*)
6264           LD="${LD-ld} -n32"
6265           ;;
6266         *64-bit*)
6267           LD="${LD-ld} -64"
6268           ;;
6269       esac
6270     fi
6271   fi
6272   rm -rf conftest*
6273   ;;
6274
6275 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6276 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6277   # Find out which ABI we are using.
6278   echo 'int i;' > conftest.$ac_ext
6279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280   (eval $ac_compile) 2>&5
6281   ac_status=$?
6282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283   test $ac_status = 0; }; then
6284     case `/usr/bin/file conftest.o` in
6285       *32-bit*)
6286         case $host in
6287           x86_64-*kfreebsd*-gnu)
6288             LD="${LD-ld} -m elf_i386_fbsd"
6289             ;;
6290           x86_64-*linux*)
6291             LD="${LD-ld} -m elf_i386"
6292             ;;
6293           ppc64-*linux*|powerpc64-*linux*)
6294             LD="${LD-ld} -m elf32ppclinux"
6295             ;;
6296           s390x-*linux*)
6297             LD="${LD-ld} -m elf_s390"
6298             ;;
6299           sparc64-*linux*)
6300             LD="${LD-ld} -m elf32_sparc"
6301             ;;
6302         esac
6303         ;;
6304       *64-bit*)
6305         case $host in
6306           x86_64-*kfreebsd*-gnu)
6307             LD="${LD-ld} -m elf_x86_64_fbsd"
6308             ;;
6309           x86_64-*linux*)
6310             LD="${LD-ld} -m elf_x86_64"
6311             ;;
6312           ppc*-*linux*|powerpc*-*linux*)
6313             LD="${LD-ld} -m elf64ppc"
6314             ;;
6315           s390*-*linux*|s390*-*tpf*)
6316             LD="${LD-ld} -m elf64_s390"
6317             ;;
6318           sparc*-*linux*)
6319             LD="${LD-ld} -m elf64_sparc"
6320             ;;
6321         esac
6322         ;;
6323     esac
6324   fi
6325   rm -rf conftest*
6326   ;;
6327
6328 *-*-sco3.2v5*)
6329   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6330   SAVE_CFLAGS="$CFLAGS"
6331   CFLAGS="$CFLAGS -belf"
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6333 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6334 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   ac_ext=c
6338 ac_cpp='$CPP $CPPFLAGS'
6339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6342
6343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h.  */
6345
6346 int
6347 main ()
6348 {
6349
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"; then :
6355   lt_cv_cc_needs_belf=yes
6356 else
6357   lt_cv_cc_needs_belf=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext \
6360     conftest$ac_exeext conftest.$ac_ext
6361      ac_ext=c
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6369 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6370   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6371     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6372     CFLAGS="$SAVE_CFLAGS"
6373   fi
6374   ;;
6375 sparc*-*solaris*)
6376   # Find out which ABI we are using.
6377   echo 'int i;' > conftest.$ac_ext
6378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379   (eval $ac_compile) 2>&5
6380   ac_status=$?
6381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382   test $ac_status = 0; }; then
6383     case `/usr/bin/file conftest.o` in
6384     *64-bit*)
6385       case $lt_cv_prog_gnu_ld in
6386       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6387       *)
6388         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6389           LD="${LD-ld} -64"
6390         fi
6391         ;;
6392       esac
6393       ;;
6394     esac
6395   fi
6396   rm -rf conftest*
6397   ;;
6398 esac
6399
6400 need_locks="$enable_libtool_lock"
6401
6402
6403   case $host_os in
6404     rhapsody* | darwin*)
6405     if test -n "$ac_tool_prefix"; then
6406   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$DSYMUTIL"; then
6414   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6434 if test -n "$DSYMUTIL"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6436 $as_echo "$DSYMUTIL" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443 fi
6444 if test -z "$ac_cv_prog_DSYMUTIL"; then
6445   ac_ct_DSYMUTIL=$DSYMUTIL
6446   # Extract the first word of "dsymutil", so it can be a program name with args.
6447 set dummy dsymutil; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$ac_ct_DSYMUTIL"; then
6454   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461     for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468   done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6474 if test -n "$ac_ct_DSYMUTIL"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6476 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482   if test "x$ac_ct_DSYMUTIL" = x; then
6483     DSYMUTIL=":"
6484   else
6485     case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491     DSYMUTIL=$ac_ct_DSYMUTIL
6492   fi
6493 else
6494   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6495 fi
6496
6497     if test -n "$ac_tool_prefix"; then
6498   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   if test -n "$NMEDIT"; then
6506   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_exec_ext in '' $ac_executable_extensions; do
6514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520   done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 NMEDIT=$ac_cv_prog_NMEDIT
6526 if test -n "$NMEDIT"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6528 $as_echo "$NMEDIT" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534
6535 fi
6536 if test -z "$ac_cv_prog_NMEDIT"; then
6537   ac_ct_NMEDIT=$NMEDIT
6538   # Extract the first word of "nmedit", so it can be a program name with args.
6539 set dummy nmedit; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   if test -n "$ac_ct_NMEDIT"; then
6546   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551   IFS=$as_save_IFS
6552   test -z "$as_dir" && as_dir=.
6553     for ac_exec_ext in '' $ac_executable_extensions; do
6554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557     break 2
6558   fi
6559 done
6560   done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6566 if test -n "$ac_ct_NMEDIT"; then
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6568 $as_echo "$ac_ct_NMEDIT" >&6; }
6569 else
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574   if test "x$ac_ct_NMEDIT" = x; then
6575     NMEDIT=":"
6576   else
6577     case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583     NMEDIT=$ac_ct_NMEDIT
6584   fi
6585 else
6586   NMEDIT="$ac_cv_prog_NMEDIT"
6587 fi
6588
6589     if test -n "$ac_tool_prefix"; then
6590   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6591 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if test "${ac_cv_prog_LIPO+set}" = set; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   if test -n "$LIPO"; then
6598   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605     for ac_exec_ext in '' $ac_executable_extensions; do
6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612   done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 LIPO=$ac_cv_prog_LIPO
6618 if test -n "$LIPO"; then
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6620 $as_echo "$LIPO" >&6; }
6621 else
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626
6627 fi
6628 if test -z "$ac_cv_prog_LIPO"; then
6629   ac_ct_LIPO=$LIPO
6630   # Extract the first word of "lipo", so it can be a program name with args.
6631 set dummy lipo; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   if test -n "$ac_ct_LIPO"; then
6638   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645     for ac_exec_ext in '' $ac_executable_extensions; do
6646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647     ac_cv_prog_ac_ct_LIPO="lipo"
6648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652   done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6658 if test -n "$ac_ct_LIPO"; then
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6660 $as_echo "$ac_ct_LIPO" >&6; }
6661 else
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666   if test "x$ac_ct_LIPO" = x; then
6667     LIPO=":"
6668   else
6669     case $cross_compiling:$ac_tool_warned in
6670 yes:)
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673 ac_tool_warned=yes ;;
6674 esac
6675     LIPO=$ac_ct_LIPO
6676   fi
6677 else
6678   LIPO="$ac_cv_prog_LIPO"
6679 fi
6680
6681     if test -n "$ac_tool_prefix"; then
6682   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6683 set dummy ${ac_tool_prefix}otool; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6687   $as_echo_n "(cached) " >&6
6688 else
6689   if test -n "$OTOOL"; then
6690   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697     for ac_exec_ext in '' $ac_executable_extensions; do
6698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704   done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 OTOOL=$ac_cv_prog_OTOOL
6710 if test -n "$OTOOL"; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6712 $as_echo "$OTOOL" >&6; }
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717
6718
6719 fi
6720 if test -z "$ac_cv_prog_OTOOL"; then
6721   ac_ct_OTOOL=$OTOOL
6722   # Extract the first word of "otool", so it can be a program name with args.
6723 set dummy otool; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   if test -n "$ac_ct_OTOOL"; then
6730   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735   IFS=$as_save_IFS
6736   test -z "$as_dir" && as_dir=.
6737     for ac_exec_ext in '' $ac_executable_extensions; do
6738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739     ac_cv_prog_ac_ct_OTOOL="otool"
6740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741     break 2
6742   fi
6743 done
6744   done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6750 if test -n "$ac_ct_OTOOL"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6752 $as_echo "$ac_ct_OTOOL" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758   if test "x$ac_ct_OTOOL" = x; then
6759     OTOOL=":"
6760   else
6761     case $cross_compiling:$ac_tool_warned in
6762 yes:)
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767     OTOOL=$ac_ct_OTOOL
6768   fi
6769 else
6770   OTOOL="$ac_cv_prog_OTOOL"
6771 fi
6772
6773     if test -n "$ac_tool_prefix"; then
6774   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   if test -n "$OTOOL64"; then
6782   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789     for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796   done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 OTOOL64=$ac_cv_prog_OTOOL64
6802 if test -n "$OTOOL64"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6804 $as_echo "$OTOOL64" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_OTOOL64"; then
6813   ac_ct_OTOOL64=$OTOOL64
6814   # Extract the first word of "otool64", so it can be a program name with args.
6815 set dummy otool64; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   if test -n "$ac_ct_OTOOL64"; then
6822   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_ac_ct_OTOOL64="otool64"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6842 if test -n "$ac_ct_OTOOL64"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6844 $as_echo "$ac_ct_OTOOL64" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850   if test "x$ac_ct_OTOOL64" = x; then
6851     OTOOL64=":"
6852   else
6853     case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859     OTOOL64=$ac_ct_OTOOL64
6860   fi
6861 else
6862   OTOOL64="$ac_cv_prog_OTOOL64"
6863 fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6892 $as_echo_n "checking for -single_module linker flag... " >&6; }
6893 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6894   $as_echo_n "(cached) " >&6
6895 else
6896   lt_cv_apple_cc_single_mod=no
6897       if test -z "${LT_MULTI_MODULE}"; then
6898         # By default we will add the -single_module flag. You can override
6899         # by either setting the environment variable LT_MULTI_MODULE
6900         # non-empty at configure time, or by adding -multi_module to the
6901         # link flags.
6902         rm -rf libconftest.dylib*
6903         echo "int foo(void){return 1;}" > conftest.c
6904         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6905 -dynamiclib -Wl,-single_module conftest.c" >&5
6906         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6907           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6908         _lt_result=$?
6909         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6910           lt_cv_apple_cc_single_mod=yes
6911         else
6912           cat conftest.err >&5
6913         fi
6914         rm -rf libconftest.dylib*
6915         rm -f conftest.*
6916       fi
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6919 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6921 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6922 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   lt_cv_ld_exported_symbols_list=no
6926       save_LDFLAGS=$LDFLAGS
6927       echo "_main" > conftest.sym
6928       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h.  */
6931
6932 int
6933 main ()
6934 {
6935
6936   ;
6937   return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941   lt_cv_ld_exported_symbols_list=yes
6942 else
6943   lt_cv_ld_exported_symbols_list=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext \
6946     conftest$ac_exeext conftest.$ac_ext
6947         LDFLAGS="$save_LDFLAGS"
6948
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6951 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6953 $as_echo_n "checking for -force_load linker flag... " >&6; }
6954 if test "${lt_cv_ld_force_load+set}" = set; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   lt_cv_ld_force_load=no
6958       cat > conftest.c << _LT_EOF
6959 int forced_loaded() { return 2;}
6960 _LT_EOF
6961       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6962       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6963       echo "$AR cru libconftest.a conftest.o" >&5
6964       $AR cru libconftest.a conftest.o 2>&5
6965       cat > conftest.c << _LT_EOF
6966 int main() { return 0;}
6967 _LT_EOF
6968       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6969       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6970       _lt_result=$?
6971       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6972         lt_cv_ld_force_load=yes
6973       else
6974         cat conftest.err >&5
6975       fi
6976         rm -f conftest.err libconftest.a conftest conftest.c
6977         rm -rf conftest.dSYM
6978
6979 fi
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6981 $as_echo "$lt_cv_ld_force_load" >&6; }
6982     case $host_os in
6983     rhapsody* | darwin1.[012])
6984       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6985     darwin1.*)
6986       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6987     darwin*) # darwin 5.x on
6988       # if running on 10.5 or later, the deployment target defaults
6989       # to the OS version, if on x86, and 10.4, the deployment
6990       # target defaults to 10.4. Don't you love it?
6991       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6992         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6993           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6994         10.[012]*)
6995           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6996         10.*)
6997           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6998       esac
6999     ;;
7000   esac
7001     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7002       _lt_dar_single_mod='$single_module'
7003     fi
7004     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7005       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7006     else
7007       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7008     fi
7009     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7010       _lt_dsymutil='~$DSYMUTIL $lib || :'
7011     else
7012       _lt_dsymutil=
7013     fi
7014     ;;
7015   esac
7016
7017 ac_ext=c
7018 ac_cpp='$CPP $CPPFLAGS'
7019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7024 # On Suns, sometimes $CPP names a directory.
7025 if test -n "$CPP" && test -d "$CPP"; then
7026   CPP=
7027 fi
7028 if test -z "$CPP"; then
7029   if test "${ac_cv_prog_CPP+set}" = set; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032       # Double quotes because CPP needs to be expanded
7033     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7034     do
7035       ac_preproc_ok=false
7036 for ac_c_preproc_warn_flag in '' yes
7037 do
7038   # Use a header file that comes with gcc, so configuring glibc
7039   # with a fresh cross-compiler works.
7040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041   # <limits.h> exists even on freestanding compilers.
7042   # On the NeXT, cc -E runs the code through the compiler's parser,
7043   # not just through cpp. "Syntax error" is here to catch this case.
7044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h.  */
7046 #ifdef __STDC__
7047 # include <limits.h>
7048 #else
7049 # include <assert.h>
7050 #endif
7051                      Syntax error
7052 _ACEOF
7053 if ac_fn_c_try_cpp "$LINENO"; then :
7054
7055 else
7056   # Broken: fails on valid input.
7057 continue
7058 fi
7059 rm -f conftest.err conftest.$ac_ext
7060
7061   # OK, works on sane cases.  Now check whether nonexistent headers
7062   # can be detected and how.
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065 #include <ac_nonexistent.h>
7066 _ACEOF
7067 if ac_fn_c_try_cpp "$LINENO"; then :
7068   # Broken: success on invalid input.
7069 continue
7070 else
7071   # Passes both tests.
7072 ac_preproc_ok=:
7073 break
7074 fi
7075 rm -f conftest.err conftest.$ac_ext
7076
7077 done
7078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7079 rm -f conftest.err conftest.$ac_ext
7080 if $ac_preproc_ok; then :
7081   break
7082 fi
7083
7084     done
7085     ac_cv_prog_CPP=$CPP
7086
7087 fi
7088   CPP=$ac_cv_prog_CPP
7089 else
7090   ac_cv_prog_CPP=$CPP
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7093 $as_echo "$CPP" >&6; }
7094 ac_preproc_ok=false
7095 for ac_c_preproc_warn_flag in '' yes
7096 do
7097   # Use a header file that comes with gcc, so configuring glibc
7098   # with a fresh cross-compiler works.
7099   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7100   # <limits.h> exists even on freestanding compilers.
7101   # On the NeXT, cc -E runs the code through the compiler's parser,
7102   # not just through cpp. "Syntax error" is here to catch this case.
7103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h.  */
7105 #ifdef __STDC__
7106 # include <limits.h>
7107 #else
7108 # include <assert.h>
7109 #endif
7110                      Syntax error
7111 _ACEOF
7112 if ac_fn_c_try_cpp "$LINENO"; then :
7113
7114 else
7115   # Broken: fails on valid input.
7116 continue
7117 fi
7118 rm -f conftest.err conftest.$ac_ext
7119
7120   # OK, works on sane cases.  Now check whether nonexistent headers
7121   # can be detected and how.
7122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h.  */
7124 #include <ac_nonexistent.h>
7125 _ACEOF
7126 if ac_fn_c_try_cpp "$LINENO"; then :
7127   # Broken: success on invalid input.
7128 continue
7129 else
7130   # Passes both tests.
7131 ac_preproc_ok=:
7132 break
7133 fi
7134 rm -f conftest.err conftest.$ac_ext
7135
7136 done
7137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7138 rm -f conftest.err conftest.$ac_ext
7139 if $ac_preproc_ok; then :
7140
7141 else
7142   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7144 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7145 See \`config.log' for more details." "$LINENO" 5; }
7146 fi
7147
7148 ac_ext=c
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153
7154
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7156 $as_echo_n "checking for ANSI C header files... " >&6; }
7157 if test "${ac_cv_header_stdc+set}" = set; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h.  */
7162 #include <stdlib.h>
7163 #include <stdarg.h>
7164 #include <string.h>
7165 #include <float.h>
7166
7167 int
7168 main ()
7169 {
7170
7171   ;
7172   return 0;
7173 }
7174 _ACEOF
7175 if ac_fn_c_try_compile "$LINENO"; then :
7176   ac_cv_header_stdc=yes
7177 else
7178   ac_cv_header_stdc=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181
7182 if test $ac_cv_header_stdc = yes; then
7183   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h.  */
7186 #include <string.h>
7187
7188 _ACEOF
7189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190   $EGREP "memchr" >/dev/null 2>&1; then :
7191
7192 else
7193   ac_cv_header_stdc=no
7194 fi
7195 rm -f conftest*
7196
7197 fi
7198
7199 if test $ac_cv_header_stdc = yes; then
7200   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h.  */
7203 #include <stdlib.h>
7204
7205 _ACEOF
7206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7207   $EGREP "free" >/dev/null 2>&1; then :
7208
7209 else
7210   ac_cv_header_stdc=no
7211 fi
7212 rm -f conftest*
7213
7214 fi
7215
7216 if test $ac_cv_header_stdc = yes; then
7217   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7218   if test "$cross_compiling" = yes; then :
7219   :
7220 else
7221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h.  */
7223 #include <ctype.h>
7224 #include <stdlib.h>
7225 #if ((' ' & 0x0FF) == 0x020)
7226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7228 #else
7229 # define ISLOWER(c) \
7230                    (('a' <= (c) && (c) <= 'i') \
7231                      || ('j' <= (c) && (c) <= 'r') \
7232                      || ('s' <= (c) && (c) <= 'z'))
7233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234 #endif
7235
7236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7237 int
7238 main ()
7239 {
7240   int i;
7241   for (i = 0; i < 256; i++)
7242     if (XOR (islower (i), ISLOWER (i))
7243         || toupper (i) != TOUPPER (i))
7244       return 2;
7245   return 0;
7246 }
7247 _ACEOF
7248 if ac_fn_c_try_run "$LINENO"; then :
7249
7250 else
7251   ac_cv_header_stdc=no
7252 fi
7253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7254   conftest.$ac_objext conftest.beam conftest.$ac_ext
7255 fi
7256
7257 fi
7258 fi
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7260 $as_echo "$ac_cv_header_stdc" >&6; }
7261 if test $ac_cv_header_stdc = yes; then
7262
7263 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7264
7265 fi
7266
7267 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7268 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7269                   inttypes.h stdint.h unistd.h
7270 do :
7271   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7273 "
7274 eval as_val=\$$as_ac_Header
7275    if test "x$as_val" = x""yes; then :
7276   cat >>confdefs.h <<_ACEOF
7277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284
7285 for ac_header in dlfcn.h
7286 do :
7287   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7288 "
7289 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7290   cat >>confdefs.h <<_ACEOF
7291 #define HAVE_DLFCN_H 1
7292 _ACEOF
7293
7294 fi
7295
7296 done
7297
7298 if test -n "$ac_tool_prefix"; then
7299   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_GOC+set}" = set; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   if test -n "$GOC"; then
7307   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314     for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321   done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 GOC=$ac_cv_prog_GOC
7327 if test -n "$GOC"; then
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7329 $as_echo "$GOC" >&6; }
7330 else
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335
7336 fi
7337 if test -z "$ac_cv_prog_GOC"; then
7338   ac_ct_GOC=$GOC
7339   # Extract the first word of "gccgo", so it can be a program name with args.
7340 set dummy gccgo; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   if test -n "$ac_ct_GOC"; then
7347   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352   IFS=$as_save_IFS
7353   test -z "$as_dir" && as_dir=.
7354     for ac_exec_ext in '' $ac_executable_extensions; do
7355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356     ac_cv_prog_ac_ct_GOC="gccgo"
7357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358     break 2
7359   fi
7360 done
7361   done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7367 if test -n "$ac_ct_GOC"; then
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7369 $as_echo "$ac_ct_GOC" >&6; }
7370 else
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375   if test "x$ac_ct_GOC" = x; then
7376     GOC=""
7377   else
7378     case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384     GOC=$ac_ct_GOC
7385   fi
7386 else
7387   GOC="$ac_cv_prog_GOC"
7388 fi
7389
7390
7391
7392
7393
7394
7395 # Set options
7396
7397
7398
7399
7400   enable_win32_dll=no
7401
7402
7403             # Check whether --enable-shared was given.
7404 if test "${enable_shared+set}" = set; then :
7405   enableval=$enable_shared; p=${PACKAGE-default}
7406     case $enableval in
7407     yes) enable_shared=yes ;;
7408     no) enable_shared=no ;;
7409     *)
7410       enable_shared=no
7411       # Look at the argument we got.  We use all the common list separators.
7412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413       for pkg in $enableval; do
7414         IFS="$lt_save_ifs"
7415         if test "X$pkg" = "X$p"; then
7416           enable_shared=yes
7417         fi
7418       done
7419       IFS="$lt_save_ifs"
7420       ;;
7421     esac
7422 else
7423   enable_shared=yes
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434   # Check whether --enable-static was given.
7435 if test "${enable_static+set}" = set; then :
7436   enableval=$enable_static; p=${PACKAGE-default}
7437     case $enableval in
7438     yes) enable_static=yes ;;
7439     no) enable_static=no ;;
7440     *)
7441      enable_static=no
7442       # Look at the argument we got.  We use all the common list separators.
7443       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444       for pkg in $enableval; do
7445         IFS="$lt_save_ifs"
7446         if test "X$pkg" = "X$p"; then
7447           enable_static=yes
7448         fi
7449       done
7450       IFS="$lt_save_ifs"
7451       ;;
7452     esac
7453 else
7454   enable_static=yes
7455 fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 # Check whether --with-pic was given.
7467 if test "${with_pic+set}" = set; then :
7468   withval=$with_pic; pic_mode="$withval"
7469 else
7470   pic_mode=default
7471 fi
7472
7473
7474 test -z "$pic_mode" && pic_mode=default
7475
7476
7477
7478
7479
7480
7481
7482   # Check whether --enable-fast-install was given.
7483 if test "${enable_fast_install+set}" = set; then :
7484   enableval=$enable_fast_install; p=${PACKAGE-default}
7485     case $enableval in
7486     yes) enable_fast_install=yes ;;
7487     no) enable_fast_install=no ;;
7488     *)
7489       enable_fast_install=no
7490       # Look at the argument we got.  We use all the common list separators.
7491       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492       for pkg in $enableval; do
7493         IFS="$lt_save_ifs"
7494         if test "X$pkg" = "X$p"; then
7495           enable_fast_install=yes
7496         fi
7497       done
7498       IFS="$lt_save_ifs"
7499       ;;
7500     esac
7501 else
7502   enable_fast_install=yes
7503 fi
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515 # This can be used to rebuild libtool when needed
7516 LIBTOOL_DEPS="$ltmain"
7517
7518 # Always use our own libtool.
7519 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 test -z "$LN_S" && LN_S="ln -s"
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 if test -n "${ZSH_VERSION+set}" ; then
7562    setopt NO_GLOB_SUBST
7563 fi
7564
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7566 $as_echo_n "checking for objdir... " >&6; }
7567 if test "${lt_cv_objdir+set}" = set; then :
7568   $as_echo_n "(cached) " >&6
7569 else
7570   rm -f .libs 2>/dev/null
7571 mkdir .libs 2>/dev/null
7572 if test -d .libs; then
7573   lt_cv_objdir=.libs
7574 else
7575   # MS-DOS does not allow filenames that begin with a dot.
7576   lt_cv_objdir=_libs
7577 fi
7578 rmdir .libs 2>/dev/null
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7581 $as_echo "$lt_cv_objdir" >&6; }
7582 objdir=$lt_cv_objdir
7583
7584
7585
7586
7587
7588 cat >>confdefs.h <<_ACEOF
7589 #define LT_OBJDIR "$lt_cv_objdir/"
7590 _ACEOF
7591
7592
7593
7594
7595 case $host_os in
7596 aix3*)
7597   # AIX sometimes has problems with the GCC collect2 program.  For some
7598   # reason, if we set the COLLECT_NAMES environment variable, the problems
7599   # vanish in a puff of smoke.
7600   if test "X${COLLECT_NAMES+set}" != Xset; then
7601     COLLECT_NAMES=
7602     export COLLECT_NAMES
7603   fi
7604   ;;
7605 esac
7606
7607 # Global variables:
7608 ofile=libtool
7609 can_build_shared=yes
7610
7611 # All known linkers require a `.a' archive for static linking (except MSVC,
7612 # which needs '.lib').
7613 libext=a
7614
7615 with_gnu_ld="$lt_cv_prog_gnu_ld"
7616
7617 old_CC="$CC"
7618 old_CFLAGS="$CFLAGS"
7619
7620 # Set sane defaults for various variables
7621 test -z "$CC" && CC=cc
7622 test -z "$LTCC" && LTCC=$CC
7623 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7624 test -z "$LD" && LD=ld
7625 test -z "$ac_objext" && ac_objext=o
7626
7627 for cc_temp in $compiler""; do
7628   case $cc_temp in
7629     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7630     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7631     \-*) ;;
7632     *) break;;
7633   esac
7634 done
7635 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7636
7637
7638 # Only perform the check for file, if the check method requires it
7639 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7640 case $deplibs_check_method in
7641 file_magic*)
7642   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7644 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7645 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   case $MAGIC_CMD in
7649 [\\/*] |  ?:[\\/]*)
7650   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651   ;;
7652 *)
7653   lt_save_MAGIC_CMD="$MAGIC_CMD"
7654   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7655   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7656   for ac_dir in $ac_dummy; do
7657     IFS="$lt_save_ifs"
7658     test -z "$ac_dir" && ac_dir=.
7659     if test -f $ac_dir/${ac_tool_prefix}file; then
7660       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7661       if test -n "$file_magic_test_file"; then
7662         case $deplibs_check_method in
7663         "file_magic "*)
7664           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7665           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7667             $EGREP "$file_magic_regex" > /dev/null; then
7668             :
7669           else
7670             cat <<_LT_EOF 1>&2
7671
7672 *** Warning: the command libtool uses to detect shared libraries,
7673 *** $file_magic_cmd, produces output that libtool cannot recognize.
7674 *** The result is that libtool may fail to recognize shared libraries
7675 *** as such.  This will affect the creation of libtool libraries that
7676 *** depend on shared libraries, but programs linked with such libtool
7677 *** libraries will work regardless of this problem.  Nevertheless, you
7678 *** may want to report the problem to your system manager and/or to
7679 *** bug-libtool@gnu.org
7680
7681 _LT_EOF
7682           fi ;;
7683         esac
7684       fi
7685       break
7686     fi
7687   done
7688   IFS="$lt_save_ifs"
7689   MAGIC_CMD="$lt_save_MAGIC_CMD"
7690   ;;
7691 esac
7692 fi
7693
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if test -n "$MAGIC_CMD"; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7697 $as_echo "$MAGIC_CMD" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704
7705
7706
7707 if test -z "$lt_cv_path_MAGIC_CMD"; then
7708   if test -n "$ac_tool_prefix"; then
7709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7710 $as_echo_n "checking for file... " >&6; }
7711 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714   case $MAGIC_CMD in
7715 [\\/*] |  ?:[\\/]*)
7716   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7717   ;;
7718 *)
7719   lt_save_MAGIC_CMD="$MAGIC_CMD"
7720   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7721   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7722   for ac_dir in $ac_dummy; do
7723     IFS="$lt_save_ifs"
7724     test -z "$ac_dir" && ac_dir=.
7725     if test -f $ac_dir/file; then
7726       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7727       if test -n "$file_magic_test_file"; then
7728         case $deplibs_check_method in
7729         "file_magic "*)
7730           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7731           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7733             $EGREP "$file_magic_regex" > /dev/null; then
7734             :
7735           else
7736             cat <<_LT_EOF 1>&2
7737
7738 *** Warning: the command libtool uses to detect shared libraries,
7739 *** $file_magic_cmd, produces output that libtool cannot recognize.
7740 *** The result is that libtool may fail to recognize shared libraries
7741 *** as such.  This will affect the creation of libtool libraries that
7742 *** depend on shared libraries, but programs linked with such libtool
7743 *** libraries will work regardless of this problem.  Nevertheless, you
7744 *** may want to report the problem to your system manager and/or to
7745 *** bug-libtool@gnu.org
7746
7747 _LT_EOF
7748           fi ;;
7749         esac
7750       fi
7751       break
7752     fi
7753   done
7754   IFS="$lt_save_ifs"
7755   MAGIC_CMD="$lt_save_MAGIC_CMD"
7756   ;;
7757 esac
7758 fi
7759
7760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761 if test -n "$MAGIC_CMD"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7763 $as_echo "$MAGIC_CMD" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770   else
7771     MAGIC_CMD=:
7772   fi
7773 fi
7774
7775   fi
7776   ;;
7777 esac
7778
7779 # Use C for the default configuration in the libtool script
7780
7781 lt_save_CC="$CC"
7782 ac_ext=c
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788
7789 # Source file extension for C test sources.
7790 ac_ext=c
7791
7792 # Object file extension for compiled C test sources.
7793 objext=o
7794 objext=$objext
7795
7796 # Code to be used in simple compile tests
7797 lt_simple_compile_test_code="int some_variable = 0;"
7798
7799 # Code to be used in simple link tests
7800 lt_simple_link_test_code='int main(){return(0);}'
7801
7802
7803
7804
7805
7806
7807
7808 # If no C compiler was specified, use CC.
7809 LTCC=${LTCC-"$CC"}
7810
7811 # If no C compiler flags were specified, use CFLAGS.
7812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7813
7814 # Allow CC to be a program name with arguments.
7815 compiler=$CC
7816
7817 # Save the default compiler, since it gets overwritten when the other
7818 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7819 compiler_DEFAULT=$CC
7820
7821 # save warnings/boilerplate of simple test code
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_compiler_boilerplate=`cat conftest.err`
7826 $RM conftest*
7827
7828 ac_outfile=conftest.$ac_objext
7829 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7831 _lt_linker_boilerplate=`cat conftest.err`
7832 $RM -r conftest*
7833
7834
7835 ## CAVEAT EMPTOR:
7836 ## There is no encapsulation within the following macros, do not change
7837 ## the running order or otherwise move them around unless you know exactly
7838 ## what you are doing...
7839 if test -n "$compiler"; then
7840
7841 lt_prog_compiler_no_builtin_flag=
7842
7843 if test "$GCC" = yes; then
7844   case $cc_basename in
7845   nvcc*)
7846     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7847   *)
7848     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7849   esac
7850
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7852 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7853 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   lt_cv_prog_compiler_rtti_exceptions=no
7857    ac_outfile=conftest.$ac_objext
7858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859    lt_compiler_flag="-fno-rtti -fno-exceptions"
7860    # Insert the option either (1) after the last *FLAGS variable, or
7861    # (2) before a word containing "conftest.", or (3) at the end.
7862    # Note that $ac_compile itself does not contain backslashes and begins
7863    # with a dollar sign (not a hyphen), so the echo should work correctly.
7864    # The option is referenced via a variable to avoid confusing sed.
7865    lt_compile=`echo "$ac_compile" | $SED \
7866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7868    -e 's:$: $lt_compiler_flag:'`
7869    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7870    (eval "$lt_compile" 2>conftest.err)
7871    ac_status=$?
7872    cat conftest.err >&5
7873    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874    if (exit $ac_status) && test -s "$ac_outfile"; then
7875      # The compiler can only warn and ignore the option if not recognized
7876      # So say no if there are warnings other than the usual output.
7877      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7878      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7879      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7880        lt_cv_prog_compiler_rtti_exceptions=yes
7881      fi
7882    fi
7883    $RM conftest*
7884
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7887 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7888
7889 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7890     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7891 else
7892     :
7893 fi
7894
7895 fi
7896
7897
7898
7899
7900
7901
7902   lt_prog_compiler_wl=
7903 lt_prog_compiler_pic=
7904 lt_prog_compiler_static=
7905
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7907 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7908
7909   if test "$GCC" = yes; then
7910     lt_prog_compiler_wl='-Wl,'
7911     lt_prog_compiler_static='-static'
7912
7913     case $host_os in
7914       aix*)
7915       # All AIX code is PIC.
7916       if test "$host_cpu" = ia64; then
7917         # AIX 5 now supports IA64 processor
7918         lt_prog_compiler_static='-Bstatic'
7919       fi
7920       ;;
7921
7922     amigaos*)
7923       case $host_cpu in
7924       powerpc)
7925             # see comment about AmigaOS4 .so support
7926             lt_prog_compiler_pic='-fPIC'
7927         ;;
7928       m68k)
7929             # FIXME: we need at least 68020 code to build shared libraries, but
7930             # adding the `-m68020' flag to GCC prevents building anything better,
7931             # like `-m68040'.
7932             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7933         ;;
7934       esac
7935       ;;
7936
7937     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7938       # PIC is the default for these OSes.
7939       ;;
7940
7941     mingw* | cygwin* | pw32* | os2* | cegcc*)
7942       # This hack is so that the source file can tell whether it is being
7943       # built for inclusion in a dll (and should export symbols for example).
7944       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7945       # (--disable-auto-import) libraries
7946       lt_prog_compiler_pic='-DDLL_EXPORT'
7947       ;;
7948
7949     darwin* | rhapsody*)
7950       # PIC is the default on this platform
7951       # Common symbols not allowed in MH_DYLIB files
7952       lt_prog_compiler_pic='-fno-common'
7953       ;;
7954
7955     haiku*)
7956       # PIC is the default for Haiku.
7957       # The "-static" flag exists, but is broken.
7958       lt_prog_compiler_static=
7959       ;;
7960
7961     hpux*)
7962       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7963       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7964       # sets the default TLS model and affects inlining.
7965       case $host_cpu in
7966       hppa*64*)
7967         # +Z the default
7968         ;;
7969       *)
7970         lt_prog_compiler_pic='-fPIC'
7971         ;;
7972       esac
7973       ;;
7974
7975     interix[3-9]*)
7976       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7977       # Instead, we relocate shared libraries at runtime.
7978       ;;
7979
7980     msdosdjgpp*)
7981       # Just because we use GCC doesn't mean we suddenly get shared libraries
7982       # on systems that don't support them.
7983       lt_prog_compiler_can_build_shared=no
7984       enable_shared=no
7985       ;;
7986
7987     *nto* | *qnx*)
7988       # QNX uses GNU C++, but need to define -shared option too, otherwise
7989       # it will coredump.
7990       lt_prog_compiler_pic='-fPIC -shared'
7991       ;;
7992
7993     sysv4*MP*)
7994       if test -d /usr/nec; then
7995         lt_prog_compiler_pic=-Kconform_pic
7996       fi
7997       ;;
7998
7999     *)
8000       lt_prog_compiler_pic='-fPIC'
8001       ;;
8002     esac
8003
8004     case $cc_basename in
8005     nvcc*) # Cuda Compiler Driver 2.2
8006       lt_prog_compiler_wl='-Xlinker '
8007       lt_prog_compiler_pic='-Xcompiler -fPIC'
8008       ;;
8009     esac
8010   else
8011     # PORTME Check for flag to pass linker flags through the system compiler.
8012     case $host_os in
8013     aix*)
8014       lt_prog_compiler_wl='-Wl,'
8015       if test "$host_cpu" = ia64; then
8016         # AIX 5 now supports IA64 processor
8017         lt_prog_compiler_static='-Bstatic'
8018       else
8019         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8020       fi
8021       ;;
8022
8023     mingw* | cygwin* | pw32* | os2* | cegcc*)
8024       # This hack is so that the source file can tell whether it is being
8025       # built for inclusion in a dll (and should export symbols for example).
8026       lt_prog_compiler_pic='-DDLL_EXPORT'
8027       ;;
8028
8029     hpux9* | hpux10* | hpux11*)
8030       lt_prog_compiler_wl='-Wl,'
8031       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8032       # not for PA HP-UX.
8033       case $host_cpu in
8034       hppa*64*|ia64*)
8035         # +Z the default
8036         ;;
8037       *)
8038         lt_prog_compiler_pic='+Z'
8039         ;;
8040       esac
8041       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8042       lt_prog_compiler_static='${wl}-a ${wl}archive'
8043       ;;
8044
8045     irix5* | irix6* | nonstopux*)
8046       lt_prog_compiler_wl='-Wl,'
8047       # PIC (with -KPIC) is the default.
8048       lt_prog_compiler_static='-non_shared'
8049       ;;
8050
8051     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8052       case $cc_basename in
8053       # old Intel for x86_64 which still supported -KPIC.
8054       ecc*)
8055         lt_prog_compiler_wl='-Wl,'
8056         lt_prog_compiler_pic='-KPIC'
8057         lt_prog_compiler_static='-static'
8058         ;;
8059       # icc used to be incompatible with GCC.
8060       # ICC 10 doesn't accept -KPIC any more.
8061       icc* | ifort*)
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='-fPIC'
8064         lt_prog_compiler_static='-static'
8065         ;;
8066       # Lahey Fortran 8.1.
8067       lf95*)
8068         lt_prog_compiler_wl='-Wl,'
8069         lt_prog_compiler_pic='--shared'
8070         lt_prog_compiler_static='--static'
8071         ;;
8072       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8073         # Portland Group compilers (*not* the Pentium gcc compiler,
8074         # which looks to be a dead project)
8075         lt_prog_compiler_wl='-Wl,'
8076         lt_prog_compiler_pic='-fpic'
8077         lt_prog_compiler_static='-Bstatic'
8078         ;;
8079       ccc*)
8080         lt_prog_compiler_wl='-Wl,'
8081         # All Alpha code is PIC.
8082         lt_prog_compiler_static='-non_shared'
8083         ;;
8084       xl* | bgxl* | bgf* | mpixl*)
8085         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8086         lt_prog_compiler_wl='-Wl,'
8087         lt_prog_compiler_pic='-qpic'
8088         lt_prog_compiler_static='-qstaticlink'
8089         ;;
8090       *)
8091         case `$CC -V 2>&1 | sed 5q` in
8092         *Sun\ F* | *Sun*Fortran*)
8093           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8094           lt_prog_compiler_pic='-KPIC'
8095           lt_prog_compiler_static='-Bstatic'
8096           lt_prog_compiler_wl=''
8097           ;;
8098         *Sun\ C*)
8099           # Sun C 5.9
8100           lt_prog_compiler_pic='-KPIC'
8101           lt_prog_compiler_static='-Bstatic'
8102           lt_prog_compiler_wl='-Wl,'
8103           ;;
8104         esac
8105         ;;
8106       esac
8107       ;;
8108
8109     newsos6)
8110       lt_prog_compiler_pic='-KPIC'
8111       lt_prog_compiler_static='-Bstatic'
8112       ;;
8113
8114     *nto* | *qnx*)
8115       # QNX uses GNU C++, but need to define -shared option too, otherwise
8116       # it will coredump.
8117       lt_prog_compiler_pic='-fPIC -shared'
8118       ;;
8119
8120     osf3* | osf4* | osf5*)
8121       lt_prog_compiler_wl='-Wl,'
8122       # All OSF/1 code is PIC.
8123       lt_prog_compiler_static='-non_shared'
8124       ;;
8125
8126     rdos*)
8127       lt_prog_compiler_static='-non_shared'
8128       ;;
8129
8130     solaris*)
8131       lt_prog_compiler_pic='-KPIC'
8132       lt_prog_compiler_static='-Bstatic'
8133       case $cc_basename in
8134       f77* | f90* | f95*)
8135         lt_prog_compiler_wl='-Qoption ld ';;
8136       *)
8137         lt_prog_compiler_wl='-Wl,';;
8138       esac
8139       ;;
8140
8141     sunos4*)
8142       lt_prog_compiler_wl='-Qoption ld '
8143       lt_prog_compiler_pic='-PIC'
8144       lt_prog_compiler_static='-Bstatic'
8145       ;;
8146
8147     sysv4 | sysv4.2uw2* | sysv4.3*)
8148       lt_prog_compiler_wl='-Wl,'
8149       lt_prog_compiler_pic='-KPIC'
8150       lt_prog_compiler_static='-Bstatic'
8151       ;;
8152
8153     sysv4*MP*)
8154       if test -d /usr/nec ;then
8155         lt_prog_compiler_pic='-Kconform_pic'
8156         lt_prog_compiler_static='-Bstatic'
8157       fi
8158       ;;
8159
8160     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8161       lt_prog_compiler_wl='-Wl,'
8162       lt_prog_compiler_pic='-KPIC'
8163       lt_prog_compiler_static='-Bstatic'
8164       ;;
8165
8166     unicos*)
8167       lt_prog_compiler_wl='-Wl,'
8168       lt_prog_compiler_can_build_shared=no
8169       ;;
8170
8171     uts4*)
8172       lt_prog_compiler_pic='-pic'
8173       lt_prog_compiler_static='-Bstatic'
8174       ;;
8175
8176     *)
8177       lt_prog_compiler_can_build_shared=no
8178       ;;
8179     esac
8180   fi
8181
8182 case $host_os in
8183   # For platforms which do not support PIC, -DPIC is meaningless:
8184   *djgpp*)
8185     lt_prog_compiler_pic=
8186     ;;
8187   *)
8188     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8189     ;;
8190 esac
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8192 $as_echo "$lt_prog_compiler_pic" >&6; }
8193
8194
8195
8196
8197
8198
8199 #
8200 # Check to make sure the PIC flag actually works.
8201 #
8202 if test -n "$lt_prog_compiler_pic"; then
8203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8204 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8205 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   lt_cv_prog_compiler_pic_works=no
8209    ac_outfile=conftest.$ac_objext
8210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8211    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8212    # Insert the option either (1) after the last *FLAGS variable, or
8213    # (2) before a word containing "conftest.", or (3) at the end.
8214    # Note that $ac_compile itself does not contain backslashes and begins
8215    # with a dollar sign (not a hyphen), so the echo should work correctly.
8216    # The option is referenced via a variable to avoid confusing sed.
8217    lt_compile=`echo "$ac_compile" | $SED \
8218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220    -e 's:$: $lt_compiler_flag:'`
8221    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8222    (eval "$lt_compile" 2>conftest.err)
8223    ac_status=$?
8224    cat conftest.err >&5
8225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226    if (exit $ac_status) && test -s "$ac_outfile"; then
8227      # The compiler can only warn and ignore the option if not recognized
8228      # So say no if there are warnings other than the usual output.
8229      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8230      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8231      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8232        lt_cv_prog_compiler_pic_works=yes
8233      fi
8234    fi
8235    $RM conftest*
8236
8237 fi
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8239 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8240
8241 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8242     case $lt_prog_compiler_pic in
8243      "" | " "*) ;;
8244      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8245      esac
8246 else
8247     lt_prog_compiler_pic=
8248      lt_prog_compiler_can_build_shared=no
8249 fi
8250
8251 fi
8252
8253
8254
8255
8256
8257
8258 #
8259 # Check to make sure the static flag actually works.
8260 #
8261 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8263 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8264 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   lt_cv_prog_compiler_static_works=no
8268    save_LDFLAGS="$LDFLAGS"
8269    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8270    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8271    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8272      # The linker can only warn and ignore the option if not recognized
8273      # So say no if there are warnings
8274      if test -s conftest.err; then
8275        # Append any errors to the config.log.
8276        cat conftest.err 1>&5
8277        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8278        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279        if diff conftest.exp conftest.er2 >/dev/null; then
8280          lt_cv_prog_compiler_static_works=yes
8281        fi
8282      else
8283        lt_cv_prog_compiler_static_works=yes
8284      fi
8285    fi
8286    $RM -r conftest*
8287    LDFLAGS="$save_LDFLAGS"
8288
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8291 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8292
8293 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8294     :
8295 else
8296     lt_prog_compiler_static=
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8307 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8308   $as_echo_n "(cached) " >&6
8309 else
8310   lt_cv_prog_compiler_c_o=no
8311    $RM -r conftest 2>/dev/null
8312    mkdir conftest
8313    cd conftest
8314    mkdir out
8315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8316
8317    lt_compiler_flag="-o out/conftest2.$ac_objext"
8318    # Insert the option either (1) after the last *FLAGS variable, or
8319    # (2) before a word containing "conftest.", or (3) at the end.
8320    # Note that $ac_compile itself does not contain backslashes and begins
8321    # with a dollar sign (not a hyphen), so the echo should work correctly.
8322    lt_compile=`echo "$ac_compile" | $SED \
8323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325    -e 's:$: $lt_compiler_flag:'`
8326    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8327    (eval "$lt_compile" 2>out/conftest.err)
8328    ac_status=$?
8329    cat out/conftest.err >&5
8330    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8332    then
8333      # The compiler can only warn and ignore the option if not recognized
8334      # So say no if there are warnings
8335      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8336      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8337      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8338        lt_cv_prog_compiler_c_o=yes
8339      fi
8340    fi
8341    chmod u+w . 2>&5
8342    $RM conftest*
8343    # SGI C++ compiler will create directory out/ii_files/ for
8344    # template instantiation
8345    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8346    $RM out/* && rmdir out
8347    cd ..
8348    $RM -r conftest
8349    $RM conftest*
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8353 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8354
8355
8356
8357
8358
8359
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8362 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   lt_cv_prog_compiler_c_o=no
8366    $RM -r conftest 2>/dev/null
8367    mkdir conftest
8368    cd conftest
8369    mkdir out
8370    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8371
8372    lt_compiler_flag="-o out/conftest2.$ac_objext"
8373    # Insert the option either (1) after the last *FLAGS variable, or
8374    # (2) before a word containing "conftest.", or (3) at the end.
8375    # Note that $ac_compile itself does not contain backslashes and begins
8376    # with a dollar sign (not a hyphen), so the echo should work correctly.
8377    lt_compile=`echo "$ac_compile" | $SED \
8378    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380    -e 's:$: $lt_compiler_flag:'`
8381    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8382    (eval "$lt_compile" 2>out/conftest.err)
8383    ac_status=$?
8384    cat out/conftest.err >&5
8385    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8387    then
8388      # The compiler can only warn and ignore the option if not recognized
8389      # So say no if there are warnings
8390      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8391      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8392      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8393        lt_cv_prog_compiler_c_o=yes
8394      fi
8395    fi
8396    chmod u+w . 2>&5
8397    $RM conftest*
8398    # SGI C++ compiler will create directory out/ii_files/ for
8399    # template instantiation
8400    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8401    $RM out/* && rmdir out
8402    cd ..
8403    $RM -r conftest
8404    $RM conftest*
8405
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8408 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8409
8410
8411
8412
8413 hard_links="nottested"
8414 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8415   # do not overwrite the value of need_locks provided by the user
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8417 $as_echo_n "checking if we can lock with hard links... " >&6; }
8418   hard_links=yes
8419   $RM conftest*
8420   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8421   touch conftest.a
8422   ln conftest.a conftest.b 2>&5 || hard_links=no
8423   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8425 $as_echo "$hard_links" >&6; }
8426   if test "$hard_links" = no; then
8427     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8428 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8429     need_locks=warn
8430   fi
8431 else
8432   need_locks=no
8433 fi
8434
8435
8436
8437
8438
8439
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8441 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8442
8443   runpath_var=
8444   allow_undefined_flag=
8445   always_export_symbols=no
8446   archive_cmds=
8447   archive_expsym_cmds=
8448   compiler_needs_object=no
8449   enable_shared_with_static_runtimes=no
8450   export_dynamic_flag_spec=
8451   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8452   hardcode_automatic=no
8453   hardcode_direct=no
8454   hardcode_direct_absolute=no
8455   hardcode_libdir_flag_spec=
8456   hardcode_libdir_flag_spec_ld=
8457   hardcode_libdir_separator=
8458   hardcode_minus_L=no
8459   hardcode_shlibpath_var=unsupported
8460   inherit_rpath=no
8461   link_all_deplibs=unknown
8462   module_cmds=
8463   module_expsym_cmds=
8464   old_archive_from_new_cmds=
8465   old_archive_from_expsyms_cmds=
8466   thread_safe_flag_spec=
8467   whole_archive_flag_spec=
8468   # include_expsyms should be a list of space-separated symbols to be *always*
8469   # included in the symbol list
8470   include_expsyms=
8471   # exclude_expsyms can be an extended regexp of symbols to exclude
8472   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8473   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8474   # as well as any symbol that contains `d'.
8475   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8476   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8477   # platforms (ab)use it in PIC code, but their linkers get confused if
8478   # the symbol is explicitly referenced.  Since portable code cannot
8479   # rely on this symbol name, it's probably fine to never include it in
8480   # preloaded symbol tables.
8481   # Exclude shared library initialization/finalization symbols.
8482   extract_expsyms_cmds=
8483
8484   case $host_os in
8485   cygwin* | mingw* | pw32* | cegcc*)
8486     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8487     # When not using gcc, we currently assume that we are using
8488     # Microsoft Visual C++.
8489     if test "$GCC" != yes; then
8490       with_gnu_ld=no
8491     fi
8492     ;;
8493   interix*)
8494     # we just hope/assume this is gcc and not c89 (= MSVC++)
8495     with_gnu_ld=yes
8496     ;;
8497   openbsd*)
8498     with_gnu_ld=no
8499     ;;
8500   esac
8501
8502   ld_shlibs=yes
8503
8504   # On some targets, GNU ld is compatible enough with the native linker
8505   # that we're better off using the native interface for both.
8506   lt_use_gnu_ld_interface=no
8507   if test "$with_gnu_ld" = yes; then
8508     case $host_os in
8509       aix*)
8510         # The AIX port of GNU ld has always aspired to compatibility
8511         # with the native linker.  However, as the warning in the GNU ld
8512         # block says, versions before 2.19.5* couldn't really create working
8513         # shared libraries, regardless of the interface used.
8514         case `$LD -v 2>&1` in
8515           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8516           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8517           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8518           *)
8519             lt_use_gnu_ld_interface=yes
8520             ;;
8521         esac
8522         ;;
8523       *)
8524         lt_use_gnu_ld_interface=yes
8525         ;;
8526     esac
8527   fi
8528
8529   if test "$lt_use_gnu_ld_interface" = yes; then
8530     # If archive_cmds runs LD, not CC, wlarc should be empty
8531     wlarc='${wl}'
8532
8533     # Set some defaults for GNU ld with shared library support. These
8534     # are reset later if shared libraries are not supported. Putting them
8535     # here allows them to be overridden if necessary.
8536     runpath_var=LD_RUN_PATH
8537     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8538     export_dynamic_flag_spec='${wl}--export-dynamic'
8539     # ancient GNU ld didn't support --whole-archive et. al.
8540     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8541       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8542     else
8543       whole_archive_flag_spec=
8544     fi
8545     supports_anon_versioning=no
8546     case `$LD -v 2>&1` in
8547       *GNU\ gold*) supports_anon_versioning=yes ;;
8548       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8549       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8550       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8551       *\ 2.11.*) ;; # other 2.11 versions
8552       *) supports_anon_versioning=yes ;;
8553     esac
8554
8555     # See if GNU ld supports shared libraries.
8556     case $host_os in
8557     aix[3-9]*)
8558       # On AIX/PPC, the GNU linker is very broken
8559       if test "$host_cpu" != ia64; then
8560         ld_shlibs=no
8561         cat <<_LT_EOF 1>&2
8562
8563 *** Warning: the GNU linker, at least up to release 2.19, is reported
8564 *** to be unable to reliably create shared libraries on AIX.
8565 *** Therefore, libtool is disabling shared libraries support.  If you
8566 *** really care for shared libraries, you may want to install binutils
8567 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8568 *** You will then need to restart the configuration process.
8569
8570 _LT_EOF
8571       fi
8572       ;;
8573
8574     amigaos*)
8575       case $host_cpu in
8576       powerpc)
8577             # see comment about AmigaOS4 .so support
8578             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579             archive_expsym_cmds=''
8580         ;;
8581       m68k)
8582             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)'
8583             hardcode_libdir_flag_spec='-L$libdir'
8584             hardcode_minus_L=yes
8585         ;;
8586       esac
8587       ;;
8588
8589     beos*)
8590       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8591         allow_undefined_flag=unsupported
8592         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8593         # support --undefined.  This deserves some investigation.  FIXME
8594         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595       else
8596         ld_shlibs=no
8597       fi
8598       ;;
8599
8600     cygwin* | mingw* | pw32* | cegcc*)
8601       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8602       # as there is no search path for DLLs.
8603       hardcode_libdir_flag_spec='-L$libdir'
8604       export_dynamic_flag_spec='${wl}--export-all-symbols'
8605       allow_undefined_flag=unsupported
8606       always_export_symbols=no
8607       enable_shared_with_static_runtimes=yes
8608       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8609
8610       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8611         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8612         # If the export-symbols file already is a .def file (1st line
8613         # is EXPORTS), use it as is; otherwise, prepend...
8614         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8615           cp $export_symbols $output_objdir/$soname.def;
8616         else
8617           echo EXPORTS > $output_objdir/$soname.def;
8618           cat $export_symbols >> $output_objdir/$soname.def;
8619         fi~
8620         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8621       else
8622         ld_shlibs=no
8623       fi
8624       ;;
8625
8626     haiku*)
8627       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628       link_all_deplibs=yes
8629       ;;
8630
8631     interix[3-9]*)
8632       hardcode_direct=no
8633       hardcode_shlibpath_var=no
8634       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8635       export_dynamic_flag_spec='${wl}-E'
8636       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8637       # Instead, shared libraries are loaded at an image base (0x10000000 by
8638       # default) and relocated if they conflict, which is a slow very memory
8639       # consuming and fragmenting process.  To avoid this, we pick a random,
8640       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8641       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8642       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8643       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'
8644       ;;
8645
8646     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8647       tmp_diet=no
8648       if test "$host_os" = linux-dietlibc; then
8649         case $cc_basename in
8650           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8651         esac
8652       fi
8653       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8654          && test "$tmp_diet" = no
8655       then
8656         tmp_addflag=
8657         tmp_sharedflag='-shared'
8658         case $cc_basename,$host_cpu in
8659         pgcc*)                          # Portland Group C compiler
8660           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'
8661           tmp_addflag=' $pic_flag'
8662           ;;
8663         pgf77* | pgf90* | pgf95* | pgfortran*)
8664                                         # Portland Group f77 and f90 compilers
8665           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'
8666           tmp_addflag=' $pic_flag -Mnomain' ;;
8667         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8668           tmp_addflag=' -i_dynamic' ;;
8669         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8670           tmp_addflag=' -i_dynamic -nofor_main' ;;
8671         ifc* | ifort*)                  # Intel Fortran compiler
8672           tmp_addflag=' -nofor_main' ;;
8673         lf95*)                          # Lahey Fortran 8.1
8674           whole_archive_flag_spec=
8675           tmp_sharedflag='--shared' ;;
8676         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8677           tmp_sharedflag='-qmkshrobj'
8678           tmp_addflag= ;;
8679         nvcc*)  # Cuda Compiler Driver 2.2
8680           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'
8681           compiler_needs_object=yes
8682           ;;
8683         esac
8684         case `$CC -V 2>&1 | sed 5q` in
8685         *Sun\ C*)                       # Sun C 5.9
8686           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'
8687           compiler_needs_object=yes
8688           tmp_sharedflag='-G' ;;
8689         *Sun\ F*)                       # Sun Fortran 8.3
8690           tmp_sharedflag='-G' ;;
8691         esac
8692         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693
8694         if test "x$supports_anon_versioning" = xyes; then
8695           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8696             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697             echo "local: *; };" >> $output_objdir/$libname.ver~
8698             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8699         fi
8700
8701         case $cc_basename in
8702         xlf* | bgf* | bgxlf* | mpixlf*)
8703           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8704           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8705           hardcode_libdir_flag_spec=
8706           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8707           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8708           if test "x$supports_anon_versioning" = xyes; then
8709             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8710               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8711               echo "local: *; };" >> $output_objdir/$libname.ver~
8712               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8713           fi
8714           ;;
8715         esac
8716       else
8717         ld_shlibs=no
8718       fi
8719       ;;
8720
8721     netbsd*)
8722       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8723         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8724         wlarc=
8725       else
8726         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728       fi
8729       ;;
8730
8731     solaris*)
8732       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8733         ld_shlibs=no
8734         cat <<_LT_EOF 1>&2
8735
8736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8737 *** create shared libraries on Solaris systems.  Therefore, libtool
8738 *** is disabling shared libraries support.  We urge you to upgrade GNU
8739 *** binutils to release 2.9.1 or newer.  Another option is to modify
8740 *** your PATH or compiler configuration so that the native linker is
8741 *** used, and then restart.
8742
8743 _LT_EOF
8744       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747       else
8748         ld_shlibs=no
8749       fi
8750       ;;
8751
8752     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8753       case `$LD -v 2>&1` in
8754         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8755         ld_shlibs=no
8756         cat <<_LT_EOF 1>&2
8757
8758 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8759 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8760 *** is disabling shared libraries support.  We urge you to upgrade GNU
8761 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8762 *** your PATH or compiler configuration so that the native linker is
8763 *** used, and then restart.
8764
8765 _LT_EOF
8766         ;;
8767         *)
8768           # For security reasons, it is highly recommended that you always
8769           # use absolute paths for naming shared libraries, and exclude the
8770           # DT_RUNPATH tag from executables and libraries.  But doing so
8771           # requires that you compile everything twice, which is a pain.
8772           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776           else
8777             ld_shlibs=no
8778           fi
8779         ;;
8780       esac
8781       ;;
8782
8783     sunos4*)
8784       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785       wlarc=
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     *)
8791       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794       else
8795         ld_shlibs=no
8796       fi
8797       ;;
8798     esac
8799
8800     if test "$ld_shlibs" = no; then
8801       runpath_var=
8802       hardcode_libdir_flag_spec=
8803       export_dynamic_flag_spec=
8804       whole_archive_flag_spec=
8805     fi
8806   else
8807     # PORTME fill in a description of your system's linker (not GNU ld)
8808     case $host_os in
8809     aix3*)
8810       allow_undefined_flag=unsupported
8811       always_export_symbols=yes
8812       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'
8813       # Note: this linker hardcodes the directories in LIBPATH if there
8814       # are no directories specified by -L.
8815       hardcode_minus_L=yes
8816       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8817         # Neither direct hardcoding nor static linking is supported with a
8818         # broken collect2.
8819         hardcode_direct=unsupported
8820       fi
8821       ;;
8822
8823     aix[4-9]*)
8824       if test "$host_cpu" = ia64; then
8825         # On IA64, the linker does run time linking by default, so we don't
8826         # have to do anything special.
8827         aix_use_runtimelinking=no
8828         exp_sym_flag='-Bexport'
8829         no_entry_flag=""
8830       else
8831         # If we're using GNU nm, then we don't want the "-C" option.
8832         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8833         # Also, AIX nm treats weak defined symbols like other global
8834         # defined symbols, whereas GNU nm marks them as "W".
8835         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8836           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'
8837         else
8838           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'
8839         fi
8840         aix_use_runtimelinking=no
8841
8842         # Test if we are trying to use run time linking or normal
8843         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8844         # need to do runtime linking.
8845         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8846           for ld_flag in $LDFLAGS; do
8847           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8848             aix_use_runtimelinking=yes
8849             break
8850           fi
8851           done
8852           ;;
8853         esac
8854
8855         exp_sym_flag='-bexport'
8856         no_entry_flag='-bnoentry'
8857       fi
8858
8859       # When large executables or shared objects are built, AIX ld can
8860       # have problems creating the table of contents.  If linking a library
8861       # or program results in "error TOC overflow" add -mminimal-toc to
8862       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8863       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8864
8865       archive_cmds=''
8866       hardcode_direct=yes
8867       hardcode_direct_absolute=yes
8868       hardcode_libdir_separator=':'
8869       link_all_deplibs=yes
8870       file_list_spec='${wl}-f,'
8871
8872       if test "$GCC" = yes; then
8873         case $host_os in aix4.[012]|aix4.[012].*)
8874         # We only want to do this on AIX 4.2 and lower, the check
8875         # below for broken collect2 doesn't work under 4.3+
8876           collect2name=`${CC} -print-prog-name=collect2`
8877           if test -f "$collect2name" &&
8878            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8879           then
8880           # We have reworked collect2
8881           :
8882           else
8883           # We have old collect2
8884           hardcode_direct=unsupported
8885           # It fails to find uninstalled libraries when the uninstalled
8886           # path is not listed in the libpath.  Setting hardcode_minus_L
8887           # to unsupported forces relinking
8888           hardcode_minus_L=yes
8889           hardcode_libdir_flag_spec='-L$libdir'
8890           hardcode_libdir_separator=
8891           fi
8892           ;;
8893         esac
8894         shared_flag='-shared'
8895         if test "$aix_use_runtimelinking" = yes; then
8896           shared_flag="$shared_flag "'${wl}-G'
8897         fi
8898       else
8899         # not using gcc
8900         if test "$host_cpu" = ia64; then
8901         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8902         # chokes on -Wl,-G. The following line is correct:
8903           shared_flag='-G'
8904         else
8905           if test "$aix_use_runtimelinking" = yes; then
8906             shared_flag='${wl}-G'
8907           else
8908             shared_flag='${wl}-bM:SRE'
8909           fi
8910         fi
8911       fi
8912
8913       export_dynamic_flag_spec='${wl}-bexpall'
8914       # It seems that -bexpall does not export symbols beginning with
8915       # underscore (_), so it is better to generate a list of symbols to export.
8916       always_export_symbols=yes
8917       if test "$aix_use_runtimelinking" = yes; then
8918         # Warning - without using the other runtime loading flags (-brtl),
8919         # -berok will link without error, but may produce a broken library.
8920         allow_undefined_flag='-berok'
8921         # Determine the default libpath from the value encoded in an
8922         # empty executable.
8923         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h.  */
8925
8926 int
8927 main ()
8928 {
8929
8930   ;
8931   return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935
8936 lt_aix_libpath_sed='
8937     /Import File Strings/,/^$/ {
8938         /^0/ {
8939             s/^0  *\(.*\)$/\1/
8940             p
8941         }
8942     }'
8943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8944 # Check for a 64-bit object if we didn't find anything.
8945 if test -z "$aix_libpath"; then
8946   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947 fi
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext \
8950     conftest$ac_exeext conftest.$ac_ext
8951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8952
8953         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8954         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"
8955       else
8956         if test "$host_cpu" = ia64; then
8957           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8958           allow_undefined_flag="-z nodefs"
8959           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"
8960         else
8961          # Determine the default libpath from the value encoded in an
8962          # empty executable.
8963          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h.  */
8965
8966 int
8967 main ()
8968 {
8969
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975
8976 lt_aix_libpath_sed='
8977     /Import File Strings/,/^$/ {
8978         /^0/ {
8979             s/^0  *\(.*\)$/\1/
8980             p
8981         }
8982     }'
8983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984 # Check for a 64-bit object if we didn't find anything.
8985 if test -z "$aix_libpath"; then
8986   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987 fi
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext \
8990     conftest$ac_exeext conftest.$ac_ext
8991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8992
8993          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8994           # Warning - without using the other run time loading flags,
8995           # -berok will link without error, but may produce a broken library.
8996           no_undefined_flag=' ${wl}-bernotok'
8997           allow_undefined_flag=' ${wl}-berok'
8998           if test "$with_gnu_ld" = yes; then
8999             # We only use this code for GNU lds that support --whole-archive.
9000             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9001           else
9002             # Exported symbols can be pulled into shared objects from archives
9003             whole_archive_flag_spec='$convenience'
9004           fi
9005           archive_cmds_need_lc=yes
9006           # This is similar to how AIX traditionally builds its shared libraries.
9007           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'
9008         fi
9009       fi
9010       ;;
9011
9012     amigaos*)
9013       case $host_cpu in
9014       powerpc)
9015             # see comment about AmigaOS4 .so support
9016             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017             archive_expsym_cmds=''
9018         ;;
9019       m68k)
9020             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)'
9021             hardcode_libdir_flag_spec='-L$libdir'
9022             hardcode_minus_L=yes
9023         ;;
9024       esac
9025       ;;
9026
9027     bsdi[45]*)
9028       export_dynamic_flag_spec=-rdynamic
9029       ;;
9030
9031     cygwin* | mingw* | pw32* | cegcc*)
9032       # When not using gcc, we currently assume that we are using
9033       # Microsoft Visual C++.
9034       # hardcode_libdir_flag_spec is actually meaningless, as there is
9035       # no search path for DLLs.
9036       hardcode_libdir_flag_spec=' '
9037       allow_undefined_flag=unsupported
9038       # Tell ltmain to make .lib files, not .a files.
9039       libext=lib
9040       # Tell ltmain to make .dll files, not .so files.
9041       shrext_cmds=".dll"
9042       # FIXME: Setting linknames here is a bad hack.
9043       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9044       # The linker will automatically build a .lib file if we build a DLL.
9045       old_archive_from_new_cmds='true'
9046       # FIXME: Should let the user specify the lib program.
9047       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9048       fix_srcfile_path='`cygpath -w "$srcfile"`'
9049       enable_shared_with_static_runtimes=yes
9050       ;;
9051
9052     darwin* | rhapsody*)
9053
9054
9055   archive_cmds_need_lc=no
9056   hardcode_direct=no
9057   hardcode_automatic=yes
9058   hardcode_shlibpath_var=unsupported
9059   if test "$lt_cv_ld_force_load" = "yes"; then
9060     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\"`'
9061   else
9062     whole_archive_flag_spec=''
9063   fi
9064   link_all_deplibs=yes
9065   allow_undefined_flag="$_lt_dar_allow_undefined"
9066   case $cc_basename in
9067      ifort*) _lt_dar_can_shared=yes ;;
9068      *) _lt_dar_can_shared=$GCC ;;
9069   esac
9070   if test "$_lt_dar_can_shared" = "yes"; then
9071     output_verbose_link_cmd=func_echo_all
9072     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9073     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9074     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}"
9075     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}"
9076
9077   else
9078   ld_shlibs=no
9079   fi
9080
9081       ;;
9082
9083     dgux*)
9084       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085       hardcode_libdir_flag_spec='-L$libdir'
9086       hardcode_shlibpath_var=no
9087       ;;
9088
9089     freebsd1*)
9090       ld_shlibs=no
9091       ;;
9092
9093     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9094     # support.  Future versions do this automatically, but an explicit c++rt0.o
9095     # does not break anything, and helps significantly (at the cost of a little
9096     # extra space).
9097     freebsd2.2*)
9098       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9099       hardcode_libdir_flag_spec='-R$libdir'
9100       hardcode_direct=yes
9101       hardcode_shlibpath_var=no
9102       ;;
9103
9104     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9105     freebsd2*)
9106       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9107       hardcode_direct=yes
9108       hardcode_minus_L=yes
9109       hardcode_shlibpath_var=no
9110       ;;
9111
9112     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9113     freebsd* | dragonfly*)
9114       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9115       hardcode_libdir_flag_spec='-R$libdir'
9116       hardcode_direct=yes
9117       hardcode_shlibpath_var=no
9118       ;;
9119
9120     hpux9*)
9121       if test "$GCC" = yes; then
9122         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'
9123       else
9124         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'
9125       fi
9126       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127       hardcode_libdir_separator=:
9128       hardcode_direct=yes
9129
9130       # hardcode_minus_L: Not really in the search PATH,
9131       # but as the default location of the library.
9132       hardcode_minus_L=yes
9133       export_dynamic_flag_spec='${wl}-E'
9134       ;;
9135
9136     hpux10*)
9137       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9138         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9139       else
9140         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9141       fi
9142       if test "$with_gnu_ld" = no; then
9143         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9144         hardcode_libdir_flag_spec_ld='+b $libdir'
9145         hardcode_libdir_separator=:
9146         hardcode_direct=yes
9147         hardcode_direct_absolute=yes
9148         export_dynamic_flag_spec='${wl}-E'
9149         # hardcode_minus_L: Not really in the search PATH,
9150         # but as the default location of the library.
9151         hardcode_minus_L=yes
9152       fi
9153       ;;
9154
9155     hpux11*)
9156       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9157         case $host_cpu in
9158         hppa*64*)
9159           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9160           ;;
9161         ia64*)
9162           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9163           ;;
9164         *)
9165           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166           ;;
9167         esac
9168       else
9169         case $host_cpu in
9170         hppa*64*)
9171           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172           ;;
9173         ia64*)
9174           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9175           ;;
9176         *)
9177
9178           # Older versions of the 11.00 compiler do not understand -b yet
9179           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9180           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9181 $as_echo_n "checking if $CC understands -b... " >&6; }
9182 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   lt_cv_prog_compiler__b=no
9186    save_LDFLAGS="$LDFLAGS"
9187    LDFLAGS="$LDFLAGS -b"
9188    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9189    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9190      # The linker can only warn and ignore the option if not recognized
9191      # So say no if there are warnings
9192      if test -s conftest.err; then
9193        # Append any errors to the config.log.
9194        cat conftest.err 1>&5
9195        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9196        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9197        if diff conftest.exp conftest.er2 >/dev/null; then
9198          lt_cv_prog_compiler__b=yes
9199        fi
9200      else
9201        lt_cv_prog_compiler__b=yes
9202      fi
9203    fi
9204    $RM -r conftest*
9205    LDFLAGS="$save_LDFLAGS"
9206
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9209 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9210
9211 if test x"$lt_cv_prog_compiler__b" = xyes; then
9212     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9213 else
9214     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9215 fi
9216
9217           ;;
9218         esac
9219       fi
9220       if test "$with_gnu_ld" = no; then
9221         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9222         hardcode_libdir_separator=:
9223
9224         case $host_cpu in
9225         hppa*64*|ia64*)
9226           hardcode_direct=no
9227           hardcode_shlibpath_var=no
9228           ;;
9229         *)
9230           hardcode_direct=yes
9231           hardcode_direct_absolute=yes
9232           export_dynamic_flag_spec='${wl}-E'
9233
9234           # hardcode_minus_L: Not really in the search PATH,
9235           # but as the default location of the library.
9236           hardcode_minus_L=yes
9237           ;;
9238         esac
9239       fi
9240       ;;
9241
9242     irix5* | irix6* | nonstopux*)
9243       if test "$GCC" = yes; then
9244         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'
9245         # Try to use the -exported_symbol ld option, if it does not
9246         # work, assume that -exports_file does not work either and
9247         # implicitly export all symbols.
9248         save_LDFLAGS="$LDFLAGS"
9249         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h.  */
9252 int foo(void) {}
9253 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"; then :
9255   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'
9256
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext \
9259     conftest$ac_exeext conftest.$ac_ext
9260         LDFLAGS="$save_LDFLAGS"
9261       else
9262         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'
9263         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'
9264       fi
9265       archive_cmds_need_lc='no'
9266       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267       hardcode_libdir_separator=:
9268       inherit_rpath=yes
9269       link_all_deplibs=yes
9270       ;;
9271
9272     netbsd*)
9273       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9274         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9275       else
9276         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9277       fi
9278       hardcode_libdir_flag_spec='-R$libdir'
9279       hardcode_direct=yes
9280       hardcode_shlibpath_var=no
9281       ;;
9282
9283     newsos6)
9284       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9285       hardcode_direct=yes
9286       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287       hardcode_libdir_separator=:
9288       hardcode_shlibpath_var=no
9289       ;;
9290
9291     *nto* | *qnx*)
9292       ;;
9293
9294     openbsd*)
9295       if test -f /usr/libexec/ld.so; then
9296         hardcode_direct=yes
9297         hardcode_shlibpath_var=no
9298         hardcode_direct_absolute=yes
9299         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9300           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9302           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9303           export_dynamic_flag_spec='${wl}-E'
9304         else
9305           case $host_os in
9306            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9307              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308              hardcode_libdir_flag_spec='-R$libdir'
9309              ;;
9310            *)
9311              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9312              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9313              ;;
9314           esac
9315         fi
9316       else
9317         ld_shlibs=no
9318       fi
9319       ;;
9320
9321     os2*)
9322       hardcode_libdir_flag_spec='-L$libdir'
9323       hardcode_minus_L=yes
9324       allow_undefined_flag=unsupported
9325       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'
9326       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9327       ;;
9328
9329     osf3*)
9330       if test "$GCC" = yes; then
9331         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9332         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'
9333       else
9334         allow_undefined_flag=' -expect_unresolved \*'
9335         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'
9336       fi
9337       archive_cmds_need_lc='no'
9338       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339       hardcode_libdir_separator=:
9340       ;;
9341
9342     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9343       if test "$GCC" = yes; then
9344         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9345         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'
9346         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347       else
9348         allow_undefined_flag=' -expect_unresolved \*'
9349         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'
9350         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~
9351         $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'
9352
9353         # Both c and cxx compiler support -rpath directly
9354         hardcode_libdir_flag_spec='-rpath $libdir'
9355       fi
9356       archive_cmds_need_lc='no'
9357       hardcode_libdir_separator=:
9358       ;;
9359
9360     solaris*)
9361       no_undefined_flag=' -z defs'
9362       if test "$GCC" = yes; then
9363         wlarc='${wl}'
9364         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9366           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9367       else
9368         case `$CC -V 2>&1` in
9369         *"Compilers 5.0"*)
9370           wlarc=''
9371           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9373           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9374           ;;
9375         *)
9376           wlarc='${wl}'
9377           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9378           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9379           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9380           ;;
9381         esac
9382       fi
9383       hardcode_libdir_flag_spec='-R$libdir'
9384       hardcode_shlibpath_var=no
9385       case $host_os in
9386       solaris2.[0-5] | solaris2.[0-5].*) ;;
9387       *)
9388         # The compiler driver will combine and reorder linker options,
9389         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9390         # but is careful enough not to reorder.
9391         # Supported since Solaris 2.6 (maybe 2.5.1?)
9392         if test "$GCC" = yes; then
9393           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9394         else
9395           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9396         fi
9397         ;;
9398       esac
9399       link_all_deplibs=yes
9400       ;;
9401
9402     sunos4*)
9403       if test "x$host_vendor" = xsequent; then
9404         # Use $CC to link under sequent, because it throws in some extra .o
9405         # files that make .init and .fini sections work.
9406         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9407       else
9408         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9409       fi
9410       hardcode_libdir_flag_spec='-L$libdir'
9411       hardcode_direct=yes
9412       hardcode_minus_L=yes
9413       hardcode_shlibpath_var=no
9414       ;;
9415
9416     sysv4)
9417       case $host_vendor in
9418         sni)
9419           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420           hardcode_direct=yes # is this really true???
9421         ;;
9422         siemens)
9423           ## LD is ld it makes a PLAMLIB
9424           ## CC just makes a GrossModule.
9425           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9426           reload_cmds='$CC -r -o $output$reload_objs'
9427           hardcode_direct=no
9428         ;;
9429         motorola)
9430           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9431           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9432         ;;
9433       esac
9434       runpath_var='LD_RUN_PATH'
9435       hardcode_shlibpath_var=no
9436       ;;
9437
9438     sysv4.3*)
9439       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440       hardcode_shlibpath_var=no
9441       export_dynamic_flag_spec='-Bexport'
9442       ;;
9443
9444     sysv4*MP*)
9445       if test -d /usr/nec; then
9446         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447         hardcode_shlibpath_var=no
9448         runpath_var=LD_RUN_PATH
9449         hardcode_runpath_var=yes
9450         ld_shlibs=yes
9451       fi
9452       ;;
9453
9454     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9455       no_undefined_flag='${wl}-z,text'
9456       archive_cmds_need_lc=no
9457       hardcode_shlibpath_var=no
9458       runpath_var='LD_RUN_PATH'
9459
9460       if test "$GCC" = yes; then
9461         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463       else
9464         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466       fi
9467       ;;
9468
9469     sysv5* | sco3.2v5* | sco5v6*)
9470       # Note: We can NOT use -z defs as we might desire, because we do not
9471       # link with -lc, and that would cause any symbols used from libc to
9472       # always be unresolved, which means just about no library would
9473       # ever link correctly.  If we're not using GNU ld we use -z text
9474       # though, which does catch some bad symbols but isn't as heavy-handed
9475       # as -z defs.
9476       no_undefined_flag='${wl}-z,text'
9477       allow_undefined_flag='${wl}-z,nodefs'
9478       archive_cmds_need_lc=no
9479       hardcode_shlibpath_var=no
9480       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9481       hardcode_libdir_separator=':'
9482       link_all_deplibs=yes
9483       export_dynamic_flag_spec='${wl}-Bexport'
9484       runpath_var='LD_RUN_PATH'
9485
9486       if test "$GCC" = yes; then
9487         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489       else
9490         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492       fi
9493       ;;
9494
9495     uts4*)
9496       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497       hardcode_libdir_flag_spec='-L$libdir'
9498       hardcode_shlibpath_var=no
9499       ;;
9500
9501     *)
9502       ld_shlibs=no
9503       ;;
9504     esac
9505
9506     if test x$host_vendor = xsni; then
9507       case $host in
9508       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9509         export_dynamic_flag_spec='${wl}-Blargedynsym'
9510         ;;
9511       esac
9512     fi
9513   fi
9514
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9516 $as_echo "$ld_shlibs" >&6; }
9517 test "$ld_shlibs" = no && can_build_shared=no
9518
9519 with_gnu_ld=$with_gnu_ld
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535 #
9536 # Do we need to explicitly link libc?
9537 #
9538 case "x$archive_cmds_need_lc" in
9539 x|xyes)
9540   # Assume -lc should be added
9541   archive_cmds_need_lc=yes
9542
9543   if test "$enable_shared" = yes && test "$GCC" = yes; then
9544     case $archive_cmds in
9545     *'~'*)
9546       # FIXME: we may have to deal with multi-command sequences.
9547       ;;
9548     '$CC '*)
9549       # Test whether the compiler implicitly links with -lc since on some
9550       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9551       # to ld, don't add -lc before -lgcc.
9552       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9553 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9554 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9555   $as_echo_n "(cached) " >&6
9556 else
9557   $RM conftest*
9558         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9559
9560         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9561   (eval $ac_compile) 2>&5
9562   ac_status=$?
9563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9564   test $ac_status = 0; } 2>conftest.err; then
9565           soname=conftest
9566           lib=conftest
9567           libobjs=conftest.$ac_objext
9568           deplibs=
9569           wl=$lt_prog_compiler_wl
9570           pic_flag=$lt_prog_compiler_pic
9571           compiler_flags=-v
9572           linker_flags=-v
9573           verstring=
9574           output_objdir=.
9575           libname=conftest
9576           lt_save_allow_undefined_flag=$allow_undefined_flag
9577           allow_undefined_flag=
9578           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9579   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9580   ac_status=$?
9581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9582   test $ac_status = 0; }
9583           then
9584             lt_cv_archive_cmds_need_lc=no
9585           else
9586             lt_cv_archive_cmds_need_lc=yes
9587           fi
9588           allow_undefined_flag=$lt_save_allow_undefined_flag
9589         else
9590           cat conftest.err 1>&5
9591         fi
9592         $RM conftest*
9593
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9596 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9597       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9598       ;;
9599     esac
9600   fi
9601   ;;
9602 esac
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9761 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9762
9763 if test "$GCC" = yes; then
9764   case $host_os in
9765     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9766     *) lt_awk_arg="/^libraries:/" ;;
9767   esac
9768   case $host_os in
9769     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9770     *) lt_sed_strip_eq="s,=/,/,g" ;;
9771   esac
9772   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9773   case $lt_search_path_spec in
9774   *\;*)
9775     # if the path contains ";" then we assume it to be the separator
9776     # otherwise default to the standard path separator (i.e. ":") - it is
9777     # assumed that no part of a normal pathname contains ";" but that should
9778     # okay in the real world where ";" in dirpaths is itself problematic.
9779     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9780     ;;
9781   *)
9782     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9783     ;;
9784   esac
9785   # Ok, now we have the path, separated by spaces, we can step through it
9786   # and add multilib dir if necessary.
9787   lt_tmp_lt_search_path_spec=
9788   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9789   for lt_sys_path in $lt_search_path_spec; do
9790     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9791       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9792     else
9793       test -d "$lt_sys_path" && \
9794         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9795     fi
9796   done
9797   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9798 BEGIN {RS=" "; FS="/|\n";} {
9799   lt_foo="";
9800   lt_count=0;
9801   for (lt_i = NF; lt_i > 0; lt_i--) {
9802     if ($lt_i != "" && $lt_i != ".") {
9803       if ($lt_i == "..") {
9804         lt_count++;
9805       } else {
9806         if (lt_count == 0) {
9807           lt_foo="/" $lt_i lt_foo;
9808         } else {
9809           lt_count--;
9810         }
9811       }
9812     }
9813   }
9814   if (lt_foo != "") { lt_freq[lt_foo]++; }
9815   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9816 }'`
9817   # AWK program above erroneously prepends '/' to C:/dos/paths
9818   # for these hosts.
9819   case $host_os in
9820     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9821       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9822   esac
9823   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9824 else
9825   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9826 fi
9827 library_names_spec=
9828 libname_spec='lib$name'
9829 soname_spec=
9830 shrext_cmds=".so"
9831 postinstall_cmds=
9832 postuninstall_cmds=
9833 finish_cmds=
9834 finish_eval=
9835 shlibpath_var=
9836 shlibpath_overrides_runpath=unknown
9837 version_type=none
9838 dynamic_linker="$host_os ld.so"
9839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9840 need_lib_prefix=unknown
9841 hardcode_into_libs=no
9842
9843 # when you set need_version to no, make sure it does not cause -set_version
9844 # flags to be left without arguments
9845 need_version=unknown
9846
9847 case $host_os in
9848 aix3*)
9849   version_type=linux
9850   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9851   shlibpath_var=LIBPATH
9852
9853   # AIX 3 has no versioning support, so we append a major version to the name.
9854   soname_spec='${libname}${release}${shared_ext}$major'
9855   ;;
9856
9857 aix[4-9]*)
9858   version_type=linux
9859   need_lib_prefix=no
9860   need_version=no
9861   hardcode_into_libs=yes
9862   if test "$host_cpu" = ia64; then
9863     # AIX 5 supports IA64
9864     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9865     shlibpath_var=LD_LIBRARY_PATH
9866   else
9867     # With GCC up to 2.95.x, collect2 would create an import file
9868     # for dependence libraries.  The import file would start with
9869     # the line `#! .'.  This would cause the generated library to
9870     # depend on `.', always an invalid library.  This was fixed in
9871     # development snapshots of GCC prior to 3.0.
9872     case $host_os in
9873       aix4 | aix4.[01] | aix4.[01].*)
9874       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9875            echo ' yes '
9876            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9877         :
9878       else
9879         can_build_shared=no
9880       fi
9881       ;;
9882     esac
9883     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9884     # soname into executable. Probably we can add versioning support to
9885     # collect2, so additional links can be useful in future.
9886     if test "$aix_use_runtimelinking" = yes; then
9887       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9888       # instead of lib<name>.a to let people know that these are not
9889       # typical AIX shared libraries.
9890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891     else
9892       # We preserve .a as extension for shared libraries through AIX4.2
9893       # and later when we are not doing run time linking.
9894       library_names_spec='${libname}${release}.a $libname.a'
9895       soname_spec='${libname}${release}${shared_ext}$major'
9896     fi
9897     shlibpath_var=LIBPATH
9898   fi
9899   ;;
9900
9901 amigaos*)
9902   case $host_cpu in
9903   powerpc)
9904     # Since July 2007 AmigaOS4 officially supports .so libraries.
9905     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907     ;;
9908   m68k)
9909     library_names_spec='$libname.ixlibrary $libname.a'
9910     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911     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'
9912     ;;
9913   esac
9914   ;;
9915
9916 beos*)
9917   library_names_spec='${libname}${shared_ext}'
9918   dynamic_linker="$host_os ld.so"
9919   shlibpath_var=LIBRARY_PATH
9920   ;;
9921
9922 bsdi[45]*)
9923   version_type=linux
9924   need_version=no
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926   soname_spec='${libname}${release}${shared_ext}$major'
9927   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9930   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9931   # the default ld.so.conf also contains /usr/contrib/lib and
9932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9933   # libtool to hard-code these into programs
9934   ;;
9935
9936 cygwin* | mingw* | pw32* | cegcc*)
9937   version_type=windows
9938   shrext_cmds=".dll"
9939   need_version=no
9940   need_lib_prefix=no
9941
9942   case $GCC,$host_os in
9943   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9944     library_names_spec='$libname.dll.a'
9945     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9946     postinstall_cmds='base_file=`basename \${file}`~
9947       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9948       dldir=$destdir/`dirname \$dlpath`~
9949       test -d \$dldir || mkdir -p \$dldir~
9950       $install_prog $dir/$dlname \$dldir/$dlname~
9951       chmod a+x \$dldir/$dlname~
9952       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9953         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9954       fi'
9955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9956       dlpath=$dir/\$dldll~
9957        $RM \$dlpath'
9958     shlibpath_overrides_runpath=yes
9959
9960     case $host_os in
9961     cygwin*)
9962       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9963       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964
9965       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9966       ;;
9967     mingw* | cegcc*)
9968       # MinGW DLLs use traditional 'lib' prefix
9969       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970       ;;
9971     pw32*)
9972       # pw32 DLLs use 'pw' prefix rather than 'lib'
9973       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974       ;;
9975     esac
9976     ;;
9977
9978   *)
9979     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9980     ;;
9981   esac
9982   dynamic_linker='Win32 ld.exe'
9983   # FIXME: first we should search . and the directory the executable is in
9984   shlibpath_var=PATH
9985   ;;
9986
9987 darwin* | rhapsody*)
9988   dynamic_linker="$host_os dyld"
9989   version_type=darwin
9990   need_lib_prefix=no
9991   need_version=no
9992   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9993   soname_spec='${libname}${release}${major}$shared_ext'
9994   shlibpath_overrides_runpath=yes
9995   shlibpath_var=DYLD_LIBRARY_PATH
9996   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9997
9998   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10000   ;;
10001
10002 dgux*)
10003   version_type=linux
10004   need_lib_prefix=no
10005   need_version=no
10006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10007   soname_spec='${libname}${release}${shared_ext}$major'
10008   shlibpath_var=LD_LIBRARY_PATH
10009   ;;
10010
10011 freebsd1*)
10012   dynamic_linker=no
10013   ;;
10014
10015 freebsd* | dragonfly*)
10016   # DragonFly does not have aout.  When/if they implement a new
10017   # versioning mechanism, adjust this.
10018   if test -x /usr/bin/objformat; then
10019     objformat=`/usr/bin/objformat`
10020   else
10021     case $host_os in
10022     freebsd[123]*) objformat=aout ;;
10023     *) objformat=elf ;;
10024     esac
10025   fi
10026   version_type=freebsd-$objformat
10027   case $version_type in
10028     freebsd-elf*)
10029       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10030       need_version=no
10031       need_lib_prefix=no
10032       ;;
10033     freebsd-*)
10034       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10035       need_version=yes
10036       ;;
10037   esac
10038   shlibpath_var=LD_LIBRARY_PATH
10039   case $host_os in
10040   freebsd2*)
10041     shlibpath_overrides_runpath=yes
10042     ;;
10043   freebsd3.[01]* | freebsdelf3.[01]*)
10044     shlibpath_overrides_runpath=yes
10045     hardcode_into_libs=yes
10046     ;;
10047   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10048   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10049     shlibpath_overrides_runpath=no
10050     hardcode_into_libs=yes
10051     ;;
10052   *) # from 4.6 on, and DragonFly
10053     shlibpath_overrides_runpath=yes
10054     hardcode_into_libs=yes
10055     ;;
10056   esac
10057   ;;
10058
10059 gnu*)
10060   version_type=linux
10061   need_lib_prefix=no
10062   need_version=no
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10064   soname_spec='${libname}${release}${shared_ext}$major'
10065   shlibpath_var=LD_LIBRARY_PATH
10066   hardcode_into_libs=yes
10067   ;;
10068
10069 haiku*)
10070   version_type=linux
10071   need_lib_prefix=no
10072   need_version=no
10073   dynamic_linker="$host_os runtime_loader"
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   shlibpath_var=LIBRARY_PATH
10077   shlibpath_overrides_runpath=yes
10078   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10079   hardcode_into_libs=yes
10080   ;;
10081
10082 hpux9* | hpux10* | hpux11*)
10083   # Give a soname corresponding to the major version so that dld.sl refuses to
10084   # link against other versions.
10085   version_type=sunos
10086   need_lib_prefix=no
10087   need_version=no
10088   case $host_cpu in
10089   ia64*)
10090     shrext_cmds='.so'
10091     hardcode_into_libs=yes
10092     dynamic_linker="$host_os dld.so"
10093     shlibpath_var=LD_LIBRARY_PATH
10094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096     soname_spec='${libname}${release}${shared_ext}$major'
10097     if test "X$HPUX_IA64_MODE" = X32; then
10098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10099     else
10100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10101     fi
10102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10103     ;;
10104   hppa*64*)
10105     shrext_cmds='.sl'
10106     hardcode_into_libs=yes
10107     dynamic_linker="$host_os dld.sl"
10108     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10109     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111     soname_spec='${libname}${release}${shared_ext}$major'
10112     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10113     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10114     ;;
10115   *)
10116     shrext_cmds='.sl'
10117     dynamic_linker="$host_os dld.sl"
10118     shlibpath_var=SHLIB_PATH
10119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     soname_spec='${libname}${release}${shared_ext}$major'
10122     ;;
10123   esac
10124   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10125   postinstall_cmds='chmod 555 $lib'
10126   # or fails outright, so override atomically:
10127   install_override_mode=555
10128   ;;
10129
10130 interix[3-9]*)
10131   version_type=linux
10132   need_lib_prefix=no
10133   need_version=no
10134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135   soname_spec='${libname}${release}${shared_ext}$major'
10136   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10137   shlibpath_var=LD_LIBRARY_PATH
10138   shlibpath_overrides_runpath=no
10139   hardcode_into_libs=yes
10140   ;;
10141
10142 irix5* | irix6* | nonstopux*)
10143   case $host_os in
10144     nonstopux*) version_type=nonstopux ;;
10145     *)
10146         if test "$lt_cv_prog_gnu_ld" = yes; then
10147                 version_type=linux
10148         else
10149                 version_type=irix
10150         fi ;;
10151   esac
10152   need_lib_prefix=no
10153   need_version=no
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10156   case $host_os in
10157   irix5* | nonstopux*)
10158     libsuff= shlibsuff=
10159     ;;
10160   *)
10161     case $LD in # libtool.m4 will add one of these switches to LD
10162     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10163       libsuff= shlibsuff= libmagic=32-bit;;
10164     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10165       libsuff=32 shlibsuff=N32 libmagic=N32;;
10166     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10167       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10168     *) libsuff= shlibsuff= libmagic=never-match;;
10169     esac
10170     ;;
10171   esac
10172   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10173   shlibpath_overrides_runpath=no
10174   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10175   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10176   hardcode_into_libs=yes
10177   ;;
10178
10179 # No shared lib support for Linux oldld, aout, or coff.
10180 linux*oldld* | linux*aout* | linux*coff*)
10181   dynamic_linker=no
10182   ;;
10183
10184 # This must be Linux ELF.
10185 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10186   version_type=linux
10187   need_lib_prefix=no
10188   need_version=no
10189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190   soname_spec='${libname}${release}${shared_ext}$major'
10191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10192   shlibpath_var=LD_LIBRARY_PATH
10193   shlibpath_overrides_runpath=no
10194
10195   # Some binutils ld are patched to set DT_RUNPATH
10196   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10197   $as_echo_n "(cached) " >&6
10198 else
10199   lt_cv_shlibpath_overrides_runpath=no
10200     save_LDFLAGS=$LDFLAGS
10201     save_libdir=$libdir
10202     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10203          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h.  */
10206
10207 int
10208 main ()
10209 {
10210
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10217   lt_cv_shlibpath_overrides_runpath=yes
10218 fi
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext \
10221     conftest$ac_exeext conftest.$ac_ext
10222     LDFLAGS=$save_LDFLAGS
10223     libdir=$save_libdir
10224
10225 fi
10226
10227   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10228
10229   # This implies no fast_install, which is unacceptable.
10230   # Some rework will be needed to allow for fast_install
10231   # before this can be enabled.
10232   hardcode_into_libs=yes
10233
10234   # Append ld.so.conf contents to the search path
10235   if test -f /etc/ld.so.conf; then
10236     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' ' '`
10237     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10238   fi
10239
10240   # We used to test for /lib/ld.so.1 and disable shared libraries on
10241   # powerpc, because MkLinux only supported shared libraries with the
10242   # GNU dynamic linker.  Since this was broken with cross compilers,
10243   # most powerpc-linux boxes support dynamic linking these days and
10244   # people can always --disable-shared, the test was removed, and we
10245   # assume the GNU/Linux dynamic linker is in use.
10246   dynamic_linker='GNU/Linux ld.so'
10247   ;;
10248
10249 netbsd*)
10250   version_type=sunos
10251   need_lib_prefix=no
10252   need_version=no
10253   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10256     dynamic_linker='NetBSD (a.out) ld.so'
10257   else
10258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10259     soname_spec='${libname}${release}${shared_ext}$major'
10260     dynamic_linker='NetBSD ld.elf_so'
10261   fi
10262   shlibpath_var=LD_LIBRARY_PATH
10263   shlibpath_overrides_runpath=yes
10264   hardcode_into_libs=yes
10265   ;;
10266
10267 newsos6)
10268   version_type=linux
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270   shlibpath_var=LD_LIBRARY_PATH
10271   shlibpath_overrides_runpath=yes
10272   ;;
10273
10274 *nto* | *qnx*)
10275   version_type=qnx
10276   need_lib_prefix=no
10277   need_version=no
10278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279   soname_spec='${libname}${release}${shared_ext}$major'
10280   shlibpath_var=LD_LIBRARY_PATH
10281   shlibpath_overrides_runpath=no
10282   hardcode_into_libs=yes
10283   dynamic_linker='ldqnx.so'
10284   ;;
10285
10286 openbsd*)
10287   version_type=sunos
10288   sys_lib_dlsearch_path_spec="/usr/lib"
10289   need_lib_prefix=no
10290   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10291   case $host_os in
10292     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10293     *)                          need_version=no  ;;
10294   esac
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10299     case $host_os in
10300       openbsd2.[89] | openbsd2.[89].*)
10301         shlibpath_overrides_runpath=no
10302         ;;
10303       *)
10304         shlibpath_overrides_runpath=yes
10305         ;;
10306       esac
10307   else
10308     shlibpath_overrides_runpath=yes
10309   fi
10310   ;;
10311
10312 os2*)
10313   libname_spec='$name'
10314   shrext_cmds=".dll"
10315   need_lib_prefix=no
10316   library_names_spec='$libname${shared_ext} $libname.a'
10317   dynamic_linker='OS/2 ld.exe'
10318   shlibpath_var=LIBPATH
10319   ;;
10320
10321 osf3* | osf4* | osf5*)
10322   version_type=osf
10323   need_lib_prefix=no
10324   need_version=no
10325   soname_spec='${libname}${release}${shared_ext}$major'
10326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10329   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10330   ;;
10331
10332 rdos*)
10333   dynamic_linker=no
10334   ;;
10335
10336 solaris*)
10337   version_type=linux
10338   need_lib_prefix=no
10339   need_version=no
10340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341   soname_spec='${libname}${release}${shared_ext}$major'
10342   shlibpath_var=LD_LIBRARY_PATH
10343   shlibpath_overrides_runpath=yes
10344   hardcode_into_libs=yes
10345   # ldd complains unless libraries are executable
10346   postinstall_cmds='chmod +x $lib'
10347   ;;
10348
10349 sunos4*)
10350   version_type=sunos
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10352   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10353   shlibpath_var=LD_LIBRARY_PATH
10354   shlibpath_overrides_runpath=yes
10355   if test "$with_gnu_ld" = yes; then
10356     need_lib_prefix=no
10357   fi
10358   need_version=yes
10359   ;;
10360
10361 sysv4 | sysv4.3*)
10362   version_type=linux
10363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364   soname_spec='${libname}${release}${shared_ext}$major'
10365   shlibpath_var=LD_LIBRARY_PATH
10366   case $host_vendor in
10367     sni)
10368       shlibpath_overrides_runpath=no
10369       need_lib_prefix=no
10370       runpath_var=LD_RUN_PATH
10371       ;;
10372     siemens)
10373       need_lib_prefix=no
10374       ;;
10375     motorola)
10376       need_lib_prefix=no
10377       need_version=no
10378       shlibpath_overrides_runpath=no
10379       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10380       ;;
10381   esac
10382   ;;
10383
10384 sysv4*MP*)
10385   if test -d /usr/nec ;then
10386     version_type=linux
10387     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10388     soname_spec='$libname${shared_ext}.$major'
10389     shlibpath_var=LD_LIBRARY_PATH
10390   fi
10391   ;;
10392
10393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10394   version_type=freebsd-elf
10395   need_lib_prefix=no
10396   need_version=no
10397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10398   soname_spec='${libname}${release}${shared_ext}$major'
10399   shlibpath_var=LD_LIBRARY_PATH
10400   shlibpath_overrides_runpath=yes
10401   hardcode_into_libs=yes
10402   if test "$with_gnu_ld" = yes; then
10403     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10404   else
10405     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10406     case $host_os in
10407       sco3.2v5*)
10408         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10409         ;;
10410     esac
10411   fi
10412   sys_lib_dlsearch_path_spec='/usr/lib'
10413   ;;
10414
10415 tpf*)
10416   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10417   version_type=linux
10418   need_lib_prefix=no
10419   need_version=no
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421   shlibpath_var=LD_LIBRARY_PATH
10422   shlibpath_overrides_runpath=no
10423   hardcode_into_libs=yes
10424   ;;
10425
10426 uts4*)
10427   version_type=linux
10428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429   soname_spec='${libname}${release}${shared_ext}$major'
10430   shlibpath_var=LD_LIBRARY_PATH
10431   ;;
10432
10433 *)
10434   dynamic_linker=no
10435   ;;
10436 esac
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10438 $as_echo "$dynamic_linker" >&6; }
10439 test "$dynamic_linker" = no && can_build_shared=no
10440
10441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10442 if test "$GCC" = yes; then
10443   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10444 fi
10445
10446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10447   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10448 fi
10449 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10450   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10451 fi
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10545 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10546 hardcode_action=
10547 if test -n "$hardcode_libdir_flag_spec" ||
10548    test -n "$runpath_var" ||
10549    test "X$hardcode_automatic" = "Xyes" ; then
10550
10551   # We can hardcode non-existent directories.
10552   if test "$hardcode_direct" != no &&
10553      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10554      # have to relink, otherwise we might link with an installed library
10555      # when we should be linking with a yet-to-be-installed one
10556      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10557      test "$hardcode_minus_L" != no; then
10558     # Linking always hardcodes the temporary library directory.
10559     hardcode_action=relink
10560   else
10561     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10562     hardcode_action=immediate
10563   fi
10564 else
10565   # We cannot hardcode anything, or else we can only hardcode existing
10566   # directories.
10567   hardcode_action=unsupported
10568 fi
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10570 $as_echo "$hardcode_action" >&6; }
10571
10572 if test "$hardcode_action" = relink ||
10573    test "$inherit_rpath" = yes; then
10574   # Fast installation is not supported
10575   enable_fast_install=no
10576 elif test "$shlibpath_overrides_runpath" = yes ||
10577      test "$enable_shared" = no; then
10578   # Fast installation is not necessary
10579   enable_fast_install=needless
10580 fi
10581
10582
10583
10584
10585
10586
10587   if test "x$enable_dlopen" != xyes; then
10588   enable_dlopen=unknown
10589   enable_dlopen_self=unknown
10590   enable_dlopen_self_static=unknown
10591 else
10592   lt_cv_dlopen=no
10593   lt_cv_dlopen_libs=
10594
10595   case $host_os in
10596   beos*)
10597     lt_cv_dlopen="load_add_on"
10598     lt_cv_dlopen_libs=
10599     lt_cv_dlopen_self=yes
10600     ;;
10601
10602   mingw* | pw32* | cegcc*)
10603     lt_cv_dlopen="LoadLibrary"
10604     lt_cv_dlopen_libs=
10605     ;;
10606
10607   cygwin*)
10608     lt_cv_dlopen="dlopen"
10609     lt_cv_dlopen_libs=
10610     ;;
10611
10612   darwin*)
10613   # if libdl is installed we need to link against it
10614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10617   $as_echo_n "(cached) " >&6
10618 else
10619   ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-ldl  $LIBS"
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h.  */
10623
10624 /* Override any GCC internal prototype to avoid an error.
10625    Use char because int might match the return type of a GCC
10626    builtin and then its argument prototype would still apply.  */
10627 #ifdef __cplusplus
10628 extern "C"
10629 #endif
10630 char dlopen ();
10631 int
10632 main ()
10633 {
10634 return dlopen ();
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640   ac_cv_lib_dl_dlopen=yes
10641 else
10642   ac_cv_lib_dl_dlopen=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext \
10645     conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10650 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10651   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10652 else
10653
10654     lt_cv_dlopen="dyld"
10655     lt_cv_dlopen_libs=
10656     lt_cv_dlopen_self=yes
10657
10658 fi
10659
10660     ;;
10661
10662   *)
10663     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10664 if test "x$ac_cv_func_shl_load" = x""yes; then :
10665   lt_cv_dlopen="shl_load"
10666 else
10667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10668 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10669 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10670   $as_echo_n "(cached) " >&6
10671 else
10672   ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-ldld  $LIBS"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h.  */
10676
10677 /* Override any GCC internal prototype to avoid an error.
10678    Use char because int might match the return type of a GCC
10679    builtin and then its argument prototype would still apply.  */
10680 #ifdef __cplusplus
10681 extern "C"
10682 #endif
10683 char shl_load ();
10684 int
10685 main ()
10686 {
10687 return shl_load ();
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693   ac_cv_lib_dld_shl_load=yes
10694 else
10695   ac_cv_lib_dld_shl_load=no
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext \
10698     conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10702 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10703 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10704   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10705 else
10706   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10707 if test "x$ac_cv_func_dlopen" = x""yes; then :
10708   lt_cv_dlopen="dlopen"
10709 else
10710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10713   $as_echo_n "(cached) " >&6
10714 else
10715   ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-ldl  $LIBS"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h.  */
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721    Use char because int might match the return type of a GCC
10722    builtin and then its argument prototype would still apply.  */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char dlopen ();
10727 int
10728 main ()
10729 {
10730 return dlopen ();
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736   ac_cv_lib_dl_dlopen=yes
10737 else
10738   ac_cv_lib_dl_dlopen=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741     conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10746 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10747   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10748 else
10749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10750 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lsvld  $LIBS"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760    Use char because int might match the return type of a GCC
10761    builtin and then its argument prototype would still apply.  */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char dlopen ();
10766 int
10767 main ()
10768 {
10769 return dlopen ();
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775   ac_cv_lib_svld_dlopen=yes
10776 else
10777   ac_cv_lib_svld_dlopen=no
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780     conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_lib_save_LIBS
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10785 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10786   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10787 else
10788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10791   $as_echo_n "(cached) " >&6
10792 else
10793   ac_check_lib_save_LIBS=$LIBS
10794 LIBS="-ldld  $LIBS"
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h.  */
10797
10798 /* Override any GCC internal prototype to avoid an error.
10799    Use char because int might match the return type of a GCC
10800    builtin and then its argument prototype would still apply.  */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 char dld_link ();
10805 int
10806 main ()
10807 {
10808 return dld_link ();
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814   ac_cv_lib_dld_dld_link=yes
10815 else
10816   ac_cv_lib_dld_dld_link=no
10817 fi
10818 rm -f core conftest.err conftest.$ac_objext \
10819     conftest$ac_exeext conftest.$ac_ext
10820 LIBS=$ac_check_lib_save_LIBS
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10823 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10824 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10825   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10826 fi
10827
10828
10829 fi
10830
10831
10832 fi
10833
10834
10835 fi
10836
10837
10838 fi
10839
10840
10841 fi
10842
10843     ;;
10844   esac
10845
10846   if test "x$lt_cv_dlopen" != xno; then
10847     enable_dlopen=yes
10848   else
10849     enable_dlopen=no
10850   fi
10851
10852   case $lt_cv_dlopen in
10853   dlopen)
10854     save_CPPFLAGS="$CPPFLAGS"
10855     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10856
10857     save_LDFLAGS="$LDFLAGS"
10858     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10859
10860     save_LIBS="$LIBS"
10861     LIBS="$lt_cv_dlopen_libs $LIBS"
10862
10863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10864 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10865 if test "${lt_cv_dlopen_self+set}" = set; then :
10866   $as_echo_n "(cached) " >&6
10867 else
10868           if test "$cross_compiling" = yes; then :
10869   lt_cv_dlopen_self=cross
10870 else
10871   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10872   lt_status=$lt_dlunknown
10873   cat > conftest.$ac_ext <<_LT_EOF
10874 #line 10874 "configure"
10875 #include "confdefs.h"
10876
10877 #if HAVE_DLFCN_H
10878 #include <dlfcn.h>
10879 #endif
10880
10881 #include <stdio.h>
10882
10883 #ifdef RTLD_GLOBAL
10884 #  define LT_DLGLOBAL           RTLD_GLOBAL
10885 #else
10886 #  ifdef DL_GLOBAL
10887 #    define LT_DLGLOBAL         DL_GLOBAL
10888 #  else
10889 #    define LT_DLGLOBAL         0
10890 #  endif
10891 #endif
10892
10893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10894    find out it does not work in some platform. */
10895 #ifndef LT_DLLAZY_OR_NOW
10896 #  ifdef RTLD_LAZY
10897 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10898 #  else
10899 #    ifdef DL_LAZY
10900 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10901 #    else
10902 #      ifdef RTLD_NOW
10903 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10904 #      else
10905 #        ifdef DL_NOW
10906 #          define LT_DLLAZY_OR_NOW      DL_NOW
10907 #        else
10908 #          define LT_DLLAZY_OR_NOW      0
10909 #        endif
10910 #      endif
10911 #    endif
10912 #  endif
10913 #endif
10914
10915 /* When -fvisbility=hidden is used, assume the code has been annotated
10916    correspondingly for the symbols needed.  */
10917 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10918 void fnord () __attribute__((visibility("default")));
10919 #endif
10920
10921 void fnord () { int i=42; }
10922 int main ()
10923 {
10924   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10925   int status = $lt_dlunknown;
10926
10927   if (self)
10928     {
10929       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10930       else
10931         {
10932           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10933           else puts (dlerror ());
10934         }
10935       /* dlclose (self); */
10936     }
10937   else
10938     puts (dlerror ());
10939
10940   return status;
10941 }
10942 _LT_EOF
10943   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10944   (eval $ac_link) 2>&5
10945   ac_status=$?
10946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10947   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10948     (./conftest; exit; ) >&5 2>/dev/null
10949     lt_status=$?
10950     case x$lt_status in
10951       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10952       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10953       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10954     esac
10955   else :
10956     # compilation failed
10957     lt_cv_dlopen_self=no
10958   fi
10959 fi
10960 rm -fr conftest*
10961
10962
10963 fi
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10965 $as_echo "$lt_cv_dlopen_self" >&6; }
10966
10967     if test "x$lt_cv_dlopen_self" = xyes; then
10968       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10969       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10970 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10971 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10972   $as_echo_n "(cached) " >&6
10973 else
10974           if test "$cross_compiling" = yes; then :
10975   lt_cv_dlopen_self_static=cross
10976 else
10977   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10978   lt_status=$lt_dlunknown
10979   cat > conftest.$ac_ext <<_LT_EOF
10980 #line 10980 "configure"
10981 #include "confdefs.h"
10982
10983 #if HAVE_DLFCN_H
10984 #include <dlfcn.h>
10985 #endif
10986
10987 #include <stdio.h>
10988
10989 #ifdef RTLD_GLOBAL
10990 #  define LT_DLGLOBAL           RTLD_GLOBAL
10991 #else
10992 #  ifdef DL_GLOBAL
10993 #    define LT_DLGLOBAL         DL_GLOBAL
10994 #  else
10995 #    define LT_DLGLOBAL         0
10996 #  endif
10997 #endif
10998
10999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11000    find out it does not work in some platform. */
11001 #ifndef LT_DLLAZY_OR_NOW
11002 #  ifdef RTLD_LAZY
11003 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11004 #  else
11005 #    ifdef DL_LAZY
11006 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11007 #    else
11008 #      ifdef RTLD_NOW
11009 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11010 #      else
11011 #        ifdef DL_NOW
11012 #          define LT_DLLAZY_OR_NOW      DL_NOW
11013 #        else
11014 #          define LT_DLLAZY_OR_NOW      0
11015 #        endif
11016 #      endif
11017 #    endif
11018 #  endif
11019 #endif
11020
11021 /* When -fvisbility=hidden is used, assume the code has been annotated
11022    correspondingly for the symbols needed.  */
11023 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11024 void fnord () __attribute__((visibility("default")));
11025 #endif
11026
11027 void fnord () { int i=42; }
11028 int main ()
11029 {
11030   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11031   int status = $lt_dlunknown;
11032
11033   if (self)
11034     {
11035       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11036       else
11037         {
11038           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11039           else puts (dlerror ());
11040         }
11041       /* dlclose (self); */
11042     }
11043   else
11044     puts (dlerror ());
11045
11046   return status;
11047 }
11048 _LT_EOF
11049   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11050   (eval $ac_link) 2>&5
11051   ac_status=$?
11052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11053   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11054     (./conftest; exit; ) >&5 2>/dev/null
11055     lt_status=$?
11056     case x$lt_status in
11057       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11058       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11059       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11060     esac
11061   else :
11062     # compilation failed
11063     lt_cv_dlopen_self_static=no
11064   fi
11065 fi
11066 rm -fr conftest*
11067
11068
11069 fi
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11071 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11072     fi
11073
11074     CPPFLAGS="$save_CPPFLAGS"
11075     LDFLAGS="$save_LDFLAGS"
11076     LIBS="$save_LIBS"
11077     ;;
11078   esac
11079
11080   case $lt_cv_dlopen_self in
11081   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11082   *) enable_dlopen_self=unknown ;;
11083   esac
11084
11085   case $lt_cv_dlopen_self_static in
11086   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11087   *) enable_dlopen_self_static=unknown ;;
11088   esac
11089 fi
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107 striplib=
11108 old_striplib=
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11110 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11111 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11112   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11113   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11115 $as_echo "yes" >&6; }
11116 else
11117 # FIXME - insert some real tests, host_os isn't really good enough
11118   case $host_os in
11119   darwin*)
11120     if test -n "$STRIP" ; then
11121       striplib="$STRIP -x"
11122       old_striplib="$STRIP -S"
11123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11124 $as_echo "yes" >&6; }
11125     else
11126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128     fi
11129     ;;
11130   *)
11131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11133     ;;
11134   esac
11135 fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148   # Report which library types will actually be built
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11150 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11152 $as_echo "$can_build_shared" >&6; }
11153
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11155 $as_echo_n "checking whether to build shared libraries... " >&6; }
11156   test "$can_build_shared" = "no" && enable_shared=no
11157
11158   # On AIX, shared libraries and static libraries use the same namespace, and
11159   # are all built from PIC.
11160   case $host_os in
11161   aix3*)
11162     test "$enable_shared" = yes && enable_static=no
11163     if test -n "$RANLIB"; then
11164       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11165       postinstall_cmds='$RANLIB $lib'
11166     fi
11167     ;;
11168
11169   aix[4-9]*)
11170     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11171       test "$enable_shared" = yes && enable_static=no
11172     fi
11173     ;;
11174   esac
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11176 $as_echo "$enable_shared" >&6; }
11177
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11179 $as_echo_n "checking whether to build static libraries... " >&6; }
11180   # Make sure either enable_shared or enable_static is yes.
11181   test "$enable_shared" = yes || enable_static=yes
11182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11183 $as_echo "$enable_static" >&6; }
11184
11185
11186
11187
11188 fi
11189 ac_ext=c
11190 ac_cpp='$CPP $CPPFLAGS'
11191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11194
11195 CC="$lt_save_CC"
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209 # Source file extension for Go test sources.
11210 ac_ext=go
11211
11212 # Object file extension for compiled Go test sources.
11213 objext=o
11214 objext_GO=$objext
11215
11216 # Code to be used in simple compile tests
11217 lt_simple_compile_test_code="package main; func main() { }"
11218
11219 # Code to be used in simple link tests
11220 lt_simple_link_test_code='package main; func main() { }'
11221
11222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11223
11224
11225
11226
11227
11228
11229 # If no C compiler was specified, use CC.
11230 LTCC=${LTCC-"$CC"}
11231
11232 # If no C compiler flags were specified, use CFLAGS.
11233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11234
11235 # Allow CC to be a program name with arguments.
11236 compiler=$CC
11237
11238
11239 # save warnings/boilerplate of simple test code
11240 ac_outfile=conftest.$ac_objext
11241 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11243 _lt_compiler_boilerplate=`cat conftest.err`
11244 $RM conftest*
11245
11246 ac_outfile=conftest.$ac_objext
11247 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11249 _lt_linker_boilerplate=`cat conftest.err`
11250 $RM -r conftest*
11251
11252
11253 # Allow CC to be a program name with arguments.
11254 lt_save_CC="$CC"
11255 lt_save_GCC="$GCC"
11256 GCC=yes
11257 CC=${GOC-"gccgo"}
11258 compiler=$CC
11259 compiler_GO=$CC
11260 LD_GO="$LD"
11261 for cc_temp in $compiler""; do
11262   case $cc_temp in
11263     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11264     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11265     \-*) ;;
11266     *) break;;
11267   esac
11268 done
11269 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11270
11271
11272 # Go did not exist at the time GCC didn't implicitly link libc in.
11273 archive_cmds_need_lc_GO=no
11274
11275 old_archive_cmds_GO=$old_archive_cmds
11276
11277 ## CAVEAT EMPTOR:
11278 ## There is no encapsulation within the following macros, do not change
11279 ## the running order or otherwise move them around unless you know exactly
11280 ## what you are doing...
11281 if test -n "$compiler"; then
11282
11283 lt_prog_compiler_no_builtin_flag_GO=
11284
11285 if test "$GCC" = yes; then
11286   case $cc_basename in
11287   nvcc*)
11288     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11289   *)
11290     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11291   esac
11292
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11294 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11295 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11296   $as_echo_n "(cached) " >&6
11297 else
11298   lt_cv_prog_compiler_rtti_exceptions=no
11299    ac_outfile=conftest.$ac_objext
11300    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11301    lt_compiler_flag="-fno-rtti -fno-exceptions"
11302    # Insert the option either (1) after the last *FLAGS variable, or
11303    # (2) before a word containing "conftest.", or (3) at the end.
11304    # Note that $ac_compile itself does not contain backslashes and begins
11305    # with a dollar sign (not a hyphen), so the echo should work correctly.
11306    # The option is referenced via a variable to avoid confusing sed.
11307    lt_compile=`echo "$ac_compile" | $SED \
11308    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11310    -e 's:$: $lt_compiler_flag:'`
11311    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11312    (eval "$lt_compile" 2>conftest.err)
11313    ac_status=$?
11314    cat conftest.err >&5
11315    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316    if (exit $ac_status) && test -s "$ac_outfile"; then
11317      # The compiler can only warn and ignore the option if not recognized
11318      # So say no if there are warnings other than the usual output.
11319      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11320      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11321      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11322        lt_cv_prog_compiler_rtti_exceptions=yes
11323      fi
11324    fi
11325    $RM conftest*
11326
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11329 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11330
11331 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11332     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11333 else
11334     :
11335 fi
11336
11337 fi
11338
11339
11340
11341   lt_prog_compiler_wl_GO=
11342 lt_prog_compiler_pic_GO=
11343 lt_prog_compiler_static_GO=
11344
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11346 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11347
11348   if test "$GCC" = yes; then
11349     lt_prog_compiler_wl_GO='-Wl,'
11350     lt_prog_compiler_static_GO='-static'
11351
11352     case $host_os in
11353       aix*)
11354       # All AIX code is PIC.
11355       if test "$host_cpu" = ia64; then
11356         # AIX 5 now supports IA64 processor
11357         lt_prog_compiler_static_GO='-Bstatic'
11358       fi
11359       ;;
11360
11361     amigaos*)
11362       case $host_cpu in
11363       powerpc)
11364             # see comment about AmigaOS4 .so support
11365             lt_prog_compiler_pic_GO='-fPIC'
11366         ;;
11367       m68k)
11368             # FIXME: we need at least 68020 code to build shared libraries, but
11369             # adding the `-m68020' flag to GCC prevents building anything better,
11370             # like `-m68040'.
11371             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11372         ;;
11373       esac
11374       ;;
11375
11376     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11377       # PIC is the default for these OSes.
11378       ;;
11379
11380     mingw* | cygwin* | pw32* | os2* | cegcc*)
11381       # This hack is so that the source file can tell whether it is being
11382       # built for inclusion in a dll (and should export symbols for example).
11383       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11384       # (--disable-auto-import) libraries
11385       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11386       ;;
11387
11388     darwin* | rhapsody*)
11389       # PIC is the default on this platform
11390       # Common symbols not allowed in MH_DYLIB files
11391       lt_prog_compiler_pic_GO='-fno-common'
11392       ;;
11393
11394     haiku*)
11395       # PIC is the default for Haiku.
11396       # The "-static" flag exists, but is broken.
11397       lt_prog_compiler_static_GO=
11398       ;;
11399
11400     hpux*)
11401       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11402       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11403       # sets the default TLS model and affects inlining.
11404       case $host_cpu in
11405       hppa*64*)
11406         # +Z the default
11407         ;;
11408       *)
11409         lt_prog_compiler_pic_GO='-fPIC'
11410         ;;
11411       esac
11412       ;;
11413
11414     interix[3-9]*)
11415       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11416       # Instead, we relocate shared libraries at runtime.
11417       ;;
11418
11419     msdosdjgpp*)
11420       # Just because we use GCC doesn't mean we suddenly get shared libraries
11421       # on systems that don't support them.
11422       lt_prog_compiler_can_build_shared_GO=no
11423       enable_shared=no
11424       ;;
11425
11426     *nto* | *qnx*)
11427       # QNX uses GNU C++, but need to define -shared option too, otherwise
11428       # it will coredump.
11429       lt_prog_compiler_pic_GO='-fPIC -shared'
11430       ;;
11431
11432     sysv4*MP*)
11433       if test -d /usr/nec; then
11434         lt_prog_compiler_pic_GO=-Kconform_pic
11435       fi
11436       ;;
11437
11438     *)
11439       lt_prog_compiler_pic_GO='-fPIC'
11440       ;;
11441     esac
11442
11443     case $cc_basename in
11444     nvcc*) # Cuda Compiler Driver 2.2
11445       lt_prog_compiler_wl_GO='-Xlinker '
11446       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11447       ;;
11448     esac
11449   else
11450     # PORTME Check for flag to pass linker flags through the system compiler.
11451     case $host_os in
11452     aix*)
11453       lt_prog_compiler_wl_GO='-Wl,'
11454       if test "$host_cpu" = ia64; then
11455         # AIX 5 now supports IA64 processor
11456         lt_prog_compiler_static_GO='-Bstatic'
11457       else
11458         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11459       fi
11460       ;;
11461
11462     mingw* | cygwin* | pw32* | os2* | cegcc*)
11463       # This hack is so that the source file can tell whether it is being
11464       # built for inclusion in a dll (and should export symbols for example).
11465       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11466       ;;
11467
11468     hpux9* | hpux10* | hpux11*)
11469       lt_prog_compiler_wl_GO='-Wl,'
11470       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11471       # not for PA HP-UX.
11472       case $host_cpu in
11473       hppa*64*|ia64*)
11474         # +Z the default
11475         ;;
11476       *)
11477         lt_prog_compiler_pic_GO='+Z'
11478         ;;
11479       esac
11480       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11481       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11482       ;;
11483
11484     irix5* | irix6* | nonstopux*)
11485       lt_prog_compiler_wl_GO='-Wl,'
11486       # PIC (with -KPIC) is the default.
11487       lt_prog_compiler_static_GO='-non_shared'
11488       ;;
11489
11490     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11491       case $cc_basename in
11492       # old Intel for x86_64 which still supported -KPIC.
11493       ecc*)
11494         lt_prog_compiler_wl_GO='-Wl,'
11495         lt_prog_compiler_pic_GO='-KPIC'
11496         lt_prog_compiler_static_GO='-static'
11497         ;;
11498       # icc used to be incompatible with GCC.
11499       # ICC 10 doesn't accept -KPIC any more.
11500       icc* | ifort*)
11501         lt_prog_compiler_wl_GO='-Wl,'
11502         lt_prog_compiler_pic_GO='-fPIC'
11503         lt_prog_compiler_static_GO='-static'
11504         ;;
11505       # Lahey Fortran 8.1.
11506       lf95*)
11507         lt_prog_compiler_wl_GO='-Wl,'
11508         lt_prog_compiler_pic_GO='--shared'
11509         lt_prog_compiler_static_GO='--static'
11510         ;;
11511       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11512         # Portland Group compilers (*not* the Pentium gcc compiler,
11513         # which looks to be a dead project)
11514         lt_prog_compiler_wl_GO='-Wl,'
11515         lt_prog_compiler_pic_GO='-fpic'
11516         lt_prog_compiler_static_GO='-Bstatic'
11517         ;;
11518       ccc*)
11519         lt_prog_compiler_wl_GO='-Wl,'
11520         # All Alpha code is PIC.
11521         lt_prog_compiler_static_GO='-non_shared'
11522         ;;
11523       xl* | bgxl* | bgf* | mpixl*)
11524         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11525         lt_prog_compiler_wl_GO='-Wl,'
11526         lt_prog_compiler_pic_GO='-qpic'
11527         lt_prog_compiler_static_GO='-qstaticlink'
11528         ;;
11529       *)
11530         case `$CC -V 2>&1 | sed 5q` in
11531         *Sun\ F* | *Sun*Fortran*)
11532           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11533           lt_prog_compiler_pic_GO='-KPIC'
11534           lt_prog_compiler_static_GO='-Bstatic'
11535           lt_prog_compiler_wl_GO=''
11536           ;;
11537         *Sun\ C*)
11538           # Sun C 5.9
11539           lt_prog_compiler_pic_GO='-KPIC'
11540           lt_prog_compiler_static_GO='-Bstatic'
11541           lt_prog_compiler_wl_GO='-Wl,'
11542           ;;
11543         esac
11544         ;;
11545       esac
11546       ;;
11547
11548     newsos6)
11549       lt_prog_compiler_pic_GO='-KPIC'
11550       lt_prog_compiler_static_GO='-Bstatic'
11551       ;;
11552
11553     *nto* | *qnx*)
11554       # QNX uses GNU C++, but need to define -shared option too, otherwise
11555       # it will coredump.
11556       lt_prog_compiler_pic_GO='-fPIC -shared'
11557       ;;
11558
11559     osf3* | osf4* | osf5*)
11560       lt_prog_compiler_wl_GO='-Wl,'
11561       # All OSF/1 code is PIC.
11562       lt_prog_compiler_static_GO='-non_shared'
11563       ;;
11564
11565     rdos*)
11566       lt_prog_compiler_static_GO='-non_shared'
11567       ;;
11568
11569     solaris*)
11570       lt_prog_compiler_pic_GO='-KPIC'
11571       lt_prog_compiler_static_GO='-Bstatic'
11572       case $cc_basename in
11573       f77* | f90* | f95*)
11574         lt_prog_compiler_wl_GO='-Qoption ld ';;
11575       *)
11576         lt_prog_compiler_wl_GO='-Wl,';;
11577       esac
11578       ;;
11579
11580     sunos4*)
11581       lt_prog_compiler_wl_GO='-Qoption ld '
11582       lt_prog_compiler_pic_GO='-PIC'
11583       lt_prog_compiler_static_GO='-Bstatic'
11584       ;;
11585
11586     sysv4 | sysv4.2uw2* | sysv4.3*)
11587       lt_prog_compiler_wl_GO='-Wl,'
11588       lt_prog_compiler_pic_GO='-KPIC'
11589       lt_prog_compiler_static_GO='-Bstatic'
11590       ;;
11591
11592     sysv4*MP*)
11593       if test -d /usr/nec ;then
11594         lt_prog_compiler_pic_GO='-Kconform_pic'
11595         lt_prog_compiler_static_GO='-Bstatic'
11596       fi
11597       ;;
11598
11599     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11600       lt_prog_compiler_wl_GO='-Wl,'
11601       lt_prog_compiler_pic_GO='-KPIC'
11602       lt_prog_compiler_static_GO='-Bstatic'
11603       ;;
11604
11605     unicos*)
11606       lt_prog_compiler_wl_GO='-Wl,'
11607       lt_prog_compiler_can_build_shared_GO=no
11608       ;;
11609
11610     uts4*)
11611       lt_prog_compiler_pic_GO='-pic'
11612       lt_prog_compiler_static_GO='-Bstatic'
11613       ;;
11614
11615     *)
11616       lt_prog_compiler_can_build_shared_GO=no
11617       ;;
11618     esac
11619   fi
11620
11621 case $host_os in
11622   # For platforms which do not support PIC, -DPIC is meaningless:
11623   *djgpp*)
11624     lt_prog_compiler_pic_GO=
11625     ;;
11626   *)
11627     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11628     ;;
11629 esac
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11631 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11632
11633
11634
11635 #
11636 # Check to make sure the PIC flag actually works.
11637 #
11638 if test -n "$lt_prog_compiler_pic_GO"; then
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11640 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11641 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11642   $as_echo_n "(cached) " >&6
11643 else
11644   lt_cv_prog_compiler_pic_works_GO=no
11645    ac_outfile=conftest.$ac_objext
11646    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11647    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11648    # Insert the option either (1) after the last *FLAGS variable, or
11649    # (2) before a word containing "conftest.", or (3) at the end.
11650    # Note that $ac_compile itself does not contain backslashes and begins
11651    # with a dollar sign (not a hyphen), so the echo should work correctly.
11652    # The option is referenced via a variable to avoid confusing sed.
11653    lt_compile=`echo "$ac_compile" | $SED \
11654    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11655    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11656    -e 's:$: $lt_compiler_flag:'`
11657    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11658    (eval "$lt_compile" 2>conftest.err)
11659    ac_status=$?
11660    cat conftest.err >&5
11661    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662    if (exit $ac_status) && test -s "$ac_outfile"; then
11663      # The compiler can only warn and ignore the option if not recognized
11664      # So say no if there are warnings other than the usual output.
11665      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11666      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11667      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11668        lt_cv_prog_compiler_pic_works_GO=yes
11669      fi
11670    fi
11671    $RM conftest*
11672
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11675 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11676
11677 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11678     case $lt_prog_compiler_pic_GO in
11679      "" | " "*) ;;
11680      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11681      esac
11682 else
11683     lt_prog_compiler_pic_GO=
11684      lt_prog_compiler_can_build_shared_GO=no
11685 fi
11686
11687 fi
11688
11689
11690
11691 #
11692 # Check to make sure the static flag actually works.
11693 #
11694 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11696 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11697 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700   lt_cv_prog_compiler_static_works_GO=no
11701    save_LDFLAGS="$LDFLAGS"
11702    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11703    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11704    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11705      # The linker can only warn and ignore the option if not recognized
11706      # So say no if there are warnings
11707      if test -s conftest.err; then
11708        # Append any errors to the config.log.
11709        cat conftest.err 1>&5
11710        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11711        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11712        if diff conftest.exp conftest.er2 >/dev/null; then
11713          lt_cv_prog_compiler_static_works_GO=yes
11714        fi
11715      else
11716        lt_cv_prog_compiler_static_works_GO=yes
11717      fi
11718    fi
11719    $RM -r conftest*
11720    LDFLAGS="$save_LDFLAGS"
11721
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11724 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11725
11726 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11727     :
11728 else
11729     lt_prog_compiler_static_GO=
11730 fi
11731
11732
11733
11734
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11736 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11737 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11738   $as_echo_n "(cached) " >&6
11739 else
11740   lt_cv_prog_compiler_c_o_GO=no
11741    $RM -r conftest 2>/dev/null
11742    mkdir conftest
11743    cd conftest
11744    mkdir out
11745    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11746
11747    lt_compiler_flag="-o out/conftest2.$ac_objext"
11748    # Insert the option either (1) after the last *FLAGS variable, or
11749    # (2) before a word containing "conftest.", or (3) at the end.
11750    # Note that $ac_compile itself does not contain backslashes and begins
11751    # with a dollar sign (not a hyphen), so the echo should work correctly.
11752    lt_compile=`echo "$ac_compile" | $SED \
11753    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11754    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11755    -e 's:$: $lt_compiler_flag:'`
11756    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11757    (eval "$lt_compile" 2>out/conftest.err)
11758    ac_status=$?
11759    cat out/conftest.err >&5
11760    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11762    then
11763      # The compiler can only warn and ignore the option if not recognized
11764      # So say no if there are warnings
11765      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11766      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11767      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11768        lt_cv_prog_compiler_c_o_GO=yes
11769      fi
11770    fi
11771    chmod u+w . 2>&5
11772    $RM conftest*
11773    # SGI C++ compiler will create directory out/ii_files/ for
11774    # template instantiation
11775    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11776    $RM out/* && rmdir out
11777    cd ..
11778    $RM -r conftest
11779    $RM conftest*
11780
11781 fi
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11783 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11784
11785
11786
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11788 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11789 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   lt_cv_prog_compiler_c_o_GO=no
11793    $RM -r conftest 2>/dev/null
11794    mkdir conftest
11795    cd conftest
11796    mkdir out
11797    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11798
11799    lt_compiler_flag="-o out/conftest2.$ac_objext"
11800    # Insert the option either (1) after the last *FLAGS variable, or
11801    # (2) before a word containing "conftest.", or (3) at the end.
11802    # Note that $ac_compile itself does not contain backslashes and begins
11803    # with a dollar sign (not a hyphen), so the echo should work correctly.
11804    lt_compile=`echo "$ac_compile" | $SED \
11805    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11807    -e 's:$: $lt_compiler_flag:'`
11808    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11809    (eval "$lt_compile" 2>out/conftest.err)
11810    ac_status=$?
11811    cat out/conftest.err >&5
11812    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11814    then
11815      # The compiler can only warn and ignore the option if not recognized
11816      # So say no if there are warnings
11817      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11818      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11819      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11820        lt_cv_prog_compiler_c_o_GO=yes
11821      fi
11822    fi
11823    chmod u+w . 2>&5
11824    $RM conftest*
11825    # SGI C++ compiler will create directory out/ii_files/ for
11826    # template instantiation
11827    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11828    $RM out/* && rmdir out
11829    cd ..
11830    $RM -r conftest
11831    $RM conftest*
11832
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11835 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11836
11837
11838
11839
11840 hard_links="nottested"
11841 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11842   # do not overwrite the value of need_locks provided by the user
11843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11844 $as_echo_n "checking if we can lock with hard links... " >&6; }
11845   hard_links=yes
11846   $RM conftest*
11847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11848   touch conftest.a
11849   ln conftest.a conftest.b 2>&5 || hard_links=no
11850   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11852 $as_echo "$hard_links" >&6; }
11853   if test "$hard_links" = no; then
11854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11855 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11856     need_locks=warn
11857   fi
11858 else
11859   need_locks=no
11860 fi
11861
11862
11863
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11865 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11866
11867   runpath_var=
11868   allow_undefined_flag_GO=
11869   always_export_symbols_GO=no
11870   archive_cmds_GO=
11871   archive_expsym_cmds_GO=
11872   compiler_needs_object_GO=no
11873   enable_shared_with_static_runtimes_GO=no
11874   export_dynamic_flag_spec_GO=
11875   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11876   hardcode_automatic_GO=no
11877   hardcode_direct_GO=no
11878   hardcode_direct_absolute_GO=no
11879   hardcode_libdir_flag_spec_GO=
11880   hardcode_libdir_flag_spec_ld_GO=
11881   hardcode_libdir_separator_GO=
11882   hardcode_minus_L_GO=no
11883   hardcode_shlibpath_var_GO=unsupported
11884   inherit_rpath_GO=no
11885   link_all_deplibs_GO=unknown
11886   module_cmds_GO=
11887   module_expsym_cmds_GO=
11888   old_archive_from_new_cmds_GO=
11889   old_archive_from_expsyms_cmds_GO=
11890   thread_safe_flag_spec_GO=
11891   whole_archive_flag_spec_GO=
11892   # include_expsyms should be a list of space-separated symbols to be *always*
11893   # included in the symbol list
11894   include_expsyms_GO=
11895   # exclude_expsyms can be an extended regexp of symbols to exclude
11896   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11897   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11898   # as well as any symbol that contains `d'.
11899   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11900   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11901   # platforms (ab)use it in PIC code, but their linkers get confused if
11902   # the symbol is explicitly referenced.  Since portable code cannot
11903   # rely on this symbol name, it's probably fine to never include it in
11904   # preloaded symbol tables.
11905   # Exclude shared library initialization/finalization symbols.
11906   extract_expsyms_cmds=
11907
11908   case $host_os in
11909   cygwin* | mingw* | pw32* | cegcc*)
11910     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11911     # When not using gcc, we currently assume that we are using
11912     # Microsoft Visual C++.
11913     if test "$GCC" != yes; then
11914       with_gnu_ld=no
11915     fi
11916     ;;
11917   interix*)
11918     # we just hope/assume this is gcc and not c89 (= MSVC++)
11919     with_gnu_ld=yes
11920     ;;
11921   openbsd*)
11922     with_gnu_ld=no
11923     ;;
11924   esac
11925
11926   ld_shlibs_GO=yes
11927
11928   # On some targets, GNU ld is compatible enough with the native linker
11929   # that we're better off using the native interface for both.
11930   lt_use_gnu_ld_interface=no
11931   if test "$with_gnu_ld" = yes; then
11932     case $host_os in
11933       aix*)
11934         # The AIX port of GNU ld has always aspired to compatibility
11935         # with the native linker.  However, as the warning in the GNU ld
11936         # block says, versions before 2.19.5* couldn't really create working
11937         # shared libraries, regardless of the interface used.
11938         case `$LD -v 2>&1` in
11939           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11940           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11941           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11942           *)
11943             lt_use_gnu_ld_interface=yes
11944             ;;
11945         esac
11946         ;;
11947       *)
11948         lt_use_gnu_ld_interface=yes
11949         ;;
11950     esac
11951   fi
11952
11953   if test "$lt_use_gnu_ld_interface" = yes; then
11954     # If archive_cmds runs LD, not CC, wlarc should be empty
11955     wlarc='${wl}'
11956
11957     # Set some defaults for GNU ld with shared library support. These
11958     # are reset later if shared libraries are not supported. Putting them
11959     # here allows them to be overridden if necessary.
11960     runpath_var=LD_RUN_PATH
11961     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11962     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11963     # ancient GNU ld didn't support --whole-archive et. al.
11964     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11965       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11966     else
11967       whole_archive_flag_spec_GO=
11968     fi
11969     supports_anon_versioning=no
11970     case `$LD -v 2>&1` in
11971       *GNU\ gold*) supports_anon_versioning=yes ;;
11972       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11973       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11974       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11975       *\ 2.11.*) ;; # other 2.11 versions
11976       *) supports_anon_versioning=yes ;;
11977     esac
11978
11979     # See if GNU ld supports shared libraries.
11980     case $host_os in
11981     aix[3-9]*)
11982       # On AIX/PPC, the GNU linker is very broken
11983       if test "$host_cpu" != ia64; then
11984         ld_shlibs_GO=no
11985         cat <<_LT_EOF 1>&2
11986
11987 *** Warning: the GNU linker, at least up to release 2.19, is reported
11988 *** to be unable to reliably create shared libraries on AIX.
11989 *** Therefore, libtool is disabling shared libraries support.  If you
11990 *** really care for shared libraries, you may want to install binutils
11991 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11992 *** You will then need to restart the configuration process.
11993
11994 _LT_EOF
11995       fi
11996       ;;
11997
11998     amigaos*)
11999       case $host_cpu in
12000       powerpc)
12001             # see comment about AmigaOS4 .so support
12002             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12003             archive_expsym_cmds_GO=''
12004         ;;
12005       m68k)
12006             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)'
12007             hardcode_libdir_flag_spec_GO='-L$libdir'
12008             hardcode_minus_L_GO=yes
12009         ;;
12010       esac
12011       ;;
12012
12013     beos*)
12014       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12015         allow_undefined_flag_GO=unsupported
12016         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12017         # support --undefined.  This deserves some investigation.  FIXME
12018         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12019       else
12020         ld_shlibs_GO=no
12021       fi
12022       ;;
12023
12024     cygwin* | mingw* | pw32* | cegcc*)
12025       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12026       # as there is no search path for DLLs.
12027       hardcode_libdir_flag_spec_GO='-L$libdir'
12028       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12029       allow_undefined_flag_GO=unsupported
12030       always_export_symbols_GO=no
12031       enable_shared_with_static_runtimes_GO=yes
12032       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12033
12034       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12035         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12036         # If the export-symbols file already is a .def file (1st line
12037         # is EXPORTS), use it as is; otherwise, prepend...
12038         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12039           cp $export_symbols $output_objdir/$soname.def;
12040         else
12041           echo EXPORTS > $output_objdir/$soname.def;
12042           cat $export_symbols >> $output_objdir/$soname.def;
12043         fi~
12044         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12045       else
12046         ld_shlibs_GO=no
12047       fi
12048       ;;
12049
12050     haiku*)
12051       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12052       link_all_deplibs_GO=yes
12053       ;;
12054
12055     interix[3-9]*)
12056       hardcode_direct_GO=no
12057       hardcode_shlibpath_var_GO=no
12058       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12059       export_dynamic_flag_spec_GO='${wl}-E'
12060       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12061       # Instead, shared libraries are loaded at an image base (0x10000000 by
12062       # default) and relocated if they conflict, which is a slow very memory
12063       # consuming and fragmenting process.  To avoid this, we pick a random,
12064       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12065       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12066       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'
12067       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'
12068       ;;
12069
12070     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12071       tmp_diet=no
12072       if test "$host_os" = linux-dietlibc; then
12073         case $cc_basename in
12074           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12075         esac
12076       fi
12077       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12078          && test "$tmp_diet" = no
12079       then
12080         tmp_addflag=
12081         tmp_sharedflag='-shared'
12082         case $cc_basename,$host_cpu in
12083         pgcc*)                          # Portland Group C compiler
12084           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'
12085           tmp_addflag=' $pic_flag'
12086           ;;
12087         pgf77* | pgf90* | pgf95* | pgfortran*)
12088                                         # Portland Group f77 and f90 compilers
12089           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'
12090           tmp_addflag=' $pic_flag -Mnomain' ;;
12091         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12092           tmp_addflag=' -i_dynamic' ;;
12093         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12094           tmp_addflag=' -i_dynamic -nofor_main' ;;
12095         ifc* | ifort*)                  # Intel Fortran compiler
12096           tmp_addflag=' -nofor_main' ;;
12097         lf95*)                          # Lahey Fortran 8.1
12098           whole_archive_flag_spec_GO=
12099           tmp_sharedflag='--shared' ;;
12100         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12101           tmp_sharedflag='-qmkshrobj'
12102           tmp_addflag= ;;
12103         nvcc*)  # Cuda Compiler Driver 2.2
12104           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'
12105           compiler_needs_object_GO=yes
12106           ;;
12107         esac
12108         case `$CC -V 2>&1 | sed 5q` in
12109         *Sun\ C*)                       # Sun C 5.9
12110           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'
12111           compiler_needs_object_GO=yes
12112           tmp_sharedflag='-G' ;;
12113         *Sun\ F*)                       # Sun Fortran 8.3
12114           tmp_sharedflag='-G' ;;
12115         esac
12116         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12117
12118         if test "x$supports_anon_versioning" = xyes; then
12119           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12120             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12121             echo "local: *; };" >> $output_objdir/$libname.ver~
12122             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12123         fi
12124
12125         case $cc_basename in
12126         xlf* | bgf* | bgxlf* | mpixlf*)
12127           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12128           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12129           hardcode_libdir_flag_spec_GO=
12130           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12131           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12132           if test "x$supports_anon_versioning" = xyes; then
12133             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12134               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12135               echo "local: *; };" >> $output_objdir/$libname.ver~
12136               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12137           fi
12138           ;;
12139         esac
12140       else
12141         ld_shlibs_GO=no
12142       fi
12143       ;;
12144
12145     netbsd*)
12146       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12147         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12148         wlarc=
12149       else
12150         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12152       fi
12153       ;;
12154
12155     solaris*)
12156       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12157         ld_shlibs_GO=no
12158         cat <<_LT_EOF 1>&2
12159
12160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12161 *** create shared libraries on Solaris systems.  Therefore, libtool
12162 *** is disabling shared libraries support.  We urge you to upgrade GNU
12163 *** binutils to release 2.9.1 or newer.  Another option is to modify
12164 *** your PATH or compiler configuration so that the native linker is
12165 *** used, and then restart.
12166
12167 _LT_EOF
12168       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12169         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12170         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12171       else
12172         ld_shlibs_GO=no
12173       fi
12174       ;;
12175
12176     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12177       case `$LD -v 2>&1` in
12178         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12179         ld_shlibs_GO=no
12180         cat <<_LT_EOF 1>&2
12181
12182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12183 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12184 *** is disabling shared libraries support.  We urge you to upgrade GNU
12185 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12186 *** your PATH or compiler configuration so that the native linker is
12187 *** used, and then restart.
12188
12189 _LT_EOF
12190         ;;
12191         *)
12192           # For security reasons, it is highly recommended that you always
12193           # use absolute paths for naming shared libraries, and exclude the
12194           # DT_RUNPATH tag from executables and libraries.  But doing so
12195           # requires that you compile everything twice, which is a pain.
12196           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12197             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12198             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12199             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12200           else
12201             ld_shlibs_GO=no
12202           fi
12203         ;;
12204       esac
12205       ;;
12206
12207     sunos4*)
12208       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12209       wlarc=
12210       hardcode_direct_GO=yes
12211       hardcode_shlibpath_var_GO=no
12212       ;;
12213
12214     *)
12215       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12216         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12217         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12218       else
12219         ld_shlibs_GO=no
12220       fi
12221       ;;
12222     esac
12223
12224     if test "$ld_shlibs_GO" = no; then
12225       runpath_var=
12226       hardcode_libdir_flag_spec_GO=
12227       export_dynamic_flag_spec_GO=
12228       whole_archive_flag_spec_GO=
12229     fi
12230   else
12231     # PORTME fill in a description of your system's linker (not GNU ld)
12232     case $host_os in
12233     aix3*)
12234       allow_undefined_flag_GO=unsupported
12235       always_export_symbols_GO=yes
12236       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'
12237       # Note: this linker hardcodes the directories in LIBPATH if there
12238       # are no directories specified by -L.
12239       hardcode_minus_L_GO=yes
12240       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12241         # Neither direct hardcoding nor static linking is supported with a
12242         # broken collect2.
12243         hardcode_direct_GO=unsupported
12244       fi
12245       ;;
12246
12247     aix[4-9]*)
12248       if test "$host_cpu" = ia64; then
12249         # On IA64, the linker does run time linking by default, so we don't
12250         # have to do anything special.
12251         aix_use_runtimelinking=no
12252         exp_sym_flag='-Bexport'
12253         no_entry_flag=""
12254       else
12255         # If we're using GNU nm, then we don't want the "-C" option.
12256         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12257         # Also, AIX nm treats weak defined symbols like other global
12258         # defined symbols, whereas GNU nm marks them as "W".
12259         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12260           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'
12261         else
12262           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'
12263         fi
12264         aix_use_runtimelinking=no
12265
12266         # Test if we are trying to use run time linking or normal
12267         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12268         # need to do runtime linking.
12269         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12270           for ld_flag in $LDFLAGS; do
12271           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12272             aix_use_runtimelinking=yes
12273             break
12274           fi
12275           done
12276           ;;
12277         esac
12278
12279         exp_sym_flag='-bexport'
12280         no_entry_flag='-bnoentry'
12281       fi
12282
12283       # When large executables or shared objects are built, AIX ld can
12284       # have problems creating the table of contents.  If linking a library
12285       # or program results in "error TOC overflow" add -mminimal-toc to
12286       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12287       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12288
12289       archive_cmds_GO=''
12290       hardcode_direct_GO=yes
12291       hardcode_direct_absolute_GO=yes
12292       hardcode_libdir_separator_GO=':'
12293       link_all_deplibs_GO=yes
12294       file_list_spec_GO='${wl}-f,'
12295
12296       if test "$GCC" = yes; then
12297         case $host_os in aix4.[012]|aix4.[012].*)
12298         # We only want to do this on AIX 4.2 and lower, the check
12299         # below for broken collect2 doesn't work under 4.3+
12300           collect2name=`${CC} -print-prog-name=collect2`
12301           if test -f "$collect2name" &&
12302            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12303           then
12304           # We have reworked collect2
12305           :
12306           else
12307           # We have old collect2
12308           hardcode_direct_GO=unsupported
12309           # It fails to find uninstalled libraries when the uninstalled
12310           # path is not listed in the libpath.  Setting hardcode_minus_L
12311           # to unsupported forces relinking
12312           hardcode_minus_L_GO=yes
12313           hardcode_libdir_flag_spec_GO='-L$libdir'
12314           hardcode_libdir_separator_GO=
12315           fi
12316           ;;
12317         esac
12318         shared_flag='-shared'
12319         if test "$aix_use_runtimelinking" = yes; then
12320           shared_flag="$shared_flag "'${wl}-G'
12321         fi
12322       else
12323         # not using gcc
12324         if test "$host_cpu" = ia64; then
12325         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12326         # chokes on -Wl,-G. The following line is correct:
12327           shared_flag='-G'
12328         else
12329           if test "$aix_use_runtimelinking" = yes; then
12330             shared_flag='${wl}-G'
12331           else
12332             shared_flag='${wl}-bM:SRE'
12333           fi
12334         fi
12335       fi
12336
12337       export_dynamic_flag_spec_GO='${wl}-bexpall'
12338       # It seems that -bexpall does not export symbols beginning with
12339       # underscore (_), so it is better to generate a list of symbols to export.
12340       always_export_symbols_GO=yes
12341       if test "$aix_use_runtimelinking" = yes; then
12342         # Warning - without using the other runtime loading flags (-brtl),
12343         # -berok will link without error, but may produce a broken library.
12344         allow_undefined_flag_GO='-berok'
12345         # Determine the default libpath from the value encoded in an
12346         # empty executable.
12347         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h.  */
12349
12350 int
12351 main ()
12352 {
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_link "$LINENO"; then :
12359
12360 lt_aix_libpath_sed='
12361     /Import File Strings/,/^$/ {
12362         /^0/ {
12363             s/^0  *\(.*\)$/\1/
12364             p
12365         }
12366     }'
12367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368 # Check for a 64-bit object if we didn't find anything.
12369 if test -z "$aix_libpath"; then
12370   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12371 fi
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext \
12374     conftest$ac_exeext conftest.$ac_ext
12375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12376
12377         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12378         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"
12379       else
12380         if test "$host_cpu" = ia64; then
12381           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12382           allow_undefined_flag_GO="-z nodefs"
12383           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"
12384         else
12385          # Determine the default libpath from the value encoded in an
12386          # empty executable.
12387          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389
12390 int
12391 main ()
12392 {
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399
12400 lt_aix_libpath_sed='
12401     /Import File Strings/,/^$/ {
12402         /^0/ {
12403             s/^0  *\(.*\)$/\1/
12404             p
12405         }
12406     }'
12407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12408 # Check for a 64-bit object if we didn't find anything.
12409 if test -z "$aix_libpath"; then
12410   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 fi
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414     conftest$ac_exeext conftest.$ac_ext
12415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12416
12417          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12418           # Warning - without using the other run time loading flags,
12419           # -berok will link without error, but may produce a broken library.
12420           no_undefined_flag_GO=' ${wl}-bernotok'
12421           allow_undefined_flag_GO=' ${wl}-berok'
12422           if test "$with_gnu_ld" = yes; then
12423             # We only use this code for GNU lds that support --whole-archive.
12424             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12425           else
12426             # Exported symbols can be pulled into shared objects from archives
12427             whole_archive_flag_spec_GO='$convenience'
12428           fi
12429           archive_cmds_need_lc_GO=yes
12430           # This is similar to how AIX traditionally builds its shared libraries.
12431           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'
12432         fi
12433       fi
12434       ;;
12435
12436     amigaos*)
12437       case $host_cpu in
12438       powerpc)
12439             # see comment about AmigaOS4 .so support
12440             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441             archive_expsym_cmds_GO=''
12442         ;;
12443       m68k)
12444             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)'
12445             hardcode_libdir_flag_spec_GO='-L$libdir'
12446             hardcode_minus_L_GO=yes
12447         ;;
12448       esac
12449       ;;
12450
12451     bsdi[45]*)
12452       export_dynamic_flag_spec_GO=-rdynamic
12453       ;;
12454
12455     cygwin* | mingw* | pw32* | cegcc*)
12456       # When not using gcc, we currently assume that we are using
12457       # Microsoft Visual C++.
12458       # hardcode_libdir_flag_spec is actually meaningless, as there is
12459       # no search path for DLLs.
12460       hardcode_libdir_flag_spec_GO=' '
12461       allow_undefined_flag_GO=unsupported
12462       # Tell ltmain to make .lib files, not .a files.
12463       libext=lib
12464       # Tell ltmain to make .dll files, not .so files.
12465       shrext_cmds=".dll"
12466       # FIXME: Setting linknames here is a bad hack.
12467       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12468       # The linker will automatically build a .lib file if we build a DLL.
12469       old_archive_from_new_cmds_GO='true'
12470       # FIXME: Should let the user specify the lib program.
12471       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12472       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12473       enable_shared_with_static_runtimes_GO=yes
12474       ;;
12475
12476     darwin* | rhapsody*)
12477
12478
12479   archive_cmds_need_lc_GO=no
12480   hardcode_direct_GO=no
12481   hardcode_automatic_GO=yes
12482   hardcode_shlibpath_var_GO=unsupported
12483   if test "$lt_cv_ld_force_load" = "yes"; then
12484     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\"`'
12485   else
12486     whole_archive_flag_spec_GO=''
12487   fi
12488   link_all_deplibs_GO=yes
12489   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12490   case $cc_basename in
12491      ifort*) _lt_dar_can_shared=yes ;;
12492      *) _lt_dar_can_shared=$GCC ;;
12493   esac
12494   if test "$_lt_dar_can_shared" = "yes"; then
12495     output_verbose_link_cmd=func_echo_all
12496     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}"
12497     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12498     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}"
12499     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}"
12500
12501   else
12502   ld_shlibs_GO=no
12503   fi
12504
12505       ;;
12506
12507     dgux*)
12508       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12509       hardcode_libdir_flag_spec_GO='-L$libdir'
12510       hardcode_shlibpath_var_GO=no
12511       ;;
12512
12513     freebsd1*)
12514       ld_shlibs_GO=no
12515       ;;
12516
12517     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12518     # support.  Future versions do this automatically, but an explicit c++rt0.o
12519     # does not break anything, and helps significantly (at the cost of a little
12520     # extra space).
12521     freebsd2.2*)
12522       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12523       hardcode_libdir_flag_spec_GO='-R$libdir'
12524       hardcode_direct_GO=yes
12525       hardcode_shlibpath_var_GO=no
12526       ;;
12527
12528     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12529     freebsd2*)
12530       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12531       hardcode_direct_GO=yes
12532       hardcode_minus_L_GO=yes
12533       hardcode_shlibpath_var_GO=no
12534       ;;
12535
12536     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12537     freebsd* | dragonfly*)
12538       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12539       hardcode_libdir_flag_spec_GO='-R$libdir'
12540       hardcode_direct_GO=yes
12541       hardcode_shlibpath_var_GO=no
12542       ;;
12543
12544     hpux9*)
12545       if test "$GCC" = yes; then
12546         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'
12547       else
12548         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'
12549       fi
12550       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12551       hardcode_libdir_separator_GO=:
12552       hardcode_direct_GO=yes
12553
12554       # hardcode_minus_L: Not really in the search PATH,
12555       # but as the default location of the library.
12556       hardcode_minus_L_GO=yes
12557       export_dynamic_flag_spec_GO='${wl}-E'
12558       ;;
12559
12560     hpux10*)
12561       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12562         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12563       else
12564         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12565       fi
12566       if test "$with_gnu_ld" = no; then
12567         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12568         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12569         hardcode_libdir_separator_GO=:
12570         hardcode_direct_GO=yes
12571         hardcode_direct_absolute_GO=yes
12572         export_dynamic_flag_spec_GO='${wl}-E'
12573         # hardcode_minus_L: Not really in the search PATH,
12574         # but as the default location of the library.
12575         hardcode_minus_L_GO=yes
12576       fi
12577       ;;
12578
12579     hpux11*)
12580       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12581         case $host_cpu in
12582         hppa*64*)
12583           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12584           ;;
12585         ia64*)
12586           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12587           ;;
12588         *)
12589           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12590           ;;
12591         esac
12592       else
12593         case $host_cpu in
12594         hppa*64*)
12595           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12596           ;;
12597         ia64*)
12598           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12599           ;;
12600         *)
12601         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12602           ;;
12603         esac
12604       fi
12605       if test "$with_gnu_ld" = no; then
12606         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12607         hardcode_libdir_separator_GO=:
12608
12609         case $host_cpu in
12610         hppa*64*|ia64*)
12611           hardcode_direct_GO=no
12612           hardcode_shlibpath_var_GO=no
12613           ;;
12614         *)
12615           hardcode_direct_GO=yes
12616           hardcode_direct_absolute_GO=yes
12617           export_dynamic_flag_spec_GO='${wl}-E'
12618
12619           # hardcode_minus_L: Not really in the search PATH,
12620           # but as the default location of the library.
12621           hardcode_minus_L_GO=yes
12622           ;;
12623         esac
12624       fi
12625       ;;
12626
12627     irix5* | irix6* | nonstopux*)
12628       if test "$GCC" = yes; then
12629         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'
12630         # Try to use the -exported_symbol ld option, if it does not
12631         # work, assume that -exports_file does not work either and
12632         # implicitly export all symbols.
12633         save_LDFLAGS="$LDFLAGS"
12634         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h.  */
12637 int foo(void) {}
12638 _ACEOF
12639 if ac_fn_c_try_link "$LINENO"; then :
12640   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'
12641
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext \
12644     conftest$ac_exeext conftest.$ac_ext
12645         LDFLAGS="$save_LDFLAGS"
12646       else
12647         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'
12648         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'
12649       fi
12650       archive_cmds_need_lc_GO='no'
12651       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12652       hardcode_libdir_separator_GO=:
12653       inherit_rpath_GO=yes
12654       link_all_deplibs_GO=yes
12655       ;;
12656
12657     netbsd*)
12658       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12659         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12660       else
12661         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12662       fi
12663       hardcode_libdir_flag_spec_GO='-R$libdir'
12664       hardcode_direct_GO=yes
12665       hardcode_shlibpath_var_GO=no
12666       ;;
12667
12668     newsos6)
12669       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12670       hardcode_direct_GO=yes
12671       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12672       hardcode_libdir_separator_GO=:
12673       hardcode_shlibpath_var_GO=no
12674       ;;
12675
12676     *nto* | *qnx*)
12677       ;;
12678
12679     openbsd*)
12680       if test -f /usr/libexec/ld.so; then
12681         hardcode_direct_GO=yes
12682         hardcode_shlibpath_var_GO=no
12683         hardcode_direct_absolute_GO=yes
12684         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12686           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12687           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12688           export_dynamic_flag_spec_GO='${wl}-E'
12689         else
12690           case $host_os in
12691            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12692              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12693              hardcode_libdir_flag_spec_GO='-R$libdir'
12694              ;;
12695            *)
12696              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12697              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12698              ;;
12699           esac
12700         fi
12701       else
12702         ld_shlibs_GO=no
12703       fi
12704       ;;
12705
12706     os2*)
12707       hardcode_libdir_flag_spec_GO='-L$libdir'
12708       hardcode_minus_L_GO=yes
12709       allow_undefined_flag_GO=unsupported
12710       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'
12711       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12712       ;;
12713
12714     osf3*)
12715       if test "$GCC" = yes; then
12716         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12717         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'
12718       else
12719         allow_undefined_flag_GO=' -expect_unresolved \*'
12720         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'
12721       fi
12722       archive_cmds_need_lc_GO='no'
12723       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12724       hardcode_libdir_separator_GO=:
12725       ;;
12726
12727     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12728       if test "$GCC" = yes; then
12729         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12730         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'
12731         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12732       else
12733         allow_undefined_flag_GO=' -expect_unresolved \*'
12734         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'
12735         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~
12736         $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'
12737
12738         # Both c and cxx compiler support -rpath directly
12739         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12740       fi
12741       archive_cmds_need_lc_GO='no'
12742       hardcode_libdir_separator_GO=:
12743       ;;
12744
12745     solaris*)
12746       no_undefined_flag_GO=' -z defs'
12747       if test "$GCC" = yes; then
12748         wlarc='${wl}'
12749         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12750         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12751           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12752       else
12753         case `$CC -V 2>&1` in
12754         *"Compilers 5.0"*)
12755           wlarc=''
12756           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12757           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12758           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12759           ;;
12760         *)
12761           wlarc='${wl}'
12762           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12763           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12764           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12765           ;;
12766         esac
12767       fi
12768       hardcode_libdir_flag_spec_GO='-R$libdir'
12769       hardcode_shlibpath_var_GO=no
12770       case $host_os in
12771       solaris2.[0-5] | solaris2.[0-5].*) ;;
12772       *)
12773         # The compiler driver will combine and reorder linker options,
12774         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12775         # but is careful enough not to reorder.
12776         # Supported since Solaris 2.6 (maybe 2.5.1?)
12777         if test "$GCC" = yes; then
12778           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12779         else
12780           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12781         fi
12782         ;;
12783       esac
12784       link_all_deplibs_GO=yes
12785       ;;
12786
12787     sunos4*)
12788       if test "x$host_vendor" = xsequent; then
12789         # Use $CC to link under sequent, because it throws in some extra .o
12790         # files that make .init and .fini sections work.
12791         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12792       else
12793         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12794       fi
12795       hardcode_libdir_flag_spec_GO='-L$libdir'
12796       hardcode_direct_GO=yes
12797       hardcode_minus_L_GO=yes
12798       hardcode_shlibpath_var_GO=no
12799       ;;
12800
12801     sysv4)
12802       case $host_vendor in
12803         sni)
12804           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12805           hardcode_direct_GO=yes # is this really true???
12806         ;;
12807         siemens)
12808           ## LD is ld it makes a PLAMLIB
12809           ## CC just makes a GrossModule.
12810           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12811           reload_cmds_GO='$CC -r -o $output$reload_objs'
12812           hardcode_direct_GO=no
12813         ;;
12814         motorola)
12815           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12816           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12817         ;;
12818       esac
12819       runpath_var='LD_RUN_PATH'
12820       hardcode_shlibpath_var_GO=no
12821       ;;
12822
12823     sysv4.3*)
12824       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12825       hardcode_shlibpath_var_GO=no
12826       export_dynamic_flag_spec_GO='-Bexport'
12827       ;;
12828
12829     sysv4*MP*)
12830       if test -d /usr/nec; then
12831         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832         hardcode_shlibpath_var_GO=no
12833         runpath_var=LD_RUN_PATH
12834         hardcode_runpath_var=yes
12835         ld_shlibs_GO=yes
12836       fi
12837       ;;
12838
12839     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12840       no_undefined_flag_GO='${wl}-z,text'
12841       archive_cmds_need_lc_GO=no
12842       hardcode_shlibpath_var_GO=no
12843       runpath_var='LD_RUN_PATH'
12844
12845       if test "$GCC" = yes; then
12846         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12847         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12848       else
12849         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12850         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12851       fi
12852       ;;
12853
12854     sysv5* | sco3.2v5* | sco5v6*)
12855       # Note: We can NOT use -z defs as we might desire, because we do not
12856       # link with -lc, and that would cause any symbols used from libc to
12857       # always be unresolved, which means just about no library would
12858       # ever link correctly.  If we're not using GNU ld we use -z text
12859       # though, which does catch some bad symbols but isn't as heavy-handed
12860       # as -z defs.
12861       no_undefined_flag_GO='${wl}-z,text'
12862       allow_undefined_flag_GO='${wl}-z,nodefs'
12863       archive_cmds_need_lc_GO=no
12864       hardcode_shlibpath_var_GO=no
12865       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12866       hardcode_libdir_separator_GO=':'
12867       link_all_deplibs_GO=yes
12868       export_dynamic_flag_spec_GO='${wl}-Bexport'
12869       runpath_var='LD_RUN_PATH'
12870
12871       if test "$GCC" = yes; then
12872         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12873         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12874       else
12875         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12876         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12877       fi
12878       ;;
12879
12880     uts4*)
12881       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12882       hardcode_libdir_flag_spec_GO='-L$libdir'
12883       hardcode_shlibpath_var_GO=no
12884       ;;
12885
12886     *)
12887       ld_shlibs_GO=no
12888       ;;
12889     esac
12890
12891     if test x$host_vendor = xsni; then
12892       case $host in
12893       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12894         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12895         ;;
12896       esac
12897     fi
12898   fi
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12901 $as_echo "$ld_shlibs_GO" >&6; }
12902 test "$ld_shlibs_GO" = no && can_build_shared=no
12903
12904 with_gnu_ld_GO=$with_gnu_ld
12905
12906
12907
12908
12909
12910
12911 #
12912 # Do we need to explicitly link libc?
12913 #
12914 case "x$archive_cmds_need_lc_GO" in
12915 x|xyes)
12916   # Assume -lc should be added
12917   archive_cmds_need_lc_GO=yes
12918
12919   if test "$enable_shared" = yes && test "$GCC" = yes; then
12920     case $archive_cmds_GO in
12921     *'~'*)
12922       # FIXME: we may have to deal with multi-command sequences.
12923       ;;
12924     '$CC '*)
12925       # Test whether the compiler implicitly links with -lc since on some
12926       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12927       # to ld, don't add -lc before -lgcc.
12928       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12929 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12930 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12931   $as_echo_n "(cached) " >&6
12932 else
12933   $RM conftest*
12934         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12935
12936         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12937   (eval $ac_compile) 2>&5
12938   ac_status=$?
12939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940   test $ac_status = 0; } 2>conftest.err; then
12941           soname=conftest
12942           lib=conftest
12943           libobjs=conftest.$ac_objext
12944           deplibs=
12945           wl=$lt_prog_compiler_wl_GO
12946           pic_flag=$lt_prog_compiler_pic_GO
12947           compiler_flags=-v
12948           linker_flags=-v
12949           verstring=
12950           output_objdir=.
12951           libname=conftest
12952           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12953           allow_undefined_flag_GO=
12954           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12955   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12956   ac_status=$?
12957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12958   test $ac_status = 0; }
12959           then
12960             lt_cv_archive_cmds_need_lc_GO=no
12961           else
12962             lt_cv_archive_cmds_need_lc_GO=yes
12963           fi
12964           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12965         else
12966           cat conftest.err 1>&5
12967         fi
12968         $RM conftest*
12969
12970 fi
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12972 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12973       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12974       ;;
12975     esac
12976   fi
12977   ;;
12978 esac
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13044 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13045 hardcode_action_GO=
13046 if test -n "$hardcode_libdir_flag_spec_GO" ||
13047    test -n "$runpath_var_GO" ||
13048    test "X$hardcode_automatic_GO" = "Xyes" ; then
13049
13050   # We can hardcode non-existent directories.
13051   if test "$hardcode_direct_GO" != no &&
13052      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13053      # have to relink, otherwise we might link with an installed library
13054      # when we should be linking with a yet-to-be-installed one
13055      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13056      test "$hardcode_minus_L_GO" != no; then
13057     # Linking always hardcodes the temporary library directory.
13058     hardcode_action_GO=relink
13059   else
13060     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13061     hardcode_action_GO=immediate
13062   fi
13063 else
13064   # We cannot hardcode anything, or else we can only hardcode existing
13065   # directories.
13066   hardcode_action_GO=unsupported
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13069 $as_echo "$hardcode_action_GO" >&6; }
13070
13071 if test "$hardcode_action_GO" = relink ||
13072    test "$inherit_rpath_GO" = yes; then
13073   # Fast installation is not supported
13074   enable_fast_install=no
13075 elif test "$shlibpath_overrides_runpath" = yes ||
13076      test "$enable_shared" = no; then
13077   # Fast installation is not necessary
13078   enable_fast_install=needless
13079 fi
13080
13081
13082
13083
13084
13085
13086
13087 fi
13088
13089 ac_ext=c
13090 ac_cpp='$CPP $CPPFLAGS'
13091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13094
13095
13096 GCC=$lt_save_GCC
13097 CC="$lt_save_CC"
13098
13099
13100
13101
13102         ac_config_commands="$ac_config_commands libtool"
13103
13104
13105
13106
13107 # Only expand once:
13108
13109
13110
13111
13112
13113 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13114
13115
13116 WERROR="-Werror"
13117
13118
13119 glibgo_toolexecdir=no
13120 glibgo_toolexeclibdir=no
13121 glibgo_prefixdir=$prefix
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13124 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13125 # Check whether --enable-version-specific-runtime-libs was given.
13126 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13127   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13128     yes) version_specific_libs=yes ;;
13129     no)  version_specific_libs=no ;;
13130     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13131    esac
13132 else
13133   version_specific_libs=no
13134 fi
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13137 $as_echo "$version_specific_libs" >&6; }
13138
13139 # Version-specific runtime libs processing.
13140 if test $version_specific_libs = yes; then
13141   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13142   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13143 fi
13144
13145 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13146 # Install a library built with a cross compiler in tooldir, not libdir.
13147 if test x"$glibgo_toolexecdir" = x"no"; then
13148   if test -n "$with_cross_host" &&
13149      test x"$with_cross_host" != x"no"; then
13150     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13151     glibgo_toolexeclibdir='${toolexecdir}/lib'
13152   else
13153     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13154     glibgo_toolexeclibdir='${libdir}'
13155   fi
13156   multi_os_directory=`$CC -print-multi-os-directory`
13157   case $multi_os_directory in
13158     .) ;; # Avoid trailing /.
13159     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13160   esac
13161 fi
13162
13163
13164
13165
13166
13167 # See if the user wants to configure without libffi.  Some
13168 # architectures don't support it.  FIXME: We should set a default
13169 # based on the host.
13170
13171 # Check whether --with-libffi was given.
13172 if test "${with_libffi+set}" = set; then :
13173   withval=$with_libffi; :
13174 else
13175   with_libffi=${with_libffi_default-yes}
13176 fi
13177
13178
13179 LIBFFI=
13180 LIBFFIINCS=
13181 if test "$with_libffi" != no; then
13182
13183 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13184
13185    LIBFFI=../libffi/libffi_convenience.la
13186    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13187 fi
13188
13189
13190
13191 is_darwin=no
13192 is_freebsd=no
13193 is_linux=no
13194 is_rtems=no
13195 GOOS=unknown
13196 case ${host} in
13197   *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13198   *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13199   *-*-linux*)  is_linux=yes; GOOS=linux  ;;
13200   *-*-rtems*)  is_rtems=yes; GOOS=rtems  ;;
13201 esac
13202  if test $is_darwin = yes; then
13203   LIBGO_IS_DARWIN_TRUE=
13204   LIBGO_IS_DARWIN_FALSE='#'
13205 else
13206   LIBGO_IS_DARWIN_TRUE='#'
13207   LIBGO_IS_DARWIN_FALSE=
13208 fi
13209
13210  if test $is_freebsd = yes; then
13211   LIBGO_IS_FREEBSD_TRUE=
13212   LIBGO_IS_FREEBSD_FALSE='#'
13213 else
13214   LIBGO_IS_FREEBSD_TRUE='#'
13215   LIBGO_IS_FREEBSD_FALSE=
13216 fi
13217
13218  if test $is_linux = yes; then
13219   LIBGO_IS_LINUX_TRUE=
13220   LIBGO_IS_LINUX_FALSE='#'
13221 else
13222   LIBGO_IS_LINUX_TRUE='#'
13223   LIBGO_IS_LINUX_FALSE=
13224 fi
13225
13226  if test $is_rtems = yes; then
13227   LIBGO_IS_RTEMS_TRUE=
13228   LIBGO_IS_RTEMS_FALSE='#'
13229 else
13230   LIBGO_IS_RTEMS_TRUE='#'
13231   LIBGO_IS_RTEMS_FALSE=
13232 fi
13233
13234
13235
13236 is_386=no
13237 is_x86_64=no
13238 is_arm=no
13239 GOARCH=unknown
13240 case ${host} in
13241   i[34567]86-*-* | x86_64-*-*)
13242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h.  */
13244
13245 #ifdef __x86_64__
13246 #error 64-bit
13247 #endif
13248 _ACEOF
13249 if ac_fn_c_try_cpp "$LINENO"; then :
13250   is_386=yes
13251 else
13252   is_x86_64=yes
13253 fi
13254 rm -f conftest.err conftest.$ac_ext
13255     if test "$is_386" = "yes"; then
13256       GOARCH=386
13257     else
13258       GOARCH=amd64
13259     fi
13260     ;;
13261   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13262     is_arm=yes
13263     GOARCH=arm
13264     ;;
13265 esac
13266  if test $is_386 = yes; then
13267   LIBGO_IS_386_TRUE=
13268   LIBGO_IS_386_FALSE='#'
13269 else
13270   LIBGO_IS_386_TRUE='#'
13271   LIBGO_IS_386_FALSE=
13272 fi
13273
13274  if test $is_x86_64 = yes; then
13275   LIBGO_IS_X86_64_TRUE=
13276   LIBGO_IS_X86_64_FALSE='#'
13277 else
13278   LIBGO_IS_X86_64_TRUE='#'
13279   LIBGO_IS_X86_64_FALSE=
13280 fi
13281
13282  if test $is_arm = yes; then
13283   LIBGO_IS_ARM_TRUE=
13284   LIBGO_IS_ARM_FALSE='#'
13285 else
13286   LIBGO_IS_ARM_TRUE='#'
13287   LIBGO_IS_ARM_FALSE=
13288 fi
13289
13290
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13293 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13294 if test "${ac_cv_libgo_split_stack_supported+set}" = set; then :
13295   $as_echo_n "(cached) " >&6
13296 else
13297   CFLAGS_hold=$CFLAGS
13298 CFLAGS="$CFLAGS -fsplit-stack"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h.  */
13301 int i;
13302 _ACEOF
13303 if ac_fn_c_try_compile "$LINENO"; then :
13304   ac_cv_libgo_split_stack_supported=yes
13305 else
13306   ac_cv_libgo_split_stack_supported=no
13307 fi
13308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13309 CFLAGS=$CFLAGS_hold
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_split_stack_supported" >&5
13312 $as_echo "$ac_cv_libgo_split_stack_supported" >&6; }
13313 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13314   SPLIT_STACK=-fsplit-stack
13315
13316 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13317
13318 else
13319   SPLIT_STACK=
13320 fi
13321
13322  if test "$ac_cv_libgo_split_stack_supported" = yes; then
13323   USING_SPLIT_STACK_TRUE=
13324   USING_SPLIT_STACK_FALSE='#'
13325 else
13326   USING_SPLIT_STACK_TRUE='#'
13327   USING_SPLIT_STACK_FALSE=
13328 fi
13329
13330
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13332 $as_echo_n "checking whether linker supports split stack... " >&6; }
13333 if test "${ac_cv_libgo_linker_supports_split_stack+set}" = set; then :
13334   $as_echo_n "(cached) " >&6
13335 else
13336   ac_cv_libgo_linker_supports_split_stack=no
13337 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13338   ac_cv_libgo_linker_supports_split_stack=yes
13339 fi
13340 fi
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_linker_supports_split_stack" >&5
13342 $as_echo "$ac_cv_libgo_linker_supports_split_stack" >&6; }
13343 if test "$ac_cv_libgo_linker_supports_split_stack" = yes; then
13344
13345 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13346
13347 fi
13348
13349 MATH_LIBS=
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13351 $as_echo_n "checking for sqrt in -lm... " >&6; }
13352 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13353   $as_echo_n "(cached) " >&6
13354 else
13355   ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-lm  $LIBS"
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h.  */
13359
13360 /* Override any GCC internal prototype to avoid an error.
13361    Use char because int might match the return type of a GCC
13362    builtin and then its argument prototype would still apply.  */
13363 #ifdef __cplusplus
13364 extern "C"
13365 #endif
13366 char sqrt ();
13367 int
13368 main ()
13369 {
13370 return sqrt ();
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376   ac_cv_lib_m_sqrt=yes
13377 else
13378   ac_cv_lib_m_sqrt=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext \
13381     conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13383 fi
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13385 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13386 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13387   MATH_LIBS=-lm
13388 fi
13389
13390
13391
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13393 $as_echo_n "checking whether -pthread is supported... " >&6; }
13394 if test "${ac_cv_libgo_pthread_supported+set}" = set; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   CFLAGS_hold=$CFLAGS
13398 CFLAGS="$CFLAGS -pthread"
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h.  */
13401 int i;
13402 _ACEOF
13403 if ac_fn_c_try_compile "$LINENO"; then :
13404   ac_cv_libgo_pthread_supported=yes
13405 else
13406   ac_cv_libgo_pthread_supported=no
13407 fi
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 CFLAGS=$CFLAGS_hold
13410 fi
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_pthread_supported" >&5
13412 $as_echo "$ac_cv_libgo_pthread_supported" >&6; }
13413 PTHREAD_CFLAGS=
13414 if test "$ac_cv_libgo_pthread_supported" = yes; then
13415   PTHREAD_CFLAGS=-pthread
13416 fi
13417
13418
13419 PTHREAD_LIBS=
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13421 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13422 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-lpthread  $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h.  */
13429
13430 /* Override any GCC internal prototype to avoid an error.
13431    Use char because int might match the return type of a GCC
13432    builtin and then its argument prototype would still apply.  */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char pthread_create ();
13437 int
13438 main ()
13439 {
13440 return pthread_create ();
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446   ac_cv_lib_pthread_pthread_create=yes
13447 else
13448   ac_cv_lib_pthread_pthread_create=no
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext \
13451     conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13455 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13456 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13457   PTHREAD_LIBS=-lpthread
13458 fi
13459
13460
13461
13462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13463 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13464 if test "${ac_cv_c_bigendian+set}" = set; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   ac_cv_c_bigendian=unknown
13468     # See if we're dealing with a universal compiler.
13469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h.  */
13471 #ifndef __APPLE_CC__
13472                not a universal capable compiler
13473              #endif
13474              typedef int dummy;
13475
13476 _ACEOF
13477 if ac_fn_c_try_compile "$LINENO"; then :
13478
13479         # Check for potential -arch flags.  It is not universal unless
13480         # there are at least two -arch flags with different values.
13481         ac_arch=
13482         ac_prev=
13483         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13484          if test -n "$ac_prev"; then
13485            case $ac_word in
13486              i?86 | x86_64 | ppc | ppc64)
13487                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13488                  ac_arch=$ac_word
13489                else
13490                  ac_cv_c_bigendian=universal
13491                  break
13492                fi
13493                ;;
13494            esac
13495            ac_prev=
13496          elif test "x$ac_word" = "x-arch"; then
13497            ac_prev=arch
13498          fi
13499        done
13500 fi
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502     if test $ac_cv_c_bigendian = unknown; then
13503       # See if sys/param.h defines the BYTE_ORDER macro.
13504       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h.  */
13506 #include <sys/types.h>
13507              #include <sys/param.h>
13508
13509 int
13510 main ()
13511 {
13512 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13513                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13514                      && LITTLE_ENDIAN)
13515               bogus endian macros
13516              #endif
13517
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"; then :
13523   # It does; now see whether it defined to BIG_ENDIAN or not.
13524          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h.  */
13526 #include <sys/types.h>
13527                 #include <sys/param.h>
13528
13529 int
13530 main ()
13531 {
13532 #if BYTE_ORDER != BIG_ENDIAN
13533                  not big endian
13534                 #endif
13535
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 if ac_fn_c_try_compile "$LINENO"; then :
13541   ac_cv_c_bigendian=yes
13542 else
13543   ac_cv_c_bigendian=no
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548     fi
13549     if test $ac_cv_c_bigendian = unknown; then
13550       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13551       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h.  */
13553 #include <limits.h>
13554
13555 int
13556 main ()
13557 {
13558 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13559               bogus endian macros
13560              #endif
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_compile "$LINENO"; then :
13567   # It does; now see whether it defined to _BIG_ENDIAN or not.
13568          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h.  */
13570 #include <limits.h>
13571
13572 int
13573 main ()
13574 {
13575 #ifndef _BIG_ENDIAN
13576                  not big endian
13577                 #endif
13578
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 if ac_fn_c_try_compile "$LINENO"; then :
13584   ac_cv_c_bigendian=yes
13585 else
13586   ac_cv_c_bigendian=no
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 fi
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591     fi
13592     if test $ac_cv_c_bigendian = unknown; then
13593       # Compile a test program.
13594       if test "$cross_compiling" = yes; then :
13595   # Try to guess by grepping values from an object file.
13596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h.  */
13598 short int ascii_mm[] =
13599                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13600                 short int ascii_ii[] =
13601                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13602                 int use_ascii (int i) {
13603                   return ascii_mm[i] + ascii_ii[i];
13604                 }
13605                 short int ebcdic_ii[] =
13606                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13607                 short int ebcdic_mm[] =
13608                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13609                 int use_ebcdic (int i) {
13610                   return ebcdic_mm[i] + ebcdic_ii[i];
13611                 }
13612                 extern int foo;
13613
13614 int
13615 main ()
13616 {
13617 return use_ascii (foo) == use_ebcdic (foo);
13618   ;
13619   return 0;
13620 }
13621 _ACEOF
13622 if ac_fn_c_try_compile "$LINENO"; then :
13623   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13624               ac_cv_c_bigendian=yes
13625             fi
13626             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13627               if test "$ac_cv_c_bigendian" = unknown; then
13628                 ac_cv_c_bigendian=no
13629               else
13630                 # finding both strings is unlikely to happen, but who knows?
13631                 ac_cv_c_bigendian=unknown
13632               fi
13633             fi
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 else
13637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h.  */
13639 $ac_includes_default
13640 int
13641 main ()
13642 {
13643
13644              /* Are we little or big endian?  From Harbison&Steele.  */
13645              union
13646              {
13647                long int l;
13648                char c[sizeof (long int)];
13649              } u;
13650              u.l = 1;
13651              return u.c[sizeof (long int) - 1] == 1;
13652
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 if ac_fn_c_try_run "$LINENO"; then :
13658   ac_cv_c_bigendian=no
13659 else
13660   ac_cv_c_bigendian=yes
13661 fi
13662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13663   conftest.$ac_objext conftest.beam conftest.$ac_ext
13664 fi
13665
13666     fi
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13669 $as_echo "$ac_cv_c_bigendian" >&6; }
13670  case $ac_cv_c_bigendian in #(
13671    yes)
13672      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13673 ;; #(
13674    no)
13675       ;; #(
13676    universal)
13677
13678 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13679
13680      ;; #(
13681    *)
13682      as_fn_error "unknown endianness
13683  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13684  esac
13685
13686
13687
13688
13689 # Check whether --with-system-libunwind was given.
13690 if test "${with_system_libunwind+set}" = set; then :
13691   withval=$with_system_libunwind;
13692 fi
13693
13694   # If system-libunwind was not specifically set, pick a default setting.
13695   if test x$with_system_libunwind = x; then
13696     case ${target} in
13697       ia64-*-hpux*) with_system_libunwind=yes ;;
13698       *) with_system_libunwind=no ;;
13699     esac
13700   fi
13701   # Based on system-libunwind and target, do we have ipinfo?
13702   if  test x$with_system_libunwind = xyes; then
13703     case ${target} in
13704       ia64-*-*) have_unwind_getipinfo=no ;;
13705       *) have_unwind_getipinfo=yes ;;
13706     esac
13707   else
13708     # Darwin before version 9 does not have _Unwind_GetIPInfo.
13709
13710     case ${target} in
13711       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13712       *) have_unwind_getipinfo=yes ;;
13713     esac
13714
13715   fi
13716
13717   if test x$have_unwind_getipinfo = xyes; then
13718
13719 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13720
13721   fi
13722
13723
13724 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13725 do :
13726   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13727 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13728 eval as_val=\$$as_ac_Header
13729    if test "x$as_val" = x""yes; then :
13730   cat >>confdefs.h <<_ACEOF
13731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13732 _ACEOF
13733
13734 fi
13735
13736 done
13737
13738  if test "$ac_cv_header_sys_mman_h" = yes; then
13739   HAVE_SYS_MMAN_H_TRUE=
13740   HAVE_SYS_MMAN_H_FALSE='#'
13741 else
13742   HAVE_SYS_MMAN_H_TRUE='#'
13743   HAVE_SYS_MMAN_H_FALSE=
13744 fi
13745
13746 for ac_func in srandom random strsignal
13747 do :
13748   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13750 eval as_val=\$$as_ac_var
13751    if test "x$as_val" = x""yes; then :
13752   cat >>confdefs.h <<_ACEOF
13753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13754 _ACEOF
13755
13756 fi
13757 done
13758
13759
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13761 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13762 if test "${ac_cv_libgo_compiler_supports_inline_all_stringops+set}" = set; then :
13763   $as_echo_n "(cached) " >&6
13764 else
13765   CFLAGS_hold=$CFLAGS
13766 CFLAGS="$CFLAGS -minline-all-stringops"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h.  */
13769 int i;
13770 _ACEOF
13771 if ac_fn_c_try_compile "$LINENO"; then :
13772   ac_cv_libgo_compiler_supports_inline_all_stringops=yes
13773 else
13774   ac_cv_libgo_compiler_supports_inline_all_stringops=no
13775 fi
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 CFLAGS=$CFLAGS_hold
13778 fi
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_compiler_supports_inline_all_stringops" >&5
13780 $as_echo "$ac_cv_libgo_compiler_supports_inline_all_stringops" >&6; }
13781 STRINGOPS_FLAG=
13782 if test "$ac_cv_libgo_compiler_supports_inline_all_stringops" = yes; then
13783   STRINGOPS_FLAG=-minline-all-stringops
13784 fi
13785
13786
13787 CFLAGS_hold=$CFLAGS
13788 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
13789 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
13790 if test "x$ac_cv_type_off64_t" = x""yes; then :
13791
13792 cat >>confdefs.h <<_ACEOF
13793 #define HAVE_OFF64_T 1
13794 _ACEOF
13795
13796
13797 fi
13798
13799 CFLAGS=$CFLAGS_hold
13800
13801 cat >confcache <<\_ACEOF
13802 # This file is a shell script that caches the results of configure
13803 # tests run on this system so they can be shared between configure
13804 # scripts and configure runs, see configure's option --config-cache.
13805 # It is not useful on other systems.  If it contains results you don't
13806 # want to keep, you may remove or edit it.
13807 #
13808 # config.status only pays attention to the cache file if you give it
13809 # the --recheck option to rerun configure.
13810 #
13811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13813 # following values.
13814
13815 _ACEOF
13816
13817 # The following way of writing the cache mishandles newlines in values,
13818 # but we know of no workaround that is simple, portable, and efficient.
13819 # So, we kill variables containing newlines.
13820 # Ultrix sh set writes to stderr and can't be redirected directly,
13821 # and sets the high bit in the cache file unless we assign to the vars.
13822 (
13823   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13824     eval ac_val=\$$ac_var
13825     case $ac_val in #(
13826     *${as_nl}*)
13827       case $ac_var in #(
13828       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13830       esac
13831       case $ac_var in #(
13832       _ | IFS | as_nl) ;; #(
13833       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13834       *) { eval $ac_var=; unset $ac_var;} ;;
13835       esac ;;
13836     esac
13837   done
13838
13839   (set) 2>&1 |
13840     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13841     *${as_nl}ac_space=\ *)
13842       # `set' does not quote correctly, so add quotes: double-quote
13843       # substitution turns \\\\ into \\, and sed turns \\ into \.
13844       sed -n \
13845         "s/'/'\\\\''/g;
13846           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13847       ;; #(
13848     *)
13849       # `set' quotes correctly as required by POSIX, so do not add quotes.
13850       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13851       ;;
13852     esac |
13853     sort
13854 ) |
13855   sed '
13856      /^ac_cv_env_/b end
13857      t clear
13858      :clear
13859      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13860      t end
13861      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13862      :end' >>confcache
13863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13864   if test -w "$cache_file"; then
13865     test "x$cache_file" != "x/dev/null" &&
13866       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13867 $as_echo "$as_me: updating cache $cache_file" >&6;}
13868     cat confcache >$cache_file
13869   else
13870     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13871 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13872   fi
13873 fi
13874 rm -f confcache
13875
13876 if test ${multilib} = yes; then
13877   multilib_arg="--enable-multilib"
13878 else
13879   multilib_arg=
13880 fi
13881
13882 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
13883
13884
13885 ac_config_commands="$ac_config_commands default"
13886
13887
13888 cat >confcache <<\_ACEOF
13889 # This file is a shell script that caches the results of configure
13890 # tests run on this system so they can be shared between configure
13891 # scripts and configure runs, see configure's option --config-cache.
13892 # It is not useful on other systems.  If it contains results you don't
13893 # want to keep, you may remove or edit it.
13894 #
13895 # config.status only pays attention to the cache file if you give it
13896 # the --recheck option to rerun configure.
13897 #
13898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13900 # following values.
13901
13902 _ACEOF
13903
13904 # The following way of writing the cache mishandles newlines in values,
13905 # but we know of no workaround that is simple, portable, and efficient.
13906 # So, we kill variables containing newlines.
13907 # Ultrix sh set writes to stderr and can't be redirected directly,
13908 # and sets the high bit in the cache file unless we assign to the vars.
13909 (
13910   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13911     eval ac_val=\$$ac_var
13912     case $ac_val in #(
13913     *${as_nl}*)
13914       case $ac_var in #(
13915       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13917       esac
13918       case $ac_var in #(
13919       _ | IFS | as_nl) ;; #(
13920       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13921       *) { eval $ac_var=; unset $ac_var;} ;;
13922       esac ;;
13923     esac
13924   done
13925
13926   (set) 2>&1 |
13927     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13928     *${as_nl}ac_space=\ *)
13929       # `set' does not quote correctly, so add quotes: double-quote
13930       # substitution turns \\\\ into \\, and sed turns \\ into \.
13931       sed -n \
13932         "s/'/'\\\\''/g;
13933           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13934       ;; #(
13935     *)
13936       # `set' quotes correctly as required by POSIX, so do not add quotes.
13937       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13938       ;;
13939     esac |
13940     sort
13941 ) |
13942   sed '
13943      /^ac_cv_env_/b end
13944      t clear
13945      :clear
13946      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13947      t end
13948      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13949      :end' >>confcache
13950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13951   if test -w "$cache_file"; then
13952     test "x$cache_file" != "x/dev/null" &&
13953       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13954 $as_echo "$as_me: updating cache $cache_file" >&6;}
13955     cat confcache >$cache_file
13956   else
13957     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13958 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13959   fi
13960 fi
13961 rm -f confcache
13962
13963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13964 # Let make expand exec_prefix.
13965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13966
13967 DEFS=-DHAVE_CONFIG_H
13968
13969 ac_libobjs=
13970 ac_ltlibobjs=
13971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13972   # 1. Remove the extension, and $U if already installed.
13973   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13974   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13975   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13976   #    will be set to the directory where LIBOBJS objects are built.
13977   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13978   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13979 done
13980 LIBOBJS=$ac_libobjs
13981
13982 LTLIBOBJS=$ac_ltlibobjs
13983
13984
13985  if test -n "$EXEEXT"; then
13986   am__EXEEXT_TRUE=
13987   am__EXEEXT_FALSE='#'
13988 else
13989   am__EXEEXT_TRUE='#'
13990   am__EXEEXT_FALSE=
13991 fi
13992
13993 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13994   as_fn_error "conditional \"AMDEP\" was never defined.
13995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13996 fi
13997 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13998   as_fn_error "conditional \"am__fastdepCC\" was never defined.
13999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14000 fi
14001 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14002   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14004 fi
14005 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14006   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14008 fi
14009 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14010   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14012 fi
14013 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14014   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14016 fi
14017 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14018   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14020 fi
14021 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14022   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14024 fi
14025 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14026   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14028 fi
14029 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14030   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14032 fi
14033 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14034   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14036 fi
14037
14038 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14039   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14041 fi
14042
14043 : ${CONFIG_STATUS=./config.status}
14044 ac_write_fail=0
14045 ac_clean_files_save=$ac_clean_files
14046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14048 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14049 as_write_fail=0
14050 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14051 #! $SHELL
14052 # Generated by $as_me.
14053 # Run this file to recreate the current configuration.
14054 # Compiler output produced by configure, useful for debugging
14055 # configure, is in config.log if it exists.
14056
14057 debug=false
14058 ac_cs_recheck=false
14059 ac_cs_silent=false
14060
14061 SHELL=\${CONFIG_SHELL-$SHELL}
14062 export SHELL
14063 _ASEOF
14064 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14065 ## -------------------- ##
14066 ## M4sh Initialization. ##
14067 ## -------------------- ##
14068
14069 # Be more Bourne compatible
14070 DUALCASE=1; export DUALCASE # for MKS sh
14071 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14072   emulate sh
14073   NULLCMD=:
14074   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14075   # is contrary to our usage.  Disable this feature.
14076   alias -g '${1+"$@"}'='"$@"'
14077   setopt NO_GLOB_SUBST
14078 else
14079   case `(set -o) 2>/dev/null` in #(
14080   *posix*) :
14081     set -o posix ;; #(
14082   *) :
14083      ;;
14084 esac
14085 fi
14086
14087
14088 as_nl='
14089 '
14090 export as_nl
14091 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14092 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14095 # Prefer a ksh shell builtin over an external printf program on Solaris,
14096 # but without wasting forks for bash or zsh.
14097 if test -z "$BASH_VERSION$ZSH_VERSION" \
14098     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14099   as_echo='print -r --'
14100   as_echo_n='print -rn --'
14101 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14102   as_echo='printf %s\n'
14103   as_echo_n='printf %s'
14104 else
14105   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14106     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14107     as_echo_n='/usr/ucb/echo -n'
14108   else
14109     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14110     as_echo_n_body='eval
14111       arg=$1;
14112       case $arg in #(
14113       *"$as_nl"*)
14114         expr "X$arg" : "X\\(.*\\)$as_nl";
14115         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14116       esac;
14117       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14118     '
14119     export as_echo_n_body
14120     as_echo_n='sh -c $as_echo_n_body as_echo'
14121   fi
14122   export as_echo_body
14123   as_echo='sh -c $as_echo_body as_echo'
14124 fi
14125
14126 # The user is always right.
14127 if test "${PATH_SEPARATOR+set}" != set; then
14128   PATH_SEPARATOR=:
14129   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14130     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14131       PATH_SEPARATOR=';'
14132   }
14133 fi
14134
14135
14136 # IFS
14137 # We need space, tab and new line, in precisely that order.  Quoting is
14138 # there to prevent editors from complaining about space-tab.
14139 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14140 # splitting by setting IFS to empty value.)
14141 IFS=" ""        $as_nl"
14142
14143 # Find who we are.  Look in the path if we contain no directory separator.
14144 case $0 in #((
14145   *[\\/]* ) as_myself=$0 ;;
14146   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14148 do
14149   IFS=$as_save_IFS
14150   test -z "$as_dir" && as_dir=.
14151     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14152   done
14153 IFS=$as_save_IFS
14154
14155      ;;
14156 esac
14157 # We did not find ourselves, most probably we were run as `sh COMMAND'
14158 # in which case we are not to be found in the path.
14159 if test "x$as_myself" = x; then
14160   as_myself=$0
14161 fi
14162 if test ! -f "$as_myself"; then
14163   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14164   exit 1
14165 fi
14166
14167 # Unset variables that we do not need and which cause bugs (e.g. in
14168 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14169 # suppresses any "Segmentation fault" message there.  '((' could
14170 # trigger a bug in pdksh 5.2.14.
14171 for as_var in BASH_ENV ENV MAIL MAILPATH
14172 do eval test x\${$as_var+set} = xset \
14173   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14174 done
14175 PS1='$ '
14176 PS2='> '
14177 PS4='+ '
14178
14179 # NLS nuisances.
14180 LC_ALL=C
14181 export LC_ALL
14182 LANGUAGE=C
14183 export LANGUAGE
14184
14185 # CDPATH.
14186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14187
14188
14189 # as_fn_error ERROR [LINENO LOG_FD]
14190 # ---------------------------------
14191 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14192 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14193 # script with status $?, using 1 if that was 0.
14194 as_fn_error ()
14195 {
14196   as_status=$?; test $as_status -eq 0 && as_status=1
14197   if test "$3"; then
14198     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14199     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14200   fi
14201   $as_echo "$as_me: error: $1" >&2
14202   as_fn_exit $as_status
14203 } # as_fn_error
14204
14205
14206 # as_fn_set_status STATUS
14207 # -----------------------
14208 # Set $? to STATUS, without forking.
14209 as_fn_set_status ()
14210 {
14211   return $1
14212 } # as_fn_set_status
14213
14214 # as_fn_exit STATUS
14215 # -----------------
14216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14217 as_fn_exit ()
14218 {
14219   set +e
14220   as_fn_set_status $1
14221   exit $1
14222 } # as_fn_exit
14223
14224 # as_fn_unset VAR
14225 # ---------------
14226 # Portably unset VAR.
14227 as_fn_unset ()
14228 {
14229   { eval $1=; unset $1;}
14230 }
14231 as_unset=as_fn_unset
14232 # as_fn_append VAR VALUE
14233 # ----------------------
14234 # Append the text in VALUE to the end of the definition contained in VAR. Take
14235 # advantage of any shell optimizations that allow amortized linear growth over
14236 # repeated appends, instead of the typical quadratic growth present in naive
14237 # implementations.
14238 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14239   eval 'as_fn_append ()
14240   {
14241     eval $1+=\$2
14242   }'
14243 else
14244   as_fn_append ()
14245   {
14246     eval $1=\$$1\$2
14247   }
14248 fi # as_fn_append
14249
14250 # as_fn_arith ARG...
14251 # ------------------
14252 # Perform arithmetic evaluation on the ARGs, and store the result in the
14253 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14254 # must be portable across $(()) and expr.
14255 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14256   eval 'as_fn_arith ()
14257   {
14258     as_val=$(( $* ))
14259   }'
14260 else
14261   as_fn_arith ()
14262   {
14263     as_val=`expr "$@" || test $? -eq 1`
14264   }
14265 fi # as_fn_arith
14266
14267
14268 if expr a : '\(a\)' >/dev/null 2>&1 &&
14269    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14270   as_expr=expr
14271 else
14272   as_expr=false
14273 fi
14274
14275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14276   as_basename=basename
14277 else
14278   as_basename=false
14279 fi
14280
14281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14282   as_dirname=dirname
14283 else
14284   as_dirname=false
14285 fi
14286
14287 as_me=`$as_basename -- "$0" ||
14288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14289          X"$0" : 'X\(//\)$' \| \
14290          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14291 $as_echo X/"$0" |
14292     sed '/^.*\/\([^/][^/]*\)\/*$/{
14293             s//\1/
14294             q
14295           }
14296           /^X\/\(\/\/\)$/{
14297             s//\1/
14298             q
14299           }
14300           /^X\/\(\/\).*/{
14301             s//\1/
14302             q
14303           }
14304           s/.*/./; q'`
14305
14306 # Avoid depending upon Character Ranges.
14307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14310 as_cr_digits='0123456789'
14311 as_cr_alnum=$as_cr_Letters$as_cr_digits
14312
14313 ECHO_C= ECHO_N= ECHO_T=
14314 case `echo -n x` in #(((((
14315 -n*)
14316   case `echo 'xy\c'` in
14317   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14318   xy)  ECHO_C='\c';;
14319   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14320        ECHO_T=' ';;
14321   esac;;
14322 *)
14323   ECHO_N='-n';;
14324 esac
14325
14326 rm -f conf$$ conf$$.exe conf$$.file
14327 if test -d conf$$.dir; then
14328   rm -f conf$$.dir/conf$$.file
14329 else
14330   rm -f conf$$.dir
14331   mkdir conf$$.dir 2>/dev/null
14332 fi
14333 if (echo >conf$$.file) 2>/dev/null; then
14334   if ln -s conf$$.file conf$$ 2>/dev/null; then
14335     as_ln_s='ln -s'
14336     # ... but there are two gotchas:
14337     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14338     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14339     # In both cases, we have to default to `cp -p'.
14340     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14341       as_ln_s='cp -p'
14342   elif ln conf$$.file conf$$ 2>/dev/null; then
14343     as_ln_s=ln
14344   else
14345     as_ln_s='cp -p'
14346   fi
14347 else
14348   as_ln_s='cp -p'
14349 fi
14350 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14351 rmdir conf$$.dir 2>/dev/null
14352
14353
14354 # as_fn_mkdir_p
14355 # -------------
14356 # Create "$as_dir" as a directory, including parents if necessary.
14357 as_fn_mkdir_p ()
14358 {
14359
14360   case $as_dir in #(
14361   -*) as_dir=./$as_dir;;
14362   esac
14363   test -d "$as_dir" || eval $as_mkdir_p || {
14364     as_dirs=
14365     while :; do
14366       case $as_dir in #(
14367       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14368       *) as_qdir=$as_dir;;
14369       esac
14370       as_dirs="'$as_qdir' $as_dirs"
14371       as_dir=`$as_dirname -- "$as_dir" ||
14372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14373          X"$as_dir" : 'X\(//\)[^/]' \| \
14374          X"$as_dir" : 'X\(//\)$' \| \
14375          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14376 $as_echo X"$as_dir" |
14377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14378             s//\1/
14379             q
14380           }
14381           /^X\(\/\/\)[^/].*/{
14382             s//\1/
14383             q
14384           }
14385           /^X\(\/\/\)$/{
14386             s//\1/
14387             q
14388           }
14389           /^X\(\/\).*/{
14390             s//\1/
14391             q
14392           }
14393           s/.*/./; q'`
14394       test -d "$as_dir" && break
14395     done
14396     test -z "$as_dirs" || eval "mkdir $as_dirs"
14397   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14398
14399
14400 } # as_fn_mkdir_p
14401 if mkdir -p . 2>/dev/null; then
14402   as_mkdir_p='mkdir -p "$as_dir"'
14403 else
14404   test -d ./-p && rmdir ./-p
14405   as_mkdir_p=false
14406 fi
14407
14408 if test -x / >/dev/null 2>&1; then
14409   as_test_x='test -x'
14410 else
14411   if ls -dL / >/dev/null 2>&1; then
14412     as_ls_L_option=L
14413   else
14414     as_ls_L_option=
14415   fi
14416   as_test_x='
14417     eval sh -c '\''
14418       if test -d "$1"; then
14419         test -d "$1/.";
14420       else
14421         case $1 in #(
14422         -*)set "./$1";;
14423         esac;
14424         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14425         ???[sx]*):;;*)false;;esac;fi
14426     '\'' sh
14427   '
14428 fi
14429 as_executable_p=$as_test_x
14430
14431 # Sed expression to map a string onto a valid CPP name.
14432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14433
14434 # Sed expression to map a string onto a valid variable name.
14435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14436
14437
14438 exec 6>&1
14439 ## ----------------------------------- ##
14440 ## Main body of $CONFIG_STATUS script. ##
14441 ## ----------------------------------- ##
14442 _ASEOF
14443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14444
14445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14446 # Save the log message, to keep $0 and so on meaningful, and to
14447 # report actual input values of CONFIG_FILES etc. instead of their
14448 # values after options handling.
14449 ac_log="
14450 This file was extended by package-unused $as_me version-unused, which was
14451 generated by GNU Autoconf 2.64.  Invocation command line was
14452
14453   CONFIG_FILES    = $CONFIG_FILES
14454   CONFIG_HEADERS  = $CONFIG_HEADERS
14455   CONFIG_LINKS    = $CONFIG_LINKS
14456   CONFIG_COMMANDS = $CONFIG_COMMANDS
14457   $ $0 $@
14458
14459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14460 "
14461
14462 _ACEOF
14463
14464 case $ac_config_files in *"
14465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14466 esac
14467
14468 case $ac_config_headers in *"
14469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14470 esac
14471
14472
14473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14474 # Files that config.status was made for.
14475 config_files="$ac_config_files"
14476 config_headers="$ac_config_headers"
14477 config_commands="$ac_config_commands"
14478
14479 _ACEOF
14480
14481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14482 ac_cs_usage="\
14483 \`$as_me' instantiates files and other configuration actions
14484 from templates according to the current configuration.  Unless the files
14485 and actions are specified as TAGs, all are instantiated by default.
14486
14487 Usage: $0 [OPTION]... [TAG]...
14488
14489   -h, --help       print this help, then exit
14490   -V, --version    print version number and configuration settings, then exit
14491   -q, --quiet, --silent
14492                    do not print progress messages
14493   -d, --debug      don't remove temporary files
14494       --recheck    update $as_me by reconfiguring in the same conditions
14495       --file=FILE[:TEMPLATE]
14496                    instantiate the configuration file FILE
14497       --header=FILE[:TEMPLATE]
14498                    instantiate the configuration header FILE
14499
14500 Configuration files:
14501 $config_files
14502
14503 Configuration headers:
14504 $config_headers
14505
14506 Configuration commands:
14507 $config_commands
14508
14509 Report bugs to the package provider."
14510
14511 _ACEOF
14512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14513 ac_cs_version="\\
14514 package-unused config.status version-unused
14515 configured by $0, generated by GNU Autoconf 2.64,
14516   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14517
14518 Copyright (C) 2009 Free Software Foundation, Inc.
14519 This config.status script is free software; the Free Software Foundation
14520 gives unlimited permission to copy, distribute and modify it."
14521
14522 ac_pwd='$ac_pwd'
14523 srcdir='$srcdir'
14524 INSTALL='$INSTALL'
14525 MKDIR_P='$MKDIR_P'
14526 AWK='$AWK'
14527 test -n "\$AWK" || AWK=awk
14528 _ACEOF
14529
14530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531 # The default lists apply if the user does not specify any file.
14532 ac_need_defaults=:
14533 while test $# != 0
14534 do
14535   case $1 in
14536   --*=*)
14537     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14538     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14539     ac_shift=:
14540     ;;
14541   *)
14542     ac_option=$1
14543     ac_optarg=$2
14544     ac_shift=shift
14545     ;;
14546   esac
14547
14548   case $ac_option in
14549   # Handling of the options.
14550   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14551     ac_cs_recheck=: ;;
14552   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14553     $as_echo "$ac_cs_version"; exit ;;
14554   --debug | --debu | --deb | --de | --d | -d )
14555     debug=: ;;
14556   --file | --fil | --fi | --f )
14557     $ac_shift
14558     case $ac_optarg in
14559     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14560     esac
14561     as_fn_append CONFIG_FILES " '$ac_optarg'"
14562     ac_need_defaults=false;;
14563   --header | --heade | --head | --hea )
14564     $ac_shift
14565     case $ac_optarg in
14566     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14567     esac
14568     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14569     ac_need_defaults=false;;
14570   --he | --h)
14571     # Conflict between --help and --header
14572     as_fn_error "ambiguous option: \`$1'
14573 Try \`$0 --help' for more information.";;
14574   --help | --hel | -h )
14575     $as_echo "$ac_cs_usage"; exit ;;
14576   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14577   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14578     ac_cs_silent=: ;;
14579
14580   # This is an error.
14581   -*) as_fn_error "unrecognized option: \`$1'
14582 Try \`$0 --help' for more information." ;;
14583
14584   *) as_fn_append ac_config_targets " $1"
14585      ac_need_defaults=false ;;
14586
14587   esac
14588   shift
14589 done
14590
14591 ac_configure_extra_args=
14592
14593 if $ac_cs_silent; then
14594   exec 6>/dev/null
14595   ac_configure_extra_args="$ac_configure_extra_args --silent"
14596 fi
14597
14598 _ACEOF
14599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14600 if \$ac_cs_recheck; then
14601   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14602   shift
14603   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14604   CONFIG_SHELL='$SHELL'
14605   export CONFIG_SHELL
14606   exec "\$@"
14607 fi
14608
14609 _ACEOF
14610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14611 exec 5>>config.log
14612 {
14613   echo
14614   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14615 ## Running $as_me. ##
14616 _ASBOX
14617   $as_echo "$ac_log"
14618 } >&5
14619
14620 _ACEOF
14621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14622 #
14623 # INIT-COMMANDS
14624 #
14625
14626 srcdir="$srcdir"
14627 host="$host"
14628 target="$target"
14629 with_multisubdir="$with_multisubdir"
14630 with_multisrctop="$with_multisrctop"
14631 with_target_subdir="$with_target_subdir"
14632 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14633 multi_basedir="$multi_basedir"
14634 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14635 CC="$CC"
14636 CXX="$CXX"
14637 GFORTRAN="$GFORTRAN"
14638 GCJ="$GCJ"
14639 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14640
14641
14642 # The HP-UX ksh and POSIX shell print the target directory to stdout
14643 # if CDPATH is set.
14644 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14645
14646 sed_quote_subst='$sed_quote_subst'
14647 double_quote_subst='$double_quote_subst'
14648 delay_variable_subst='$delay_variable_subst'
14649 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14650 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14651 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14652 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14653 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14654 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14655 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14656 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14657 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14658 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14659 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14660 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14661 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14662 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14663 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14664 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14665 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14666 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14667 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14668 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14669 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14670 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14671 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14672 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14673 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14674 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14675 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14676 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14677 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14678 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14679 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14680 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14681 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14682 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14683 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14684 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14685 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14686 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14687 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14688 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14689 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14690 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14691 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14692 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14693 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14694 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14695 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14696 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14697 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"`'
14698 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14699 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14700 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14701 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14702 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14703 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14704 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14705 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14706 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14707 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14708 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14709 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14710 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14711 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14712 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14713 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14714 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14715 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14716 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14717 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14718 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14719 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14720 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14721 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14722 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14723 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14724 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14725 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14726 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14727 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14728 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14729 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14730 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14731 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14732 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14733 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14734 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14735 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14736 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14737 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14738 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14739 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14740 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14741 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14742 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14743 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14744 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14745 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14746 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14747 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14748 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14749 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14750 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14751 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14752 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14753 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14754 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14755 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14756 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14757 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14758 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14759 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14760 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14761 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14762 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14763 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14764 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14765 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14766 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14767 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14768 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14769 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
14770 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
14771 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
14772 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14773 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
14774 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
14775 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
14776 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
14777 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
14778 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
14779 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
14780 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
14781 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
14782 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14783 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14784 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
14785 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
14786 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
14787 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14788 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14789 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
14790 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14791 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
14792 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14793 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14794 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14795 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
14796 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
14797 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
14798 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
14799 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
14800 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
14801 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
14802 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
14803 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
14804 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
14805 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
14806 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
14807 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14808 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14809 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
14810 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
14811 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
14812
14813 LTCC='$LTCC'
14814 LTCFLAGS='$LTCFLAGS'
14815 compiler='$compiler_DEFAULT'
14816
14817 # A function that is used when there is no print builtin or printf.
14818 func_fallback_echo ()
14819 {
14820   eval 'cat <<_LTECHO_EOF
14821 \$1
14822 _LTECHO_EOF'
14823 }
14824
14825 # Quote evaled strings.
14826 for var in SED \
14827 GREP \
14828 EGREP \
14829 FGREP \
14830 SHELL \
14831 ECHO \
14832 LD \
14833 NM \
14834 LN_S \
14835 lt_SP2NL \
14836 lt_NL2SP \
14837 reload_flag \
14838 OBJDUMP \
14839 deplibs_check_method \
14840 file_magic_cmd \
14841 AR \
14842 AR_FLAGS \
14843 STRIP \
14844 RANLIB \
14845 CC \
14846 CFLAGS \
14847 compiler \
14848 lt_cv_sys_global_symbol_pipe \
14849 lt_cv_sys_global_symbol_to_cdecl \
14850 lt_cv_sys_global_symbol_to_c_name_address \
14851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14852 lt_prog_compiler_no_builtin_flag \
14853 lt_prog_compiler_wl \
14854 lt_prog_compiler_pic \
14855 lt_prog_compiler_static \
14856 lt_cv_prog_compiler_c_o \
14857 need_locks \
14858 DSYMUTIL \
14859 NMEDIT \
14860 LIPO \
14861 OTOOL \
14862 OTOOL64 \
14863 shrext_cmds \
14864 export_dynamic_flag_spec \
14865 whole_archive_flag_spec \
14866 compiler_needs_object \
14867 with_gnu_ld \
14868 allow_undefined_flag \
14869 no_undefined_flag \
14870 hardcode_libdir_flag_spec \
14871 hardcode_libdir_flag_spec_ld \
14872 hardcode_libdir_separator \
14873 fix_srcfile_path \
14874 exclude_expsyms \
14875 include_expsyms \
14876 file_list_spec \
14877 variables_saved_for_relink \
14878 libname_spec \
14879 library_names_spec \
14880 soname_spec \
14881 install_override_mode \
14882 finish_eval \
14883 old_striplib \
14884 striplib \
14885 LD_GO \
14886 reload_flag_GO \
14887 compiler_GO \
14888 lt_prog_compiler_no_builtin_flag_GO \
14889 lt_prog_compiler_wl_GO \
14890 lt_prog_compiler_pic_GO \
14891 lt_prog_compiler_static_GO \
14892 lt_cv_prog_compiler_c_o_GO \
14893 export_dynamic_flag_spec_GO \
14894 whole_archive_flag_spec_GO \
14895 compiler_needs_object_GO \
14896 with_gnu_ld_GO \
14897 allow_undefined_flag_GO \
14898 no_undefined_flag_GO \
14899 hardcode_libdir_flag_spec_GO \
14900 hardcode_libdir_flag_spec_ld_GO \
14901 hardcode_libdir_separator_GO \
14902 fix_srcfile_path_GO \
14903 exclude_expsyms_GO \
14904 include_expsyms_GO \
14905 file_list_spec_GO; do
14906     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14907     *[\\\\\\\`\\"\\\$]*)
14908       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14909       ;;
14910     *)
14911       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14912       ;;
14913     esac
14914 done
14915
14916 # Double-quote double-evaled strings.
14917 for var in reload_cmds \
14918 old_postinstall_cmds \
14919 old_postuninstall_cmds \
14920 old_archive_cmds \
14921 extract_expsyms_cmds \
14922 old_archive_from_new_cmds \
14923 old_archive_from_expsyms_cmds \
14924 archive_cmds \
14925 archive_expsym_cmds \
14926 module_cmds \
14927 module_expsym_cmds \
14928 export_symbols_cmds \
14929 prelink_cmds \
14930 postinstall_cmds \
14931 postuninstall_cmds \
14932 finish_cmds \
14933 sys_lib_search_path_spec \
14934 sys_lib_dlsearch_path_spec \
14935 reload_cmds_GO \
14936 old_archive_cmds_GO \
14937 old_archive_from_new_cmds_GO \
14938 old_archive_from_expsyms_cmds_GO \
14939 archive_cmds_GO \
14940 archive_expsym_cmds_GO \
14941 module_cmds_GO \
14942 module_expsym_cmds_GO \
14943 export_symbols_cmds_GO \
14944 prelink_cmds_GO; do
14945     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14946     *[\\\\\\\`\\"\\\$]*)
14947       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14948       ;;
14949     *)
14950       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14951       ;;
14952     esac
14953 done
14954
14955 ac_aux_dir='$ac_aux_dir'
14956 xsi_shell='$xsi_shell'
14957 lt_shell_append='$lt_shell_append'
14958
14959 # See if we are running on zsh, and set the options which allow our
14960 # commands through without removal of \ escapes INIT.
14961 if test -n "\${ZSH_VERSION+set}" ; then
14962    setopt NO_GLOB_SUBST
14963 fi
14964
14965
14966     PACKAGE='$PACKAGE'
14967     VERSION='$VERSION'
14968     TIMESTAMP='$TIMESTAMP'
14969     RM='$RM'
14970     ofile='$ofile'
14971
14972
14973
14974
14975
14976
14977 # Variables needed in config.status (file generation) which aren't already
14978 # passed by autoconf.
14979 SUBDIRS="$SUBDIRS"
14980
14981
14982 _ACEOF
14983
14984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14985
14986 # Handling of arguments.
14987 for ac_config_target in $ac_config_targets
14988 do
14989   case $ac_config_target in
14990     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14991     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14992     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14993     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14994     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14995     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14996     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14997
14998   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14999   esac
15000 done
15001
15002
15003 # If the user did not use the arguments to specify the items to instantiate,
15004 # then the envvar interface is used.  Set only those that are not.
15005 # We use the long form for the default assignment because of an extremely
15006 # bizarre bug on SunOS 4.1.3.
15007 if $ac_need_defaults; then
15008   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15009   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15010   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15011 fi
15012
15013 # Have a temporary directory for convenience.  Make it in the build tree
15014 # simply because there is no reason against having it here, and in addition,
15015 # creating and moving files from /tmp can sometimes cause problems.
15016 # Hook for its removal unless debugging.
15017 # Note that there is a small window in which the directory will not be cleaned:
15018 # after its creation but before its name has been assigned to `$tmp'.
15019 $debug ||
15020 {
15021   tmp=
15022   trap 'exit_status=$?
15023   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15024 ' 0
15025   trap 'as_fn_exit 1' 1 2 13 15
15026 }
15027 # Create a (secure) tmp directory for tmp files.
15028
15029 {
15030   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15031   test -n "$tmp" && test -d "$tmp"
15032 }  ||
15033 {
15034   tmp=./conf$$-$RANDOM
15035   (umask 077 && mkdir "$tmp")
15036 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15037
15038 # Set up the scripts for CONFIG_FILES section.
15039 # No need to generate them if there are no CONFIG_FILES.
15040 # This happens for instance with `./config.status config.h'.
15041 if test -n "$CONFIG_FILES"; then
15042
15043
15044 ac_cr=`echo X | tr X '\015'`
15045 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15046 # But we know of no other shell where ac_cr would be empty at this
15047 # point, so we can use a bashism as a fallback.
15048 if test "x$ac_cr" = x; then
15049   eval ac_cr=\$\'\\r\'
15050 fi
15051 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15052 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15053   ac_cs_awk_cr='\r'
15054 else
15055   ac_cs_awk_cr=$ac_cr
15056 fi
15057
15058 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15059 _ACEOF
15060
15061
15062 {
15063   echo "cat >conf$$subs.awk <<_ACEOF" &&
15064   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15065   echo "_ACEOF"
15066 } >conf$$subs.sh ||
15067   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15068 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15069 ac_delim='%!_!# '
15070 for ac_last_try in false false false false false :; do
15071   . ./conf$$subs.sh ||
15072     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15073
15074   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15075   if test $ac_delim_n = $ac_delim_num; then
15076     break
15077   elif $ac_last_try; then
15078     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15079   else
15080     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15081   fi
15082 done
15083 rm -f conf$$subs.sh
15084
15085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15086 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15087 _ACEOF
15088 sed -n '
15089 h
15090 s/^/S["/; s/!.*/"]=/
15091 p
15092 g
15093 s/^[^!]*!//
15094 :repl
15095 t repl
15096 s/'"$ac_delim"'$//
15097 t delim
15098 :nl
15099 h
15100 s/\(.\{148\}\).*/\1/
15101 t more1
15102 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15103 p
15104 n
15105 b repl
15106 :more1
15107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15108 p
15109 g
15110 s/.\{148\}//
15111 t nl
15112 :delim
15113 h
15114 s/\(.\{148\}\).*/\1/
15115 t more2
15116 s/["\\]/\\&/g; s/^/"/; s/$/"/
15117 p
15118 b
15119 :more2
15120 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15121 p
15122 g
15123 s/.\{148\}//
15124 t delim
15125 ' <conf$$subs.awk | sed '
15126 /^[^""]/{
15127   N
15128   s/\n//
15129 }
15130 ' >>$CONFIG_STATUS || ac_write_fail=1
15131 rm -f conf$$subs.awk
15132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15133 _ACAWK
15134 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15135   for (key in S) S_is_set[key] = 1
15136   FS = "\a"
15137
15138 }
15139 {
15140   line = $ 0
15141   nfields = split(line, field, "@")
15142   substed = 0
15143   len = length(field[1])
15144   for (i = 2; i < nfields; i++) {
15145     key = field[i]
15146     keylen = length(key)
15147     if (S_is_set[key]) {
15148       value = S[key]
15149       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15150       len += length(value) + length(field[++i])
15151       substed = 1
15152     } else
15153       len += 1 + keylen
15154   }
15155
15156   print line
15157 }
15158
15159 _ACAWK
15160 _ACEOF
15161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15162 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15163   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15164 else
15165   cat
15166 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15167   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15168 _ACEOF
15169
15170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15172 # trailing colons and then remove the whole line if VPATH becomes empty
15173 # (actually we leave an empty line to preserve line numbers).
15174 if test "x$srcdir" = x.; then
15175   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15176 s/:*\$(srcdir):*/:/
15177 s/:*\${srcdir}:*/:/
15178 s/:*@srcdir@:*/:/
15179 s/^\([^=]*=[     ]*\):*/\1/
15180 s/:*$//
15181 s/^[^=]*=[       ]*$//
15182 }'
15183 fi
15184
15185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186 fi # test -n "$CONFIG_FILES"
15187
15188 # Set up the scripts for CONFIG_HEADERS section.
15189 # No need to generate them if there are no CONFIG_HEADERS.
15190 # This happens for instance with `./config.status Makefile'.
15191 if test -n "$CONFIG_HEADERS"; then
15192 cat >"$tmp/defines.awk" <<\_ACAWK ||
15193 BEGIN {
15194 _ACEOF
15195
15196 # Transform confdefs.h into an awk script `defines.awk', embedded as
15197 # here-document in config.status, that substitutes the proper values into
15198 # config.h.in to produce config.h.
15199
15200 # Create a delimiter string that does not exist in confdefs.h, to ease
15201 # handling of long lines.
15202 ac_delim='%!_!# '
15203 for ac_last_try in false false :; do
15204   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15205   if test -z "$ac_t"; then
15206     break
15207   elif $ac_last_try; then
15208     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15209   else
15210     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15211   fi
15212 done
15213
15214 # For the awk script, D is an array of macro values keyed by name,
15215 # likewise P contains macro parameters if any.  Preserve backslash
15216 # newline sequences.
15217
15218 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15219 sed -n '
15220 s/.\{148\}/&'"$ac_delim"'/g
15221 t rset
15222 :rset
15223 s/^[     ]*#[    ]*define[       ][      ]*/ /
15224 t def
15225 d
15226 :def
15227 s/\\$//
15228 t bsnl
15229 s/["\\]/\\&/g
15230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15231 D["\1"]=" \3"/p
15232 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15233 d
15234 :bsnl
15235 s/["\\]/\\&/g
15236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15237 D["\1"]=" \3\\\\\\n"\\/p
15238 t cont
15239 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15240 t cont
15241 d
15242 :cont
15243 n
15244 s/.\{148\}/&'"$ac_delim"'/g
15245 t clear
15246 :clear
15247 s/\\$//
15248 t bsnlc
15249 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15250 d
15251 :bsnlc
15252 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15253 b cont
15254 ' <confdefs.h | sed '
15255 s/'"$ac_delim"'/"\\\
15256 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15257
15258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15259   for (key in D) D_is_set[key] = 1
15260   FS = "\a"
15261 }
15262 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15263   line = \$ 0
15264   split(line, arg, " ")
15265   if (arg[1] == "#") {
15266     defundef = arg[2]
15267     mac1 = arg[3]
15268   } else {
15269     defundef = substr(arg[1], 2)
15270     mac1 = arg[2]
15271   }
15272   split(mac1, mac2, "(") #)
15273   macro = mac2[1]
15274   prefix = substr(line, 1, index(line, defundef) - 1)
15275   if (D_is_set[macro]) {
15276     # Preserve the white space surrounding the "#".
15277     print prefix "define", macro P[macro] D[macro]
15278     next
15279   } else {
15280     # Replace #undef with comments.  This is necessary, for example,
15281     # in the case of _POSIX_SOURCE, which is predefined and required
15282     # on some systems where configure will not decide to define it.
15283     if (defundef == "undef") {
15284       print "/*", prefix defundef, macro, "*/"
15285       next
15286     }
15287   }
15288 }
15289 { print }
15290 _ACAWK
15291 _ACEOF
15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15294 fi # test -n "$CONFIG_HEADERS"
15295
15296
15297 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15298 shift
15299 for ac_tag
15300 do
15301   case $ac_tag in
15302   :[FHLC]) ac_mode=$ac_tag; continue;;
15303   esac
15304   case $ac_mode$ac_tag in
15305   :[FHL]*:*);;
15306   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15307   :[FH]-) ac_tag=-:-;;
15308   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15309   esac
15310   ac_save_IFS=$IFS
15311   IFS=:
15312   set x $ac_tag
15313   IFS=$ac_save_IFS
15314   shift
15315   ac_file=$1
15316   shift
15317
15318   case $ac_mode in
15319   :L) ac_source=$1;;
15320   :[FH])
15321     ac_file_inputs=
15322     for ac_f
15323     do
15324       case $ac_f in
15325       -) ac_f="$tmp/stdin";;
15326       *) # Look for the file first in the build tree, then in the source tree
15327          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15328          # because $ac_f cannot contain `:'.
15329          test -f "$ac_f" ||
15330            case $ac_f in
15331            [\\/$]*) false;;
15332            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15333            esac ||
15334            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15335       esac
15336       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15337       as_fn_append ac_file_inputs " '$ac_f'"
15338     done
15339
15340     # Let's still pretend it is `configure' which instantiates (i.e., don't
15341     # use $as_me), people would be surprised to read:
15342     #    /* config.h.  Generated by config.status.  */
15343     configure_input='Generated from '`
15344           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15345         `' by configure.'
15346     if test x"$ac_file" != x-; then
15347       configure_input="$ac_file.  $configure_input"
15348       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15349 $as_echo "$as_me: creating $ac_file" >&6;}
15350     fi
15351     # Neutralize special characters interpreted by sed in replacement strings.
15352     case $configure_input in #(
15353     *\&* | *\|* | *\\* )
15354        ac_sed_conf_input=`$as_echo "$configure_input" |
15355        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15356     *) ac_sed_conf_input=$configure_input;;
15357     esac
15358
15359     case $ac_tag in
15360     *:-:* | *:-) cat >"$tmp/stdin" \
15361       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15362     esac
15363     ;;
15364   esac
15365
15366   ac_dir=`$as_dirname -- "$ac_file" ||
15367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15368          X"$ac_file" : 'X\(//\)[^/]' \| \
15369          X"$ac_file" : 'X\(//\)$' \| \
15370          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15371 $as_echo X"$ac_file" |
15372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15373             s//\1/
15374             q
15375           }
15376           /^X\(\/\/\)[^/].*/{
15377             s//\1/
15378             q
15379           }
15380           /^X\(\/\/\)$/{
15381             s//\1/
15382             q
15383           }
15384           /^X\(\/\).*/{
15385             s//\1/
15386             q
15387           }
15388           s/.*/./; q'`
15389   as_dir="$ac_dir"; as_fn_mkdir_p
15390   ac_builddir=.
15391
15392 case "$ac_dir" in
15393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15394 *)
15395   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15396   # A ".." for each directory in $ac_dir_suffix.
15397   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15398   case $ac_top_builddir_sub in
15399   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15400   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15401   esac ;;
15402 esac
15403 ac_abs_top_builddir=$ac_pwd
15404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15405 # for backward compatibility:
15406 ac_top_builddir=$ac_top_build_prefix
15407
15408 case $srcdir in
15409   .)  # We are building in place.
15410     ac_srcdir=.
15411     ac_top_srcdir=$ac_top_builddir_sub
15412     ac_abs_top_srcdir=$ac_pwd ;;
15413   [\\/]* | ?:[\\/]* )  # Absolute name.
15414     ac_srcdir=$srcdir$ac_dir_suffix;
15415     ac_top_srcdir=$srcdir
15416     ac_abs_top_srcdir=$srcdir ;;
15417   *) # Relative name.
15418     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15419     ac_top_srcdir=$ac_top_build_prefix$srcdir
15420     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15421 esac
15422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15423
15424
15425   case $ac_mode in
15426   :F)
15427   #
15428   # CONFIG_FILE
15429   #
15430
15431   case $INSTALL in
15432   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15433   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15434   esac
15435   ac_MKDIR_P=$MKDIR_P
15436   case $MKDIR_P in
15437   [\\/$]* | ?:[\\/]* ) ;;
15438   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15439   esac
15440 _ACEOF
15441
15442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443 # If the template does not know about datarootdir, expand it.
15444 # FIXME: This hack should be removed a few years after 2.60.
15445 ac_datarootdir_hack=; ac_datarootdir_seen=
15446 ac_sed_dataroot='
15447 /datarootdir/ {
15448   p
15449   q
15450 }
15451 /@datadir@/p
15452 /@docdir@/p
15453 /@infodir@/p
15454 /@localedir@/p
15455 /@mandir@/p'
15456 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15457 *datarootdir*) ac_datarootdir_seen=yes;;
15458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15459   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15460 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15461 _ACEOF
15462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463   ac_datarootdir_hack='
15464   s&@datadir@&$datadir&g
15465   s&@docdir@&$docdir&g
15466   s&@infodir@&$infodir&g
15467   s&@localedir@&$localedir&g
15468   s&@mandir@&$mandir&g
15469   s&\\\${datarootdir}&$datarootdir&g' ;;
15470 esac
15471 _ACEOF
15472
15473 # Neutralize VPATH when `$srcdir' = `.'.
15474 # Shell code in configure.ac might set extrasub.
15475 # FIXME: do we really want to maintain this feature?
15476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477 ac_sed_extra="$ac_vpsub
15478 $extrasub
15479 _ACEOF
15480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15481 :t
15482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15483 s|@configure_input@|$ac_sed_conf_input|;t t
15484 s&@top_builddir@&$ac_top_builddir_sub&;t t
15485 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15486 s&@srcdir@&$ac_srcdir&;t t
15487 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15488 s&@top_srcdir@&$ac_top_srcdir&;t t
15489 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15490 s&@builddir@&$ac_builddir&;t t
15491 s&@abs_builddir@&$ac_abs_builddir&;t t
15492 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15493 s&@INSTALL@&$ac_INSTALL&;t t
15494 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15495 $ac_datarootdir_hack
15496 "
15497 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15498   || as_fn_error "could not create $ac_file" "$LINENO" 5
15499
15500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15501   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15502   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15504 which seems to be undefined.  Please make sure it is defined." >&5
15505 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15506 which seems to be undefined.  Please make sure it is defined." >&2;}
15507
15508   rm -f "$tmp/stdin"
15509   case $ac_file in
15510   -) cat "$tmp/out" && rm -f "$tmp/out";;
15511   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15512   esac \
15513   || as_fn_error "could not create $ac_file" "$LINENO" 5
15514  ;;
15515   :H)
15516   #
15517   # CONFIG_HEADER
15518   #
15519   if test x"$ac_file" != x-; then
15520     {
15521       $as_echo "/* $configure_input  */" \
15522       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15523     } >"$tmp/config.h" \
15524       || as_fn_error "could not create $ac_file" "$LINENO" 5
15525     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15526       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15527 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15528     else
15529       rm -f "$ac_file"
15530       mv "$tmp/config.h" "$ac_file" \
15531         || as_fn_error "could not create $ac_file" "$LINENO" 5
15532     fi
15533   else
15534     $as_echo "/* $configure_input  */" \
15535       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15536       || as_fn_error "could not create -" "$LINENO" 5
15537   fi
15538 # Compute "$ac_file"'s index in $config_headers.
15539 _am_arg="$ac_file"
15540 _am_stamp_count=1
15541 for _am_header in $config_headers :; do
15542   case $_am_header in
15543     $_am_arg | $_am_arg:* )
15544       break ;;
15545     * )
15546       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15547   esac
15548 done
15549 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15550 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15551          X"$_am_arg" : 'X\(//\)[^/]' \| \
15552          X"$_am_arg" : 'X\(//\)$' \| \
15553          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15554 $as_echo X"$_am_arg" |
15555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15556             s//\1/
15557             q
15558           }
15559           /^X\(\/\/\)[^/].*/{
15560             s//\1/
15561             q
15562           }
15563           /^X\(\/\/\)$/{
15564             s//\1/
15565             q
15566           }
15567           /^X\(\/\).*/{
15568             s//\1/
15569             q
15570           }
15571           s/.*/./; q'`/stamp-h$_am_stamp_count
15572  ;;
15573
15574   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15575 $as_echo "$as_me: executing $ac_file commands" >&6;}
15576  ;;
15577   esac
15578
15579
15580   case $ac_file$ac_mode in
15581     "default-1":C)
15582 # Only add multilib support code if we just rebuilt the top-level
15583 # Makefile.
15584 case " $CONFIG_FILES " in
15585  *" Makefile "*)
15586    ac_file=Makefile . ${multi_basedir}/config-ml.in
15587    ;;
15588 esac ;;
15589     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15590   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15591   # are listed without --file.  Let's play safe and only enable the eval
15592   # if we detect the quoting.
15593   case $CONFIG_FILES in
15594   *\'*) eval set x "$CONFIG_FILES" ;;
15595   *)   set x $CONFIG_FILES ;;
15596   esac
15597   shift
15598   for mf
15599   do
15600     # Strip MF so we end up with the name of the file.
15601     mf=`echo "$mf" | sed -e 's/:.*$//'`
15602     # Check whether this is an Automake generated Makefile or not.
15603     # We used to match only the files named `Makefile.in', but
15604     # some people rename them; so instead we look at the file content.
15605     # Grep'ing the first line is not enough: some people post-process
15606     # each Makefile.in and add a new line on top of each file to say so.
15607     # Grep'ing the whole file is not good either: AIX grep has a line
15608     # limit of 2048, but all sed's we know have understand at least 4000.
15609     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15610       dirpart=`$as_dirname -- "$mf" ||
15611 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15612          X"$mf" : 'X\(//\)[^/]' \| \
15613          X"$mf" : 'X\(//\)$' \| \
15614          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15615 $as_echo X"$mf" |
15616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15617             s//\1/
15618             q
15619           }
15620           /^X\(\/\/\)[^/].*/{
15621             s//\1/
15622             q
15623           }
15624           /^X\(\/\/\)$/{
15625             s//\1/
15626             q
15627           }
15628           /^X\(\/\).*/{
15629             s//\1/
15630             q
15631           }
15632           s/.*/./; q'`
15633     else
15634       continue
15635     fi
15636     # Extract the definition of DEPDIR, am__include, and am__quote
15637     # from the Makefile without running `make'.
15638     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15639     test -z "$DEPDIR" && continue
15640     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15641     test -z "am__include" && continue
15642     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15643     # When using ansi2knr, U may be empty or an underscore; expand it
15644     U=`sed -n 's/^U = //p' < "$mf"`
15645     # Find all dependency output files, they are included files with
15646     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15647     # simplest approach to changing $(DEPDIR) to its actual value in the
15648     # expansion.
15649     for file in `sed -n "
15650       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15651          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15652       # Make sure the directory exists.
15653       test -f "$dirpart/$file" && continue
15654       fdir=`$as_dirname -- "$file" ||
15655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15656          X"$file" : 'X\(//\)[^/]' \| \
15657          X"$file" : 'X\(//\)$' \| \
15658          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15659 $as_echo X"$file" |
15660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15661             s//\1/
15662             q
15663           }
15664           /^X\(\/\/\)[^/].*/{
15665             s//\1/
15666             q
15667           }
15668           /^X\(\/\/\)$/{
15669             s//\1/
15670             q
15671           }
15672           /^X\(\/\).*/{
15673             s//\1/
15674             q
15675           }
15676           s/.*/./; q'`
15677       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15678       # echo "creating $dirpart/$file"
15679       echo '# dummy' > "$dirpart/$file"
15680     done
15681   done
15682 }
15683  ;;
15684     "libtool":C)
15685
15686     # See if we are running on zsh, and set the options which allow our
15687     # commands through without removal of \ escapes.
15688     if test -n "${ZSH_VERSION+set}" ; then
15689       setopt NO_GLOB_SUBST
15690     fi
15691
15692     cfgfile="${ofile}T"
15693     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15694     $RM "$cfgfile"
15695
15696     cat <<_LT_EOF >> "$cfgfile"
15697 #! $SHELL
15698
15699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15703 #
15704 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15705 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15706 #   Written by Gordon Matzigkeit, 1996
15707 #
15708 #   This file is part of GNU Libtool.
15709 #
15710 # GNU Libtool is free software; you can redistribute it and/or
15711 # modify it under the terms of the GNU General Public License as
15712 # published by the Free Software Foundation; either version 2 of
15713 # the License, or (at your option) any later version.
15714 #
15715 # As a special exception to the GNU General Public License,
15716 # if you distribute this file as part of a program or library that
15717 # is built using GNU Libtool, you may include this file under the
15718 # same distribution terms that you use for the rest of that program.
15719 #
15720 # GNU Libtool is distributed in the hope that it will be useful,
15721 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15723 # GNU General Public License for more details.
15724 #
15725 # You should have received a copy of the GNU General Public License
15726 # along with GNU Libtool; see the file COPYING.  If not, a copy
15727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15728 # obtained by writing to the Free Software Foundation, Inc.,
15729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15730
15731
15732 # The names of the tagged configurations supported by this script.
15733 available_tags="GO "
15734
15735 # ### BEGIN LIBTOOL CONFIG
15736
15737 # A sed program that does not truncate output.
15738 SED=$lt_SED
15739
15740 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15741 Xsed="\$SED -e 1s/^X//"
15742
15743 # A grep program that handles long lines.
15744 GREP=$lt_GREP
15745
15746 # An ERE matcher.
15747 EGREP=$lt_EGREP
15748
15749 # A literal string matcher.
15750 FGREP=$lt_FGREP
15751
15752 # Shell to use when invoking shell scripts.
15753 SHELL=$lt_SHELL
15754
15755 # An echo program that protects backslashes.
15756 ECHO=$lt_ECHO
15757
15758 # Which release of libtool.m4 was used?
15759 macro_version=$macro_version
15760 macro_revision=$macro_revision
15761
15762 # Whether or not to build shared libraries.
15763 build_libtool_libs=$enable_shared
15764
15765 # Whether or not to build static libraries.
15766 build_old_libs=$enable_static
15767
15768 # What type of objects to build.
15769 pic_mode=$pic_mode
15770
15771 # Whether or not to optimize for fast installation.
15772 fast_install=$enable_fast_install
15773
15774 # The host system.
15775 host_alias=$host_alias
15776 host=$host
15777 host_os=$host_os
15778
15779 # The build system.
15780 build_alias=$build_alias
15781 build=$build
15782 build_os=$build_os
15783
15784 # A BSD- or MS-compatible name lister.
15785 NM=$lt_NM
15786
15787 # Whether we need soft or hard links.
15788 LN_S=$lt_LN_S
15789
15790 # What is the maximum length of a command?
15791 max_cmd_len=$max_cmd_len
15792
15793 # Object file suffix (normally "o").
15794 objext=$ac_objext
15795
15796 # Executable file suffix (normally "").
15797 exeext=$exeext
15798
15799 # whether the shell understands "unset".
15800 lt_unset=$lt_unset
15801
15802 # turn spaces into newlines.
15803 SP2NL=$lt_lt_SP2NL
15804
15805 # turn newlines into spaces.
15806 NL2SP=$lt_lt_NL2SP
15807
15808 # An object symbol dumper.
15809 OBJDUMP=$lt_OBJDUMP
15810
15811 # Method to check whether dependent libraries are shared objects.
15812 deplibs_check_method=$lt_deplibs_check_method
15813
15814 # Command to use when deplibs_check_method == "file_magic".
15815 file_magic_cmd=$lt_file_magic_cmd
15816
15817 # The archiver.
15818 AR=$lt_AR
15819 AR_FLAGS=$lt_AR_FLAGS
15820
15821 # A symbol stripping program.
15822 STRIP=$lt_STRIP
15823
15824 # Commands used to install an old-style archive.
15825 RANLIB=$lt_RANLIB
15826 old_postinstall_cmds=$lt_old_postinstall_cmds
15827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15828
15829 # Whether to use a lock for old archive extraction.
15830 lock_old_archive_extraction=$lock_old_archive_extraction
15831
15832 # A C compiler.
15833 LTCC=$lt_CC
15834
15835 # LTCC compiler flags.
15836 LTCFLAGS=$lt_CFLAGS
15837
15838 # Take the output of nm and produce a listing of raw symbols and C names.
15839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15840
15841 # Transform the output of nm in a proper C declaration.
15842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15843
15844 # Transform the output of nm in a C name address pair.
15845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15846
15847 # Transform the output of nm in a C name address pair when lib prefix is needed.
15848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15849
15850 # The name of the directory that contains temporary libtool files.
15851 objdir=$objdir
15852
15853 # Used to examine libraries when file_magic_cmd begins with "file".
15854 MAGIC_CMD=$MAGIC_CMD
15855
15856 # Must we lock files when doing compilation?
15857 need_locks=$lt_need_locks
15858
15859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15860 DSYMUTIL=$lt_DSYMUTIL
15861
15862 # Tool to change global to local symbols on Mac OS X.
15863 NMEDIT=$lt_NMEDIT
15864
15865 # Tool to manipulate fat objects and archives on Mac OS X.
15866 LIPO=$lt_LIPO
15867
15868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15869 OTOOL=$lt_OTOOL
15870
15871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15872 OTOOL64=$lt_OTOOL64
15873
15874 # Old archive suffix (normally "a").
15875 libext=$libext
15876
15877 # Shared library suffix (normally ".so").
15878 shrext_cmds=$lt_shrext_cmds
15879
15880 # The commands to extract the exported symbol list from a shared archive.
15881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15882
15883 # Variables whose values should be saved in libtool wrapper scripts and
15884 # restored at link time.
15885 variables_saved_for_relink=$lt_variables_saved_for_relink
15886
15887 # Do we need the "lib" prefix for modules?
15888 need_lib_prefix=$need_lib_prefix
15889
15890 # Do we need a version for libraries?
15891 need_version=$need_version
15892
15893 # Library versioning type.
15894 version_type=$version_type
15895
15896 # Shared library runtime path variable.
15897 runpath_var=$runpath_var
15898
15899 # Shared library path variable.
15900 shlibpath_var=$shlibpath_var
15901
15902 # Is shlibpath searched before the hard-coded library search path?
15903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15904
15905 # Format of library name prefix.
15906 libname_spec=$lt_libname_spec
15907
15908 # List of archive names.  First name is the real one, the rest are links.
15909 # The last name is the one that the linker finds with -lNAME
15910 library_names_spec=$lt_library_names_spec
15911
15912 # The coded name of the library, if different from the real name.
15913 soname_spec=$lt_soname_spec
15914
15915 # Permission mode override for installation of shared libraries.
15916 install_override_mode=$lt_install_override_mode
15917
15918 # Command to use after installation of a shared archive.
15919 postinstall_cmds=$lt_postinstall_cmds
15920
15921 # Command to use after uninstallation of a shared archive.
15922 postuninstall_cmds=$lt_postuninstall_cmds
15923
15924 # Commands used to finish a libtool library installation in a directory.
15925 finish_cmds=$lt_finish_cmds
15926
15927 # As "finish_cmds", except a single script fragment to be evaled but
15928 # not shown.
15929 finish_eval=$lt_finish_eval
15930
15931 # Whether we should hardcode library paths into libraries.
15932 hardcode_into_libs=$hardcode_into_libs
15933
15934 # Compile-time system search path for libraries.
15935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15936
15937 # Run-time system search path for libraries.
15938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15939
15940 # Whether dlopen is supported.
15941 dlopen_support=$enable_dlopen
15942
15943 # Whether dlopen of programs is supported.
15944 dlopen_self=$enable_dlopen_self
15945
15946 # Whether dlopen of statically linked programs is supported.
15947 dlopen_self_static=$enable_dlopen_self_static
15948
15949 # Commands to strip libraries.
15950 old_striplib=$lt_old_striplib
15951 striplib=$lt_striplib
15952
15953
15954 # The linker used to build libraries.
15955 LD=$lt_LD
15956
15957 # How to create reloadable object files.
15958 reload_flag=$lt_reload_flag
15959 reload_cmds=$lt_reload_cmds
15960
15961 # Commands used to build an old-style archive.
15962 old_archive_cmds=$lt_old_archive_cmds
15963
15964 # A language specific compiler.
15965 CC=$lt_compiler
15966
15967 # Is the compiler the GNU compiler?
15968 with_gcc=$GCC
15969
15970 # Compiler flag to turn off builtin functions.
15971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15972
15973 # How to pass a linker flag through the compiler.
15974 wl=$lt_lt_prog_compiler_wl
15975
15976 # Additional compiler flags for building library objects.
15977 pic_flag=$lt_lt_prog_compiler_pic
15978
15979 # Compiler flag to prevent dynamic linking.
15980 link_static_flag=$lt_lt_prog_compiler_static
15981
15982 # Does compiler simultaneously support -c and -o options?
15983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15984
15985 # Whether or not to add -lc for building shared libraries.
15986 build_libtool_need_lc=$archive_cmds_need_lc
15987
15988 # Whether or not to disallow shared libs when runtime libs are static.
15989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15990
15991 # Compiler flag to allow reflexive dlopens.
15992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15993
15994 # Compiler flag to generate shared objects directly from archives.
15995 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15996
15997 # Whether the compiler copes with passing no objects directly.
15998 compiler_needs_object=$lt_compiler_needs_object
15999
16000 # Create an old-style archive from a shared archive.
16001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16002
16003 # Create a temporary old-style archive to link instead of a shared archive.
16004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16005
16006 # Commands used to build a shared archive.
16007 archive_cmds=$lt_archive_cmds
16008 archive_expsym_cmds=$lt_archive_expsym_cmds
16009
16010 # Commands used to build a loadable module if different from building
16011 # a shared archive.
16012 module_cmds=$lt_module_cmds
16013 module_expsym_cmds=$lt_module_expsym_cmds
16014
16015 # Whether we are building with GNU ld or not.
16016 with_gnu_ld=$lt_with_gnu_ld
16017
16018 # Flag that allows shared libraries with undefined symbols to be built.
16019 allow_undefined_flag=$lt_allow_undefined_flag
16020
16021 # Flag that enforces no undefined symbols.
16022 no_undefined_flag=$lt_no_undefined_flag
16023
16024 # Flag to hardcode \$libdir into a binary during linking.
16025 # This must work even if \$libdir does not exist
16026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16027
16028 # If ld is used when linking, flag to hardcode \$libdir into a binary
16029 # during linking.  This must work even if \$libdir does not exist.
16030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16031
16032 # Whether we need a single "-rpath" flag with a separated argument.
16033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16034
16035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16036 # DIR into the resulting binary.
16037 hardcode_direct=$hardcode_direct
16038
16039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16040 # DIR into the resulting binary and the resulting library dependency is
16041 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16042 # library is relocated.
16043 hardcode_direct_absolute=$hardcode_direct_absolute
16044
16045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16046 # into the resulting binary.
16047 hardcode_minus_L=$hardcode_minus_L
16048
16049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16050 # into the resulting binary.
16051 hardcode_shlibpath_var=$hardcode_shlibpath_var
16052
16053 # Set to "yes" if building a shared library automatically hardcodes DIR
16054 # into the library and all subsequent libraries and executables linked
16055 # against it.
16056 hardcode_automatic=$hardcode_automatic
16057
16058 # Set to yes if linker adds runtime paths of dependent libraries
16059 # to runtime path list.
16060 inherit_rpath=$inherit_rpath
16061
16062 # Whether libtool must link a program against all its dependency libraries.
16063 link_all_deplibs=$link_all_deplibs
16064
16065 # Fix the shell variable \$srcfile for the compiler.
16066 fix_srcfile_path=$lt_fix_srcfile_path
16067
16068 # Set to "yes" if exported symbols are required.
16069 always_export_symbols=$always_export_symbols
16070
16071 # The commands to list exported symbols.
16072 export_symbols_cmds=$lt_export_symbols_cmds
16073
16074 # Symbols that should not be listed in the preloaded symbols.
16075 exclude_expsyms=$lt_exclude_expsyms
16076
16077 # Symbols that must always be exported.
16078 include_expsyms=$lt_include_expsyms
16079
16080 # Commands necessary for linking programs (against libraries) with templates.
16081 prelink_cmds=$lt_prelink_cmds
16082
16083 # Specify filename containing input files.
16084 file_list_spec=$lt_file_list_spec
16085
16086 # How to hardcode a shared library path into an executable.
16087 hardcode_action=$hardcode_action
16088
16089 # ### END LIBTOOL CONFIG
16090
16091 _LT_EOF
16092
16093   case $host_os in
16094   aix3*)
16095     cat <<\_LT_EOF >> "$cfgfile"
16096 # AIX sometimes has problems with the GCC collect2 program.  For some
16097 # reason, if we set the COLLECT_NAMES environment variable, the problems
16098 # vanish in a puff of smoke.
16099 if test "X${COLLECT_NAMES+set}" != Xset; then
16100   COLLECT_NAMES=
16101   export COLLECT_NAMES
16102 fi
16103 _LT_EOF
16104     ;;
16105   esac
16106
16107
16108 ltmain="$ac_aux_dir/ltmain.sh"
16109
16110
16111   # We use sed instead of cat because bash on DJGPP gets confused if
16112   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16113   # text mode, it properly converts lines to CR/LF.  This bash problem
16114   # is reportedly fixed, but why not run on old versions too?
16115   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16116     || (rm -f "$cfgfile"; exit 1)
16117
16118   case $xsi_shell in
16119   yes)
16120     cat << \_LT_EOF >> "$cfgfile"
16121
16122 # func_dirname file append nondir_replacement
16123 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16124 # otherwise set result to NONDIR_REPLACEMENT.
16125 func_dirname ()
16126 {
16127   case ${1} in
16128     */*) func_dirname_result="${1%/*}${2}" ;;
16129     *  ) func_dirname_result="${3}" ;;
16130   esac
16131 }
16132
16133 # func_basename file
16134 func_basename ()
16135 {
16136   func_basename_result="${1##*/}"
16137 }
16138
16139 # func_dirname_and_basename file append nondir_replacement
16140 # perform func_basename and func_dirname in a single function
16141 # call:
16142 #   dirname:  Compute the dirname of FILE.  If nonempty,
16143 #             add APPEND to the result, otherwise set result
16144 #             to NONDIR_REPLACEMENT.
16145 #             value returned in "$func_dirname_result"
16146 #   basename: Compute filename of FILE.
16147 #             value retuned in "$func_basename_result"
16148 # Implementation must be kept synchronized with func_dirname
16149 # and func_basename. For efficiency, we do not delegate to
16150 # those functions but instead duplicate the functionality here.
16151 func_dirname_and_basename ()
16152 {
16153   case ${1} in
16154     */*) func_dirname_result="${1%/*}${2}" ;;
16155     *  ) func_dirname_result="${3}" ;;
16156   esac
16157   func_basename_result="${1##*/}"
16158 }
16159
16160 # func_stripname prefix suffix name
16161 # strip PREFIX and SUFFIX off of NAME.
16162 # PREFIX and SUFFIX must not contain globbing or regex special
16163 # characters, hashes, percent signs, but SUFFIX may contain a leading
16164 # dot (in which case that matches only a dot).
16165 func_stripname ()
16166 {
16167   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16168   # positional parameters, so assign one to ordinary parameter first.
16169   func_stripname_result=${3}
16170   func_stripname_result=${func_stripname_result#"${1}"}
16171   func_stripname_result=${func_stripname_result%"${2}"}
16172 }
16173
16174 # func_opt_split
16175 func_opt_split ()
16176 {
16177   func_opt_split_opt=${1%%=*}
16178   func_opt_split_arg=${1#*=}
16179 }
16180
16181 # func_lo2o object
16182 func_lo2o ()
16183 {
16184   case ${1} in
16185     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16186     *)    func_lo2o_result=${1} ;;
16187   esac
16188 }
16189
16190 # func_xform libobj-or-source
16191 func_xform ()
16192 {
16193   func_xform_result=${1%.*}.lo
16194 }
16195
16196 # func_arith arithmetic-term...
16197 func_arith ()
16198 {
16199   func_arith_result=$(( $* ))
16200 }
16201
16202 # func_len string
16203 # STRING may not start with a hyphen.
16204 func_len ()
16205 {
16206   func_len_result=${#1}
16207 }
16208
16209 _LT_EOF
16210     ;;
16211   *) # Bourne compatible functions.
16212     cat << \_LT_EOF >> "$cfgfile"
16213
16214 # func_dirname file append nondir_replacement
16215 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16216 # otherwise set result to NONDIR_REPLACEMENT.
16217 func_dirname ()
16218 {
16219   # Extract subdirectory from the argument.
16220   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16221   if test "X$func_dirname_result" = "X${1}"; then
16222     func_dirname_result="${3}"
16223   else
16224     func_dirname_result="$func_dirname_result${2}"
16225   fi
16226 }
16227
16228 # func_basename file
16229 func_basename ()
16230 {
16231   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16232 }
16233
16234
16235 # func_stripname prefix suffix name
16236 # strip PREFIX and SUFFIX off of NAME.
16237 # PREFIX and SUFFIX must not contain globbing or regex special
16238 # characters, hashes, percent signs, but SUFFIX may contain a leading
16239 # dot (in which case that matches only a dot).
16240 # func_strip_suffix prefix name
16241 func_stripname ()
16242 {
16243   case ${2} in
16244     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16245     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16246   esac
16247 }
16248
16249 # sed scripts:
16250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16251 my_sed_long_arg='1s/^-[^=]*=//'
16252
16253 # func_opt_split
16254 func_opt_split ()
16255 {
16256   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16257   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16258 }
16259
16260 # func_lo2o object
16261 func_lo2o ()
16262 {
16263   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16264 }
16265
16266 # func_xform libobj-or-source
16267 func_xform ()
16268 {
16269   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16270 }
16271
16272 # func_arith arithmetic-term...
16273 func_arith ()
16274 {
16275   func_arith_result=`expr "$@"`
16276 }
16277
16278 # func_len string
16279 # STRING may not start with a hyphen.
16280 func_len ()
16281 {
16282   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16283 }
16284
16285 _LT_EOF
16286 esac
16287
16288 case $lt_shell_append in
16289   yes)
16290     cat << \_LT_EOF >> "$cfgfile"
16291
16292 # func_append var value
16293 # Append VALUE to the end of shell variable VAR.
16294 func_append ()
16295 {
16296   eval "$1+=\$2"
16297 }
16298 _LT_EOF
16299     ;;
16300   *)
16301     cat << \_LT_EOF >> "$cfgfile"
16302
16303 # func_append var value
16304 # Append VALUE to the end of shell variable VAR.
16305 func_append ()
16306 {
16307   eval "$1=\$$1\$2"
16308 }
16309
16310 _LT_EOF
16311     ;;
16312   esac
16313
16314
16315   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16316     || (rm -f "$cfgfile"; exit 1)
16317
16318   mv -f "$cfgfile" "$ofile" ||
16319     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16320   chmod +x "$ofile"
16321
16322
16323     cat <<_LT_EOF >> "$ofile"
16324
16325 # ### BEGIN LIBTOOL TAG CONFIG: GO
16326
16327 # The linker used to build libraries.
16328 LD=$lt_LD_GO
16329
16330 # How to create reloadable object files.
16331 reload_flag=$lt_reload_flag_GO
16332 reload_cmds=$lt_reload_cmds_GO
16333
16334 # Commands used to build an old-style archive.
16335 old_archive_cmds=$lt_old_archive_cmds_GO
16336
16337 # A language specific compiler.
16338 CC=$lt_compiler_GO
16339
16340 # Is the compiler the GNU compiler?
16341 with_gcc=$GCC_GO
16342
16343 # Compiler flag to turn off builtin functions.
16344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16345
16346 # How to pass a linker flag through the compiler.
16347 wl=$lt_lt_prog_compiler_wl_GO
16348
16349 # Additional compiler flags for building library objects.
16350 pic_flag=$lt_lt_prog_compiler_pic_GO
16351
16352 # Compiler flag to prevent dynamic linking.
16353 link_static_flag=$lt_lt_prog_compiler_static_GO
16354
16355 # Does compiler simultaneously support -c and -o options?
16356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16357
16358 # Whether or not to add -lc for building shared libraries.
16359 build_libtool_need_lc=$archive_cmds_need_lc_GO
16360
16361 # Whether or not to disallow shared libs when runtime libs are static.
16362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16363
16364 # Compiler flag to allow reflexive dlopens.
16365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16366
16367 # Compiler flag to generate shared objects directly from archives.
16368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16369
16370 # Whether the compiler copes with passing no objects directly.
16371 compiler_needs_object=$lt_compiler_needs_object_GO
16372
16373 # Create an old-style archive from a shared archive.
16374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16375
16376 # Create a temporary old-style archive to link instead of a shared archive.
16377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16378
16379 # Commands used to build a shared archive.
16380 archive_cmds=$lt_archive_cmds_GO
16381 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16382
16383 # Commands used to build a loadable module if different from building
16384 # a shared archive.
16385 module_cmds=$lt_module_cmds_GO
16386 module_expsym_cmds=$lt_module_expsym_cmds_GO
16387
16388 # Whether we are building with GNU ld or not.
16389 with_gnu_ld=$lt_with_gnu_ld_GO
16390
16391 # Flag that allows shared libraries with undefined symbols to be built.
16392 allow_undefined_flag=$lt_allow_undefined_flag_GO
16393
16394 # Flag that enforces no undefined symbols.
16395 no_undefined_flag=$lt_no_undefined_flag_GO
16396
16397 # Flag to hardcode \$libdir into a binary during linking.
16398 # This must work even if \$libdir does not exist
16399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16400
16401 # If ld is used when linking, flag to hardcode \$libdir into a binary
16402 # during linking.  This must work even if \$libdir does not exist.
16403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16404
16405 # Whether we need a single "-rpath" flag with a separated argument.
16406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16407
16408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16409 # DIR into the resulting binary.
16410 hardcode_direct=$hardcode_direct_GO
16411
16412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16413 # DIR into the resulting binary and the resulting library dependency is
16414 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16415 # library is relocated.
16416 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16417
16418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16419 # into the resulting binary.
16420 hardcode_minus_L=$hardcode_minus_L_GO
16421
16422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16423 # into the resulting binary.
16424 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16425
16426 # Set to "yes" if building a shared library automatically hardcodes DIR
16427 # into the library and all subsequent libraries and executables linked
16428 # against it.
16429 hardcode_automatic=$hardcode_automatic_GO
16430
16431 # Set to yes if linker adds runtime paths of dependent libraries
16432 # to runtime path list.
16433 inherit_rpath=$inherit_rpath_GO
16434
16435 # Whether libtool must link a program against all its dependency libraries.
16436 link_all_deplibs=$link_all_deplibs_GO
16437
16438 # Fix the shell variable \$srcfile for the compiler.
16439 fix_srcfile_path=$lt_fix_srcfile_path_GO
16440
16441 # Set to "yes" if exported symbols are required.
16442 always_export_symbols=$always_export_symbols_GO
16443
16444 # The commands to list exported symbols.
16445 export_symbols_cmds=$lt_export_symbols_cmds_GO
16446
16447 # Symbols that should not be listed in the preloaded symbols.
16448 exclude_expsyms=$lt_exclude_expsyms_GO
16449
16450 # Symbols that must always be exported.
16451 include_expsyms=$lt_include_expsyms_GO
16452
16453 # Commands necessary for linking programs (against libraries) with templates.
16454 prelink_cmds=$lt_prelink_cmds_GO
16455
16456 # Specify filename containing input files.
16457 file_list_spec=$lt_file_list_spec_GO
16458
16459 # How to hardcode a shared library path into an executable.
16460 hardcode_action=$hardcode_action_GO
16461
16462 # ### END LIBTOOL TAG CONFIG: GO
16463 _LT_EOF
16464
16465  ;;
16466     "default":C) if test -n "$CONFIG_FILES"; then
16467    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16468    # that multilib installs will end up installed in the correct place.
16469    # The testsuite needs it for multilib-aware ABI baseline files.
16470    # To work around this not being passed down from config-ml.in ->
16471    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16472    # append it here.  Only modify Makefiles that have just been created.
16473    #
16474    # Also, get rid of this simulated-VPATH thing that automake does.
16475    cat > vpsed << \_EOF
16476 s!`test -f '$<' || echo '$(srcdir)/'`!!
16477 _EOF
16478    for i in $SUBDIRS; do
16479     case $CONFIG_FILES in
16480      *${i}/Makefile*)
16481        #echo "Adding MULTISUBDIR to $i/Makefile"
16482        sed -f vpsed $i/Makefile > tmp
16483        grep '^MULTISUBDIR =' Makefile >> tmp
16484        mv tmp $i/Makefile
16485        ;;
16486     esac
16487    done
16488    rm vpsed
16489  fi
16490  ;;
16491
16492   esac
16493 done # for ac_tag
16494
16495
16496 as_fn_exit 0
16497 _ACEOF
16498 ac_clean_files=$ac_clean_files_save
16499
16500 test $ac_write_fail = 0 ||
16501   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16502
16503
16504 # configure is writing to config.log, and then calls config.status.
16505 # config.status does its own redirection, appending to config.log.
16506 # Unfortunately, on DOS this fails, as config.log is still kept open
16507 # by configure, so config.status won't be able to write to it; its
16508 # output is simply discarded.  So we exec the FD to /dev/null,
16509 # effectively closing config.log, so it can be properly (re)opened and
16510 # appended to by config.status.  When coming back to configure, we
16511 # need to make the FD available again.
16512 if test "$no_create" != yes; then
16513   ac_cs_success=:
16514   ac_config_status_args=
16515   test "$silent" = yes &&
16516     ac_config_status_args="$ac_config_status_args --quiet"
16517   exec 5>/dev/null
16518   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16519   exec 5>>config.log
16520   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16521   # would make configure fail if this is the last instruction.
16522   $ac_cs_success || as_fn_exit $?
16523 fi
16524 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16525   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16526 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16527 fi
16528