OSDN Git Service

Preliminary framework for Solaris support.
[pf3gnuchains/gcc-fork.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 NET_LIBS
611 MATH_LIBS
612 USING_SPLIT_STACK_FALSE
613 USING_SPLIT_STACK_TRUE
614 SPLIT_STACK
615 GOARCH
616 LIBGO_IS_X86_64_FALSE
617 LIBGO_IS_X86_64_TRUE
618 LIBGO_IS_SPARCV9_FALSE
619 LIBGO_IS_SPARCV9_TRUE
620 LIBGO_IS_SPARC_FALSE
621 LIBGO_IS_SPARC_TRUE
622 LIBGO_IS_ARM_FALSE
623 LIBGO_IS_ARM_TRUE
624 LIBGO_IS_386_FALSE
625 LIBGO_IS_386_TRUE
626 GOOS
627 LIBGO_IS_SOLARIS_FALSE
628 LIBGO_IS_SOLARIS_TRUE
629 LIBGO_IS_RTEMS_FALSE
630 LIBGO_IS_RTEMS_TRUE
631 LIBGO_IS_LINUX_FALSE
632 LIBGO_IS_LINUX_TRUE
633 LIBGO_IS_FREEBSD_FALSE
634 LIBGO_IS_FREEBSD_TRUE
635 LIBGO_IS_DARWIN_FALSE
636 LIBGO_IS_DARWIN_TRUE
637 LIBFFIINCS
638 LIBFFI
639 glibgo_toolexeclibdir
640 glibgo_toolexecdir
641 glibgo_prefixdir
642 WERROR
643 WARN_FLAGS
644 enable_static
645 enable_shared
646 CPP
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 AR
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LIBTOOL
659 OBJCOPY
660 RANLIB
661 LD
662 FGREP
663 EGREP
664 GREP
665 SED
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 GOCFLAGS
670 GOC
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 multi_basedir
723 libtool_VERSION
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_multilib
766 enable_dependency_tracking
767 enable_maintainer_mode
768 with_gnu_ld
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 enable_libtool_lock
774 enable_version_specific_runtime_libs
775 with_libffi
776 with_system_libunwind
777 '
778       ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CPP
782 CPPFLAGS'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837   # If the previous option needs an argument, assign it.
838   if test -n "$ac_prev"; then
839     eval $ac_prev=\$ac_option
840     ac_prev=
841     continue
842   fi
843
844   case $ac_option in
845   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846   *)    ac_optarg=yes ;;
847   esac
848
849   # Accept the important Cygnus configure options, so we can diagnose typos.
850
851   case $ac_dashdash$ac_option in
852   --)
853     ac_dashdash=yes ;;
854
855   -bindir | --bindir | --bindi | --bind | --bin | --bi)
856     ac_prev=bindir ;;
857   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858     bindir=$ac_optarg ;;
859
860   -build | --build | --buil | --bui | --bu)
861     ac_prev=build_alias ;;
862   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863     build_alias=$ac_optarg ;;
864
865   -cache-file | --cache-file | --cache-fil | --cache-fi \
866   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867     ac_prev=cache_file ;;
868   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870     cache_file=$ac_optarg ;;
871
872   --config-cache | -C)
873     cache_file=config.cache ;;
874
875   -datadir | --datadir | --datadi | --datad)
876     ac_prev=datadir ;;
877   -datadir=* | --datadir=* | --datadi=* | --datad=*)
878     datadir=$ac_optarg ;;
879
880   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881   | --dataroo | --dataro | --datar)
882     ac_prev=datarootdir ;;
883   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885     datarootdir=$ac_optarg ;;
886
887   -disable-* | --disable-*)
888     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889     # Reject names that are not valid shell variable names.
890     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891       as_fn_error "invalid feature name: $ac_useropt"
892     ac_useropt_orig=$ac_useropt
893     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894     case $ac_user_opts in
895       *"
896 "enable_$ac_useropt"
897 "*) ;;
898       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899          ac_unrecognized_sep=', ';;
900     esac
901     eval enable_$ac_useropt=no ;;
902
903   -docdir | --docdir | --docdi | --doc | --do)
904     ac_prev=docdir ;;
905   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906     docdir=$ac_optarg ;;
907
908   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909     ac_prev=dvidir ;;
910   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911     dvidir=$ac_optarg ;;
912
913   -enable-* | --enable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=\$ac_optarg ;;
928
929   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931   | --exec | --exe | --ex)
932     ac_prev=exec_prefix ;;
933   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935   | --exec=* | --exe=* | --ex=*)
936     exec_prefix=$ac_optarg ;;
937
938   -gas | --gas | --ga | --g)
939     # Obsolete; use --with-gas.
940     with_gas=yes ;;
941
942   -help | --help | --hel | --he | -h)
943     ac_init_help=long ;;
944   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945     ac_init_help=recursive ;;
946   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947     ac_init_help=short ;;
948
949   -host | --host | --hos | --ho)
950     ac_prev=host_alias ;;
951   -host=* | --host=* | --hos=* | --ho=*)
952     host_alias=$ac_optarg ;;
953
954   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955     ac_prev=htmldir ;;
956   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957   | --ht=*)
958     htmldir=$ac_optarg ;;
959
960   -includedir | --includedir | --includedi | --included | --include \
961   | --includ | --inclu | --incl | --inc)
962     ac_prev=includedir ;;
963   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964   | --includ=* | --inclu=* | --incl=* | --inc=*)
965     includedir=$ac_optarg ;;
966
967   -infodir | --infodir | --infodi | --infod | --info | --inf)
968     ac_prev=infodir ;;
969   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970     infodir=$ac_optarg ;;
971
972   -libdir | --libdir | --libdi | --libd)
973     ac_prev=libdir ;;
974   -libdir=* | --libdir=* | --libdi=* | --libd=*)
975     libdir=$ac_optarg ;;
976
977   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978   | --libexe | --libex | --libe)
979     ac_prev=libexecdir ;;
980   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981   | --libexe=* | --libex=* | --libe=*)
982     libexecdir=$ac_optarg ;;
983
984   -localedir | --localedir | --localedi | --localed | --locale)
985     ac_prev=localedir ;;
986   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987     localedir=$ac_optarg ;;
988
989   -localstatedir | --localstatedir | --localstatedi | --localstated \
990   | --localstate | --localstat | --localsta | --localst | --locals)
991     ac_prev=localstatedir ;;
992   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994     localstatedir=$ac_optarg ;;
995
996   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997     ac_prev=mandir ;;
998   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999     mandir=$ac_optarg ;;
1000
1001   -nfp | --nfp | --nf)
1002     # Obsolete; use --without-fp.
1003     with_fp=no ;;
1004
1005   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006   | --no-cr | --no-c | -n)
1007     no_create=yes ;;
1008
1009   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011     no_recursion=yes ;;
1012
1013   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015   | --oldin | --oldi | --old | --ol | --o)
1016     ac_prev=oldincludedir ;;
1017   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020     oldincludedir=$ac_optarg ;;
1021
1022   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023     ac_prev=prefix ;;
1024   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025     prefix=$ac_optarg ;;
1026
1027   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028   | --program-pre | --program-pr | --program-p)
1029     ac_prev=program_prefix ;;
1030   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032     program_prefix=$ac_optarg ;;
1033
1034   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035   | --program-suf | --program-su | --program-s)
1036     ac_prev=program_suffix ;;
1037   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039     program_suffix=$ac_optarg ;;
1040
1041   -program-transform-name | --program-transform-name \
1042   | --program-transform-nam | --program-transform-na \
1043   | --program-transform-n | --program-transform- \
1044   | --program-transform | --program-transfor \
1045   | --program-transfo | --program-transf \
1046   | --program-trans | --program-tran \
1047   | --progr-tra | --program-tr | --program-t)
1048     ac_prev=program_transform_name ;;
1049   -program-transform-name=* | --program-transform-name=* \
1050   | --program-transform-nam=* | --program-transform-na=* \
1051   | --program-transform-n=* | --program-transform-=* \
1052   | --program-transform=* | --program-transfor=* \
1053   | --program-transfo=* | --program-transf=* \
1054   | --program-trans=* | --program-tran=* \
1055   | --progr-tra=* | --program-tr=* | --program-t=*)
1056     program_transform_name=$ac_optarg ;;
1057
1058   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059     ac_prev=pdfdir ;;
1060   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061     pdfdir=$ac_optarg ;;
1062
1063   -psdir | --psdir | --psdi | --psd | --ps)
1064     ac_prev=psdir ;;
1065   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066     psdir=$ac_optarg ;;
1067
1068   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069   | -silent | --silent | --silen | --sile | --sil)
1070     silent=yes ;;
1071
1072   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073     ac_prev=sbindir ;;
1074   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075   | --sbi=* | --sb=*)
1076     sbindir=$ac_optarg ;;
1077
1078   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080   | --sharedst | --shareds | --shared | --share | --shar \
1081   | --sha | --sh)
1082     ac_prev=sharedstatedir ;;
1083   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086   | --sha=* | --sh=*)
1087     sharedstatedir=$ac_optarg ;;
1088
1089   -site | --site | --sit)
1090     ac_prev=site ;;
1091   -site=* | --site=* | --sit=*)
1092     site=$ac_optarg ;;
1093
1094   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095     ac_prev=srcdir ;;
1096   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097     srcdir=$ac_optarg ;;
1098
1099   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100   | --syscon | --sysco | --sysc | --sys | --sy)
1101     ac_prev=sysconfdir ;;
1102   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104     sysconfdir=$ac_optarg ;;
1105
1106   -target | --target | --targe | --targ | --tar | --ta | --t)
1107     ac_prev=target_alias ;;
1108   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109     target_alias=$ac_optarg ;;
1110
1111   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112     verbose=yes ;;
1113
1114   -version | --version | --versio | --versi | --vers | -V)
1115     ac_init_version=: ;;
1116
1117   -with-* | --with-*)
1118     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121       as_fn_error "invalid package name: $ac_useropt"
1122     ac_useropt_orig=$ac_useropt
1123     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124     case $ac_user_opts in
1125       *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129          ac_unrecognized_sep=', ';;
1130     esac
1131     eval with_$ac_useropt=\$ac_optarg ;;
1132
1133   -without-* | --without-*)
1134     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137       as_fn_error "invalid package name: $ac_useropt"
1138     ac_useropt_orig=$ac_useropt
1139     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140     case $ac_user_opts in
1141       *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145          ac_unrecognized_sep=', ';;
1146     esac
1147     eval with_$ac_useropt=no ;;
1148
1149   --x)
1150     # Obsolete; use --with-x.
1151     with_x=yes ;;
1152
1153   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154   | --x-incl | --x-inc | --x-in | --x-i)
1155     ac_prev=x_includes ;;
1156   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158     x_includes=$ac_optarg ;;
1159
1160   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162     ac_prev=x_libraries ;;
1163   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165     x_libraries=$ac_optarg ;;
1166
1167   -*) as_fn_error "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information."
1169     ;;
1170
1171   *=*)
1172     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173     # Reject names that are not valid shell variable names.
1174     case $ac_envvar in #(
1175       '' | [0-9]* | *[!_$as_cr_alnum]* )
1176       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1177     esac
1178     eval $ac_envvar=\$ac_optarg
1179     export $ac_envvar ;;
1180
1181   *)
1182     # FIXME: should be removed in autoconf 3.0.
1183     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187     ;;
1188
1189   esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194   as_fn_error "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198   case $enable_option_checking in
1199     no) ;;
1200     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1201     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202   esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   # Remove trailing slashes.
1213   case $ac_val in
1214     */ )
1215       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216       eval $ac_var=\$ac_val;;
1217   esac
1218   # Be sure to have absolute directory names.
1219   case $ac_val in
1220     [\\/$]* | ?:[\\/]* )  continue;;
1221     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222   esac
1223   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235   if test "x$build_alias" = x; then
1236     cross_compiling=maybe
1237     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238     If a cross compiler is detected then cross compile mode will be used." >&2
1239   elif test "x$build_alias" != "x$host_alias"; then
1240     cross_compiling=yes
1241   fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253   as_fn_error "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255   as_fn_error "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260   ac_srcdir_defaulted=yes
1261   # Try the directory containing this script, then the parent directory.
1262   ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264          X"$as_myself" : 'X\(//\)[^/]' \| \
1265          X"$as_myself" : 'X\(//\)$' \| \
1266          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)[^/].*/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\).*/{
1281             s//\1/
1282             q
1283           }
1284           s/.*/./; q'`
1285   srcdir=$ac_confdir
1286   if test ! -r "$srcdir/$ac_unique_file"; then
1287     srcdir=..
1288   fi
1289 else
1290   ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1299         pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302   srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_env_${ac_var}_value=\$${ac_var}
1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321   # Omit some internal or obsolete options to make the list less imposing.
1322   # This message is too long to be a string in the A/UX 3.1 sh.
1323   cat <<_ACEOF
1324 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334   -h, --help              display this help and exit
1335       --help=short        display options specific to this package
1336       --help=recursive    display the short help of all the included packages
1337   -V, --version           display version information and exit
1338   -q, --quiet, --silent   do not print \`checking...' messages
1339       --cache-file=FILE   cache test results in FILE [disabled]
1340   -C, --config-cache      alias for \`--cache-file=config.cache'
1341   -n, --no-create         do not create output files
1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345   --prefix=PREFIX         install architecture-independent files in PREFIX
1346                           [$ac_default_prefix]
1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                           [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358   --bindir=DIR            user executables [EPREFIX/bin]
1359   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360   --libexecdir=DIR        program executables [EPREFIX/libexec]
1361   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364   --libdir=DIR            object code libraries [EPREFIX/lib]
1365   --includedir=DIR        C header files [PREFIX/include]
1366   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369   --infodir=DIR           info documentation [DATAROOTDIR/info]
1370   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371   --mandir=DIR            man documentation [DATAROOTDIR/man]
1372   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1373   --htmldir=DIR           html documentation [DOCDIR]
1374   --dvidir=DIR            dvi documentation [DOCDIR]
1375   --pdfdir=DIR            pdf documentation [DOCDIR]
1376   --psdir=DIR             ps documentation [DOCDIR]
1377 _ACEOF
1378
1379   cat <<\_ACEOF
1380
1381 Program names:
1382   --program-prefix=PREFIX            prepend PREFIX to installed program names
1383   --program-suffix=SUFFIX            append SUFFIX to installed program names
1384   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386 System types:
1387   --build=BUILD     configure for building on BUILD [guessed]
1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389   --target=TARGET   configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of package-unused version-unused:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-option-checking  ignore unrecognized --enable/--with options
1401   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403   --enable-multilib       build many library versions (default)
1404   --disable-dependency-tracking  speeds up one-time build
1405   --enable-dependency-tracking   do not reject slow dependency extractors
1406   --enable-maintainer-mode  enable make rules and dependencies not useful
1407                           (and sometimes confusing) to the casual installer
1408   --enable-shared[=PKGS]  build shared libraries [default=yes]
1409   --enable-static[=PKGS]  build static libraries [default=yes]
1410   --enable-fast-install[=PKGS]
1411                           optimize for fast installation [default=yes]
1412   --disable-libtool-lock  avoid locking (might break parallel builds)
1413   --enable-version-specific-runtime-libs
1414                           Specify that runtime libraries should be installed
1415                           in a compiler-specific directory
1416
1417 Optional Packages:
1418   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1419   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1420   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1421   --with-pic              try to use only PIC/non-PIC objects [default=use
1422                           both]
1423   --without-libffi        don't use libffi
1424   --with-system-libunwind use installed libunwind
1425
1426 Some influential environment variables:
1427   CC          C compiler command
1428   CFLAGS      C compiler flags
1429   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1430               nonstandard directory <lib dir>
1431   LIBS        libraries to pass to the linker, e.g. -l<library>
1432   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1433               you have headers in a nonstandard directory <include dir>
1434   GOC         Go compiler command
1435   GOCFLAGS    Go compiler flags
1436   CPP         C preprocessor
1437
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1440
1441 Report bugs to the package provider.
1442 _ACEOF
1443 ac_status=$?
1444 fi
1445
1446 if test "$ac_init_help" = "recursive"; then
1447   # If there are subdirs, report their specific --help.
1448   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449     test -d "$ac_dir" ||
1450       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451       continue
1452     ac_builddir=.
1453
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *)
1457   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458   # A ".." for each directory in $ac_dir_suffix.
1459   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460   case $ac_top_builddir_sub in
1461   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463   esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1469
1470 case $srcdir in
1471   .)  # We are building in place.
1472     ac_srcdir=.
1473     ac_top_srcdir=$ac_top_builddir_sub
1474     ac_abs_top_srcdir=$ac_pwd ;;
1475   [\\/]* | ?:[\\/]* )  # Absolute name.
1476     ac_srcdir=$srcdir$ac_dir_suffix;
1477     ac_top_srcdir=$srcdir
1478     ac_abs_top_srcdir=$srcdir ;;
1479   *) # Relative name.
1480     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481     ac_top_srcdir=$ac_top_build_prefix$srcdir
1482     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486     cd "$ac_dir" || { ac_status=$?; continue; }
1487     # Check for guested configure.
1488     if test -f "$ac_srcdir/configure.gnu"; then
1489       echo &&
1490       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491     elif test -f "$ac_srcdir/configure"; then
1492       echo &&
1493       $SHELL "$ac_srcdir/configure" --help=recursive
1494     else
1495       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496     fi || ac_status=$?
1497     cd "$ac_pwd" || { ac_status=$?; break; }
1498   done
1499 fi
1500
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503   cat <<\_ACEOF
1504 package-unused configure version-unused
1505 generated by GNU Autoconf 2.64
1506
1507 Copyright (C) 2009 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511   exit
1512 fi
1513
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1517
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1522 {
1523   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524   rm -f conftest.$ac_objext
1525   if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528   *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532   (eval "$ac_compile") 2>conftest.err
1533   ac_status=$?
1534   if test -s conftest.err; then
1535     grep -v '^ *+' conftest.err >conftest.er1
1536     cat conftest.er1 >&5
1537     mv -f conftest.er1 conftest.err
1538   fi
1539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540   test $ac_status = 0; } && {
1541          test -z "$ac_c_werror_flag" ||
1542          test ! -s conftest.err
1543        } && test -s conftest.$ac_objext; then :
1544   ac_retval=0
1545 else
1546   $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549         ac_retval=1
1550 fi
1551   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552   return $ac_retval
1553
1554 } # ac_fn_c_try_compile
1555
1556 # ac_fn_c_try_link LINENO
1557 # -----------------------
1558 # Try to link conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_link ()
1560 {
1561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562   rm -f conftest.$ac_objext conftest$ac_exeext
1563   if { { ac_try="$ac_link"
1564 case "(($ac_try" in
1565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566   *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570   (eval "$ac_link") 2>conftest.err
1571   ac_status=$?
1572   if test -s conftest.err; then
1573     grep -v '^ *+' conftest.err >conftest.er1
1574     cat conftest.er1 >&5
1575     mv -f conftest.er1 conftest.err
1576   fi
1577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578   test $ac_status = 0; } && {
1579          test -z "$ac_c_werror_flag" ||
1580          test ! -s conftest.err
1581        } && test -s conftest$ac_exeext && {
1582          test "$cross_compiling" = yes ||
1583          $as_test_x conftest$ac_exeext
1584        }; then :
1585   ac_retval=0
1586 else
1587   $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590         ac_retval=1
1591 fi
1592   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594   # interfere with the next link command; also delete a directory that is
1595   # left behind by Apple's compiler.  We do this before executing the actions.
1596   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598   return $ac_retval
1599
1600 } # ac_fn_c_try_link
1601
1602 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists and can be compiled using the include files in
1605 # INCLUDES, setting the cache variable VAR accordingly.
1606 ac_fn_c_check_header_compile ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1612   $as_echo_n "(cached) " >&6
1613 else
1614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h.  */
1616 $4
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620   eval "$3=yes"
1621 else
1622   eval "$3=no"
1623 fi
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 fi
1626 eval ac_res=\$$3
1627                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1630
1631 } # ac_fn_c_check_header_compile
1632
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_cpp ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642   *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647   ac_status=$?
1648   if test -s conftest.err; then
1649     grep -v '^ *+' conftest.err >conftest.er1
1650     cat conftest.er1 >&5
1651     mv -f conftest.er1 conftest.err
1652   fi
1653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654   test $ac_status = 0; } >/dev/null && {
1655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656          test ! -s conftest.err
1657        }; then :
1658   ac_retval=0
1659 else
1660   $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663     ac_retval=1
1664 fi
1665   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666   return $ac_retval
1667
1668 } # ac_fn_c_try_cpp
1669
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680   *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684   (eval "$ac_link") 2>&5
1685   ac_status=$?
1686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688   { { case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_try") 2>&5
1695   ac_status=$?
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; }; }; then :
1698   ac_retval=0
1699 else
1700   $as_echo "$as_me: program exited with status $ac_status" >&5
1701        $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704        ac_retval=$ac_status
1705 fi
1706   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708   return $ac_retval
1709
1710 } # ac_fn_c_try_run
1711
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721   $as_echo_n "(cached) " >&6
1722 else
1723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h.  */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730     which can conflict with char $2 (); below.
1731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732     <limits.h> exists even on freestanding compilers.  */
1733
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1739
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743    Use char because int might match the return type of a GCC
1744    builtin and then its argument prototype would still apply.  */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750     to always fail with ENOSYS.  Some functions are actually named
1751     something starting with __ and the normal name is an alias.  */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main ()
1758 {
1759 return $2 ();
1760   ;
1761   return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765   eval "$3=yes"
1766 else
1767   eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext \
1770     conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776
1777 } # ac_fn_c_check_func
1778
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_header_mongrel ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791   $as_echo_n "(cached) " >&6
1792 fi
1793 eval ac_res=\$$3
1794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 else
1797   # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806   ac_header_compiler=yes
1807 else
1808   ac_header_compiler=no
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1813
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h.  */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822   ac_header_preproc=yes
1823 else
1824   ac_header_preproc=no
1825 fi
1826 rm -f conftest.err conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1829
1830 # So?  What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832   yes:no: )
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837     ;;
1838   no:yes:* )
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849     ;;
1850 esac
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   eval "$3=\$ac_header_compiler"
1857 fi
1858 eval ac_res=\$$3
1859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 fi
1862   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864 } # ac_fn_c_check_header_mongrel
1865
1866 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1867 # -------------------------------------------
1868 # Tests whether TYPE exists after having included INCLUDES, setting cache
1869 # variable VAR accordingly.
1870 ac_fn_c_check_type ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876   $as_echo_n "(cached) " >&6
1877 else
1878   eval "$3=no"
1879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h.  */
1881 $4
1882 int
1883 main ()
1884 {
1885 if (sizeof ($2))
1886          return 0;
1887   ;
1888   return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h.  */
1894 $4
1895 int
1896 main ()
1897 {
1898 if (sizeof (($2)))
1899             return 0;
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905
1906 else
1907   eval "$3=yes"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918 } # ac_fn_c_check_type
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1922
1923 It was created by package-unused $as_me version-unused, which was
1924 generated by GNU Autoconf 2.64.  Invocation command line was
1925
1926   $ $0 $@
1927
1928 _ACEOF
1929 exec 5>>config.log
1930 {
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1935
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1944
1945 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1946 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1949 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1950 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1951 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1952
1953 _ASUNAME
1954
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958   IFS=$as_save_IFS
1959   test -z "$as_dir" && as_dir=.
1960     $as_echo "PATH: $as_dir"
1961   done
1962 IFS=$as_save_IFS
1963
1964 } >&5
1965
1966 cat >&5 <<_ACEOF
1967
1968
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1972
1973 _ACEOF
1974
1975
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1986 do
1987   for ac_arg
1988   do
1989     case $ac_arg in
1990     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992     | -silent | --silent | --silen | --sile | --sil)
1993       continue ;;
1994     *\'*)
1995       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996     esac
1997     case $ac_pass in
1998     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999     2)
2000       as_fn_append ac_configure_args1 " '$ac_arg'"
2001       if test $ac_must_keep_next = true; then
2002         ac_must_keep_next=false # Got value, back to normal.
2003       else
2004         case $ac_arg in
2005           *=* | --config-cache | -C | -disable-* | --disable-* \
2006           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008           | -with-* | --with-* | -without-* | --without-* | --x)
2009             case "$ac_configure_args0 " in
2010               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011             esac
2012             ;;
2013           -* ) ac_must_keep_next=true ;;
2014         esac
2015       fi
2016       as_fn_append ac_configure_args " '$ac_arg'"
2017       ;;
2018     esac
2019   done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2023
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log.  We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030   # Save into config.log some information that might help in debugging.
2031   {
2032     echo
2033
2034     cat <<\_ASBOX
2035 ## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##
2038 _ASBOX
2039     echo
2040     # The following way of writing the cache mishandles newlines in values,
2041 (
2042   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043     eval ac_val=\$$ac_var
2044     case $ac_val in #(
2045     *${as_nl}*)
2046       case $ac_var in #(
2047       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049       esac
2050       case $ac_var in #(
2051       _ | IFS | as_nl) ;; #(
2052       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053       *) { eval $ac_var=; unset $ac_var;} ;;
2054       esac ;;
2055     esac
2056   done
2057   (set) 2>&1 |
2058     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059     *${as_nl}ac_space=\ *)
2060       sed -n \
2061         "s/'\''/'\''\\\\'\'''\''/g;
2062           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063       ;; #(
2064     *)
2065       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066       ;;
2067     esac |
2068     sort
2069 )
2070     echo
2071
2072     cat <<\_ASBOX
2073 ## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##
2076 _ASBOX
2077     echo
2078     for ac_var in $ac_subst_vars
2079     do
2080       eval ac_val=\$$ac_var
2081       case $ac_val in
2082       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083       esac
2084       $as_echo "$ac_var='\''$ac_val'\''"
2085     done | sort
2086     echo
2087
2088     if test -n "$ac_subst_files"; then
2089       cat <<\_ASBOX
2090 ## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##
2093 _ASBOX
2094       echo
2095       for ac_var in $ac_subst_files
2096       do
2097         eval ac_val=\$$ac_var
2098         case $ac_val in
2099         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100         esac
2101         $as_echo "$ac_var='\''$ac_val'\''"
2102       done | sort
2103       echo
2104     fi
2105
2106     if test -s confdefs.h; then
2107       cat <<\_ASBOX
2108 ## ----------- ##
2109 ## confdefs.h. ##
2110 ## ----------- ##
2111 _ASBOX
2112       echo
2113       cat confdefs.h
2114       echo
2115     fi
2116     test "$ac_signal" != 0 &&
2117       $as_echo "$as_me: caught signal $ac_signal"
2118     $as_echo "$as_me: exit $exit_status"
2119   } >&5
2120   rm -f core *.core core.conftest.* &&
2121     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122     exit $exit_status
2123 ' 0
2124 for ac_signal in 1 2 13 15; do
2125   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2128
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2131
2132 $as_echo "/* confdefs.h */" > confdefs.h
2133
2134 # Predefined preprocessor variables.
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166   ac_site_file1=$CONFIG_SITE
2167 elif test "x$prefix" != xNONE; then
2168   ac_site_file1=$prefix/share/config.site
2169   ac_site_file2=$prefix/etc/config.site
2170 else
2171   ac_site_file1=$ac_default_prefix/share/config.site
2172   ac_site_file2=$ac_default_prefix/etc/config.site
2173 fi
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2175 do
2176   test "x$ac_site_file" = xNONE && continue
2177   if test -r "$ac_site_file"; then
2178     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180     sed 's/^/| /' "$ac_site_file" >&5
2181     . "$ac_site_file"
2182   fi
2183 done
2184
2185 if test -r "$cache_file"; then
2186   # Some versions of bash will fail to source /dev/null (special
2187   # files actually), so we avoid doing that.
2188   if test -f "$cache_file"; then
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 $as_echo "$as_me: loading cache $cache_file" >&6;}
2191     case $cache_file in
2192       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193       *)                      . "./$cache_file";;
2194     esac
2195   fi
2196 else
2197   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199   >$cache_file
2200 fi
2201
2202 # Check that the precious variables saved in the cache have kept the same
2203 # value.
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207   eval ac_new_set=\$ac_env_${ac_var}_set
2208   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209   eval ac_new_val=\$ac_env_${ac_var}_value
2210   case $ac_old_set,$ac_new_set in
2211     set,)
2212       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214       ac_cache_corrupted=: ;;
2215     ,set)
2216       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218       ac_cache_corrupted=: ;;
2219     ,);;
2220     *)
2221       if test "x$ac_old_val" != "x$ac_new_val"; then
2222         # differences in whitespace do not lead to failure.
2223         ac_old_val_w=`echo x $ac_old_val`
2224         ac_new_val_w=`echo x $ac_new_val`
2225         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228           ac_cache_corrupted=:
2229         else
2230           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232           eval $ac_var=\$ac_old_val
2233         fi
2234         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2235 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2236         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2238       fi;;
2239   esac
2240   # Pass precious variables to config.status.
2241   if test "$ac_new_set" = set; then
2242     case $ac_new_val in
2243     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244     *) ac_arg=$ac_var=$ac_new_val ;;
2245     esac
2246     case " $ac_configure_args " in
2247       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2248       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249     esac
2250   fi
2251 done
2252 if $ac_cache_corrupted; then
2253   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2258 fi
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2262
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268
2269
2270
2271
2272
2273
2274 ac_config_headers="$ac_config_headers config.h"
2275
2276
2277 libtool_VERSION=1:0:0
2278
2279
2280 # Default to --enable-multilib
2281 # Check whether --enable-multilib was given.
2282 if test "${enable_multilib+set}" = set; then :
2283   enableval=$enable_multilib; case "$enableval" in
2284   yes) multilib=yes ;;
2285   no)  multilib=no ;;
2286   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2287  esac
2288 else
2289   multilib=yes
2290 fi
2291
2292
2293 # We may get other options which we leave undocumented:
2294 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2295 # See config-ml.in if you want the gory details.
2296
2297 if test "$srcdir" = "."; then
2298   if test "$with_target_subdir" != "."; then
2299     multi_basedir="$srcdir/$with_multisrctop../.."
2300   else
2301     multi_basedir="$srcdir/$with_multisrctop.."
2302   fi
2303 else
2304   multi_basedir="$srcdir/.."
2305 fi
2306
2307
2308 # Even if the default multilib is not a cross compilation,
2309 # it may be that some of the other multilibs are.
2310 if test $cross_compiling = no && test $multilib = yes \
2311    && test "x${with_multisubdir}" != x ; then
2312    cross_compiling=maybe
2313 fi
2314
2315 ac_config_commands="$ac_config_commands default-1"
2316
2317
2318 ac_aux_dir=
2319 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2320   for ac_t in install-sh install.sh shtool; do
2321     if test -f "$ac_dir/$ac_t"; then
2322       ac_aux_dir=$ac_dir
2323       ac_install_sh="$ac_aux_dir/$ac_t -c"
2324       break 2
2325     fi
2326   done
2327 done
2328 if test -z "$ac_aux_dir"; then
2329   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2330 fi
2331
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2339
2340
2341 # Make sure we can run config.sub.
2342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346 $as_echo_n "checking build system type... " >&6; }
2347 if test "${ac_cv_build+set}" = set; then :
2348   $as_echo_n "(cached) " >&6
2349 else
2350   ac_build_alias=$build_alias
2351 test "x$ac_build_alias" = x &&
2352   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353 test "x$ac_build_alias" = x &&
2354   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2357
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2362 *-*-*) ;;
2363 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2364 esac
2365 build=$ac_cv_build
2366 ac_save_IFS=$IFS; IFS='-'
2367 set x $ac_cv_build
2368 shift
2369 build_cpu=$1
2370 build_vendor=$2
2371 shift; shift
2372 # Remember, the first character of IFS is used to create $*,
2373 # except with old shells:
2374 build_os=$*
2375 IFS=$ac_save_IFS
2376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2377
2378
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380 $as_echo_n "checking host system type... " >&6; }
2381 if test "${ac_cv_host+set}" = set; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   if test "x$host_alias" = x; then
2385   ac_cv_host=$ac_cv_build
2386 else
2387   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2388     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2389 fi
2390
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393 $as_echo "$ac_cv_host" >&6; }
2394 case $ac_cv_host in
2395 *-*-*) ;;
2396 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2397 esac
2398 host=$ac_cv_host
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_host
2401 shift
2402 host_cpu=$1
2403 host_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 host_os=$*
2408 IFS=$ac_save_IFS
2409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2410
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413 $as_echo_n "checking target system type... " >&6; }
2414 if test "${ac_cv_target+set}" = set; then :
2415   $as_echo_n "(cached) " >&6
2416 else
2417   if test "x$target_alias" = x; then
2418   ac_cv_target=$ac_cv_host
2419 else
2420   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2421     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2422 fi
2423
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426 $as_echo "$ac_cv_target" >&6; }
2427 case $ac_cv_target in
2428 *-*-*) ;;
2429 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2430 esac
2431 target=$ac_cv_target
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_target
2434 shift
2435 target_cpu=$1
2436 target_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 target_os=$*
2441 IFS=$ac_save_IFS
2442 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2443
2444
2445 # The aliases save the names the user supplied, while $host etc.
2446 # will get canonicalized.
2447 test -n "$target_alias" &&
2448   test "$program_prefix$program_suffix$program_transform_name" = \
2449     NONENONEs,x,x, &&
2450   program_prefix=${target_alias}-
2451
2452 target_alias=${target_alias-$host_alias}
2453
2454 am__api_version='1.11'
2455
2456 # Find a good install program.  We prefer a C program (faster),
2457 # so one script is as good as another.  But avoid the broken or
2458 # incompatible versions:
2459 # SysV /etc/install, /usr/sbin/install
2460 # SunOS /usr/etc/install
2461 # IRIX /sbin/install
2462 # AIX /bin/install
2463 # AmigaOS /C/install, which installs bootblocks on floppy discs
2464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2467 # OS/2's system install, which has a completely different semantic
2468 # ./install, which can be erroneously created by make from ./install.sh.
2469 # Reject install programs that cannot install multiple files.
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2471 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2472 if test -z "$INSTALL"; then
2473 if test "${ac_cv_path_install+set}" = set; then :
2474   $as_echo_n "(cached) " >&6
2475 else
2476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481     # Account for people who put trailing slashes in PATH elements.
2482 case $as_dir/ in #((
2483   ./ | .// | /[cC]/* | \
2484   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2485   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2486   /usr/ucb/* ) ;;
2487   *)
2488     # OSF1 and SCO ODT 3.0 have their own names for install.
2489     # Don't use installbsd from OSF since it installs stuff as root
2490     # by default.
2491     for ac_prog in ginstall scoinst install; do
2492       for ac_exec_ext in '' $ac_executable_extensions; do
2493         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2494           if test $ac_prog = install &&
2495             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496             # AIX install.  It has an incompatible calling convention.
2497             :
2498           elif test $ac_prog = install &&
2499             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2500             # program-specific install script used by HP pwplus--don't use.
2501             :
2502           else
2503             rm -rf conftest.one conftest.two conftest.dir
2504             echo one > conftest.one
2505             echo two > conftest.two
2506             mkdir conftest.dir
2507             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2508               test -s conftest.one && test -s conftest.two &&
2509               test -s conftest.dir/conftest.one &&
2510               test -s conftest.dir/conftest.two
2511             then
2512               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513               break 3
2514             fi
2515           fi
2516         fi
2517       done
2518     done
2519     ;;
2520 esac
2521
2522   done
2523 IFS=$as_save_IFS
2524
2525 rm -rf conftest.one conftest.two conftest.dir
2526
2527 fi
2528   if test "${ac_cv_path_install+set}" = set; then
2529     INSTALL=$ac_cv_path_install
2530   else
2531     # As a last resort, use the slow shell script.  Don't cache a
2532     # value for INSTALL within a source directory, because that will
2533     # break other packages using the cache if that directory is
2534     # removed, or if the value is a relative name.
2535     INSTALL=$ac_install_sh
2536   fi
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2539 $as_echo "$INSTALL" >&6; }
2540
2541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542 # It thinks the first close brace ends the variable substitution.
2543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2544
2545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2546
2547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2548
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2550 $as_echo_n "checking whether build environment is sane... " >&6; }
2551 # Just in case
2552 sleep 1
2553 echo timestamp > conftest.file
2554 # Reject unsafe characters in $srcdir or the absolute working directory
2555 # name.  Accept space and tab only in the latter.
2556 am_lf='
2557 '
2558 case `pwd` in
2559   *[\\\"\#\$\&\'\`$am_lf]*)
2560     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2561 esac
2562 case $srcdir in
2563   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2564     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2565 esac
2566
2567 # Do `set' in a subshell so we don't clobber the current shell's
2568 # arguments.  Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2571 # directory).
2572 if (
2573    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2574    if test "$*" = "X"; then
2575       # -L didn't work.
2576       set X `ls -t "$srcdir/configure" conftest.file`
2577    fi
2578    rm -f conftest.file
2579    if test "$*" != "X $srcdir/configure conftest.file" \
2580       && test "$*" != "X conftest.file $srcdir/configure"; then
2581
2582       # If neither matched, then we have a broken ls.  This can happen
2583       # if, for instance, CONFIG_SHELL is bash and it inherits a
2584       # broken ls alias from the environment.  This has actually
2585       # happened.  Such a system could not be considered "sane".
2586       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2587 alias in your environment" "$LINENO" 5
2588    fi
2589
2590    test "$2" = conftest.file
2591    )
2592 then
2593    # Ok.
2594    :
2595 else
2596    as_fn_error "newly created file is older than distributed files!
2597 Check your system clock" "$LINENO" 5
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601 test "$program_prefix" != NONE &&
2602   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603 # Use a double $ so make ignores it.
2604 test "$program_suffix" != NONE &&
2605   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606 # Double any \ or $.
2607 # By default was `s,x,x', remove it if useless.
2608 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2610
2611 # expand $ac_aux_dir to an absolute path
2612 am_aux_dir=`cd $ac_aux_dir && pwd`
2613
2614 if test x"${MISSING+set}" != xset; then
2615   case $am_aux_dir in
2616   *\ * | *\     *)
2617     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2618   *)
2619     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620   esac
2621 fi
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --run true"; then
2624   am_missing_run="$MISSING --run "
2625 else
2626   am_missing_run=
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2628 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2629 fi
2630
2631 if test x"${install_sh}" != xset; then
2632   case $am_aux_dir in
2633   *\ * | *\     *)
2634     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2635   *)
2636     install_sh="\${SHELL} $am_aux_dir/install-sh"
2637   esac
2638 fi
2639
2640 # Installed binaries are usually stripped using `strip' when the user
2641 # run `make install-strip'.  However `strip' might not be the right
2642 # tool to use in cross-compilation environments, therefore Automake
2643 # will honor the `STRIP' environment variable to overrule this program.
2644 if test "$cross_compiling" != no; then
2645   if test -n "$ac_tool_prefix"; then
2646   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}strip; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_STRIP+set}" = set; then :
2651   $as_echo_n "(cached) " >&6
2652 else
2653   if test -n "$STRIP"; then
2654   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668   done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 STRIP=$ac_cv_prog_STRIP
2674 if test -n "$STRIP"; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676 $as_echo "$STRIP" >&6; }
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 fi
2684 if test -z "$ac_cv_prog_STRIP"; then
2685   ac_ct_STRIP=$STRIP
2686   # Extract the first word of "strip", so it can be a program name with args.
2687 set dummy strip; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   if test -n "$ac_ct_STRIP"; then
2694   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701     for ac_exec_ext in '' $ac_executable_extensions; do
2702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703     ac_cv_prog_ac_ct_STRIP="strip"
2704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705     break 2
2706   fi
2707 done
2708   done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714 if test -n "$ac_ct_STRIP"; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716 $as_echo "$ac_ct_STRIP" >&6; }
2717 else
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722   if test "x$ac_ct_STRIP" = x; then
2723     STRIP=":"
2724   else
2725     case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731     STRIP=$ac_ct_STRIP
2732   fi
2733 else
2734   STRIP="$ac_cv_prog_STRIP"
2735 fi
2736
2737 fi
2738 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742 if test -z "$MKDIR_P"; then
2743   if test "${ac_cv_path_mkdir+set}" = set; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751     for ac_prog in mkdir gmkdir; do
2752          for ac_exec_ext in '' $ac_executable_extensions; do
2753            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2754            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755              'mkdir (GNU coreutils) '* | \
2756              'mkdir (coreutils) '* | \
2757              'mkdir (fileutils) '4.1*)
2758                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759                break 3;;
2760            esac
2761          done
2762        done
2763   done
2764 IFS=$as_save_IFS
2765
2766 fi
2767
2768   if test "${ac_cv_path_mkdir+set}" = set; then
2769     MKDIR_P="$ac_cv_path_mkdir -p"
2770   else
2771     # As a last resort, use the slow shell script.  Don't cache a
2772     # value for MKDIR_P within a source directory, because that will
2773     # break other packages using the cache if that directory is
2774     # removed, or if the value is a relative name.
2775     test -d ./--version && rmdir ./--version
2776     MKDIR_P="$ac_install_sh -d"
2777   fi
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780 $as_echo "$MKDIR_P" >&6; }
2781
2782 mkdir_p="$MKDIR_P"
2783 case $mkdir_p in
2784   [\\/$]* | ?:[\\/]*) ;;
2785   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2786 esac
2787
2788 for ac_prog in gawk mawk nawk awk
2789 do
2790   # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_AWK+set}" = set; then :
2795   $as_echo_n "(cached) " >&6
2796 else
2797   if test -n "$AWK"; then
2798   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805     for ac_exec_ext in '' $ac_executable_extensions; do
2806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807     ac_cv_prog_AWK="$ac_prog"
2808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812   done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 AWK=$ac_cv_prog_AWK
2818 if test -n "$AWK"; then
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2820 $as_echo "$AWK" >&6; }
2821 else
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827   test -n "$AWK" && break
2828 done
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2831 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2832 set x ${MAKE-make}
2833 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2834 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   cat >conftest.make <<\_ACEOF
2838 SHELL = /bin/sh
2839 all:
2840         @echo '@@@%%%=$(MAKE)=@@@%%%'
2841 _ACEOF
2842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2843 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2844   *@@@%%%=?*=@@@%%%*)
2845     eval ac_cv_prog_make_${ac_make}_set=yes;;
2846   *)
2847     eval ac_cv_prog_make_${ac_make}_set=no;;
2848 esac
2849 rm -f conftest.make
2850 fi
2851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854   SET_MAKE=
2855 else
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858   SET_MAKE="MAKE=${MAKE-make}"
2859 fi
2860
2861 rm -rf .tst 2>/dev/null
2862 mkdir .tst 2>/dev/null
2863 if test -d .tst; then
2864   am__leading_dot=.
2865 else
2866   am__leading_dot=_
2867 fi
2868 rmdir .tst 2>/dev/null
2869
2870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872   # is not polluted with repeated "-I."
2873   am__isrc=' -I$(srcdir)'
2874   # test to see if srcdir already configured
2875   if test -f $srcdir/config.status; then
2876     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2877   fi
2878 fi
2879
2880 # test whether we have cygpath
2881 if test -z "$CYGPATH_W"; then
2882   if (cygpath --version) >/dev/null 2>/dev/null; then
2883     CYGPATH_W='cygpath -w'
2884   else
2885     CYGPATH_W=echo
2886   fi
2887 fi
2888
2889
2890 # Define the identity of the package.
2891  PACKAGE='libgo'
2892  VERSION='version-unused'
2893
2894
2895 # Some tools Automake needs.
2896
2897 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2898
2899
2900 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2901
2902
2903 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2904
2905
2906 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2907
2908
2909 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2910
2911 # We need awk for the "check" target.  The system "awk" is bad on
2912 # some platforms.
2913 # Always define AMTAR for backward compatibility.
2914
2915 AMTAR=${AMTAR-"${am_missing_run}tar"}
2916
2917 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949     for ac_exec_ext in '' $ac_executable_extensions; do
2950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956   done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$ac_cv_prog_CC"; then
2973   ac_ct_CC=$CC
2974   # Extract the first word of "gcc", so it can be a program name with args.
2975 set dummy gcc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   if test -n "$ac_ct_CC"; then
2982   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989     for ac_exec_ext in '' $ac_executable_extensions; do
2990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991     ac_cv_prog_ac_ct_CC="gcc"
2992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996   done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004 $as_echo "$ac_ct_CC" >&6; }
3005 else
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010   if test "x$ac_ct_CC" = x; then
3011     CC=""
3012   else
3013     case $cross_compiling:$ac_tool_warned in
3014 yes:)
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3017 ac_tool_warned=yes ;;
3018 esac
3019     CC=$ac_ct_CC
3020   fi
3021 else
3022   CC="$ac_cv_prog_CC"
3023 fi
3024
3025 if test -z "$CC"; then
3026           if test -n "$ac_tool_prefix"; then
3027     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}cc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   if test -n "$CC"; then
3035   ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040   IFS=$as_save_IFS
3041   test -z "$as_dir" && as_dir=.
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044     ac_cv_prog_CC="${ac_tool_prefix}cc"
3045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046     break 2
3047   fi
3048 done
3049   done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064   fi
3065 fi
3066 if test -z "$CC"; then
3067   # Extract the first word of "cc", so it can be a program name with args.
3068 set dummy cc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test -n "$CC"; then
3075   ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077   ac_prog_rejected=no
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083     for ac_exec_ext in '' $ac_executable_extensions; do
3084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3086        ac_prog_rejected=yes
3087        continue
3088      fi
3089     ac_cv_prog_CC="cc"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 if test $ac_prog_rejected = yes; then
3098   # We found a bogon in the path, so make sure we never use it.
3099   set dummy $ac_cv_prog_CC
3100   shift
3101   if test $# != 0; then
3102     # We chose a different compiler from the bogus one.
3103     # However, it has the same basename, so the bogon will be chosen
3104     # first if we set CC to just the basename; use the full file name.
3105     shift
3106     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3107   fi
3108 fi
3109 fi
3110 fi
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121 fi
3122 if test -z "$CC"; then
3123   if test -n "$ac_tool_prefix"; then
3124   for ac_prog in cl.exe
3125   do
3126     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_CC+set}" = set; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test -n "$CC"; then
3134   ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141     for ac_exec_ext in '' $ac_executable_extensions; do
3142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148   done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163     test -n "$CC" && break
3164   done
3165 fi
3166 if test -z "$CC"; then
3167   ac_ct_CC=$CC
3168   for ac_prog in cl.exe
3169 do
3170   # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy $ac_prog; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   if test -n "$ac_ct_CC"; then
3178   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183   IFS=$as_save_IFS
3184   test -z "$as_dir" && as_dir=.
3185     for ac_exec_ext in '' $ac_executable_extensions; do
3186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187     ac_cv_prog_ac_ct_CC="$ac_prog"
3188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189     break 2
3190   fi
3191 done
3192   done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198 if test -n "$ac_ct_CC"; then
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200 $as_echo "$ac_ct_CC" >&6; }
3201 else
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207   test -n "$ac_ct_CC" && break
3208 done
3209
3210   if test "x$ac_ct_CC" = x; then
3211     CC=""
3212   else
3213     case $cross_compiling:$ac_tool_warned in
3214 yes:)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned=yes ;;
3218 esac
3219     CC=$ac_ct_CC
3220   fi
3221 fi
3222
3223 fi
3224
3225
3226 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error "no acceptable C compiler found in \$PATH
3229 See \`config.log' for more details." "$LINENO" 5; }
3230
3231 # Provide some information about the compiler.
3232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3233 set X $ac_compile
3234 ac_compiler=$2
3235 for ac_option in --version -v -V -qversion; do
3236   { { ac_try="$ac_compiler $ac_option >&5"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3244   ac_status=$?
3245   if test -s conftest.err; then
3246     sed '10a\
3247 ... rest of stderr output deleted ...
3248          10q' conftest.err >conftest.er1
3249     cat conftest.er1 >&5
3250     rm -f conftest.er1 conftest.err
3251   fi
3252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253   test $ac_status = 0; }
3254 done
3255
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h.  */
3258
3259 int
3260 main ()
3261 {
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3273 $as_echo_n "checking for C compiler default output file name... " >&6; }
3274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275
3276 # The possible output files:
3277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3278
3279 ac_rmfiles=
3280 for ac_file in $ac_files
3281 do
3282   case $ac_file in
3283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3285   esac
3286 done
3287 rm -f $ac_rmfiles
3288
3289 if { { ac_try="$ac_link_default"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296   (eval "$ac_link_default") 2>&5
3297   ac_status=$?
3298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299   test $ac_status = 0; }; then :
3300   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3302 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3303 # so that the user can short-circuit this test for compilers unknown to
3304 # Autoconf.
3305 for ac_file in $ac_files ''
3306 do
3307   test -f "$ac_file" || continue
3308   case $ac_file in
3309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3310         ;;
3311     [ab].out )
3312         # We found the default executable, but exeext='' is most
3313         # certainly right.
3314         break;;
3315     *.* )
3316         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3317         then :; else
3318            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319         fi
3320         # We set ac_cv_exeext here because the later test for it is not
3321         # safe: cross compilers may not add the suffix if given an `-o'
3322         # argument, so we may need to know it at that point already.
3323         # Even if this section looks crufty: it has the advantage of
3324         # actually working.
3325         break;;
3326     * )
3327         break;;
3328   esac
3329 done
3330 test "$ac_cv_exeext" = no && ac_cv_exeext=
3331
3332 else
3333   ac_file=''
3334 fi
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336 $as_echo "$ac_file" >&6; }
3337 if test -z "$ac_file"; then :
3338   $as_echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 { as_fn_set_status 77
3344 as_fn_error "C compiler cannot create executables
3345 See \`config.log' for more details." "$LINENO" 5; }; }
3346 fi
3347 ac_exeext=$ac_cv_exeext
3348
3349 # Check that the compiler produces executables we can run.  If not, either
3350 # the compiler is broken, or we cross compile.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352 $as_echo_n "checking whether the C compiler works... " >&6; }
3353 # If not cross compiling, check that we can run a simple program.
3354 if test "$cross_compiling" != yes; then
3355   if { ac_try='./$ac_file'
3356   { { case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362   (eval "$ac_try") 2>&5
3363   ac_status=$?
3364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365   test $ac_status = 0; }; }; then
3366     cross_compiling=no
3367   else
3368     if test "$cross_compiling" = maybe; then
3369         cross_compiling=yes
3370     else
3371         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error "cannot run C compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details." "$LINENO" 5; }
3376     fi
3377   fi
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3381
3382 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3383 ac_clean_files=$ac_clean_files_save
3384 # Check that the compiler produces executables we can run.  If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387 $as_echo_n "checking whether we are cross compiling... " >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3389 $as_echo "$cross_compiling" >&6; }
3390
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392 $as_echo_n "checking for suffix of executables... " >&6; }
3393 if { { ac_try="$ac_link"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400   (eval "$ac_link") 2>&5
3401   ac_status=$?
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }; then :
3404   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3406 # work properly (i.e., refer to `conftest.exe'), while it won't with
3407 # `rm'.
3408 for ac_file in conftest.exe conftest conftest.*; do
3409   test -f "$ac_file" || continue
3410   case $ac_file in
3411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413           break;;
3414     * ) break;;
3415   esac
3416 done
3417 else
3418   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error "cannot compute suffix of executables: cannot compile and link
3421 See \`config.log' for more details." "$LINENO" 5; }
3422 fi
3423 rm -f conftest$ac_cv_exeext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425 $as_echo "$ac_cv_exeext" >&6; }
3426
3427 rm -f conftest.$ac_ext
3428 EXEEXT=$ac_cv_exeext
3429 ac_exeext=$EXEEXT
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3431 $as_echo_n "checking for suffix of object files... " >&6; }
3432 if test "${ac_cv_objext+set}" = set; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h.  */
3437
3438 int
3439 main ()
3440 {
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 rm -f conftest.o conftest.obj
3447 if { { ac_try="$ac_compile"
3448 case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454   (eval "$ac_compile") 2>&5
3455   ac_status=$?
3456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457   test $ac_status = 0; }; then :
3458   for ac_file in conftest.o conftest.obj conftest.*; do
3459   test -f "$ac_file" || continue;
3460   case $ac_file in
3461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3462     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463        break;;
3464   esac
3465 done
3466 else
3467   $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error "cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details." "$LINENO" 5; }
3474 fi
3475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3478 $as_echo "$ac_cv_objext" >&6; }
3479 OBJEXT=$ac_cv_objext
3480 ac_objext=$OBJEXT
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492 #ifndef __GNUC__
3493        choke me
3494 #endif
3495
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501   ac_compiler_gnu=yes
3502 else
3503   ac_compiler_gnu=no
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3507
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3512   GCC=yes
3513 else
3514   GCC=
3515 fi
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3520 if test "${ac_cv_prog_cc_g+set}" = set; then :
3521   $as_echo_n "(cached) " >&6
3522 else
3523   ac_save_c_werror_flag=$ac_c_werror_flag
3524    ac_c_werror_flag=yes
3525    ac_cv_prog_cc_g=no
3526    CFLAGS="-g"
3527    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539   ac_cv_prog_cc_g=yes
3540 else
3541   CFLAGS=""
3542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h.  */
3544
3545 int
3546 main ()
3547 {
3548
3549   ;
3550   return 0;
3551 }
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554
3555 else
3556   ac_c_werror_flag=$ac_save_c_werror_flag
3557          CFLAGS="-g"
3558          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570   ac_cv_prog_cc_g=yes
3571 fi
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577    ac_c_werror_flag=$ac_save_c_werror_flag
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580 $as_echo "$ac_cv_prog_cc_g" >&6; }
3581 if test "$ac_test_CFLAGS" = set; then
3582   CFLAGS=$ac_save_CFLAGS
3583 elif test $ac_cv_prog_cc_g = yes; then
3584   if test "$GCC" = yes; then
3585     CFLAGS="-g -O2"
3586   else
3587     CFLAGS="-g"
3588   fi
3589 else
3590   if test "$GCC" = yes; then
3591     CFLAGS="-O2"
3592   else
3593     CFLAGS=
3594   fi
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3597 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3598 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   ac_cv_prog_cc_c89=no
3602 ac_save_CC=$CC
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h.  */
3605 #include <stdarg.h>
3606 #include <stdio.h>
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3613      char **p;
3614      int i;
3615 {
3616   return p[i];
3617 }
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3619 {
3620   char *s;
3621   va_list v;
3622   va_start (v,p);
3623   s = g (p, va_arg (v,int));
3624   va_end (v);
3625   return s;
3626 }
3627
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3629    function prototypes and stuff, but not '\xHH' hex character constants.
3630    These don't provoke an error unfortunately, instead are silently treated
3631    as 'x'.  The following induces an error, until -std is added to get
3632    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3633    array size at least.  It's necessary to write '\x00'==0 to get something
3634    that's true only with -std.  */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638    inside strings and character constants.  */
3639 #define FOO(x) 'x'
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 int argc;
3647 char **argv;
3648 int
3649 main ()
3650 {
3651 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 do
3659   CC="$ac_save_CC $ac_arg"
3660   if ac_fn_c_try_compile "$LINENO"; then :
3661   ac_cv_prog_cc_c89=$ac_arg
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext
3664   test "x$ac_cv_prog_cc_c89" != "xno" && break
3665 done
3666 rm -f conftest.$ac_ext
3667 CC=$ac_save_CC
3668
3669 fi
3670 # AC_CACHE_VAL
3671 case "x$ac_cv_prog_cc_c89" in
3672   x)
3673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3674 $as_echo "none needed" >&6; } ;;
3675   xno)
3676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3677 $as_echo "unsupported" >&6; } ;;
3678   *)
3679     CC="$CC $ac_cv_prog_cc_c89"
3680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3682 esac
3683 if test "x$ac_cv_prog_cc_c89" != xno; then :
3684
3685 fi
3686
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 DEPDIR="${am__leading_dot}deps"
3693
3694 ac_config_commands="$ac_config_commands depfiles"
3695
3696
3697 am_make=${MAKE-make}
3698 cat > confinc << 'END'
3699 am__doit:
3700         @echo this is the am__doit target
3701 .PHONY: am__doit
3702 END
3703 # If we don't find an include directive, just comment out the code.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3705 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3706 am__include="#"
3707 am__quote=
3708 _am_result=none
3709 # First try GNU make style include.
3710 echo "include confinc" > confmf
3711 # Ignore all kinds of additional output from `make'.
3712 case `$am_make -s -f confmf 2> /dev/null` in #(
3713 *the\ am__doit\ target*)
3714   am__include=include
3715   am__quote=
3716   _am_result=GNU
3717   ;;
3718 esac
3719 # Now try BSD make style include.
3720 if test "$am__include" = "#"; then
3721    echo '.include "confinc"' > confmf
3722    case `$am_make -s -f confmf 2> /dev/null` in #(
3723    *the\ am__doit\ target*)
3724      am__include=.include
3725      am__quote="\""
3726      _am_result=BSD
3727      ;;
3728    esac
3729 fi
3730
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3733 $as_echo "$_am_result" >&6; }
3734 rm -f confinc confmf
3735
3736 # Check whether --enable-dependency-tracking was given.
3737 if test "${enable_dependency_tracking+set}" = set; then :
3738   enableval=$enable_dependency_tracking;
3739 fi
3740
3741 if test "x$enable_dependency_tracking" != xno; then
3742   am_depcomp="$ac_aux_dir/depcomp"
3743   AMDEPBACKSLASH='\'
3744 fi
3745  if test "x$enable_dependency_tracking" != xno; then
3746   AMDEP_TRUE=
3747   AMDEP_FALSE='#'
3748 else
3749   AMDEP_TRUE='#'
3750   AMDEP_FALSE=
3751 fi
3752
3753
3754
3755 depcc="$CC"   am_compiler_list=
3756
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3758 $as_echo_n "checking dependency style of $depcc... " >&6; }
3759 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3760   $as_echo_n "(cached) " >&6
3761 else
3762   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763   # We make a subdir and do the tests there.  Otherwise we can end up
3764   # making bogus files that we don't know about and never remove.  For
3765   # instance it was reported that on HP-UX the gcc test will end up
3766   # making a dummy file named `D' -- because `-MD' means `put the output
3767   # in D'.
3768   mkdir conftest.dir
3769   # Copy depcomp to subdir because otherwise we won't find it if we're
3770   # using a relative directory.
3771   cp "$am_depcomp" conftest.dir
3772   cd conftest.dir
3773   # We will build objects and dependencies in a subdirectory because
3774   # it helps to detect inapplicable dependency modes.  For instance
3775   # both Tru64's cc and ICC support -MD to output dependencies as a
3776   # side effect of compilation, but ICC will put the dependencies in
3777   # the current directory while Tru64 will put them in the object
3778   # directory.
3779   mkdir sub
3780
3781   am_cv_CC_dependencies_compiler_type=none
3782   if test "$am_compiler_list" = ""; then
3783      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784   fi
3785   am__universal=false
3786   case " $depcc " in #(
3787      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788      esac
3789
3790   for depmode in $am_compiler_list; do
3791     # Setup a source with many dependencies, because some compilers
3792     # like to wrap large dependency lists on column 80 (with \), and
3793     # we should not choose a depcomp mode which is confused by this.
3794     #
3795     # We need to recreate these files for each test, as the compiler may
3796     # overwrite some of them when testing with obscure command lines.
3797     # This happens at least with the AIX C compiler.
3798     : > sub/conftest.c
3799     for i in 1 2 3 4 5 6; do
3800       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802       # Solaris 8's {/usr,}/bin/sh.
3803       touch sub/conftst$i.h
3804     done
3805     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808     # mode.  It turns out that the SunPro C++ compiler does not properly
3809     # handle `-M -o', and we need to detect this.  Also, some Intel
3810     # versions had trouble with output in subdirs
3811     am__obj=sub/conftest.${OBJEXT-o}
3812     am__minus_obj="-o $am__obj"
3813     case $depmode in
3814     gcc)
3815       # This depmode causes a compiler race in universal mode.
3816       test "$am__universal" = false || continue
3817       ;;
3818     nosideeffect)
3819       # after this tag, mechanisms are not by side-effect, so they'll
3820       # only be used when explicitly requested
3821       if test "x$enable_dependency_tracking" = xyes; then
3822         continue
3823       else
3824         break
3825       fi
3826       ;;
3827     msvisualcpp | msvcmsys)
3828       # This compiler won't grok `-c -o', but also, the minuso test has
3829       # not run yet.  These depmodes are late enough in the game, and
3830       # so weak that their functioning should not be impacted.
3831       am__obj=conftest.${OBJEXT-o}
3832       am__minus_obj=
3833       ;;
3834     none) break ;;
3835     esac
3836     if depmode=$depmode \
3837        source=sub/conftest.c object=$am__obj \
3838        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840          >/dev/null 2>conftest.err &&
3841        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845       # icc doesn't choke on unknown options, it will just issue warnings
3846       # or remarks (even with -Werror).  So we grep stderr for any message
3847       # that says an option was ignored or not supported.
3848       # When given -MP, icc 7.0 and 7.1 complain thusly:
3849       #   icc: Command line warning: ignoring option '-M'; no argument required
3850       # The diagnosis changed in icc 8.0:
3851       #   icc: Command line remark: option '-MP' not supported
3852       if (grep 'ignoring option' conftest.err ||
3853           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854         am_cv_CC_dependencies_compiler_type=$depmode
3855         break
3856       fi
3857     fi
3858   done
3859
3860   cd ..
3861   rm -rf conftest.dir
3862 else
3863   am_cv_CC_dependencies_compiler_type=none
3864 fi
3865
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871  if
3872   test "x$enable_dependency_tracking" != xno \
3873   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874   am__fastdepCC_TRUE=
3875   am__fastdepCC_FALSE='#'
3876 else
3877   am__fastdepCC_TRUE='#'
3878   am__fastdepCC_FALSE=
3879 fi
3880
3881
3882 ac_ext=go
3883 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3884 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compile_gnu=yes
3886 if test -n "$ac_tool_prefix"; then
3887   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_GOC+set}" = set; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   if test -n "$GOC"; then
3895   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902     for ac_exec_ext in '' $ac_executable_extensions; do
3903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909   done
3910 IFS=$as_save_IFS
3911
3912 fi
3913 fi
3914 GOC=$ac_cv_prog_GOC
3915 if test -n "$GOC"; then
3916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3917 $as_echo "$GOC" >&6; }
3918 else
3919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3921 fi
3922
3923
3924 fi
3925 if test -z "$ac_cv_prog_GOC"; then
3926   ac_ct_GOC=$GOC
3927   # Extract the first word of "gccgo", so it can be a program name with args.
3928 set dummy gccgo; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   if test -n "$ac_ct_GOC"; then
3935   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940   IFS=$as_save_IFS
3941   test -z "$as_dir" && as_dir=.
3942     for ac_exec_ext in '' $ac_executable_extensions; do
3943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944     ac_cv_prog_ac_ct_GOC="gccgo"
3945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946     break 2
3947   fi
3948 done
3949   done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3955 if test -n "$ac_ct_GOC"; then
3956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3957 $as_echo "$ac_ct_GOC" >&6; }
3958 else
3959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 fi
3962
3963   if test "x$ac_ct_GOC" = x; then
3964     GOC=""
3965   else
3966     case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970 ac_tool_warned=yes ;;
3971 esac
3972     GOC=$ac_ct_GOC
3973   fi
3974 else
3975   GOC="$ac_cv_prog_GOC"
3976 fi
3977
3978 if test -z "$GOC"; then
3979   if test -n "$ac_tool_prefix"; then
3980     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_GOC+set}" = set; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   if test -n "$GOC"; then
3988   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995     for ac_exec_ext in '' $ac_executable_extensions; do
3996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002   done
4003 IFS=$as_save_IFS
4004
4005 fi
4006 fi
4007 GOC=$ac_cv_prog_GOC
4008 if test -n "$GOC"; then
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4010 $as_echo "$GOC" >&6; }
4011 else
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4014 fi
4015
4016
4017   fi
4018 fi
4019 if test -z "$GOC"; then
4020   # Extract the first word of "gccgo", so it can be a program name with args.
4021 set dummy gccgo; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if test "${ac_cv_prog_GOC+set}" = set; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   if test -n "$GOC"; then
4028   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4029 else
4030   ac_prog_rejected=no
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036     for ac_exec_ext in '' $ac_executable_extensions; do
4037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4039        ac_prog_rejected=yes
4040        continue
4041      fi
4042     ac_cv_prog_GOC="gccgo"
4043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047   done
4048 IFS=$as_save_IFS
4049
4050 if test $ac_prog_rejected = yes; then
4051   # We found a bogon in the path, so make sure we never use it.
4052   set dummy $ac_cv_prog_GOC
4053   shift
4054   if test $# != 0; then
4055     # We chose a different compiler from the bogus one.
4056     # However, it has the same basename, so the bogon will be chosen
4057     # first if we set GOC to just the basename; use the full file name.
4058     shift
4059     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4060   fi
4061 fi
4062 fi
4063 fi
4064 GOC=$ac_cv_prog_GOC
4065 if test -n "$GOC"; then
4066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4067 $as_echo "$GOC" >&6; }
4068 else
4069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071 fi
4072
4073
4074 fi
4075
4076
4077 # Provide some information about the compiler.
4078 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4079 set X $ac_compile
4080 ac_compiler=$2
4081 { { ac_try="$ac_compiler --version >&5"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087 $as_echo "$ac_try_echo"; } >&5
4088   (eval "$ac_compiler --version >&5") 2>conftest.err
4089   ac_status=$?
4090   if test -s conftest.err; then
4091     sed '10a\
4092 ... rest of stderr output deleted ...
4093          10q' conftest.err >conftest.er1
4094     cat conftest.er1 >&5
4095     rm -f conftest.er1 conftest.err
4096   fi
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }
4099 GOCFLAGS="-g -O2"
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107
4108
4109
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4112 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4113     # Check whether --enable-maintainer-mode was given.
4114 if test "${enable_maintainer_mode+set}" = set; then :
4115   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4116 else
4117   USE_MAINTAINER_MODE=no
4118 fi
4119
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4121 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4122    if test $USE_MAINTAINER_MODE = yes; then
4123   MAINTAINER_MODE_TRUE=
4124   MAINTAINER_MODE_FALSE='#'
4125 else
4126   MAINTAINER_MODE_TRUE='#'
4127   MAINTAINER_MODE_FALSE=
4128 fi
4129
4130   MAINT=$MAINTAINER_MODE_TRUE
4131
4132
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4135 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4136 if test "${ac_cv_path_SED+set}" = set; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4140      for ac_i in 1 2 3 4 5 6 7; do
4141        ac_script="$ac_script$as_nl$ac_script"
4142      done
4143      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4144      { ac_script=; unset ac_script;}
4145      if test -z "$SED"; then
4146   ac_path_SED_found=false
4147   # Loop through the user's path and test for each of PROGNAME-LIST
4148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151   IFS=$as_save_IFS
4152   test -z "$as_dir" && as_dir=.
4153     for ac_prog in sed gsed; do
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4156       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4157 # Check for GNU ac_path_SED and select it if it is found.
4158   # Check for GNU $ac_path_SED
4159 case `"$ac_path_SED" --version 2>&1` in
4160 *GNU*)
4161   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4162 *)
4163   ac_count=0
4164   $as_echo_n 0123456789 >"conftest.in"
4165   while :
4166   do
4167     cat "conftest.in" "conftest.in" >"conftest.tmp"
4168     mv "conftest.tmp" "conftest.in"
4169     cp "conftest.in" "conftest.nl"
4170     $as_echo '' >> "conftest.nl"
4171     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173     as_fn_arith $ac_count + 1 && ac_count=$as_val
4174     if test $ac_count -gt ${ac_path_SED_max-0}; then
4175       # Best one so far, save it but keep looking for a better one
4176       ac_cv_path_SED="$ac_path_SED"
4177       ac_path_SED_max=$ac_count
4178     fi
4179     # 10*(2^10) chars as input seems more than enough
4180     test $ac_count -gt 10 && break
4181   done
4182   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183 esac
4184
4185       $ac_path_SED_found && break 3
4186     done
4187   done
4188   done
4189 IFS=$as_save_IFS
4190   if test -z "$ac_cv_path_SED"; then
4191     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4192   fi
4193 else
4194   ac_cv_path_SED=$SED
4195 fi
4196
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4199 $as_echo "$ac_cv_path_SED" >&6; }
4200  SED="$ac_cv_path_SED"
4201   rm -f conftest.sed
4202
4203 test -z "$SED" && SED=sed
4204 Xsed="$SED -e 1s/^X//"
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4217 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4218 if test "${ac_cv_path_GREP+set}" = set; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   if test -z "$GREP"; then
4222   ac_path_GREP_found=false
4223   # Loop through the user's path and test for each of PROGNAME-LIST
4224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229     for ac_prog in grep ggrep; do
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4232       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4233 # Check for GNU ac_path_GREP and select it if it is found.
4234   # Check for GNU $ac_path_GREP
4235 case `"$ac_path_GREP" --version 2>&1` in
4236 *GNU*)
4237   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4238 *)
4239   ac_count=0
4240   $as_echo_n 0123456789 >"conftest.in"
4241   while :
4242   do
4243     cat "conftest.in" "conftest.in" >"conftest.tmp"
4244     mv "conftest.tmp" "conftest.in"
4245     cp "conftest.in" "conftest.nl"
4246     $as_echo 'GREP' >> "conftest.nl"
4247     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249     as_fn_arith $ac_count + 1 && ac_count=$as_val
4250     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4251       # Best one so far, save it but keep looking for a better one
4252       ac_cv_path_GREP="$ac_path_GREP"
4253       ac_path_GREP_max=$ac_count
4254     fi
4255     # 10*(2^10) chars as input seems more than enough
4256     test $ac_count -gt 10 && break
4257   done
4258   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259 esac
4260
4261       $ac_path_GREP_found && break 3
4262     done
4263   done
4264   done
4265 IFS=$as_save_IFS
4266   if test -z "$ac_cv_path_GREP"; then
4267     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4268   fi
4269 else
4270   ac_cv_path_GREP=$GREP
4271 fi
4272
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4275 $as_echo "$ac_cv_path_GREP" >&6; }
4276  GREP="$ac_cv_path_GREP"
4277
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4280 $as_echo_n "checking for egrep... " >&6; }
4281 if test "${ac_cv_path_EGREP+set}" = set; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285    then ac_cv_path_EGREP="$GREP -E"
4286    else
4287      if test -z "$EGREP"; then
4288   ac_path_EGREP_found=false
4289   # Loop through the user's path and test for each of PROGNAME-LIST
4290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295     for ac_prog in egrep; do
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4298       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4299 # Check for GNU ac_path_EGREP and select it if it is found.
4300   # Check for GNU $ac_path_EGREP
4301 case `"$ac_path_EGREP" --version 2>&1` in
4302 *GNU*)
4303   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4304 *)
4305   ac_count=0
4306   $as_echo_n 0123456789 >"conftest.in"
4307   while :
4308   do
4309     cat "conftest.in" "conftest.in" >"conftest.tmp"
4310     mv "conftest.tmp" "conftest.in"
4311     cp "conftest.in" "conftest.nl"
4312     $as_echo 'EGREP' >> "conftest.nl"
4313     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315     as_fn_arith $ac_count + 1 && ac_count=$as_val
4316     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4317       # Best one so far, save it but keep looking for a better one
4318       ac_cv_path_EGREP="$ac_path_EGREP"
4319       ac_path_EGREP_max=$ac_count
4320     fi
4321     # 10*(2^10) chars as input seems more than enough
4322     test $ac_count -gt 10 && break
4323   done
4324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325 esac
4326
4327       $ac_path_EGREP_found && break 3
4328     done
4329   done
4330   done
4331 IFS=$as_save_IFS
4332   if test -z "$ac_cv_path_EGREP"; then
4333     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4334   fi
4335 else
4336   ac_cv_path_EGREP=$EGREP
4337 fi
4338
4339    fi
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343  EGREP="$ac_cv_path_EGREP"
4344
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4347 $as_echo_n "checking for fgrep... " >&6; }
4348 if test "${ac_cv_path_FGREP+set}" = set; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4352    then ac_cv_path_FGREP="$GREP -F"
4353    else
4354      if test -z "$FGREP"; then
4355   ac_path_FGREP_found=false
4356   # Loop through the user's path and test for each of PROGNAME-LIST
4357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4359 do
4360   IFS=$as_save_IFS
4361   test -z "$as_dir" && as_dir=.
4362     for ac_prog in fgrep; do
4363     for ac_exec_ext in '' $ac_executable_extensions; do
4364       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4365       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4366 # Check for GNU ac_path_FGREP and select it if it is found.
4367   # Check for GNU $ac_path_FGREP
4368 case `"$ac_path_FGREP" --version 2>&1` in
4369 *GNU*)
4370   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4371 *)
4372   ac_count=0
4373   $as_echo_n 0123456789 >"conftest.in"
4374   while :
4375   do
4376     cat "conftest.in" "conftest.in" >"conftest.tmp"
4377     mv "conftest.tmp" "conftest.in"
4378     cp "conftest.in" "conftest.nl"
4379     $as_echo 'FGREP' >> "conftest.nl"
4380     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382     as_fn_arith $ac_count + 1 && ac_count=$as_val
4383     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4384       # Best one so far, save it but keep looking for a better one
4385       ac_cv_path_FGREP="$ac_path_FGREP"
4386       ac_path_FGREP_max=$ac_count
4387     fi
4388     # 10*(2^10) chars as input seems more than enough
4389     test $ac_count -gt 10 && break
4390   done
4391   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 esac
4393
4394       $ac_path_FGREP_found && break 3
4395     done
4396   done
4397   done
4398 IFS=$as_save_IFS
4399   if test -z "$ac_cv_path_FGREP"; then
4400     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4401   fi
4402 else
4403   ac_cv_path_FGREP=$FGREP
4404 fi
4405
4406    fi
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4409 $as_echo "$ac_cv_path_FGREP" >&6; }
4410  FGREP="$ac_cv_path_FGREP"
4411
4412
4413 test -z "$GREP" && GREP=grep
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4436 $as_echo_n "checking how to print strings... " >&6; }
4437 # Test print first, because it will be a builtin if present.
4438 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4439    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4440   ECHO='print -r --'
4441 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4442   ECHO='printf %s\n'
4443 else
4444   # Use this function as a fallback that always works.
4445   func_fallback_echo ()
4446   {
4447     eval 'cat <<_LTECHO_EOF
4448 $1
4449 _LTECHO_EOF'
4450   }
4451   ECHO='func_fallback_echo'
4452 fi
4453
4454 # func_echo_all arg...
4455 # Invoke $ECHO with all args, space-separated.
4456 func_echo_all ()
4457 {
4458     $ECHO ""
4459 }
4460
4461 case "$ECHO" in
4462   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4463 $as_echo "printf" >&6; } ;;
4464   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4465 $as_echo "print -r" >&6; } ;;
4466   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4467 $as_echo "cat" >&6; } ;;
4468 esac
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 # Check whether --with-gnu-ld was given.
4486 if test "${with_gnu_ld+set}" = set; then :
4487   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4488 else
4489   with_gnu_ld=no
4490 fi
4491
4492 ac_prog=ld
4493 if test "$GCC" = yes; then
4494   # Check if gcc -print-prog-name=ld gives a path.
4495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4496 $as_echo_n "checking for ld used by $CC... " >&6; }
4497   case $host in
4498   *-*-mingw*)
4499     # gcc leaves a trailing carriage return which upsets mingw
4500     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4501   *)
4502     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4503   esac
4504   case $ac_prog in
4505     # Accept absolute paths.
4506     [\\/]* | ?:[\\/]*)
4507       re_direlt='/[^/][^/]*/\.\./'
4508       # Canonicalize the pathname of ld
4509       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4510       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4511         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4512       done
4513       test -z "$LD" && LD="$ac_prog"
4514       ;;
4515   "")
4516     # If it fails, then pretend we aren't using GCC.
4517     ac_prog=ld
4518     ;;
4519   *)
4520     # If it is relative, then search for the first ld in PATH.
4521     with_gnu_ld=unknown
4522     ;;
4523   esac
4524 elif test "$with_gnu_ld" = yes; then
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4526 $as_echo_n "checking for GNU ld... " >&6; }
4527 else
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4529 $as_echo_n "checking for non-GNU ld... " >&6; }
4530 fi
4531 if test "${lt_cv_path_LD+set}" = set; then :
4532   $as_echo_n "(cached) " >&6
4533 else
4534   if test -z "$LD"; then
4535   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4536   for ac_dir in $PATH; do
4537     IFS="$lt_save_ifs"
4538     test -z "$ac_dir" && ac_dir=.
4539     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4540       lt_cv_path_LD="$ac_dir/$ac_prog"
4541       # Check to see if the program is GNU ld.  I'd rather use --version,
4542       # but apparently some variants of GNU ld only accept -v.
4543       # Break only if it was the GNU/non-GNU ld that we prefer.
4544       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4545       *GNU* | *'with BFD'*)
4546         test "$with_gnu_ld" != no && break
4547         ;;
4548       *)
4549         test "$with_gnu_ld" != yes && break
4550         ;;
4551       esac
4552     fi
4553   done
4554   IFS="$lt_save_ifs"
4555 else
4556   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4557 fi
4558 fi
4559
4560 LD="$lt_cv_path_LD"
4561 if test -n "$LD"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4563 $as_echo "$LD" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4570 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4571 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4575 case `$LD -v 2>&1 </dev/null` in
4576 *GNU* | *'with BFD'*)
4577   lt_cv_prog_gnu_ld=yes
4578   ;;
4579 *)
4580   lt_cv_prog_gnu_ld=no
4581   ;;
4582 esac
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4585 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4586 with_gnu_ld=$lt_cv_prog_gnu_ld
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596 if test -n "$ac_tool_prefix"; then
4597   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if test -n "$RANLIB"; then
4605   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612     for ac_exec_ext in '' $ac_executable_extensions; do
4613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619   done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 RANLIB=$ac_cv_prog_RANLIB
4625 if test -n "$RANLIB"; then
4626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4627 $as_echo "$RANLIB" >&6; }
4628 else
4629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 fi
4635 if test -z "$ac_cv_prog_RANLIB"; then
4636   ac_ct_RANLIB=$RANLIB
4637   # Extract the first word of "ranlib", so it can be a program name with args.
4638 set dummy ranlib; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if test -n "$ac_ct_RANLIB"; then
4645   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652     for ac_exec_ext in '' $ac_executable_extensions; do
4653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654     ac_cv_prog_ac_ct_RANLIB="ranlib"
4655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659   done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4665 if test -n "$ac_ct_RANLIB"; then
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4667 $as_echo "$ac_ct_RANLIB" >&6; }
4668 else
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673   if test "x$ac_ct_RANLIB" = x; then
4674     RANLIB=":"
4675   else
4676     case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682     RANLIB=$ac_ct_RANLIB
4683   fi
4684 else
4685   RANLIB="$ac_cv_prog_RANLIB"
4686 fi
4687
4688 if test -n "$ac_tool_prefix"; then
4689   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   if test -n "$OBJCOPY"; then
4697   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704     for ac_exec_ext in '' $ac_executable_extensions; do
4705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708     break 2
4709   fi
4710 done
4711   done
4712 IFS=$as_save_IFS
4713
4714 fi
4715 fi
4716 OBJCOPY=$ac_cv_prog_OBJCOPY
4717 if test -n "$OBJCOPY"; then
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4719 $as_echo "$OBJCOPY" >&6; }
4720 else
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4724
4725
4726 fi
4727 if test -z "$ac_cv_prog_OBJCOPY"; then
4728   ac_ct_OBJCOPY=$OBJCOPY
4729   # Extract the first word of "objcopy", so it can be a program name with args.
4730 set dummy objcopy; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4734   $as_echo_n "(cached) " >&6
4735 else
4736   if test -n "$ac_ct_OBJCOPY"; then
4737   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744     for ac_exec_ext in '' $ac_executable_extensions; do
4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751   done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4757 if test -n "$ac_ct_OBJCOPY"; then
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4759 $as_echo "$ac_ct_OBJCOPY" >&6; }
4760 else
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765   if test "x$ac_ct_OBJCOPY" = x; then
4766     OBJCOPY="missing-objcopy"
4767   else
4768     case $cross_compiling:$ac_tool_warned in
4769 yes:)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772 ac_tool_warned=yes ;;
4773 esac
4774     OBJCOPY=$ac_ct_OBJCOPY
4775   fi
4776 else
4777   OBJCOPY="$ac_cv_prog_OBJCOPY"
4778 fi
4779
4780
4781 enable_dlopen=yes
4782
4783
4784
4785 case `pwd` in
4786   *\ * | *\     *)
4787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4788 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4789 esac
4790
4791
4792
4793 macro_version='2.2.7a'
4794 macro_revision='1.3134'
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 ltmain="$ac_aux_dir/ltmain.sh"
4809
4810 # Backslashify metacharacters that are still active within
4811 # double-quoted strings.
4812 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4813
4814 # Same as above, but do not quote variable references.
4815 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4816
4817 # Sed substitution to delay expansion of an escaped shell variable in a
4818 # double_quote_subst'ed string.
4819 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4820
4821 # Sed substitution to delay expansion of an escaped single quote.
4822 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4823
4824 # Sed substitution to avoid accidental globbing in evaled expressions
4825 no_glob_subst='s/\*/\\\*/g'
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4829 if test "${lt_cv_path_NM+set}" = set; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   if test -n "$NM"; then
4833   # Let the user override the test.
4834   lt_cv_path_NM="$NM"
4835 else
4836   lt_nm_to_check="${ac_tool_prefix}nm"
4837   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4838     lt_nm_to_check="$lt_nm_to_check nm"
4839   fi
4840   for lt_tmp_nm in $lt_nm_to_check; do
4841     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4843       IFS="$lt_save_ifs"
4844       test -z "$ac_dir" && ac_dir=.
4845       tmp_nm="$ac_dir/$lt_tmp_nm"
4846       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4847         # Check to see if the nm accepts a BSD-compat flag.
4848         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4849         #   nm: unknown option "B" ignored
4850         # Tru64's nm complains that /dev/null is an invalid object file
4851         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4852         */dev/null* | *'Invalid file or object type'*)
4853           lt_cv_path_NM="$tmp_nm -B"
4854           break
4855           ;;
4856         *)
4857           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4858           */dev/null*)
4859             lt_cv_path_NM="$tmp_nm -p"
4860             break
4861             ;;
4862           *)
4863             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4864             continue # so that we can try to find one that supports BSD flags
4865             ;;
4866           esac
4867           ;;
4868         esac
4869       fi
4870     done
4871     IFS="$lt_save_ifs"
4872   done
4873   : ${lt_cv_path_NM=no}
4874 fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4877 $as_echo "$lt_cv_path_NM" >&6; }
4878 if test "$lt_cv_path_NM" != "no"; then
4879   NM="$lt_cv_path_NM"
4880 else
4881   # Didn't find any BSD compatible name lister, look for dumpbin.
4882   if test -n "$DUMPBIN"; then :
4883     # Let the user override the test.
4884   else
4885     if test -n "$ac_tool_prefix"; then
4886   for ac_prog in dumpbin "link -dump"
4887   do
4888     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$DUMPBIN"; then
4896   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 DUMPBIN=$ac_cv_prog_DUMPBIN
4916 if test -n "$DUMPBIN"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4918 $as_echo "$DUMPBIN" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925     test -n "$DUMPBIN" && break
4926   done
4927 fi
4928 if test -z "$DUMPBIN"; then
4929   ac_ct_DUMPBIN=$DUMPBIN
4930   for ac_prog in dumpbin "link -dump"
4931 do
4932   # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   if test -n "$ac_ct_DUMPBIN"; then
4940   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947     for ac_exec_ext in '' $ac_executable_extensions; do
4948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954   done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4960 if test -n "$ac_ct_DUMPBIN"; then
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4962 $as_echo "$ac_ct_DUMPBIN" >&6; }
4963 else
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969   test -n "$ac_ct_DUMPBIN" && break
4970 done
4971
4972   if test "x$ac_ct_DUMPBIN" = x; then
4973     DUMPBIN=":"
4974   else
4975     case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981     DUMPBIN=$ac_ct_DUMPBIN
4982   fi
4983 fi
4984
4985     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4986     *COFF*)
4987       DUMPBIN="$DUMPBIN -symbols"
4988       ;;
4989     *)
4990       DUMPBIN=:
4991       ;;
4992     esac
4993   fi
4994
4995   if test "$DUMPBIN" != ":"; then
4996     NM="$DUMPBIN"
4997   fi
4998 fi
4999 test -z "$NM" && NM=nm
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5008 if test "${lt_cv_nm_interface+set}" = set; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   lt_cv_nm_interface="BSD nm"
5012   echo "int some_variable = 0;" > conftest.$ac_ext
5013   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5014   (eval "$ac_compile" 2>conftest.err)
5015   cat conftest.err >&5
5016   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5017   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5018   cat conftest.err >&5
5019   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5020   cat conftest.out >&5
5021   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5022     lt_cv_nm_interface="MS dumpbin"
5023   fi
5024   rm -f conftest*
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5027 $as_echo "$lt_cv_nm_interface" >&6; }
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5030 $as_echo_n "checking whether ln -s works... " >&6; }
5031 LN_S=$as_ln_s
5032 if test "$LN_S" = "ln -s"; then
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5037 $as_echo "no, using $LN_S" >&6; }
5038 fi
5039
5040 # find the maximum length of command line arguments
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5042 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5043 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5044   $as_echo_n "(cached) " >&6
5045 else
5046     i=0
5047   teststring="ABCD"
5048
5049   case $build_os in
5050   msdosdjgpp*)
5051     # On DJGPP, this test can blow up pretty badly due to problems in libc
5052     # (any single argument exceeding 2000 bytes causes a buffer overrun
5053     # during glob expansion).  Even if it were fixed, the result of this
5054     # check would be larger than it should be.
5055     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5056     ;;
5057
5058   gnu*)
5059     # Under GNU Hurd, this test is not required because there is
5060     # no limit to the length of command line arguments.
5061     # Libtool will interpret -1 as no limit whatsoever
5062     lt_cv_sys_max_cmd_len=-1;
5063     ;;
5064
5065   cygwin* | mingw* | cegcc*)
5066     # On Win9x/ME, this test blows up -- it succeeds, but takes
5067     # about 5 minutes as the teststring grows exponentially.
5068     # Worse, since 9x/ME are not pre-emptively multitasking,
5069     # you end up with a "frozen" computer, even though with patience
5070     # the test eventually succeeds (with a max line length of 256k).
5071     # Instead, let's just punt: use the minimum linelength reported by
5072     # all of the supported platforms: 8192 (on NT/2K/XP).
5073     lt_cv_sys_max_cmd_len=8192;
5074     ;;
5075
5076   mint*)
5077     # On MiNT this can take a long time and run out of memory.
5078     lt_cv_sys_max_cmd_len=8192;
5079     ;;
5080
5081   amigaos*)
5082     # On AmigaOS with pdksh, this test takes hours, literally.
5083     # So we just punt and use a minimum line length of 8192.
5084     lt_cv_sys_max_cmd_len=8192;
5085     ;;
5086
5087   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5088     # This has been around since 386BSD, at least.  Likely further.
5089     if test -x /sbin/sysctl; then
5090       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5091     elif test -x /usr/sbin/sysctl; then
5092       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5093     else
5094       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5095     fi
5096     # And add a safety zone
5097     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5099     ;;
5100
5101   interix*)
5102     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103     lt_cv_sys_max_cmd_len=196608
5104     ;;
5105
5106   osf*)
5107     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5108     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5109     # nice to cause kernel panics so lets avoid the loop below.
5110     # First set a reasonable default.
5111     lt_cv_sys_max_cmd_len=16384
5112     #
5113     if test -x /sbin/sysconfig; then
5114       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5115         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5116       esac
5117     fi
5118     ;;
5119   sco3.2v5*)
5120     lt_cv_sys_max_cmd_len=102400
5121     ;;
5122   sysv5* | sco5v6* | sysv4.2uw2*)
5123     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5124     if test -n "$kargmax"; then
5125       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5126     else
5127       lt_cv_sys_max_cmd_len=32768
5128     fi
5129     ;;
5130   *)
5131     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5132     if test -n "$lt_cv_sys_max_cmd_len"; then
5133       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5134       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5135     else
5136       # Make teststring a little bigger before we do anything with it.
5137       # a 1K string should be a reasonable start.
5138       for i in 1 2 3 4 5 6 7 8 ; do
5139         teststring=$teststring$teststring
5140       done
5141       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5142       # If test is not a shell built-in, we'll probably end up computing a
5143       # maximum length that is only half of the actual maximum length, but
5144       # we can't tell.
5145       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5146                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5147               test $i != 17 # 1/2 MB should be enough
5148       do
5149         i=`expr $i + 1`
5150         teststring=$teststring$teststring
5151       done
5152       # Only check the string length outside the loop.
5153       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5154       teststring=
5155       # Add a significant safety factor because C++ compilers can tack on
5156       # massive amounts of additional arguments before passing them to the
5157       # linker.  It appears as though 1/2 is a usable value.
5158       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5159     fi
5160     ;;
5161   esac
5162
5163 fi
5164
5165 if test -n $lt_cv_sys_max_cmd_len ; then
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5167 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5168 else
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5170 $as_echo "none" >&6; }
5171 fi
5172 max_cmd_len=$lt_cv_sys_max_cmd_len
5173
5174
5175
5176
5177
5178
5179 : ${CP="cp -f"}
5180 : ${MV="mv -f"}
5181 : ${RM="rm -f"}
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5184 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5185 # Try some XSI features
5186 xsi_shell=no
5187 ( _lt_dummy="a/b/c"
5188   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5189       = c,a/b,, \
5190     && eval 'test $(( 1 + 1 )) -eq 2 \
5191     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5192   && xsi_shell=yes
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5194 $as_echo "$xsi_shell" >&6; }
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5198 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5199 lt_shell_append=no
5200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5201     >/dev/null 2>&1 \
5202   && lt_shell_append=yes
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5204 $as_echo "$lt_shell_append" >&6; }
5205
5206
5207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5208   lt_unset=unset
5209 else
5210   lt_unset=false
5211 fi
5212
5213
5214
5215
5216
5217 # test EBCDIC or ASCII
5218 case `echo X|tr X '\101'` in
5219  A) # ASCII based system
5220     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5221   lt_SP2NL='tr \040 \012'
5222   lt_NL2SP='tr \015\012 \040\040'
5223   ;;
5224  *) # EBCDIC based system
5225   lt_SP2NL='tr \100 \n'
5226   lt_NL2SP='tr \r\n \100\100'
5227   ;;
5228 esac
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5239 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5240 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   lt_cv_ld_reload_flag='-r'
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5246 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5247 reload_flag=$lt_cv_ld_reload_flag
5248 case $reload_flag in
5249 "" | " "*) ;;
5250 *) reload_flag=" $reload_flag" ;;
5251 esac
5252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5253 case $host_os in
5254   darwin*)
5255     if test "$GCC" = yes; then
5256       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5257     else
5258       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5259     fi
5260     ;;
5261 esac
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 if test -n "$ac_tool_prefix"; then
5272   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5277   $as_echo_n "(cached) " >&6
5278 else
5279   if test -n "$OBJDUMP"; then
5280   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285   IFS=$as_save_IFS
5286   test -z "$as_dir" && as_dir=.
5287     for ac_exec_ext in '' $ac_executable_extensions; do
5288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291     break 2
5292   fi
5293 done
5294   done
5295 IFS=$as_save_IFS
5296
5297 fi
5298 fi
5299 OBJDUMP=$ac_cv_prog_OBJDUMP
5300 if test -n "$OBJDUMP"; then
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5302 $as_echo "$OBJDUMP" >&6; }
5303 else
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5306 fi
5307
5308
5309 fi
5310 if test -z "$ac_cv_prog_OBJDUMP"; then
5311   ac_ct_OBJDUMP=$OBJDUMP
5312   # Extract the first word of "objdump", so it can be a program name with args.
5313 set dummy objdump; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -n "$ac_ct_OBJDUMP"; then
5320   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327     for ac_exec_ext in '' $ac_executable_extensions; do
5328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334   done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5340 if test -n "$ac_ct_OBJDUMP"; then
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5342 $as_echo "$ac_ct_OBJDUMP" >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348   if test "x$ac_ct_OBJDUMP" = x; then
5349     OBJDUMP="false"
5350   else
5351     case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5356 esac
5357     OBJDUMP=$ac_ct_OBJDUMP
5358   fi
5359 else
5360   OBJDUMP="$ac_cv_prog_OBJDUMP"
5361 fi
5362
5363 test -z "$OBJDUMP" && OBJDUMP=objdump
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5374 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5375 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5376   $as_echo_n "(cached) " >&6
5377 else
5378   lt_cv_file_magic_cmd='$MAGIC_CMD'
5379 lt_cv_file_magic_test_file=
5380 lt_cv_deplibs_check_method='unknown'
5381 # Need to set the preceding variable on all platforms that support
5382 # interlibrary dependencies.
5383 # 'none' -- dependencies not supported.
5384 # `unknown' -- same as none, but documents that we really don't know.
5385 # 'pass_all' -- all dependencies passed with no checks.
5386 # 'test_compile' -- check by making test program.
5387 # 'file_magic [[regex]]' -- check by looking for files in library path
5388 # which responds to the $file_magic_cmd with a given extended regex.
5389 # If you have `file' or equivalent on your system and you're not sure
5390 # whether `pass_all' will *always* work, you probably want this one.
5391
5392 case $host_os in
5393 aix[4-9]*)
5394   lt_cv_deplibs_check_method=pass_all
5395   ;;
5396
5397 beos*)
5398   lt_cv_deplibs_check_method=pass_all
5399   ;;
5400
5401 bsdi[45]*)
5402   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5403   lt_cv_file_magic_cmd='/usr/bin/file -L'
5404   lt_cv_file_magic_test_file=/shlib/libc.so
5405   ;;
5406
5407 cygwin*)
5408   # func_win32_libid is a shell function defined in ltmain.sh
5409   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410   lt_cv_file_magic_cmd='func_win32_libid'
5411   ;;
5412
5413 mingw* | pw32*)
5414   # Base MSYS/MinGW do not provide the 'file' command needed by
5415   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5416   # unless we find 'file', for example because we are cross-compiling.
5417   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5418   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5419     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5420     lt_cv_file_magic_cmd='func_win32_libid'
5421   else
5422     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5423     lt_cv_file_magic_cmd='$OBJDUMP -f'
5424   fi
5425   ;;
5426
5427 cegcc*)
5428   # use the weaker test based on 'objdump'. See mingw*.
5429   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5430   lt_cv_file_magic_cmd='$OBJDUMP -f'
5431   ;;
5432
5433 darwin* | rhapsody*)
5434   lt_cv_deplibs_check_method=pass_all
5435   ;;
5436
5437 freebsd* | dragonfly*)
5438   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5439     case $host_cpu in
5440     i*86 )
5441       # Not sure whether the presence of OpenBSD here was a mistake.
5442       # Let's accept both of them until this is cleared up.
5443       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5444       lt_cv_file_magic_cmd=/usr/bin/file
5445       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5446       ;;
5447     esac
5448   else
5449     lt_cv_deplibs_check_method=pass_all
5450   fi
5451   ;;
5452
5453 gnu*)
5454   lt_cv_deplibs_check_method=pass_all
5455   ;;
5456
5457 haiku*)
5458   lt_cv_deplibs_check_method=pass_all
5459   ;;
5460
5461 hpux10.20* | hpux11*)
5462   lt_cv_file_magic_cmd=/usr/bin/file
5463   case $host_cpu in
5464   ia64*)
5465     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5466     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5467     ;;
5468   hppa*64*)
5469     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]'
5470     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5471     ;;
5472   *)
5473     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5474     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5475     ;;
5476   esac
5477   ;;
5478
5479 interix[3-9]*)
5480   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5481   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5482   ;;
5483
5484 irix5* | irix6* | nonstopux*)
5485   case $LD in
5486   *-32|*"-32 ") libmagic=32-bit;;
5487   *-n32|*"-n32 ") libmagic=N32;;
5488   *-64|*"-64 ") libmagic=64-bit;;
5489   *) libmagic=never-match;;
5490   esac
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 # This must be Linux ELF.
5495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5496   lt_cv_deplibs_check_method=pass_all
5497   ;;
5498
5499 netbsd*)
5500   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5502   else
5503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5504   fi
5505   ;;
5506
5507 newos6*)
5508   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5509   lt_cv_file_magic_cmd=/usr/bin/file
5510   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5511   ;;
5512
5513 *nto* | *qnx*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 openbsd*)
5518   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5519     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5520   else
5521     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5522   fi
5523   ;;
5524
5525 osf3* | osf4* | osf5*)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 rdos*)
5530   lt_cv_deplibs_check_method=pass_all
5531   ;;
5532
5533 solaris*)
5534   lt_cv_deplibs_check_method=pass_all
5535   ;;
5536
5537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 sysv4 | sysv4.3*)
5542   case $host_vendor in
5543   motorola)
5544     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]'
5545     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5546     ;;
5547   ncr)
5548     lt_cv_deplibs_check_method=pass_all
5549     ;;
5550   sequent)
5551     lt_cv_file_magic_cmd='/bin/file'
5552     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5553     ;;
5554   sni)
5555     lt_cv_file_magic_cmd='/bin/file'
5556     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5557     lt_cv_file_magic_test_file=/lib/libc.so
5558     ;;
5559   siemens)
5560     lt_cv_deplibs_check_method=pass_all
5561     ;;
5562   pc)
5563     lt_cv_deplibs_check_method=pass_all
5564     ;;
5565   esac
5566   ;;
5567
5568 tpf*)
5569   lt_cv_deplibs_check_method=pass_all
5570   ;;
5571 esac
5572
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5575 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5576 file_magic_cmd=$lt_cv_file_magic_cmd
5577 deplibs_check_method=$lt_cv_deplibs_check_method
5578 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591 if test -n "$ac_tool_prefix"; then
5592   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5593 set dummy ${ac_tool_prefix}ar; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if test "${ac_cv_prog_AR+set}" = set; then :
5597   $as_echo_n "(cached) " >&6
5598 else
5599   if test -n "$AR"; then
5600   ac_cv_prog_AR="$AR" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607     for ac_exec_ext in '' $ac_executable_extensions; do
5608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609     ac_cv_prog_AR="${ac_tool_prefix}ar"
5610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614   done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 AR=$ac_cv_prog_AR
5620 if test -n "$AR"; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5622 $as_echo "$AR" >&6; }
5623 else
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628
5629 fi
5630 if test -z "$ac_cv_prog_AR"; then
5631   ac_ct_AR=$AR
5632   # Extract the first word of "ar", so it can be a program name with args.
5633 set dummy ar; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   if test -n "$ac_ct_AR"; then
5640   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649     ac_cv_prog_ac_ct_AR="ar"
5650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654   done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5660 if test -n "$ac_ct_AR"; then
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5662 $as_echo "$ac_ct_AR" >&6; }
5663 else
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668   if test "x$ac_ct_AR" = x; then
5669     AR="false"
5670   else
5671     case $cross_compiling:$ac_tool_warned in
5672 yes:)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675 ac_tool_warned=yes ;;
5676 esac
5677     AR=$ac_ct_AR
5678   fi
5679 else
5680   AR="$ac_cv_prog_AR"
5681 fi
5682
5683 test -z "$AR" && AR=ar
5684 test -z "$AR_FLAGS" && AR_FLAGS=cru
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 if test -n "$ac_tool_prefix"; then
5697   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}strip; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_prog_STRIP+set}" = set; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   if test -n "$STRIP"; then
5705   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 STRIP=$ac_cv_prog_STRIP
5725 if test -n "$STRIP"; then
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5727 $as_echo "$STRIP" >&6; }
5728 else
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734 fi
5735 if test -z "$ac_cv_prog_STRIP"; then
5736   ac_ct_STRIP=$STRIP
5737   # Extract the first word of "strip", so it can be a program name with args.
5738 set dummy strip; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if test -n "$ac_ct_STRIP"; then
5745   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752     for ac_exec_ext in '' $ac_executable_extensions; do
5753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754     ac_cv_prog_ac_ct_STRIP="strip"
5755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759   done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5765 if test -n "$ac_ct_STRIP"; then
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5767 $as_echo "$ac_ct_STRIP" >&6; }
5768 else
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773   if test "x$ac_ct_STRIP" = x; then
5774     STRIP=":"
5775   else
5776     case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782     STRIP=$ac_ct_STRIP
5783   fi
5784 else
5785   STRIP="$ac_cv_prog_STRIP"
5786 fi
5787
5788 test -z "$STRIP" && STRIP=:
5789
5790
5791
5792
5793
5794
5795 if test -n "$ac_tool_prefix"; then
5796   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5801   $as_echo_n "(cached) " >&6
5802 else
5803   if test -n "$RANLIB"; then
5804   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818   done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 RANLIB=$ac_cv_prog_RANLIB
5824 if test -n "$RANLIB"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5826 $as_echo "$RANLIB" >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832
5833 fi
5834 if test -z "$ac_cv_prog_RANLIB"; then
5835   ac_ct_RANLIB=$RANLIB
5836   # Extract the first word of "ranlib", so it can be a program name with args.
5837 set dummy ranlib; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if test -n "$ac_ct_RANLIB"; then
5844   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853     ac_cv_prog_ac_ct_RANLIB="ranlib"
5854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858   done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5864 if test -n "$ac_ct_RANLIB"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5866 $as_echo "$ac_ct_RANLIB" >&6; }
5867 else
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872   if test "x$ac_ct_RANLIB" = x; then
5873     RANLIB=":"
5874   else
5875     case $cross_compiling:$ac_tool_warned in
5876 yes:)
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5880 esac
5881     RANLIB=$ac_ct_RANLIB
5882   fi
5883 else
5884   RANLIB="$ac_cv_prog_RANLIB"
5885 fi
5886
5887 test -z "$RANLIB" && RANLIB=:
5888
5889
5890
5891
5892
5893
5894 # Determine commands to create old-style static archives.
5895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5896 old_postinstall_cmds='chmod 644 $oldlib'
5897 old_postuninstall_cmds=
5898
5899 if test -n "$RANLIB"; then
5900   case $host_os in
5901   openbsd*)
5902     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5903     ;;
5904   *)
5905     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5906     ;;
5907   esac
5908   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5909 fi
5910
5911 case $host_os in
5912   darwin*)
5913     lock_old_archive_extraction=yes ;;
5914   *)
5915     lock_old_archive_extraction=no ;;
5916 esac
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
5950
5951
5952
5953
5954
5955
5956 # If no C compiler was specified, use CC.
5957 LTCC=${LTCC-"$CC"}
5958
5959 # If no C compiler flags were specified, use CFLAGS.
5960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5961
5962 # Allow CC to be a program name with arguments.
5963 compiler=$CC
5964
5965
5966 # Check for command to grab the raw symbol name followed by C symbol from nm.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5968 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5969 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972
5973 # These are sane defaults that work on at least a few old systems.
5974 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5975
5976 # Character class describing NM global symbol codes.
5977 symcode='[BCDEGRST]'
5978
5979 # Regexp to match symbols that can be accessed directly from C.
5980 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5981
5982 # Define system-specific variables.
5983 case $host_os in
5984 aix*)
5985   symcode='[BCDT]'
5986   ;;
5987 cygwin* | mingw* | pw32* | cegcc*)
5988   symcode='[ABCDGISTW]'
5989   ;;
5990 hpux*)
5991   if test "$host_cpu" = ia64; then
5992     symcode='[ABCDEGRST]'
5993   fi
5994   ;;
5995 irix* | nonstopux*)
5996   symcode='[BCDEGRST]'
5997   ;;
5998 osf*)
5999   symcode='[BCDEGQRST]'
6000   ;;
6001 solaris*)
6002   symcode='[BDRT]'
6003   ;;
6004 sco3.2v5*)
6005   symcode='[DT]'
6006   ;;
6007 sysv4.2uw2*)
6008   symcode='[DT]'
6009   ;;
6010 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6011   symcode='[ABDT]'
6012   ;;
6013 sysv4)
6014   symcode='[DFNSTU]'
6015   ;;
6016 esac
6017
6018 # If we're using GNU nm, then use its standard symbol codes.
6019 case `$NM -V 2>&1` in
6020 *GNU* | *'with BFD'*)
6021   symcode='[ABCDGIRSTW]' ;;
6022 esac
6023
6024 # Transform an extracted symbol line into a proper C declaration.
6025 # Some systems (esp. on ia64) link data and code symbols differently,
6026 # so use this general approach.
6027 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6028
6029 # Transform an extracted symbol line into symbol name and symbol address
6030 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6031 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'"
6032
6033 # Handle CRLF in mingw tool chain
6034 opt_cr=
6035 case $build_os in
6036 mingw*)
6037   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6038   ;;
6039 esac
6040
6041 # Try without a prefix underscore, then with it.
6042 for ac_symprfx in "" "_"; do
6043
6044   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6045   symxfrm="\\1 $ac_symprfx\\2 \\2"
6046
6047   # Write the raw and C identifiers.
6048   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6049     # Fake it for dumpbin and say T for any non-static function
6050     # and D for any global variable.
6051     # Also find C++ and __fastcall symbols from MSVC++,
6052     # which start with @ or ?.
6053     lt_cv_sys_global_symbol_pipe="$AWK '"\
6054 "     {last_section=section; section=\$ 3};"\
6055 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6056 "     \$ 0!~/External *\|/{next};"\
6057 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6058 "     {if(hide[section]) next};"\
6059 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6060 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6061 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6062 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6063 "     ' prfx=^$ac_symprfx"
6064   else
6065     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6066   fi
6067
6068   # Check to see that the pipe works correctly.
6069   pipe_works=no
6070
6071   rm -f conftest*
6072   cat > conftest.$ac_ext <<_LT_EOF
6073 #ifdef __cplusplus
6074 extern "C" {
6075 #endif
6076 char nm_test_var;
6077 void nm_test_func(void);
6078 void nm_test_func(void){}
6079 #ifdef __cplusplus
6080 }
6081 #endif
6082 int main(){nm_test_var='a';nm_test_func();return(0);}
6083 _LT_EOF
6084
6085   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086   (eval $ac_compile) 2>&5
6087   ac_status=$?
6088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089   test $ac_status = 0; }; then
6090     # Now try to grab the symbols.
6091     nlist=conftest.nm
6092     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6093   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6094   ac_status=$?
6095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096   test $ac_status = 0; } && test -s "$nlist"; then
6097       # Try sorting and uniquifying the output.
6098       if sort "$nlist" | uniq > "$nlist"T; then
6099         mv -f "$nlist"T "$nlist"
6100       else
6101         rm -f "$nlist"T
6102       fi
6103
6104       # Make sure that we snagged all the symbols we need.
6105       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6106         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6107           cat <<_LT_EOF > conftest.$ac_ext
6108 #ifdef __cplusplus
6109 extern "C" {
6110 #endif
6111
6112 _LT_EOF
6113           # Now generate the symbol file.
6114           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6115
6116           cat <<_LT_EOF >> conftest.$ac_ext
6117
6118 /* The mapping between symbol names and symbols.  */
6119 const struct {
6120   const char *name;
6121   void       *address;
6122 }
6123 lt__PROGRAM__LTX_preloaded_symbols[] =
6124 {
6125   { "@PROGRAM@", (void *) 0 },
6126 _LT_EOF
6127           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6128           cat <<\_LT_EOF >> conftest.$ac_ext
6129   {0, (void *) 0}
6130 };
6131
6132 /* This works around a problem in FreeBSD linker */
6133 #ifdef FREEBSD_WORKAROUND
6134 static const void *lt_preloaded_setup() {
6135   return lt__PROGRAM__LTX_preloaded_symbols;
6136 }
6137 #endif
6138
6139 #ifdef __cplusplus
6140 }
6141 #endif
6142 _LT_EOF
6143           # Now try linking the two files.
6144           mv conftest.$ac_objext conftstm.$ac_objext
6145           lt_save_LIBS="$LIBS"
6146           lt_save_CFLAGS="$CFLAGS"
6147           LIBS="conftstm.$ac_objext"
6148           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6149           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6150   (eval $ac_link) 2>&5
6151   ac_status=$?
6152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6154             pipe_works=yes
6155           fi
6156           LIBS="$lt_save_LIBS"
6157           CFLAGS="$lt_save_CFLAGS"
6158         else
6159           echo "cannot find nm_test_func in $nlist" >&5
6160         fi
6161       else
6162         echo "cannot find nm_test_var in $nlist" >&5
6163       fi
6164     else
6165       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6166     fi
6167   else
6168     echo "$progname: failed program was:" >&5
6169     cat conftest.$ac_ext >&5
6170   fi
6171   rm -rf conftest* conftst*
6172
6173   # Do not use the global_symbol_pipe unless it works.
6174   if test "$pipe_works" = yes; then
6175     break
6176   else
6177     lt_cv_sys_global_symbol_pipe=
6178   fi
6179 done
6180
6181 fi
6182
6183 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6184   lt_cv_sys_global_symbol_to_cdecl=
6185 fi
6186 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6188 $as_echo "failed" >&6; }
6189 else
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6191 $as_echo "ok" >&6; }
6192 fi
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 # Check whether --enable-libtool-lock was given.
6217 if test "${enable_libtool_lock+set}" = set; then :
6218   enableval=$enable_libtool_lock;
6219 fi
6220
6221 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6222
6223 # Some flags need to be propagated to the compiler or linker for good
6224 # libtool support.
6225 case $host in
6226 ia64-*-hpux*)
6227   # Find out which ABI we are using.
6228   echo 'int i;' > conftest.$ac_ext
6229   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230   (eval $ac_compile) 2>&5
6231   ac_status=$?
6232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233   test $ac_status = 0; }; then
6234     case `/usr/bin/file conftest.$ac_objext` in
6235       *ELF-32*)
6236         HPUX_IA64_MODE="32"
6237         ;;
6238       *ELF-64*)
6239         HPUX_IA64_MODE="64"
6240         ;;
6241     esac
6242   fi
6243   rm -rf conftest*
6244   ;;
6245 *-*-irix6*)
6246   # Find out which ABI we are using.
6247   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6248   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249   (eval $ac_compile) 2>&5
6250   ac_status=$?
6251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252   test $ac_status = 0; }; then
6253     if test "$lt_cv_prog_gnu_ld" = yes; then
6254       case `/usr/bin/file conftest.$ac_objext` in
6255         *32-bit*)
6256           LD="${LD-ld} -melf32bsmip"
6257           ;;
6258         *N32*)
6259           LD="${LD-ld} -melf32bmipn32"
6260           ;;
6261         *64-bit*)
6262           LD="${LD-ld} -melf64bmip"
6263         ;;
6264       esac
6265     else
6266       case `/usr/bin/file conftest.$ac_objext` in
6267         *32-bit*)
6268           LD="${LD-ld} -32"
6269           ;;
6270         *N32*)
6271           LD="${LD-ld} -n32"
6272           ;;
6273         *64-bit*)
6274           LD="${LD-ld} -64"
6275           ;;
6276       esac
6277     fi
6278   fi
6279   rm -rf conftest*
6280   ;;
6281
6282 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6283 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6284   # Find out which ABI we are using.
6285   echo 'int i;' > conftest.$ac_ext
6286   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6287   (eval $ac_compile) 2>&5
6288   ac_status=$?
6289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290   test $ac_status = 0; }; then
6291     case `/usr/bin/file conftest.o` in
6292       *32-bit*)
6293         case $host in
6294           x86_64-*kfreebsd*-gnu)
6295             LD="${LD-ld} -m elf_i386_fbsd"
6296             ;;
6297           x86_64-*linux*)
6298             LD="${LD-ld} -m elf_i386"
6299             ;;
6300           ppc64-*linux*|powerpc64-*linux*)
6301             LD="${LD-ld} -m elf32ppclinux"
6302             ;;
6303           s390x-*linux*)
6304             LD="${LD-ld} -m elf_s390"
6305             ;;
6306           sparc64-*linux*)
6307             LD="${LD-ld} -m elf32_sparc"
6308             ;;
6309         esac
6310         ;;
6311       *64-bit*)
6312         case $host in
6313           x86_64-*kfreebsd*-gnu)
6314             LD="${LD-ld} -m elf_x86_64_fbsd"
6315             ;;
6316           x86_64-*linux*)
6317             LD="${LD-ld} -m elf_x86_64"
6318             ;;
6319           ppc*-*linux*|powerpc*-*linux*)
6320             LD="${LD-ld} -m elf64ppc"
6321             ;;
6322           s390*-*linux*|s390*-*tpf*)
6323             LD="${LD-ld} -m elf64_s390"
6324             ;;
6325           sparc*-*linux*)
6326             LD="${LD-ld} -m elf64_sparc"
6327             ;;
6328         esac
6329         ;;
6330     esac
6331   fi
6332   rm -rf conftest*
6333   ;;
6334
6335 *-*-sco3.2v5*)
6336   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6337   SAVE_CFLAGS="$CFLAGS"
6338   CFLAGS="$CFLAGS -belf"
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6340 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6341 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   ac_ext=c
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352
6353 int
6354 main ()
6355 {
6356
6357   ;
6358   return 0;
6359 }
6360 _ACEOF
6361 if ac_fn_c_try_link "$LINENO"; then :
6362   lt_cv_cc_needs_belf=yes
6363 else
6364   lt_cv_cc_needs_belf=no
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext \
6367     conftest$ac_exeext conftest.$ac_ext
6368      ac_ext=c
6369 ac_cpp='$CPP $CPPFLAGS'
6370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6373
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6376 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6377   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6378     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6379     CFLAGS="$SAVE_CFLAGS"
6380   fi
6381   ;;
6382 sparc*-*solaris*)
6383   # Find out which ABI we are using.
6384   echo 'int i;' > conftest.$ac_ext
6385   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6386   (eval $ac_compile) 2>&5
6387   ac_status=$?
6388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389   test $ac_status = 0; }; then
6390     case `/usr/bin/file conftest.o` in
6391     *64-bit*)
6392       case $lt_cv_prog_gnu_ld in
6393       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6394       *)
6395         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6396           LD="${LD-ld} -64"
6397         fi
6398         ;;
6399       esac
6400       ;;
6401     esac
6402   fi
6403   rm -rf conftest*
6404   ;;
6405 esac
6406
6407 need_locks="$enable_libtool_lock"
6408
6409
6410   case $host_os in
6411     rhapsody* | darwin*)
6412     if test -n "$ac_tool_prefix"; then
6413   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$DSYMUTIL"; then
6421   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6441 if test -n "$DSYMUTIL"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6443 $as_echo "$DSYMUTIL" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_DSYMUTIL"; then
6452   ac_ct_DSYMUTIL=$DSYMUTIL
6453   # Extract the first word of "dsymutil", so it can be a program name with args.
6454 set dummy dsymutil; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$ac_ct_DSYMUTIL"; then
6461   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6481 if test -n "$ac_ct_DSYMUTIL"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6483 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489   if test "x$ac_ct_DSYMUTIL" = x; then
6490     DSYMUTIL=":"
6491   else
6492     case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498     DSYMUTIL=$ac_ct_DSYMUTIL
6499   fi
6500 else
6501   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6502 fi
6503
6504     if test -n "$ac_tool_prefix"; then
6505   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   if test -n "$NMEDIT"; then
6513   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520     for ac_exec_ext in '' $ac_executable_extensions; do
6521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527   done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 NMEDIT=$ac_cv_prog_NMEDIT
6533 if test -n "$NMEDIT"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6535 $as_echo "$NMEDIT" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 fi
6543 if test -z "$ac_cv_prog_NMEDIT"; then
6544   ac_ct_NMEDIT=$NMEDIT
6545   # Extract the first word of "nmedit", so it can be a program name with args.
6546 set dummy nmedit; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$ac_ct_NMEDIT"; then
6553   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6573 if test -n "$ac_ct_NMEDIT"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6575 $as_echo "$ac_ct_NMEDIT" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581   if test "x$ac_ct_NMEDIT" = x; then
6582     NMEDIT=":"
6583   else
6584     case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590     NMEDIT=$ac_ct_NMEDIT
6591   fi
6592 else
6593   NMEDIT="$ac_cv_prog_NMEDIT"
6594 fi
6595
6596     if test -n "$ac_tool_prefix"; then
6597   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_LIPO+set}" = set; then :
6602   $as_echo_n "(cached) " >&6
6603 else
6604   if test -n "$LIPO"; then
6605   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612     for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619   done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 LIPO=$ac_cv_prog_LIPO
6625 if test -n "$LIPO"; then
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6627 $as_echo "$LIPO" >&6; }
6628 else
6629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_LIPO"; then
6636   ac_ct_LIPO=$LIPO
6637   # Extract the first word of "lipo", so it can be a program name with args.
6638 set dummy lipo; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$ac_ct_LIPO"; then
6645   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_prog_ac_ct_LIPO="lipo"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6665 if test -n "$ac_ct_LIPO"; then
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6667 $as_echo "$ac_ct_LIPO" >&6; }
6668 else
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673   if test "x$ac_ct_LIPO" = x; then
6674     LIPO=":"
6675   else
6676     case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682     LIPO=$ac_ct_LIPO
6683   fi
6684 else
6685   LIPO="$ac_cv_prog_LIPO"
6686 fi
6687
6688     if test -n "$ac_tool_prefix"; then
6689   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}otool; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -n "$OTOOL"; then
6697   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704     for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711   done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 OTOOL=$ac_cv_prog_OTOOL
6717 if test -n "$OTOOL"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6719 $as_echo "$OTOOL" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725
6726 fi
6727 if test -z "$ac_cv_prog_OTOOL"; then
6728   ac_ct_OTOOL=$OTOOL
6729   # Extract the first word of "otool", so it can be a program name with args.
6730 set dummy otool; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$ac_ct_OTOOL"; then
6737   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_prog_ac_ct_OTOOL="otool"
6747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751   done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6757 if test -n "$ac_ct_OTOOL"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6759 $as_echo "$ac_ct_OTOOL" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765   if test "x$ac_ct_OTOOL" = x; then
6766     OTOOL=":"
6767   else
6768     case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774     OTOOL=$ac_ct_OTOOL
6775   fi
6776 else
6777   OTOOL="$ac_cv_prog_OTOOL"
6778 fi
6779
6780     if test -n "$ac_tool_prefix"; then
6781   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   if test -n "$OTOOL64"; then
6789   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796     for ac_exec_ext in '' $ac_executable_extensions; do
6797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803   done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 OTOOL64=$ac_cv_prog_OTOOL64
6809 if test -n "$OTOOL64"; then
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6811 $as_echo "$OTOOL64" >&6; }
6812 else
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_OTOOL64"; then
6820   ac_ct_OTOOL64=$OTOOL64
6821   # Extract the first word of "otool64", so it can be a program name with args.
6822 set dummy otool64; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$ac_ct_OTOOL64"; then
6829   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_prog_ac_ct_OTOOL64="otool64"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6849 if test -n "$ac_ct_OTOOL64"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6851 $as_echo "$ac_ct_OTOOL64" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857   if test "x$ac_ct_OTOOL64" = x; then
6858     OTOOL64=":"
6859   else
6860     case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     OTOOL64=$ac_ct_OTOOL64
6867   fi
6868 else
6869   OTOOL64="$ac_cv_prog_OTOOL64"
6870 fi
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6899 $as_echo_n "checking for -single_module linker flag... " >&6; }
6900 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   lt_cv_apple_cc_single_mod=no
6904       if test -z "${LT_MULTI_MODULE}"; then
6905         # By default we will add the -single_module flag. You can override
6906         # by either setting the environment variable LT_MULTI_MODULE
6907         # non-empty at configure time, or by adding -multi_module to the
6908         # link flags.
6909         rm -rf libconftest.dylib*
6910         echo "int foo(void){return 1;}" > conftest.c
6911         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6912 -dynamiclib -Wl,-single_module conftest.c" >&5
6913         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6914           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6915         _lt_result=$?
6916         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6917           lt_cv_apple_cc_single_mod=yes
6918         else
6919           cat conftest.err >&5
6920         fi
6921         rm -rf libconftest.dylib*
6922         rm -f conftest.*
6923       fi
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6926 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6928 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6929 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   lt_cv_ld_exported_symbols_list=no
6933       save_LDFLAGS=$LDFLAGS
6934       echo "_main" > conftest.sym
6935       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h.  */
6938
6939 int
6940 main ()
6941 {
6942
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"; then :
6948   lt_cv_ld_exported_symbols_list=yes
6949 else
6950   lt_cv_ld_exported_symbols_list=no
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext \
6953     conftest$ac_exeext conftest.$ac_ext
6954         LDFLAGS="$save_LDFLAGS"
6955
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6958 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6960 $as_echo_n "checking for -force_load linker flag... " >&6; }
6961 if test "${lt_cv_ld_force_load+set}" = set; then :
6962   $as_echo_n "(cached) " >&6
6963 else
6964   lt_cv_ld_force_load=no
6965       cat > conftest.c << _LT_EOF
6966 int forced_loaded() { return 2;}
6967 _LT_EOF
6968       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6969       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6970       echo "$AR cru libconftest.a conftest.o" >&5
6971       $AR cru libconftest.a conftest.o 2>&5
6972       cat > conftest.c << _LT_EOF
6973 int main() { return 0;}
6974 _LT_EOF
6975       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6976       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6977       _lt_result=$?
6978       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6979         lt_cv_ld_force_load=yes
6980       else
6981         cat conftest.err >&5
6982       fi
6983         rm -f conftest.err libconftest.a conftest conftest.c
6984         rm -rf conftest.dSYM
6985
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6988 $as_echo "$lt_cv_ld_force_load" >&6; }
6989     case $host_os in
6990     rhapsody* | darwin1.[012])
6991       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6992     darwin1.*)
6993       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6994     darwin*) # darwin 5.x on
6995       # if running on 10.5 or later, the deployment target defaults
6996       # to the OS version, if on x86, and 10.4, the deployment
6997       # target defaults to 10.4. Don't you love it?
6998       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6999         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7000           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7001         10.[012]*)
7002           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7003         10.*)
7004           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7005       esac
7006     ;;
7007   esac
7008     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7009       _lt_dar_single_mod='$single_module'
7010     fi
7011     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7012       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7013     else
7014       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7015     fi
7016     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7017       _lt_dsymutil='~$DSYMUTIL $lib || :'
7018     else
7019       _lt_dsymutil=
7020     fi
7021     ;;
7022   esac
7023
7024 ac_ext=c
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7030 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7031 # On Suns, sometimes $CPP names a directory.
7032 if test -n "$CPP" && test -d "$CPP"; then
7033   CPP=
7034 fi
7035 if test -z "$CPP"; then
7036   if test "${ac_cv_prog_CPP+set}" = set; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039       # Double quotes because CPP needs to be expanded
7040     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7041     do
7042       ac_preproc_ok=false
7043 for ac_c_preproc_warn_flag in '' yes
7044 do
7045   # Use a header file that comes with gcc, so configuring glibc
7046   # with a fresh cross-compiler works.
7047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048   # <limits.h> exists even on freestanding compilers.
7049   # On the NeXT, cc -E runs the code through the compiler's parser,
7050   # not just through cpp. "Syntax error" is here to catch this case.
7051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h.  */
7053 #ifdef __STDC__
7054 # include <limits.h>
7055 #else
7056 # include <assert.h>
7057 #endif
7058                      Syntax error
7059 _ACEOF
7060 if ac_fn_c_try_cpp "$LINENO"; then :
7061
7062 else
7063   # Broken: fails on valid input.
7064 continue
7065 fi
7066 rm -f conftest.err conftest.$ac_ext
7067
7068   # OK, works on sane cases.  Now check whether nonexistent headers
7069   # can be detected and how.
7070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h.  */
7072 #include <ac_nonexistent.h>
7073 _ACEOF
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7075   # Broken: success on invalid input.
7076 continue
7077 else
7078   # Passes both tests.
7079 ac_preproc_ok=:
7080 break
7081 fi
7082 rm -f conftest.err conftest.$ac_ext
7083
7084 done
7085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7086 rm -f conftest.err conftest.$ac_ext
7087 if $ac_preproc_ok; then :
7088   break
7089 fi
7090
7091     done
7092     ac_cv_prog_CPP=$CPP
7093
7094 fi
7095   CPP=$ac_cv_prog_CPP
7096 else
7097   ac_cv_prog_CPP=$CPP
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7100 $as_echo "$CPP" >&6; }
7101 ac_preproc_ok=false
7102 for ac_c_preproc_warn_flag in '' yes
7103 do
7104   # Use a header file that comes with gcc, so configuring glibc
7105   # with a fresh cross-compiler works.
7106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107   # <limits.h> exists even on freestanding compilers.
7108   # On the NeXT, cc -E runs the code through the compiler's parser,
7109   # not just through cpp. "Syntax error" is here to catch this case.
7110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h.  */
7112 #ifdef __STDC__
7113 # include <limits.h>
7114 #else
7115 # include <assert.h>
7116 #endif
7117                      Syntax error
7118 _ACEOF
7119 if ac_fn_c_try_cpp "$LINENO"; then :
7120
7121 else
7122   # Broken: fails on valid input.
7123 continue
7124 fi
7125 rm -f conftest.err conftest.$ac_ext
7126
7127   # OK, works on sane cases.  Now check whether nonexistent headers
7128   # can be detected and how.
7129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h.  */
7131 #include <ac_nonexistent.h>
7132 _ACEOF
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7134   # Broken: success on invalid input.
7135 continue
7136 else
7137   # Passes both tests.
7138 ac_preproc_ok=:
7139 break
7140 fi
7141 rm -f conftest.err conftest.$ac_ext
7142
7143 done
7144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7145 rm -f conftest.err conftest.$ac_ext
7146 if $ac_preproc_ok; then :
7147
7148 else
7149   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7151 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7152 See \`config.log' for more details." "$LINENO" 5; }
7153 fi
7154
7155 ac_ext=c
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7163 $as_echo_n "checking for ANSI C header files... " >&6; }
7164 if test "${ac_cv_header_stdc+set}" = set; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h.  */
7169 #include <stdlib.h>
7170 #include <stdarg.h>
7171 #include <string.h>
7172 #include <float.h>
7173
7174 int
7175 main ()
7176 {
7177
7178   ;
7179   return 0;
7180 }
7181 _ACEOF
7182 if ac_fn_c_try_compile "$LINENO"; then :
7183   ac_cv_header_stdc=yes
7184 else
7185   ac_cv_header_stdc=no
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188
7189 if test $ac_cv_header_stdc = yes; then
7190   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 #include <string.h>
7194
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197   $EGREP "memchr" >/dev/null 2>&1; then :
7198
7199 else
7200   ac_cv_header_stdc=no
7201 fi
7202 rm -f conftest*
7203
7204 fi
7205
7206 if test $ac_cv_header_stdc = yes; then
7207   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h.  */
7210 #include <stdlib.h>
7211
7212 _ACEOF
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214   $EGREP "free" >/dev/null 2>&1; then :
7215
7216 else
7217   ac_cv_header_stdc=no
7218 fi
7219 rm -f conftest*
7220
7221 fi
7222
7223 if test $ac_cv_header_stdc = yes; then
7224   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7225   if test "$cross_compiling" = yes; then :
7226   :
7227 else
7228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h.  */
7230 #include <ctype.h>
7231 #include <stdlib.h>
7232 #if ((' ' & 0x0FF) == 0x020)
7233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7235 #else
7236 # define ISLOWER(c) \
7237                    (('a' <= (c) && (c) <= 'i') \
7238                      || ('j' <= (c) && (c) <= 'r') \
7239                      || ('s' <= (c) && (c) <= 'z'))
7240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7241 #endif
7242
7243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7244 int
7245 main ()
7246 {
7247   int i;
7248   for (i = 0; i < 256; i++)
7249     if (XOR (islower (i), ISLOWER (i))
7250         || toupper (i) != TOUPPER (i))
7251       return 2;
7252   return 0;
7253 }
7254 _ACEOF
7255 if ac_fn_c_try_run "$LINENO"; then :
7256
7257 else
7258   ac_cv_header_stdc=no
7259 fi
7260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7261   conftest.$ac_objext conftest.beam conftest.$ac_ext
7262 fi
7263
7264 fi
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7267 $as_echo "$ac_cv_header_stdc" >&6; }
7268 if test $ac_cv_header_stdc = yes; then
7269
7270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7271
7272 fi
7273
7274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7276                   inttypes.h stdint.h unistd.h
7277 do :
7278   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7279 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7280 "
7281 eval as_val=\$$as_ac_Header
7282    if test "x$as_val" = x""yes; then :
7283   cat >>confdefs.h <<_ACEOF
7284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 _ACEOF
7286
7287 fi
7288
7289 done
7290
7291
7292 for ac_header in dlfcn.h
7293 do :
7294   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7295 "
7296 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7297   cat >>confdefs.h <<_ACEOF
7298 #define HAVE_DLFCN_H 1
7299 _ACEOF
7300
7301 fi
7302
7303 done
7304
7305 if test -n "$ac_tool_prefix"; then
7306   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7307 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if test "${ac_cv_prog_GOC+set}" = set; then :
7311   $as_echo_n "(cached) " >&6
7312 else
7313   if test -n "$GOC"; then
7314   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321     for ac_exec_ext in '' $ac_executable_extensions; do
7322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328   done
7329 IFS=$as_save_IFS
7330
7331 fi
7332 fi
7333 GOC=$ac_cv_prog_GOC
7334 if test -n "$GOC"; then
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7336 $as_echo "$GOC" >&6; }
7337 else
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 fi
7341
7342
7343 fi
7344 if test -z "$ac_cv_prog_GOC"; then
7345   ac_ct_GOC=$GOC
7346   # Extract the first word of "gccgo", so it can be a program name with args.
7347 set dummy gccgo; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   if test -n "$ac_ct_GOC"; then
7354   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_prog_ac_ct_GOC="gccgo"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7374 if test -n "$ac_ct_GOC"; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7376 $as_echo "$ac_ct_GOC" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382   if test "x$ac_ct_GOC" = x; then
7383     GOC=""
7384   else
7385     case $cross_compiling:$ac_tool_warned in
7386 yes:)
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389 ac_tool_warned=yes ;;
7390 esac
7391     GOC=$ac_ct_GOC
7392   fi
7393 else
7394   GOC="$ac_cv_prog_GOC"
7395 fi
7396
7397
7398
7399
7400
7401
7402 # Set options
7403
7404
7405
7406
7407   enable_win32_dll=no
7408
7409
7410             # Check whether --enable-shared was given.
7411 if test "${enable_shared+set}" = set; then :
7412   enableval=$enable_shared; p=${PACKAGE-default}
7413     case $enableval in
7414     yes) enable_shared=yes ;;
7415     no) enable_shared=no ;;
7416     *)
7417       enable_shared=no
7418       # Look at the argument we got.  We use all the common list separators.
7419       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7420       for pkg in $enableval; do
7421         IFS="$lt_save_ifs"
7422         if test "X$pkg" = "X$p"; then
7423           enable_shared=yes
7424         fi
7425       done
7426       IFS="$lt_save_ifs"
7427       ;;
7428     esac
7429 else
7430   enable_shared=yes
7431 fi
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441   # Check whether --enable-static was given.
7442 if test "${enable_static+set}" = set; then :
7443   enableval=$enable_static; p=${PACKAGE-default}
7444     case $enableval in
7445     yes) enable_static=yes ;;
7446     no) enable_static=no ;;
7447     *)
7448      enable_static=no
7449       # Look at the argument we got.  We use all the common list separators.
7450       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7451       for pkg in $enableval; do
7452         IFS="$lt_save_ifs"
7453         if test "X$pkg" = "X$p"; then
7454           enable_static=yes
7455         fi
7456       done
7457       IFS="$lt_save_ifs"
7458       ;;
7459     esac
7460 else
7461   enable_static=yes
7462 fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473 # Check whether --with-pic was given.
7474 if test "${with_pic+set}" = set; then :
7475   withval=$with_pic; pic_mode="$withval"
7476 else
7477   pic_mode=default
7478 fi
7479
7480
7481 test -z "$pic_mode" && pic_mode=default
7482
7483
7484
7485
7486
7487
7488
7489   # Check whether --enable-fast-install was given.
7490 if test "${enable_fast_install+set}" = set; then :
7491   enableval=$enable_fast_install; p=${PACKAGE-default}
7492     case $enableval in
7493     yes) enable_fast_install=yes ;;
7494     no) enable_fast_install=no ;;
7495     *)
7496       enable_fast_install=no
7497       # Look at the argument we got.  We use all the common list separators.
7498       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7499       for pkg in $enableval; do
7500         IFS="$lt_save_ifs"
7501         if test "X$pkg" = "X$p"; then
7502           enable_fast_install=yes
7503         fi
7504       done
7505       IFS="$lt_save_ifs"
7506       ;;
7507     esac
7508 else
7509   enable_fast_install=yes
7510 fi
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522 # This can be used to rebuild libtool when needed
7523 LIBTOOL_DEPS="$ltmain"
7524
7525 # Always use our own libtool.
7526 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 test -z "$LN_S" && LN_S="ln -s"
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 if test -n "${ZSH_VERSION+set}" ; then
7569    setopt NO_GLOB_SUBST
7570 fi
7571
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7573 $as_echo_n "checking for objdir... " >&6; }
7574 if test "${lt_cv_objdir+set}" = set; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   rm -f .libs 2>/dev/null
7578 mkdir .libs 2>/dev/null
7579 if test -d .libs; then
7580   lt_cv_objdir=.libs
7581 else
7582   # MS-DOS does not allow filenames that begin with a dot.
7583   lt_cv_objdir=_libs
7584 fi
7585 rmdir .libs 2>/dev/null
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7588 $as_echo "$lt_cv_objdir" >&6; }
7589 objdir=$lt_cv_objdir
7590
7591
7592
7593
7594
7595 cat >>confdefs.h <<_ACEOF
7596 #define LT_OBJDIR "$lt_cv_objdir/"
7597 _ACEOF
7598
7599
7600
7601
7602 case $host_os in
7603 aix3*)
7604   # AIX sometimes has problems with the GCC collect2 program.  For some
7605   # reason, if we set the COLLECT_NAMES environment variable, the problems
7606   # vanish in a puff of smoke.
7607   if test "X${COLLECT_NAMES+set}" != Xset; then
7608     COLLECT_NAMES=
7609     export COLLECT_NAMES
7610   fi
7611   ;;
7612 esac
7613
7614 # Global variables:
7615 ofile=libtool
7616 can_build_shared=yes
7617
7618 # All known linkers require a `.a' archive for static linking (except MSVC,
7619 # which needs '.lib').
7620 libext=a
7621
7622 with_gnu_ld="$lt_cv_prog_gnu_ld"
7623
7624 old_CC="$CC"
7625 old_CFLAGS="$CFLAGS"
7626
7627 # Set sane defaults for various variables
7628 test -z "$CC" && CC=cc
7629 test -z "$LTCC" && LTCC=$CC
7630 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7631 test -z "$LD" && LD=ld
7632 test -z "$ac_objext" && ac_objext=o
7633
7634 for cc_temp in $compiler""; do
7635   case $cc_temp in
7636     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7637     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7638     \-*) ;;
7639     *) break;;
7640   esac
7641 done
7642 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7643
7644
7645 # Only perform the check for file, if the check method requires it
7646 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7647 case $deplibs_check_method in
7648 file_magic*)
7649   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7651 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7652 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   case $MAGIC_CMD in
7656 [\\/*] |  ?:[\\/]*)
7657   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658   ;;
7659 *)
7660   lt_save_MAGIC_CMD="$MAGIC_CMD"
7661   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7662   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7663   for ac_dir in $ac_dummy; do
7664     IFS="$lt_save_ifs"
7665     test -z "$ac_dir" && ac_dir=.
7666     if test -f $ac_dir/${ac_tool_prefix}file; then
7667       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7668       if test -n "$file_magic_test_file"; then
7669         case $deplibs_check_method in
7670         "file_magic "*)
7671           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7672           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7674             $EGREP "$file_magic_regex" > /dev/null; then
7675             :
7676           else
7677             cat <<_LT_EOF 1>&2
7678
7679 *** Warning: the command libtool uses to detect shared libraries,
7680 *** $file_magic_cmd, produces output that libtool cannot recognize.
7681 *** The result is that libtool may fail to recognize shared libraries
7682 *** as such.  This will affect the creation of libtool libraries that
7683 *** depend on shared libraries, but programs linked with such libtool
7684 *** libraries will work regardless of this problem.  Nevertheless, you
7685 *** may want to report the problem to your system manager and/or to
7686 *** bug-libtool@gnu.org
7687
7688 _LT_EOF
7689           fi ;;
7690         esac
7691       fi
7692       break
7693     fi
7694   done
7695   IFS="$lt_save_ifs"
7696   MAGIC_CMD="$lt_save_MAGIC_CMD"
7697   ;;
7698 esac
7699 fi
7700
7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702 if test -n "$MAGIC_CMD"; then
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7704 $as_echo "$MAGIC_CMD" >&6; }
7705 else
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710
7711
7712
7713
7714 if test -z "$lt_cv_path_MAGIC_CMD"; then
7715   if test -n "$ac_tool_prefix"; then
7716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7717 $as_echo_n "checking for file... " >&6; }
7718 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721   case $MAGIC_CMD in
7722 [\\/*] |  ?:[\\/]*)
7723   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7724   ;;
7725 *)
7726   lt_save_MAGIC_CMD="$MAGIC_CMD"
7727   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7728   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7729   for ac_dir in $ac_dummy; do
7730     IFS="$lt_save_ifs"
7731     test -z "$ac_dir" && ac_dir=.
7732     if test -f $ac_dir/file; then
7733       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7734       if test -n "$file_magic_test_file"; then
7735         case $deplibs_check_method in
7736         "file_magic "*)
7737           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7738           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7739           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7740             $EGREP "$file_magic_regex" > /dev/null; then
7741             :
7742           else
7743             cat <<_LT_EOF 1>&2
7744
7745 *** Warning: the command libtool uses to detect shared libraries,
7746 *** $file_magic_cmd, produces output that libtool cannot recognize.
7747 *** The result is that libtool may fail to recognize shared libraries
7748 *** as such.  This will affect the creation of libtool libraries that
7749 *** depend on shared libraries, but programs linked with such libtool
7750 *** libraries will work regardless of this problem.  Nevertheless, you
7751 *** may want to report the problem to your system manager and/or to
7752 *** bug-libtool@gnu.org
7753
7754 _LT_EOF
7755           fi ;;
7756         esac
7757       fi
7758       break
7759     fi
7760   done
7761   IFS="$lt_save_ifs"
7762   MAGIC_CMD="$lt_save_MAGIC_CMD"
7763   ;;
7764 esac
7765 fi
7766
7767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768 if test -n "$MAGIC_CMD"; then
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7770 $as_echo "$MAGIC_CMD" >&6; }
7771 else
7772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775
7776
7777   else
7778     MAGIC_CMD=:
7779   fi
7780 fi
7781
7782   fi
7783   ;;
7784 esac
7785
7786 # Use C for the default configuration in the libtool script
7787
7788 lt_save_CC="$CC"
7789 ac_ext=c
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794
7795
7796 # Source file extension for C test sources.
7797 ac_ext=c
7798
7799 # Object file extension for compiled C test sources.
7800 objext=o
7801 objext=$objext
7802
7803 # Code to be used in simple compile tests
7804 lt_simple_compile_test_code="int some_variable = 0;"
7805
7806 # Code to be used in simple link tests
7807 lt_simple_link_test_code='int main(){return(0);}'
7808
7809
7810
7811
7812
7813
7814
7815 # If no C compiler was specified, use CC.
7816 LTCC=${LTCC-"$CC"}
7817
7818 # If no C compiler flags were specified, use CFLAGS.
7819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7820
7821 # Allow CC to be a program name with arguments.
7822 compiler=$CC
7823
7824 # Save the default compiler, since it gets overwritten when the other
7825 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7826 compiler_DEFAULT=$CC
7827
7828 # save warnings/boilerplate of simple test code
7829 ac_outfile=conftest.$ac_objext
7830 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7831 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7832 _lt_compiler_boilerplate=`cat conftest.err`
7833 $RM conftest*
7834
7835 ac_outfile=conftest.$ac_objext
7836 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7837 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7838 _lt_linker_boilerplate=`cat conftest.err`
7839 $RM -r conftest*
7840
7841
7842 ## CAVEAT EMPTOR:
7843 ## There is no encapsulation within the following macros, do not change
7844 ## the running order or otherwise move them around unless you know exactly
7845 ## what you are doing...
7846 if test -n "$compiler"; then
7847
7848 lt_prog_compiler_no_builtin_flag=
7849
7850 if test "$GCC" = yes; then
7851   case $cc_basename in
7852   nvcc*)
7853     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7854   *)
7855     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7856   esac
7857
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7859 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7860 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   lt_cv_prog_compiler_rtti_exceptions=no
7864    ac_outfile=conftest.$ac_objext
7865    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7866    lt_compiler_flag="-fno-rtti -fno-exceptions"
7867    # Insert the option either (1) after the last *FLAGS variable, or
7868    # (2) before a word containing "conftest.", or (3) at the end.
7869    # Note that $ac_compile itself does not contain backslashes and begins
7870    # with a dollar sign (not a hyphen), so the echo should work correctly.
7871    # The option is referenced via a variable to avoid confusing sed.
7872    lt_compile=`echo "$ac_compile" | $SED \
7873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7875    -e 's:$: $lt_compiler_flag:'`
7876    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7877    (eval "$lt_compile" 2>conftest.err)
7878    ac_status=$?
7879    cat conftest.err >&5
7880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881    if (exit $ac_status) && test -s "$ac_outfile"; then
7882      # The compiler can only warn and ignore the option if not recognized
7883      # So say no if there are warnings other than the usual output.
7884      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7885      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7887        lt_cv_prog_compiler_rtti_exceptions=yes
7888      fi
7889    fi
7890    $RM conftest*
7891
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7894 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7895
7896 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7897     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7898 else
7899     :
7900 fi
7901
7902 fi
7903
7904
7905
7906
7907
7908
7909   lt_prog_compiler_wl=
7910 lt_prog_compiler_pic=
7911 lt_prog_compiler_static=
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7914 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7915
7916   if test "$GCC" = yes; then
7917     lt_prog_compiler_wl='-Wl,'
7918     lt_prog_compiler_static='-static'
7919
7920     case $host_os in
7921       aix*)
7922       # All AIX code is PIC.
7923       if test "$host_cpu" = ia64; then
7924         # AIX 5 now supports IA64 processor
7925         lt_prog_compiler_static='-Bstatic'
7926       fi
7927       ;;
7928
7929     amigaos*)
7930       case $host_cpu in
7931       powerpc)
7932             # see comment about AmigaOS4 .so support
7933             lt_prog_compiler_pic='-fPIC'
7934         ;;
7935       m68k)
7936             # FIXME: we need at least 68020 code to build shared libraries, but
7937             # adding the `-m68020' flag to GCC prevents building anything better,
7938             # like `-m68040'.
7939             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7940         ;;
7941       esac
7942       ;;
7943
7944     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7945       # PIC is the default for these OSes.
7946       ;;
7947
7948     mingw* | cygwin* | pw32* | os2* | cegcc*)
7949       # This hack is so that the source file can tell whether it is being
7950       # built for inclusion in a dll (and should export symbols for example).
7951       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7952       # (--disable-auto-import) libraries
7953       lt_prog_compiler_pic='-DDLL_EXPORT'
7954       ;;
7955
7956     darwin* | rhapsody*)
7957       # PIC is the default on this platform
7958       # Common symbols not allowed in MH_DYLIB files
7959       lt_prog_compiler_pic='-fno-common'
7960       ;;
7961
7962     haiku*)
7963       # PIC is the default for Haiku.
7964       # The "-static" flag exists, but is broken.
7965       lt_prog_compiler_static=
7966       ;;
7967
7968     hpux*)
7969       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7970       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7971       # sets the default TLS model and affects inlining.
7972       case $host_cpu in
7973       hppa*64*)
7974         # +Z the default
7975         ;;
7976       *)
7977         lt_prog_compiler_pic='-fPIC'
7978         ;;
7979       esac
7980       ;;
7981
7982     interix[3-9]*)
7983       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7984       # Instead, we relocate shared libraries at runtime.
7985       ;;
7986
7987     msdosdjgpp*)
7988       # Just because we use GCC doesn't mean we suddenly get shared libraries
7989       # on systems that don't support them.
7990       lt_prog_compiler_can_build_shared=no
7991       enable_shared=no
7992       ;;
7993
7994     *nto* | *qnx*)
7995       # QNX uses GNU C++, but need to define -shared option too, otherwise
7996       # it will coredump.
7997       lt_prog_compiler_pic='-fPIC -shared'
7998       ;;
7999
8000     sysv4*MP*)
8001       if test -d /usr/nec; then
8002         lt_prog_compiler_pic=-Kconform_pic
8003       fi
8004       ;;
8005
8006     *)
8007       lt_prog_compiler_pic='-fPIC'
8008       ;;
8009     esac
8010
8011     case $cc_basename in
8012     nvcc*) # Cuda Compiler Driver 2.2
8013       lt_prog_compiler_wl='-Xlinker '
8014       lt_prog_compiler_pic='-Xcompiler -fPIC'
8015       ;;
8016     esac
8017   else
8018     # PORTME Check for flag to pass linker flags through the system compiler.
8019     case $host_os in
8020     aix*)
8021       lt_prog_compiler_wl='-Wl,'
8022       if test "$host_cpu" = ia64; then
8023         # AIX 5 now supports IA64 processor
8024         lt_prog_compiler_static='-Bstatic'
8025       else
8026         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027       fi
8028       ;;
8029
8030     mingw* | cygwin* | pw32* | os2* | cegcc*)
8031       # This hack is so that the source file can tell whether it is being
8032       # built for inclusion in a dll (and should export symbols for example).
8033       lt_prog_compiler_pic='-DDLL_EXPORT'
8034       ;;
8035
8036     hpux9* | hpux10* | hpux11*)
8037       lt_prog_compiler_wl='-Wl,'
8038       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8039       # not for PA HP-UX.
8040       case $host_cpu in
8041       hppa*64*|ia64*)
8042         # +Z the default
8043         ;;
8044       *)
8045         lt_prog_compiler_pic='+Z'
8046         ;;
8047       esac
8048       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8049       lt_prog_compiler_static='${wl}-a ${wl}archive'
8050       ;;
8051
8052     irix5* | irix6* | nonstopux*)
8053       lt_prog_compiler_wl='-Wl,'
8054       # PIC (with -KPIC) is the default.
8055       lt_prog_compiler_static='-non_shared'
8056       ;;
8057
8058     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8059       case $cc_basename in
8060       # old Intel for x86_64 which still supported -KPIC.
8061       ecc*)
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='-KPIC'
8064         lt_prog_compiler_static='-static'
8065         ;;
8066       # icc used to be incompatible with GCC.
8067       # ICC 10 doesn't accept -KPIC any more.
8068       icc* | ifort*)
8069         lt_prog_compiler_wl='-Wl,'
8070         lt_prog_compiler_pic='-fPIC'
8071         lt_prog_compiler_static='-static'
8072         ;;
8073       # Lahey Fortran 8.1.
8074       lf95*)
8075         lt_prog_compiler_wl='-Wl,'
8076         lt_prog_compiler_pic='--shared'
8077         lt_prog_compiler_static='--static'
8078         ;;
8079       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8080         # Portland Group compilers (*not* the Pentium gcc compiler,
8081         # which looks to be a dead project)
8082         lt_prog_compiler_wl='-Wl,'
8083         lt_prog_compiler_pic='-fpic'
8084         lt_prog_compiler_static='-Bstatic'
8085         ;;
8086       ccc*)
8087         lt_prog_compiler_wl='-Wl,'
8088         # All Alpha code is PIC.
8089         lt_prog_compiler_static='-non_shared'
8090         ;;
8091       xl* | bgxl* | bgf* | mpixl*)
8092         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8093         lt_prog_compiler_wl='-Wl,'
8094         lt_prog_compiler_pic='-qpic'
8095         lt_prog_compiler_static='-qstaticlink'
8096         ;;
8097       *)
8098         case `$CC -V 2>&1 | sed 5q` in
8099         *Sun\ F* | *Sun*Fortran*)
8100           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8101           lt_prog_compiler_pic='-KPIC'
8102           lt_prog_compiler_static='-Bstatic'
8103           lt_prog_compiler_wl=''
8104           ;;
8105         *Sun\ C*)
8106           # Sun C 5.9
8107           lt_prog_compiler_pic='-KPIC'
8108           lt_prog_compiler_static='-Bstatic'
8109           lt_prog_compiler_wl='-Wl,'
8110           ;;
8111         esac
8112         ;;
8113       esac
8114       ;;
8115
8116     newsos6)
8117       lt_prog_compiler_pic='-KPIC'
8118       lt_prog_compiler_static='-Bstatic'
8119       ;;
8120
8121     *nto* | *qnx*)
8122       # QNX uses GNU C++, but need to define -shared option too, otherwise
8123       # it will coredump.
8124       lt_prog_compiler_pic='-fPIC -shared'
8125       ;;
8126
8127     osf3* | osf4* | osf5*)
8128       lt_prog_compiler_wl='-Wl,'
8129       # All OSF/1 code is PIC.
8130       lt_prog_compiler_static='-non_shared'
8131       ;;
8132
8133     rdos*)
8134       lt_prog_compiler_static='-non_shared'
8135       ;;
8136
8137     solaris*)
8138       lt_prog_compiler_pic='-KPIC'
8139       lt_prog_compiler_static='-Bstatic'
8140       case $cc_basename in
8141       f77* | f90* | f95*)
8142         lt_prog_compiler_wl='-Qoption ld ';;
8143       *)
8144         lt_prog_compiler_wl='-Wl,';;
8145       esac
8146       ;;
8147
8148     sunos4*)
8149       lt_prog_compiler_wl='-Qoption ld '
8150       lt_prog_compiler_pic='-PIC'
8151       lt_prog_compiler_static='-Bstatic'
8152       ;;
8153
8154     sysv4 | sysv4.2uw2* | sysv4.3*)
8155       lt_prog_compiler_wl='-Wl,'
8156       lt_prog_compiler_pic='-KPIC'
8157       lt_prog_compiler_static='-Bstatic'
8158       ;;
8159
8160     sysv4*MP*)
8161       if test -d /usr/nec ;then
8162         lt_prog_compiler_pic='-Kconform_pic'
8163         lt_prog_compiler_static='-Bstatic'
8164       fi
8165       ;;
8166
8167     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8168       lt_prog_compiler_wl='-Wl,'
8169       lt_prog_compiler_pic='-KPIC'
8170       lt_prog_compiler_static='-Bstatic'
8171       ;;
8172
8173     unicos*)
8174       lt_prog_compiler_wl='-Wl,'
8175       lt_prog_compiler_can_build_shared=no
8176       ;;
8177
8178     uts4*)
8179       lt_prog_compiler_pic='-pic'
8180       lt_prog_compiler_static='-Bstatic'
8181       ;;
8182
8183     *)
8184       lt_prog_compiler_can_build_shared=no
8185       ;;
8186     esac
8187   fi
8188
8189 case $host_os in
8190   # For platforms which do not support PIC, -DPIC is meaningless:
8191   *djgpp*)
8192     lt_prog_compiler_pic=
8193     ;;
8194   *)
8195     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8196     ;;
8197 esac
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8199 $as_echo "$lt_prog_compiler_pic" >&6; }
8200
8201
8202
8203
8204
8205
8206 #
8207 # Check to make sure the PIC flag actually works.
8208 #
8209 if test -n "$lt_prog_compiler_pic"; then
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8211 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8212 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8213   $as_echo_n "(cached) " >&6
8214 else
8215   lt_cv_prog_compiler_pic_works=no
8216    ac_outfile=conftest.$ac_objext
8217    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8219    # Insert the option either (1) after the last *FLAGS variable, or
8220    # (2) before a word containing "conftest.", or (3) at the end.
8221    # Note that $ac_compile itself does not contain backslashes and begins
8222    # with a dollar sign (not a hyphen), so the echo should work correctly.
8223    # The option is referenced via a variable to avoid confusing sed.
8224    lt_compile=`echo "$ac_compile" | $SED \
8225    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227    -e 's:$: $lt_compiler_flag:'`
8228    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8229    (eval "$lt_compile" 2>conftest.err)
8230    ac_status=$?
8231    cat conftest.err >&5
8232    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233    if (exit $ac_status) && test -s "$ac_outfile"; then
8234      # The compiler can only warn and ignore the option if not recognized
8235      # So say no if there are warnings other than the usual output.
8236      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8237      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8238      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8239        lt_cv_prog_compiler_pic_works=yes
8240      fi
8241    fi
8242    $RM conftest*
8243
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8246 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8247
8248 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8249     case $lt_prog_compiler_pic in
8250      "" | " "*) ;;
8251      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8252      esac
8253 else
8254     lt_prog_compiler_pic=
8255      lt_prog_compiler_can_build_shared=no
8256 fi
8257
8258 fi
8259
8260
8261
8262
8263
8264
8265 #
8266 # Check to make sure the static flag actually works.
8267 #
8268 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8270 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8271 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   lt_cv_prog_compiler_static_works=no
8275    save_LDFLAGS="$LDFLAGS"
8276    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8277    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8278    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8279      # The linker can only warn and ignore the option if not recognized
8280      # So say no if there are warnings
8281      if test -s conftest.err; then
8282        # Append any errors to the config.log.
8283        cat conftest.err 1>&5
8284        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8285        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286        if diff conftest.exp conftest.er2 >/dev/null; then
8287          lt_cv_prog_compiler_static_works=yes
8288        fi
8289      else
8290        lt_cv_prog_compiler_static_works=yes
8291      fi
8292    fi
8293    $RM -r conftest*
8294    LDFLAGS="$save_LDFLAGS"
8295
8296 fi
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8298 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8299
8300 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8301     :
8302 else
8303     lt_prog_compiler_static=
8304 fi
8305
8306
8307
8308
8309
8310
8311
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   lt_cv_prog_compiler_c_o=no
8318    $RM -r conftest 2>/dev/null
8319    mkdir conftest
8320    cd conftest
8321    mkdir out
8322    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323
8324    lt_compiler_flag="-o out/conftest2.$ac_objext"
8325    # Insert the option either (1) after the last *FLAGS variable, or
8326    # (2) before a word containing "conftest.", or (3) at the end.
8327    # Note that $ac_compile itself does not contain backslashes and begins
8328    # with a dollar sign (not a hyphen), so the echo should work correctly.
8329    lt_compile=`echo "$ac_compile" | $SED \
8330    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332    -e 's:$: $lt_compiler_flag:'`
8333    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8334    (eval "$lt_compile" 2>out/conftest.err)
8335    ac_status=$?
8336    cat out/conftest.err >&5
8337    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339    then
8340      # The compiler can only warn and ignore the option if not recognized
8341      # So say no if there are warnings
8342      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8343      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345        lt_cv_prog_compiler_c_o=yes
8346      fi
8347    fi
8348    chmod u+w . 2>&5
8349    $RM conftest*
8350    # SGI C++ compiler will create directory out/ii_files/ for
8351    # template instantiation
8352    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8353    $RM out/* && rmdir out
8354    cd ..
8355    $RM -r conftest
8356    $RM conftest*
8357
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361
8362
8363
8364
8365
8366
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   lt_cv_prog_compiler_c_o=no
8373    $RM -r conftest 2>/dev/null
8374    mkdir conftest
8375    cd conftest
8376    mkdir out
8377    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378
8379    lt_compiler_flag="-o out/conftest2.$ac_objext"
8380    # Insert the option either (1) after the last *FLAGS variable, or
8381    # (2) before a word containing "conftest.", or (3) at the end.
8382    # Note that $ac_compile itself does not contain backslashes and begins
8383    # with a dollar sign (not a hyphen), so the echo should work correctly.
8384    lt_compile=`echo "$ac_compile" | $SED \
8385    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387    -e 's:$: $lt_compiler_flag:'`
8388    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389    (eval "$lt_compile" 2>out/conftest.err)
8390    ac_status=$?
8391    cat out/conftest.err >&5
8392    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394    then
8395      # The compiler can only warn and ignore the option if not recognized
8396      # So say no if there are warnings
8397      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8398      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400        lt_cv_prog_compiler_c_o=yes
8401      fi
8402    fi
8403    chmod u+w . 2>&5
8404    $RM conftest*
8405    # SGI C++ compiler will create directory out/ii_files/ for
8406    # template instantiation
8407    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408    $RM out/* && rmdir out
8409    cd ..
8410    $RM -r conftest
8411    $RM conftest*
8412
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8416
8417
8418
8419
8420 hard_links="nottested"
8421 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8422   # do not overwrite the value of need_locks provided by the user
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8424 $as_echo_n "checking if we can lock with hard links... " >&6; }
8425   hard_links=yes
8426   $RM conftest*
8427   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8428   touch conftest.a
8429   ln conftest.a conftest.b 2>&5 || hard_links=no
8430   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8432 $as_echo "$hard_links" >&6; }
8433   if test "$hard_links" = no; then
8434     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8435 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8436     need_locks=warn
8437   fi
8438 else
8439   need_locks=no
8440 fi
8441
8442
8443
8444
8445
8446
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8449
8450   runpath_var=
8451   allow_undefined_flag=
8452   always_export_symbols=no
8453   archive_cmds=
8454   archive_expsym_cmds=
8455   compiler_needs_object=no
8456   enable_shared_with_static_runtimes=no
8457   export_dynamic_flag_spec=
8458   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8459   hardcode_automatic=no
8460   hardcode_direct=no
8461   hardcode_direct_absolute=no
8462   hardcode_libdir_flag_spec=
8463   hardcode_libdir_flag_spec_ld=
8464   hardcode_libdir_separator=
8465   hardcode_minus_L=no
8466   hardcode_shlibpath_var=unsupported
8467   inherit_rpath=no
8468   link_all_deplibs=unknown
8469   module_cmds=
8470   module_expsym_cmds=
8471   old_archive_from_new_cmds=
8472   old_archive_from_expsyms_cmds=
8473   thread_safe_flag_spec=
8474   whole_archive_flag_spec=
8475   # include_expsyms should be a list of space-separated symbols to be *always*
8476   # included in the symbol list
8477   include_expsyms=
8478   # exclude_expsyms can be an extended regexp of symbols to exclude
8479   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8480   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8481   # as well as any symbol that contains `d'.
8482   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8483   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8484   # platforms (ab)use it in PIC code, but their linkers get confused if
8485   # the symbol is explicitly referenced.  Since portable code cannot
8486   # rely on this symbol name, it's probably fine to never include it in
8487   # preloaded symbol tables.
8488   # Exclude shared library initialization/finalization symbols.
8489   extract_expsyms_cmds=
8490
8491   case $host_os in
8492   cygwin* | mingw* | pw32* | cegcc*)
8493     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8494     # When not using gcc, we currently assume that we are using
8495     # Microsoft Visual C++.
8496     if test "$GCC" != yes; then
8497       with_gnu_ld=no
8498     fi
8499     ;;
8500   interix*)
8501     # we just hope/assume this is gcc and not c89 (= MSVC++)
8502     with_gnu_ld=yes
8503     ;;
8504   openbsd*)
8505     with_gnu_ld=no
8506     ;;
8507   esac
8508
8509   ld_shlibs=yes
8510
8511   # On some targets, GNU ld is compatible enough with the native linker
8512   # that we're better off using the native interface for both.
8513   lt_use_gnu_ld_interface=no
8514   if test "$with_gnu_ld" = yes; then
8515     case $host_os in
8516       aix*)
8517         # The AIX port of GNU ld has always aspired to compatibility
8518         # with the native linker.  However, as the warning in the GNU ld
8519         # block says, versions before 2.19.5* couldn't really create working
8520         # shared libraries, regardless of the interface used.
8521         case `$LD -v 2>&1` in
8522           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8523           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8524           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8525           *)
8526             lt_use_gnu_ld_interface=yes
8527             ;;
8528         esac
8529         ;;
8530       *)
8531         lt_use_gnu_ld_interface=yes
8532         ;;
8533     esac
8534   fi
8535
8536   if test "$lt_use_gnu_ld_interface" = yes; then
8537     # If archive_cmds runs LD, not CC, wlarc should be empty
8538     wlarc='${wl}'
8539
8540     # Set some defaults for GNU ld with shared library support. These
8541     # are reset later if shared libraries are not supported. Putting them
8542     # here allows them to be overridden if necessary.
8543     runpath_var=LD_RUN_PATH
8544     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545     export_dynamic_flag_spec='${wl}--export-dynamic'
8546     # ancient GNU ld didn't support --whole-archive et. al.
8547     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8548       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8549     else
8550       whole_archive_flag_spec=
8551     fi
8552     supports_anon_versioning=no
8553     case `$LD -v 2>&1` in
8554       *GNU\ gold*) supports_anon_versioning=yes ;;
8555       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8556       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8557       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8558       *\ 2.11.*) ;; # other 2.11 versions
8559       *) supports_anon_versioning=yes ;;
8560     esac
8561
8562     # See if GNU ld supports shared libraries.
8563     case $host_os in
8564     aix[3-9]*)
8565       # On AIX/PPC, the GNU linker is very broken
8566       if test "$host_cpu" != ia64; then
8567         ld_shlibs=no
8568         cat <<_LT_EOF 1>&2
8569
8570 *** Warning: the GNU linker, at least up to release 2.19, is reported
8571 *** to be unable to reliably create shared libraries on AIX.
8572 *** Therefore, libtool is disabling shared libraries support.  If you
8573 *** really care for shared libraries, you may want to install binutils
8574 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8575 *** You will then need to restart the configuration process.
8576
8577 _LT_EOF
8578       fi
8579       ;;
8580
8581     amigaos*)
8582       case $host_cpu in
8583       powerpc)
8584             # see comment about AmigaOS4 .so support
8585             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586             archive_expsym_cmds=''
8587         ;;
8588       m68k)
8589             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)'
8590             hardcode_libdir_flag_spec='-L$libdir'
8591             hardcode_minus_L=yes
8592         ;;
8593       esac
8594       ;;
8595
8596     beos*)
8597       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8598         allow_undefined_flag=unsupported
8599         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8600         # support --undefined.  This deserves some investigation.  FIXME
8601         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602       else
8603         ld_shlibs=no
8604       fi
8605       ;;
8606
8607     cygwin* | mingw* | pw32* | cegcc*)
8608       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8609       # as there is no search path for DLLs.
8610       hardcode_libdir_flag_spec='-L$libdir'
8611       export_dynamic_flag_spec='${wl}--export-all-symbols'
8612       allow_undefined_flag=unsupported
8613       always_export_symbols=no
8614       enable_shared_with_static_runtimes=yes
8615       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8616
8617       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8618         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8619         # If the export-symbols file already is a .def file (1st line
8620         # is EXPORTS), use it as is; otherwise, prepend...
8621         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8622           cp $export_symbols $output_objdir/$soname.def;
8623         else
8624           echo EXPORTS > $output_objdir/$soname.def;
8625           cat $export_symbols >> $output_objdir/$soname.def;
8626         fi~
8627         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8628       else
8629         ld_shlibs=no
8630       fi
8631       ;;
8632
8633     haiku*)
8634       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635       link_all_deplibs=yes
8636       ;;
8637
8638     interix[3-9]*)
8639       hardcode_direct=no
8640       hardcode_shlibpath_var=no
8641       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8642       export_dynamic_flag_spec='${wl}-E'
8643       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8644       # Instead, shared libraries are loaded at an image base (0x10000000 by
8645       # default) and relocated if they conflict, which is a slow very memory
8646       # consuming and fragmenting process.  To avoid this, we pick a random,
8647       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8648       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8649       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8650       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'
8651       ;;
8652
8653     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8654       tmp_diet=no
8655       if test "$host_os" = linux-dietlibc; then
8656         case $cc_basename in
8657           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8658         esac
8659       fi
8660       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8661          && test "$tmp_diet" = no
8662       then
8663         tmp_addflag=
8664         tmp_sharedflag='-shared'
8665         case $cc_basename,$host_cpu in
8666         pgcc*)                          # Portland Group C compiler
8667           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'
8668           tmp_addflag=' $pic_flag'
8669           ;;
8670         pgf77* | pgf90* | pgf95* | pgfortran*)
8671                                         # Portland Group f77 and f90 compilers
8672           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'
8673           tmp_addflag=' $pic_flag -Mnomain' ;;
8674         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8675           tmp_addflag=' -i_dynamic' ;;
8676         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8677           tmp_addflag=' -i_dynamic -nofor_main' ;;
8678         ifc* | ifort*)                  # Intel Fortran compiler
8679           tmp_addflag=' -nofor_main' ;;
8680         lf95*)                          # Lahey Fortran 8.1
8681           whole_archive_flag_spec=
8682           tmp_sharedflag='--shared' ;;
8683         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8684           tmp_sharedflag='-qmkshrobj'
8685           tmp_addflag= ;;
8686         nvcc*)  # Cuda Compiler Driver 2.2
8687           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'
8688           compiler_needs_object=yes
8689           ;;
8690         esac
8691         case `$CC -V 2>&1 | sed 5q` in
8692         *Sun\ C*)                       # Sun C 5.9
8693           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'
8694           compiler_needs_object=yes
8695           tmp_sharedflag='-G' ;;
8696         *Sun\ F*)                       # Sun Fortran 8.3
8697           tmp_sharedflag='-G' ;;
8698         esac
8699         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700
8701         if test "x$supports_anon_versioning" = xyes; then
8702           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8703             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8704             echo "local: *; };" >> $output_objdir/$libname.ver~
8705             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8706         fi
8707
8708         case $cc_basename in
8709         xlf* | bgf* | bgxlf* | mpixlf*)
8710           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8711           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8712           hardcode_libdir_flag_spec=
8713           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8714           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8715           if test "x$supports_anon_versioning" = xyes; then
8716             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8717               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8718               echo "local: *; };" >> $output_objdir/$libname.ver~
8719               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8720           fi
8721           ;;
8722         esac
8723       else
8724         ld_shlibs=no
8725       fi
8726       ;;
8727
8728     netbsd*)
8729       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8730         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8731         wlarc=
8732       else
8733         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8735       fi
8736       ;;
8737
8738     solaris*)
8739       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8740         ld_shlibs=no
8741         cat <<_LT_EOF 1>&2
8742
8743 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8744 *** create shared libraries on Solaris systems.  Therefore, libtool
8745 *** is disabling shared libraries support.  We urge you to upgrade GNU
8746 *** binutils to release 2.9.1 or newer.  Another option is to modify
8747 *** your PATH or compiler configuration so that the native linker is
8748 *** used, and then restart.
8749
8750 _LT_EOF
8751       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8752         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8754       else
8755         ld_shlibs=no
8756       fi
8757       ;;
8758
8759     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8760       case `$LD -v 2>&1` in
8761         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8762         ld_shlibs=no
8763         cat <<_LT_EOF 1>&2
8764
8765 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8766 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8767 *** is disabling shared libraries support.  We urge you to upgrade GNU
8768 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8769 *** your PATH or compiler configuration so that the native linker is
8770 *** used, and then restart.
8771
8772 _LT_EOF
8773         ;;
8774         *)
8775           # For security reasons, it is highly recommended that you always
8776           # use absolute paths for naming shared libraries, and exclude the
8777           # DT_RUNPATH tag from executables and libraries.  But doing so
8778           # requires that you compile everything twice, which is a pain.
8779           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783           else
8784             ld_shlibs=no
8785           fi
8786         ;;
8787       esac
8788       ;;
8789
8790     sunos4*)
8791       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8792       wlarc=
8793       hardcode_direct=yes
8794       hardcode_shlibpath_var=no
8795       ;;
8796
8797     *)
8798       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8799         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8801       else
8802         ld_shlibs=no
8803       fi
8804       ;;
8805     esac
8806
8807     if test "$ld_shlibs" = no; then
8808       runpath_var=
8809       hardcode_libdir_flag_spec=
8810       export_dynamic_flag_spec=
8811       whole_archive_flag_spec=
8812     fi
8813   else
8814     # PORTME fill in a description of your system's linker (not GNU ld)
8815     case $host_os in
8816     aix3*)
8817       allow_undefined_flag=unsupported
8818       always_export_symbols=yes
8819       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'
8820       # Note: this linker hardcodes the directories in LIBPATH if there
8821       # are no directories specified by -L.
8822       hardcode_minus_L=yes
8823       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8824         # Neither direct hardcoding nor static linking is supported with a
8825         # broken collect2.
8826         hardcode_direct=unsupported
8827       fi
8828       ;;
8829
8830     aix[4-9]*)
8831       if test "$host_cpu" = ia64; then
8832         # On IA64, the linker does run time linking by default, so we don't
8833         # have to do anything special.
8834         aix_use_runtimelinking=no
8835         exp_sym_flag='-Bexport'
8836         no_entry_flag=""
8837       else
8838         # If we're using GNU nm, then we don't want the "-C" option.
8839         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8840         # Also, AIX nm treats weak defined symbols like other global
8841         # defined symbols, whereas GNU nm marks them as "W".
8842         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8843           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'
8844         else
8845           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'
8846         fi
8847         aix_use_runtimelinking=no
8848
8849         # Test if we are trying to use run time linking or normal
8850         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8851         # need to do runtime linking.
8852         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8853           for ld_flag in $LDFLAGS; do
8854           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8855             aix_use_runtimelinking=yes
8856             break
8857           fi
8858           done
8859           ;;
8860         esac
8861
8862         exp_sym_flag='-bexport'
8863         no_entry_flag='-bnoentry'
8864       fi
8865
8866       # When large executables or shared objects are built, AIX ld can
8867       # have problems creating the table of contents.  If linking a library
8868       # or program results in "error TOC overflow" add -mminimal-toc to
8869       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8870       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8871
8872       archive_cmds=''
8873       hardcode_direct=yes
8874       hardcode_direct_absolute=yes
8875       hardcode_libdir_separator=':'
8876       link_all_deplibs=yes
8877       file_list_spec='${wl}-f,'
8878
8879       if test "$GCC" = yes; then
8880         case $host_os in aix4.[012]|aix4.[012].*)
8881         # We only want to do this on AIX 4.2 and lower, the check
8882         # below for broken collect2 doesn't work under 4.3+
8883           collect2name=`${CC} -print-prog-name=collect2`
8884           if test -f "$collect2name" &&
8885            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8886           then
8887           # We have reworked collect2
8888           :
8889           else
8890           # We have old collect2
8891           hardcode_direct=unsupported
8892           # It fails to find uninstalled libraries when the uninstalled
8893           # path is not listed in the libpath.  Setting hardcode_minus_L
8894           # to unsupported forces relinking
8895           hardcode_minus_L=yes
8896           hardcode_libdir_flag_spec='-L$libdir'
8897           hardcode_libdir_separator=
8898           fi
8899           ;;
8900         esac
8901         shared_flag='-shared'
8902         if test "$aix_use_runtimelinking" = yes; then
8903           shared_flag="$shared_flag "'${wl}-G'
8904         fi
8905       else
8906         # not using gcc
8907         if test "$host_cpu" = ia64; then
8908         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8909         # chokes on -Wl,-G. The following line is correct:
8910           shared_flag='-G'
8911         else
8912           if test "$aix_use_runtimelinking" = yes; then
8913             shared_flag='${wl}-G'
8914           else
8915             shared_flag='${wl}-bM:SRE'
8916           fi
8917         fi
8918       fi
8919
8920       export_dynamic_flag_spec='${wl}-bexpall'
8921       # It seems that -bexpall does not export symbols beginning with
8922       # underscore (_), so it is better to generate a list of symbols to export.
8923       always_export_symbols=yes
8924       if test "$aix_use_runtimelinking" = yes; then
8925         # Warning - without using the other runtime loading flags (-brtl),
8926         # -berok will link without error, but may produce a broken library.
8927         allow_undefined_flag='-berok'
8928         # Determine the default libpath from the value encoded in an
8929         # empty executable.
8930         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h.  */
8932
8933 int
8934 main ()
8935 {
8936
8937   ;
8938   return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942
8943 lt_aix_libpath_sed='
8944     /Import File Strings/,/^$/ {
8945         /^0/ {
8946             s/^0  *\(.*\)$/\1/
8947             p
8948         }
8949     }'
8950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951 # Check for a 64-bit object if we didn't find anything.
8952 if test -z "$aix_libpath"; then
8953   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8954 fi
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext \
8957     conftest$ac_exeext conftest.$ac_ext
8958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8959
8960         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8961         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"
8962       else
8963         if test "$host_cpu" = ia64; then
8964           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8965           allow_undefined_flag="-z nodefs"
8966           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"
8967         else
8968          # Determine the default libpath from the value encoded in an
8969          # empty executable.
8970          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h.  */
8972
8973 int
8974 main ()
8975 {
8976
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_link "$LINENO"; then :
8982
8983 lt_aix_libpath_sed='
8984     /Import File Strings/,/^$/ {
8985         /^0/ {
8986             s/^0  *\(.*\)$/\1/
8987             p
8988         }
8989     }'
8990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991 # Check for a 64-bit object if we didn't find anything.
8992 if test -z "$aix_libpath"; then
8993   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8994 fi
8995 fi
8996 rm -f core conftest.err conftest.$ac_objext \
8997     conftest$ac_exeext conftest.$ac_ext
8998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8999
9000          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9001           # Warning - without using the other run time loading flags,
9002           # -berok will link without error, but may produce a broken library.
9003           no_undefined_flag=' ${wl}-bernotok'
9004           allow_undefined_flag=' ${wl}-berok'
9005           if test "$with_gnu_ld" = yes; then
9006             # We only use this code for GNU lds that support --whole-archive.
9007             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9008           else
9009             # Exported symbols can be pulled into shared objects from archives
9010             whole_archive_flag_spec='$convenience'
9011           fi
9012           archive_cmds_need_lc=yes
9013           # This is similar to how AIX traditionally builds its shared libraries.
9014           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'
9015         fi
9016       fi
9017       ;;
9018
9019     amigaos*)
9020       case $host_cpu in
9021       powerpc)
9022             # see comment about AmigaOS4 .so support
9023             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024             archive_expsym_cmds=''
9025         ;;
9026       m68k)
9027             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)'
9028             hardcode_libdir_flag_spec='-L$libdir'
9029             hardcode_minus_L=yes
9030         ;;
9031       esac
9032       ;;
9033
9034     bsdi[45]*)
9035       export_dynamic_flag_spec=-rdynamic
9036       ;;
9037
9038     cygwin* | mingw* | pw32* | cegcc*)
9039       # When not using gcc, we currently assume that we are using
9040       # Microsoft Visual C++.
9041       # hardcode_libdir_flag_spec is actually meaningless, as there is
9042       # no search path for DLLs.
9043       hardcode_libdir_flag_spec=' '
9044       allow_undefined_flag=unsupported
9045       # Tell ltmain to make .lib files, not .a files.
9046       libext=lib
9047       # Tell ltmain to make .dll files, not .so files.
9048       shrext_cmds=".dll"
9049       # FIXME: Setting linknames here is a bad hack.
9050       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9051       # The linker will automatically build a .lib file if we build a DLL.
9052       old_archive_from_new_cmds='true'
9053       # FIXME: Should let the user specify the lib program.
9054       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9055       fix_srcfile_path='`cygpath -w "$srcfile"`'
9056       enable_shared_with_static_runtimes=yes
9057       ;;
9058
9059     darwin* | rhapsody*)
9060
9061
9062   archive_cmds_need_lc=no
9063   hardcode_direct=no
9064   hardcode_automatic=yes
9065   hardcode_shlibpath_var=unsupported
9066   if test "$lt_cv_ld_force_load" = "yes"; then
9067     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\"`'
9068   else
9069     whole_archive_flag_spec=''
9070   fi
9071   link_all_deplibs=yes
9072   allow_undefined_flag="$_lt_dar_allow_undefined"
9073   case $cc_basename in
9074      ifort*) _lt_dar_can_shared=yes ;;
9075      *) _lt_dar_can_shared=$GCC ;;
9076   esac
9077   if test "$_lt_dar_can_shared" = "yes"; then
9078     output_verbose_link_cmd=func_echo_all
9079     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9080     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9081     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}"
9082     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}"
9083
9084   else
9085   ld_shlibs=no
9086   fi
9087
9088       ;;
9089
9090     dgux*)
9091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092       hardcode_libdir_flag_spec='-L$libdir'
9093       hardcode_shlibpath_var=no
9094       ;;
9095
9096     freebsd1*)
9097       ld_shlibs=no
9098       ;;
9099
9100     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9101     # support.  Future versions do this automatically, but an explicit c++rt0.o
9102     # does not break anything, and helps significantly (at the cost of a little
9103     # extra space).
9104     freebsd2.2*)
9105       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9106       hardcode_libdir_flag_spec='-R$libdir'
9107       hardcode_direct=yes
9108       hardcode_shlibpath_var=no
9109       ;;
9110
9111     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9112     freebsd2*)
9113       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114       hardcode_direct=yes
9115       hardcode_minus_L=yes
9116       hardcode_shlibpath_var=no
9117       ;;
9118
9119     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9120     freebsd* | dragonfly*)
9121       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9122       hardcode_libdir_flag_spec='-R$libdir'
9123       hardcode_direct=yes
9124       hardcode_shlibpath_var=no
9125       ;;
9126
9127     hpux9*)
9128       if test "$GCC" = yes; then
9129         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'
9130       else
9131         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'
9132       fi
9133       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9134       hardcode_libdir_separator=:
9135       hardcode_direct=yes
9136
9137       # hardcode_minus_L: Not really in the search PATH,
9138       # but as the default location of the library.
9139       hardcode_minus_L=yes
9140       export_dynamic_flag_spec='${wl}-E'
9141       ;;
9142
9143     hpux10*)
9144       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9145         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9146       else
9147         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9148       fi
9149       if test "$with_gnu_ld" = no; then
9150         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9151         hardcode_libdir_flag_spec_ld='+b $libdir'
9152         hardcode_libdir_separator=:
9153         hardcode_direct=yes
9154         hardcode_direct_absolute=yes
9155         export_dynamic_flag_spec='${wl}-E'
9156         # hardcode_minus_L: Not really in the search PATH,
9157         # but as the default location of the library.
9158         hardcode_minus_L=yes
9159       fi
9160       ;;
9161
9162     hpux11*)
9163       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9164         case $host_cpu in
9165         hppa*64*)
9166           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9167           ;;
9168         ia64*)
9169           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9170           ;;
9171         *)
9172           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9173           ;;
9174         esac
9175       else
9176         case $host_cpu in
9177         hppa*64*)
9178           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179           ;;
9180         ia64*)
9181           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182           ;;
9183         *)
9184
9185           # Older versions of the 11.00 compiler do not understand -b yet
9186           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9187           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9188 $as_echo_n "checking if $CC understands -b... " >&6; }
9189 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9190   $as_echo_n "(cached) " >&6
9191 else
9192   lt_cv_prog_compiler__b=no
9193    save_LDFLAGS="$LDFLAGS"
9194    LDFLAGS="$LDFLAGS -b"
9195    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9196    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9197      # The linker can only warn and ignore the option if not recognized
9198      # So say no if there are warnings
9199      if test -s conftest.err; then
9200        # Append any errors to the config.log.
9201        cat conftest.err 1>&5
9202        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9203        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9204        if diff conftest.exp conftest.er2 >/dev/null; then
9205          lt_cv_prog_compiler__b=yes
9206        fi
9207      else
9208        lt_cv_prog_compiler__b=yes
9209      fi
9210    fi
9211    $RM -r conftest*
9212    LDFLAGS="$save_LDFLAGS"
9213
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9216 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9217
9218 if test x"$lt_cv_prog_compiler__b" = xyes; then
9219     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220 else
9221     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9222 fi
9223
9224           ;;
9225         esac
9226       fi
9227       if test "$with_gnu_ld" = no; then
9228         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229         hardcode_libdir_separator=:
9230
9231         case $host_cpu in
9232         hppa*64*|ia64*)
9233           hardcode_direct=no
9234           hardcode_shlibpath_var=no
9235           ;;
9236         *)
9237           hardcode_direct=yes
9238           hardcode_direct_absolute=yes
9239           export_dynamic_flag_spec='${wl}-E'
9240
9241           # hardcode_minus_L: Not really in the search PATH,
9242           # but as the default location of the library.
9243           hardcode_minus_L=yes
9244           ;;
9245         esac
9246       fi
9247       ;;
9248
9249     irix5* | irix6* | nonstopux*)
9250       if test "$GCC" = yes; then
9251         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'
9252         # Try to use the -exported_symbol ld option, if it does not
9253         # work, assume that -exports_file does not work either and
9254         # implicitly export all symbols.
9255         save_LDFLAGS="$LDFLAGS"
9256         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h.  */
9259 int foo(void) {}
9260 _ACEOF
9261 if ac_fn_c_try_link "$LINENO"; then :
9262   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'
9263
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext \
9266     conftest$ac_exeext conftest.$ac_ext
9267         LDFLAGS="$save_LDFLAGS"
9268       else
9269         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'
9270         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'
9271       fi
9272       archive_cmds_need_lc='no'
9273       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274       hardcode_libdir_separator=:
9275       inherit_rpath=yes
9276       link_all_deplibs=yes
9277       ;;
9278
9279     netbsd*)
9280       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9281         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9282       else
9283         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9284       fi
9285       hardcode_libdir_flag_spec='-R$libdir'
9286       hardcode_direct=yes
9287       hardcode_shlibpath_var=no
9288       ;;
9289
9290     newsos6)
9291       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292       hardcode_direct=yes
9293       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294       hardcode_libdir_separator=:
9295       hardcode_shlibpath_var=no
9296       ;;
9297
9298     *nto* | *qnx*)
9299       ;;
9300
9301     openbsd*)
9302       if test -f /usr/libexec/ld.so; then
9303         hardcode_direct=yes
9304         hardcode_shlibpath_var=no
9305         hardcode_direct_absolute=yes
9306         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9307           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9308           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9309           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310           export_dynamic_flag_spec='${wl}-E'
9311         else
9312           case $host_os in
9313            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9314              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315              hardcode_libdir_flag_spec='-R$libdir'
9316              ;;
9317            *)
9318              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9319              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9320              ;;
9321           esac
9322         fi
9323       else
9324         ld_shlibs=no
9325       fi
9326       ;;
9327
9328     os2*)
9329       hardcode_libdir_flag_spec='-L$libdir'
9330       hardcode_minus_L=yes
9331       allow_undefined_flag=unsupported
9332       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'
9333       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9334       ;;
9335
9336     osf3*)
9337       if test "$GCC" = yes; then
9338         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9339         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'
9340       else
9341         allow_undefined_flag=' -expect_unresolved \*'
9342         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'
9343       fi
9344       archive_cmds_need_lc='no'
9345       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346       hardcode_libdir_separator=:
9347       ;;
9348
9349     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9350       if test "$GCC" = yes; then
9351         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9352         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'
9353         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354       else
9355         allow_undefined_flag=' -expect_unresolved \*'
9356         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'
9357         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~
9358         $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'
9359
9360         # Both c and cxx compiler support -rpath directly
9361         hardcode_libdir_flag_spec='-rpath $libdir'
9362       fi
9363       archive_cmds_need_lc='no'
9364       hardcode_libdir_separator=:
9365       ;;
9366
9367     solaris*)
9368       no_undefined_flag=' -z defs'
9369       if test "$GCC" = yes; then
9370         wlarc='${wl}'
9371         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9373           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9374       else
9375         case `$CC -V 2>&1` in
9376         *"Compilers 5.0"*)
9377           wlarc=''
9378           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9381           ;;
9382         *)
9383           wlarc='${wl}'
9384           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9385           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9386           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9387           ;;
9388         esac
9389       fi
9390       hardcode_libdir_flag_spec='-R$libdir'
9391       hardcode_shlibpath_var=no
9392       case $host_os in
9393       solaris2.[0-5] | solaris2.[0-5].*) ;;
9394       *)
9395         # The compiler driver will combine and reorder linker options,
9396         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9397         # but is careful enough not to reorder.
9398         # Supported since Solaris 2.6 (maybe 2.5.1?)
9399         if test "$GCC" = yes; then
9400           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9401         else
9402           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9403         fi
9404         ;;
9405       esac
9406       link_all_deplibs=yes
9407       ;;
9408
9409     sunos4*)
9410       if test "x$host_vendor" = xsequent; then
9411         # Use $CC to link under sequent, because it throws in some extra .o
9412         # files that make .init and .fini sections work.
9413         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9414       else
9415         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9416       fi
9417       hardcode_libdir_flag_spec='-L$libdir'
9418       hardcode_direct=yes
9419       hardcode_minus_L=yes
9420       hardcode_shlibpath_var=no
9421       ;;
9422
9423     sysv4)
9424       case $host_vendor in
9425         sni)
9426           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427           hardcode_direct=yes # is this really true???
9428         ;;
9429         siemens)
9430           ## LD is ld it makes a PLAMLIB
9431           ## CC just makes a GrossModule.
9432           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9433           reload_cmds='$CC -r -o $output$reload_objs'
9434           hardcode_direct=no
9435         ;;
9436         motorola)
9437           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9439         ;;
9440       esac
9441       runpath_var='LD_RUN_PATH'
9442       hardcode_shlibpath_var=no
9443       ;;
9444
9445     sysv4.3*)
9446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447       hardcode_shlibpath_var=no
9448       export_dynamic_flag_spec='-Bexport'
9449       ;;
9450
9451     sysv4*MP*)
9452       if test -d /usr/nec; then
9453         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454         hardcode_shlibpath_var=no
9455         runpath_var=LD_RUN_PATH
9456         hardcode_runpath_var=yes
9457         ld_shlibs=yes
9458       fi
9459       ;;
9460
9461     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9462       no_undefined_flag='${wl}-z,text'
9463       archive_cmds_need_lc=no
9464       hardcode_shlibpath_var=no
9465       runpath_var='LD_RUN_PATH'
9466
9467       if test "$GCC" = yes; then
9468         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470       else
9471         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9473       fi
9474       ;;
9475
9476     sysv5* | sco3.2v5* | sco5v6*)
9477       # Note: We can NOT use -z defs as we might desire, because we do not
9478       # link with -lc, and that would cause any symbols used from libc to
9479       # always be unresolved, which means just about no library would
9480       # ever link correctly.  If we're not using GNU ld we use -z text
9481       # though, which does catch some bad symbols but isn't as heavy-handed
9482       # as -z defs.
9483       no_undefined_flag='${wl}-z,text'
9484       allow_undefined_flag='${wl}-z,nodefs'
9485       archive_cmds_need_lc=no
9486       hardcode_shlibpath_var=no
9487       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9488       hardcode_libdir_separator=':'
9489       link_all_deplibs=yes
9490       export_dynamic_flag_spec='${wl}-Bexport'
9491       runpath_var='LD_RUN_PATH'
9492
9493       if test "$GCC" = yes; then
9494         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496       else
9497         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499       fi
9500       ;;
9501
9502     uts4*)
9503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504       hardcode_libdir_flag_spec='-L$libdir'
9505       hardcode_shlibpath_var=no
9506       ;;
9507
9508     *)
9509       ld_shlibs=no
9510       ;;
9511     esac
9512
9513     if test x$host_vendor = xsni; then
9514       case $host in
9515       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9516         export_dynamic_flag_spec='${wl}-Blargedynsym'
9517         ;;
9518       esac
9519     fi
9520   fi
9521
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9523 $as_echo "$ld_shlibs" >&6; }
9524 test "$ld_shlibs" = no && can_build_shared=no
9525
9526 with_gnu_ld=$with_gnu_ld
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 #
9543 # Do we need to explicitly link libc?
9544 #
9545 case "x$archive_cmds_need_lc" in
9546 x|xyes)
9547   # Assume -lc should be added
9548   archive_cmds_need_lc=yes
9549
9550   if test "$enable_shared" = yes && test "$GCC" = yes; then
9551     case $archive_cmds in
9552     *'~'*)
9553       # FIXME: we may have to deal with multi-command sequences.
9554       ;;
9555     '$CC '*)
9556       # Test whether the compiler implicitly links with -lc since on some
9557       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9558       # to ld, don't add -lc before -lgcc.
9559       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9560 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9561 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9562   $as_echo_n "(cached) " >&6
9563 else
9564   $RM conftest*
9565         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9566
9567         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9568   (eval $ac_compile) 2>&5
9569   ac_status=$?
9570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571   test $ac_status = 0; } 2>conftest.err; then
9572           soname=conftest
9573           lib=conftest
9574           libobjs=conftest.$ac_objext
9575           deplibs=
9576           wl=$lt_prog_compiler_wl
9577           pic_flag=$lt_prog_compiler_pic
9578           compiler_flags=-v
9579           linker_flags=-v
9580           verstring=
9581           output_objdir=.
9582           libname=conftest
9583           lt_save_allow_undefined_flag=$allow_undefined_flag
9584           allow_undefined_flag=
9585           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9586   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9587   ac_status=$?
9588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589   test $ac_status = 0; }
9590           then
9591             lt_cv_archive_cmds_need_lc=no
9592           else
9593             lt_cv_archive_cmds_need_lc=yes
9594           fi
9595           allow_undefined_flag=$lt_save_allow_undefined_flag
9596         else
9597           cat conftest.err 1>&5
9598         fi
9599         $RM conftest*
9600
9601 fi
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9603 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9604       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9605       ;;
9606     esac
9607   fi
9608   ;;
9609 esac
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
9761
9762
9763
9764
9765
9766
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9768 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9769
9770 if test "$GCC" = yes; then
9771   case $host_os in
9772     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9773     *) lt_awk_arg="/^libraries:/" ;;
9774   esac
9775   case $host_os in
9776     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9777     *) lt_sed_strip_eq="s,=/,/,g" ;;
9778   esac
9779   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9780   case $lt_search_path_spec in
9781   *\;*)
9782     # if the path contains ";" then we assume it to be the separator
9783     # otherwise default to the standard path separator (i.e. ":") - it is
9784     # assumed that no part of a normal pathname contains ";" but that should
9785     # okay in the real world where ";" in dirpaths is itself problematic.
9786     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9787     ;;
9788   *)
9789     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9790     ;;
9791   esac
9792   # Ok, now we have the path, separated by spaces, we can step through it
9793   # and add multilib dir if necessary.
9794   lt_tmp_lt_search_path_spec=
9795   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9796   for lt_sys_path in $lt_search_path_spec; do
9797     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9798       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9799     else
9800       test -d "$lt_sys_path" && \
9801         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9802     fi
9803   done
9804   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9805 BEGIN {RS=" "; FS="/|\n";} {
9806   lt_foo="";
9807   lt_count=0;
9808   for (lt_i = NF; lt_i > 0; lt_i--) {
9809     if ($lt_i != "" && $lt_i != ".") {
9810       if ($lt_i == "..") {
9811         lt_count++;
9812       } else {
9813         if (lt_count == 0) {
9814           lt_foo="/" $lt_i lt_foo;
9815         } else {
9816           lt_count--;
9817         }
9818       }
9819     }
9820   }
9821   if (lt_foo != "") { lt_freq[lt_foo]++; }
9822   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9823 }'`
9824   # AWK program above erroneously prepends '/' to C:/dos/paths
9825   # for these hosts.
9826   case $host_os in
9827     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9828       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9829   esac
9830   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9831 else
9832   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9833 fi
9834 library_names_spec=
9835 libname_spec='lib$name'
9836 soname_spec=
9837 shrext_cmds=".so"
9838 postinstall_cmds=
9839 postuninstall_cmds=
9840 finish_cmds=
9841 finish_eval=
9842 shlibpath_var=
9843 shlibpath_overrides_runpath=unknown
9844 version_type=none
9845 dynamic_linker="$host_os ld.so"
9846 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9847 need_lib_prefix=unknown
9848 hardcode_into_libs=no
9849
9850 # when you set need_version to no, make sure it does not cause -set_version
9851 # flags to be left without arguments
9852 need_version=unknown
9853
9854 case $host_os in
9855 aix3*)
9856   version_type=linux
9857   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9858   shlibpath_var=LIBPATH
9859
9860   # AIX 3 has no versioning support, so we append a major version to the name.
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   ;;
9863
9864 aix[4-9]*)
9865   version_type=linux
9866   need_lib_prefix=no
9867   need_version=no
9868   hardcode_into_libs=yes
9869   if test "$host_cpu" = ia64; then
9870     # AIX 5 supports IA64
9871     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9872     shlibpath_var=LD_LIBRARY_PATH
9873   else
9874     # With GCC up to 2.95.x, collect2 would create an import file
9875     # for dependence libraries.  The import file would start with
9876     # the line `#! .'.  This would cause the generated library to
9877     # depend on `.', always an invalid library.  This was fixed in
9878     # development snapshots of GCC prior to 3.0.
9879     case $host_os in
9880       aix4 | aix4.[01] | aix4.[01].*)
9881       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9882            echo ' yes '
9883            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9884         :
9885       else
9886         can_build_shared=no
9887       fi
9888       ;;
9889     esac
9890     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9891     # soname into executable. Probably we can add versioning support to
9892     # collect2, so additional links can be useful in future.
9893     if test "$aix_use_runtimelinking" = yes; then
9894       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9895       # instead of lib<name>.a to let people know that these are not
9896       # typical AIX shared libraries.
9897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898     else
9899       # We preserve .a as extension for shared libraries through AIX4.2
9900       # and later when we are not doing run time linking.
9901       library_names_spec='${libname}${release}.a $libname.a'
9902       soname_spec='${libname}${release}${shared_ext}$major'
9903     fi
9904     shlibpath_var=LIBPATH
9905   fi
9906   ;;
9907
9908 amigaos*)
9909   case $host_cpu in
9910   powerpc)
9911     # Since July 2007 AmigaOS4 officially supports .so libraries.
9912     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914     ;;
9915   m68k)
9916     library_names_spec='$libname.ixlibrary $libname.a'
9917     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9918     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'
9919     ;;
9920   esac
9921   ;;
9922
9923 beos*)
9924   library_names_spec='${libname}${shared_ext}'
9925   dynamic_linker="$host_os ld.so"
9926   shlibpath_var=LIBRARY_PATH
9927   ;;
9928
9929 bsdi[45]*)
9930   version_type=linux
9931   need_version=no
9932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933   soname_spec='${libname}${release}${shared_ext}$major'
9934   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9935   shlibpath_var=LD_LIBRARY_PATH
9936   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9937   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9938   # the default ld.so.conf also contains /usr/contrib/lib and
9939   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9940   # libtool to hard-code these into programs
9941   ;;
9942
9943 cygwin* | mingw* | pw32* | cegcc*)
9944   version_type=windows
9945   shrext_cmds=".dll"
9946   need_version=no
9947   need_lib_prefix=no
9948
9949   case $GCC,$host_os in
9950   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9951     library_names_spec='$libname.dll.a'
9952     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9953     postinstall_cmds='base_file=`basename \${file}`~
9954       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9955       dldir=$destdir/`dirname \$dlpath`~
9956       test -d \$dldir || mkdir -p \$dldir~
9957       $install_prog $dir/$dlname \$dldir/$dlname~
9958       chmod a+x \$dldir/$dlname~
9959       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9960         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9961       fi'
9962     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9963       dlpath=$dir/\$dldll~
9964        $RM \$dlpath'
9965     shlibpath_overrides_runpath=yes
9966
9967     case $host_os in
9968     cygwin*)
9969       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9970       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9971
9972       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9973       ;;
9974     mingw* | cegcc*)
9975       # MinGW DLLs use traditional 'lib' prefix
9976       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977       ;;
9978     pw32*)
9979       # pw32 DLLs use 'pw' prefix rather than 'lib'
9980       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981       ;;
9982     esac
9983     ;;
9984
9985   *)
9986     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9987     ;;
9988   esac
9989   dynamic_linker='Win32 ld.exe'
9990   # FIXME: first we should search . and the directory the executable is in
9991   shlibpath_var=PATH
9992   ;;
9993
9994 darwin* | rhapsody*)
9995   dynamic_linker="$host_os dyld"
9996   version_type=darwin
9997   need_lib_prefix=no
9998   need_version=no
9999   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10000   soname_spec='${libname}${release}${major}$shared_ext'
10001   shlibpath_overrides_runpath=yes
10002   shlibpath_var=DYLD_LIBRARY_PATH
10003   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10004
10005   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10007   ;;
10008
10009 dgux*)
10010   version_type=linux
10011   need_lib_prefix=no
10012   need_version=no
10013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10014   soname_spec='${libname}${release}${shared_ext}$major'
10015   shlibpath_var=LD_LIBRARY_PATH
10016   ;;
10017
10018 freebsd1*)
10019   dynamic_linker=no
10020   ;;
10021
10022 freebsd* | dragonfly*)
10023   # DragonFly does not have aout.  When/if they implement a new
10024   # versioning mechanism, adjust this.
10025   if test -x /usr/bin/objformat; then
10026     objformat=`/usr/bin/objformat`
10027   else
10028     case $host_os in
10029     freebsd[123]*) objformat=aout ;;
10030     *) objformat=elf ;;
10031     esac
10032   fi
10033   version_type=freebsd-$objformat
10034   case $version_type in
10035     freebsd-elf*)
10036       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10037       need_version=no
10038       need_lib_prefix=no
10039       ;;
10040     freebsd-*)
10041       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10042       need_version=yes
10043       ;;
10044   esac
10045   shlibpath_var=LD_LIBRARY_PATH
10046   case $host_os in
10047   freebsd2*)
10048     shlibpath_overrides_runpath=yes
10049     ;;
10050   freebsd3.[01]* | freebsdelf3.[01]*)
10051     shlibpath_overrides_runpath=yes
10052     hardcode_into_libs=yes
10053     ;;
10054   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10055   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10056     shlibpath_overrides_runpath=no
10057     hardcode_into_libs=yes
10058     ;;
10059   *) # from 4.6 on, and DragonFly
10060     shlibpath_overrides_runpath=yes
10061     hardcode_into_libs=yes
10062     ;;
10063   esac
10064   ;;
10065
10066 gnu*)
10067   version_type=linux
10068   need_lib_prefix=no
10069   need_version=no
10070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10071   soname_spec='${libname}${release}${shared_ext}$major'
10072   shlibpath_var=LD_LIBRARY_PATH
10073   hardcode_into_libs=yes
10074   ;;
10075
10076 haiku*)
10077   version_type=linux
10078   need_lib_prefix=no
10079   need_version=no
10080   dynamic_linker="$host_os runtime_loader"
10081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10082   soname_spec='${libname}${release}${shared_ext}$major'
10083   shlibpath_var=LIBRARY_PATH
10084   shlibpath_overrides_runpath=yes
10085   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10086   hardcode_into_libs=yes
10087   ;;
10088
10089 hpux9* | hpux10* | hpux11*)
10090   # Give a soname corresponding to the major version so that dld.sl refuses to
10091   # link against other versions.
10092   version_type=sunos
10093   need_lib_prefix=no
10094   need_version=no
10095   case $host_cpu in
10096   ia64*)
10097     shrext_cmds='.so'
10098     hardcode_into_libs=yes
10099     dynamic_linker="$host_os dld.so"
10100     shlibpath_var=LD_LIBRARY_PATH
10101     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103     soname_spec='${libname}${release}${shared_ext}$major'
10104     if test "X$HPUX_IA64_MODE" = X32; then
10105       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106     else
10107       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10108     fi
10109     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10110     ;;
10111   hppa*64*)
10112     shrext_cmds='.sl'
10113     hardcode_into_libs=yes
10114     dynamic_linker="$host_os dld.sl"
10115     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10116     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118     soname_spec='${libname}${release}${shared_ext}$major'
10119     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10120     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10121     ;;
10122   *)
10123     shrext_cmds='.sl'
10124     dynamic_linker="$host_os dld.sl"
10125     shlibpath_var=SHLIB_PATH
10126     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128     soname_spec='${libname}${release}${shared_ext}$major'
10129     ;;
10130   esac
10131   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10132   postinstall_cmds='chmod 555 $lib'
10133   # or fails outright, so override atomically:
10134   install_override_mode=555
10135   ;;
10136
10137 interix[3-9]*)
10138   version_type=linux
10139   need_lib_prefix=no
10140   need_version=no
10141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10142   soname_spec='${libname}${release}${shared_ext}$major'
10143   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10144   shlibpath_var=LD_LIBRARY_PATH
10145   shlibpath_overrides_runpath=no
10146   hardcode_into_libs=yes
10147   ;;
10148
10149 irix5* | irix6* | nonstopux*)
10150   case $host_os in
10151     nonstopux*) version_type=nonstopux ;;
10152     *)
10153         if test "$lt_cv_prog_gnu_ld" = yes; then
10154                 version_type=linux
10155         else
10156                 version_type=irix
10157         fi ;;
10158   esac
10159   need_lib_prefix=no
10160   need_version=no
10161   soname_spec='${libname}${release}${shared_ext}$major'
10162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10163   case $host_os in
10164   irix5* | nonstopux*)
10165     libsuff= shlibsuff=
10166     ;;
10167   *)
10168     case $LD in # libtool.m4 will add one of these switches to LD
10169     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10170       libsuff= shlibsuff= libmagic=32-bit;;
10171     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10172       libsuff=32 shlibsuff=N32 libmagic=N32;;
10173     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10174       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10175     *) libsuff= shlibsuff= libmagic=never-match;;
10176     esac
10177     ;;
10178   esac
10179   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10180   shlibpath_overrides_runpath=no
10181   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10182   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10183   hardcode_into_libs=yes
10184   ;;
10185
10186 # No shared lib support for Linux oldld, aout, or coff.
10187 linux*oldld* | linux*aout* | linux*coff*)
10188   dynamic_linker=no
10189   ;;
10190
10191 # This must be Linux ELF.
10192 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10193   version_type=linux
10194   need_lib_prefix=no
10195   need_version=no
10196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197   soname_spec='${libname}${release}${shared_ext}$major'
10198   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   shlibpath_overrides_runpath=no
10201
10202   # Some binutils ld are patched to set DT_RUNPATH
10203   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10204   $as_echo_n "(cached) " >&6
10205 else
10206   lt_cv_shlibpath_overrides_runpath=no
10207     save_LDFLAGS=$LDFLAGS
10208     save_libdir=$libdir
10209     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10210          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h.  */
10213
10214 int
10215 main ()
10216 {
10217
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 if ac_fn_c_try_link "$LINENO"; then :
10223   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10224   lt_cv_shlibpath_overrides_runpath=yes
10225 fi
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext \
10228     conftest$ac_exeext conftest.$ac_ext
10229     LDFLAGS=$save_LDFLAGS
10230     libdir=$save_libdir
10231
10232 fi
10233
10234   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10235
10236   # This implies no fast_install, which is unacceptable.
10237   # Some rework will be needed to allow for fast_install
10238   # before this can be enabled.
10239   hardcode_into_libs=yes
10240
10241   # Append ld.so.conf contents to the search path
10242   if test -f /etc/ld.so.conf; then
10243     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' ' '`
10244     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10245   fi
10246
10247   # We used to test for /lib/ld.so.1 and disable shared libraries on
10248   # powerpc, because MkLinux only supported shared libraries with the
10249   # GNU dynamic linker.  Since this was broken with cross compilers,
10250   # most powerpc-linux boxes support dynamic linking these days and
10251   # people can always --disable-shared, the test was removed, and we
10252   # assume the GNU/Linux dynamic linker is in use.
10253   dynamic_linker='GNU/Linux ld.so'
10254   ;;
10255
10256 netbsd*)
10257   version_type=sunos
10258   need_lib_prefix=no
10259   need_version=no
10260   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263     dynamic_linker='NetBSD (a.out) ld.so'
10264   else
10265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266     soname_spec='${libname}${release}${shared_ext}$major'
10267     dynamic_linker='NetBSD ld.elf_so'
10268   fi
10269   shlibpath_var=LD_LIBRARY_PATH
10270   shlibpath_overrides_runpath=yes
10271   hardcode_into_libs=yes
10272   ;;
10273
10274 newsos6)
10275   version_type=linux
10276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277   shlibpath_var=LD_LIBRARY_PATH
10278   shlibpath_overrides_runpath=yes
10279   ;;
10280
10281 *nto* | *qnx*)
10282   version_type=qnx
10283   need_lib_prefix=no
10284   need_version=no
10285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286   soname_spec='${libname}${release}${shared_ext}$major'
10287   shlibpath_var=LD_LIBRARY_PATH
10288   shlibpath_overrides_runpath=no
10289   hardcode_into_libs=yes
10290   dynamic_linker='ldqnx.so'
10291   ;;
10292
10293 openbsd*)
10294   version_type=sunos
10295   sys_lib_dlsearch_path_spec="/usr/lib"
10296   need_lib_prefix=no
10297   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10298   case $host_os in
10299     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10300     *)                          need_version=no  ;;
10301   esac
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10303   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10306     case $host_os in
10307       openbsd2.[89] | openbsd2.[89].*)
10308         shlibpath_overrides_runpath=no
10309         ;;
10310       *)
10311         shlibpath_overrides_runpath=yes
10312         ;;
10313       esac
10314   else
10315     shlibpath_overrides_runpath=yes
10316   fi
10317   ;;
10318
10319 os2*)
10320   libname_spec='$name'
10321   shrext_cmds=".dll"
10322   need_lib_prefix=no
10323   library_names_spec='$libname${shared_ext} $libname.a'
10324   dynamic_linker='OS/2 ld.exe'
10325   shlibpath_var=LIBPATH
10326   ;;
10327
10328 osf3* | osf4* | osf5*)
10329   version_type=osf
10330   need_lib_prefix=no
10331   need_version=no
10332   soname_spec='${libname}${release}${shared_ext}$major'
10333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334   shlibpath_var=LD_LIBRARY_PATH
10335   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10336   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10337   ;;
10338
10339 rdos*)
10340   dynamic_linker=no
10341   ;;
10342
10343 solaris*)
10344   version_type=linux
10345   need_lib_prefix=no
10346   need_version=no
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   soname_spec='${libname}${release}${shared_ext}$major'
10349   shlibpath_var=LD_LIBRARY_PATH
10350   shlibpath_overrides_runpath=yes
10351   hardcode_into_libs=yes
10352   # ldd complains unless libraries are executable
10353   postinstall_cmds='chmod +x $lib'
10354   ;;
10355
10356 sunos4*)
10357   version_type=sunos
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10359   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10360   shlibpath_var=LD_LIBRARY_PATH
10361   shlibpath_overrides_runpath=yes
10362   if test "$with_gnu_ld" = yes; then
10363     need_lib_prefix=no
10364   fi
10365   need_version=yes
10366   ;;
10367
10368 sysv4 | sysv4.3*)
10369   version_type=linux
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371   soname_spec='${libname}${release}${shared_ext}$major'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   case $host_vendor in
10374     sni)
10375       shlibpath_overrides_runpath=no
10376       need_lib_prefix=no
10377       runpath_var=LD_RUN_PATH
10378       ;;
10379     siemens)
10380       need_lib_prefix=no
10381       ;;
10382     motorola)
10383       need_lib_prefix=no
10384       need_version=no
10385       shlibpath_overrides_runpath=no
10386       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10387       ;;
10388   esac
10389   ;;
10390
10391 sysv4*MP*)
10392   if test -d /usr/nec ;then
10393     version_type=linux
10394     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10395     soname_spec='$libname${shared_ext}.$major'
10396     shlibpath_var=LD_LIBRARY_PATH
10397   fi
10398   ;;
10399
10400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10401   version_type=freebsd-elf
10402   need_lib_prefix=no
10403   need_version=no
10404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10405   soname_spec='${libname}${release}${shared_ext}$major'
10406   shlibpath_var=LD_LIBRARY_PATH
10407   shlibpath_overrides_runpath=yes
10408   hardcode_into_libs=yes
10409   if test "$with_gnu_ld" = yes; then
10410     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10411   else
10412     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10413     case $host_os in
10414       sco3.2v5*)
10415         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10416         ;;
10417     esac
10418   fi
10419   sys_lib_dlsearch_path_spec='/usr/lib'
10420   ;;
10421
10422 tpf*)
10423   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10424   version_type=linux
10425   need_lib_prefix=no
10426   need_version=no
10427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428   shlibpath_var=LD_LIBRARY_PATH
10429   shlibpath_overrides_runpath=no
10430   hardcode_into_libs=yes
10431   ;;
10432
10433 uts4*)
10434   version_type=linux
10435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436   soname_spec='${libname}${release}${shared_ext}$major'
10437   shlibpath_var=LD_LIBRARY_PATH
10438   ;;
10439
10440 *)
10441   dynamic_linker=no
10442   ;;
10443 esac
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10445 $as_echo "$dynamic_linker" >&6; }
10446 test "$dynamic_linker" = no && can_build_shared=no
10447
10448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10449 if test "$GCC" = yes; then
10450   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10451 fi
10452
10453 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10454   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10455 fi
10456 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10457   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10458 fi
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
10545
10546
10547
10548
10549
10550
10551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10552 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10553 hardcode_action=
10554 if test -n "$hardcode_libdir_flag_spec" ||
10555    test -n "$runpath_var" ||
10556    test "X$hardcode_automatic" = "Xyes" ; then
10557
10558   # We can hardcode non-existent directories.
10559   if test "$hardcode_direct" != no &&
10560      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10561      # have to relink, otherwise we might link with an installed library
10562      # when we should be linking with a yet-to-be-installed one
10563      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10564      test "$hardcode_minus_L" != no; then
10565     # Linking always hardcodes the temporary library directory.
10566     hardcode_action=relink
10567   else
10568     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10569     hardcode_action=immediate
10570   fi
10571 else
10572   # We cannot hardcode anything, or else we can only hardcode existing
10573   # directories.
10574   hardcode_action=unsupported
10575 fi
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10577 $as_echo "$hardcode_action" >&6; }
10578
10579 if test "$hardcode_action" = relink ||
10580    test "$inherit_rpath" = yes; then
10581   # Fast installation is not supported
10582   enable_fast_install=no
10583 elif test "$shlibpath_overrides_runpath" = yes ||
10584      test "$enable_shared" = no; then
10585   # Fast installation is not necessary
10586   enable_fast_install=needless
10587 fi
10588
10589
10590
10591
10592
10593
10594   if test "x$enable_dlopen" != xyes; then
10595   enable_dlopen=unknown
10596   enable_dlopen_self=unknown
10597   enable_dlopen_self_static=unknown
10598 else
10599   lt_cv_dlopen=no
10600   lt_cv_dlopen_libs=
10601
10602   case $host_os in
10603   beos*)
10604     lt_cv_dlopen="load_add_on"
10605     lt_cv_dlopen_libs=
10606     lt_cv_dlopen_self=yes
10607     ;;
10608
10609   mingw* | pw32* | cegcc*)
10610     lt_cv_dlopen="LoadLibrary"
10611     lt_cv_dlopen_libs=
10612     ;;
10613
10614   cygwin*)
10615     lt_cv_dlopen="dlopen"
10616     lt_cv_dlopen_libs=
10617     ;;
10618
10619   darwin*)
10620   # if libdl is installed we need to link against it
10621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   ac_check_lib_save_LIBS=$LIBS
10627 LIBS="-ldl  $LIBS"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h.  */
10630
10631 /* Override any GCC internal prototype to avoid an error.
10632    Use char because int might match the return type of a GCC
10633    builtin and then its argument prototype would still apply.  */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char dlopen ();
10638 int
10639 main ()
10640 {
10641 return dlopen ();
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647   ac_cv_lib_dl_dlopen=yes
10648 else
10649   ac_cv_lib_dl_dlopen=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652     conftest$ac_exeext conftest.$ac_ext
10653 LIBS=$ac_check_lib_save_LIBS
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10657 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10658   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10659 else
10660
10661     lt_cv_dlopen="dyld"
10662     lt_cv_dlopen_libs=
10663     lt_cv_dlopen_self=yes
10664
10665 fi
10666
10667     ;;
10668
10669   *)
10670     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10671 if test "x$ac_cv_func_shl_load" = x""yes; then :
10672   lt_cv_dlopen="shl_load"
10673 else
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10675 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10676 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-ldld  $LIBS"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h.  */
10683
10684 /* Override any GCC internal prototype to avoid an error.
10685    Use char because int might match the return type of a GCC
10686    builtin and then its argument prototype would still apply.  */
10687 #ifdef __cplusplus
10688 extern "C"
10689 #endif
10690 char shl_load ();
10691 int
10692 main ()
10693 {
10694 return shl_load ();
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 if ac_fn_c_try_link "$LINENO"; then :
10700   ac_cv_lib_dld_shl_load=yes
10701 else
10702   ac_cv_lib_dld_shl_load=no
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext \
10705     conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10709 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10710 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10711   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10712 else
10713   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10714 if test "x$ac_cv_func_dlopen" = x""yes; then :
10715   lt_cv_dlopen="dlopen"
10716 else
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10720   $as_echo_n "(cached) " >&6
10721 else
10722   ac_check_lib_save_LIBS=$LIBS
10723 LIBS="-ldl  $LIBS"
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h.  */
10726
10727 /* Override any GCC internal prototype to avoid an error.
10728    Use char because int might match the return type of a GCC
10729    builtin and then its argument prototype would still apply.  */
10730 #ifdef __cplusplus
10731 extern "C"
10732 #endif
10733 char dlopen ();
10734 int
10735 main ()
10736 {
10737 return dlopen ();
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743   ac_cv_lib_dl_dlopen=yes
10744 else
10745   ac_cv_lib_dl_dlopen=no
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext \
10748     conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10750 fi
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10753 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10754   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10755 else
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10757 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10758 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10759   $as_echo_n "(cached) " >&6
10760 else
10761   ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-lsvld  $LIBS"
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h.  */
10765
10766 /* Override any GCC internal prototype to avoid an error.
10767    Use char because int might match the return type of a GCC
10768    builtin and then its argument prototype would still apply.  */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char dlopen ();
10773 int
10774 main ()
10775 {
10776 return dlopen ();
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782   ac_cv_lib_svld_dlopen=yes
10783 else
10784   ac_cv_lib_svld_dlopen=no
10785 fi
10786 rm -f core conftest.err conftest.$ac_objext \
10787     conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10791 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10792 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10793   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10794 else
10795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10796 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10797 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10798   $as_echo_n "(cached) " >&6
10799 else
10800   ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-ldld  $LIBS"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h.  */
10804
10805 /* Override any GCC internal prototype to avoid an error.
10806    Use char because int might match the return type of a GCC
10807    builtin and then its argument prototype would still apply.  */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char dld_link ();
10812 int
10813 main ()
10814 {
10815 return dld_link ();
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821   ac_cv_lib_dld_dld_link=yes
10822 else
10823   ac_cv_lib_dld_dld_link=no
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext \
10826     conftest$ac_exeext conftest.$ac_ext
10827 LIBS=$ac_check_lib_save_LIBS
10828 fi
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10830 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10831 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10832   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10833 fi
10834
10835
10836 fi
10837
10838
10839 fi
10840
10841
10842 fi
10843
10844
10845 fi
10846
10847
10848 fi
10849
10850     ;;
10851   esac
10852
10853   if test "x$lt_cv_dlopen" != xno; then
10854     enable_dlopen=yes
10855   else
10856     enable_dlopen=no
10857   fi
10858
10859   case $lt_cv_dlopen in
10860   dlopen)
10861     save_CPPFLAGS="$CPPFLAGS"
10862     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10863
10864     save_LDFLAGS="$LDFLAGS"
10865     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10866
10867     save_LIBS="$LIBS"
10868     LIBS="$lt_cv_dlopen_libs $LIBS"
10869
10870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10871 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10872 if test "${lt_cv_dlopen_self+set}" = set; then :
10873   $as_echo_n "(cached) " >&6
10874 else
10875           if test "$cross_compiling" = yes; then :
10876   lt_cv_dlopen_self=cross
10877 else
10878   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10879   lt_status=$lt_dlunknown
10880   cat > conftest.$ac_ext <<_LT_EOF
10881 #line 10881 "configure"
10882 #include "confdefs.h"
10883
10884 #if HAVE_DLFCN_H
10885 #include <dlfcn.h>
10886 #endif
10887
10888 #include <stdio.h>
10889
10890 #ifdef RTLD_GLOBAL
10891 #  define LT_DLGLOBAL           RTLD_GLOBAL
10892 #else
10893 #  ifdef DL_GLOBAL
10894 #    define LT_DLGLOBAL         DL_GLOBAL
10895 #  else
10896 #    define LT_DLGLOBAL         0
10897 #  endif
10898 #endif
10899
10900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10901    find out it does not work in some platform. */
10902 #ifndef LT_DLLAZY_OR_NOW
10903 #  ifdef RTLD_LAZY
10904 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10905 #  else
10906 #    ifdef DL_LAZY
10907 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10908 #    else
10909 #      ifdef RTLD_NOW
10910 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10911 #      else
10912 #        ifdef DL_NOW
10913 #          define LT_DLLAZY_OR_NOW      DL_NOW
10914 #        else
10915 #          define LT_DLLAZY_OR_NOW      0
10916 #        endif
10917 #      endif
10918 #    endif
10919 #  endif
10920 #endif
10921
10922 /* When -fvisbility=hidden is used, assume the code has been annotated
10923    correspondingly for the symbols needed.  */
10924 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10925 void fnord () __attribute__((visibility("default")));
10926 #endif
10927
10928 void fnord () { int i=42; }
10929 int main ()
10930 {
10931   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10932   int status = $lt_dlunknown;
10933
10934   if (self)
10935     {
10936       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10937       else
10938         {
10939           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10940           else puts (dlerror ());
10941         }
10942       /* dlclose (self); */
10943     }
10944   else
10945     puts (dlerror ());
10946
10947   return status;
10948 }
10949 _LT_EOF
10950   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10951   (eval $ac_link) 2>&5
10952   ac_status=$?
10953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10955     (./conftest; exit; ) >&5 2>/dev/null
10956     lt_status=$?
10957     case x$lt_status in
10958       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10959       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10960       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10961     esac
10962   else :
10963     # compilation failed
10964     lt_cv_dlopen_self=no
10965   fi
10966 fi
10967 rm -fr conftest*
10968
10969
10970 fi
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10972 $as_echo "$lt_cv_dlopen_self" >&6; }
10973
10974     if test "x$lt_cv_dlopen_self" = xyes; then
10975       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10977 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10978 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981           if test "$cross_compiling" = yes; then :
10982   lt_cv_dlopen_self_static=cross
10983 else
10984   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10985   lt_status=$lt_dlunknown
10986   cat > conftest.$ac_ext <<_LT_EOF
10987 #line 10987 "configure"
10988 #include "confdefs.h"
10989
10990 #if HAVE_DLFCN_H
10991 #include <dlfcn.h>
10992 #endif
10993
10994 #include <stdio.h>
10995
10996 #ifdef RTLD_GLOBAL
10997 #  define LT_DLGLOBAL           RTLD_GLOBAL
10998 #else
10999 #  ifdef DL_GLOBAL
11000 #    define LT_DLGLOBAL         DL_GLOBAL
11001 #  else
11002 #    define LT_DLGLOBAL         0
11003 #  endif
11004 #endif
11005
11006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11007    find out it does not work in some platform. */
11008 #ifndef LT_DLLAZY_OR_NOW
11009 #  ifdef RTLD_LAZY
11010 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11011 #  else
11012 #    ifdef DL_LAZY
11013 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11014 #    else
11015 #      ifdef RTLD_NOW
11016 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11017 #      else
11018 #        ifdef DL_NOW
11019 #          define LT_DLLAZY_OR_NOW      DL_NOW
11020 #        else
11021 #          define LT_DLLAZY_OR_NOW      0
11022 #        endif
11023 #      endif
11024 #    endif
11025 #  endif
11026 #endif
11027
11028 /* When -fvisbility=hidden is used, assume the code has been annotated
11029    correspondingly for the symbols needed.  */
11030 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11031 void fnord () __attribute__((visibility("default")));
11032 #endif
11033
11034 void fnord () { int i=42; }
11035 int main ()
11036 {
11037   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11038   int status = $lt_dlunknown;
11039
11040   if (self)
11041     {
11042       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11043       else
11044         {
11045           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11046           else puts (dlerror ());
11047         }
11048       /* dlclose (self); */
11049     }
11050   else
11051     puts (dlerror ());
11052
11053   return status;
11054 }
11055 _LT_EOF
11056   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11057   (eval $ac_link) 2>&5
11058   ac_status=$?
11059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11060   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11061     (./conftest; exit; ) >&5 2>/dev/null
11062     lt_status=$?
11063     case x$lt_status in
11064       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11065       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11066       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11067     esac
11068   else :
11069     # compilation failed
11070     lt_cv_dlopen_self_static=no
11071   fi
11072 fi
11073 rm -fr conftest*
11074
11075
11076 fi
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11078 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11079     fi
11080
11081     CPPFLAGS="$save_CPPFLAGS"
11082     LDFLAGS="$save_LDFLAGS"
11083     LIBS="$save_LIBS"
11084     ;;
11085   esac
11086
11087   case $lt_cv_dlopen_self in
11088   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11089   *) enable_dlopen_self=unknown ;;
11090   esac
11091
11092   case $lt_cv_dlopen_self_static in
11093   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11094   *) enable_dlopen_self_static=unknown ;;
11095   esac
11096 fi
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114 striplib=
11115 old_striplib=
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11117 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11118 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11119   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11120   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122 $as_echo "yes" >&6; }
11123 else
11124 # FIXME - insert some real tests, host_os isn't really good enough
11125   case $host_os in
11126   darwin*)
11127     if test -n "$STRIP" ; then
11128       striplib="$STRIP -x"
11129       old_striplib="$STRIP -S"
11130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131 $as_echo "yes" >&6; }
11132     else
11133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135     fi
11136     ;;
11137   *)
11138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11140     ;;
11141   esac
11142 fi
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155   # Report which library types will actually be built
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11157 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11159 $as_echo "$can_build_shared" >&6; }
11160
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11162 $as_echo_n "checking whether to build shared libraries... " >&6; }
11163   test "$can_build_shared" = "no" && enable_shared=no
11164
11165   # On AIX, shared libraries and static libraries use the same namespace, and
11166   # are all built from PIC.
11167   case $host_os in
11168   aix3*)
11169     test "$enable_shared" = yes && enable_static=no
11170     if test -n "$RANLIB"; then
11171       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11172       postinstall_cmds='$RANLIB $lib'
11173     fi
11174     ;;
11175
11176   aix[4-9]*)
11177     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11178       test "$enable_shared" = yes && enable_static=no
11179     fi
11180     ;;
11181   esac
11182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11183 $as_echo "$enable_shared" >&6; }
11184
11185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11186 $as_echo_n "checking whether to build static libraries... " >&6; }
11187   # Make sure either enable_shared or enable_static is yes.
11188   test "$enable_shared" = yes || enable_static=yes
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11190 $as_echo "$enable_static" >&6; }
11191
11192
11193
11194
11195 fi
11196 ac_ext=c
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11201
11202 CC="$lt_save_CC"
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216 # Source file extension for Go test sources.
11217 ac_ext=go
11218
11219 # Object file extension for compiled Go test sources.
11220 objext=o
11221 objext_GO=$objext
11222
11223 # Code to be used in simple compile tests
11224 lt_simple_compile_test_code="package main; func main() { }"
11225
11226 # Code to be used in simple link tests
11227 lt_simple_link_test_code='package main; func main() { }'
11228
11229 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11230
11231
11232
11233
11234
11235
11236 # If no C compiler was specified, use CC.
11237 LTCC=${LTCC-"$CC"}
11238
11239 # If no C compiler flags were specified, use CFLAGS.
11240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11241
11242 # Allow CC to be a program name with arguments.
11243 compiler=$CC
11244
11245
11246 # save warnings/boilerplate of simple test code
11247 ac_outfile=conftest.$ac_objext
11248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11250 _lt_compiler_boilerplate=`cat conftest.err`
11251 $RM conftest*
11252
11253 ac_outfile=conftest.$ac_objext
11254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11256 _lt_linker_boilerplate=`cat conftest.err`
11257 $RM -r conftest*
11258
11259
11260 # Allow CC to be a program name with arguments.
11261 lt_save_CC="$CC"
11262 lt_save_GCC="$GCC"
11263 GCC=yes
11264 CC=${GOC-"gccgo"}
11265 compiler=$CC
11266 compiler_GO=$CC
11267 LD_GO="$LD"
11268 for cc_temp in $compiler""; do
11269   case $cc_temp in
11270     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11271     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11272     \-*) ;;
11273     *) break;;
11274   esac
11275 done
11276 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11277
11278
11279 # Go did not exist at the time GCC didn't implicitly link libc in.
11280 archive_cmds_need_lc_GO=no
11281
11282 old_archive_cmds_GO=$old_archive_cmds
11283
11284 ## CAVEAT EMPTOR:
11285 ## There is no encapsulation within the following macros, do not change
11286 ## the running order or otherwise move them around unless you know exactly
11287 ## what you are doing...
11288 if test -n "$compiler"; then
11289
11290 lt_prog_compiler_no_builtin_flag_GO=
11291
11292 if test "$GCC" = yes; then
11293   case $cc_basename in
11294   nvcc*)
11295     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11296   *)
11297     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11298   esac
11299
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11301 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11302 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   lt_cv_prog_compiler_rtti_exceptions=no
11306    ac_outfile=conftest.$ac_objext
11307    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11308    lt_compiler_flag="-fno-rtti -fno-exceptions"
11309    # Insert the option either (1) after the last *FLAGS variable, or
11310    # (2) before a word containing "conftest.", or (3) at the end.
11311    # Note that $ac_compile itself does not contain backslashes and begins
11312    # with a dollar sign (not a hyphen), so the echo should work correctly.
11313    # The option is referenced via a variable to avoid confusing sed.
11314    lt_compile=`echo "$ac_compile" | $SED \
11315    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11316    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11317    -e 's:$: $lt_compiler_flag:'`
11318    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11319    (eval "$lt_compile" 2>conftest.err)
11320    ac_status=$?
11321    cat conftest.err >&5
11322    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323    if (exit $ac_status) && test -s "$ac_outfile"; then
11324      # The compiler can only warn and ignore the option if not recognized
11325      # So say no if there are warnings other than the usual output.
11326      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11327      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11328      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11329        lt_cv_prog_compiler_rtti_exceptions=yes
11330      fi
11331    fi
11332    $RM conftest*
11333
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11336 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11337
11338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11339     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11340 else
11341     :
11342 fi
11343
11344 fi
11345
11346
11347
11348   lt_prog_compiler_wl_GO=
11349 lt_prog_compiler_pic_GO=
11350 lt_prog_compiler_static_GO=
11351
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11354
11355   if test "$GCC" = yes; then
11356     lt_prog_compiler_wl_GO='-Wl,'
11357     lt_prog_compiler_static_GO='-static'
11358
11359     case $host_os in
11360       aix*)
11361       # All AIX code is PIC.
11362       if test "$host_cpu" = ia64; then
11363         # AIX 5 now supports IA64 processor
11364         lt_prog_compiler_static_GO='-Bstatic'
11365       fi
11366       ;;
11367
11368     amigaos*)
11369       case $host_cpu in
11370       powerpc)
11371             # see comment about AmigaOS4 .so support
11372             lt_prog_compiler_pic_GO='-fPIC'
11373         ;;
11374       m68k)
11375             # FIXME: we need at least 68020 code to build shared libraries, but
11376             # adding the `-m68020' flag to GCC prevents building anything better,
11377             # like `-m68040'.
11378             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11379         ;;
11380       esac
11381       ;;
11382
11383     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11384       # PIC is the default for these OSes.
11385       ;;
11386
11387     mingw* | cygwin* | pw32* | os2* | cegcc*)
11388       # This hack is so that the source file can tell whether it is being
11389       # built for inclusion in a dll (and should export symbols for example).
11390       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11391       # (--disable-auto-import) libraries
11392       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11393       ;;
11394
11395     darwin* | rhapsody*)
11396       # PIC is the default on this platform
11397       # Common symbols not allowed in MH_DYLIB files
11398       lt_prog_compiler_pic_GO='-fno-common'
11399       ;;
11400
11401     haiku*)
11402       # PIC is the default for Haiku.
11403       # The "-static" flag exists, but is broken.
11404       lt_prog_compiler_static_GO=
11405       ;;
11406
11407     hpux*)
11408       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11409       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11410       # sets the default TLS model and affects inlining.
11411       case $host_cpu in
11412       hppa*64*)
11413         # +Z the default
11414         ;;
11415       *)
11416         lt_prog_compiler_pic_GO='-fPIC'
11417         ;;
11418       esac
11419       ;;
11420
11421     interix[3-9]*)
11422       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11423       # Instead, we relocate shared libraries at runtime.
11424       ;;
11425
11426     msdosdjgpp*)
11427       # Just because we use GCC doesn't mean we suddenly get shared libraries
11428       # on systems that don't support them.
11429       lt_prog_compiler_can_build_shared_GO=no
11430       enable_shared=no
11431       ;;
11432
11433     *nto* | *qnx*)
11434       # QNX uses GNU C++, but need to define -shared option too, otherwise
11435       # it will coredump.
11436       lt_prog_compiler_pic_GO='-fPIC -shared'
11437       ;;
11438
11439     sysv4*MP*)
11440       if test -d /usr/nec; then
11441         lt_prog_compiler_pic_GO=-Kconform_pic
11442       fi
11443       ;;
11444
11445     *)
11446       lt_prog_compiler_pic_GO='-fPIC'
11447       ;;
11448     esac
11449
11450     case $cc_basename in
11451     nvcc*) # Cuda Compiler Driver 2.2
11452       lt_prog_compiler_wl_GO='-Xlinker '
11453       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11454       ;;
11455     esac
11456   else
11457     # PORTME Check for flag to pass linker flags through the system compiler.
11458     case $host_os in
11459     aix*)
11460       lt_prog_compiler_wl_GO='-Wl,'
11461       if test "$host_cpu" = ia64; then
11462         # AIX 5 now supports IA64 processor
11463         lt_prog_compiler_static_GO='-Bstatic'
11464       else
11465         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11466       fi
11467       ;;
11468
11469     mingw* | cygwin* | pw32* | os2* | cegcc*)
11470       # This hack is so that the source file can tell whether it is being
11471       # built for inclusion in a dll (and should export symbols for example).
11472       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11473       ;;
11474
11475     hpux9* | hpux10* | hpux11*)
11476       lt_prog_compiler_wl_GO='-Wl,'
11477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11478       # not for PA HP-UX.
11479       case $host_cpu in
11480       hppa*64*|ia64*)
11481         # +Z the default
11482         ;;
11483       *)
11484         lt_prog_compiler_pic_GO='+Z'
11485         ;;
11486       esac
11487       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11488       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11489       ;;
11490
11491     irix5* | irix6* | nonstopux*)
11492       lt_prog_compiler_wl_GO='-Wl,'
11493       # PIC (with -KPIC) is the default.
11494       lt_prog_compiler_static_GO='-non_shared'
11495       ;;
11496
11497     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11498       case $cc_basename in
11499       # old Intel for x86_64 which still supported -KPIC.
11500       ecc*)
11501         lt_prog_compiler_wl_GO='-Wl,'
11502         lt_prog_compiler_pic_GO='-KPIC'
11503         lt_prog_compiler_static_GO='-static'
11504         ;;
11505       # icc used to be incompatible with GCC.
11506       # ICC 10 doesn't accept -KPIC any more.
11507       icc* | ifort*)
11508         lt_prog_compiler_wl_GO='-Wl,'
11509         lt_prog_compiler_pic_GO='-fPIC'
11510         lt_prog_compiler_static_GO='-static'
11511         ;;
11512       # Lahey Fortran 8.1.
11513       lf95*)
11514         lt_prog_compiler_wl_GO='-Wl,'
11515         lt_prog_compiler_pic_GO='--shared'
11516         lt_prog_compiler_static_GO='--static'
11517         ;;
11518       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11519         # Portland Group compilers (*not* the Pentium gcc compiler,
11520         # which looks to be a dead project)
11521         lt_prog_compiler_wl_GO='-Wl,'
11522         lt_prog_compiler_pic_GO='-fpic'
11523         lt_prog_compiler_static_GO='-Bstatic'
11524         ;;
11525       ccc*)
11526         lt_prog_compiler_wl_GO='-Wl,'
11527         # All Alpha code is PIC.
11528         lt_prog_compiler_static_GO='-non_shared'
11529         ;;
11530       xl* | bgxl* | bgf* | mpixl*)
11531         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11532         lt_prog_compiler_wl_GO='-Wl,'
11533         lt_prog_compiler_pic_GO='-qpic'
11534         lt_prog_compiler_static_GO='-qstaticlink'
11535         ;;
11536       *)
11537         case `$CC -V 2>&1 | sed 5q` in
11538         *Sun\ F* | *Sun*Fortran*)
11539           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11540           lt_prog_compiler_pic_GO='-KPIC'
11541           lt_prog_compiler_static_GO='-Bstatic'
11542           lt_prog_compiler_wl_GO=''
11543           ;;
11544         *Sun\ C*)
11545           # Sun C 5.9
11546           lt_prog_compiler_pic_GO='-KPIC'
11547           lt_prog_compiler_static_GO='-Bstatic'
11548           lt_prog_compiler_wl_GO='-Wl,'
11549           ;;
11550         esac
11551         ;;
11552       esac
11553       ;;
11554
11555     newsos6)
11556       lt_prog_compiler_pic_GO='-KPIC'
11557       lt_prog_compiler_static_GO='-Bstatic'
11558       ;;
11559
11560     *nto* | *qnx*)
11561       # QNX uses GNU C++, but need to define -shared option too, otherwise
11562       # it will coredump.
11563       lt_prog_compiler_pic_GO='-fPIC -shared'
11564       ;;
11565
11566     osf3* | osf4* | osf5*)
11567       lt_prog_compiler_wl_GO='-Wl,'
11568       # All OSF/1 code is PIC.
11569       lt_prog_compiler_static_GO='-non_shared'
11570       ;;
11571
11572     rdos*)
11573       lt_prog_compiler_static_GO='-non_shared'
11574       ;;
11575
11576     solaris*)
11577       lt_prog_compiler_pic_GO='-KPIC'
11578       lt_prog_compiler_static_GO='-Bstatic'
11579       case $cc_basename in
11580       f77* | f90* | f95*)
11581         lt_prog_compiler_wl_GO='-Qoption ld ';;
11582       *)
11583         lt_prog_compiler_wl_GO='-Wl,';;
11584       esac
11585       ;;
11586
11587     sunos4*)
11588       lt_prog_compiler_wl_GO='-Qoption ld '
11589       lt_prog_compiler_pic_GO='-PIC'
11590       lt_prog_compiler_static_GO='-Bstatic'
11591       ;;
11592
11593     sysv4 | sysv4.2uw2* | sysv4.3*)
11594       lt_prog_compiler_wl_GO='-Wl,'
11595       lt_prog_compiler_pic_GO='-KPIC'
11596       lt_prog_compiler_static_GO='-Bstatic'
11597       ;;
11598
11599     sysv4*MP*)
11600       if test -d /usr/nec ;then
11601         lt_prog_compiler_pic_GO='-Kconform_pic'
11602         lt_prog_compiler_static_GO='-Bstatic'
11603       fi
11604       ;;
11605
11606     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11607       lt_prog_compiler_wl_GO='-Wl,'
11608       lt_prog_compiler_pic_GO='-KPIC'
11609       lt_prog_compiler_static_GO='-Bstatic'
11610       ;;
11611
11612     unicos*)
11613       lt_prog_compiler_wl_GO='-Wl,'
11614       lt_prog_compiler_can_build_shared_GO=no
11615       ;;
11616
11617     uts4*)
11618       lt_prog_compiler_pic_GO='-pic'
11619       lt_prog_compiler_static_GO='-Bstatic'
11620       ;;
11621
11622     *)
11623       lt_prog_compiler_can_build_shared_GO=no
11624       ;;
11625     esac
11626   fi
11627
11628 case $host_os in
11629   # For platforms which do not support PIC, -DPIC is meaningless:
11630   *djgpp*)
11631     lt_prog_compiler_pic_GO=
11632     ;;
11633   *)
11634     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11635     ;;
11636 esac
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11638 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11639
11640
11641
11642 #
11643 # Check to make sure the PIC flag actually works.
11644 #
11645 if test -n "$lt_prog_compiler_pic_GO"; then
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11648 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11649   $as_echo_n "(cached) " >&6
11650 else
11651   lt_cv_prog_compiler_pic_works_GO=no
11652    ac_outfile=conftest.$ac_objext
11653    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11654    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11655    # Insert the option either (1) after the last *FLAGS variable, or
11656    # (2) before a word containing "conftest.", or (3) at the end.
11657    # Note that $ac_compile itself does not contain backslashes and begins
11658    # with a dollar sign (not a hyphen), so the echo should work correctly.
11659    # The option is referenced via a variable to avoid confusing sed.
11660    lt_compile=`echo "$ac_compile" | $SED \
11661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11663    -e 's:$: $lt_compiler_flag:'`
11664    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11665    (eval "$lt_compile" 2>conftest.err)
11666    ac_status=$?
11667    cat conftest.err >&5
11668    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669    if (exit $ac_status) && test -s "$ac_outfile"; then
11670      # The compiler can only warn and ignore the option if not recognized
11671      # So say no if there are warnings other than the usual output.
11672      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11673      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11674      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11675        lt_cv_prog_compiler_pic_works_GO=yes
11676      fi
11677    fi
11678    $RM conftest*
11679
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11682 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11683
11684 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11685     case $lt_prog_compiler_pic_GO in
11686      "" | " "*) ;;
11687      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11688      esac
11689 else
11690     lt_prog_compiler_pic_GO=
11691      lt_prog_compiler_can_build_shared_GO=no
11692 fi
11693
11694 fi
11695
11696
11697
11698 #
11699 # Check to make sure the static flag actually works.
11700 #
11701 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11704 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   lt_cv_prog_compiler_static_works_GO=no
11708    save_LDFLAGS="$LDFLAGS"
11709    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11710    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11711    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11712      # The linker can only warn and ignore the option if not recognized
11713      # So say no if there are warnings
11714      if test -s conftest.err; then
11715        # Append any errors to the config.log.
11716        cat conftest.err 1>&5
11717        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11718        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11719        if diff conftest.exp conftest.er2 >/dev/null; then
11720          lt_cv_prog_compiler_static_works_GO=yes
11721        fi
11722      else
11723        lt_cv_prog_compiler_static_works_GO=yes
11724      fi
11725    fi
11726    $RM -r conftest*
11727    LDFLAGS="$save_LDFLAGS"
11728
11729 fi
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11731 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11732
11733 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11734     :
11735 else
11736     lt_prog_compiler_static_GO=
11737 fi
11738
11739
11740
11741
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11744 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11745   $as_echo_n "(cached) " >&6
11746 else
11747   lt_cv_prog_compiler_c_o_GO=no
11748    $RM -r conftest 2>/dev/null
11749    mkdir conftest
11750    cd conftest
11751    mkdir out
11752    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11753
11754    lt_compiler_flag="-o out/conftest2.$ac_objext"
11755    # Insert the option either (1) after the last *FLAGS variable, or
11756    # (2) before a word containing "conftest.", or (3) at the end.
11757    # Note that $ac_compile itself does not contain backslashes and begins
11758    # with a dollar sign (not a hyphen), so the echo should work correctly.
11759    lt_compile=`echo "$ac_compile" | $SED \
11760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11762    -e 's:$: $lt_compiler_flag:'`
11763    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11764    (eval "$lt_compile" 2>out/conftest.err)
11765    ac_status=$?
11766    cat out/conftest.err >&5
11767    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11769    then
11770      # The compiler can only warn and ignore the option if not recognized
11771      # So say no if there are warnings
11772      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11773      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11774      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11775        lt_cv_prog_compiler_c_o_GO=yes
11776      fi
11777    fi
11778    chmod u+w . 2>&5
11779    $RM conftest*
11780    # SGI C++ compiler will create directory out/ii_files/ for
11781    # template instantiation
11782    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11783    $RM out/* && rmdir out
11784    cd ..
11785    $RM -r conftest
11786    $RM conftest*
11787
11788 fi
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11790 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11791
11792
11793
11794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11796 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11797   $as_echo_n "(cached) " >&6
11798 else
11799   lt_cv_prog_compiler_c_o_GO=no
11800    $RM -r conftest 2>/dev/null
11801    mkdir conftest
11802    cd conftest
11803    mkdir out
11804    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11805
11806    lt_compiler_flag="-o out/conftest2.$ac_objext"
11807    # Insert the option either (1) after the last *FLAGS variable, or
11808    # (2) before a word containing "conftest.", or (3) at the end.
11809    # Note that $ac_compile itself does not contain backslashes and begins
11810    # with a dollar sign (not a hyphen), so the echo should work correctly.
11811    lt_compile=`echo "$ac_compile" | $SED \
11812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11814    -e 's:$: $lt_compiler_flag:'`
11815    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11816    (eval "$lt_compile" 2>out/conftest.err)
11817    ac_status=$?
11818    cat out/conftest.err >&5
11819    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11821    then
11822      # The compiler can only warn and ignore the option if not recognized
11823      # So say no if there are warnings
11824      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11825      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11826      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11827        lt_cv_prog_compiler_c_o_GO=yes
11828      fi
11829    fi
11830    chmod u+w . 2>&5
11831    $RM conftest*
11832    # SGI C++ compiler will create directory out/ii_files/ for
11833    # template instantiation
11834    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11835    $RM out/* && rmdir out
11836    cd ..
11837    $RM -r conftest
11838    $RM conftest*
11839
11840 fi
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11842 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11843
11844
11845
11846
11847 hard_links="nottested"
11848 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11849   # do not overwrite the value of need_locks provided by the user
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11851 $as_echo_n "checking if we can lock with hard links... " >&6; }
11852   hard_links=yes
11853   $RM conftest*
11854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11855   touch conftest.a
11856   ln conftest.a conftest.b 2>&5 || hard_links=no
11857   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11859 $as_echo "$hard_links" >&6; }
11860   if test "$hard_links" = no; then
11861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11862 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11863     need_locks=warn
11864   fi
11865 else
11866   need_locks=no
11867 fi
11868
11869
11870
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11872 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11873
11874   runpath_var=
11875   allow_undefined_flag_GO=
11876   always_export_symbols_GO=no
11877   archive_cmds_GO=
11878   archive_expsym_cmds_GO=
11879   compiler_needs_object_GO=no
11880   enable_shared_with_static_runtimes_GO=no
11881   export_dynamic_flag_spec_GO=
11882   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11883   hardcode_automatic_GO=no
11884   hardcode_direct_GO=no
11885   hardcode_direct_absolute_GO=no
11886   hardcode_libdir_flag_spec_GO=
11887   hardcode_libdir_flag_spec_ld_GO=
11888   hardcode_libdir_separator_GO=
11889   hardcode_minus_L_GO=no
11890   hardcode_shlibpath_var_GO=unsupported
11891   inherit_rpath_GO=no
11892   link_all_deplibs_GO=unknown
11893   module_cmds_GO=
11894   module_expsym_cmds_GO=
11895   old_archive_from_new_cmds_GO=
11896   old_archive_from_expsyms_cmds_GO=
11897   thread_safe_flag_spec_GO=
11898   whole_archive_flag_spec_GO=
11899   # include_expsyms should be a list of space-separated symbols to be *always*
11900   # included in the symbol list
11901   include_expsyms_GO=
11902   # exclude_expsyms can be an extended regexp of symbols to exclude
11903   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11904   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11905   # as well as any symbol that contains `d'.
11906   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11907   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11908   # platforms (ab)use it in PIC code, but their linkers get confused if
11909   # the symbol is explicitly referenced.  Since portable code cannot
11910   # rely on this symbol name, it's probably fine to never include it in
11911   # preloaded symbol tables.
11912   # Exclude shared library initialization/finalization symbols.
11913   extract_expsyms_cmds=
11914
11915   case $host_os in
11916   cygwin* | mingw* | pw32* | cegcc*)
11917     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11918     # When not using gcc, we currently assume that we are using
11919     # Microsoft Visual C++.
11920     if test "$GCC" != yes; then
11921       with_gnu_ld=no
11922     fi
11923     ;;
11924   interix*)
11925     # we just hope/assume this is gcc and not c89 (= MSVC++)
11926     with_gnu_ld=yes
11927     ;;
11928   openbsd*)
11929     with_gnu_ld=no
11930     ;;
11931   esac
11932
11933   ld_shlibs_GO=yes
11934
11935   # On some targets, GNU ld is compatible enough with the native linker
11936   # that we're better off using the native interface for both.
11937   lt_use_gnu_ld_interface=no
11938   if test "$with_gnu_ld" = yes; then
11939     case $host_os in
11940       aix*)
11941         # The AIX port of GNU ld has always aspired to compatibility
11942         # with the native linker.  However, as the warning in the GNU ld
11943         # block says, versions before 2.19.5* couldn't really create working
11944         # shared libraries, regardless of the interface used.
11945         case `$LD -v 2>&1` in
11946           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11947           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11948           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11949           *)
11950             lt_use_gnu_ld_interface=yes
11951             ;;
11952         esac
11953         ;;
11954       *)
11955         lt_use_gnu_ld_interface=yes
11956         ;;
11957     esac
11958   fi
11959
11960   if test "$lt_use_gnu_ld_interface" = yes; then
11961     # If archive_cmds runs LD, not CC, wlarc should be empty
11962     wlarc='${wl}'
11963
11964     # Set some defaults for GNU ld with shared library support. These
11965     # are reset later if shared libraries are not supported. Putting them
11966     # here allows them to be overridden if necessary.
11967     runpath_var=LD_RUN_PATH
11968     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11969     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11970     # ancient GNU ld didn't support --whole-archive et. al.
11971     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11972       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11973     else
11974       whole_archive_flag_spec_GO=
11975     fi
11976     supports_anon_versioning=no
11977     case `$LD -v 2>&1` in
11978       *GNU\ gold*) supports_anon_versioning=yes ;;
11979       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11980       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11981       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11982       *\ 2.11.*) ;; # other 2.11 versions
11983       *) supports_anon_versioning=yes ;;
11984     esac
11985
11986     # See if GNU ld supports shared libraries.
11987     case $host_os in
11988     aix[3-9]*)
11989       # On AIX/PPC, the GNU linker is very broken
11990       if test "$host_cpu" != ia64; then
11991         ld_shlibs_GO=no
11992         cat <<_LT_EOF 1>&2
11993
11994 *** Warning: the GNU linker, at least up to release 2.19, is reported
11995 *** to be unable to reliably create shared libraries on AIX.
11996 *** Therefore, libtool is disabling shared libraries support.  If you
11997 *** really care for shared libraries, you may want to install binutils
11998 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11999 *** You will then need to restart the configuration process.
12000
12001 _LT_EOF
12002       fi
12003       ;;
12004
12005     amigaos*)
12006       case $host_cpu in
12007       powerpc)
12008             # see comment about AmigaOS4 .so support
12009             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12010             archive_expsym_cmds_GO=''
12011         ;;
12012       m68k)
12013             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)'
12014             hardcode_libdir_flag_spec_GO='-L$libdir'
12015             hardcode_minus_L_GO=yes
12016         ;;
12017       esac
12018       ;;
12019
12020     beos*)
12021       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12022         allow_undefined_flag_GO=unsupported
12023         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12024         # support --undefined.  This deserves some investigation.  FIXME
12025         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12026       else
12027         ld_shlibs_GO=no
12028       fi
12029       ;;
12030
12031     cygwin* | mingw* | pw32* | cegcc*)
12032       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12033       # as there is no search path for DLLs.
12034       hardcode_libdir_flag_spec_GO='-L$libdir'
12035       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12036       allow_undefined_flag_GO=unsupported
12037       always_export_symbols_GO=no
12038       enable_shared_with_static_runtimes_GO=yes
12039       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12040
12041       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12042         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12043         # If the export-symbols file already is a .def file (1st line
12044         # is EXPORTS), use it as is; otherwise, prepend...
12045         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12046           cp $export_symbols $output_objdir/$soname.def;
12047         else
12048           echo EXPORTS > $output_objdir/$soname.def;
12049           cat $export_symbols >> $output_objdir/$soname.def;
12050         fi~
12051         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12052       else
12053         ld_shlibs_GO=no
12054       fi
12055       ;;
12056
12057     haiku*)
12058       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059       link_all_deplibs_GO=yes
12060       ;;
12061
12062     interix[3-9]*)
12063       hardcode_direct_GO=no
12064       hardcode_shlibpath_var_GO=no
12065       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12066       export_dynamic_flag_spec_GO='${wl}-E'
12067       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12068       # Instead, shared libraries are loaded at an image base (0x10000000 by
12069       # default) and relocated if they conflict, which is a slow very memory
12070       # consuming and fragmenting process.  To avoid this, we pick a random,
12071       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12072       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12073       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'
12074       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'
12075       ;;
12076
12077     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12078       tmp_diet=no
12079       if test "$host_os" = linux-dietlibc; then
12080         case $cc_basename in
12081           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12082         esac
12083       fi
12084       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12085          && test "$tmp_diet" = no
12086       then
12087         tmp_addflag=
12088         tmp_sharedflag='-shared'
12089         case $cc_basename,$host_cpu in
12090         pgcc*)                          # Portland Group C compiler
12091           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'
12092           tmp_addflag=' $pic_flag'
12093           ;;
12094         pgf77* | pgf90* | pgf95* | pgfortran*)
12095                                         # Portland Group f77 and f90 compilers
12096           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'
12097           tmp_addflag=' $pic_flag -Mnomain' ;;
12098         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12099           tmp_addflag=' -i_dynamic' ;;
12100         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12101           tmp_addflag=' -i_dynamic -nofor_main' ;;
12102         ifc* | ifort*)                  # Intel Fortran compiler
12103           tmp_addflag=' -nofor_main' ;;
12104         lf95*)                          # Lahey Fortran 8.1
12105           whole_archive_flag_spec_GO=
12106           tmp_sharedflag='--shared' ;;
12107         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12108           tmp_sharedflag='-qmkshrobj'
12109           tmp_addflag= ;;
12110         nvcc*)  # Cuda Compiler Driver 2.2
12111           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'
12112           compiler_needs_object_GO=yes
12113           ;;
12114         esac
12115         case `$CC -V 2>&1 | sed 5q` in
12116         *Sun\ C*)                       # Sun C 5.9
12117           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'
12118           compiler_needs_object_GO=yes
12119           tmp_sharedflag='-G' ;;
12120         *Sun\ F*)                       # Sun Fortran 8.3
12121           tmp_sharedflag='-G' ;;
12122         esac
12123         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12124
12125         if test "x$supports_anon_versioning" = xyes; then
12126           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12127             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12128             echo "local: *; };" >> $output_objdir/$libname.ver~
12129             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12130         fi
12131
12132         case $cc_basename in
12133         xlf* | bgf* | bgxlf* | mpixlf*)
12134           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12135           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12136           hardcode_libdir_flag_spec_GO=
12137           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12138           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12139           if test "x$supports_anon_versioning" = xyes; then
12140             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12141               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12142               echo "local: *; };" >> $output_objdir/$libname.ver~
12143               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12144           fi
12145           ;;
12146         esac
12147       else
12148         ld_shlibs_GO=no
12149       fi
12150       ;;
12151
12152     netbsd*)
12153       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12154         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12155         wlarc=
12156       else
12157         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12158         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12159       fi
12160       ;;
12161
12162     solaris*)
12163       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12164         ld_shlibs_GO=no
12165         cat <<_LT_EOF 1>&2
12166
12167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12168 *** create shared libraries on Solaris systems.  Therefore, libtool
12169 *** is disabling shared libraries support.  We urge you to upgrade GNU
12170 *** binutils to release 2.9.1 or newer.  Another option is to modify
12171 *** your PATH or compiler configuration so that the native linker is
12172 *** used, and then restart.
12173
12174 _LT_EOF
12175       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12176         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12177         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12178       else
12179         ld_shlibs_GO=no
12180       fi
12181       ;;
12182
12183     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12184       case `$LD -v 2>&1` in
12185         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12186         ld_shlibs_GO=no
12187         cat <<_LT_EOF 1>&2
12188
12189 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12190 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12191 *** is disabling shared libraries support.  We urge you to upgrade GNU
12192 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12193 *** your PATH or compiler configuration so that the native linker is
12194 *** used, and then restart.
12195
12196 _LT_EOF
12197         ;;
12198         *)
12199           # For security reasons, it is highly recommended that you always
12200           # use absolute paths for naming shared libraries, and exclude the
12201           # DT_RUNPATH tag from executables and libraries.  But doing so
12202           # requires that you compile everything twice, which is a pain.
12203           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12204             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12205             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12206             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12207           else
12208             ld_shlibs_GO=no
12209           fi
12210         ;;
12211       esac
12212       ;;
12213
12214     sunos4*)
12215       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12216       wlarc=
12217       hardcode_direct_GO=yes
12218       hardcode_shlibpath_var_GO=no
12219       ;;
12220
12221     *)
12222       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12223         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12224         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12225       else
12226         ld_shlibs_GO=no
12227       fi
12228       ;;
12229     esac
12230
12231     if test "$ld_shlibs_GO" = no; then
12232       runpath_var=
12233       hardcode_libdir_flag_spec_GO=
12234       export_dynamic_flag_spec_GO=
12235       whole_archive_flag_spec_GO=
12236     fi
12237   else
12238     # PORTME fill in a description of your system's linker (not GNU ld)
12239     case $host_os in
12240     aix3*)
12241       allow_undefined_flag_GO=unsupported
12242       always_export_symbols_GO=yes
12243       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'
12244       # Note: this linker hardcodes the directories in LIBPATH if there
12245       # are no directories specified by -L.
12246       hardcode_minus_L_GO=yes
12247       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12248         # Neither direct hardcoding nor static linking is supported with a
12249         # broken collect2.
12250         hardcode_direct_GO=unsupported
12251       fi
12252       ;;
12253
12254     aix[4-9]*)
12255       if test "$host_cpu" = ia64; then
12256         # On IA64, the linker does run time linking by default, so we don't
12257         # have to do anything special.
12258         aix_use_runtimelinking=no
12259         exp_sym_flag='-Bexport'
12260         no_entry_flag=""
12261       else
12262         # If we're using GNU nm, then we don't want the "-C" option.
12263         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12264         # Also, AIX nm treats weak defined symbols like other global
12265         # defined symbols, whereas GNU nm marks them as "W".
12266         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12267           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'
12268         else
12269           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'
12270         fi
12271         aix_use_runtimelinking=no
12272
12273         # Test if we are trying to use run time linking or normal
12274         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12275         # need to do runtime linking.
12276         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12277           for ld_flag in $LDFLAGS; do
12278           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12279             aix_use_runtimelinking=yes
12280             break
12281           fi
12282           done
12283           ;;
12284         esac
12285
12286         exp_sym_flag='-bexport'
12287         no_entry_flag='-bnoentry'
12288       fi
12289
12290       # When large executables or shared objects are built, AIX ld can
12291       # have problems creating the table of contents.  If linking a library
12292       # or program results in "error TOC overflow" add -mminimal-toc to
12293       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12294       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12295
12296       archive_cmds_GO=''
12297       hardcode_direct_GO=yes
12298       hardcode_direct_absolute_GO=yes
12299       hardcode_libdir_separator_GO=':'
12300       link_all_deplibs_GO=yes
12301       file_list_spec_GO='${wl}-f,'
12302
12303       if test "$GCC" = yes; then
12304         case $host_os in aix4.[012]|aix4.[012].*)
12305         # We only want to do this on AIX 4.2 and lower, the check
12306         # below for broken collect2 doesn't work under 4.3+
12307           collect2name=`${CC} -print-prog-name=collect2`
12308           if test -f "$collect2name" &&
12309            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12310           then
12311           # We have reworked collect2
12312           :
12313           else
12314           # We have old collect2
12315           hardcode_direct_GO=unsupported
12316           # It fails to find uninstalled libraries when the uninstalled
12317           # path is not listed in the libpath.  Setting hardcode_minus_L
12318           # to unsupported forces relinking
12319           hardcode_minus_L_GO=yes
12320           hardcode_libdir_flag_spec_GO='-L$libdir'
12321           hardcode_libdir_separator_GO=
12322           fi
12323           ;;
12324         esac
12325         shared_flag='-shared'
12326         if test "$aix_use_runtimelinking" = yes; then
12327           shared_flag="$shared_flag "'${wl}-G'
12328         fi
12329       else
12330         # not using gcc
12331         if test "$host_cpu" = ia64; then
12332         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12333         # chokes on -Wl,-G. The following line is correct:
12334           shared_flag='-G'
12335         else
12336           if test "$aix_use_runtimelinking" = yes; then
12337             shared_flag='${wl}-G'
12338           else
12339             shared_flag='${wl}-bM:SRE'
12340           fi
12341         fi
12342       fi
12343
12344       export_dynamic_flag_spec_GO='${wl}-bexpall'
12345       # It seems that -bexpall does not export symbols beginning with
12346       # underscore (_), so it is better to generate a list of symbols to export.
12347       always_export_symbols_GO=yes
12348       if test "$aix_use_runtimelinking" = yes; then
12349         # Warning - without using the other runtime loading flags (-brtl),
12350         # -berok will link without error, but may produce a broken library.
12351         allow_undefined_flag_GO='-berok'
12352         # Determine the default libpath from the value encoded in an
12353         # empty executable.
12354         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h.  */
12356
12357 int
12358 main ()
12359 {
12360
12361   ;
12362   return 0;
12363 }
12364 _ACEOF
12365 if ac_fn_c_try_link "$LINENO"; then :
12366
12367 lt_aix_libpath_sed='
12368     /Import File Strings/,/^$/ {
12369         /^0/ {
12370             s/^0  *\(.*\)$/\1/
12371             p
12372         }
12373     }'
12374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12375 # Check for a 64-bit object if we didn't find anything.
12376 if test -z "$aix_libpath"; then
12377   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12378 fi
12379 fi
12380 rm -f core conftest.err conftest.$ac_objext \
12381     conftest$ac_exeext conftest.$ac_ext
12382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12383
12384         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12385         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"
12386       else
12387         if test "$host_cpu" = ia64; then
12388           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12389           allow_undefined_flag_GO="-z nodefs"
12390           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"
12391         else
12392          # Determine the default libpath from the value encoded in an
12393          # empty executable.
12394          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h.  */
12396
12397 int
12398 main ()
12399 {
12400
12401   ;
12402   return 0;
12403 }
12404 _ACEOF
12405 if ac_fn_c_try_link "$LINENO"; then :
12406
12407 lt_aix_libpath_sed='
12408     /Import File Strings/,/^$/ {
12409         /^0/ {
12410             s/^0  *\(.*\)$/\1/
12411             p
12412         }
12413     }'
12414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12415 # Check for a 64-bit object if we didn't find anything.
12416 if test -z "$aix_libpath"; then
12417   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12418 fi
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421     conftest$ac_exeext conftest.$ac_ext
12422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12423
12424          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12425           # Warning - without using the other run time loading flags,
12426           # -berok will link without error, but may produce a broken library.
12427           no_undefined_flag_GO=' ${wl}-bernotok'
12428           allow_undefined_flag_GO=' ${wl}-berok'
12429           if test "$with_gnu_ld" = yes; then
12430             # We only use this code for GNU lds that support --whole-archive.
12431             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12432           else
12433             # Exported symbols can be pulled into shared objects from archives
12434             whole_archive_flag_spec_GO='$convenience'
12435           fi
12436           archive_cmds_need_lc_GO=yes
12437           # This is similar to how AIX traditionally builds its shared libraries.
12438           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'
12439         fi
12440       fi
12441       ;;
12442
12443     amigaos*)
12444       case $host_cpu in
12445       powerpc)
12446             # see comment about AmigaOS4 .so support
12447             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448             archive_expsym_cmds_GO=''
12449         ;;
12450       m68k)
12451             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)'
12452             hardcode_libdir_flag_spec_GO='-L$libdir'
12453             hardcode_minus_L_GO=yes
12454         ;;
12455       esac
12456       ;;
12457
12458     bsdi[45]*)
12459       export_dynamic_flag_spec_GO=-rdynamic
12460       ;;
12461
12462     cygwin* | mingw* | pw32* | cegcc*)
12463       # When not using gcc, we currently assume that we are using
12464       # Microsoft Visual C++.
12465       # hardcode_libdir_flag_spec is actually meaningless, as there is
12466       # no search path for DLLs.
12467       hardcode_libdir_flag_spec_GO=' '
12468       allow_undefined_flag_GO=unsupported
12469       # Tell ltmain to make .lib files, not .a files.
12470       libext=lib
12471       # Tell ltmain to make .dll files, not .so files.
12472       shrext_cmds=".dll"
12473       # FIXME: Setting linknames here is a bad hack.
12474       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12475       # The linker will automatically build a .lib file if we build a DLL.
12476       old_archive_from_new_cmds_GO='true'
12477       # FIXME: Should let the user specify the lib program.
12478       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12479       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12480       enable_shared_with_static_runtimes_GO=yes
12481       ;;
12482
12483     darwin* | rhapsody*)
12484
12485
12486   archive_cmds_need_lc_GO=no
12487   hardcode_direct_GO=no
12488   hardcode_automatic_GO=yes
12489   hardcode_shlibpath_var_GO=unsupported
12490   if test "$lt_cv_ld_force_load" = "yes"; then
12491     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\"`'
12492   else
12493     whole_archive_flag_spec_GO=''
12494   fi
12495   link_all_deplibs_GO=yes
12496   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12497   case $cc_basename in
12498      ifort*) _lt_dar_can_shared=yes ;;
12499      *) _lt_dar_can_shared=$GCC ;;
12500   esac
12501   if test "$_lt_dar_can_shared" = "yes"; then
12502     output_verbose_link_cmd=func_echo_all
12503     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}"
12504     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12505     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}"
12506     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}"
12507
12508   else
12509   ld_shlibs_GO=no
12510   fi
12511
12512       ;;
12513
12514     dgux*)
12515       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12516       hardcode_libdir_flag_spec_GO='-L$libdir'
12517       hardcode_shlibpath_var_GO=no
12518       ;;
12519
12520     freebsd1*)
12521       ld_shlibs_GO=no
12522       ;;
12523
12524     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12525     # support.  Future versions do this automatically, but an explicit c++rt0.o
12526     # does not break anything, and helps significantly (at the cost of a little
12527     # extra space).
12528     freebsd2.2*)
12529       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12530       hardcode_libdir_flag_spec_GO='-R$libdir'
12531       hardcode_direct_GO=yes
12532       hardcode_shlibpath_var_GO=no
12533       ;;
12534
12535     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12536     freebsd2*)
12537       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12538       hardcode_direct_GO=yes
12539       hardcode_minus_L_GO=yes
12540       hardcode_shlibpath_var_GO=no
12541       ;;
12542
12543     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12544     freebsd* | dragonfly*)
12545       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12546       hardcode_libdir_flag_spec_GO='-R$libdir'
12547       hardcode_direct_GO=yes
12548       hardcode_shlibpath_var_GO=no
12549       ;;
12550
12551     hpux9*)
12552       if test "$GCC" = yes; then
12553         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'
12554       else
12555         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'
12556       fi
12557       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12558       hardcode_libdir_separator_GO=:
12559       hardcode_direct_GO=yes
12560
12561       # hardcode_minus_L: Not really in the search PATH,
12562       # but as the default location of the library.
12563       hardcode_minus_L_GO=yes
12564       export_dynamic_flag_spec_GO='${wl}-E'
12565       ;;
12566
12567     hpux10*)
12568       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12569         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12570       else
12571         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12572       fi
12573       if test "$with_gnu_ld" = no; then
12574         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12575         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12576         hardcode_libdir_separator_GO=:
12577         hardcode_direct_GO=yes
12578         hardcode_direct_absolute_GO=yes
12579         export_dynamic_flag_spec_GO='${wl}-E'
12580         # hardcode_minus_L: Not really in the search PATH,
12581         # but as the default location of the library.
12582         hardcode_minus_L_GO=yes
12583       fi
12584       ;;
12585
12586     hpux11*)
12587       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12588         case $host_cpu in
12589         hppa*64*)
12590           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12591           ;;
12592         ia64*)
12593           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12594           ;;
12595         *)
12596           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12597           ;;
12598         esac
12599       else
12600         case $host_cpu in
12601         hppa*64*)
12602           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12603           ;;
12604         ia64*)
12605           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12606           ;;
12607         *)
12608         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12609           ;;
12610         esac
12611       fi
12612       if test "$with_gnu_ld" = no; then
12613         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12614         hardcode_libdir_separator_GO=:
12615
12616         case $host_cpu in
12617         hppa*64*|ia64*)
12618           hardcode_direct_GO=no
12619           hardcode_shlibpath_var_GO=no
12620           ;;
12621         *)
12622           hardcode_direct_GO=yes
12623           hardcode_direct_absolute_GO=yes
12624           export_dynamic_flag_spec_GO='${wl}-E'
12625
12626           # hardcode_minus_L: Not really in the search PATH,
12627           # but as the default location of the library.
12628           hardcode_minus_L_GO=yes
12629           ;;
12630         esac
12631       fi
12632       ;;
12633
12634     irix5* | irix6* | nonstopux*)
12635       if test "$GCC" = yes; then
12636         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'
12637         # Try to use the -exported_symbol ld option, if it does not
12638         # work, assume that -exports_file does not work either and
12639         # implicitly export all symbols.
12640         save_LDFLAGS="$LDFLAGS"
12641         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12642         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h.  */
12644 int foo(void) {}
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647   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'
12648
12649 fi
12650 rm -f core conftest.err conftest.$ac_objext \
12651     conftest$ac_exeext conftest.$ac_ext
12652         LDFLAGS="$save_LDFLAGS"
12653       else
12654         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'
12655         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'
12656       fi
12657       archive_cmds_need_lc_GO='no'
12658       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12659       hardcode_libdir_separator_GO=:
12660       inherit_rpath_GO=yes
12661       link_all_deplibs_GO=yes
12662       ;;
12663
12664     netbsd*)
12665       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12666         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12667       else
12668         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12669       fi
12670       hardcode_libdir_flag_spec_GO='-R$libdir'
12671       hardcode_direct_GO=yes
12672       hardcode_shlibpath_var_GO=no
12673       ;;
12674
12675     newsos6)
12676       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12677       hardcode_direct_GO=yes
12678       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12679       hardcode_libdir_separator_GO=:
12680       hardcode_shlibpath_var_GO=no
12681       ;;
12682
12683     *nto* | *qnx*)
12684       ;;
12685
12686     openbsd*)
12687       if test -f /usr/libexec/ld.so; then
12688         hardcode_direct_GO=yes
12689         hardcode_shlibpath_var_GO=no
12690         hardcode_direct_absolute_GO=yes
12691         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12692           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12693           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12694           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12695           export_dynamic_flag_spec_GO='${wl}-E'
12696         else
12697           case $host_os in
12698            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12699              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12700              hardcode_libdir_flag_spec_GO='-R$libdir'
12701              ;;
12702            *)
12703              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12704              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12705              ;;
12706           esac
12707         fi
12708       else
12709         ld_shlibs_GO=no
12710       fi
12711       ;;
12712
12713     os2*)
12714       hardcode_libdir_flag_spec_GO='-L$libdir'
12715       hardcode_minus_L_GO=yes
12716       allow_undefined_flag_GO=unsupported
12717       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'
12718       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12719       ;;
12720
12721     osf3*)
12722       if test "$GCC" = yes; then
12723         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12724         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'
12725       else
12726         allow_undefined_flag_GO=' -expect_unresolved \*'
12727         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'
12728       fi
12729       archive_cmds_need_lc_GO='no'
12730       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12731       hardcode_libdir_separator_GO=:
12732       ;;
12733
12734     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12735       if test "$GCC" = yes; then
12736         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12737         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'
12738         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12739       else
12740         allow_undefined_flag_GO=' -expect_unresolved \*'
12741         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'
12742         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~
12743         $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'
12744
12745         # Both c and cxx compiler support -rpath directly
12746         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12747       fi
12748       archive_cmds_need_lc_GO='no'
12749       hardcode_libdir_separator_GO=:
12750       ;;
12751
12752     solaris*)
12753       no_undefined_flag_GO=' -z defs'
12754       if test "$GCC" = yes; then
12755         wlarc='${wl}'
12756         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12757         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12758           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12759       else
12760         case `$CC -V 2>&1` in
12761         *"Compilers 5.0"*)
12762           wlarc=''
12763           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12764           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12765           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12766           ;;
12767         *)
12768           wlarc='${wl}'
12769           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12770           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12771           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12772           ;;
12773         esac
12774       fi
12775       hardcode_libdir_flag_spec_GO='-R$libdir'
12776       hardcode_shlibpath_var_GO=no
12777       case $host_os in
12778       solaris2.[0-5] | solaris2.[0-5].*) ;;
12779       *)
12780         # The compiler driver will combine and reorder linker options,
12781         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12782         # but is careful enough not to reorder.
12783         # Supported since Solaris 2.6 (maybe 2.5.1?)
12784         if test "$GCC" = yes; then
12785           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12786         else
12787           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12788         fi
12789         ;;
12790       esac
12791       link_all_deplibs_GO=yes
12792       ;;
12793
12794     sunos4*)
12795       if test "x$host_vendor" = xsequent; then
12796         # Use $CC to link under sequent, because it throws in some extra .o
12797         # files that make .init and .fini sections work.
12798         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12799       else
12800         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12801       fi
12802       hardcode_libdir_flag_spec_GO='-L$libdir'
12803       hardcode_direct_GO=yes
12804       hardcode_minus_L_GO=yes
12805       hardcode_shlibpath_var_GO=no
12806       ;;
12807
12808     sysv4)
12809       case $host_vendor in
12810         sni)
12811           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12812           hardcode_direct_GO=yes # is this really true???
12813         ;;
12814         siemens)
12815           ## LD is ld it makes a PLAMLIB
12816           ## CC just makes a GrossModule.
12817           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12818           reload_cmds_GO='$CC -r -o $output$reload_objs'
12819           hardcode_direct_GO=no
12820         ;;
12821         motorola)
12822           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12823           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12824         ;;
12825       esac
12826       runpath_var='LD_RUN_PATH'
12827       hardcode_shlibpath_var_GO=no
12828       ;;
12829
12830     sysv4.3*)
12831       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832       hardcode_shlibpath_var_GO=no
12833       export_dynamic_flag_spec_GO='-Bexport'
12834       ;;
12835
12836     sysv4*MP*)
12837       if test -d /usr/nec; then
12838         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12839         hardcode_shlibpath_var_GO=no
12840         runpath_var=LD_RUN_PATH
12841         hardcode_runpath_var=yes
12842         ld_shlibs_GO=yes
12843       fi
12844       ;;
12845
12846     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12847       no_undefined_flag_GO='${wl}-z,text'
12848       archive_cmds_need_lc_GO=no
12849       hardcode_shlibpath_var_GO=no
12850       runpath_var='LD_RUN_PATH'
12851
12852       if test "$GCC" = yes; then
12853         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12854         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12855       else
12856         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12857         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12858       fi
12859       ;;
12860
12861     sysv5* | sco3.2v5* | sco5v6*)
12862       # Note: We can NOT use -z defs as we might desire, because we do not
12863       # link with -lc, and that would cause any symbols used from libc to
12864       # always be unresolved, which means just about no library would
12865       # ever link correctly.  If we're not using GNU ld we use -z text
12866       # though, which does catch some bad symbols but isn't as heavy-handed
12867       # as -z defs.
12868       no_undefined_flag_GO='${wl}-z,text'
12869       allow_undefined_flag_GO='${wl}-z,nodefs'
12870       archive_cmds_need_lc_GO=no
12871       hardcode_shlibpath_var_GO=no
12872       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12873       hardcode_libdir_separator_GO=':'
12874       link_all_deplibs_GO=yes
12875       export_dynamic_flag_spec_GO='${wl}-Bexport'
12876       runpath_var='LD_RUN_PATH'
12877
12878       if test "$GCC" = yes; then
12879         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881       else
12882         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12884       fi
12885       ;;
12886
12887     uts4*)
12888       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12889       hardcode_libdir_flag_spec_GO='-L$libdir'
12890       hardcode_shlibpath_var_GO=no
12891       ;;
12892
12893     *)
12894       ld_shlibs_GO=no
12895       ;;
12896     esac
12897
12898     if test x$host_vendor = xsni; then
12899       case $host in
12900       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12901         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12902         ;;
12903       esac
12904     fi
12905   fi
12906
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12908 $as_echo "$ld_shlibs_GO" >&6; }
12909 test "$ld_shlibs_GO" = no && can_build_shared=no
12910
12911 with_gnu_ld_GO=$with_gnu_ld
12912
12913
12914
12915
12916
12917
12918 #
12919 # Do we need to explicitly link libc?
12920 #
12921 case "x$archive_cmds_need_lc_GO" in
12922 x|xyes)
12923   # Assume -lc should be added
12924   archive_cmds_need_lc_GO=yes
12925
12926   if test "$enable_shared" = yes && test "$GCC" = yes; then
12927     case $archive_cmds_GO in
12928     *'~'*)
12929       # FIXME: we may have to deal with multi-command sequences.
12930       ;;
12931     '$CC '*)
12932       # Test whether the compiler implicitly links with -lc since on some
12933       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12934       # to ld, don't add -lc before -lgcc.
12935       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12936 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12937 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   $RM conftest*
12941         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12942
12943         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12944   (eval $ac_compile) 2>&5
12945   ac_status=$?
12946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947   test $ac_status = 0; } 2>conftest.err; then
12948           soname=conftest
12949           lib=conftest
12950           libobjs=conftest.$ac_objext
12951           deplibs=
12952           wl=$lt_prog_compiler_wl_GO
12953           pic_flag=$lt_prog_compiler_pic_GO
12954           compiler_flags=-v
12955           linker_flags=-v
12956           verstring=
12957           output_objdir=.
12958           libname=conftest
12959           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12960           allow_undefined_flag_GO=
12961           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12962   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12963   ac_status=$?
12964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12965   test $ac_status = 0; }
12966           then
12967             lt_cv_archive_cmds_need_lc_GO=no
12968           else
12969             lt_cv_archive_cmds_need_lc_GO=yes
12970           fi
12971           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12972         else
12973           cat conftest.err 1>&5
12974         fi
12975         $RM conftest*
12976
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12979 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12980       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12981       ;;
12982     esac
12983   fi
12984   ;;
12985 esac
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
13044
13045
13046
13047
13048
13049
13050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13051 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13052 hardcode_action_GO=
13053 if test -n "$hardcode_libdir_flag_spec_GO" ||
13054    test -n "$runpath_var_GO" ||
13055    test "X$hardcode_automatic_GO" = "Xyes" ; then
13056
13057   # We can hardcode non-existent directories.
13058   if test "$hardcode_direct_GO" != no &&
13059      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13060      # have to relink, otherwise we might link with an installed library
13061      # when we should be linking with a yet-to-be-installed one
13062      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13063      test "$hardcode_minus_L_GO" != no; then
13064     # Linking always hardcodes the temporary library directory.
13065     hardcode_action_GO=relink
13066   else
13067     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13068     hardcode_action_GO=immediate
13069   fi
13070 else
13071   # We cannot hardcode anything, or else we can only hardcode existing
13072   # directories.
13073   hardcode_action_GO=unsupported
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13076 $as_echo "$hardcode_action_GO" >&6; }
13077
13078 if test "$hardcode_action_GO" = relink ||
13079    test "$inherit_rpath_GO" = yes; then
13080   # Fast installation is not supported
13081   enable_fast_install=no
13082 elif test "$shlibpath_overrides_runpath" = yes ||
13083      test "$enable_shared" = no; then
13084   # Fast installation is not necessary
13085   enable_fast_install=needless
13086 fi
13087
13088
13089
13090
13091
13092
13093
13094 fi
13095
13096 ac_ext=c
13097 ac_cpp='$CPP $CPPFLAGS'
13098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13101
13102
13103 GCC=$lt_save_GCC
13104 CC="$lt_save_CC"
13105
13106
13107
13108
13109         ac_config_commands="$ac_config_commands libtool"
13110
13111
13112
13113
13114 # Only expand once:
13115
13116
13117
13118
13119
13120 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13121
13122
13123 WERROR="-Werror"
13124
13125
13126 glibgo_toolexecdir=no
13127 glibgo_toolexeclibdir=no
13128 glibgo_prefixdir=$prefix
13129
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13131 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13132 # Check whether --enable-version-specific-runtime-libs was given.
13133 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13134   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13135     yes) version_specific_libs=yes ;;
13136     no)  version_specific_libs=no ;;
13137     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13138    esac
13139 else
13140   version_specific_libs=no
13141 fi
13142
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13144 $as_echo "$version_specific_libs" >&6; }
13145
13146 # Version-specific runtime libs processing.
13147 if test $version_specific_libs = yes; then
13148   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13149   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13150 fi
13151
13152 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13153 # Install a library built with a cross compiler in tooldir, not libdir.
13154 if test x"$glibgo_toolexecdir" = x"no"; then
13155   if test -n "$with_cross_host" &&
13156      test x"$with_cross_host" != x"no"; then
13157     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13158     glibgo_toolexeclibdir='${toolexecdir}/lib'
13159   else
13160     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13161     glibgo_toolexeclibdir='${libdir}'
13162   fi
13163   multi_os_directory=`$CC -print-multi-os-directory`
13164   case $multi_os_directory in
13165     .) ;; # Avoid trailing /.
13166     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13167   esac
13168 fi
13169
13170
13171
13172
13173
13174 # See if the user wants to configure without libffi.  Some
13175 # architectures don't support it.  FIXME: We should set a default
13176 # based on the host.
13177
13178 # Check whether --with-libffi was given.
13179 if test "${with_libffi+set}" = set; then :
13180   withval=$with_libffi; :
13181 else
13182   with_libffi=${with_libffi_default-yes}
13183 fi
13184
13185
13186 LIBFFI=
13187 LIBFFIINCS=
13188 if test "$with_libffi" != no; then
13189
13190 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13191
13192    LIBFFI=../libffi/libffi_convenience.la
13193    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13194 fi
13195
13196
13197
13198 is_darwin=no
13199 is_freebsd=no
13200 is_linux=no
13201 is_rtems=no
13202 is_solaris=no
13203 GOOS=unknown
13204 case ${host} in
13205   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13206   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13207   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13208   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13209   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13210 esac
13211  if test $is_darwin = yes; then
13212   LIBGO_IS_DARWIN_TRUE=
13213   LIBGO_IS_DARWIN_FALSE='#'
13214 else
13215   LIBGO_IS_DARWIN_TRUE='#'
13216   LIBGO_IS_DARWIN_FALSE=
13217 fi
13218
13219  if test $is_freebsd = yes; then
13220   LIBGO_IS_FREEBSD_TRUE=
13221   LIBGO_IS_FREEBSD_FALSE='#'
13222 else
13223   LIBGO_IS_FREEBSD_TRUE='#'
13224   LIBGO_IS_FREEBSD_FALSE=
13225 fi
13226
13227  if test $is_linux = yes; then
13228   LIBGO_IS_LINUX_TRUE=
13229   LIBGO_IS_LINUX_FALSE='#'
13230 else
13231   LIBGO_IS_LINUX_TRUE='#'
13232   LIBGO_IS_LINUX_FALSE=
13233 fi
13234
13235  if test $is_rtems = yes; then
13236   LIBGO_IS_RTEMS_TRUE=
13237   LIBGO_IS_RTEMS_FALSE='#'
13238 else
13239   LIBGO_IS_RTEMS_TRUE='#'
13240   LIBGO_IS_RTEMS_FALSE=
13241 fi
13242
13243  if test $is_solaris = yes; then
13244   LIBGO_IS_SOLARIS_TRUE=
13245   LIBGO_IS_SOLARIS_FALSE='#'
13246 else
13247   LIBGO_IS_SOLARIS_TRUE='#'
13248   LIBGO_IS_SOLARIS_FALSE=
13249 fi
13250
13251
13252
13253 is_386=no
13254 is_arm=no
13255 is_sparc=no
13256 is_sparcv9=no
13257 is_x86_64=no
13258 GOARCH=unknown
13259 case ${host} in
13260   i[34567]86-*-* | x86_64-*-*)
13261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h.  */
13263
13264 #ifdef __x86_64__
13265 #error 64-bit
13266 #endif
13267 _ACEOF
13268 if ac_fn_c_try_cpp "$LINENO"; then :
13269   is_386=yes
13270 else
13271   is_x86_64=yes
13272 fi
13273 rm -f conftest.err conftest.$ac_ext
13274     if test "$is_386" = "yes"; then
13275       is_386=yes
13276       GOARCH=386
13277     else
13278       is_x86_64=yes
13279       GOARCH=amd64
13280     fi
13281     ;;
13282   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13283     is_arm=yes
13284     GOARCH=arm
13285     ;;
13286   sparc*-*-*)
13287     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h.  */
13289
13290 #if defined(__sparcv9) || defined(__arch64__)
13291 #error 64-bit
13292 #endif
13293 _ACEOF
13294 if ac_fn_c_try_cpp "$LINENO"; then :
13295   is_sparc=yes
13296 else
13297   is_sparcv9=yes
13298 fi
13299 rm -f conftest.err conftest.$ac_ext
13300     if test "$is_sparc" = "yes"; then
13301       is_sparc=yes
13302       GOARCH=sparc
13303     else
13304       is_sparcv9=yes
13305       GOARCH=sparcv9
13306     fi
13307     ;;
13308 esac
13309  if test $is_386 = yes; then
13310   LIBGO_IS_386_TRUE=
13311   LIBGO_IS_386_FALSE='#'
13312 else
13313   LIBGO_IS_386_TRUE='#'
13314   LIBGO_IS_386_FALSE=
13315 fi
13316
13317  if test $is_arm = yes; then
13318   LIBGO_IS_ARM_TRUE=
13319   LIBGO_IS_ARM_FALSE='#'
13320 else
13321   LIBGO_IS_ARM_TRUE='#'
13322   LIBGO_IS_ARM_FALSE=
13323 fi
13324
13325  if test $is_sparc = yes; then
13326   LIBGO_IS_SPARC_TRUE=
13327   LIBGO_IS_SPARC_FALSE='#'
13328 else
13329   LIBGO_IS_SPARC_TRUE='#'
13330   LIBGO_IS_SPARC_FALSE=
13331 fi
13332
13333  if test $isv_sparcv9 = yes; then
13334   LIBGO_IS_SPARCV9_TRUE=
13335   LIBGO_IS_SPARCV9_FALSE='#'
13336 else
13337   LIBGO_IS_SPARCV9_TRUE='#'
13338   LIBGO_IS_SPARCV9_FALSE=
13339 fi
13340
13341  if test $is_x86_64 = yes; then
13342   LIBGO_IS_X86_64_TRUE=
13343   LIBGO_IS_X86_64_FALSE='#'
13344 else
13345   LIBGO_IS_X86_64_TRUE='#'
13346   LIBGO_IS_X86_64_FALSE=
13347 fi
13348
13349
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13352 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13353 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13354   $as_echo_n "(cached) " >&6
13355 else
13356   CFLAGS_hold=$CFLAGS
13357 CFLAGS="$CFLAGS -fsplit-stack"
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h.  */
13360 int i;
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363   libgo_cv_c_split_stack_supported=yes
13364 else
13365   libgo_cv_c_split_stack_supported=no
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 CFLAGS=$CFLAGS_hold
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13371 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13372 if test "$libgo_cv_c_split_stack_supported" = yes; then
13373   SPLIT_STACK=-fsplit-stack
13374
13375 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13376
13377 else
13378   SPLIT_STACK=
13379 fi
13380
13381  if test "$libgo_cv_c_split_stack_supported" = yes; then
13382   USING_SPLIT_STACK_TRUE=
13383   USING_SPLIT_STACK_FALSE='#'
13384 else
13385   USING_SPLIT_STACK_TRUE='#'
13386   USING_SPLIT_STACK_FALSE=
13387 fi
13388
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13391 $as_echo_n "checking whether linker supports split stack... " >&6; }
13392 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   libgo_cv_c_linker_supports_split_stack=no
13396 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13397   libgo_cv_c_linker_supports_split_stack=yes
13398 fi
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13401 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13402 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13403
13404 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13405
13406 fi
13407
13408 MATH_LIBS=
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13410 $as_echo_n "checking for sqrt in -lm... " >&6; }
13411 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13412   $as_echo_n "(cached) " >&6
13413 else
13414   ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-lm  $LIBS"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h.  */
13418
13419 /* Override any GCC internal prototype to avoid an error.
13420    Use char because int might match the return type of a GCC
13421    builtin and then its argument prototype would still apply.  */
13422 #ifdef __cplusplus
13423 extern "C"
13424 #endif
13425 char sqrt ();
13426 int
13427 main ()
13428 {
13429 return sqrt ();
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435   ac_cv_lib_m_sqrt=yes
13436 else
13437   ac_cv_lib_m_sqrt=no
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext \
13440     conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13444 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13445 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13446   MATH_LIBS=-lm
13447 fi
13448
13449
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13452 $as_echo_n "checking for socket libraries... " >&6; }
13453 if test "${libgo_cv_lib_sockets+set}" = set; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456   libgo_cv_lib_sockets=
13457    libgo_check_both=no
13458    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13459 if test "x$ac_cv_func_connect" = x""yes; then :
13460   libgo_check_socket=no
13461 else
13462   libgo_check_socket=yes
13463 fi
13464
13465    if test "$libgo_check_socket" = "yes"; then
13466      unset ac_cv_func_connect
13467      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13468 $as_echo_n "checking for main in -lsocket... " >&6; }
13469 if test "${ac_cv_lib_socket_main+set}" = set; then :
13470   $as_echo_n "(cached) " >&6
13471 else
13472   ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-lsocket  $LIBS"
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h.  */
13476
13477
13478 int
13479 main ()
13480 {
13481 return main ();
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"; then :
13487   ac_cv_lib_socket_main=yes
13488 else
13489   ac_cv_lib_socket_main=no
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext \
13492     conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13496 $as_echo "$ac_cv_lib_socket_main" >&6; }
13497 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13498   libgo_cv_lib_sockets="-lsocket"
13499 else
13500   libgo_check_both=yes
13501 fi
13502
13503    fi
13504    if test "$libgo_check_both" = "yes"; then
13505      libgo_old_libs=$LIBS
13506      LIBS="$LIBS -lsocket -lnsl"
13507      unset ac_cv_func_accept
13508      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13509 if test "x$ac_cv_func_accept" = x""yes; then :
13510   libgo_check_nsl=no
13511                     libgo_cv_lib_sockets="-lsocket -lnsl"
13512 fi
13513
13514      unset ac_cv_func_accept
13515      LIBS=$libgo_old_libs
13516    fi
13517    unset ac_cv_func_gethostbyname
13518    libgo_old_libs="$LIBS"
13519    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13520 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13521
13522 else
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13524 $as_echo_n "checking for main in -lnsl... " >&6; }
13525 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lnsl  $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h.  */
13532
13533
13534 int
13535 main ()
13536 {
13537 return main ();
13538   ;
13539   return 0;
13540 }
13541 _ACEOF
13542 if ac_fn_c_try_link "$LINENO"; then :
13543   ac_cv_lib_nsl_main=yes
13544 else
13545   ac_cv_lib_nsl_main=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext \
13548     conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13552 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13553 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13554   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13555 fi
13556
13557 fi
13558
13559    unset ac_cv_func_gethostbyname
13560    LIBS=$libgo_old_libs
13561
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13564 $as_echo "$libgo_cv_lib_sockets" >&6; }
13565 NET_LIBS="$libgo_cv_lib_sockets"
13566
13567
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13569 $as_echo_n "checking whether -pthread is supported... " >&6; }
13570 if test "${libgo_cv_lib_pthread+set}" = set; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   CFLAGS_hold=$CFLAGS
13574 CFLAGS="$CFLAGS -pthread"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h.  */
13577 int i;
13578 _ACEOF
13579 if ac_fn_c_try_compile "$LINENO"; then :
13580   libgo_cv_lib_pthread=yes
13581 else
13582   libgo_cv_lib_pthread=no
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 CFLAGS=$CFLAGS_hold
13586 fi
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13588 $as_echo "$libgo_cv_lib_pthread" >&6; }
13589 PTHREAD_CFLAGS=
13590 if test "$libgo_cv_lib_pthread" = yes; then
13591   PTHREAD_CFLAGS=-pthread
13592 fi
13593
13594
13595 PTHREAD_LIBS=
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13597 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13598 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13599   $as_echo_n "(cached) " >&6
13600 else
13601   ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-lpthread  $LIBS"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h.  */
13605
13606 /* Override any GCC internal prototype to avoid an error.
13607    Use char because int might match the return type of a GCC
13608    builtin and then its argument prototype would still apply.  */
13609 #ifdef __cplusplus
13610 extern "C"
13611 #endif
13612 char pthread_create ();
13613 int
13614 main ()
13615 {
13616 return pthread_create ();
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 if ac_fn_c_try_link "$LINENO"; then :
13622   ac_cv_lib_pthread_pthread_create=yes
13623 else
13624   ac_cv_lib_pthread_pthread_create=no
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext \
13627     conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13631 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13632 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13633   PTHREAD_LIBS=-lpthread
13634 fi
13635
13636
13637
13638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13639 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13640 if test "${ac_cv_c_bigendian+set}" = set; then :
13641   $as_echo_n "(cached) " >&6
13642 else
13643   ac_cv_c_bigendian=unknown
13644     # See if we're dealing with a universal compiler.
13645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h.  */
13647 #ifndef __APPLE_CC__
13648                not a universal capable compiler
13649              #endif
13650              typedef int dummy;
13651
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654
13655         # Check for potential -arch flags.  It is not universal unless
13656         # there are at least two -arch flags with different values.
13657         ac_arch=
13658         ac_prev=
13659         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13660          if test -n "$ac_prev"; then
13661            case $ac_word in
13662              i?86 | x86_64 | ppc | ppc64)
13663                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13664                  ac_arch=$ac_word
13665                else
13666                  ac_cv_c_bigendian=universal
13667                  break
13668                fi
13669                ;;
13670            esac
13671            ac_prev=
13672          elif test "x$ac_word" = "x-arch"; then
13673            ac_prev=arch
13674          fi
13675        done
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678     if test $ac_cv_c_bigendian = unknown; then
13679       # See if sys/param.h defines the BYTE_ORDER macro.
13680       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682 #include <sys/types.h>
13683              #include <sys/param.h>
13684
13685 int
13686 main ()
13687 {
13688 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13689                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13690                      && LITTLE_ENDIAN)
13691               bogus endian macros
13692              #endif
13693
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699   # It does; now see whether it defined to BIG_ENDIAN or not.
13700          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h.  */
13702 #include <sys/types.h>
13703                 #include <sys/param.h>
13704
13705 int
13706 main ()
13707 {
13708 #if BYTE_ORDER != BIG_ENDIAN
13709                  not big endian
13710                 #endif
13711
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 if ac_fn_c_try_compile "$LINENO"; then :
13717   ac_cv_c_bigendian=yes
13718 else
13719   ac_cv_c_bigendian=no
13720 fi
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 fi
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724     fi
13725     if test $ac_cv_c_bigendian = unknown; then
13726       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13727       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h.  */
13729 #include <limits.h>
13730
13731 int
13732 main ()
13733 {
13734 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13735               bogus endian macros
13736              #endif
13737
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 if ac_fn_c_try_compile "$LINENO"; then :
13743   # It does; now see whether it defined to _BIG_ENDIAN or not.
13744          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h.  */
13746 #include <limits.h>
13747
13748 int
13749 main ()
13750 {
13751 #ifndef _BIG_ENDIAN
13752                  not big endian
13753                 #endif
13754
13755   ;
13756   return 0;
13757 }
13758 _ACEOF
13759 if ac_fn_c_try_compile "$LINENO"; then :
13760   ac_cv_c_bigendian=yes
13761 else
13762   ac_cv_c_bigendian=no
13763 fi
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767     fi
13768     if test $ac_cv_c_bigendian = unknown; then
13769       # Compile a test program.
13770       if test "$cross_compiling" = yes; then :
13771   # Try to guess by grepping values from an object file.
13772          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h.  */
13774 short int ascii_mm[] =
13775                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13776                 short int ascii_ii[] =
13777                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13778                 int use_ascii (int i) {
13779                   return ascii_mm[i] + ascii_ii[i];
13780                 }
13781                 short int ebcdic_ii[] =
13782                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13783                 short int ebcdic_mm[] =
13784                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13785                 int use_ebcdic (int i) {
13786                   return ebcdic_mm[i] + ebcdic_ii[i];
13787                 }
13788                 extern int foo;
13789
13790 int
13791 main ()
13792 {
13793 return use_ascii (foo) == use_ebcdic (foo);
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_compile "$LINENO"; then :
13799   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13800               ac_cv_c_bigendian=yes
13801             fi
13802             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13803               if test "$ac_cv_c_bigendian" = unknown; then
13804                 ac_cv_c_bigendian=no
13805               else
13806                 # finding both strings is unlikely to happen, but who knows?
13807                 ac_cv_c_bigendian=unknown
13808               fi
13809             fi
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 else
13813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h.  */
13815 $ac_includes_default
13816 int
13817 main ()
13818 {
13819
13820              /* Are we little or big endian?  From Harbison&Steele.  */
13821              union
13822              {
13823                long int l;
13824                char c[sizeof (long int)];
13825              } u;
13826              u.l = 1;
13827              return u.c[sizeof (long int) - 1] == 1;
13828
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 if ac_fn_c_try_run "$LINENO"; then :
13834   ac_cv_c_bigendian=no
13835 else
13836   ac_cv_c_bigendian=yes
13837 fi
13838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13839   conftest.$ac_objext conftest.beam conftest.$ac_ext
13840 fi
13841
13842     fi
13843 fi
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13845 $as_echo "$ac_cv_c_bigendian" >&6; }
13846  case $ac_cv_c_bigendian in #(
13847    yes)
13848      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13849 ;; #(
13850    no)
13851       ;; #(
13852    universal)
13853
13854 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13855
13856      ;; #(
13857    *)
13858      as_fn_error "unknown endianness
13859  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13860  esac
13861
13862
13863
13864
13865 # Check whether --with-system-libunwind was given.
13866 if test "${with_system_libunwind+set}" = set; then :
13867   withval=$with_system_libunwind;
13868 fi
13869
13870   # If system-libunwind was not specifically set, pick a default setting.
13871   if test x$with_system_libunwind = x; then
13872     case ${target} in
13873       ia64-*-hpux*) with_system_libunwind=yes ;;
13874       *) with_system_libunwind=no ;;
13875     esac
13876   fi
13877   # Based on system-libunwind and target, do we have ipinfo?
13878   if  test x$with_system_libunwind = xyes; then
13879     case ${target} in
13880       ia64-*-*) have_unwind_getipinfo=no ;;
13881       *) have_unwind_getipinfo=yes ;;
13882     esac
13883   else
13884     # Darwin before version 9 does not have _Unwind_GetIPInfo.
13885
13886     case ${target} in
13887       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13888       *) have_unwind_getipinfo=yes ;;
13889     esac
13890
13891   fi
13892
13893   if test x$have_unwind_getipinfo = xyes; then
13894
13895 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13896
13897   fi
13898
13899
13900 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13901 do :
13902   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13903 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13904 eval as_val=\$$as_ac_Header
13905    if test "x$as_val" = x""yes; then :
13906   cat >>confdefs.h <<_ACEOF
13907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13908 _ACEOF
13909
13910 fi
13911
13912 done
13913
13914  if test "$ac_cv_header_sys_mman_h" = yes; then
13915   HAVE_SYS_MMAN_H_TRUE=
13916   HAVE_SYS_MMAN_H_FALSE='#'
13917 else
13918   HAVE_SYS_MMAN_H_TRUE='#'
13919   HAVE_SYS_MMAN_H_FALSE=
13920 fi
13921
13922 for ac_func in srandom random strsignal
13923 do :
13924   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13926 eval as_val=\$$as_ac_var
13927    if test "x$as_val" = x""yes; then :
13928   cat >>confdefs.h <<_ACEOF
13929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13930 _ACEOF
13931
13932 fi
13933 done
13934
13935
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13937 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13938 if test "${libgo_cv_c_stringops+set}" = set; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   CFLAGS_hold=$CFLAGS
13942 CFLAGS="$CFLAGS -minline-all-stringops"
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h.  */
13945 int i;
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948   libgo_cv_c_stringops=yes
13949 else
13950   libgo_cv_c_stringops=no
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 CFLAGS=$CFLAGS_hold
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
13956 $as_echo "$libgo_cv_c_stringops" >&6; }
13957 STRINGOPS_FLAG=
13958 if test "$libgo_cv_c_stringops" = yes; then
13959   STRINGOPS_FLAG=-minline-all-stringops
13960 fi
13961
13962
13963 CFLAGS_hold=$CFLAGS
13964 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
13965 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
13966 if test "x$ac_cv_type_off64_t" = x""yes; then :
13967
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_OFF64_T 1
13970 _ACEOF
13971
13972
13973 fi
13974
13975 CFLAGS=$CFLAGS_hold
13976
13977 cat >confcache <<\_ACEOF
13978 # This file is a shell script that caches the results of configure
13979 # tests run on this system so they can be shared between configure
13980 # scripts and configure runs, see configure's option --config-cache.
13981 # It is not useful on other systems.  If it contains results you don't
13982 # want to keep, you may remove or edit it.
13983 #
13984 # config.status only pays attention to the cache file if you give it
13985 # the --recheck option to rerun configure.
13986 #
13987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13989 # following values.
13990
13991 _ACEOF
13992
13993 # The following way of writing the cache mishandles newlines in values,
13994 # but we know of no workaround that is simple, portable, and efficient.
13995 # So, we kill variables containing newlines.
13996 # Ultrix sh set writes to stderr and can't be redirected directly,
13997 # and sets the high bit in the cache file unless we assign to the vars.
13998 (
13999   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14000     eval ac_val=\$$ac_var
14001     case $ac_val in #(
14002     *${as_nl}*)
14003       case $ac_var in #(
14004       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14006       esac
14007       case $ac_var in #(
14008       _ | IFS | as_nl) ;; #(
14009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14010       *) { eval $ac_var=; unset $ac_var;} ;;
14011       esac ;;
14012     esac
14013   done
14014
14015   (set) 2>&1 |
14016     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14017     *${as_nl}ac_space=\ *)
14018       # `set' does not quote correctly, so add quotes: double-quote
14019       # substitution turns \\\\ into \\, and sed turns \\ into \.
14020       sed -n \
14021         "s/'/'\\\\''/g;
14022           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14023       ;; #(
14024     *)
14025       # `set' quotes correctly as required by POSIX, so do not add quotes.
14026       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14027       ;;
14028     esac |
14029     sort
14030 ) |
14031   sed '
14032      /^ac_cv_env_/b end
14033      t clear
14034      :clear
14035      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14036      t end
14037      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14038      :end' >>confcache
14039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14040   if test -w "$cache_file"; then
14041     test "x$cache_file" != "x/dev/null" &&
14042       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14043 $as_echo "$as_me: updating cache $cache_file" >&6;}
14044     cat confcache >$cache_file
14045   else
14046     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14048   fi
14049 fi
14050 rm -f confcache
14051
14052 if test ${multilib} = yes; then
14053   multilib_arg="--enable-multilib"
14054 else
14055   multilib_arg=
14056 fi
14057
14058 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14059
14060
14061 ac_config_commands="$ac_config_commands default"
14062
14063
14064 cat >confcache <<\_ACEOF
14065 # This file is a shell script that caches the results of configure
14066 # tests run on this system so they can be shared between configure
14067 # scripts and configure runs, see configure's option --config-cache.
14068 # It is not useful on other systems.  If it contains results you don't
14069 # want to keep, you may remove or edit it.
14070 #
14071 # config.status only pays attention to the cache file if you give it
14072 # the --recheck option to rerun configure.
14073 #
14074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14076 # following values.
14077
14078 _ACEOF
14079
14080 # The following way of writing the cache mishandles newlines in values,
14081 # but we know of no workaround that is simple, portable, and efficient.
14082 # So, we kill variables containing newlines.
14083 # Ultrix sh set writes to stderr and can't be redirected directly,
14084 # and sets the high bit in the cache file unless we assign to the vars.
14085 (
14086   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14087     eval ac_val=\$$ac_var
14088     case $ac_val in #(
14089     *${as_nl}*)
14090       case $ac_var in #(
14091       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14093       esac
14094       case $ac_var in #(
14095       _ | IFS | as_nl) ;; #(
14096       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14097       *) { eval $ac_var=; unset $ac_var;} ;;
14098       esac ;;
14099     esac
14100   done
14101
14102   (set) 2>&1 |
14103     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14104     *${as_nl}ac_space=\ *)
14105       # `set' does not quote correctly, so add quotes: double-quote
14106       # substitution turns \\\\ into \\, and sed turns \\ into \.
14107       sed -n \
14108         "s/'/'\\\\''/g;
14109           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14110       ;; #(
14111     *)
14112       # `set' quotes correctly as required by POSIX, so do not add quotes.
14113       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14114       ;;
14115     esac |
14116     sort
14117 ) |
14118   sed '
14119      /^ac_cv_env_/b end
14120      t clear
14121      :clear
14122      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14123      t end
14124      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14125      :end' >>confcache
14126 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14127   if test -w "$cache_file"; then
14128     test "x$cache_file" != "x/dev/null" &&
14129       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14130 $as_echo "$as_me: updating cache $cache_file" >&6;}
14131     cat confcache >$cache_file
14132   else
14133     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14134 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14135   fi
14136 fi
14137 rm -f confcache
14138
14139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14140 # Let make expand exec_prefix.
14141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14142
14143 DEFS=-DHAVE_CONFIG_H
14144
14145 ac_libobjs=
14146 ac_ltlibobjs=
14147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14148   # 1. Remove the extension, and $U if already installed.
14149   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14150   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14151   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14152   #    will be set to the directory where LIBOBJS objects are built.
14153   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14154   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14155 done
14156 LIBOBJS=$ac_libobjs
14157
14158 LTLIBOBJS=$ac_ltlibobjs
14159
14160
14161  if test -n "$EXEEXT"; then
14162   am__EXEEXT_TRUE=
14163   am__EXEEXT_FALSE='#'
14164 else
14165   am__EXEEXT_TRUE='#'
14166   am__EXEEXT_FALSE=
14167 fi
14168
14169 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14170   as_fn_error "conditional \"AMDEP\" was never defined.
14171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14172 fi
14173 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14174   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14176 fi
14177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14178   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14180 fi
14181 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14182   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14184 fi
14185 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14186   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14188 fi
14189 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14190   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14192 fi
14193 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14194   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14196 fi
14197 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14198   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14200 fi
14201 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14202   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14204 fi
14205 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14206   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14208 fi
14209 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14210   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14212 fi
14213 if test -z "${LIBGO_IS_SPARCV9_TRUE}" && test -z "${LIBGO_IS_SPARCV9_FALSE}"; then
14214   as_fn_error "conditional \"LIBGO_IS_SPARCV9\" was never defined.
14215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14216 fi
14217 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14218   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14220 fi
14221 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14222   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14224 fi
14225
14226 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14227   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14229 fi
14230
14231 : ${CONFIG_STATUS=./config.status}
14232 ac_write_fail=0
14233 ac_clean_files_save=$ac_clean_files
14234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14236 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14237 as_write_fail=0
14238 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14239 #! $SHELL
14240 # Generated by $as_me.
14241 # Run this file to recreate the current configuration.
14242 # Compiler output produced by configure, useful for debugging
14243 # configure, is in config.log if it exists.
14244
14245 debug=false
14246 ac_cs_recheck=false
14247 ac_cs_silent=false
14248
14249 SHELL=\${CONFIG_SHELL-$SHELL}
14250 export SHELL
14251 _ASEOF
14252 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14253 ## -------------------- ##
14254 ## M4sh Initialization. ##
14255 ## -------------------- ##
14256
14257 # Be more Bourne compatible
14258 DUALCASE=1; export DUALCASE # for MKS sh
14259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14260   emulate sh
14261   NULLCMD=:
14262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14263   # is contrary to our usage.  Disable this feature.
14264   alias -g '${1+"$@"}'='"$@"'
14265   setopt NO_GLOB_SUBST
14266 else
14267   case `(set -o) 2>/dev/null` in #(
14268   *posix*) :
14269     set -o posix ;; #(
14270   *) :
14271      ;;
14272 esac
14273 fi
14274
14275
14276 as_nl='
14277 '
14278 export as_nl
14279 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14280 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14282 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14283 # Prefer a ksh shell builtin over an external printf program on Solaris,
14284 # but without wasting forks for bash or zsh.
14285 if test -z "$BASH_VERSION$ZSH_VERSION" \
14286     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14287   as_echo='print -r --'
14288   as_echo_n='print -rn --'
14289 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14290   as_echo='printf %s\n'
14291   as_echo_n='printf %s'
14292 else
14293   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14294     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14295     as_echo_n='/usr/ucb/echo -n'
14296   else
14297     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14298     as_echo_n_body='eval
14299       arg=$1;
14300       case $arg in #(
14301       *"$as_nl"*)
14302         expr "X$arg" : "X\\(.*\\)$as_nl";
14303         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14304       esac;
14305       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14306     '
14307     export as_echo_n_body
14308     as_echo_n='sh -c $as_echo_n_body as_echo'
14309   fi
14310   export as_echo_body
14311   as_echo='sh -c $as_echo_body as_echo'
14312 fi
14313
14314 # The user is always right.
14315 if test "${PATH_SEPARATOR+set}" != set; then
14316   PATH_SEPARATOR=:
14317   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14318     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14319       PATH_SEPARATOR=';'
14320   }
14321 fi
14322
14323
14324 # IFS
14325 # We need space, tab and new line, in precisely that order.  Quoting is
14326 # there to prevent editors from complaining about space-tab.
14327 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14328 # splitting by setting IFS to empty value.)
14329 IFS=" ""        $as_nl"
14330
14331 # Find who we are.  Look in the path if we contain no directory separator.
14332 case $0 in #((
14333   *[\\/]* ) as_myself=$0 ;;
14334   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14336 do
14337   IFS=$as_save_IFS
14338   test -z "$as_dir" && as_dir=.
14339     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14340   done
14341 IFS=$as_save_IFS
14342
14343      ;;
14344 esac
14345 # We did not find ourselves, most probably we were run as `sh COMMAND'
14346 # in which case we are not to be found in the path.
14347 if test "x$as_myself" = x; then
14348   as_myself=$0
14349 fi
14350 if test ! -f "$as_myself"; then
14351   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14352   exit 1
14353 fi
14354
14355 # Unset variables that we do not need and which cause bugs (e.g. in
14356 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14357 # suppresses any "Segmentation fault" message there.  '((' could
14358 # trigger a bug in pdksh 5.2.14.
14359 for as_var in BASH_ENV ENV MAIL MAILPATH
14360 do eval test x\${$as_var+set} = xset \
14361   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14362 done
14363 PS1='$ '
14364 PS2='> '
14365 PS4='+ '
14366
14367 # NLS nuisances.
14368 LC_ALL=C
14369 export LC_ALL
14370 LANGUAGE=C
14371 export LANGUAGE
14372
14373 # CDPATH.
14374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14375
14376
14377 # as_fn_error ERROR [LINENO LOG_FD]
14378 # ---------------------------------
14379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14381 # script with status $?, using 1 if that was 0.
14382 as_fn_error ()
14383 {
14384   as_status=$?; test $as_status -eq 0 && as_status=1
14385   if test "$3"; then
14386     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14387     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14388   fi
14389   $as_echo "$as_me: error: $1" >&2
14390   as_fn_exit $as_status
14391 } # as_fn_error
14392
14393
14394 # as_fn_set_status STATUS
14395 # -----------------------
14396 # Set $? to STATUS, without forking.
14397 as_fn_set_status ()
14398 {
14399   return $1
14400 } # as_fn_set_status
14401
14402 # as_fn_exit STATUS
14403 # -----------------
14404 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14405 as_fn_exit ()
14406 {
14407   set +e
14408   as_fn_set_status $1
14409   exit $1
14410 } # as_fn_exit
14411
14412 # as_fn_unset VAR
14413 # ---------------
14414 # Portably unset VAR.
14415 as_fn_unset ()
14416 {
14417   { eval $1=; unset $1;}
14418 }
14419 as_unset=as_fn_unset
14420 # as_fn_append VAR VALUE
14421 # ----------------------
14422 # Append the text in VALUE to the end of the definition contained in VAR. Take
14423 # advantage of any shell optimizations that allow amortized linear growth over
14424 # repeated appends, instead of the typical quadratic growth present in naive
14425 # implementations.
14426 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14427   eval 'as_fn_append ()
14428   {
14429     eval $1+=\$2
14430   }'
14431 else
14432   as_fn_append ()
14433   {
14434     eval $1=\$$1\$2
14435   }
14436 fi # as_fn_append
14437
14438 # as_fn_arith ARG...
14439 # ------------------
14440 # Perform arithmetic evaluation on the ARGs, and store the result in the
14441 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14442 # must be portable across $(()) and expr.
14443 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14444   eval 'as_fn_arith ()
14445   {
14446     as_val=$(( $* ))
14447   }'
14448 else
14449   as_fn_arith ()
14450   {
14451     as_val=`expr "$@" || test $? -eq 1`
14452   }
14453 fi # as_fn_arith
14454
14455
14456 if expr a : '\(a\)' >/dev/null 2>&1 &&
14457    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14458   as_expr=expr
14459 else
14460   as_expr=false
14461 fi
14462
14463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14464   as_basename=basename
14465 else
14466   as_basename=false
14467 fi
14468
14469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14470   as_dirname=dirname
14471 else
14472   as_dirname=false
14473 fi
14474
14475 as_me=`$as_basename -- "$0" ||
14476 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14477          X"$0" : 'X\(//\)$' \| \
14478          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14479 $as_echo X/"$0" |
14480     sed '/^.*\/\([^/][^/]*\)\/*$/{
14481             s//\1/
14482             q
14483           }
14484           /^X\/\(\/\/\)$/{
14485             s//\1/
14486             q
14487           }
14488           /^X\/\(\/\).*/{
14489             s//\1/
14490             q
14491           }
14492           s/.*/./; q'`
14493
14494 # Avoid depending upon Character Ranges.
14495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14498 as_cr_digits='0123456789'
14499 as_cr_alnum=$as_cr_Letters$as_cr_digits
14500
14501 ECHO_C= ECHO_N= ECHO_T=
14502 case `echo -n x` in #(((((
14503 -n*)
14504   case `echo 'xy\c'` in
14505   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14506   xy)  ECHO_C='\c';;
14507   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14508        ECHO_T=' ';;
14509   esac;;
14510 *)
14511   ECHO_N='-n';;
14512 esac
14513
14514 rm -f conf$$ conf$$.exe conf$$.file
14515 if test -d conf$$.dir; then
14516   rm -f conf$$.dir/conf$$.file
14517 else
14518   rm -f conf$$.dir
14519   mkdir conf$$.dir 2>/dev/null
14520 fi
14521 if (echo >conf$$.file) 2>/dev/null; then
14522   if ln -s conf$$.file conf$$ 2>/dev/null; then
14523     as_ln_s='ln -s'
14524     # ... but there are two gotchas:
14525     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14526     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14527     # In both cases, we have to default to `cp -p'.
14528     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14529       as_ln_s='cp -p'
14530   elif ln conf$$.file conf$$ 2>/dev/null; then
14531     as_ln_s=ln
14532   else
14533     as_ln_s='cp -p'
14534   fi
14535 else
14536   as_ln_s='cp -p'
14537 fi
14538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14539 rmdir conf$$.dir 2>/dev/null
14540
14541
14542 # as_fn_mkdir_p
14543 # -------------
14544 # Create "$as_dir" as a directory, including parents if necessary.
14545 as_fn_mkdir_p ()
14546 {
14547
14548   case $as_dir in #(
14549   -*) as_dir=./$as_dir;;
14550   esac
14551   test -d "$as_dir" || eval $as_mkdir_p || {
14552     as_dirs=
14553     while :; do
14554       case $as_dir in #(
14555       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14556       *) as_qdir=$as_dir;;
14557       esac
14558       as_dirs="'$as_qdir' $as_dirs"
14559       as_dir=`$as_dirname -- "$as_dir" ||
14560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561          X"$as_dir" : 'X\(//\)[^/]' \| \
14562          X"$as_dir" : 'X\(//\)$' \| \
14563          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14564 $as_echo X"$as_dir" |
14565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14566             s//\1/
14567             q
14568           }
14569           /^X\(\/\/\)[^/].*/{
14570             s//\1/
14571             q
14572           }
14573           /^X\(\/\/\)$/{
14574             s//\1/
14575             q
14576           }
14577           /^X\(\/\).*/{
14578             s//\1/
14579             q
14580           }
14581           s/.*/./; q'`
14582       test -d "$as_dir" && break
14583     done
14584     test -z "$as_dirs" || eval "mkdir $as_dirs"
14585   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14586
14587
14588 } # as_fn_mkdir_p
14589 if mkdir -p . 2>/dev/null; then
14590   as_mkdir_p='mkdir -p "$as_dir"'
14591 else
14592   test -d ./-p && rmdir ./-p
14593   as_mkdir_p=false
14594 fi
14595
14596 if test -x / >/dev/null 2>&1; then
14597   as_test_x='test -x'
14598 else
14599   if ls -dL / >/dev/null 2>&1; then
14600     as_ls_L_option=L
14601   else
14602     as_ls_L_option=
14603   fi
14604   as_test_x='
14605     eval sh -c '\''
14606       if test -d "$1"; then
14607         test -d "$1/.";
14608       else
14609         case $1 in #(
14610         -*)set "./$1";;
14611         esac;
14612         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14613         ???[sx]*):;;*)false;;esac;fi
14614     '\'' sh
14615   '
14616 fi
14617 as_executable_p=$as_test_x
14618
14619 # Sed expression to map a string onto a valid CPP name.
14620 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14621
14622 # Sed expression to map a string onto a valid variable name.
14623 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14624
14625
14626 exec 6>&1
14627 ## ----------------------------------- ##
14628 ## Main body of $CONFIG_STATUS script. ##
14629 ## ----------------------------------- ##
14630 _ASEOF
14631 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14632
14633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14634 # Save the log message, to keep $0 and so on meaningful, and to
14635 # report actual input values of CONFIG_FILES etc. instead of their
14636 # values after options handling.
14637 ac_log="
14638 This file was extended by package-unused $as_me version-unused, which was
14639 generated by GNU Autoconf 2.64.  Invocation command line was
14640
14641   CONFIG_FILES    = $CONFIG_FILES
14642   CONFIG_HEADERS  = $CONFIG_HEADERS
14643   CONFIG_LINKS    = $CONFIG_LINKS
14644   CONFIG_COMMANDS = $CONFIG_COMMANDS
14645   $ $0 $@
14646
14647 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14648 "
14649
14650 _ACEOF
14651
14652 case $ac_config_files in *"
14653 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14654 esac
14655
14656 case $ac_config_headers in *"
14657 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14658 esac
14659
14660
14661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14662 # Files that config.status was made for.
14663 config_files="$ac_config_files"
14664 config_headers="$ac_config_headers"
14665 config_commands="$ac_config_commands"
14666
14667 _ACEOF
14668
14669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14670 ac_cs_usage="\
14671 \`$as_me' instantiates files and other configuration actions
14672 from templates according to the current configuration.  Unless the files
14673 and actions are specified as TAGs, all are instantiated by default.
14674
14675 Usage: $0 [OPTION]... [TAG]...
14676
14677   -h, --help       print this help, then exit
14678   -V, --version    print version number and configuration settings, then exit
14679   -q, --quiet, --silent
14680                    do not print progress messages
14681   -d, --debug      don't remove temporary files
14682       --recheck    update $as_me by reconfiguring in the same conditions
14683       --file=FILE[:TEMPLATE]
14684                    instantiate the configuration file FILE
14685       --header=FILE[:TEMPLATE]
14686                    instantiate the configuration header FILE
14687
14688 Configuration files:
14689 $config_files
14690
14691 Configuration headers:
14692 $config_headers
14693
14694 Configuration commands:
14695 $config_commands
14696
14697 Report bugs to the package provider."
14698
14699 _ACEOF
14700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14701 ac_cs_version="\\
14702 package-unused config.status version-unused
14703 configured by $0, generated by GNU Autoconf 2.64,
14704   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14705
14706 Copyright (C) 2009 Free Software Foundation, Inc.
14707 This config.status script is free software; the Free Software Foundation
14708 gives unlimited permission to copy, distribute and modify it."
14709
14710 ac_pwd='$ac_pwd'
14711 srcdir='$srcdir'
14712 INSTALL='$INSTALL'
14713 MKDIR_P='$MKDIR_P'
14714 AWK='$AWK'
14715 test -n "\$AWK" || AWK=awk
14716 _ACEOF
14717
14718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14719 # The default lists apply if the user does not specify any file.
14720 ac_need_defaults=:
14721 while test $# != 0
14722 do
14723   case $1 in
14724   --*=*)
14725     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14726     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14727     ac_shift=:
14728     ;;
14729   *)
14730     ac_option=$1
14731     ac_optarg=$2
14732     ac_shift=shift
14733     ;;
14734   esac
14735
14736   case $ac_option in
14737   # Handling of the options.
14738   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14739     ac_cs_recheck=: ;;
14740   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14741     $as_echo "$ac_cs_version"; exit ;;
14742   --debug | --debu | --deb | --de | --d | -d )
14743     debug=: ;;
14744   --file | --fil | --fi | --f )
14745     $ac_shift
14746     case $ac_optarg in
14747     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14748     esac
14749     as_fn_append CONFIG_FILES " '$ac_optarg'"
14750     ac_need_defaults=false;;
14751   --header | --heade | --head | --hea )
14752     $ac_shift
14753     case $ac_optarg in
14754     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14755     esac
14756     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14757     ac_need_defaults=false;;
14758   --he | --h)
14759     # Conflict between --help and --header
14760     as_fn_error "ambiguous option: \`$1'
14761 Try \`$0 --help' for more information.";;
14762   --help | --hel | -h )
14763     $as_echo "$ac_cs_usage"; exit ;;
14764   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14765   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14766     ac_cs_silent=: ;;
14767
14768   # This is an error.
14769   -*) as_fn_error "unrecognized option: \`$1'
14770 Try \`$0 --help' for more information." ;;
14771
14772   *) as_fn_append ac_config_targets " $1"
14773      ac_need_defaults=false ;;
14774
14775   esac
14776   shift
14777 done
14778
14779 ac_configure_extra_args=
14780
14781 if $ac_cs_silent; then
14782   exec 6>/dev/null
14783   ac_configure_extra_args="$ac_configure_extra_args --silent"
14784 fi
14785
14786 _ACEOF
14787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14788 if \$ac_cs_recheck; then
14789   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14790   shift
14791   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14792   CONFIG_SHELL='$SHELL'
14793   export CONFIG_SHELL
14794   exec "\$@"
14795 fi
14796
14797 _ACEOF
14798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14799 exec 5>>config.log
14800 {
14801   echo
14802   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14803 ## Running $as_me. ##
14804 _ASBOX
14805   $as_echo "$ac_log"
14806 } >&5
14807
14808 _ACEOF
14809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14810 #
14811 # INIT-COMMANDS
14812 #
14813
14814 srcdir="$srcdir"
14815 host="$host"
14816 target="$target"
14817 with_multisubdir="$with_multisubdir"
14818 with_multisrctop="$with_multisrctop"
14819 with_target_subdir="$with_target_subdir"
14820 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14821 multi_basedir="$multi_basedir"
14822 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14823 CC="$CC"
14824 CXX="$CXX"
14825 GFORTRAN="$GFORTRAN"
14826 GCJ="$GCJ"
14827 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14828
14829
14830 # The HP-UX ksh and POSIX shell print the target directory to stdout
14831 # if CDPATH is set.
14832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14833
14834 sed_quote_subst='$sed_quote_subst'
14835 double_quote_subst='$double_quote_subst'
14836 delay_variable_subst='$delay_variable_subst'
14837 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14838 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14839 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14840 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14841 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14842 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14843 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14844 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14845 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14846 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14847 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14848 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14849 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14850 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14851 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14852 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14853 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14854 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14855 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14856 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14857 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14858 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14859 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14860 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14861 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14862 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14863 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14864 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14865 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14866 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14867 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14868 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14869 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14870 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14871 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14872 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14873 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14874 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14875 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14876 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14877 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14878 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14879 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14880 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14881 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14882 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14883 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14884 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14885 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"`'
14886 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14887 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14888 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14889 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14890 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14891 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14892 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14893 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14894 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14895 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14896 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14897 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14898 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14899 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14900 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14901 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14902 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14903 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14904 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14905 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14906 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14907 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14908 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14909 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14910 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14911 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14912 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14913 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14914 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14915 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14916 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14917 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14918 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14919 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14920 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14921 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14922 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14923 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14924 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14925 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14926 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14927 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14928 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14929 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14930 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14931 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14932 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14933 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14934 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14935 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14936 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14937 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14938 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14939 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14940 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14941 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14942 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14943 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14944 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14945 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14946 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14947 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14948 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14949 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14950 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14951 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14952 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14953 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14954 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14955 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14956 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14957 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
14958 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
14959 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
14960 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14961 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
14962 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
14963 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
14964 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
14965 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
14966 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
14967 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
14968 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
14969 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
14970 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14971 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14972 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
14973 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
14974 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
14975 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14976 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14977 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
14978 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14979 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
14980 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14981 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14982 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14983 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
14984 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
14985 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
14986 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
14987 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
14988 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
14989 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
14990 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
14991 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
14992 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
14993 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
14994 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
14995 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14996 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14997 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
14998 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
14999 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15000
15001 LTCC='$LTCC'
15002 LTCFLAGS='$LTCFLAGS'
15003 compiler='$compiler_DEFAULT'
15004
15005 # A function that is used when there is no print builtin or printf.
15006 func_fallback_echo ()
15007 {
15008   eval 'cat <<_LTECHO_EOF
15009 \$1
15010 _LTECHO_EOF'
15011 }
15012
15013 # Quote evaled strings.
15014 for var in SED \
15015 GREP \
15016 EGREP \
15017 FGREP \
15018 SHELL \
15019 ECHO \
15020 LD \
15021 NM \
15022 LN_S \
15023 lt_SP2NL \
15024 lt_NL2SP \
15025 reload_flag \
15026 OBJDUMP \
15027 deplibs_check_method \
15028 file_magic_cmd \
15029 AR \
15030 AR_FLAGS \
15031 STRIP \
15032 RANLIB \
15033 CC \
15034 CFLAGS \
15035 compiler \
15036 lt_cv_sys_global_symbol_pipe \
15037 lt_cv_sys_global_symbol_to_cdecl \
15038 lt_cv_sys_global_symbol_to_c_name_address \
15039 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15040 lt_prog_compiler_no_builtin_flag \
15041 lt_prog_compiler_wl \
15042 lt_prog_compiler_pic \
15043 lt_prog_compiler_static \
15044 lt_cv_prog_compiler_c_o \
15045 need_locks \
15046 DSYMUTIL \
15047 NMEDIT \
15048 LIPO \
15049 OTOOL \
15050 OTOOL64 \
15051 shrext_cmds \
15052 export_dynamic_flag_spec \
15053 whole_archive_flag_spec \
15054 compiler_needs_object \
15055 with_gnu_ld \
15056 allow_undefined_flag \
15057 no_undefined_flag \
15058 hardcode_libdir_flag_spec \
15059 hardcode_libdir_flag_spec_ld \
15060 hardcode_libdir_separator \
15061 fix_srcfile_path \
15062 exclude_expsyms \
15063 include_expsyms \
15064 file_list_spec \
15065 variables_saved_for_relink \
15066 libname_spec \
15067 library_names_spec \
15068 soname_spec \
15069 install_override_mode \
15070 finish_eval \
15071 old_striplib \
15072 striplib \
15073 LD_GO \
15074 reload_flag_GO \
15075 compiler_GO \
15076 lt_prog_compiler_no_builtin_flag_GO \
15077 lt_prog_compiler_wl_GO \
15078 lt_prog_compiler_pic_GO \
15079 lt_prog_compiler_static_GO \
15080 lt_cv_prog_compiler_c_o_GO \
15081 export_dynamic_flag_spec_GO \
15082 whole_archive_flag_spec_GO \
15083 compiler_needs_object_GO \
15084 with_gnu_ld_GO \
15085 allow_undefined_flag_GO \
15086 no_undefined_flag_GO \
15087 hardcode_libdir_flag_spec_GO \
15088 hardcode_libdir_flag_spec_ld_GO \
15089 hardcode_libdir_separator_GO \
15090 fix_srcfile_path_GO \
15091 exclude_expsyms_GO \
15092 include_expsyms_GO \
15093 file_list_spec_GO; do
15094     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15095     *[\\\\\\\`\\"\\\$]*)
15096       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15097       ;;
15098     *)
15099       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15100       ;;
15101     esac
15102 done
15103
15104 # Double-quote double-evaled strings.
15105 for var in reload_cmds \
15106 old_postinstall_cmds \
15107 old_postuninstall_cmds \
15108 old_archive_cmds \
15109 extract_expsyms_cmds \
15110 old_archive_from_new_cmds \
15111 old_archive_from_expsyms_cmds \
15112 archive_cmds \
15113 archive_expsym_cmds \
15114 module_cmds \
15115 module_expsym_cmds \
15116 export_symbols_cmds \
15117 prelink_cmds \
15118 postinstall_cmds \
15119 postuninstall_cmds \
15120 finish_cmds \
15121 sys_lib_search_path_spec \
15122 sys_lib_dlsearch_path_spec \
15123 reload_cmds_GO \
15124 old_archive_cmds_GO \
15125 old_archive_from_new_cmds_GO \
15126 old_archive_from_expsyms_cmds_GO \
15127 archive_cmds_GO \
15128 archive_expsym_cmds_GO \
15129 module_cmds_GO \
15130 module_expsym_cmds_GO \
15131 export_symbols_cmds_GO \
15132 prelink_cmds_GO; do
15133     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15134     *[\\\\\\\`\\"\\\$]*)
15135       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15136       ;;
15137     *)
15138       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15139       ;;
15140     esac
15141 done
15142
15143 ac_aux_dir='$ac_aux_dir'
15144 xsi_shell='$xsi_shell'
15145 lt_shell_append='$lt_shell_append'
15146
15147 # See if we are running on zsh, and set the options which allow our
15148 # commands through without removal of \ escapes INIT.
15149 if test -n "\${ZSH_VERSION+set}" ; then
15150    setopt NO_GLOB_SUBST
15151 fi
15152
15153
15154     PACKAGE='$PACKAGE'
15155     VERSION='$VERSION'
15156     TIMESTAMP='$TIMESTAMP'
15157     RM='$RM'
15158     ofile='$ofile'
15159
15160
15161
15162
15163
15164
15165 # Variables needed in config.status (file generation) which aren't already
15166 # passed by autoconf.
15167 SUBDIRS="$SUBDIRS"
15168
15169
15170 _ACEOF
15171
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173
15174 # Handling of arguments.
15175 for ac_config_target in $ac_config_targets
15176 do
15177   case $ac_config_target in
15178     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15179     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15180     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15181     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15182     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15183     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15184     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15185
15186   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15187   esac
15188 done
15189
15190
15191 # If the user did not use the arguments to specify the items to instantiate,
15192 # then the envvar interface is used.  Set only those that are not.
15193 # We use the long form for the default assignment because of an extremely
15194 # bizarre bug on SunOS 4.1.3.
15195 if $ac_need_defaults; then
15196   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15197   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15198   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15199 fi
15200
15201 # Have a temporary directory for convenience.  Make it in the build tree
15202 # simply because there is no reason against having it here, and in addition,
15203 # creating and moving files from /tmp can sometimes cause problems.
15204 # Hook for its removal unless debugging.
15205 # Note that there is a small window in which the directory will not be cleaned:
15206 # after its creation but before its name has been assigned to `$tmp'.
15207 $debug ||
15208 {
15209   tmp=
15210   trap 'exit_status=$?
15211   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15212 ' 0
15213   trap 'as_fn_exit 1' 1 2 13 15
15214 }
15215 # Create a (secure) tmp directory for tmp files.
15216
15217 {
15218   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15219   test -n "$tmp" && test -d "$tmp"
15220 }  ||
15221 {
15222   tmp=./conf$$-$RANDOM
15223   (umask 077 && mkdir "$tmp")
15224 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15225
15226 # Set up the scripts for CONFIG_FILES section.
15227 # No need to generate them if there are no CONFIG_FILES.
15228 # This happens for instance with `./config.status config.h'.
15229 if test -n "$CONFIG_FILES"; then
15230
15231
15232 ac_cr=`echo X | tr X '\015'`
15233 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15234 # But we know of no other shell where ac_cr would be empty at this
15235 # point, so we can use a bashism as a fallback.
15236 if test "x$ac_cr" = x; then
15237   eval ac_cr=\$\'\\r\'
15238 fi
15239 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15240 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15241   ac_cs_awk_cr='\r'
15242 else
15243   ac_cs_awk_cr=$ac_cr
15244 fi
15245
15246 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15247 _ACEOF
15248
15249
15250 {
15251   echo "cat >conf$$subs.awk <<_ACEOF" &&
15252   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15253   echo "_ACEOF"
15254 } >conf$$subs.sh ||
15255   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15256 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15257 ac_delim='%!_!# '
15258 for ac_last_try in false false false false false :; do
15259   . ./conf$$subs.sh ||
15260     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15261
15262   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15263   if test $ac_delim_n = $ac_delim_num; then
15264     break
15265   elif $ac_last_try; then
15266     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15267   else
15268     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15269   fi
15270 done
15271 rm -f conf$$subs.sh
15272
15273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15275 _ACEOF
15276 sed -n '
15277 h
15278 s/^/S["/; s/!.*/"]=/
15279 p
15280 g
15281 s/^[^!]*!//
15282 :repl
15283 t repl
15284 s/'"$ac_delim"'$//
15285 t delim
15286 :nl
15287 h
15288 s/\(.\{148\}\).*/\1/
15289 t more1
15290 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15291 p
15292 n
15293 b repl
15294 :more1
15295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15296 p
15297 g
15298 s/.\{148\}//
15299 t nl
15300 :delim
15301 h
15302 s/\(.\{148\}\).*/\1/
15303 t more2
15304 s/["\\]/\\&/g; s/^/"/; s/$/"/
15305 p
15306 b
15307 :more2
15308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15309 p
15310 g
15311 s/.\{148\}//
15312 t delim
15313 ' <conf$$subs.awk | sed '
15314 /^[^""]/{
15315   N
15316   s/\n//
15317 }
15318 ' >>$CONFIG_STATUS || ac_write_fail=1
15319 rm -f conf$$subs.awk
15320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321 _ACAWK
15322 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15323   for (key in S) S_is_set[key] = 1
15324   FS = "\a"
15325
15326 }
15327 {
15328   line = $ 0
15329   nfields = split(line, field, "@")
15330   substed = 0
15331   len = length(field[1])
15332   for (i = 2; i < nfields; i++) {
15333     key = field[i]
15334     keylen = length(key)
15335     if (S_is_set[key]) {
15336       value = S[key]
15337       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15338       len += length(value) + length(field[++i])
15339       substed = 1
15340     } else
15341       len += 1 + keylen
15342   }
15343
15344   print line
15345 }
15346
15347 _ACAWK
15348 _ACEOF
15349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15350 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15351   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15352 else
15353   cat
15354 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15355   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15356 _ACEOF
15357
15358 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15359 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15360 # trailing colons and then remove the whole line if VPATH becomes empty
15361 # (actually we leave an empty line to preserve line numbers).
15362 if test "x$srcdir" = x.; then
15363   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15364 s/:*\$(srcdir):*/:/
15365 s/:*\${srcdir}:*/:/
15366 s/:*@srcdir@:*/:/
15367 s/^\([^=]*=[     ]*\):*/\1/
15368 s/:*$//
15369 s/^[^=]*=[       ]*$//
15370 }'
15371 fi
15372
15373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15374 fi # test -n "$CONFIG_FILES"
15375
15376 # Set up the scripts for CONFIG_HEADERS section.
15377 # No need to generate them if there are no CONFIG_HEADERS.
15378 # This happens for instance with `./config.status Makefile'.
15379 if test -n "$CONFIG_HEADERS"; then
15380 cat >"$tmp/defines.awk" <<\_ACAWK ||
15381 BEGIN {
15382 _ACEOF
15383
15384 # Transform confdefs.h into an awk script `defines.awk', embedded as
15385 # here-document in config.status, that substitutes the proper values into
15386 # config.h.in to produce config.h.
15387
15388 # Create a delimiter string that does not exist in confdefs.h, to ease
15389 # handling of long lines.
15390 ac_delim='%!_!# '
15391 for ac_last_try in false false :; do
15392   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15393   if test -z "$ac_t"; then
15394     break
15395   elif $ac_last_try; then
15396     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15397   else
15398     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15399   fi
15400 done
15401
15402 # For the awk script, D is an array of macro values keyed by name,
15403 # likewise P contains macro parameters if any.  Preserve backslash
15404 # newline sequences.
15405
15406 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15407 sed -n '
15408 s/.\{148\}/&'"$ac_delim"'/g
15409 t rset
15410 :rset
15411 s/^[     ]*#[    ]*define[       ][      ]*/ /
15412 t def
15413 d
15414 :def
15415 s/\\$//
15416 t bsnl
15417 s/["\\]/\\&/g
15418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15419 D["\1"]=" \3"/p
15420 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15421 d
15422 :bsnl
15423 s/["\\]/\\&/g
15424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15425 D["\1"]=" \3\\\\\\n"\\/p
15426 t cont
15427 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15428 t cont
15429 d
15430 :cont
15431 n
15432 s/.\{148\}/&'"$ac_delim"'/g
15433 t clear
15434 :clear
15435 s/\\$//
15436 t bsnlc
15437 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15438 d
15439 :bsnlc
15440 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15441 b cont
15442 ' <confdefs.h | sed '
15443 s/'"$ac_delim"'/"\\\
15444 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15445
15446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15447   for (key in D) D_is_set[key] = 1
15448   FS = "\a"
15449 }
15450 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15451   line = \$ 0
15452   split(line, arg, " ")
15453   if (arg[1] == "#") {
15454     defundef = arg[2]
15455     mac1 = arg[3]
15456   } else {
15457     defundef = substr(arg[1], 2)
15458     mac1 = arg[2]
15459   }
15460   split(mac1, mac2, "(") #)
15461   macro = mac2[1]
15462   prefix = substr(line, 1, index(line, defundef) - 1)
15463   if (D_is_set[macro]) {
15464     # Preserve the white space surrounding the "#".
15465     print prefix "define", macro P[macro] D[macro]
15466     next
15467   } else {
15468     # Replace #undef with comments.  This is necessary, for example,
15469     # in the case of _POSIX_SOURCE, which is predefined and required
15470     # on some systems where configure will not decide to define it.
15471     if (defundef == "undef") {
15472       print "/*", prefix defundef, macro, "*/"
15473       next
15474     }
15475   }
15476 }
15477 { print }
15478 _ACAWK
15479 _ACEOF
15480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15481   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15482 fi # test -n "$CONFIG_HEADERS"
15483
15484
15485 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15486 shift
15487 for ac_tag
15488 do
15489   case $ac_tag in
15490   :[FHLC]) ac_mode=$ac_tag; continue;;
15491   esac
15492   case $ac_mode$ac_tag in
15493   :[FHL]*:*);;
15494   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15495   :[FH]-) ac_tag=-:-;;
15496   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15497   esac
15498   ac_save_IFS=$IFS
15499   IFS=:
15500   set x $ac_tag
15501   IFS=$ac_save_IFS
15502   shift
15503   ac_file=$1
15504   shift
15505
15506   case $ac_mode in
15507   :L) ac_source=$1;;
15508   :[FH])
15509     ac_file_inputs=
15510     for ac_f
15511     do
15512       case $ac_f in
15513       -) ac_f="$tmp/stdin";;
15514       *) # Look for the file first in the build tree, then in the source tree
15515          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15516          # because $ac_f cannot contain `:'.
15517          test -f "$ac_f" ||
15518            case $ac_f in
15519            [\\/$]*) false;;
15520            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15521            esac ||
15522            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15523       esac
15524       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15525       as_fn_append ac_file_inputs " '$ac_f'"
15526     done
15527
15528     # Let's still pretend it is `configure' which instantiates (i.e., don't
15529     # use $as_me), people would be surprised to read:
15530     #    /* config.h.  Generated by config.status.  */
15531     configure_input='Generated from '`
15532           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15533         `' by configure.'
15534     if test x"$ac_file" != x-; then
15535       configure_input="$ac_file.  $configure_input"
15536       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15537 $as_echo "$as_me: creating $ac_file" >&6;}
15538     fi
15539     # Neutralize special characters interpreted by sed in replacement strings.
15540     case $configure_input in #(
15541     *\&* | *\|* | *\\* )
15542        ac_sed_conf_input=`$as_echo "$configure_input" |
15543        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15544     *) ac_sed_conf_input=$configure_input;;
15545     esac
15546
15547     case $ac_tag in
15548     *:-:* | *:-) cat >"$tmp/stdin" \
15549       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15550     esac
15551     ;;
15552   esac
15553
15554   ac_dir=`$as_dirname -- "$ac_file" ||
15555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15556          X"$ac_file" : 'X\(//\)[^/]' \| \
15557          X"$ac_file" : 'X\(//\)$' \| \
15558          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15559 $as_echo X"$ac_file" |
15560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15561             s//\1/
15562             q
15563           }
15564           /^X\(\/\/\)[^/].*/{
15565             s//\1/
15566             q
15567           }
15568           /^X\(\/\/\)$/{
15569             s//\1/
15570             q
15571           }
15572           /^X\(\/\).*/{
15573             s//\1/
15574             q
15575           }
15576           s/.*/./; q'`
15577   as_dir="$ac_dir"; as_fn_mkdir_p
15578   ac_builddir=.
15579
15580 case "$ac_dir" in
15581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15582 *)
15583   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15584   # A ".." for each directory in $ac_dir_suffix.
15585   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15586   case $ac_top_builddir_sub in
15587   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15588   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15589   esac ;;
15590 esac
15591 ac_abs_top_builddir=$ac_pwd
15592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15593 # for backward compatibility:
15594 ac_top_builddir=$ac_top_build_prefix
15595
15596 case $srcdir in
15597   .)  # We are building in place.
15598     ac_srcdir=.
15599     ac_top_srcdir=$ac_top_builddir_sub
15600     ac_abs_top_srcdir=$ac_pwd ;;
15601   [\\/]* | ?:[\\/]* )  # Absolute name.
15602     ac_srcdir=$srcdir$ac_dir_suffix;
15603     ac_top_srcdir=$srcdir
15604     ac_abs_top_srcdir=$srcdir ;;
15605   *) # Relative name.
15606     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15607     ac_top_srcdir=$ac_top_build_prefix$srcdir
15608     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15609 esac
15610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15611
15612
15613   case $ac_mode in
15614   :F)
15615   #
15616   # CONFIG_FILE
15617   #
15618
15619   case $INSTALL in
15620   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15621   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15622   esac
15623   ac_MKDIR_P=$MKDIR_P
15624   case $MKDIR_P in
15625   [\\/$]* | ?:[\\/]* ) ;;
15626   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15627   esac
15628 _ACEOF
15629
15630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15631 # If the template does not know about datarootdir, expand it.
15632 # FIXME: This hack should be removed a few years after 2.60.
15633 ac_datarootdir_hack=; ac_datarootdir_seen=
15634 ac_sed_dataroot='
15635 /datarootdir/ {
15636   p
15637   q
15638 }
15639 /@datadir@/p
15640 /@docdir@/p
15641 /@infodir@/p
15642 /@localedir@/p
15643 /@mandir@/p'
15644 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15645 *datarootdir*) ac_datarootdir_seen=yes;;
15646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15647   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15648 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15649 _ACEOF
15650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15651   ac_datarootdir_hack='
15652   s&@datadir@&$datadir&g
15653   s&@docdir@&$docdir&g
15654   s&@infodir@&$infodir&g
15655   s&@localedir@&$localedir&g
15656   s&@mandir@&$mandir&g
15657   s&\\\${datarootdir}&$datarootdir&g' ;;
15658 esac
15659 _ACEOF
15660
15661 # Neutralize VPATH when `$srcdir' = `.'.
15662 # Shell code in configure.ac might set extrasub.
15663 # FIXME: do we really want to maintain this feature?
15664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15665 ac_sed_extra="$ac_vpsub
15666 $extrasub
15667 _ACEOF
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15669 :t
15670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15671 s|@configure_input@|$ac_sed_conf_input|;t t
15672 s&@top_builddir@&$ac_top_builddir_sub&;t t
15673 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15674 s&@srcdir@&$ac_srcdir&;t t
15675 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15676 s&@top_srcdir@&$ac_top_srcdir&;t t
15677 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15678 s&@builddir@&$ac_builddir&;t t
15679 s&@abs_builddir@&$ac_abs_builddir&;t t
15680 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15681 s&@INSTALL@&$ac_INSTALL&;t t
15682 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15683 $ac_datarootdir_hack
15684 "
15685 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15686   || as_fn_error "could not create $ac_file" "$LINENO" 5
15687
15688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15689   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15690   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15691   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15692 which seems to be undefined.  Please make sure it is defined." >&5
15693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15694 which seems to be undefined.  Please make sure it is defined." >&2;}
15695
15696   rm -f "$tmp/stdin"
15697   case $ac_file in
15698   -) cat "$tmp/out" && rm -f "$tmp/out";;
15699   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15700   esac \
15701   || as_fn_error "could not create $ac_file" "$LINENO" 5
15702  ;;
15703   :H)
15704   #
15705   # CONFIG_HEADER
15706   #
15707   if test x"$ac_file" != x-; then
15708     {
15709       $as_echo "/* $configure_input  */" \
15710       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15711     } >"$tmp/config.h" \
15712       || as_fn_error "could not create $ac_file" "$LINENO" 5
15713     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15714       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15715 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15716     else
15717       rm -f "$ac_file"
15718       mv "$tmp/config.h" "$ac_file" \
15719         || as_fn_error "could not create $ac_file" "$LINENO" 5
15720     fi
15721   else
15722     $as_echo "/* $configure_input  */" \
15723       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15724       || as_fn_error "could not create -" "$LINENO" 5
15725   fi
15726 # Compute "$ac_file"'s index in $config_headers.
15727 _am_arg="$ac_file"
15728 _am_stamp_count=1
15729 for _am_header in $config_headers :; do
15730   case $_am_header in
15731     $_am_arg | $_am_arg:* )
15732       break ;;
15733     * )
15734       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15735   esac
15736 done
15737 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15738 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15739          X"$_am_arg" : 'X\(//\)[^/]' \| \
15740          X"$_am_arg" : 'X\(//\)$' \| \
15741          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15742 $as_echo X"$_am_arg" |
15743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15744             s//\1/
15745             q
15746           }
15747           /^X\(\/\/\)[^/].*/{
15748             s//\1/
15749             q
15750           }
15751           /^X\(\/\/\)$/{
15752             s//\1/
15753             q
15754           }
15755           /^X\(\/\).*/{
15756             s//\1/
15757             q
15758           }
15759           s/.*/./; q'`/stamp-h$_am_stamp_count
15760  ;;
15761
15762   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15763 $as_echo "$as_me: executing $ac_file commands" >&6;}
15764  ;;
15765   esac
15766
15767
15768   case $ac_file$ac_mode in
15769     "default-1":C)
15770 # Only add multilib support code if we just rebuilt the top-level
15771 # Makefile.
15772 case " $CONFIG_FILES " in
15773  *" Makefile "*)
15774    ac_file=Makefile . ${multi_basedir}/config-ml.in
15775    ;;
15776 esac ;;
15777     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15778   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15779   # are listed without --file.  Let's play safe and only enable the eval
15780   # if we detect the quoting.
15781   case $CONFIG_FILES in
15782   *\'*) eval set x "$CONFIG_FILES" ;;
15783   *)   set x $CONFIG_FILES ;;
15784   esac
15785   shift
15786   for mf
15787   do
15788     # Strip MF so we end up with the name of the file.
15789     mf=`echo "$mf" | sed -e 's/:.*$//'`
15790     # Check whether this is an Automake generated Makefile or not.
15791     # We used to match only the files named `Makefile.in', but
15792     # some people rename them; so instead we look at the file content.
15793     # Grep'ing the first line is not enough: some people post-process
15794     # each Makefile.in and add a new line on top of each file to say so.
15795     # Grep'ing the whole file is not good either: AIX grep has a line
15796     # limit of 2048, but all sed's we know have understand at least 4000.
15797     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15798       dirpart=`$as_dirname -- "$mf" ||
15799 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800          X"$mf" : 'X\(//\)[^/]' \| \
15801          X"$mf" : 'X\(//\)$' \| \
15802          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15803 $as_echo X"$mf" |
15804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15805             s//\1/
15806             q
15807           }
15808           /^X\(\/\/\)[^/].*/{
15809             s//\1/
15810             q
15811           }
15812           /^X\(\/\/\)$/{
15813             s//\1/
15814             q
15815           }
15816           /^X\(\/\).*/{
15817             s//\1/
15818             q
15819           }
15820           s/.*/./; q'`
15821     else
15822       continue
15823     fi
15824     # Extract the definition of DEPDIR, am__include, and am__quote
15825     # from the Makefile without running `make'.
15826     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15827     test -z "$DEPDIR" && continue
15828     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15829     test -z "am__include" && continue
15830     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15831     # When using ansi2knr, U may be empty or an underscore; expand it
15832     U=`sed -n 's/^U = //p' < "$mf"`
15833     # Find all dependency output files, they are included files with
15834     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15835     # simplest approach to changing $(DEPDIR) to its actual value in the
15836     # expansion.
15837     for file in `sed -n "
15838       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15839          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15840       # Make sure the directory exists.
15841       test -f "$dirpart/$file" && continue
15842       fdir=`$as_dirname -- "$file" ||
15843 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15844          X"$file" : 'X\(//\)[^/]' \| \
15845          X"$file" : 'X\(//\)$' \| \
15846          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15847 $as_echo X"$file" |
15848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15849             s//\1/
15850             q
15851           }
15852           /^X\(\/\/\)[^/].*/{
15853             s//\1/
15854             q
15855           }
15856           /^X\(\/\/\)$/{
15857             s//\1/
15858             q
15859           }
15860           /^X\(\/\).*/{
15861             s//\1/
15862             q
15863           }
15864           s/.*/./; q'`
15865       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15866       # echo "creating $dirpart/$file"
15867       echo '# dummy' > "$dirpart/$file"
15868     done
15869   done
15870 }
15871  ;;
15872     "libtool":C)
15873
15874     # See if we are running on zsh, and set the options which allow our
15875     # commands through without removal of \ escapes.
15876     if test -n "${ZSH_VERSION+set}" ; then
15877       setopt NO_GLOB_SUBST
15878     fi
15879
15880     cfgfile="${ofile}T"
15881     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15882     $RM "$cfgfile"
15883
15884     cat <<_LT_EOF >> "$cfgfile"
15885 #! $SHELL
15886
15887 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15888 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15891 #
15892 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15893 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15894 #   Written by Gordon Matzigkeit, 1996
15895 #
15896 #   This file is part of GNU Libtool.
15897 #
15898 # GNU Libtool is free software; you can redistribute it and/or
15899 # modify it under the terms of the GNU General Public License as
15900 # published by the Free Software Foundation; either version 2 of
15901 # the License, or (at your option) any later version.
15902 #
15903 # As a special exception to the GNU General Public License,
15904 # if you distribute this file as part of a program or library that
15905 # is built using GNU Libtool, you may include this file under the
15906 # same distribution terms that you use for the rest of that program.
15907 #
15908 # GNU Libtool is distributed in the hope that it will be useful,
15909 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15910 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15911 # GNU General Public License for more details.
15912 #
15913 # You should have received a copy of the GNU General Public License
15914 # along with GNU Libtool; see the file COPYING.  If not, a copy
15915 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15916 # obtained by writing to the Free Software Foundation, Inc.,
15917 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15918
15919
15920 # The names of the tagged configurations supported by this script.
15921 available_tags="GO "
15922
15923 # ### BEGIN LIBTOOL CONFIG
15924
15925 # A sed program that does not truncate output.
15926 SED=$lt_SED
15927
15928 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15929 Xsed="\$SED -e 1s/^X//"
15930
15931 # A grep program that handles long lines.
15932 GREP=$lt_GREP
15933
15934 # An ERE matcher.
15935 EGREP=$lt_EGREP
15936
15937 # A literal string matcher.
15938 FGREP=$lt_FGREP
15939
15940 # Shell to use when invoking shell scripts.
15941 SHELL=$lt_SHELL
15942
15943 # An echo program that protects backslashes.
15944 ECHO=$lt_ECHO
15945
15946 # Which release of libtool.m4 was used?
15947 macro_version=$macro_version
15948 macro_revision=$macro_revision
15949
15950 # Whether or not to build shared libraries.
15951 build_libtool_libs=$enable_shared
15952
15953 # Whether or not to build static libraries.
15954 build_old_libs=$enable_static
15955
15956 # What type of objects to build.
15957 pic_mode=$pic_mode
15958
15959 # Whether or not to optimize for fast installation.
15960 fast_install=$enable_fast_install
15961
15962 # The host system.
15963 host_alias=$host_alias
15964 host=$host
15965 host_os=$host_os
15966
15967 # The build system.
15968 build_alias=$build_alias
15969 build=$build
15970 build_os=$build_os
15971
15972 # A BSD- or MS-compatible name lister.
15973 NM=$lt_NM
15974
15975 # Whether we need soft or hard links.
15976 LN_S=$lt_LN_S
15977
15978 # What is the maximum length of a command?
15979 max_cmd_len=$max_cmd_len
15980
15981 # Object file suffix (normally "o").
15982 objext=$ac_objext
15983
15984 # Executable file suffix (normally "").
15985 exeext=$exeext
15986
15987 # whether the shell understands "unset".
15988 lt_unset=$lt_unset
15989
15990 # turn spaces into newlines.
15991 SP2NL=$lt_lt_SP2NL
15992
15993 # turn newlines into spaces.
15994 NL2SP=$lt_lt_NL2SP
15995
15996 # An object symbol dumper.
15997 OBJDUMP=$lt_OBJDUMP
15998
15999 # Method to check whether dependent libraries are shared objects.
16000 deplibs_check_method=$lt_deplibs_check_method
16001
16002 # Command to use when deplibs_check_method == "file_magic".
16003 file_magic_cmd=$lt_file_magic_cmd
16004
16005 # The archiver.
16006 AR=$lt_AR
16007 AR_FLAGS=$lt_AR_FLAGS
16008
16009 # A symbol stripping program.
16010 STRIP=$lt_STRIP
16011
16012 # Commands used to install an old-style archive.
16013 RANLIB=$lt_RANLIB
16014 old_postinstall_cmds=$lt_old_postinstall_cmds
16015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16016
16017 # Whether to use a lock for old archive extraction.
16018 lock_old_archive_extraction=$lock_old_archive_extraction
16019
16020 # A C compiler.
16021 LTCC=$lt_CC
16022
16023 # LTCC compiler flags.
16024 LTCFLAGS=$lt_CFLAGS
16025
16026 # Take the output of nm and produce a listing of raw symbols and C names.
16027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16028
16029 # Transform the output of nm in a proper C declaration.
16030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16031
16032 # Transform the output of nm in a C name address pair.
16033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16034
16035 # Transform the output of nm in a C name address pair when lib prefix is needed.
16036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16037
16038 # The name of the directory that contains temporary libtool files.
16039 objdir=$objdir
16040
16041 # Used to examine libraries when file_magic_cmd begins with "file".
16042 MAGIC_CMD=$MAGIC_CMD
16043
16044 # Must we lock files when doing compilation?
16045 need_locks=$lt_need_locks
16046
16047 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16048 DSYMUTIL=$lt_DSYMUTIL
16049
16050 # Tool to change global to local symbols on Mac OS X.
16051 NMEDIT=$lt_NMEDIT
16052
16053 # Tool to manipulate fat objects and archives on Mac OS X.
16054 LIPO=$lt_LIPO
16055
16056 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16057 OTOOL=$lt_OTOOL
16058
16059 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16060 OTOOL64=$lt_OTOOL64
16061
16062 # Old archive suffix (normally "a").
16063 libext=$libext
16064
16065 # Shared library suffix (normally ".so").
16066 shrext_cmds=$lt_shrext_cmds
16067
16068 # The commands to extract the exported symbol list from a shared archive.
16069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16070
16071 # Variables whose values should be saved in libtool wrapper scripts and
16072 # restored at link time.
16073 variables_saved_for_relink=$lt_variables_saved_for_relink
16074
16075 # Do we need the "lib" prefix for modules?
16076 need_lib_prefix=$need_lib_prefix
16077
16078 # Do we need a version for libraries?
16079 need_version=$need_version
16080
16081 # Library versioning type.
16082 version_type=$version_type
16083
16084 # Shared library runtime path variable.
16085 runpath_var=$runpath_var
16086
16087 # Shared library path variable.
16088 shlibpath_var=$shlibpath_var
16089
16090 # Is shlibpath searched before the hard-coded library search path?
16091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16092
16093 # Format of library name prefix.
16094 libname_spec=$lt_libname_spec
16095
16096 # List of archive names.  First name is the real one, the rest are links.
16097 # The last name is the one that the linker finds with -lNAME
16098 library_names_spec=$lt_library_names_spec
16099
16100 # The coded name of the library, if different from the real name.
16101 soname_spec=$lt_soname_spec
16102
16103 # Permission mode override for installation of shared libraries.
16104 install_override_mode=$lt_install_override_mode
16105
16106 # Command to use after installation of a shared archive.
16107 postinstall_cmds=$lt_postinstall_cmds
16108
16109 # Command to use after uninstallation of a shared archive.
16110 postuninstall_cmds=$lt_postuninstall_cmds
16111
16112 # Commands used to finish a libtool library installation in a directory.
16113 finish_cmds=$lt_finish_cmds
16114
16115 # As "finish_cmds", except a single script fragment to be evaled but
16116 # not shown.
16117 finish_eval=$lt_finish_eval
16118
16119 # Whether we should hardcode library paths into libraries.
16120 hardcode_into_libs=$hardcode_into_libs
16121
16122 # Compile-time system search path for libraries.
16123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16124
16125 # Run-time system search path for libraries.
16126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16127
16128 # Whether dlopen is supported.
16129 dlopen_support=$enable_dlopen
16130
16131 # Whether dlopen of programs is supported.
16132 dlopen_self=$enable_dlopen_self
16133
16134 # Whether dlopen of statically linked programs is supported.
16135 dlopen_self_static=$enable_dlopen_self_static
16136
16137 # Commands to strip libraries.
16138 old_striplib=$lt_old_striplib
16139 striplib=$lt_striplib
16140
16141
16142 # The linker used to build libraries.
16143 LD=$lt_LD
16144
16145 # How to create reloadable object files.
16146 reload_flag=$lt_reload_flag
16147 reload_cmds=$lt_reload_cmds
16148
16149 # Commands used to build an old-style archive.
16150 old_archive_cmds=$lt_old_archive_cmds
16151
16152 # A language specific compiler.
16153 CC=$lt_compiler
16154
16155 # Is the compiler the GNU compiler?
16156 with_gcc=$GCC
16157
16158 # Compiler flag to turn off builtin functions.
16159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16160
16161 # How to pass a linker flag through the compiler.
16162 wl=$lt_lt_prog_compiler_wl
16163
16164 # Additional compiler flags for building library objects.
16165 pic_flag=$lt_lt_prog_compiler_pic
16166
16167 # Compiler flag to prevent dynamic linking.
16168 link_static_flag=$lt_lt_prog_compiler_static
16169
16170 # Does compiler simultaneously support -c and -o options?
16171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16172
16173 # Whether or not to add -lc for building shared libraries.
16174 build_libtool_need_lc=$archive_cmds_need_lc
16175
16176 # Whether or not to disallow shared libs when runtime libs are static.
16177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16178
16179 # Compiler flag to allow reflexive dlopens.
16180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16181
16182 # Compiler flag to generate shared objects directly from archives.
16183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16184
16185 # Whether the compiler copes with passing no objects directly.
16186 compiler_needs_object=$lt_compiler_needs_object
16187
16188 # Create an old-style archive from a shared archive.
16189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16190
16191 # Create a temporary old-style archive to link instead of a shared archive.
16192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16193
16194 # Commands used to build a shared archive.
16195 archive_cmds=$lt_archive_cmds
16196 archive_expsym_cmds=$lt_archive_expsym_cmds
16197
16198 # Commands used to build a loadable module if different from building
16199 # a shared archive.
16200 module_cmds=$lt_module_cmds
16201 module_expsym_cmds=$lt_module_expsym_cmds
16202
16203 # Whether we are building with GNU ld or not.
16204 with_gnu_ld=$lt_with_gnu_ld
16205
16206 # Flag that allows shared libraries with undefined symbols to be built.
16207 allow_undefined_flag=$lt_allow_undefined_flag
16208
16209 # Flag that enforces no undefined symbols.
16210 no_undefined_flag=$lt_no_undefined_flag
16211
16212 # Flag to hardcode \$libdir into a binary during linking.
16213 # This must work even if \$libdir does not exist
16214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16215
16216 # If ld is used when linking, flag to hardcode \$libdir into a binary
16217 # during linking.  This must work even if \$libdir does not exist.
16218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16219
16220 # Whether we need a single "-rpath" flag with a separated argument.
16221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16222
16223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16224 # DIR into the resulting binary.
16225 hardcode_direct=$hardcode_direct
16226
16227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16228 # DIR into the resulting binary and the resulting library dependency is
16229 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16230 # library is relocated.
16231 hardcode_direct_absolute=$hardcode_direct_absolute
16232
16233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16234 # into the resulting binary.
16235 hardcode_minus_L=$hardcode_minus_L
16236
16237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16238 # into the resulting binary.
16239 hardcode_shlibpath_var=$hardcode_shlibpath_var
16240
16241 # Set to "yes" if building a shared library automatically hardcodes DIR
16242 # into the library and all subsequent libraries and executables linked
16243 # against it.
16244 hardcode_automatic=$hardcode_automatic
16245
16246 # Set to yes if linker adds runtime paths of dependent libraries
16247 # to runtime path list.
16248 inherit_rpath=$inherit_rpath
16249
16250 # Whether libtool must link a program against all its dependency libraries.
16251 link_all_deplibs=$link_all_deplibs
16252
16253 # Fix the shell variable \$srcfile for the compiler.
16254 fix_srcfile_path=$lt_fix_srcfile_path
16255
16256 # Set to "yes" if exported symbols are required.
16257 always_export_symbols=$always_export_symbols
16258
16259 # The commands to list exported symbols.
16260 export_symbols_cmds=$lt_export_symbols_cmds
16261
16262 # Symbols that should not be listed in the preloaded symbols.
16263 exclude_expsyms=$lt_exclude_expsyms
16264
16265 # Symbols that must always be exported.
16266 include_expsyms=$lt_include_expsyms
16267
16268 # Commands necessary for linking programs (against libraries) with templates.
16269 prelink_cmds=$lt_prelink_cmds
16270
16271 # Specify filename containing input files.
16272 file_list_spec=$lt_file_list_spec
16273
16274 # How to hardcode a shared library path into an executable.
16275 hardcode_action=$hardcode_action
16276
16277 # ### END LIBTOOL CONFIG
16278
16279 _LT_EOF
16280
16281   case $host_os in
16282   aix3*)
16283     cat <<\_LT_EOF >> "$cfgfile"
16284 # AIX sometimes has problems with the GCC collect2 program.  For some
16285 # reason, if we set the COLLECT_NAMES environment variable, the problems
16286 # vanish in a puff of smoke.
16287 if test "X${COLLECT_NAMES+set}" != Xset; then
16288   COLLECT_NAMES=
16289   export COLLECT_NAMES
16290 fi
16291 _LT_EOF
16292     ;;
16293   esac
16294
16295
16296 ltmain="$ac_aux_dir/ltmain.sh"
16297
16298
16299   # We use sed instead of cat because bash on DJGPP gets confused if
16300   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16301   # text mode, it properly converts lines to CR/LF.  This bash problem
16302   # is reportedly fixed, but why not run on old versions too?
16303   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16304     || (rm -f "$cfgfile"; exit 1)
16305
16306   case $xsi_shell in
16307   yes)
16308     cat << \_LT_EOF >> "$cfgfile"
16309
16310 # func_dirname file append nondir_replacement
16311 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16312 # otherwise set result to NONDIR_REPLACEMENT.
16313 func_dirname ()
16314 {
16315   case ${1} in
16316     */*) func_dirname_result="${1%/*}${2}" ;;
16317     *  ) func_dirname_result="${3}" ;;
16318   esac
16319 }
16320
16321 # func_basename file
16322 func_basename ()
16323 {
16324   func_basename_result="${1##*/}"
16325 }
16326
16327 # func_dirname_and_basename file append nondir_replacement
16328 # perform func_basename and func_dirname in a single function
16329 # call:
16330 #   dirname:  Compute the dirname of FILE.  If nonempty,
16331 #             add APPEND to the result, otherwise set result
16332 #             to NONDIR_REPLACEMENT.
16333 #             value returned in "$func_dirname_result"
16334 #   basename: Compute filename of FILE.
16335 #             value retuned in "$func_basename_result"
16336 # Implementation must be kept synchronized with func_dirname
16337 # and func_basename. For efficiency, we do not delegate to
16338 # those functions but instead duplicate the functionality here.
16339 func_dirname_and_basename ()
16340 {
16341   case ${1} in
16342     */*) func_dirname_result="${1%/*}${2}" ;;
16343     *  ) func_dirname_result="${3}" ;;
16344   esac
16345   func_basename_result="${1##*/}"
16346 }
16347
16348 # func_stripname prefix suffix name
16349 # strip PREFIX and SUFFIX off of NAME.
16350 # PREFIX and SUFFIX must not contain globbing or regex special
16351 # characters, hashes, percent signs, but SUFFIX may contain a leading
16352 # dot (in which case that matches only a dot).
16353 func_stripname ()
16354 {
16355   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16356   # positional parameters, so assign one to ordinary parameter first.
16357   func_stripname_result=${3}
16358   func_stripname_result=${func_stripname_result#"${1}"}
16359   func_stripname_result=${func_stripname_result%"${2}"}
16360 }
16361
16362 # func_opt_split
16363 func_opt_split ()
16364 {
16365   func_opt_split_opt=${1%%=*}
16366   func_opt_split_arg=${1#*=}
16367 }
16368
16369 # func_lo2o object
16370 func_lo2o ()
16371 {
16372   case ${1} in
16373     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16374     *)    func_lo2o_result=${1} ;;
16375   esac
16376 }
16377
16378 # func_xform libobj-or-source
16379 func_xform ()
16380 {
16381   func_xform_result=${1%.*}.lo
16382 }
16383
16384 # func_arith arithmetic-term...
16385 func_arith ()
16386 {
16387   func_arith_result=$(( $* ))
16388 }
16389
16390 # func_len string
16391 # STRING may not start with a hyphen.
16392 func_len ()
16393 {
16394   func_len_result=${#1}
16395 }
16396
16397 _LT_EOF
16398     ;;
16399   *) # Bourne compatible functions.
16400     cat << \_LT_EOF >> "$cfgfile"
16401
16402 # func_dirname file append nondir_replacement
16403 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16404 # otherwise set result to NONDIR_REPLACEMENT.
16405 func_dirname ()
16406 {
16407   # Extract subdirectory from the argument.
16408   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16409   if test "X$func_dirname_result" = "X${1}"; then
16410     func_dirname_result="${3}"
16411   else
16412     func_dirname_result="$func_dirname_result${2}"
16413   fi
16414 }
16415
16416 # func_basename file
16417 func_basename ()
16418 {
16419   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16420 }
16421
16422
16423 # func_stripname prefix suffix name
16424 # strip PREFIX and SUFFIX off of NAME.
16425 # PREFIX and SUFFIX must not contain globbing or regex special
16426 # characters, hashes, percent signs, but SUFFIX may contain a leading
16427 # dot (in which case that matches only a dot).
16428 # func_strip_suffix prefix name
16429 func_stripname ()
16430 {
16431   case ${2} in
16432     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16433     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16434   esac
16435 }
16436
16437 # sed scripts:
16438 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16439 my_sed_long_arg='1s/^-[^=]*=//'
16440
16441 # func_opt_split
16442 func_opt_split ()
16443 {
16444   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16445   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16446 }
16447
16448 # func_lo2o object
16449 func_lo2o ()
16450 {
16451   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16452 }
16453
16454 # func_xform libobj-or-source
16455 func_xform ()
16456 {
16457   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16458 }
16459
16460 # func_arith arithmetic-term...
16461 func_arith ()
16462 {
16463   func_arith_result=`expr "$@"`
16464 }
16465
16466 # func_len string
16467 # STRING may not start with a hyphen.
16468 func_len ()
16469 {
16470   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16471 }
16472
16473 _LT_EOF
16474 esac
16475
16476 case $lt_shell_append in
16477   yes)
16478     cat << \_LT_EOF >> "$cfgfile"
16479
16480 # func_append var value
16481 # Append VALUE to the end of shell variable VAR.
16482 func_append ()
16483 {
16484   eval "$1+=\$2"
16485 }
16486 _LT_EOF
16487     ;;
16488   *)
16489     cat << \_LT_EOF >> "$cfgfile"
16490
16491 # func_append var value
16492 # Append VALUE to the end of shell variable VAR.
16493 func_append ()
16494 {
16495   eval "$1=\$$1\$2"
16496 }
16497
16498 _LT_EOF
16499     ;;
16500   esac
16501
16502
16503   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16504     || (rm -f "$cfgfile"; exit 1)
16505
16506   mv -f "$cfgfile" "$ofile" ||
16507     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16508   chmod +x "$ofile"
16509
16510
16511     cat <<_LT_EOF >> "$ofile"
16512
16513 # ### BEGIN LIBTOOL TAG CONFIG: GO
16514
16515 # The linker used to build libraries.
16516 LD=$lt_LD_GO
16517
16518 # How to create reloadable object files.
16519 reload_flag=$lt_reload_flag_GO
16520 reload_cmds=$lt_reload_cmds_GO
16521
16522 # Commands used to build an old-style archive.
16523 old_archive_cmds=$lt_old_archive_cmds_GO
16524
16525 # A language specific compiler.
16526 CC=$lt_compiler_GO
16527
16528 # Is the compiler the GNU compiler?
16529 with_gcc=$GCC_GO
16530
16531 # Compiler flag to turn off builtin functions.
16532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16533
16534 # How to pass a linker flag through the compiler.
16535 wl=$lt_lt_prog_compiler_wl_GO
16536
16537 # Additional compiler flags for building library objects.
16538 pic_flag=$lt_lt_prog_compiler_pic_GO
16539
16540 # Compiler flag to prevent dynamic linking.
16541 link_static_flag=$lt_lt_prog_compiler_static_GO
16542
16543 # Does compiler simultaneously support -c and -o options?
16544 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16545
16546 # Whether or not to add -lc for building shared libraries.
16547 build_libtool_need_lc=$archive_cmds_need_lc_GO
16548
16549 # Whether or not to disallow shared libs when runtime libs are static.
16550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16551
16552 # Compiler flag to allow reflexive dlopens.
16553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16554
16555 # Compiler flag to generate shared objects directly from archives.
16556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16557
16558 # Whether the compiler copes with passing no objects directly.
16559 compiler_needs_object=$lt_compiler_needs_object_GO
16560
16561 # Create an old-style archive from a shared archive.
16562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16563
16564 # Create a temporary old-style archive to link instead of a shared archive.
16565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16566
16567 # Commands used to build a shared archive.
16568 archive_cmds=$lt_archive_cmds_GO
16569 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16570
16571 # Commands used to build a loadable module if different from building
16572 # a shared archive.
16573 module_cmds=$lt_module_cmds_GO
16574 module_expsym_cmds=$lt_module_expsym_cmds_GO
16575
16576 # Whether we are building with GNU ld or not.
16577 with_gnu_ld=$lt_with_gnu_ld_GO
16578
16579 # Flag that allows shared libraries with undefined symbols to be built.
16580 allow_undefined_flag=$lt_allow_undefined_flag_GO
16581
16582 # Flag that enforces no undefined symbols.
16583 no_undefined_flag=$lt_no_undefined_flag_GO
16584
16585 # Flag to hardcode \$libdir into a binary during linking.
16586 # This must work even if \$libdir does not exist
16587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16588
16589 # If ld is used when linking, flag to hardcode \$libdir into a binary
16590 # during linking.  This must work even if \$libdir does not exist.
16591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16592
16593 # Whether we need a single "-rpath" flag with a separated argument.
16594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16595
16596 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16597 # DIR into the resulting binary.
16598 hardcode_direct=$hardcode_direct_GO
16599
16600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16601 # DIR into the resulting binary and the resulting library dependency is
16602 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16603 # library is relocated.
16604 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16605
16606 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16607 # into the resulting binary.
16608 hardcode_minus_L=$hardcode_minus_L_GO
16609
16610 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16611 # into the resulting binary.
16612 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16613
16614 # Set to "yes" if building a shared library automatically hardcodes DIR
16615 # into the library and all subsequent libraries and executables linked
16616 # against it.
16617 hardcode_automatic=$hardcode_automatic_GO
16618
16619 # Set to yes if linker adds runtime paths of dependent libraries
16620 # to runtime path list.
16621 inherit_rpath=$inherit_rpath_GO
16622
16623 # Whether libtool must link a program against all its dependency libraries.
16624 link_all_deplibs=$link_all_deplibs_GO
16625
16626 # Fix the shell variable \$srcfile for the compiler.
16627 fix_srcfile_path=$lt_fix_srcfile_path_GO
16628
16629 # Set to "yes" if exported symbols are required.
16630 always_export_symbols=$always_export_symbols_GO
16631
16632 # The commands to list exported symbols.
16633 export_symbols_cmds=$lt_export_symbols_cmds_GO
16634
16635 # Symbols that should not be listed in the preloaded symbols.
16636 exclude_expsyms=$lt_exclude_expsyms_GO
16637
16638 # Symbols that must always be exported.
16639 include_expsyms=$lt_include_expsyms_GO
16640
16641 # Commands necessary for linking programs (against libraries) with templates.
16642 prelink_cmds=$lt_prelink_cmds_GO
16643
16644 # Specify filename containing input files.
16645 file_list_spec=$lt_file_list_spec_GO
16646
16647 # How to hardcode a shared library path into an executable.
16648 hardcode_action=$hardcode_action_GO
16649
16650 # ### END LIBTOOL TAG CONFIG: GO
16651 _LT_EOF
16652
16653  ;;
16654     "default":C) if test -n "$CONFIG_FILES"; then
16655    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16656    # that multilib installs will end up installed in the correct place.
16657    # The testsuite needs it for multilib-aware ABI baseline files.
16658    # To work around this not being passed down from config-ml.in ->
16659    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16660    # append it here.  Only modify Makefiles that have just been created.
16661    #
16662    # Also, get rid of this simulated-VPATH thing that automake does.
16663    cat > vpsed << \_EOF
16664 s!`test -f '$<' || echo '$(srcdir)/'`!!
16665 _EOF
16666    for i in $SUBDIRS; do
16667     case $CONFIG_FILES in
16668      *${i}/Makefile*)
16669        #echo "Adding MULTISUBDIR to $i/Makefile"
16670        sed -f vpsed $i/Makefile > tmp
16671        grep '^MULTISUBDIR =' Makefile >> tmp
16672        mv tmp $i/Makefile
16673        ;;
16674     esac
16675    done
16676    rm vpsed
16677  fi
16678  ;;
16679
16680   esac
16681 done # for ac_tag
16682
16683
16684 as_fn_exit 0
16685 _ACEOF
16686 ac_clean_files=$ac_clean_files_save
16687
16688 test $ac_write_fail = 0 ||
16689   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16690
16691
16692 # configure is writing to config.log, and then calls config.status.
16693 # config.status does its own redirection, appending to config.log.
16694 # Unfortunately, on DOS this fails, as config.log is still kept open
16695 # by configure, so config.status won't be able to write to it; its
16696 # output is simply discarded.  So we exec the FD to /dev/null,
16697 # effectively closing config.log, so it can be properly (re)opened and
16698 # appended to by config.status.  When coming back to configure, we
16699 # need to make the FD available again.
16700 if test "$no_create" != yes; then
16701   ac_cs_success=:
16702   ac_config_status_args=
16703   test "$silent" = yes &&
16704     ac_config_status_args="$ac_config_status_args --quiet"
16705   exec 5>/dev/null
16706   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16707   exec 5>>config.log
16708   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16709   # would make configure fail if this is the last instruction.
16710   $ac_cs_success || as_fn_exit $?
16711 fi
16712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16713   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16715 fi
16716