OSDN Git Service

runtime: Support broken makecontext on Solaris 8/9.
[pf3gnuchains/gcc-fork.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 USING_SPLIT_STACK_FALSE
620 USING_SPLIT_STACK_TRUE
621 SPLIT_STACK
622 OSCFLAGS
623 GO_SYSCALL_OS_ARCH_FILE
624 GO_SYSCALL_OS_FILE
625 GO_LIBCALL_OS_ARCH_FILE
626 GO_LIBCALL_OS_FILE
627 GOARCH
628 LIBGO_IS_X86_64_FALSE
629 LIBGO_IS_X86_64_TRUE
630 LIBGO_IS_SPARC64_FALSE
631 LIBGO_IS_SPARC64_TRUE
632 LIBGO_IS_SPARC_FALSE
633 LIBGO_IS_SPARC_TRUE
634 LIBGO_IS_PPC64_FALSE
635 LIBGO_IS_PPC64_TRUE
636 LIBGO_IS_PPC_FALSE
637 LIBGO_IS_PPC_TRUE
638 LIBGO_IS_MIPSO64_FALSE
639 LIBGO_IS_MIPSO64_TRUE
640 LIBGO_IS_MIPSN64_FALSE
641 LIBGO_IS_MIPSN64_TRUE
642 LIBGO_IS_MIPSN32_FALSE
643 LIBGO_IS_MIPSN32_TRUE
644 LIBGO_IS_MIPSO32_FALSE
645 LIBGO_IS_MIPSO32_TRUE
646 LIBGO_IS_MIPS_FALSE
647 LIBGO_IS_MIPS_TRUE
648 LIBGO_IS_M68K_FALSE
649 LIBGO_IS_M68K_TRUE
650 LIBGO_IS_ARM_FALSE
651 LIBGO_IS_ARM_TRUE
652 LIBGO_IS_ALPHA_FALSE
653 LIBGO_IS_ALPHA_TRUE
654 LIBGO_IS_386_FALSE
655 LIBGO_IS_386_TRUE
656 GOOS
657 LIBGO_IS_SOLARIS_FALSE
658 LIBGO_IS_SOLARIS_TRUE
659 LIBGO_IS_RTEMS_FALSE
660 LIBGO_IS_RTEMS_TRUE
661 LIBGO_IS_NETBSD_FALSE
662 LIBGO_IS_NETBSD_TRUE
663 LIBGO_IS_LINUX_FALSE
664 LIBGO_IS_LINUX_TRUE
665 LIBGO_IS_IRIX_FALSE
666 LIBGO_IS_IRIX_TRUE
667 LIBGO_IS_FREEBSD_FALSE
668 LIBGO_IS_FREEBSD_TRUE
669 LIBGO_IS_DARWIN_FALSE
670 LIBGO_IS_DARWIN_TRUE
671 go_include
672 LIBFFIINCS
673 LIBFFI
674 nover_glibgo_toolexeclibdir
675 glibgo_toolexeclibdir
676 glibgo_toolexecdir
677 WERROR
678 WARN_FLAGS
679 CC_FOR_BUILD
680 enable_static
681 enable_shared
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
687 AR
688 OBJDUMP
689 LN_S
690 NM
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LIBTOOL
694 OBJCOPY
695 RANLIB
696 LD
697 FGREP
698 SED
699 EGREP
700 GREP
701 CPP
702 MAINT
703 MAINTAINER_MODE_FALSE
704 MAINTAINER_MODE_TRUE
705 GOCFLAGS
706 GOC
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 multi_basedir
759 libtool_VERSION
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_multilib
802 enable_dependency_tracking
803 enable_maintainer_mode
804 with_gnu_ld
805 enable_shared
806 enable_static
807 with_pic
808 enable_fast_install
809 enable_libtool_lock
810 enable_version_specific_runtime_libs
811 with_libffi
812 with_system_libunwind
813 enable_sjlj_exceptions
814 '
815       ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CPP
819 CPPFLAGS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *)    ac_optarg=yes ;;
884   esac
885
886   # Accept the important Cygnus configure options, so we can diagnose typos.
887
888   case $ac_dashdash$ac_option in
889   --)
890     ac_dashdash=yes ;;
891
892   -bindir | --bindir | --bindi | --bind | --bin | --bi)
893     ac_prev=bindir ;;
894   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895     bindir=$ac_optarg ;;
896
897   -build | --build | --buil | --bui | --bu)
898     ac_prev=build_alias ;;
899   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900     build_alias=$ac_optarg ;;
901
902   -cache-file | --cache-file | --cache-fil | --cache-fi \
903   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904     ac_prev=cache_file ;;
905   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907     cache_file=$ac_optarg ;;
908
909   --config-cache | -C)
910     cache_file=config.cache ;;
911
912   -datadir | --datadir | --datadi | --datad)
913     ac_prev=datadir ;;
914   -datadir=* | --datadir=* | --datadi=* | --datad=*)
915     datadir=$ac_optarg ;;
916
917   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918   | --dataroo | --dataro | --datar)
919     ac_prev=datarootdir ;;
920   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922     datarootdir=$ac_optarg ;;
923
924   -disable-* | --disable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=no ;;
939
940   -docdir | --docdir | --docdi | --doc | --do)
941     ac_prev=docdir ;;
942   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943     docdir=$ac_optarg ;;
944
945   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946     ac_prev=dvidir ;;
947   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948     dvidir=$ac_optarg ;;
949
950   -enable-* | --enable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=\$ac_optarg ;;
965
966   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968   | --exec | --exe | --ex)
969     ac_prev=exec_prefix ;;
970   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972   | --exec=* | --exe=* | --ex=*)
973     exec_prefix=$ac_optarg ;;
974
975   -gas | --gas | --ga | --g)
976     # Obsolete; use --with-gas.
977     with_gas=yes ;;
978
979   -help | --help | --hel | --he | -h)
980     ac_init_help=long ;;
981   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982     ac_init_help=recursive ;;
983   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984     ac_init_help=short ;;
985
986   -host | --host | --hos | --ho)
987     ac_prev=host_alias ;;
988   -host=* | --host=* | --hos=* | --ho=*)
989     host_alias=$ac_optarg ;;
990
991   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992     ac_prev=htmldir ;;
993   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994   | --ht=*)
995     htmldir=$ac_optarg ;;
996
997   -includedir | --includedir | --includedi | --included | --include \
998   | --includ | --inclu | --incl | --inc)
999     ac_prev=includedir ;;
1000   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001   | --includ=* | --inclu=* | --incl=* | --inc=*)
1002     includedir=$ac_optarg ;;
1003
1004   -infodir | --infodir | --infodi | --infod | --info | --inf)
1005     ac_prev=infodir ;;
1006   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007     infodir=$ac_optarg ;;
1008
1009   -libdir | --libdir | --libdi | --libd)
1010     ac_prev=libdir ;;
1011   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012     libdir=$ac_optarg ;;
1013
1014   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015   | --libexe | --libex | --libe)
1016     ac_prev=libexecdir ;;
1017   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018   | --libexe=* | --libex=* | --libe=*)
1019     libexecdir=$ac_optarg ;;
1020
1021   -localedir | --localedir | --localedi | --localed | --locale)
1022     ac_prev=localedir ;;
1023   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024     localedir=$ac_optarg ;;
1025
1026   -localstatedir | --localstatedir | --localstatedi | --localstated \
1027   | --localstate | --localstat | --localsta | --localst | --locals)
1028     ac_prev=localstatedir ;;
1029   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031     localstatedir=$ac_optarg ;;
1032
1033   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034     ac_prev=mandir ;;
1035   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036     mandir=$ac_optarg ;;
1037
1038   -nfp | --nfp | --nf)
1039     # Obsolete; use --without-fp.
1040     with_fp=no ;;
1041
1042   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043   | --no-cr | --no-c | -n)
1044     no_create=yes ;;
1045
1046   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048     no_recursion=yes ;;
1049
1050   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052   | --oldin | --oldi | --old | --ol | --o)
1053     ac_prev=oldincludedir ;;
1054   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057     oldincludedir=$ac_optarg ;;
1058
1059   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060     ac_prev=prefix ;;
1061   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062     prefix=$ac_optarg ;;
1063
1064   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065   | --program-pre | --program-pr | --program-p)
1066     ac_prev=program_prefix ;;
1067   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069     program_prefix=$ac_optarg ;;
1070
1071   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072   | --program-suf | --program-su | --program-s)
1073     ac_prev=program_suffix ;;
1074   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076     program_suffix=$ac_optarg ;;
1077
1078   -program-transform-name | --program-transform-name \
1079   | --program-transform-nam | --program-transform-na \
1080   | --program-transform-n | --program-transform- \
1081   | --program-transform | --program-transfor \
1082   | --program-transfo | --program-transf \
1083   | --program-trans | --program-tran \
1084   | --progr-tra | --program-tr | --program-t)
1085     ac_prev=program_transform_name ;;
1086   -program-transform-name=* | --program-transform-name=* \
1087   | --program-transform-nam=* | --program-transform-na=* \
1088   | --program-transform-n=* | --program-transform-=* \
1089   | --program-transform=* | --program-transfor=* \
1090   | --program-transfo=* | --program-transf=* \
1091   | --program-trans=* | --program-tran=* \
1092   | --progr-tra=* | --program-tr=* | --program-t=*)
1093     program_transform_name=$ac_optarg ;;
1094
1095   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096     ac_prev=pdfdir ;;
1097   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098     pdfdir=$ac_optarg ;;
1099
1100   -psdir | --psdir | --psdi | --psd | --ps)
1101     ac_prev=psdir ;;
1102   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103     psdir=$ac_optarg ;;
1104
1105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106   | -silent | --silent | --silen | --sile | --sil)
1107     silent=yes ;;
1108
1109   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110     ac_prev=sbindir ;;
1111   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112   | --sbi=* | --sb=*)
1113     sbindir=$ac_optarg ;;
1114
1115   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117   | --sharedst | --shareds | --shared | --share | --shar \
1118   | --sha | --sh)
1119     ac_prev=sharedstatedir ;;
1120   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123   | --sha=* | --sh=*)
1124     sharedstatedir=$ac_optarg ;;
1125
1126   -site | --site | --sit)
1127     ac_prev=site ;;
1128   -site=* | --site=* | --sit=*)
1129     site=$ac_optarg ;;
1130
1131   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132     ac_prev=srcdir ;;
1133   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134     srcdir=$ac_optarg ;;
1135
1136   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137   | --syscon | --sysco | --sysc | --sys | --sy)
1138     ac_prev=sysconfdir ;;
1139   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141     sysconfdir=$ac_optarg ;;
1142
1143   -target | --target | --targe | --targ | --tar | --ta | --t)
1144     ac_prev=target_alias ;;
1145   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146     target_alias=$ac_optarg ;;
1147
1148   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149     verbose=yes ;;
1150
1151   -version | --version | --versio | --versi | --vers | -V)
1152     ac_init_version=: ;;
1153
1154   -with-* | --with-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error "invalid package name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval with_$ac_useropt=\$ac_optarg ;;
1169
1170   -without-* | --without-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=no ;;
1185
1186   --x)
1187     # Obsolete; use --with-x.
1188     with_x=yes ;;
1189
1190   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191   | --x-incl | --x-inc | --x-in | --x-i)
1192     ac_prev=x_includes ;;
1193   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195     x_includes=$ac_optarg ;;
1196
1197   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199     ac_prev=x_libraries ;;
1200   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202     x_libraries=$ac_optarg ;;
1203
1204   -*) as_fn_error "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information."
1206     ;;
1207
1208   *=*)
1209     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210     # Reject names that are not valid shell variable names.
1211     case $ac_envvar in #(
1212       '' | [0-9]* | *[!_$as_cr_alnum]* )
1213       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1214     esac
1215     eval $ac_envvar=\$ac_optarg
1216     export $ac_envvar ;;
1217
1218   *)
1219     # FIXME: should be removed in autoconf 3.0.
1220     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224     ;;
1225
1226   esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231   as_fn_error "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235   case $enable_option_checking in
1236     no) ;;
1237     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1238     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239   esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244                 datadir sysconfdir sharedstatedir localstatedir includedir \
1245                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246                 libdir localedir mandir
1247 do
1248   eval ac_val=\$$ac_var
1249   # Remove trailing slashes.
1250   case $ac_val in
1251     */ )
1252       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253       eval $ac_var=\$ac_val;;
1254   esac
1255   # Be sure to have absolute directory names.
1256   case $ac_val in
1257     [\\/$]* | ?:[\\/]* )  continue;;
1258     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259   esac
1260   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272   if test "x$build_alias" = x; then
1273     cross_compiling=maybe
1274     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1275     If a cross compiler is detected then cross compile mode will be used." >&2
1276   elif test "x$build_alias" != "x$host_alias"; then
1277     cross_compiling=yes
1278   fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290   as_fn_error "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292   as_fn_error "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297   ac_srcdir_defaulted=yes
1298   # Try the directory containing this script, then the parent directory.
1299   ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301          X"$as_myself" : 'X\(//\)[^/]' \| \
1302          X"$as_myself" : 'X\(//\)$' \| \
1303          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306             s//\1/
1307             q
1308           }
1309           /^X\(\/\/\)[^/].*/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\/\)$/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\).*/{
1318             s//\1/
1319             q
1320           }
1321           s/.*/./; q'`
1322   srcdir=$ac_confdir
1323   if test ! -r "$srcdir/$ac_unique_file"; then
1324     srcdir=..
1325   fi
1326 else
1327   ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1336         pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339   srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349   eval ac_env_${ac_var}_value=\$${ac_var}
1350   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358   # Omit some internal or obsolete options to make the list less imposing.
1359   # This message is too long to be a string in the A/UX 3.1 sh.
1360   cat <<_ACEOF
1361 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE.  See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371   -h, --help              display this help and exit
1372       --help=short        display options specific to this package
1373       --help=recursive    display the short help of all the included packages
1374   -V, --version           display version information and exit
1375   -q, --quiet, --silent   do not print \`checking...' messages
1376       --cache-file=FILE   cache test results in FILE [disabled]
1377   -C, --config-cache      alias for \`--cache-file=config.cache'
1378   -n, --no-create         do not create output files
1379       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382   --prefix=PREFIX         install architecture-independent files in PREFIX
1383                           [$ac_default_prefix]
1384   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1385                           [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395   --bindir=DIR            user executables [EPREFIX/bin]
1396   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1397   --libexecdir=DIR        program executables [EPREFIX/libexec]
1398   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1399   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1400   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1401   --libdir=DIR            object code libraries [EPREFIX/lib]
1402   --includedir=DIR        C header files [PREFIX/include]
1403   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406   --infodir=DIR           info documentation [DATAROOTDIR/info]
1407   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408   --mandir=DIR            man documentation [DATAROOTDIR/man]
1409   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1410   --htmldir=DIR           html documentation [DOCDIR]
1411   --dvidir=DIR            dvi documentation [DOCDIR]
1412   --pdfdir=DIR            pdf documentation [DOCDIR]
1413   --psdir=DIR             ps documentation [DOCDIR]
1414 _ACEOF
1415
1416   cat <<\_ACEOF
1417
1418 Program names:
1419   --program-prefix=PREFIX            prepend PREFIX to installed program names
1420   --program-suffix=SUFFIX            append SUFFIX to installed program names
1421   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423 System types:
1424   --build=BUILD     configure for building on BUILD [guessed]
1425   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426   --target=TARGET   configure for building compilers for TARGET [HOST]
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431   case $ac_init_help in
1432      short | recursive ) echo "Configuration of package-unused version-unused:";;
1433    esac
1434   cat <<\_ACEOF
1435
1436 Optional Features:
1437   --disable-option-checking  ignore unrecognized --enable/--with options
1438   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1439   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1440   --enable-multilib       build many library versions (default)
1441   --disable-dependency-tracking  speeds up one-time build
1442   --enable-dependency-tracking   do not reject slow dependency extractors
1443   --enable-maintainer-mode  enable make rules and dependencies not useful
1444                           (and sometimes confusing) to the casual installer
1445   --enable-shared[=PKGS]  build shared libraries [default=yes]
1446   --enable-static[=PKGS]  build static libraries [default=yes]
1447   --enable-fast-install[=PKGS]
1448                           optimize for fast installation [default=yes]
1449   --disable-libtool-lock  avoid locking (might break parallel builds)
1450   --enable-version-specific-runtime-libs
1451                           Specify that runtime libraries should be installed
1452                           in a compiler-specific directory
1453   --enable-sjlj-exceptions
1454                           force use of builtin_setjmp for exceptions
1455
1456 Optional Packages:
1457   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1460   --with-pic              try to use only PIC/non-PIC objects [default=use
1461                           both]
1462   --without-libffi        don't use libffi
1463   --with-system-libunwind use installed libunwind
1464
1465 Some influential environment variables:
1466   CC          C compiler command
1467   CFLAGS      C compiler flags
1468   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1469               nonstandard directory <lib dir>
1470   LIBS        libraries to pass to the linker, e.g. -l<library>
1471   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472               you have headers in a nonstandard directory <include dir>
1473   GOC         Go compiler command
1474   GOCFLAGS    Go compiler flags
1475   CPP         C preprocessor
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486   # If there are subdirs, report their specific --help.
1487   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488     test -d "$ac_dir" ||
1489       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490       continue
1491     ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497   # A ".." for each directory in $ac_dir_suffix.
1498   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499   case $ac_top_builddir_sub in
1500   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502   esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510   .)  # We are building in place.
1511     ac_srcdir=.
1512     ac_top_srcdir=$ac_top_builddir_sub
1513     ac_abs_top_srcdir=$ac_pwd ;;
1514   [\\/]* | ?:[\\/]* )  # Absolute name.
1515     ac_srcdir=$srcdir$ac_dir_suffix;
1516     ac_top_srcdir=$srcdir
1517     ac_abs_top_srcdir=$srcdir ;;
1518   *) # Relative name.
1519     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520     ac_top_srcdir=$ac_top_build_prefix$srcdir
1521     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525     cd "$ac_dir" || { ac_status=$?; continue; }
1526     # Check for guested configure.
1527     if test -f "$ac_srcdir/configure.gnu"; then
1528       echo &&
1529       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530     elif test -f "$ac_srcdir/configure"; then
1531       echo &&
1532       $SHELL "$ac_srcdir/configure" --help=recursive
1533     else
1534       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535     fi || ac_status=$?
1536     cd "$ac_pwd" || { ac_status=$?; break; }
1537   done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542   cat <<\_ACEOF
1543 package-unused configure version-unused
1544 generated by GNU Autoconf 2.64
1545
1546 Copyright (C) 2009 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550   exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563   rm -f conftest.$ac_objext
1564   if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567   *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571   (eval "$ac_compile") 2>conftest.err
1572   ac_status=$?
1573   if test -s conftest.err; then
1574     grep -v '^ *+' conftest.err >conftest.er1
1575     cat conftest.er1 >&5
1576     mv -f conftest.er1 conftest.err
1577   fi
1578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579   test $ac_status = 0; } && {
1580          test -z "$ac_c_werror_flag" ||
1581          test ! -s conftest.err
1582        } && test -s conftest.$ac_objext; then :
1583   ac_retval=0
1584 else
1585   $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588         ac_retval=1
1589 fi
1590   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591   return $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1599 {
1600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601   if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604   *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609   ac_status=$?
1610   if test -s conftest.err; then
1611     grep -v '^ *+' conftest.err >conftest.er1
1612     cat conftest.er1 >&5
1613     mv -f conftest.er1 conftest.err
1614   fi
1615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616   test $ac_status = 0; } >/dev/null && {
1617          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618          test ! -s conftest.err
1619        }; then :
1620   ac_retval=0
1621 else
1622   $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625     ac_retval=1
1626 fi
1627   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628   return $ac_retval
1629
1630 } # ac_fn_c_try_cpp
1631
1632 # ac_fn_c_try_run LINENO
1633 # ----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1635 # that executables *can* be run.
1636 ac_fn_c_try_run ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   if { { ac_try="$ac_link"
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_link") 2>&5
1647   ac_status=$?
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650   { { case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_try") 2>&5
1657   ac_status=$?
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; }; }; then :
1660   ac_retval=0
1661 else
1662   $as_echo "$as_me: program exited with status $ac_status" >&5
1663        $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666        ac_retval=$ac_status
1667 fi
1668   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670   return $ac_retval
1671
1672 } # ac_fn_c_try_run
1673
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684   $as_echo_n "(cached) " >&6
1685 else
1686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h.  */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692   eval "$3=yes"
1693 else
1694   eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 fi
1698 eval ac_res=\$$3
1699                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702
1703 } # ac_fn_c_check_header_compile
1704
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_link ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext conftest$ac_exeext
1712   if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_link") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest$ac_exeext && {
1731          test "$cross_compiling" = yes ||
1732          $as_test_x conftest$ac_exeext
1733        }; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739         ac_retval=1
1740 fi
1741   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743   # interfere with the next link command; also delete a directory that is
1744   # left behind by Apple's compiler.  We do this before executing the actions.
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747   return $ac_retval
1748
1749 } # ac_fn_c_try_link
1750
1751 # ac_fn_c_check_func LINENO FUNC VAR
1752 # ----------------------------------
1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1754 ac_fn_c_check_func ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760   $as_echo_n "(cached) " >&6
1761 else
1762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1766 #define $2 innocuous_$2
1767
1768 /* System header to define __stub macros and hopefully few prototypes,
1769     which can conflict with char $2 (); below.
1770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771     <limits.h> exists even on freestanding compilers.  */
1772
1773 #ifdef __STDC__
1774 # include <limits.h>
1775 #else
1776 # include <assert.h>
1777 #endif
1778
1779 #undef $2
1780
1781 /* Override any GCC internal prototype to avoid an error.
1782    Use char because int might match the return type of a GCC
1783    builtin and then its argument prototype would still apply.  */
1784 #ifdef __cplusplus
1785 extern "C"
1786 #endif
1787 char $2 ();
1788 /* The GNU C library defines this for functions which it implements
1789     to always fail with ENOSYS.  Some functions are actually named
1790     something starting with __ and the normal name is an alias.  */
1791 #if defined __stub_$2 || defined __stub___$2
1792 choke me
1793 #endif
1794
1795 int
1796 main ()
1797 {
1798 return $2 ();
1799   ;
1800   return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_link "$LINENO"; then :
1804   eval "$3=yes"
1805 else
1806   eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext \
1809     conftest$ac_exeext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815
1816 } # ac_fn_c_check_func
1817
1818 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1821 # the include files in INCLUDES and setting the cache variable VAR
1822 # accordingly.
1823 ac_fn_c_check_header_mongrel ()
1824 {
1825   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830   $as_echo_n "(cached) " >&6
1831 fi
1832 eval ac_res=\$$3
1833                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 else
1836   # Is the header compilable?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1838 $as_echo_n "checking $2 usability... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h.  */
1841 $4
1842 #include <$2>
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845   ac_header_compiler=yes
1846 else
1847   ac_header_compiler=no
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1851 $as_echo "$ac_header_compiler" >&6; }
1852
1853 # Is the header present?
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1855 $as_echo_n "checking $2 presence... " >&6; }
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_cpp "$LINENO"; then :
1861   ac_header_preproc=yes
1862 else
1863   ac_header_preproc=no
1864 fi
1865 rm -f conftest.err conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1867 $as_echo "$ac_header_preproc" >&6; }
1868
1869 # So?  What about this header?
1870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871   yes:no: )
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1873 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876     ;;
1877   no:yes:* )
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1879 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1881 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1883 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1885 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888     ;;
1889 esac
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893   $as_echo_n "(cached) " >&6
1894 else
1895   eval "$3=\$ac_header_compiler"
1896 fi
1897 eval ac_res=\$$3
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 fi
1901   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
1903 } # ac_fn_c_check_header_mongrel
1904
1905 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1906 # -------------------------------------------
1907 # Tests whether TYPE exists after having included INCLUDES, setting cache
1908 # variable VAR accordingly.
1909 ac_fn_c_check_type ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   eval "$3=no"
1918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof ($2))
1925          return 0;
1926   ;
1927   return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 $4
1934 int
1935 main ()
1936 {
1937 if (sizeof (($2)))
1938             return 0;
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944
1945 else
1946   eval "$3=yes"
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
1957 } # ac_fn_c_check_type
1958
1959 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960 # --------------------------------------------
1961 # Tries to find the compile-time value of EXPR in a program that includes
1962 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1963 # computed
1964 ac_fn_c_compute_int ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   if test "$cross_compiling" = yes; then
1968     # Depending upon the size, compute the lo and hi bounds.
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1971 $4
1972 int
1973 main ()
1974 {
1975 static int test_array [1 - 2 * !(($2) >= 0)];
1976 test_array [0] = 0
1977
1978   ;
1979   return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983   ac_lo=0 ac_mid=0
1984   while :; do
1985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h.  */
1987 $4
1988 int
1989 main ()
1990 {
1991 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992 test_array [0] = 0
1993
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   ac_hi=$ac_mid; break
2000 else
2001   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2002                         if test $ac_lo -le $ac_mid; then
2003                           ac_lo= ac_hi=
2004                           break
2005                         fi
2006                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009   done
2010 else
2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $4
2014 int
2015 main ()
2016 {
2017 static int test_array [1 - 2 * !(($2) < 0)];
2018 test_array [0] = 0
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   ac_hi=-1 ac_mid=-1
2026   while :; do
2027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034 test_array [0] = 0
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041   ac_lo=$ac_mid; break
2042 else
2043   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2044                         if test $ac_mid -le $ac_hi; then
2045                           ac_lo= ac_hi=
2046                           break
2047                         fi
2048                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051   done
2052 else
2053   ac_lo= ac_hi=
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 # Binary search between lo and hi bounds.
2059 while test "x$ac_lo" != "x$ac_hi"; do
2060   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_hi=$ac_mid
2076 else
2077   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 done
2081 case $ac_lo in #((
2082 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2083 '') ac_retval=1 ;;
2084 esac
2085   else
2086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h.  */
2088 $4
2089 static long int longval () { return $2; }
2090 static unsigned long int ulongval () { return $2; }
2091 #include <stdio.h>
2092 #include <stdlib.h>
2093 int
2094 main ()
2095 {
2096
2097   FILE *f = fopen ("conftest.val", "w");
2098   if (! f)
2099     return 1;
2100   if (($2) < 0)
2101     {
2102       long int i = longval ();
2103       if (i != ($2))
2104         return 1;
2105       fprintf (f, "%ld", i);
2106     }
2107   else
2108     {
2109       unsigned long int i = ulongval ();
2110       if (i != ($2))
2111         return 1;
2112       fprintf (f, "%lu", i);
2113     }
2114   /* Do not output a trailing newline, as this causes \r\n confusion
2115      on some platforms.  */
2116   return ferror (f) || fclose (f) != 0;
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_run "$LINENO"; then :
2123   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2124 else
2125   ac_retval=1
2126 fi
2127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2128   conftest.$ac_objext conftest.beam conftest.$ac_ext
2129 rm -f conftest.val
2130
2131   fi
2132   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2133   return $ac_retval
2134
2135 } # ac_fn_c_compute_int
2136 cat >config.log <<_ACEOF
2137 This file contains any messages produced by compilers while
2138 running configure, to aid debugging if configure makes a mistake.
2139
2140 It was created by package-unused $as_me version-unused, which was
2141 generated by GNU Autoconf 2.64.  Invocation command line was
2142
2143   $ $0 $@
2144
2145 _ACEOF
2146 exec 5>>config.log
2147 {
2148 cat <<_ASUNAME
2149 ## --------- ##
2150 ## Platform. ##
2151 ## --------- ##
2152
2153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158
2159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2161
2162 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2163 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2166 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2167 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2168 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2169
2170 _ASUNAME
2171
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175   IFS=$as_save_IFS
2176   test -z "$as_dir" && as_dir=.
2177     $as_echo "PATH: $as_dir"
2178   done
2179 IFS=$as_save_IFS
2180
2181 } >&5
2182
2183 cat >&5 <<_ACEOF
2184
2185
2186 ## ----------- ##
2187 ## Core tests. ##
2188 ## ----------- ##
2189
2190 _ACEOF
2191
2192
2193 # Keep a trace of the command line.
2194 # Strip out --no-create and --no-recursion so they do not pile up.
2195 # Strip out --silent because we don't want to record it for future runs.
2196 # Also quote any args containing shell meta-characters.
2197 # Make two passes to allow for proper duplicate-argument suppression.
2198 ac_configure_args=
2199 ac_configure_args0=
2200 ac_configure_args1=
2201 ac_must_keep_next=false
2202 for ac_pass in 1 2
2203 do
2204   for ac_arg
2205   do
2206     case $ac_arg in
2207     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209     | -silent | --silent | --silen | --sile | --sil)
2210       continue ;;
2211     *\'*)
2212       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213     esac
2214     case $ac_pass in
2215     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216     2)
2217       as_fn_append ac_configure_args1 " '$ac_arg'"
2218       if test $ac_must_keep_next = true; then
2219         ac_must_keep_next=false # Got value, back to normal.
2220       else
2221         case $ac_arg in
2222           *=* | --config-cache | -C | -disable-* | --disable-* \
2223           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225           | -with-* | --with-* | -without-* | --without-* | --x)
2226             case "$ac_configure_args0 " in
2227               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228             esac
2229             ;;
2230           -* ) ac_must_keep_next=true ;;
2231         esac
2232       fi
2233       as_fn_append ac_configure_args " '$ac_arg'"
2234       ;;
2235     esac
2236   done
2237 done
2238 { ac_configure_args0=; unset ac_configure_args0;}
2239 { ac_configure_args1=; unset ac_configure_args1;}
2240
2241 # When interrupted or exit'd, cleanup temporary files, and complete
2242 # config.log.  We remove comments because anyway the quotes in there
2243 # would cause problems or look ugly.
2244 # WARNING: Use '\'' to represent an apostrophe within the trap.
2245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246 trap 'exit_status=$?
2247   # Save into config.log some information that might help in debugging.
2248   {
2249     echo
2250
2251     cat <<\_ASBOX
2252 ## ---------------- ##
2253 ## Cache variables. ##
2254 ## ---------------- ##
2255 _ASBOX
2256     echo
2257     # The following way of writing the cache mishandles newlines in values,
2258 (
2259   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2260     eval ac_val=\$$ac_var
2261     case $ac_val in #(
2262     *${as_nl}*)
2263       case $ac_var in #(
2264       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2266       esac
2267       case $ac_var in #(
2268       _ | IFS | as_nl) ;; #(
2269       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2270       *) { eval $ac_var=; unset $ac_var;} ;;
2271       esac ;;
2272     esac
2273   done
2274   (set) 2>&1 |
2275     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2276     *${as_nl}ac_space=\ *)
2277       sed -n \
2278         "s/'\''/'\''\\\\'\'''\''/g;
2279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2280       ;; #(
2281     *)
2282       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2283       ;;
2284     esac |
2285     sort
2286 )
2287     echo
2288
2289     cat <<\_ASBOX
2290 ## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##
2293 _ASBOX
2294     echo
2295     for ac_var in $ac_subst_vars
2296     do
2297       eval ac_val=\$$ac_var
2298       case $ac_val in
2299       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300       esac
2301       $as_echo "$ac_var='\''$ac_val'\''"
2302     done | sort
2303     echo
2304
2305     if test -n "$ac_subst_files"; then
2306       cat <<\_ASBOX
2307 ## ------------------- ##
2308 ## File substitutions. ##
2309 ## ------------------- ##
2310 _ASBOX
2311       echo
2312       for ac_var in $ac_subst_files
2313       do
2314         eval ac_val=\$$ac_var
2315         case $ac_val in
2316         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317         esac
2318         $as_echo "$ac_var='\''$ac_val'\''"
2319       done | sort
2320       echo
2321     fi
2322
2323     if test -s confdefs.h; then
2324       cat <<\_ASBOX
2325 ## ----------- ##
2326 ## confdefs.h. ##
2327 ## ----------- ##
2328 _ASBOX
2329       echo
2330       cat confdefs.h
2331       echo
2332     fi
2333     test "$ac_signal" != 0 &&
2334       $as_echo "$as_me: caught signal $ac_signal"
2335     $as_echo "$as_me: exit $exit_status"
2336   } >&5
2337   rm -f core *.core core.conftest.* &&
2338     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2339     exit $exit_status
2340 ' 0
2341 for ac_signal in 1 2 13 15; do
2342   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2343 done
2344 ac_signal=0
2345
2346 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2347 rm -f -r conftest* confdefs.h
2348
2349 $as_echo "/* confdefs.h */" > confdefs.h
2350
2351 # Predefined preprocessor variables.
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_NAME "$PACKAGE_NAME"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_STRING "$PACKAGE_STRING"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_URL "$PACKAGE_URL"
2375 _ACEOF
2376
2377
2378 # Let the site file select an alternate cache file if it wants to.
2379 # Prefer an explicitly selected file to automatically selected ones.
2380 ac_site_file1=NONE
2381 ac_site_file2=NONE
2382 if test -n "$CONFIG_SITE"; then
2383   ac_site_file1=$CONFIG_SITE
2384 elif test "x$prefix" != xNONE; then
2385   ac_site_file1=$prefix/share/config.site
2386   ac_site_file2=$prefix/etc/config.site
2387 else
2388   ac_site_file1=$ac_default_prefix/share/config.site
2389   ac_site_file2=$ac_default_prefix/etc/config.site
2390 fi
2391 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392 do
2393   test "x$ac_site_file" = xNONE && continue
2394   if test -r "$ac_site_file"; then
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397     sed 's/^/| /' "$ac_site_file" >&5
2398     . "$ac_site_file"
2399   fi
2400 done
2401
2402 if test -r "$cache_file"; then
2403   # Some versions of bash will fail to source /dev/null (special
2404   # files actually), so we avoid doing that.
2405   if test -f "$cache_file"; then
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408     case $cache_file in
2409       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410       *)                      . "./$cache_file";;
2411     esac
2412   fi
2413 else
2414   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415 $as_echo "$as_me: creating cache $cache_file" >&6;}
2416   >$cache_file
2417 fi
2418
2419 # Check that the precious variables saved in the cache have kept the same
2420 # value.
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424   eval ac_new_set=\$ac_env_${ac_var}_set
2425   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426   eval ac_new_val=\$ac_env_${ac_var}_value
2427   case $ac_old_set,$ac_new_set in
2428     set,)
2429       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431       ac_cache_corrupted=: ;;
2432     ,set)
2433       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435       ac_cache_corrupted=: ;;
2436     ,);;
2437     *)
2438       if test "x$ac_old_val" != "x$ac_new_val"; then
2439         # differences in whitespace do not lead to failure.
2440         ac_old_val_w=`echo x $ac_old_val`
2441         ac_new_val_w=`echo x $ac_new_val`
2442         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445           ac_cache_corrupted=:
2446         else
2447           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449           eval $ac_var=\$ac_old_val
2450         fi
2451         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2455       fi;;
2456   esac
2457   # Pass precious variables to config.status.
2458   if test "$ac_new_set" = set; then
2459     case $ac_new_val in
2460     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461     *) ac_arg=$ac_var=$ac_new_val ;;
2462     esac
2463     case " $ac_configure_args " in
2464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466     esac
2467   fi
2468 done
2469 if $ac_cache_corrupted; then
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475 fi
2476 ## -------------------- ##
2477 ## Main body of script. ##
2478 ## -------------------- ##
2479
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
2486
2487
2488
2489
2490
2491 ac_config_headers="$ac_config_headers config.h"
2492
2493
2494 libtool_VERSION=1:0:0
2495
2496
2497 # Default to --enable-multilib
2498 # Check whether --enable-multilib was given.
2499 if test "${enable_multilib+set}" = set; then :
2500   enableval=$enable_multilib; case "$enableval" in
2501   yes) multilib=yes ;;
2502   no)  multilib=no ;;
2503   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2504  esac
2505 else
2506   multilib=yes
2507 fi
2508
2509
2510 # We may get other options which we leave undocumented:
2511 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2512 # See config-ml.in if you want the gory details.
2513
2514 if test "$srcdir" = "."; then
2515   if test "$with_target_subdir" != "."; then
2516     multi_basedir="$srcdir/$with_multisrctop../.."
2517   else
2518     multi_basedir="$srcdir/$with_multisrctop.."
2519   fi
2520 else
2521   multi_basedir="$srcdir/.."
2522 fi
2523
2524
2525 # Even if the default multilib is not a cross compilation,
2526 # it may be that some of the other multilibs are.
2527 if test $cross_compiling = no && test $multilib = yes \
2528    && test "x${with_multisubdir}" != x ; then
2529    cross_compiling=maybe
2530 fi
2531
2532 ac_config_commands="$ac_config_commands default-1"
2533
2534
2535 ac_aux_dir=
2536 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2537   for ac_t in install-sh install.sh shtool; do
2538     if test -f "$ac_dir/$ac_t"; then
2539       ac_aux_dir=$ac_dir
2540       ac_install_sh="$ac_aux_dir/$ac_t -c"
2541       break 2
2542     fi
2543   done
2544 done
2545 if test -z "$ac_aux_dir"; then
2546   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2547 fi
2548
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2555 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2556
2557
2558 # Make sure we can run config.sub.
2559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2563 $as_echo_n "checking build system type... " >&6; }
2564 if test "${ac_cv_build+set}" = set; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   ac_build_alias=$build_alias
2568 test "x$ac_build_alias" = x &&
2569   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2570 test "x$ac_build_alias" = x &&
2571   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2577 $as_echo "$ac_cv_build" >&6; }
2578 case $ac_cv_build in
2579 *-*-*) ;;
2580 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2581 esac
2582 build=$ac_cv_build
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_build
2585 shift
2586 build_cpu=$1
2587 build_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 build_os=$*
2592 IFS=$ac_save_IFS
2593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2597 $as_echo_n "checking host system type... " >&6; }
2598 if test "${ac_cv_host+set}" = set; then :
2599   $as_echo_n "(cached) " >&6
2600 else
2601   if test "x$host_alias" = x; then
2602   ac_cv_host=$ac_cv_build
2603 else
2604   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606 fi
2607
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2610 $as_echo "$ac_cv_host" >&6; }
2611 case $ac_cv_host in
2612 *-*-*) ;;
2613 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2614 esac
2615 host=$ac_cv_host
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_host
2618 shift
2619 host_cpu=$1
2620 host_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 host_os=$*
2625 IFS=$ac_save_IFS
2626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2630 $as_echo_n "checking target system type... " >&6; }
2631 if test "${ac_cv_target+set}" = set; then :
2632   $as_echo_n "(cached) " >&6
2633 else
2634   if test "x$target_alias" = x; then
2635   ac_cv_target=$ac_cv_host
2636 else
2637   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2638     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2639 fi
2640
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2643 $as_echo "$ac_cv_target" >&6; }
2644 case $ac_cv_target in
2645 *-*-*) ;;
2646 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2647 esac
2648 target=$ac_cv_target
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_target
2651 shift
2652 target_cpu=$1
2653 target_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 target_os=$*
2658 IFS=$ac_save_IFS
2659 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2660
2661
2662 # The aliases save the names the user supplied, while $host etc.
2663 # will get canonicalized.
2664 test -n "$target_alias" &&
2665   test "$program_prefix$program_suffix$program_transform_name" = \
2666     NONENONEs,x,x, &&
2667   program_prefix=${target_alias}-
2668
2669 target_alias=${target_alias-$host_alias}
2670
2671 am__api_version='1.11'
2672
2673 # Find a good install program.  We prefer a C program (faster),
2674 # so one script is as good as another.  But avoid the broken or
2675 # incompatible versions:
2676 # SysV /etc/install, /usr/sbin/install
2677 # SunOS /usr/etc/install
2678 # IRIX /sbin/install
2679 # AIX /bin/install
2680 # AmigaOS /C/install, which installs bootblocks on floppy discs
2681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684 # OS/2's system install, which has a completely different semantic
2685 # ./install, which can be erroneously created by make from ./install.sh.
2686 # Reject install programs that cannot install multiple files.
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2688 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2689 if test -z "$INSTALL"; then
2690 if test "${ac_cv_path_install+set}" = set; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696   IFS=$as_save_IFS
2697   test -z "$as_dir" && as_dir=.
2698     # Account for people who put trailing slashes in PATH elements.
2699 case $as_dir/ in #((
2700   ./ | .// | /[cC]/* | \
2701   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2702   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2703   /usr/ucb/* ) ;;
2704   *)
2705     # OSF1 and SCO ODT 3.0 have their own names for install.
2706     # Don't use installbsd from OSF since it installs stuff as root
2707     # by default.
2708     for ac_prog in ginstall scoinst install; do
2709       for ac_exec_ext in '' $ac_executable_extensions; do
2710         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2711           if test $ac_prog = install &&
2712             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713             # AIX install.  It has an incompatible calling convention.
2714             :
2715           elif test $ac_prog = install &&
2716             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717             # program-specific install script used by HP pwplus--don't use.
2718             :
2719           else
2720             rm -rf conftest.one conftest.two conftest.dir
2721             echo one > conftest.one
2722             echo two > conftest.two
2723             mkdir conftest.dir
2724             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2725               test -s conftest.one && test -s conftest.two &&
2726               test -s conftest.dir/conftest.one &&
2727               test -s conftest.dir/conftest.two
2728             then
2729               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730               break 3
2731             fi
2732           fi
2733         fi
2734       done
2735     done
2736     ;;
2737 esac
2738
2739   done
2740 IFS=$as_save_IFS
2741
2742 rm -rf conftest.one conftest.two conftest.dir
2743
2744 fi
2745   if test "${ac_cv_path_install+set}" = set; then
2746     INSTALL=$ac_cv_path_install
2747   else
2748     # As a last resort, use the slow shell script.  Don't cache a
2749     # value for INSTALL within a source directory, because that will
2750     # break other packages using the cache if that directory is
2751     # removed, or if the value is a relative name.
2752     INSTALL=$ac_install_sh
2753   fi
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2756 $as_echo "$INSTALL" >&6; }
2757
2758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2759 # It thinks the first close brace ends the variable substitution.
2760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2761
2762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2763
2764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2767 $as_echo_n "checking whether build environment is sane... " >&6; }
2768 # Just in case
2769 sleep 1
2770 echo timestamp > conftest.file
2771 # Reject unsafe characters in $srcdir or the absolute working directory
2772 # name.  Accept space and tab only in the latter.
2773 am_lf='
2774 '
2775 case `pwd` in
2776   *[\\\"\#\$\&\'\`$am_lf]*)
2777     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2778 esac
2779 case $srcdir in
2780   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2781     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2782 esac
2783
2784 # Do `set' in a subshell so we don't clobber the current shell's
2785 # arguments.  Must try -L first in case configure is actually a
2786 # symlink; some systems play weird games with the mod time of symlinks
2787 # (eg FreeBSD returns the mod time of the symlink's containing
2788 # directory).
2789 if (
2790    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2791    if test "$*" = "X"; then
2792       # -L didn't work.
2793       set X `ls -t "$srcdir/configure" conftest.file`
2794    fi
2795    rm -f conftest.file
2796    if test "$*" != "X $srcdir/configure conftest.file" \
2797       && test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799       # If neither matched, then we have a broken ls.  This can happen
2800       # if, for instance, CONFIG_SHELL is bash and it inherits a
2801       # broken ls alias from the environment.  This has actually
2802       # happened.  Such a system could not be considered "sane".
2803       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2804 alias in your environment" "$LINENO" 5
2805    fi
2806
2807    test "$2" = conftest.file
2808    )
2809 then
2810    # Ok.
2811    :
2812 else
2813    as_fn_error "newly created file is older than distributed files!
2814 Check your system clock" "$LINENO" 5
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817 $as_echo "yes" >&6; }
2818 test "$program_prefix" != NONE &&
2819   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2820 # Use a double $ so make ignores it.
2821 test "$program_suffix" != NONE &&
2822   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2823 # Double any \ or $.
2824 # By default was `s,x,x', remove it if useless.
2825 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2826 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827
2828 # expand $ac_aux_dir to an absolute path
2829 am_aux_dir=`cd $ac_aux_dir && pwd`
2830
2831 if test x"${MISSING+set}" != xset; then
2832   case $am_aux_dir in
2833   *\ * | *\     *)
2834     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835   *)
2836     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2837   esac
2838 fi
2839 # Use eval to expand $SHELL
2840 if eval "$MISSING --run true"; then
2841   am_missing_run="$MISSING --run "
2842 else
2843   am_missing_run=
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2845 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2846 fi
2847
2848 if test x"${install_sh}" != xset; then
2849   case $am_aux_dir in
2850   *\ * | *\     *)
2851     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852   *)
2853     install_sh="\${SHELL} $am_aux_dir/install-sh"
2854   esac
2855 fi
2856
2857 # Installed binaries are usually stripped using `strip' when the user
2858 # run `make install-strip'.  However `strip' might not be the right
2859 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the `STRIP' environment variable to overrule this program.
2861 if test "$cross_compiling" != no; then
2862   if test -n "$ac_tool_prefix"; then
2863   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}strip; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if test "${ac_cv_prog_STRIP+set}" = set; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   if test -n "$STRIP"; then
2871   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878     for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885   done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 STRIP=$ac_cv_prog_STRIP
2891 if test -n "$STRIP"; then
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2893 $as_echo "$STRIP" >&6; }
2894 else
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$ac_cv_prog_STRIP"; then
2902   ac_ct_STRIP=$STRIP
2903   # Extract the first word of "strip", so it can be a program name with args.
2904 set dummy strip; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   if test -n "$ac_ct_STRIP"; then
2911   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     ac_cv_prog_ac_ct_STRIP="strip"
2921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925   done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931 if test -n "$ac_ct_STRIP"; then
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2933 $as_echo "$ac_ct_STRIP" >&6; }
2934 else
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939   if test "x$ac_ct_STRIP" = x; then
2940     STRIP=":"
2941   else
2942     case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948     STRIP=$ac_ct_STRIP
2949   fi
2950 else
2951   STRIP="$ac_cv_prog_STRIP"
2952 fi
2953
2954 fi
2955 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2958 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2959 if test -z "$MKDIR_P"; then
2960   if test "${ac_cv_path_mkdir+set}" = set; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965 do
2966   IFS=$as_save_IFS
2967   test -z "$as_dir" && as_dir=.
2968     for ac_prog in mkdir gmkdir; do
2969          for ac_exec_ext in '' $ac_executable_extensions; do
2970            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2971            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2972              'mkdir (GNU coreutils) '* | \
2973              'mkdir (coreutils) '* | \
2974              'mkdir (fileutils) '4.1*)
2975                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2976                break 3;;
2977            esac
2978          done
2979        done
2980   done
2981 IFS=$as_save_IFS
2982
2983 fi
2984
2985   if test "${ac_cv_path_mkdir+set}" = set; then
2986     MKDIR_P="$ac_cv_path_mkdir -p"
2987   else
2988     # As a last resort, use the slow shell script.  Don't cache a
2989     # value for MKDIR_P within a source directory, because that will
2990     # break other packages using the cache if that directory is
2991     # removed, or if the value is a relative name.
2992     test -d ./--version && rmdir ./--version
2993     MKDIR_P="$ac_install_sh -d"
2994   fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2997 $as_echo "$MKDIR_P" >&6; }
2998
2999 mkdir_p="$MKDIR_P"
3000 case $mkdir_p in
3001   [\\/$]* | ?:[\\/]*) ;;
3002   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3003 esac
3004
3005 for ac_prog in gawk mawk nawk awk
3006 do
3007   # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_AWK+set}" = set; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$AWK"; then
3015   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020   IFS=$as_save_IFS
3021   test -z "$as_dir" && as_dir=.
3022     for ac_exec_ext in '' $ac_executable_extensions; do
3023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024     ac_cv_prog_AWK="$ac_prog"
3025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026     break 2
3027   fi
3028 done
3029   done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 AWK=$ac_cv_prog_AWK
3035 if test -n "$AWK"; then
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037 $as_echo "$AWK" >&6; }
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044   test -n "$AWK" && break
3045 done
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049 set x ${MAKE-make}
3050 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   cat >conftest.make <<\_ACEOF
3055 SHELL = /bin/sh
3056 all:
3057         @echo '@@@%%%=$(MAKE)=@@@%%%'
3058 _ACEOF
3059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3060 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061   *@@@%%%=?*=@@@%%%*)
3062     eval ac_cv_prog_make_${ac_make}_set=yes;;
3063   *)
3064     eval ac_cv_prog_make_${ac_make}_set=no;;
3065 esac
3066 rm -f conftest.make
3067 fi
3068 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070 $as_echo "yes" >&6; }
3071   SET_MAKE=
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075   SET_MAKE="MAKE=${MAKE-make}"
3076 fi
3077
3078 rm -rf .tst 2>/dev/null
3079 mkdir .tst 2>/dev/null
3080 if test -d .tst; then
3081   am__leading_dot=.
3082 else
3083   am__leading_dot=_
3084 fi
3085 rmdir .tst 2>/dev/null
3086
3087 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3088   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3089   # is not polluted with repeated "-I."
3090   am__isrc=' -I$(srcdir)'
3091   # test to see if srcdir already configured
3092   if test -f $srcdir/config.status; then
3093     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3094   fi
3095 fi
3096
3097 # test whether we have cygpath
3098 if test -z "$CYGPATH_W"; then
3099   if (cygpath --version) >/dev/null 2>/dev/null; then
3100     CYGPATH_W='cygpath -w'
3101   else
3102     CYGPATH_W=echo
3103   fi
3104 fi
3105
3106
3107 # Define the identity of the package.
3108  PACKAGE='libgo'
3109  VERSION='version-unused'
3110
3111
3112 # Some tools Automake needs.
3113
3114 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3115
3116
3117 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3118
3119
3120 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3121
3122
3123 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3124
3125
3126 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3127
3128 # We need awk for the "check" target.  The system "awk" is bad on
3129 # some platforms.
3130 # Always define AMTAR for backward compatibility.
3131
3132 AMTAR=${AMTAR-"${am_missing_run}tar"}
3133
3134 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145 ac_ext=c
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 if test -n "$ac_tool_prefix"; then
3151   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if test "${ac_cv_prog_CC+set}" = set; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   if test -n "$CC"; then
3159   ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     for ac_exec_ext in '' $ac_executable_extensions; do
3167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173   done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$ac_cv_prog_CC"; then
3190   ac_ct_CC=$CC
3191   # Extract the first word of "gcc", so it can be a program name with args.
3192 set dummy gcc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   if test -n "$ac_ct_CC"; then
3199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208     ac_cv_prog_ac_ct_CC="gcc"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227   if test "x$ac_ct_CC" = x; then
3228     CC=""
3229   else
3230     case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236     CC=$ac_ct_CC
3237   fi
3238 else
3239   CC="$ac_cv_prog_CC"
3240 fi
3241
3242 if test -z "$CC"; then
3243           if test -n "$ac_tool_prefix"; then
3244     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}cc; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then :
3249   $as_echo_n "(cached) " >&6
3250 else
3251   if test -n "$CC"; then
3252   ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259     for ac_exec_ext in '' $ac_executable_extensions; do
3260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261     ac_cv_prog_CC="${ac_tool_prefix}cc"
3262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263     break 2
3264   fi
3265 done
3266   done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3275 else
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281   fi
3282 fi
3283 if test -z "$CC"; then
3284   # Extract the first word of "cc", so it can be a program name with args.
3285 set dummy cc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_prog_CC+set}" = set; then :
3289   $as_echo_n "(cached) " >&6
3290 else
3291   if test -n "$CC"; then
3292   ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294   ac_prog_rejected=no
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3303        ac_prog_rejected=yes
3304        continue
3305      fi
3306     ac_cv_prog_CC="cc"
3307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311   done
3312 IFS=$as_save_IFS
3313
3314 if test $ac_prog_rejected = yes; then
3315   # We found a bogon in the path, so make sure we never use it.
3316   set dummy $ac_cv_prog_CC
3317   shift
3318   if test $# != 0; then
3319     # We chose a different compiler from the bogus one.
3320     # However, it has the same basename, so the bogon will be chosen
3321     # first if we set CC to just the basename; use the full file name.
3322     shift
3323     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3324   fi
3325 fi
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 fi
3339 if test -z "$CC"; then
3340   if test -n "$ac_tool_prefix"; then
3341   for ac_prog in cl.exe
3342   do
3343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if test "${ac_cv_prog_CC+set}" = set; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$CC"; then
3351   ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380     test -n "$CC" && break
3381   done
3382 fi
3383 if test -z "$CC"; then
3384   ac_ct_CC=$CC
3385   for ac_prog in cl.exe
3386 do
3387   # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3392   $as_echo_n "(cached) " >&6
3393 else
3394   if test -n "$ac_ct_CC"; then
3395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402     for ac_exec_ext in '' $ac_executable_extensions; do
3403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404     ac_cv_prog_ac_ct_CC="$ac_prog"
3405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409   done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415 if test -n "$ac_ct_CC"; then
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3417 $as_echo "$ac_ct_CC" >&6; }
3418 else
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 fi
3422
3423
3424   test -n "$ac_ct_CC" && break
3425 done
3426
3427   if test "x$ac_ct_CC" = x; then
3428     CC=""
3429   else
3430     case $cross_compiling:$ac_tool_warned in
3431 yes:)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434 ac_tool_warned=yes ;;
3435 esac
3436     CC=$ac_ct_CC
3437   fi
3438 fi
3439
3440 fi
3441
3442
3443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error "no acceptable C compiler found in \$PATH
3446 See \`config.log' for more details." "$LINENO" 5; }
3447
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450 set X $ac_compile
3451 ac_compiler=$2
3452 for ac_option in --version -v -V -qversion; do
3453   { { ac_try="$ac_compiler $ac_option >&5"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461   ac_status=$?
3462   if test -s conftest.err; then
3463     sed '10a\
3464 ... rest of stderr output deleted ...
3465          10q' conftest.err >conftest.er1
3466     cat conftest.er1 >&5
3467     rm -f conftest.er1 conftest.err
3468   fi
3469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }
3471 done
3472
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 ac_clean_files_save=$ac_clean_files
3485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3486 # Try to create an executable without -o first, disregard a.out.
3487 # It will help us diagnose broken compilers, and finding out an intuition
3488 # of exeext.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492
3493 # The possible output files:
3494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495
3496 ac_rmfiles=
3497 for ac_file in $ac_files
3498 do
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3502   esac
3503 done
3504 rm -f $ac_rmfiles
3505
3506 if { { ac_try="$ac_link_default"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513   (eval "$ac_link_default") 2>&5
3514   ac_status=$?
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }; then :
3517   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3520 # so that the user can short-circuit this test for compilers unknown to
3521 # Autoconf.
3522 for ac_file in $ac_files ''
3523 do
3524   test -f "$ac_file" || continue
3525   case $ac_file in
3526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527         ;;
3528     [ab].out )
3529         # We found the default executable, but exeext='' is most
3530         # certainly right.
3531         break;;
3532     *.* )
3533         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534         then :; else
3535            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536         fi
3537         # We set ac_cv_exeext here because the later test for it is not
3538         # safe: cross compilers may not add the suffix if given an `-o'
3539         # argument, so we may need to know it at that point already.
3540         # Even if this section looks crufty: it has the advantage of
3541         # actually working.
3542         break;;
3543     * )
3544         break;;
3545   esac
3546 done
3547 test "$ac_cv_exeext" = no && ac_cv_exeext=
3548
3549 else
3550   ac_file=''
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3553 $as_echo "$ac_file" >&6; }
3554 if test -z "$ac_file"; then :
3555   $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 { as_fn_set_status 77
3561 as_fn_error "C compiler cannot create executables
3562 See \`config.log' for more details." "$LINENO" 5; }; }
3563 fi
3564 ac_exeext=$ac_cv_exeext
3565
3566 # Check that the compiler produces executables we can run.  If not, either
3567 # the compiler is broken, or we cross compile.
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3569 $as_echo_n "checking whether the C compiler works... " >&6; }
3570 # If not cross compiling, check that we can run a simple program.
3571 if test "$cross_compiling" != yes; then
3572   if { ac_try='./$ac_file'
3573   { { case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579   (eval "$ac_try") 2>&5
3580   ac_status=$?
3581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582   test $ac_status = 0; }; }; then
3583     cross_compiling=no
3584   else
3585     if test "$cross_compiling" = maybe; then
3586         cross_compiling=yes
3587     else
3588         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error "cannot run C compiled programs.
3591 If you meant to cross compile, use \`--host'.
3592 See \`config.log' for more details." "$LINENO" 5; }
3593     fi
3594   fi
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3598
3599 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3600 ac_clean_files=$ac_clean_files_save
3601 # Check that the compiler produces executables we can run.  If not, either
3602 # the compiler is broken, or we cross compile.
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3604 $as_echo_n "checking whether we are cross compiling... " >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3606 $as_echo "$cross_compiling" >&6; }
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609 $as_echo_n "checking for suffix of executables... " >&6; }
3610 if { { ac_try="$ac_link"
3611 case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617   (eval "$ac_link") 2>&5
3618   ac_status=$?
3619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620   test $ac_status = 0; }; then :
3621   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3623 # work properly (i.e., refer to `conftest.exe'), while it won't with
3624 # `rm'.
3625 for ac_file in conftest.exe conftest conftest.*; do
3626   test -f "$ac_file" || continue
3627   case $ac_file in
3628     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630           break;;
3631     * ) break;;
3632   esac
3633 done
3634 else
3635   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error "cannot compute suffix of executables: cannot compile and link
3638 See \`config.log' for more details." "$LINENO" 5; }
3639 fi
3640 rm -f conftest$ac_cv_exeext
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642 $as_echo "$ac_cv_exeext" >&6; }
3643
3644 rm -f conftest.$ac_ext
3645 EXEEXT=$ac_cv_exeext
3646 ac_exeext=$EXEEXT
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3648 $as_echo_n "checking for suffix of object files... " >&6; }
3649 if test "${ac_cv_objext+set}" = set; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.o conftest.obj
3664 if { { ac_try="$ac_compile"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_compile") 2>&5
3672   ac_status=$?
3673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674   test $ac_status = 0; }; then :
3675   for ac_file in conftest.o conftest.obj conftest.*; do
3676   test -f "$ac_file" || continue;
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3679     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3680        break;;
3681   esac
3682 done
3683 else
3684   $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error "cannot compute suffix of object files: cannot compile
3690 See \`config.log' for more details." "$LINENO" 5; }
3691 fi
3692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3695 $as_echo "$ac_cv_objext" >&6; }
3696 OBJEXT=$ac_cv_objext
3697 ac_objext=$OBJEXT
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3701   $as_echo_n "(cached) " >&6
3702 else
3703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h.  */
3705
3706 int
3707 main ()
3708 {
3709 #ifndef __GNUC__
3710        choke me
3711 #endif
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718   ac_compiler_gnu=yes
3719 else
3720   ac_compiler_gnu=no
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3729   GCC=yes
3730 else
3731   GCC=
3732 fi
3733 ac_test_CFLAGS=${CFLAGS+set}
3734 ac_save_CFLAGS=$CFLAGS
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3737 if test "${ac_cv_prog_cc_g+set}" = set; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   ac_save_c_werror_flag=$ac_c_werror_flag
3741    ac_c_werror_flag=yes
3742    ac_cv_prog_cc_g=no
3743    CFLAGS="-g"
3744    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h.  */
3746
3747 int
3748 main ()
3749 {
3750
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756   ac_cv_prog_cc_g=yes
3757 else
3758   CFLAGS=""
3759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761
3762 int
3763 main ()
3764 {
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771
3772 else
3773   ac_c_werror_flag=$ac_save_c_werror_flag
3774          CFLAGS="-g"
3775          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777
3778 int
3779 main ()
3780 {
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787   ac_cv_prog_cc_g=yes
3788 fi
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794    ac_c_werror_flag=$ac_save_c_werror_flag
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3797 $as_echo "$ac_cv_prog_cc_g" >&6; }
3798 if test "$ac_test_CFLAGS" = set; then
3799   CFLAGS=$ac_save_CFLAGS
3800 elif test $ac_cv_prog_cc_g = yes; then
3801   if test "$GCC" = yes; then
3802     CFLAGS="-g -O2"
3803   else
3804     CFLAGS="-g"
3805   fi
3806 else
3807   if test "$GCC" = yes; then
3808     CFLAGS="-O2"
3809   else
3810     CFLAGS=
3811   fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3815 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   ac_cv_prog_cc_c89=no
3819 ac_save_CC=$CC
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822 #include <stdarg.h>
3823 #include <stdio.h>
3824 #include <sys/types.h>
3825 #include <sys/stat.h>
3826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3827 struct buf { int x; };
3828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829 static char *e (p, i)
3830      char **p;
3831      int i;
3832 {
3833   return p[i];
3834 }
3835 static char *f (char * (*g) (char **, int), char **p, ...)
3836 {
3837   char *s;
3838   va_list v;
3839   va_start (v,p);
3840   s = g (p, va_arg (v,int));
3841   va_end (v);
3842   return s;
3843 }
3844
3845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3846    function prototypes and stuff, but not '\xHH' hex character constants.
3847    These don't provoke an error unfortunately, instead are silently treated
3848    as 'x'.  The following induces an error, until -std is added to get
3849    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3850    array size at least.  It's necessary to write '\x00'==0 to get something
3851    that's true only with -std.  */
3852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853
3854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855    inside strings and character constants.  */
3856 #define FOO(x) 'x'
3857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858
3859 int test (int i, double x);
3860 struct s1 {int (*f) (int a);};
3861 struct s2 {int (*f) (double a);};
3862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3863 int argc;
3864 char **argv;
3865 int
3866 main ()
3867 {
3868 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 do
3876   CC="$ac_save_CC $ac_arg"
3877   if ac_fn_c_try_compile "$LINENO"; then :
3878   ac_cv_prog_cc_c89=$ac_arg
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext
3881   test "x$ac_cv_prog_cc_c89" != "xno" && break
3882 done
3883 rm -f conftest.$ac_ext
3884 CC=$ac_save_CC
3885
3886 fi
3887 # AC_CACHE_VAL
3888 case "x$ac_cv_prog_cc_c89" in
3889   x)
3890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891 $as_echo "none needed" >&6; } ;;
3892   xno)
3893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894 $as_echo "unsupported" >&6; } ;;
3895   *)
3896     CC="$CC $ac_cv_prog_cc_c89"
3897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3899 esac
3900 if test "x$ac_cv_prog_cc_c89" != xno; then :
3901
3902 fi
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 DEPDIR="${am__leading_dot}deps"
3910
3911 ac_config_commands="$ac_config_commands depfiles"
3912
3913
3914 am_make=${MAKE-make}
3915 cat > confinc << 'END'
3916 am__doit:
3917         @echo this is the am__doit target
3918 .PHONY: am__doit
3919 END
3920 # If we don't find an include directive, just comment out the code.
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3922 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3923 am__include="#"
3924 am__quote=
3925 _am_result=none
3926 # First try GNU make style include.
3927 echo "include confinc" > confmf
3928 # Ignore all kinds of additional output from `make'.
3929 case `$am_make -s -f confmf 2> /dev/null` in #(
3930 *the\ am__doit\ target*)
3931   am__include=include
3932   am__quote=
3933   _am_result=GNU
3934   ;;
3935 esac
3936 # Now try BSD make style include.
3937 if test "$am__include" = "#"; then
3938    echo '.include "confinc"' > confmf
3939    case `$am_make -s -f confmf 2> /dev/null` in #(
3940    *the\ am__doit\ target*)
3941      am__include=.include
3942      am__quote="\""
3943      _am_result=BSD
3944      ;;
3945    esac
3946 fi
3947
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3950 $as_echo "$_am_result" >&6; }
3951 rm -f confinc confmf
3952
3953 # Check whether --enable-dependency-tracking was given.
3954 if test "${enable_dependency_tracking+set}" = set; then :
3955   enableval=$enable_dependency_tracking;
3956 fi
3957
3958 if test "x$enable_dependency_tracking" != xno; then
3959   am_depcomp="$ac_aux_dir/depcomp"
3960   AMDEPBACKSLASH='\'
3961 fi
3962  if test "x$enable_dependency_tracking" != xno; then
3963   AMDEP_TRUE=
3964   AMDEP_FALSE='#'
3965 else
3966   AMDEP_TRUE='#'
3967   AMDEP_FALSE=
3968 fi
3969
3970
3971
3972 depcc="$CC"   am_compiler_list=
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3975 $as_echo_n "checking dependency style of $depcc... " >&6; }
3976 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3977   $as_echo_n "(cached) " >&6
3978 else
3979   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3980   # We make a subdir and do the tests there.  Otherwise we can end up
3981   # making bogus files that we don't know about and never remove.  For
3982   # instance it was reported that on HP-UX the gcc test will end up
3983   # making a dummy file named `D' -- because `-MD' means `put the output
3984   # in D'.
3985   mkdir conftest.dir
3986   # Copy depcomp to subdir because otherwise we won't find it if we're
3987   # using a relative directory.
3988   cp "$am_depcomp" conftest.dir
3989   cd conftest.dir
3990   # We will build objects and dependencies in a subdirectory because
3991   # it helps to detect inapplicable dependency modes.  For instance
3992   # both Tru64's cc and ICC support -MD to output dependencies as a
3993   # side effect of compilation, but ICC will put the dependencies in
3994   # the current directory while Tru64 will put them in the object
3995   # directory.
3996   mkdir sub
3997
3998   am_cv_CC_dependencies_compiler_type=none
3999   if test "$am_compiler_list" = ""; then
4000      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4001   fi
4002   am__universal=false
4003   case " $depcc " in #(
4004      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4005      esac
4006
4007   for depmode in $am_compiler_list; do
4008     # Setup a source with many dependencies, because some compilers
4009     # like to wrap large dependency lists on column 80 (with \), and
4010     # we should not choose a depcomp mode which is confused by this.
4011     #
4012     # We need to recreate these files for each test, as the compiler may
4013     # overwrite some of them when testing with obscure command lines.
4014     # This happens at least with the AIX C compiler.
4015     : > sub/conftest.c
4016     for i in 1 2 3 4 5 6; do
4017       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4018       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4019       # Solaris 8's {/usr,}/bin/sh.
4020       touch sub/conftst$i.h
4021     done
4022     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023
4024     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4025     # mode.  It turns out that the SunPro C++ compiler does not properly
4026     # handle `-M -o', and we need to detect this.  Also, some Intel
4027     # versions had trouble with output in subdirs
4028     am__obj=sub/conftest.${OBJEXT-o}
4029     am__minus_obj="-o $am__obj"
4030     case $depmode in
4031     gcc)
4032       # This depmode causes a compiler race in universal mode.
4033       test "$am__universal" = false || continue
4034       ;;
4035     nosideeffect)
4036       # after this tag, mechanisms are not by side-effect, so they'll
4037       # only be used when explicitly requested
4038       if test "x$enable_dependency_tracking" = xyes; then
4039         continue
4040       else
4041         break
4042       fi
4043       ;;
4044     msvisualcpp | msvcmsys)
4045       # This compiler won't grok `-c -o', but also, the minuso test has
4046       # not run yet.  These depmodes are late enough in the game, and
4047       # so weak that their functioning should not be impacted.
4048       am__obj=conftest.${OBJEXT-o}
4049       am__minus_obj=
4050       ;;
4051     none) break ;;
4052     esac
4053     if depmode=$depmode \
4054        source=sub/conftest.c object=$am__obj \
4055        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4056        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4057          >/dev/null 2>conftest.err &&
4058        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4059        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4060        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4061        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4062       # icc doesn't choke on unknown options, it will just issue warnings
4063       # or remarks (even with -Werror).  So we grep stderr for any message
4064       # that says an option was ignored or not supported.
4065       # When given -MP, icc 7.0 and 7.1 complain thusly:
4066       #   icc: Command line warning: ignoring option '-M'; no argument required
4067       # The diagnosis changed in icc 8.0:
4068       #   icc: Command line remark: option '-MP' not supported
4069       if (grep 'ignoring option' conftest.err ||
4070           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4071         am_cv_CC_dependencies_compiler_type=$depmode
4072         break
4073       fi
4074     fi
4075   done
4076
4077   cd ..
4078   rm -rf conftest.dir
4079 else
4080   am_cv_CC_dependencies_compiler_type=none
4081 fi
4082
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4085 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4087
4088  if
4089   test "x$enable_dependency_tracking" != xno \
4090   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4091   am__fastdepCC_TRUE=
4092   am__fastdepCC_FALSE='#'
4093 else
4094   am__fastdepCC_TRUE='#'
4095   am__fastdepCC_FALSE=
4096 fi
4097
4098
4099 ac_ext=go
4100 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4101 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compile_gnu=yes
4103 if test -n "$ac_tool_prefix"; then
4104   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if test "${ac_cv_prog_GOC+set}" = set; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   if test -n "$GOC"; then
4112   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119     for ac_exec_ext in '' $ac_executable_extensions; do
4120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126   done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 GOC=$ac_cv_prog_GOC
4132 if test -n "$GOC"; then
4133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4134 $as_echo "$GOC" >&6; }
4135 else
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139
4140
4141 fi
4142 if test -z "$ac_cv_prog_GOC"; then
4143   ac_ct_GOC=$GOC
4144   # Extract the first word of "gccgo", so it can be a program name with args.
4145 set dummy gccgo; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   if test -n "$ac_ct_GOC"; then
4152   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159     for ac_exec_ext in '' $ac_executable_extensions; do
4160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161     ac_cv_prog_ac_ct_GOC="gccgo"
4162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166   done
4167 IFS=$as_save_IFS
4168
4169 fi
4170 fi
4171 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4172 if test -n "$ac_ct_GOC"; then
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4174 $as_echo "$ac_ct_GOC" >&6; }
4175 else
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4178 fi
4179
4180   if test "x$ac_ct_GOC" = x; then
4181     GOC=""
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189     GOC=$ac_ct_GOC
4190   fi
4191 else
4192   GOC="$ac_cv_prog_GOC"
4193 fi
4194
4195 if test -z "$GOC"; then
4196   if test -n "$ac_tool_prefix"; then
4197     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4198 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if test "${ac_cv_prog_GOC+set}" = set; then :
4202   $as_echo_n "(cached) " >&6
4203 else
4204   if test -n "$GOC"; then
4205   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212     for ac_exec_ext in '' $ac_executable_extensions; do
4213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219   done
4220 IFS=$as_save_IFS
4221
4222 fi
4223 fi
4224 GOC=$ac_cv_prog_GOC
4225 if test -n "$GOC"; then
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4227 $as_echo "$GOC" >&6; }
4228 else
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232
4233
4234   fi
4235 fi
4236 if test -z "$GOC"; then
4237   # Extract the first word of "gccgo", so it can be a program name with args.
4238 set dummy gccgo; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if test "${ac_cv_prog_GOC+set}" = set; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   if test -n "$GOC"; then
4245   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4246 else
4247   ac_prog_rejected=no
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253     for ac_exec_ext in '' $ac_executable_extensions; do
4254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4256        ac_prog_rejected=yes
4257        continue
4258      fi
4259     ac_cv_prog_GOC="gccgo"
4260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264   done
4265 IFS=$as_save_IFS
4266
4267 if test $ac_prog_rejected = yes; then
4268   # We found a bogon in the path, so make sure we never use it.
4269   set dummy $ac_cv_prog_GOC
4270   shift
4271   if test $# != 0; then
4272     # We chose a different compiler from the bogus one.
4273     # However, it has the same basename, so the bogon will be chosen
4274     # first if we set GOC to just the basename; use the full file name.
4275     shift
4276     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4277   fi
4278 fi
4279 fi
4280 fi
4281 GOC=$ac_cv_prog_GOC
4282 if test -n "$GOC"; then
4283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4284 $as_echo "$GOC" >&6; }
4285 else
4286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4288 fi
4289
4290
4291 fi
4292
4293
4294 # Provide some information about the compiler.
4295 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4296 set X $ac_compile
4297 ac_compiler=$2
4298 { { ac_try="$ac_compiler --version >&5"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305   (eval "$ac_compiler --version >&5") 2>conftest.err
4306   ac_status=$?
4307   if test -s conftest.err; then
4308     sed '10a\
4309 ... rest of stderr output deleted ...
4310          10q' conftest.err >conftest.er1
4311     cat conftest.er1 >&5
4312     rm -f conftest.er1 conftest.err
4313   fi
4314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315   test $ac_status = 0; }
4316 GOCFLAGS="-g -O2"
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323
4324
4325
4326
4327
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4329 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4330     # Check whether --enable-maintainer-mode was given.
4331 if test "${enable_maintainer_mode+set}" = set; then :
4332   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4333 else
4334   USE_MAINTAINER_MODE=no
4335 fi
4336
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4338 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4339    if test $USE_MAINTAINER_MODE = yes; then
4340   MAINTAINER_MODE_TRUE=
4341   MAINTAINER_MODE_FALSE='#'
4342 else
4343   MAINTAINER_MODE_TRUE='#'
4344   MAINTAINER_MODE_FALSE=
4345 fi
4346
4347   MAINT=$MAINTAINER_MODE_TRUE
4348
4349
4350
4351
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4358 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4359 # On Suns, sometimes $CPP names a directory.
4360 if test -n "$CPP" && test -d "$CPP"; then
4361   CPP=
4362 fi
4363 if test -z "$CPP"; then
4364   if test "${ac_cv_prog_CPP+set}" = set; then :
4365   $as_echo_n "(cached) " >&6
4366 else
4367       # Double quotes because CPP needs to be expanded
4368     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369     do
4370       ac_preproc_ok=false
4371 for ac_c_preproc_warn_flag in '' yes
4372 do
4373   # Use a header file that comes with gcc, so configuring glibc
4374   # with a fresh cross-compiler works.
4375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376   # <limits.h> exists even on freestanding compilers.
4377   # On the NeXT, cc -E runs the code through the compiler's parser,
4378   # not just through cpp. "Syntax error" is here to catch this case.
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381 #ifdef __STDC__
4382 # include <limits.h>
4383 #else
4384 # include <assert.h>
4385 #endif
4386                      Syntax error
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389
4390 else
4391   # Broken: fails on valid input.
4392 continue
4393 fi
4394 rm -f conftest.err conftest.$ac_ext
4395
4396   # OK, works on sane cases.  Now check whether nonexistent headers
4397   # can be detected and how.
4398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400 #include <ac_nonexistent.h>
4401 _ACEOF
4402 if ac_fn_c_try_cpp "$LINENO"; then :
4403   # Broken: success on invalid input.
4404 continue
4405 else
4406   # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4409 fi
4410 rm -f conftest.err conftest.$ac_ext
4411
4412 done
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then :
4416   break
4417 fi
4418
4419     done
4420     ac_cv_prog_CPP=$CPP
4421
4422 fi
4423   CPP=$ac_cv_prog_CPP
4424 else
4425   ac_cv_prog_CPP=$CPP
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4428 $as_echo "$CPP" >&6; }
4429 ac_preproc_ok=false
4430 for ac_c_preproc_warn_flag in '' yes
4431 do
4432   # Use a header file that comes with gcc, so configuring glibc
4433   # with a fresh cross-compiler works.
4434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435   # <limits.h> exists even on freestanding compilers.
4436   # On the NeXT, cc -E runs the code through the compiler's parser,
4437   # not just through cpp. "Syntax error" is here to catch this case.
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440 #ifdef __STDC__
4441 # include <limits.h>
4442 #else
4443 # include <assert.h>
4444 #endif
4445                      Syntax error
4446 _ACEOF
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448
4449 else
4450   # Broken: fails on valid input.
4451 continue
4452 fi
4453 rm -f conftest.err conftest.$ac_ext
4454
4455   # OK, works on sane cases.  Now check whether nonexistent headers
4456   # can be detected and how.
4457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 #include <ac_nonexistent.h>
4460 _ACEOF
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4462   # Broken: success on invalid input.
4463 continue
4464 else
4465   # Passes both tests.
4466 ac_preproc_ok=:
4467 break
4468 fi
4469 rm -f conftest.err conftest.$ac_ext
4470
4471 done
4472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4473 rm -f conftest.err conftest.$ac_ext
4474 if $ac_preproc_ok; then :
4475
4476 else
4477   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4480 See \`config.log' for more details." "$LINENO" 5; }
4481 fi
4482
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4491 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4492 if test "${ac_cv_path_GREP+set}" = set; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   if test -z "$GREP"; then
4496   ac_path_GREP_found=false
4497   # Loop through the user's path and test for each of PROGNAME-LIST
4498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503     for ac_prog in grep ggrep; do
4504     for ac_exec_ext in '' $ac_executable_extensions; do
4505       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4506       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4507 # Check for GNU ac_path_GREP and select it if it is found.
4508   # Check for GNU $ac_path_GREP
4509 case `"$ac_path_GREP" --version 2>&1` in
4510 *GNU*)
4511   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4512 *)
4513   ac_count=0
4514   $as_echo_n 0123456789 >"conftest.in"
4515   while :
4516   do
4517     cat "conftest.in" "conftest.in" >"conftest.tmp"
4518     mv "conftest.tmp" "conftest.in"
4519     cp "conftest.in" "conftest.nl"
4520     $as_echo 'GREP' >> "conftest.nl"
4521     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4522     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4523     as_fn_arith $ac_count + 1 && ac_count=$as_val
4524     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4525       # Best one so far, save it but keep looking for a better one
4526       ac_cv_path_GREP="$ac_path_GREP"
4527       ac_path_GREP_max=$ac_count
4528     fi
4529     # 10*(2^10) chars as input seems more than enough
4530     test $ac_count -gt 10 && break
4531   done
4532   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533 esac
4534
4535       $ac_path_GREP_found && break 3
4536     done
4537   done
4538   done
4539 IFS=$as_save_IFS
4540   if test -z "$ac_cv_path_GREP"; then
4541     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542   fi
4543 else
4544   ac_cv_path_GREP=$GREP
4545 fi
4546
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4549 $as_echo "$ac_cv_path_GREP" >&6; }
4550  GREP="$ac_cv_path_GREP"
4551
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4554 $as_echo_n "checking for egrep... " >&6; }
4555 if test "${ac_cv_path_EGREP+set}" = set; then :
4556   $as_echo_n "(cached) " >&6
4557 else
4558   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4559    then ac_cv_path_EGREP="$GREP -E"
4560    else
4561      if test -z "$EGREP"; then
4562   ac_path_EGREP_found=false
4563   # Loop through the user's path and test for each of PROGNAME-LIST
4564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569     for ac_prog in egrep; do
4570     for ac_exec_ext in '' $ac_executable_extensions; do
4571       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4572       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4573 # Check for GNU ac_path_EGREP and select it if it is found.
4574   # Check for GNU $ac_path_EGREP
4575 case `"$ac_path_EGREP" --version 2>&1` in
4576 *GNU*)
4577   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4578 *)
4579   ac_count=0
4580   $as_echo_n 0123456789 >"conftest.in"
4581   while :
4582   do
4583     cat "conftest.in" "conftest.in" >"conftest.tmp"
4584     mv "conftest.tmp" "conftest.in"
4585     cp "conftest.in" "conftest.nl"
4586     $as_echo 'EGREP' >> "conftest.nl"
4587     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589     as_fn_arith $ac_count + 1 && ac_count=$as_val
4590     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4591       # Best one so far, save it but keep looking for a better one
4592       ac_cv_path_EGREP="$ac_path_EGREP"
4593       ac_path_EGREP_max=$ac_count
4594     fi
4595     # 10*(2^10) chars as input seems more than enough
4596     test $ac_count -gt 10 && break
4597   done
4598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599 esac
4600
4601       $ac_path_EGREP_found && break 3
4602     done
4603   done
4604   done
4605 IFS=$as_save_IFS
4606   if test -z "$ac_cv_path_EGREP"; then
4607     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608   fi
4609 else
4610   ac_cv_path_EGREP=$EGREP
4611 fi
4612
4613    fi
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4616 $as_echo "$ac_cv_path_EGREP" >&6; }
4617  EGREP="$ac_cv_path_EGREP"
4618
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4621 $as_echo_n "checking for ANSI C header files... " >&6; }
4622 if test "${ac_cv_header_stdc+set}" = set; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h.  */
4627 #include <stdlib.h>
4628 #include <stdarg.h>
4629 #include <string.h>
4630 #include <float.h>
4631
4632 int
4633 main ()
4634 {
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641   ac_cv_header_stdc=yes
4642 else
4643   ac_cv_header_stdc=no
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646
4647 if test $ac_cv_header_stdc = yes; then
4648   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h.  */
4651 #include <string.h>
4652
4653 _ACEOF
4654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4655   $EGREP "memchr" >/dev/null 2>&1; then :
4656
4657 else
4658   ac_cv_header_stdc=no
4659 fi
4660 rm -f conftest*
4661
4662 fi
4663
4664 if test $ac_cv_header_stdc = yes; then
4665   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h.  */
4668 #include <stdlib.h>
4669
4670 _ACEOF
4671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4672   $EGREP "free" >/dev/null 2>&1; then :
4673
4674 else
4675   ac_cv_header_stdc=no
4676 fi
4677 rm -f conftest*
4678
4679 fi
4680
4681 if test $ac_cv_header_stdc = yes; then
4682   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4683   if test "$cross_compiling" = yes; then :
4684   :
4685 else
4686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h.  */
4688 #include <ctype.h>
4689 #include <stdlib.h>
4690 #if ((' ' & 0x0FF) == 0x020)
4691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4693 #else
4694 # define ISLOWER(c) \
4695                    (('a' <= (c) && (c) <= 'i') \
4696                      || ('j' <= (c) && (c) <= 'r') \
4697                      || ('s' <= (c) && (c) <= 'z'))
4698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4699 #endif
4700
4701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4702 int
4703 main ()
4704 {
4705   int i;
4706   for (i = 0; i < 256; i++)
4707     if (XOR (islower (i), ISLOWER (i))
4708         || toupper (i) != TOUPPER (i))
4709       return 2;
4710   return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_run "$LINENO"; then :
4714
4715 else
4716   ac_cv_header_stdc=no
4717 fi
4718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4719   conftest.$ac_objext conftest.beam conftest.$ac_ext
4720 fi
4721
4722 fi
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4725 $as_echo "$ac_cv_header_stdc" >&6; }
4726 if test $ac_cv_header_stdc = yes; then
4727
4728 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4729
4730 fi
4731
4732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734                   inttypes.h stdint.h unistd.h
4735 do :
4736   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4738 "
4739 eval as_val=\$$as_ac_Header
4740    if test "x$as_val" = x""yes; then :
4741   cat >>confdefs.h <<_ACEOF
4742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743 _ACEOF
4744
4745 fi
4746
4747 done
4748
4749
4750 $ac_includes_default
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4753 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4754 if test "${ac_cv_path_SED+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4758      for ac_i in 1 2 3 4 5 6 7; do
4759        ac_script="$ac_script$as_nl$ac_script"
4760      done
4761      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4762      { ac_script=; unset ac_script;}
4763      if test -z "$SED"; then
4764   ac_path_SED_found=false
4765   # Loop through the user's path and test for each of PROGNAME-LIST
4766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771     for ac_prog in sed gsed; do
4772     for ac_exec_ext in '' $ac_executable_extensions; do
4773       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4774       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4775 # Check for GNU ac_path_SED and select it if it is found.
4776   # Check for GNU $ac_path_SED
4777 case `"$ac_path_SED" --version 2>&1` in
4778 *GNU*)
4779   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4780 *)
4781   ac_count=0
4782   $as_echo_n 0123456789 >"conftest.in"
4783   while :
4784   do
4785     cat "conftest.in" "conftest.in" >"conftest.tmp"
4786     mv "conftest.tmp" "conftest.in"
4787     cp "conftest.in" "conftest.nl"
4788     $as_echo '' >> "conftest.nl"
4789     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4790     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4791     as_fn_arith $ac_count + 1 && ac_count=$as_val
4792     if test $ac_count -gt ${ac_path_SED_max-0}; then
4793       # Best one so far, save it but keep looking for a better one
4794       ac_cv_path_SED="$ac_path_SED"
4795       ac_path_SED_max=$ac_count
4796     fi
4797     # 10*(2^10) chars as input seems more than enough
4798     test $ac_count -gt 10 && break
4799   done
4800   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801 esac
4802
4803       $ac_path_SED_found && break 3
4804     done
4805   done
4806   done
4807 IFS=$as_save_IFS
4808   if test -z "$ac_cv_path_SED"; then
4809     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4810   fi
4811 else
4812   ac_cv_path_SED=$SED
4813 fi
4814
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4817 $as_echo "$ac_cv_path_SED" >&6; }
4818  SED="$ac_cv_path_SED"
4819   rm -f conftest.sed
4820
4821 test -z "$SED" && SED=sed
4822 Xsed="$SED -e 1s/^X//"
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4835 $as_echo_n "checking for fgrep... " >&6; }
4836 if test "${ac_cv_path_FGREP+set}" = set; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4840    then ac_cv_path_FGREP="$GREP -F"
4841    else
4842      if test -z "$FGREP"; then
4843   ac_path_FGREP_found=false
4844   # Loop through the user's path and test for each of PROGNAME-LIST
4845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847 do
4848   IFS=$as_save_IFS
4849   test -z "$as_dir" && as_dir=.
4850     for ac_prog in fgrep; do
4851     for ac_exec_ext in '' $ac_executable_extensions; do
4852       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4853       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4854 # Check for GNU ac_path_FGREP and select it if it is found.
4855   # Check for GNU $ac_path_FGREP
4856 case `"$ac_path_FGREP" --version 2>&1` in
4857 *GNU*)
4858   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4859 *)
4860   ac_count=0
4861   $as_echo_n 0123456789 >"conftest.in"
4862   while :
4863   do
4864     cat "conftest.in" "conftest.in" >"conftest.tmp"
4865     mv "conftest.tmp" "conftest.in"
4866     cp "conftest.in" "conftest.nl"
4867     $as_echo 'FGREP' >> "conftest.nl"
4868     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870     as_fn_arith $ac_count + 1 && ac_count=$as_val
4871     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4872       # Best one so far, save it but keep looking for a better one
4873       ac_cv_path_FGREP="$ac_path_FGREP"
4874       ac_path_FGREP_max=$ac_count
4875     fi
4876     # 10*(2^10) chars as input seems more than enough
4877     test $ac_count -gt 10 && break
4878   done
4879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880 esac
4881
4882       $ac_path_FGREP_found && break 3
4883     done
4884   done
4885   done
4886 IFS=$as_save_IFS
4887   if test -z "$ac_cv_path_FGREP"; then
4888     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4889   fi
4890 else
4891   ac_cv_path_FGREP=$FGREP
4892 fi
4893
4894    fi
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4897 $as_echo "$ac_cv_path_FGREP" >&6; }
4898  FGREP="$ac_cv_path_FGREP"
4899
4900
4901 test -z "$GREP" && GREP=grep
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4920 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4921 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4922
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4924 $as_echo_n "checking how to print strings... " >&6; }
4925 # Test print first, because it will be a builtin if present.
4926 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4927    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4928   ECHO='print -r --'
4929 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4930   ECHO='printf %s\n'
4931 else
4932   # Use this function as a fallback that always works.
4933   func_fallback_echo ()
4934   {
4935     eval 'cat <<_LTECHO_EOF
4936 $1
4937 _LTECHO_EOF'
4938   }
4939   ECHO='func_fallback_echo'
4940 fi
4941
4942 # func_echo_all arg...
4943 # Invoke $ECHO with all args, space-separated.
4944 func_echo_all ()
4945 {
4946     $ECHO ""
4947 }
4948
4949 case "$ECHO" in
4950   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4951 $as_echo "printf" >&6; } ;;
4952   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4953 $as_echo "print -r" >&6; } ;;
4954   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4955 $as_echo "cat" >&6; } ;;
4956 esac
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 # Check whether --with-gnu-ld was given.
4974 if test "${with_gnu_ld+set}" = set; then :
4975   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4976 else
4977   with_gnu_ld=no
4978 fi
4979
4980 ac_prog=ld
4981 if test "$GCC" = yes; then
4982   # Check if gcc -print-prog-name=ld gives a path.
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4984 $as_echo_n "checking for ld used by $CC... " >&6; }
4985   case $host in
4986   *-*-mingw*)
4987     # gcc leaves a trailing carriage return which upsets mingw
4988     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4989   *)
4990     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4991   esac
4992   case $ac_prog in
4993     # Accept absolute paths.
4994     [\\/]* | ?:[\\/]*)
4995       re_direlt='/[^/][^/]*/\.\./'
4996       # Canonicalize the pathname of ld
4997       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4998       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4999         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5000       done
5001       test -z "$LD" && LD="$ac_prog"
5002       ;;
5003   "")
5004     # If it fails, then pretend we aren't using GCC.
5005     ac_prog=ld
5006     ;;
5007   *)
5008     # If it is relative, then search for the first ld in PATH.
5009     with_gnu_ld=unknown
5010     ;;
5011   esac
5012 elif test "$with_gnu_ld" = yes; then
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5014 $as_echo_n "checking for GNU ld... " >&6; }
5015 else
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5017 $as_echo_n "checking for non-GNU ld... " >&6; }
5018 fi
5019 if test "${lt_cv_path_LD+set}" = set; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   if test -z "$LD"; then
5023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5024   for ac_dir in $PATH; do
5025     IFS="$lt_save_ifs"
5026     test -z "$ac_dir" && ac_dir=.
5027     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5028       lt_cv_path_LD="$ac_dir/$ac_prog"
5029       # Check to see if the program is GNU ld.  I'd rather use --version,
5030       # but apparently some variants of GNU ld only accept -v.
5031       # Break only if it was the GNU/non-GNU ld that we prefer.
5032       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5033       *GNU* | *'with BFD'*)
5034         test "$with_gnu_ld" != no && break
5035         ;;
5036       *)
5037         test "$with_gnu_ld" != yes && break
5038         ;;
5039       esac
5040     fi
5041   done
5042   IFS="$lt_save_ifs"
5043 else
5044   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5045 fi
5046 fi
5047
5048 LD="$lt_cv_path_LD"
5049 if test -n "$LD"; then
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5051 $as_echo "$LD" >&6; }
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5058 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5059 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5063 case `$LD -v 2>&1 </dev/null` in
5064 *GNU* | *'with BFD'*)
5065   lt_cv_prog_gnu_ld=yes
5066   ;;
5067 *)
5068   lt_cv_prog_gnu_ld=no
5069   ;;
5070 esac
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5073 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5074 with_gnu_ld=$lt_cv_prog_gnu_ld
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084 if test -n "$ac_tool_prefix"; then
5085   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   if test -n "$RANLIB"; then
5093   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107   done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 RANLIB=$ac_cv_prog_RANLIB
5113 if test -n "$RANLIB"; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5115 $as_echo "$RANLIB" >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 fi
5123 if test -z "$ac_cv_prog_RANLIB"; then
5124   ac_ct_RANLIB=$RANLIB
5125   # Extract the first word of "ranlib", so it can be a program name with args.
5126 set dummy ranlib; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   if test -n "$ac_ct_RANLIB"; then
5133   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142     ac_cv_prog_ac_ct_RANLIB="ranlib"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5153 if test -n "$ac_ct_RANLIB"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5155 $as_echo "$ac_ct_RANLIB" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161   if test "x$ac_ct_RANLIB" = x; then
5162     RANLIB=":"
5163   else
5164     case $cross_compiling:$ac_tool_warned in
5165 yes:)
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168 ac_tool_warned=yes ;;
5169 esac
5170     RANLIB=$ac_ct_RANLIB
5171   fi
5172 else
5173   RANLIB="$ac_cv_prog_RANLIB"
5174 fi
5175
5176 if test -n "$ac_tool_prefix"; then
5177   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5178 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   if test -n "$OBJCOPY"; then
5185   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192     for ac_exec_ext in '' $ac_executable_extensions; do
5193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199   done
5200 IFS=$as_save_IFS
5201
5202 fi
5203 fi
5204 OBJCOPY=$ac_cv_prog_OBJCOPY
5205 if test -n "$OBJCOPY"; then
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5207 $as_echo "$OBJCOPY" >&6; }
5208 else
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 fi
5212
5213
5214 fi
5215 if test -z "$ac_cv_prog_OBJCOPY"; then
5216   ac_ct_OBJCOPY=$OBJCOPY
5217   # Extract the first word of "objcopy", so it can be a program name with args.
5218 set dummy objcopy; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   if test -n "$ac_ct_OBJCOPY"; then
5225   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239   done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5245 if test -n "$ac_ct_OBJCOPY"; then
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5247 $as_echo "$ac_ct_OBJCOPY" >&6; }
5248 else
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253   if test "x$ac_ct_OBJCOPY" = x; then
5254     OBJCOPY="missing-objcopy"
5255   else
5256     case $cross_compiling:$ac_tool_warned in
5257 yes:)
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260 ac_tool_warned=yes ;;
5261 esac
5262     OBJCOPY=$ac_ct_OBJCOPY
5263   fi
5264 else
5265   OBJCOPY="$ac_cv_prog_OBJCOPY"
5266 fi
5267
5268
5269 enable_dlopen=yes
5270
5271
5272
5273 case `pwd` in
5274   *\ * | *\     *)
5275     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5276 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5277 esac
5278
5279
5280
5281 macro_version='2.2.7a'
5282 macro_revision='1.3134'
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 ltmain="$ac_aux_dir/ltmain.sh"
5297
5298 # Backslashify metacharacters that are still active within
5299 # double-quoted strings.
5300 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5301
5302 # Same as above, but do not quote variable references.
5303 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5304
5305 # Sed substitution to delay expansion of an escaped shell variable in a
5306 # double_quote_subst'ed string.
5307 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5308
5309 # Sed substitution to delay expansion of an escaped single quote.
5310 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5311
5312 # Sed substitution to avoid accidental globbing in evaled expressions
5313 no_glob_subst='s/\*/\\\*/g'
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5316 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5317 if test "${lt_cv_path_NM+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$NM"; then
5321   # Let the user override the test.
5322   lt_cv_path_NM="$NM"
5323 else
5324   lt_nm_to_check="${ac_tool_prefix}nm"
5325   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5326     lt_nm_to_check="$lt_nm_to_check nm"
5327   fi
5328   for lt_tmp_nm in $lt_nm_to_check; do
5329     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5330     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5331       IFS="$lt_save_ifs"
5332       test -z "$ac_dir" && ac_dir=.
5333       tmp_nm="$ac_dir/$lt_tmp_nm"
5334       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5335         # Check to see if the nm accepts a BSD-compat flag.
5336         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5337         #   nm: unknown option "B" ignored
5338         # Tru64's nm complains that /dev/null is an invalid object file
5339         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5340         */dev/null* | *'Invalid file or object type'*)
5341           lt_cv_path_NM="$tmp_nm -B"
5342           break
5343           ;;
5344         *)
5345           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5346           */dev/null*)
5347             lt_cv_path_NM="$tmp_nm -p"
5348             break
5349             ;;
5350           *)
5351             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5352             continue # so that we can try to find one that supports BSD flags
5353             ;;
5354           esac
5355           ;;
5356         esac
5357       fi
5358     done
5359     IFS="$lt_save_ifs"
5360   done
5361   : ${lt_cv_path_NM=no}
5362 fi
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5365 $as_echo "$lt_cv_path_NM" >&6; }
5366 if test "$lt_cv_path_NM" != "no"; then
5367   NM="$lt_cv_path_NM"
5368 else
5369   # Didn't find any BSD compatible name lister, look for dumpbin.
5370   if test -n "$DUMPBIN"; then :
5371     # Let the user override the test.
5372   else
5373     if test -n "$ac_tool_prefix"; then
5374   for ac_prog in dumpbin "link -dump"
5375   do
5376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   if test -n "$DUMPBIN"; then
5384   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391     for ac_exec_ext in '' $ac_executable_extensions; do
5392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398   done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 DUMPBIN=$ac_cv_prog_DUMPBIN
5404 if test -n "$DUMPBIN"; then
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5406 $as_echo "$DUMPBIN" >&6; }
5407 else
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410 fi
5411
5412
5413     test -n "$DUMPBIN" && break
5414   done
5415 fi
5416 if test -z "$DUMPBIN"; then
5417   ac_ct_DUMPBIN=$DUMPBIN
5418   for ac_prog in dumpbin "link -dump"
5419 do
5420   # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   if test -n "$ac_ct_DUMPBIN"; then
5428   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435     for ac_exec_ext in '' $ac_executable_extensions; do
5436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442   done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5448 if test -n "$ac_ct_DUMPBIN"; then
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5450 $as_echo "$ac_ct_DUMPBIN" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457   test -n "$ac_ct_DUMPBIN" && break
5458 done
5459
5460   if test "x$ac_ct_DUMPBIN" = x; then
5461     DUMPBIN=":"
5462   else
5463     case $cross_compiling:$ac_tool_warned in
5464 yes:)
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5468 esac
5469     DUMPBIN=$ac_ct_DUMPBIN
5470   fi
5471 fi
5472
5473     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5474     *COFF*)
5475       DUMPBIN="$DUMPBIN -symbols"
5476       ;;
5477     *)
5478       DUMPBIN=:
5479       ;;
5480     esac
5481   fi
5482
5483   if test "$DUMPBIN" != ":"; then
5484     NM="$DUMPBIN"
5485   fi
5486 fi
5487 test -z "$NM" && NM=nm
5488
5489
5490
5491
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5496 if test "${lt_cv_nm_interface+set}" = set; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   lt_cv_nm_interface="BSD nm"
5500   echo "int some_variable = 0;" > conftest.$ac_ext
5501   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5502   (eval "$ac_compile" 2>conftest.err)
5503   cat conftest.err >&5
5504   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5505   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5506   cat conftest.err >&5
5507   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5508   cat conftest.out >&5
5509   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5510     lt_cv_nm_interface="MS dumpbin"
5511   fi
5512   rm -f conftest*
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5515 $as_echo "$lt_cv_nm_interface" >&6; }
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5518 $as_echo_n "checking whether ln -s works... " >&6; }
5519 LN_S=$as_ln_s
5520 if test "$LN_S" = "ln -s"; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5525 $as_echo "no, using $LN_S" >&6; }
5526 fi
5527
5528 # find the maximum length of command line arguments
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5530 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5531 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534     i=0
5535   teststring="ABCD"
5536
5537   case $build_os in
5538   msdosdjgpp*)
5539     # On DJGPP, this test can blow up pretty badly due to problems in libc
5540     # (any single argument exceeding 2000 bytes causes a buffer overrun
5541     # during glob expansion).  Even if it were fixed, the result of this
5542     # check would be larger than it should be.
5543     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5544     ;;
5545
5546   gnu*)
5547     # Under GNU Hurd, this test is not required because there is
5548     # no limit to the length of command line arguments.
5549     # Libtool will interpret -1 as no limit whatsoever
5550     lt_cv_sys_max_cmd_len=-1;
5551     ;;
5552
5553   cygwin* | mingw* | cegcc*)
5554     # On Win9x/ME, this test blows up -- it succeeds, but takes
5555     # about 5 minutes as the teststring grows exponentially.
5556     # Worse, since 9x/ME are not pre-emptively multitasking,
5557     # you end up with a "frozen" computer, even though with patience
5558     # the test eventually succeeds (with a max line length of 256k).
5559     # Instead, let's just punt: use the minimum linelength reported by
5560     # all of the supported platforms: 8192 (on NT/2K/XP).
5561     lt_cv_sys_max_cmd_len=8192;
5562     ;;
5563
5564   mint*)
5565     # On MiNT this can take a long time and run out of memory.
5566     lt_cv_sys_max_cmd_len=8192;
5567     ;;
5568
5569   amigaos*)
5570     # On AmigaOS with pdksh, this test takes hours, literally.
5571     # So we just punt and use a minimum line length of 8192.
5572     lt_cv_sys_max_cmd_len=8192;
5573     ;;
5574
5575   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5576     # This has been around since 386BSD, at least.  Likely further.
5577     if test -x /sbin/sysctl; then
5578       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5579     elif test -x /usr/sbin/sysctl; then
5580       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5581     else
5582       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5583     fi
5584     # And add a safety zone
5585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5587     ;;
5588
5589   interix*)
5590     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5591     lt_cv_sys_max_cmd_len=196608
5592     ;;
5593
5594   osf*)
5595     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5596     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5597     # nice to cause kernel panics so lets avoid the loop below.
5598     # First set a reasonable default.
5599     lt_cv_sys_max_cmd_len=16384
5600     #
5601     if test -x /sbin/sysconfig; then
5602       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5603         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5604       esac
5605     fi
5606     ;;
5607   sco3.2v5*)
5608     lt_cv_sys_max_cmd_len=102400
5609     ;;
5610   sysv5* | sco5v6* | sysv4.2uw2*)
5611     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5612     if test -n "$kargmax"; then
5613       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5614     else
5615       lt_cv_sys_max_cmd_len=32768
5616     fi
5617     ;;
5618   *)
5619     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5620     if test -n "$lt_cv_sys_max_cmd_len"; then
5621       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5622       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5623     else
5624       # Make teststring a little bigger before we do anything with it.
5625       # a 1K string should be a reasonable start.
5626       for i in 1 2 3 4 5 6 7 8 ; do
5627         teststring=$teststring$teststring
5628       done
5629       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5630       # If test is not a shell built-in, we'll probably end up computing a
5631       # maximum length that is only half of the actual maximum length, but
5632       # we can't tell.
5633       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5634                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5635               test $i != 17 # 1/2 MB should be enough
5636       do
5637         i=`expr $i + 1`
5638         teststring=$teststring$teststring
5639       done
5640       # Only check the string length outside the loop.
5641       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5642       teststring=
5643       # Add a significant safety factor because C++ compilers can tack on
5644       # massive amounts of additional arguments before passing them to the
5645       # linker.  It appears as though 1/2 is a usable value.
5646       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5647     fi
5648     ;;
5649   esac
5650
5651 fi
5652
5653 if test -n $lt_cv_sys_max_cmd_len ; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5655 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5658 $as_echo "none" >&6; }
5659 fi
5660 max_cmd_len=$lt_cv_sys_max_cmd_len
5661
5662
5663
5664
5665
5666
5667 : ${CP="cp -f"}
5668 : ${MV="mv -f"}
5669 : ${RM="rm -f"}
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5672 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5673 # Try some XSI features
5674 xsi_shell=no
5675 ( _lt_dummy="a/b/c"
5676   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5677       = c,a/b,, \
5678     && eval 'test $(( 1 + 1 )) -eq 2 \
5679     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5680   && xsi_shell=yes
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5682 $as_echo "$xsi_shell" >&6; }
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5686 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5687 lt_shell_append=no
5688 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5689     >/dev/null 2>&1 \
5690   && lt_shell_append=yes
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5692 $as_echo "$lt_shell_append" >&6; }
5693
5694
5695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5696   lt_unset=unset
5697 else
5698   lt_unset=false
5699 fi
5700
5701
5702
5703
5704
5705 # test EBCDIC or ASCII
5706 case `echo X|tr X '\101'` in
5707  A) # ASCII based system
5708     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5709   lt_SP2NL='tr \040 \012'
5710   lt_NL2SP='tr \015\012 \040\040'
5711   ;;
5712  *) # EBCDIC based system
5713   lt_SP2NL='tr \100 \n'
5714   lt_NL2SP='tr \r\n \100\100'
5715   ;;
5716 esac
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5727 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5728 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   lt_cv_ld_reload_flag='-r'
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5734 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5735 reload_flag=$lt_cv_ld_reload_flag
5736 case $reload_flag in
5737 "" | " "*) ;;
5738 *) reload_flag=" $reload_flag" ;;
5739 esac
5740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5741 case $host_os in
5742   darwin*)
5743     if test "$GCC" = yes; then
5744       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5745     else
5746       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5747     fi
5748     ;;
5749 esac
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 if test -n "$ac_tool_prefix"; then
5760   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   if test -n "$OBJDUMP"; then
5768   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782   done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 OBJDUMP=$ac_cv_prog_OBJDUMP
5788 if test -n "$OBJDUMP"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5790 $as_echo "$OBJDUMP" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795
5796
5797 fi
5798 if test -z "$ac_cv_prog_OBJDUMP"; then
5799   ac_ct_OBJDUMP=$OBJDUMP
5800   # Extract the first word of "objdump", so it can be a program name with args.
5801 set dummy objdump; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if test -n "$ac_ct_OBJDUMP"; then
5808   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815     for ac_exec_ext in '' $ac_executable_extensions; do
5816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822   done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5828 if test -n "$ac_ct_OBJDUMP"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5830 $as_echo "$ac_ct_OBJDUMP" >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836   if test "x$ac_ct_OBJDUMP" = x; then
5837     OBJDUMP="false"
5838   else
5839     case $cross_compiling:$ac_tool_warned in
5840 yes:)
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned=yes ;;
5844 esac
5845     OBJDUMP=$ac_ct_OBJDUMP
5846   fi
5847 else
5848   OBJDUMP="$ac_cv_prog_OBJDUMP"
5849 fi
5850
5851 test -z "$OBJDUMP" && OBJDUMP=objdump
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5862 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5863 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   lt_cv_file_magic_cmd='$MAGIC_CMD'
5867 lt_cv_file_magic_test_file=
5868 lt_cv_deplibs_check_method='unknown'
5869 # Need to set the preceding variable on all platforms that support
5870 # interlibrary dependencies.
5871 # 'none' -- dependencies not supported.
5872 # `unknown' -- same as none, but documents that we really don't know.
5873 # 'pass_all' -- all dependencies passed with no checks.
5874 # 'test_compile' -- check by making test program.
5875 # 'file_magic [[regex]]' -- check by looking for files in library path
5876 # which responds to the $file_magic_cmd with a given extended regex.
5877 # If you have `file' or equivalent on your system and you're not sure
5878 # whether `pass_all' will *always* work, you probably want this one.
5879
5880 case $host_os in
5881 aix[4-9]*)
5882   lt_cv_deplibs_check_method=pass_all
5883   ;;
5884
5885 beos*)
5886   lt_cv_deplibs_check_method=pass_all
5887   ;;
5888
5889 bsdi[45]*)
5890   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5891   lt_cv_file_magic_cmd='/usr/bin/file -L'
5892   lt_cv_file_magic_test_file=/shlib/libc.so
5893   ;;
5894
5895 cygwin*)
5896   # func_win32_libid is a shell function defined in ltmain.sh
5897   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5898   lt_cv_file_magic_cmd='func_win32_libid'
5899   ;;
5900
5901 mingw* | pw32*)
5902   # Base MSYS/MinGW do not provide the 'file' command needed by
5903   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5904   # unless we find 'file', for example because we are cross-compiling.
5905   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5906   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5907     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5908     lt_cv_file_magic_cmd='func_win32_libid'
5909   else
5910     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5911     lt_cv_file_magic_cmd='$OBJDUMP -f'
5912   fi
5913   ;;
5914
5915 cegcc*)
5916   # use the weaker test based on 'objdump'. See mingw*.
5917   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5918   lt_cv_file_magic_cmd='$OBJDUMP -f'
5919   ;;
5920
5921 darwin* | rhapsody*)
5922   lt_cv_deplibs_check_method=pass_all
5923   ;;
5924
5925 freebsd* | dragonfly*)
5926   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5927     case $host_cpu in
5928     i*86 )
5929       # Not sure whether the presence of OpenBSD here was a mistake.
5930       # Let's accept both of them until this is cleared up.
5931       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5932       lt_cv_file_magic_cmd=/usr/bin/file
5933       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5934       ;;
5935     esac
5936   else
5937     lt_cv_deplibs_check_method=pass_all
5938   fi
5939   ;;
5940
5941 gnu*)
5942   lt_cv_deplibs_check_method=pass_all
5943   ;;
5944
5945 haiku*)
5946   lt_cv_deplibs_check_method=pass_all
5947   ;;
5948
5949 hpux10.20* | hpux11*)
5950   lt_cv_file_magic_cmd=/usr/bin/file
5951   case $host_cpu in
5952   ia64*)
5953     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5954     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5955     ;;
5956   hppa*64*)
5957     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]'
5958     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5959     ;;
5960   *)
5961     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5962     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5963     ;;
5964   esac
5965   ;;
5966
5967 interix[3-9]*)
5968   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5969   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5970   ;;
5971
5972 irix5* | irix6* | nonstopux*)
5973   case $LD in
5974   *-32|*"-32 ") libmagic=32-bit;;
5975   *-n32|*"-n32 ") libmagic=N32;;
5976   *-64|*"-64 ") libmagic=64-bit;;
5977   *) libmagic=never-match;;
5978   esac
5979   lt_cv_deplibs_check_method=pass_all
5980   ;;
5981
5982 # This must be Linux ELF.
5983 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986
5987 netbsd*)
5988   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5989     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5990   else
5991     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5992   fi
5993   ;;
5994
5995 newos6*)
5996   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5997   lt_cv_file_magic_cmd=/usr/bin/file
5998   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5999   ;;
6000
6001 *nto* | *qnx*)
6002   lt_cv_deplibs_check_method=pass_all
6003   ;;
6004
6005 openbsd*)
6006   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6007     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6008   else
6009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6010   fi
6011   ;;
6012
6013 osf3* | osf4* | osf5*)
6014   lt_cv_deplibs_check_method=pass_all
6015   ;;
6016
6017 rdos*)
6018   lt_cv_deplibs_check_method=pass_all
6019   ;;
6020
6021 solaris*)
6022   lt_cv_deplibs_check_method=pass_all
6023   ;;
6024
6025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6026   lt_cv_deplibs_check_method=pass_all
6027   ;;
6028
6029 sysv4 | sysv4.3*)
6030   case $host_vendor in
6031   motorola)
6032     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]'
6033     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6034     ;;
6035   ncr)
6036     lt_cv_deplibs_check_method=pass_all
6037     ;;
6038   sequent)
6039     lt_cv_file_magic_cmd='/bin/file'
6040     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6041     ;;
6042   sni)
6043     lt_cv_file_magic_cmd='/bin/file'
6044     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6045     lt_cv_file_magic_test_file=/lib/libc.so
6046     ;;
6047   siemens)
6048     lt_cv_deplibs_check_method=pass_all
6049     ;;
6050   pc)
6051     lt_cv_deplibs_check_method=pass_all
6052     ;;
6053   esac
6054   ;;
6055
6056 tpf*)
6057   lt_cv_deplibs_check_method=pass_all
6058   ;;
6059 esac
6060
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6063 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6064 file_magic_cmd=$lt_cv_file_magic_cmd
6065 deplibs_check_method=$lt_cv_deplibs_check_method
6066 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 if test -n "$ac_tool_prefix"; then
6080   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6081 set dummy ${ac_tool_prefix}ar; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if test "${ac_cv_prog_AR+set}" = set; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   if test -n "$AR"; then
6088   ac_cv_prog_AR="$AR" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095     for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_prog_AR="${ac_tool_prefix}ar"
6098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102   done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 AR=$ac_cv_prog_AR
6108 if test -n "$AR"; then
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6110 $as_echo "$AR" >&6; }
6111 else
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116
6117 fi
6118 if test -z "$ac_cv_prog_AR"; then
6119   ac_ct_AR=$AR
6120   # Extract the first word of "ar", so it can be a program name with args.
6121 set dummy ar; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127   if test -n "$ac_ct_AR"; then
6128   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133   IFS=$as_save_IFS
6134   test -z "$as_dir" && as_dir=.
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6137     ac_cv_prog_ac_ct_AR="ar"
6138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139     break 2
6140   fi
6141 done
6142   done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6148 if test -n "$ac_ct_AR"; then
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6150 $as_echo "$ac_ct_AR" >&6; }
6151 else
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156   if test "x$ac_ct_AR" = x; then
6157     AR="false"
6158   else
6159     case $cross_compiling:$ac_tool_warned in
6160 yes:)
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163 ac_tool_warned=yes ;;
6164 esac
6165     AR=$ac_ct_AR
6166   fi
6167 else
6168   AR="$ac_cv_prog_AR"
6169 fi
6170
6171 test -z "$AR" && AR=ar
6172 test -z "$AR_FLAGS" && AR_FLAGS=cru
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184 if test -n "$ac_tool_prefix"; then
6185   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}strip; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_STRIP+set}" = set; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   if test -n "$STRIP"; then
6193   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207   done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 STRIP=$ac_cv_prog_STRIP
6213 if test -n "$STRIP"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6215 $as_echo "$STRIP" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222 fi
6223 if test -z "$ac_cv_prog_STRIP"; then
6224   ac_ct_STRIP=$STRIP
6225   # Extract the first word of "strip", so it can be a program name with args.
6226 set dummy strip; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   if test -n "$ac_ct_STRIP"; then
6233   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240     for ac_exec_ext in '' $ac_executable_extensions; do
6241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242     ac_cv_prog_ac_ct_STRIP="strip"
6243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247   done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6253 if test -n "$ac_ct_STRIP"; then
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6255 $as_echo "$ac_ct_STRIP" >&6; }
6256 else
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261   if test "x$ac_ct_STRIP" = x; then
6262     STRIP=":"
6263   else
6264     case $cross_compiling:$ac_tool_warned in
6265 yes:)
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268 ac_tool_warned=yes ;;
6269 esac
6270     STRIP=$ac_ct_STRIP
6271   fi
6272 else
6273   STRIP="$ac_cv_prog_STRIP"
6274 fi
6275
6276 test -z "$STRIP" && STRIP=:
6277
6278
6279
6280
6281
6282
6283 if test -n "$ac_tool_prefix"; then
6284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291   if test -n "$RANLIB"; then
6292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_exec_ext in '' $ac_executable_extensions; do
6300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306   done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 RANLIB=$ac_cv_prog_RANLIB
6312 if test -n "$RANLIB"; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6314 $as_echo "$RANLIB" >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320
6321 fi
6322 if test -z "$ac_cv_prog_RANLIB"; then
6323   ac_ct_RANLIB=$RANLIB
6324   # Extract the first word of "ranlib", so it can be a program name with args.
6325 set dummy ranlib; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if test -n "$ac_ct_RANLIB"; then
6332   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339     for ac_exec_ext in '' $ac_executable_extensions; do
6340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341     ac_cv_prog_ac_ct_RANLIB="ranlib"
6342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346   done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6352 if test -n "$ac_ct_RANLIB"; then
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6354 $as_echo "$ac_ct_RANLIB" >&6; }
6355 else
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360   if test "x$ac_ct_RANLIB" = x; then
6361     RANLIB=":"
6362   else
6363     case $cross_compiling:$ac_tool_warned in
6364 yes:)
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6368 esac
6369     RANLIB=$ac_ct_RANLIB
6370   fi
6371 else
6372   RANLIB="$ac_cv_prog_RANLIB"
6373 fi
6374
6375 test -z "$RANLIB" && RANLIB=:
6376
6377
6378
6379
6380
6381
6382 # Determine commands to create old-style static archives.
6383 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6384 old_postinstall_cmds='chmod 644 $oldlib'
6385 old_postuninstall_cmds=
6386
6387 if test -n "$RANLIB"; then
6388   case $host_os in
6389   openbsd*)
6390     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6391     ;;
6392   *)
6393     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6394     ;;
6395   esac
6396   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6397 fi
6398
6399 case $host_os in
6400   darwin*)
6401     lock_old_archive_extraction=yes ;;
6402   *)
6403     lock_old_archive_extraction=no ;;
6404 esac
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 # If no C compiler was specified, use CC.
6445 LTCC=${LTCC-"$CC"}
6446
6447 # If no C compiler flags were specified, use CFLAGS.
6448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6449
6450 # Allow CC to be a program name with arguments.
6451 compiler=$CC
6452
6453
6454 # Check for command to grab the raw symbol name followed by C symbol from nm.
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6456 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6457 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460
6461 # These are sane defaults that work on at least a few old systems.
6462 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6463
6464 # Character class describing NM global symbol codes.
6465 symcode='[BCDEGRST]'
6466
6467 # Regexp to match symbols that can be accessed directly from C.
6468 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6469
6470 # Define system-specific variables.
6471 case $host_os in
6472 aix*)
6473   symcode='[BCDT]'
6474   ;;
6475 cygwin* | mingw* | pw32* | cegcc*)
6476   symcode='[ABCDGISTW]'
6477   ;;
6478 hpux*)
6479   if test "$host_cpu" = ia64; then
6480     symcode='[ABCDEGRST]'
6481   fi
6482   ;;
6483 irix* | nonstopux*)
6484   symcode='[BCDEGRST]'
6485   ;;
6486 osf*)
6487   symcode='[BCDEGQRST]'
6488   ;;
6489 solaris*)
6490   symcode='[BDRT]'
6491   ;;
6492 sco3.2v5*)
6493   symcode='[DT]'
6494   ;;
6495 sysv4.2uw2*)
6496   symcode='[DT]'
6497   ;;
6498 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6499   symcode='[ABDT]'
6500   ;;
6501 sysv4)
6502   symcode='[DFNSTU]'
6503   ;;
6504 esac
6505
6506 # If we're using GNU nm, then use its standard symbol codes.
6507 case `$NM -V 2>&1` in
6508 *GNU* | *'with BFD'*)
6509   symcode='[ABCDGIRSTW]' ;;
6510 esac
6511
6512 # Transform an extracted symbol line into a proper C declaration.
6513 # Some systems (esp. on ia64) link data and code symbols differently,
6514 # so use this general approach.
6515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6516
6517 # Transform an extracted symbol line into symbol name and symbol address
6518 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6519 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'"
6520
6521 # Handle CRLF in mingw tool chain
6522 opt_cr=
6523 case $build_os in
6524 mingw*)
6525   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6526   ;;
6527 esac
6528
6529 # Try without a prefix underscore, then with it.
6530 for ac_symprfx in "" "_"; do
6531
6532   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6533   symxfrm="\\1 $ac_symprfx\\2 \\2"
6534
6535   # Write the raw and C identifiers.
6536   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6537     # Fake it for dumpbin and say T for any non-static function
6538     # and D for any global variable.
6539     # Also find C++ and __fastcall symbols from MSVC++,
6540     # which start with @ or ?.
6541     lt_cv_sys_global_symbol_pipe="$AWK '"\
6542 "     {last_section=section; section=\$ 3};"\
6543 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6544 "     \$ 0!~/External *\|/{next};"\
6545 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6546 "     {if(hide[section]) next};"\
6547 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6548 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6549 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6550 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6551 "     ' prfx=^$ac_symprfx"
6552   else
6553     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6554   fi
6555
6556   # Check to see that the pipe works correctly.
6557   pipe_works=no
6558
6559   rm -f conftest*
6560   cat > conftest.$ac_ext <<_LT_EOF
6561 #ifdef __cplusplus
6562 extern "C" {
6563 #endif
6564 char nm_test_var;
6565 void nm_test_func(void);
6566 void nm_test_func(void){}
6567 #ifdef __cplusplus
6568 }
6569 #endif
6570 int main(){nm_test_var='a';nm_test_func();return(0);}
6571 _LT_EOF
6572
6573   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6574   (eval $ac_compile) 2>&5
6575   ac_status=$?
6576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6577   test $ac_status = 0; }; then
6578     # Now try to grab the symbols.
6579     nlist=conftest.nm
6580     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6581   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6582   ac_status=$?
6583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584   test $ac_status = 0; } && test -s "$nlist"; then
6585       # Try sorting and uniquifying the output.
6586       if sort "$nlist" | uniq > "$nlist"T; then
6587         mv -f "$nlist"T "$nlist"
6588       else
6589         rm -f "$nlist"T
6590       fi
6591
6592       # Make sure that we snagged all the symbols we need.
6593       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6594         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6595           cat <<_LT_EOF > conftest.$ac_ext
6596 #ifdef __cplusplus
6597 extern "C" {
6598 #endif
6599
6600 _LT_EOF
6601           # Now generate the symbol file.
6602           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6603
6604           cat <<_LT_EOF >> conftest.$ac_ext
6605
6606 /* The mapping between symbol names and symbols.  */
6607 const struct {
6608   const char *name;
6609   void       *address;
6610 }
6611 lt__PROGRAM__LTX_preloaded_symbols[] =
6612 {
6613   { "@PROGRAM@", (void *) 0 },
6614 _LT_EOF
6615           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6616           cat <<\_LT_EOF >> conftest.$ac_ext
6617   {0, (void *) 0}
6618 };
6619
6620 /* This works around a problem in FreeBSD linker */
6621 #ifdef FREEBSD_WORKAROUND
6622 static const void *lt_preloaded_setup() {
6623   return lt__PROGRAM__LTX_preloaded_symbols;
6624 }
6625 #endif
6626
6627 #ifdef __cplusplus
6628 }
6629 #endif
6630 _LT_EOF
6631           # Now try linking the two files.
6632           mv conftest.$ac_objext conftstm.$ac_objext
6633           lt_save_LIBS="$LIBS"
6634           lt_save_CFLAGS="$CFLAGS"
6635           LIBS="conftstm.$ac_objext"
6636           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6637           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6638   (eval $ac_link) 2>&5
6639   ac_status=$?
6640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6642             pipe_works=yes
6643           fi
6644           LIBS="$lt_save_LIBS"
6645           CFLAGS="$lt_save_CFLAGS"
6646         else
6647           echo "cannot find nm_test_func in $nlist" >&5
6648         fi
6649       else
6650         echo "cannot find nm_test_var in $nlist" >&5
6651       fi
6652     else
6653       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6654     fi
6655   else
6656     echo "$progname: failed program was:" >&5
6657     cat conftest.$ac_ext >&5
6658   fi
6659   rm -rf conftest* conftst*
6660
6661   # Do not use the global_symbol_pipe unless it works.
6662   if test "$pipe_works" = yes; then
6663     break
6664   else
6665     lt_cv_sys_global_symbol_pipe=
6666   fi
6667 done
6668
6669 fi
6670
6671 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6672   lt_cv_sys_global_symbol_to_cdecl=
6673 fi
6674 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6676 $as_echo "failed" >&6; }
6677 else
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6679 $as_echo "ok" >&6; }
6680 fi
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 # Check whether --enable-libtool-lock was given.
6704 if test "${enable_libtool_lock+set}" = set; then :
6705   enableval=$enable_libtool_lock;
6706 fi
6707
6708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6709
6710 # Some flags need to be propagated to the compiler or linker for good
6711 # libtool support.
6712 case $host in
6713 ia64-*-hpux*)
6714   # Find out which ABI we are using.
6715   echo 'int i;' > conftest.$ac_ext
6716   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6717   (eval $ac_compile) 2>&5
6718   ac_status=$?
6719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720   test $ac_status = 0; }; then
6721     case `/usr/bin/file conftest.$ac_objext` in
6722       *ELF-32*)
6723         HPUX_IA64_MODE="32"
6724         ;;
6725       *ELF-64*)
6726         HPUX_IA64_MODE="64"
6727         ;;
6728     esac
6729   fi
6730   rm -rf conftest*
6731   ;;
6732 *-*-irix6*)
6733   # Find out which ABI we are using.
6734   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6735   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6736   (eval $ac_compile) 2>&5
6737   ac_status=$?
6738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739   test $ac_status = 0; }; then
6740     if test "$lt_cv_prog_gnu_ld" = yes; then
6741       case `/usr/bin/file conftest.$ac_objext` in
6742         *32-bit*)
6743           LD="${LD-ld} -melf32bsmip"
6744           ;;
6745         *N32*)
6746           LD="${LD-ld} -melf32bmipn32"
6747           ;;
6748         *64-bit*)
6749           LD="${LD-ld} -melf64bmip"
6750         ;;
6751       esac
6752     else
6753       case `/usr/bin/file conftest.$ac_objext` in
6754         *32-bit*)
6755           LD="${LD-ld} -32"
6756           ;;
6757         *N32*)
6758           LD="${LD-ld} -n32"
6759           ;;
6760         *64-bit*)
6761           LD="${LD-ld} -64"
6762           ;;
6763       esac
6764     fi
6765   fi
6766   rm -rf conftest*
6767   ;;
6768
6769 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6770 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6771   # Find out which ABI we are using.
6772   echo 'int i;' > conftest.$ac_ext
6773   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774   (eval $ac_compile) 2>&5
6775   ac_status=$?
6776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777   test $ac_status = 0; }; then
6778     case `/usr/bin/file conftest.o` in
6779       *32-bit*)
6780         case $host in
6781           x86_64-*kfreebsd*-gnu)
6782             LD="${LD-ld} -m elf_i386_fbsd"
6783             ;;
6784           x86_64-*linux*)
6785             LD="${LD-ld} -m elf_i386"
6786             ;;
6787           ppc64-*linux*|powerpc64-*linux*)
6788             LD="${LD-ld} -m elf32ppclinux"
6789             ;;
6790           s390x-*linux*)
6791             LD="${LD-ld} -m elf_s390"
6792             ;;
6793           sparc64-*linux*)
6794             LD="${LD-ld} -m elf32_sparc"
6795             ;;
6796         esac
6797         ;;
6798       *64-bit*)
6799         case $host in
6800           x86_64-*kfreebsd*-gnu)
6801             LD="${LD-ld} -m elf_x86_64_fbsd"
6802             ;;
6803           x86_64-*linux*)
6804             LD="${LD-ld} -m elf_x86_64"
6805             ;;
6806           ppc*-*linux*|powerpc*-*linux*)
6807             LD="${LD-ld} -m elf64ppc"
6808             ;;
6809           s390*-*linux*|s390*-*tpf*)
6810             LD="${LD-ld} -m elf64_s390"
6811             ;;
6812           sparc*-*linux*)
6813             LD="${LD-ld} -m elf64_sparc"
6814             ;;
6815         esac
6816         ;;
6817     esac
6818   fi
6819   rm -rf conftest*
6820   ;;
6821
6822 *-*-sco3.2v5*)
6823   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6824   SAVE_CFLAGS="$CFLAGS"
6825   CFLAGS="$CFLAGS -belf"
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6827 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6828 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6829   $as_echo_n "(cached) " >&6
6830 else
6831   ac_ext=c
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h.  */
6839
6840 int
6841 main ()
6842 {
6843
6844   ;
6845   return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_link "$LINENO"; then :
6849   lt_cv_cc_needs_belf=yes
6850 else
6851   lt_cv_cc_needs_belf=no
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext \
6854     conftest$ac_exeext conftest.$ac_ext
6855      ac_ext=c
6856 ac_cpp='$CPP $CPPFLAGS'
6857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6863 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6864   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6865     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6866     CFLAGS="$SAVE_CFLAGS"
6867   fi
6868   ;;
6869 *-*solaris*)
6870   # Find out which ABI we are using.
6871   echo 'int i;' > conftest.$ac_ext
6872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873   (eval $ac_compile) 2>&5
6874   ac_status=$?
6875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876   test $ac_status = 0; }; then
6877     case `/usr/bin/file conftest.o` in
6878     *64-bit*)
6879       case $lt_cv_prog_gnu_ld in
6880       yes*)
6881         case $host in
6882         i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6883           LD="${LD-ld} -m elf_x86_64"
6884           ;;
6885         sparc*-*-solaris*)
6886           LD="${LD-ld} -m elf64_sparc"
6887           ;;
6888         esac
6889         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6890         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6891           LD="${LD-ld}_sol2"
6892         fi
6893         ;;
6894       *)
6895         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6896           LD="${LD-ld} -64"
6897         fi
6898         ;;
6899       esac
6900       ;;
6901     esac
6902   fi
6903   rm -rf conftest*
6904   ;;
6905 esac
6906
6907 need_locks="$enable_libtool_lock"
6908
6909
6910   case $host_os in
6911     rhapsody* | darwin*)
6912     if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$DSYMUTIL"; then
6921   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6941 if test -n "$DSYMUTIL"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6943 $as_echo "$DSYMUTIL" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_DSYMUTIL"; then
6952   ac_ct_DSYMUTIL=$DSYMUTIL
6953   # Extract the first word of "dsymutil", so it can be a program name with args.
6954 set dummy dsymutil; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_DSYMUTIL"; then
6961   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6981 if test -n "$ac_ct_DSYMUTIL"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6983 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_DSYMUTIL" = x; then
6990     DSYMUTIL=":"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     DSYMUTIL=$ac_ct_DSYMUTIL
6999   fi
7000 else
7001   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7002 fi
7003
7004     if test -n "$ac_tool_prefix"; then
7005   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   if test -n "$NMEDIT"; then
7013   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020     for ac_exec_ext in '' $ac_executable_extensions; do
7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027   done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 NMEDIT=$ac_cv_prog_NMEDIT
7033 if test -n "$NMEDIT"; then
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7035 $as_echo "$NMEDIT" >&6; }
7036 else
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_NMEDIT"; then
7044   ac_ct_NMEDIT=$NMEDIT
7045   # Extract the first word of "nmedit", so it can be a program name with args.
7046 set dummy nmedit; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   if test -n "$ac_ct_NMEDIT"; then
7053   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060     for ac_exec_ext in '' $ac_executable_extensions; do
7061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067   done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7073 if test -n "$ac_ct_NMEDIT"; then
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7075 $as_echo "$ac_ct_NMEDIT" >&6; }
7076 else
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081   if test "x$ac_ct_NMEDIT" = x; then
7082     NMEDIT=":"
7083   else
7084     case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090     NMEDIT=$ac_ct_NMEDIT
7091   fi
7092 else
7093   NMEDIT="$ac_cv_prog_NMEDIT"
7094 fi
7095
7096     if test -n "$ac_tool_prefix"; then
7097   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if test "${ac_cv_prog_LIPO+set}" = set; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   if test -n "$LIPO"; then
7105   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112     for ac_exec_ext in '' $ac_executable_extensions; do
7113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119   done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 LIPO=$ac_cv_prog_LIPO
7125 if test -n "$LIPO"; then
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7127 $as_echo "$LIPO" >&6; }
7128 else
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_LIPO"; then
7136   ac_ct_LIPO=$LIPO
7137   # Extract the first word of "lipo", so it can be a program name with args.
7138 set dummy lipo; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7142   $as_echo_n "(cached) " >&6
7143 else
7144   if test -n "$ac_ct_LIPO"; then
7145   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152     for ac_exec_ext in '' $ac_executable_extensions; do
7153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154     ac_cv_prog_ac_ct_LIPO="lipo"
7155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159   done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7165 if test -n "$ac_ct_LIPO"; then
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7167 $as_echo "$ac_ct_LIPO" >&6; }
7168 else
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173   if test "x$ac_ct_LIPO" = x; then
7174     LIPO=":"
7175   else
7176     case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182     LIPO=$ac_ct_LIPO
7183   fi
7184 else
7185   LIPO="$ac_cv_prog_LIPO"
7186 fi
7187
7188     if test -n "$ac_tool_prefix"; then
7189   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}otool; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7194   $as_echo_n "(cached) " >&6
7195 else
7196   if test -n "$OTOOL"; then
7197   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204     for ac_exec_ext in '' $ac_executable_extensions; do
7205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211   done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 OTOOL=$ac_cv_prog_OTOOL
7217 if test -n "$OTOOL"; then
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7219 $as_echo "$OTOOL" >&6; }
7220 else
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_OTOOL"; then
7228   ac_ct_OTOOL=$OTOOL
7229   # Extract the first word of "otool", so it can be a program name with args.
7230 set dummy otool; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7234   $as_echo_n "(cached) " >&6
7235 else
7236   if test -n "$ac_ct_OTOOL"; then
7237   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242   IFS=$as_save_IFS
7243   test -z "$as_dir" && as_dir=.
7244     for ac_exec_ext in '' $ac_executable_extensions; do
7245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246     ac_cv_prog_ac_ct_OTOOL="otool"
7247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249   fi
7250 done
7251   done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7257 if test -n "$ac_ct_OTOOL"; then
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7259 $as_echo "$ac_ct_OTOOL" >&6; }
7260 else
7261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265   if test "x$ac_ct_OTOOL" = x; then
7266     OTOOL=":"
7267   else
7268     case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274     OTOOL=$ac_ct_OTOOL
7275   fi
7276 else
7277   OTOOL="$ac_cv_prog_OTOOL"
7278 fi
7279
7280     if test -n "$ac_tool_prefix"; then
7281   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   if test -n "$OTOOL64"; then
7289   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296     for ac_exec_ext in '' $ac_executable_extensions; do
7297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303   done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 OTOOL64=$ac_cv_prog_OTOOL64
7309 if test -n "$OTOOL64"; then
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7311 $as_echo "$OTOOL64" >&6; }
7312 else
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_OTOOL64"; then
7320   ac_ct_OTOOL64=$OTOOL64
7321   # Extract the first word of "otool64", so it can be a program name with args.
7322 set dummy otool64; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   if test -n "$ac_ct_OTOOL64"; then
7329   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336     for ac_exec_ext in '' $ac_executable_extensions; do
7337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338     ac_cv_prog_ac_ct_OTOOL64="otool64"
7339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343   done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7349 if test -n "$ac_ct_OTOOL64"; then
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7351 $as_echo "$ac_ct_OTOOL64" >&6; }
7352 else
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357   if test "x$ac_ct_OTOOL64" = x; then
7358     OTOOL64=":"
7359   else
7360     case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366     OTOOL64=$ac_ct_OTOOL64
7367   fi
7368 else
7369   OTOOL64="$ac_cv_prog_OTOOL64"
7370 fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7399 $as_echo_n "checking for -single_module linker flag... " >&6; }
7400 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   lt_cv_apple_cc_single_mod=no
7404       if test -z "${LT_MULTI_MODULE}"; then
7405         # By default we will add the -single_module flag. You can override
7406         # by either setting the environment variable LT_MULTI_MODULE
7407         # non-empty at configure time, or by adding -multi_module to the
7408         # link flags.
7409         rm -rf libconftest.dylib*
7410         echo "int foo(void){return 1;}" > conftest.c
7411         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7412 -dynamiclib -Wl,-single_module conftest.c" >&5
7413         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7414           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7415         _lt_result=$?
7416         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7417           lt_cv_apple_cc_single_mod=yes
7418         else
7419           cat conftest.err >&5
7420         fi
7421         rm -rf libconftest.dylib*
7422         rm -f conftest.*
7423       fi
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7426 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7428 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7429 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   lt_cv_ld_exported_symbols_list=no
7433       save_LDFLAGS=$LDFLAGS
7434       echo "_main" > conftest.sym
7435       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h.  */
7438
7439 int
7440 main ()
7441 {
7442
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 if ac_fn_c_try_link "$LINENO"; then :
7448   lt_cv_ld_exported_symbols_list=yes
7449 else
7450   lt_cv_ld_exported_symbols_list=no
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext \
7453     conftest$ac_exeext conftest.$ac_ext
7454         LDFLAGS="$save_LDFLAGS"
7455
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7458 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7460 $as_echo_n "checking for -force_load linker flag... " >&6; }
7461 if test "${lt_cv_ld_force_load+set}" = set; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   lt_cv_ld_force_load=no
7465       cat > conftest.c << _LT_EOF
7466 int forced_loaded() { return 2;}
7467 _LT_EOF
7468       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7469       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7470       echo "$AR cru libconftest.a conftest.o" >&5
7471       $AR cru libconftest.a conftest.o 2>&5
7472       cat > conftest.c << _LT_EOF
7473 int main() { return 0;}
7474 _LT_EOF
7475       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7476       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7477       _lt_result=$?
7478       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7479         lt_cv_ld_force_load=yes
7480       else
7481         cat conftest.err >&5
7482       fi
7483         rm -f conftest.err libconftest.a conftest conftest.c
7484         rm -rf conftest.dSYM
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7488 $as_echo "$lt_cv_ld_force_load" >&6; }
7489     case $host_os in
7490     rhapsody* | darwin1.[012])
7491       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7492     darwin1.*)
7493       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7494     darwin*) # darwin 5.x on
7495       # if running on 10.5 or later, the deployment target defaults
7496       # to the OS version, if on x86, and 10.4, the deployment
7497       # target defaults to 10.4. Don't you love it?
7498       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7499         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7500           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7501         10.[012]*)
7502           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7503         10.*)
7504           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7505       esac
7506     ;;
7507   esac
7508     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7509       _lt_dar_single_mod='$single_module'
7510     fi
7511     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7512       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7513     else
7514       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7515     fi
7516     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7517       _lt_dsymutil='~$DSYMUTIL $lib || :'
7518     else
7519       _lt_dsymutil=
7520     fi
7521     ;;
7522   esac
7523
7524 for ac_header in dlfcn.h
7525 do :
7526   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7527 "
7528 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7529   cat >>confdefs.h <<_ACEOF
7530 #define HAVE_DLFCN_H 1
7531 _ACEOF
7532
7533 fi
7534
7535 done
7536
7537 if test -n "$ac_tool_prefix"; then
7538   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_GOC+set}" = set; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   if test -n "$GOC"; then
7546   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 GOC=$ac_cv_prog_GOC
7566 if test -n "$GOC"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7568 $as_echo "$GOC" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 fi
7576 if test -z "$ac_cv_prog_GOC"; then
7577   ac_ct_GOC=$GOC
7578   # Extract the first word of "gccgo", so it can be a program name with args.
7579 set dummy gccgo; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$ac_ct_GOC"; then
7586   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595     ac_cv_prog_ac_ct_GOC="gccgo"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7606 if test -n "$ac_ct_GOC"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7608 $as_echo "$ac_ct_GOC" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614   if test "x$ac_ct_GOC" = x; then
7615     GOC=""
7616   else
7617     case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623     GOC=$ac_ct_GOC
7624   fi
7625 else
7626   GOC="$ac_cv_prog_GOC"
7627 fi
7628
7629
7630
7631
7632
7633
7634 # Set options
7635
7636
7637
7638
7639   enable_win32_dll=no
7640
7641
7642             # Check whether --enable-shared was given.
7643 if test "${enable_shared+set}" = set; then :
7644   enableval=$enable_shared; p=${PACKAGE-default}
7645     case $enableval in
7646     yes) enable_shared=yes ;;
7647     no) enable_shared=no ;;
7648     *)
7649       enable_shared=no
7650       # Look at the argument we got.  We use all the common list separators.
7651       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652       for pkg in $enableval; do
7653         IFS="$lt_save_ifs"
7654         if test "X$pkg" = "X$p"; then
7655           enable_shared=yes
7656         fi
7657       done
7658       IFS="$lt_save_ifs"
7659       ;;
7660     esac
7661 else
7662   enable_shared=yes
7663 fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673   # Check whether --enable-static was given.
7674 if test "${enable_static+set}" = set; then :
7675   enableval=$enable_static; p=${PACKAGE-default}
7676     case $enableval in
7677     yes) enable_static=yes ;;
7678     no) enable_static=no ;;
7679     *)
7680      enable_static=no
7681       # Look at the argument we got.  We use all the common list separators.
7682       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683       for pkg in $enableval; do
7684         IFS="$lt_save_ifs"
7685         if test "X$pkg" = "X$p"; then
7686           enable_static=yes
7687         fi
7688       done
7689       IFS="$lt_save_ifs"
7690       ;;
7691     esac
7692 else
7693   enable_static=yes
7694 fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705 # Check whether --with-pic was given.
7706 if test "${with_pic+set}" = set; then :
7707   withval=$with_pic; pic_mode="$withval"
7708 else
7709   pic_mode=default
7710 fi
7711
7712
7713 test -z "$pic_mode" && pic_mode=default
7714
7715
7716
7717
7718
7719
7720
7721   # Check whether --enable-fast-install was given.
7722 if test "${enable_fast_install+set}" = set; then :
7723   enableval=$enable_fast_install; p=${PACKAGE-default}
7724     case $enableval in
7725     yes) enable_fast_install=yes ;;
7726     no) enable_fast_install=no ;;
7727     *)
7728       enable_fast_install=no
7729       # Look at the argument we got.  We use all the common list separators.
7730       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7731       for pkg in $enableval; do
7732         IFS="$lt_save_ifs"
7733         if test "X$pkg" = "X$p"; then
7734           enable_fast_install=yes
7735         fi
7736       done
7737       IFS="$lt_save_ifs"
7738       ;;
7739     esac
7740 else
7741   enable_fast_install=yes
7742 fi
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754 # This can be used to rebuild libtool when needed
7755 LIBTOOL_DEPS="$ltmain"
7756
7757 # Always use our own libtool.
7758 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785 test -z "$LN_S" && LN_S="ln -s"
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800 if test -n "${ZSH_VERSION+set}" ; then
7801    setopt NO_GLOB_SUBST
7802 fi
7803
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7805 $as_echo_n "checking for objdir... " >&6; }
7806 if test "${lt_cv_objdir+set}" = set; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   rm -f .libs 2>/dev/null
7810 mkdir .libs 2>/dev/null
7811 if test -d .libs; then
7812   lt_cv_objdir=.libs
7813 else
7814   # MS-DOS does not allow filenames that begin with a dot.
7815   lt_cv_objdir=_libs
7816 fi
7817 rmdir .libs 2>/dev/null
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7820 $as_echo "$lt_cv_objdir" >&6; }
7821 objdir=$lt_cv_objdir
7822
7823
7824
7825
7826
7827 cat >>confdefs.h <<_ACEOF
7828 #define LT_OBJDIR "$lt_cv_objdir/"
7829 _ACEOF
7830
7831
7832
7833
7834 case $host_os in
7835 aix3*)
7836   # AIX sometimes has problems with the GCC collect2 program.  For some
7837   # reason, if we set the COLLECT_NAMES environment variable, the problems
7838   # vanish in a puff of smoke.
7839   if test "X${COLLECT_NAMES+set}" != Xset; then
7840     COLLECT_NAMES=
7841     export COLLECT_NAMES
7842   fi
7843   ;;
7844 esac
7845
7846 # Global variables:
7847 ofile=libtool
7848 can_build_shared=yes
7849
7850 # All known linkers require a `.a' archive for static linking (except MSVC,
7851 # which needs '.lib').
7852 libext=a
7853
7854 with_gnu_ld="$lt_cv_prog_gnu_ld"
7855
7856 old_CC="$CC"
7857 old_CFLAGS="$CFLAGS"
7858
7859 # Set sane defaults for various variables
7860 test -z "$CC" && CC=cc
7861 test -z "$LTCC" && LTCC=$CC
7862 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7863 test -z "$LD" && LD=ld
7864 test -z "$ac_objext" && ac_objext=o
7865
7866 for cc_temp in $compiler""; do
7867   case $cc_temp in
7868     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7869     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7870     \-*) ;;
7871     *) break;;
7872   esac
7873 done
7874 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7875
7876
7877 # Only perform the check for file, if the check method requires it
7878 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7879 case $deplibs_check_method in
7880 file_magic*)
7881   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7883 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7884 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   case $MAGIC_CMD in
7888 [\\/*] |  ?:[\\/]*)
7889   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7890   ;;
7891 *)
7892   lt_save_MAGIC_CMD="$MAGIC_CMD"
7893   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7894   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7895   for ac_dir in $ac_dummy; do
7896     IFS="$lt_save_ifs"
7897     test -z "$ac_dir" && ac_dir=.
7898     if test -f $ac_dir/${ac_tool_prefix}file; then
7899       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7900       if test -n "$file_magic_test_file"; then
7901         case $deplibs_check_method in
7902         "file_magic "*)
7903           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7904           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7906             $EGREP "$file_magic_regex" > /dev/null; then
7907             :
7908           else
7909             cat <<_LT_EOF 1>&2
7910
7911 *** Warning: the command libtool uses to detect shared libraries,
7912 *** $file_magic_cmd, produces output that libtool cannot recognize.
7913 *** The result is that libtool may fail to recognize shared libraries
7914 *** as such.  This will affect the creation of libtool libraries that
7915 *** depend on shared libraries, but programs linked with such libtool
7916 *** libraries will work regardless of this problem.  Nevertheless, you
7917 *** may want to report the problem to your system manager and/or to
7918 *** bug-libtool@gnu.org
7919
7920 _LT_EOF
7921           fi ;;
7922         esac
7923       fi
7924       break
7925     fi
7926   done
7927   IFS="$lt_save_ifs"
7928   MAGIC_CMD="$lt_save_MAGIC_CMD"
7929   ;;
7930 esac
7931 fi
7932
7933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7934 if test -n "$MAGIC_CMD"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7936 $as_echo "$MAGIC_CMD" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943
7944
7945
7946 if test -z "$lt_cv_path_MAGIC_CMD"; then
7947   if test -n "$ac_tool_prefix"; then
7948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7949 $as_echo_n "checking for file... " >&6; }
7950 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   case $MAGIC_CMD in
7954 [\\/*] |  ?:[\\/]*)
7955   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7956   ;;
7957 *)
7958   lt_save_MAGIC_CMD="$MAGIC_CMD"
7959   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7960   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7961   for ac_dir in $ac_dummy; do
7962     IFS="$lt_save_ifs"
7963     test -z "$ac_dir" && ac_dir=.
7964     if test -f $ac_dir/file; then
7965       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7966       if test -n "$file_magic_test_file"; then
7967         case $deplibs_check_method in
7968         "file_magic "*)
7969           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7970           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7972             $EGREP "$file_magic_regex" > /dev/null; then
7973             :
7974           else
7975             cat <<_LT_EOF 1>&2
7976
7977 *** Warning: the command libtool uses to detect shared libraries,
7978 *** $file_magic_cmd, produces output that libtool cannot recognize.
7979 *** The result is that libtool may fail to recognize shared libraries
7980 *** as such.  This will affect the creation of libtool libraries that
7981 *** depend on shared libraries, but programs linked with such libtool
7982 *** libraries will work regardless of this problem.  Nevertheless, you
7983 *** may want to report the problem to your system manager and/or to
7984 *** bug-libtool@gnu.org
7985
7986 _LT_EOF
7987           fi ;;
7988         esac
7989       fi
7990       break
7991     fi
7992   done
7993   IFS="$lt_save_ifs"
7994   MAGIC_CMD="$lt_save_MAGIC_CMD"
7995   ;;
7996 esac
7997 fi
7998
7999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000 if test -n "$MAGIC_CMD"; then
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8002 $as_echo "$MAGIC_CMD" >&6; }
8003 else
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008
8009   else
8010     MAGIC_CMD=:
8011   fi
8012 fi
8013
8014   fi
8015   ;;
8016 esac
8017
8018 # Use C for the default configuration in the libtool script
8019
8020 lt_save_CC="$CC"
8021 ac_ext=c
8022 ac_cpp='$CPP $CPPFLAGS'
8023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026
8027
8028 # Source file extension for C test sources.
8029 ac_ext=c
8030
8031 # Object file extension for compiled C test sources.
8032 objext=o
8033 objext=$objext
8034
8035 # Code to be used in simple compile tests
8036 lt_simple_compile_test_code="int some_variable = 0;"
8037
8038 # Code to be used in simple link tests
8039 lt_simple_link_test_code='int main(){return(0);}'
8040
8041
8042
8043
8044
8045
8046
8047 # If no C compiler was specified, use CC.
8048 LTCC=${LTCC-"$CC"}
8049
8050 # If no C compiler flags were specified, use CFLAGS.
8051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8052
8053 # Allow CC to be a program name with arguments.
8054 compiler=$CC
8055
8056 # Save the default compiler, since it gets overwritten when the other
8057 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8058 compiler_DEFAULT=$CC
8059
8060 # save warnings/boilerplate of simple test code
8061 ac_outfile=conftest.$ac_objext
8062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8064 _lt_compiler_boilerplate=`cat conftest.err`
8065 $RM conftest*
8066
8067 ac_outfile=conftest.$ac_objext
8068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070 _lt_linker_boilerplate=`cat conftest.err`
8071 $RM -r conftest*
8072
8073
8074 ## CAVEAT EMPTOR:
8075 ## There is no encapsulation within the following macros, do not change
8076 ## the running order or otherwise move them around unless you know exactly
8077 ## what you are doing...
8078 if test -n "$compiler"; then
8079
8080 lt_prog_compiler_no_builtin_flag=
8081
8082 if test "$GCC" = yes; then
8083   case $cc_basename in
8084   nvcc*)
8085     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8086   *)
8087     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8088   esac
8089
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8091 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8092 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8093   $as_echo_n "(cached) " >&6
8094 else
8095   lt_cv_prog_compiler_rtti_exceptions=no
8096    ac_outfile=conftest.$ac_objext
8097    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8098    lt_compiler_flag="-fno-rtti -fno-exceptions"
8099    # Insert the option either (1) after the last *FLAGS variable, or
8100    # (2) before a word containing "conftest.", or (3) at the end.
8101    # Note that $ac_compile itself does not contain backslashes and begins
8102    # with a dollar sign (not a hyphen), so the echo should work correctly.
8103    # The option is referenced via a variable to avoid confusing sed.
8104    lt_compile=`echo "$ac_compile" | $SED \
8105    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107    -e 's:$: $lt_compiler_flag:'`
8108    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8109    (eval "$lt_compile" 2>conftest.err)
8110    ac_status=$?
8111    cat conftest.err >&5
8112    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113    if (exit $ac_status) && test -s "$ac_outfile"; then
8114      # The compiler can only warn and ignore the option if not recognized
8115      # So say no if there are warnings other than the usual output.
8116      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8117      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8118      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8119        lt_cv_prog_compiler_rtti_exceptions=yes
8120      fi
8121    fi
8122    $RM conftest*
8123
8124 fi
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8126 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8127
8128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8129     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8130 else
8131     :
8132 fi
8133
8134 fi
8135
8136
8137
8138
8139
8140
8141   lt_prog_compiler_wl=
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_static=
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8146 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8147
8148   if test "$GCC" = yes; then
8149     lt_prog_compiler_wl='-Wl,'
8150     lt_prog_compiler_static='-static'
8151
8152     case $host_os in
8153       aix*)
8154       # All AIX code is PIC.
8155       if test "$host_cpu" = ia64; then
8156         # AIX 5 now supports IA64 processor
8157         lt_prog_compiler_static='-Bstatic'
8158       fi
8159       ;;
8160
8161     amigaos*)
8162       case $host_cpu in
8163       powerpc)
8164             # see comment about AmigaOS4 .so support
8165             lt_prog_compiler_pic='-fPIC'
8166         ;;
8167       m68k)
8168             # FIXME: we need at least 68020 code to build shared libraries, but
8169             # adding the `-m68020' flag to GCC prevents building anything better,
8170             # like `-m68040'.
8171             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8172         ;;
8173       esac
8174       ;;
8175
8176     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8177       # PIC is the default for these OSes.
8178       ;;
8179
8180     mingw* | cygwin* | pw32* | os2* | cegcc*)
8181       # This hack is so that the source file can tell whether it is being
8182       # built for inclusion in a dll (and should export symbols for example).
8183       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8184       # (--disable-auto-import) libraries
8185       lt_prog_compiler_pic='-DDLL_EXPORT'
8186       ;;
8187
8188     darwin* | rhapsody*)
8189       # PIC is the default on this platform
8190       # Common symbols not allowed in MH_DYLIB files
8191       lt_prog_compiler_pic='-fno-common'
8192       ;;
8193
8194     haiku*)
8195       # PIC is the default for Haiku.
8196       # The "-static" flag exists, but is broken.
8197       lt_prog_compiler_static=
8198       ;;
8199
8200     hpux*)
8201       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8202       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8203       # sets the default TLS model and affects inlining.
8204       case $host_cpu in
8205       hppa*64*)
8206         # +Z the default
8207         ;;
8208       *)
8209         lt_prog_compiler_pic='-fPIC'
8210         ;;
8211       esac
8212       ;;
8213
8214     interix[3-9]*)
8215       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8216       # Instead, we relocate shared libraries at runtime.
8217       ;;
8218
8219     msdosdjgpp*)
8220       # Just because we use GCC doesn't mean we suddenly get shared libraries
8221       # on systems that don't support them.
8222       lt_prog_compiler_can_build_shared=no
8223       enable_shared=no
8224       ;;
8225
8226     *nto* | *qnx*)
8227       # QNX uses GNU C++, but need to define -shared option too, otherwise
8228       # it will coredump.
8229       lt_prog_compiler_pic='-fPIC -shared'
8230       ;;
8231
8232     sysv4*MP*)
8233       if test -d /usr/nec; then
8234         lt_prog_compiler_pic=-Kconform_pic
8235       fi
8236       ;;
8237
8238     *)
8239       lt_prog_compiler_pic='-fPIC'
8240       ;;
8241     esac
8242
8243     case $cc_basename in
8244     nvcc*) # Cuda Compiler Driver 2.2
8245       lt_prog_compiler_wl='-Xlinker '
8246       lt_prog_compiler_pic='-Xcompiler -fPIC'
8247       ;;
8248     esac
8249   else
8250     # PORTME Check for flag to pass linker flags through the system compiler.
8251     case $host_os in
8252     aix*)
8253       lt_prog_compiler_wl='-Wl,'
8254       if test "$host_cpu" = ia64; then
8255         # AIX 5 now supports IA64 processor
8256         lt_prog_compiler_static='-Bstatic'
8257       else
8258         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8259       fi
8260       ;;
8261
8262     mingw* | cygwin* | pw32* | os2* | cegcc*)
8263       # This hack is so that the source file can tell whether it is being
8264       # built for inclusion in a dll (and should export symbols for example).
8265       lt_prog_compiler_pic='-DDLL_EXPORT'
8266       ;;
8267
8268     hpux9* | hpux10* | hpux11*)
8269       lt_prog_compiler_wl='-Wl,'
8270       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8271       # not for PA HP-UX.
8272       case $host_cpu in
8273       hppa*64*|ia64*)
8274         # +Z the default
8275         ;;
8276       *)
8277         lt_prog_compiler_pic='+Z'
8278         ;;
8279       esac
8280       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8281       lt_prog_compiler_static='${wl}-a ${wl}archive'
8282       ;;
8283
8284     irix5* | irix6* | nonstopux*)
8285       lt_prog_compiler_wl='-Wl,'
8286       # PIC (with -KPIC) is the default.
8287       lt_prog_compiler_static='-non_shared'
8288       ;;
8289
8290     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8291       case $cc_basename in
8292       # old Intel for x86_64 which still supported -KPIC.
8293       ecc*)
8294         lt_prog_compiler_wl='-Wl,'
8295         lt_prog_compiler_pic='-KPIC'
8296         lt_prog_compiler_static='-static'
8297         ;;
8298       # icc used to be incompatible with GCC.
8299       # ICC 10 doesn't accept -KPIC any more.
8300       icc* | ifort*)
8301         lt_prog_compiler_wl='-Wl,'
8302         lt_prog_compiler_pic='-fPIC'
8303         lt_prog_compiler_static='-static'
8304         ;;
8305       # Lahey Fortran 8.1.
8306       lf95*)
8307         lt_prog_compiler_wl='-Wl,'
8308         lt_prog_compiler_pic='--shared'
8309         lt_prog_compiler_static='--static'
8310         ;;
8311       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8312         # Portland Group compilers (*not* the Pentium gcc compiler,
8313         # which looks to be a dead project)
8314         lt_prog_compiler_wl='-Wl,'
8315         lt_prog_compiler_pic='-fpic'
8316         lt_prog_compiler_static='-Bstatic'
8317         ;;
8318       ccc*)
8319         lt_prog_compiler_wl='-Wl,'
8320         # All Alpha code is PIC.
8321         lt_prog_compiler_static='-non_shared'
8322         ;;
8323       xl* | bgxl* | bgf* | mpixl*)
8324         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8325         lt_prog_compiler_wl='-Wl,'
8326         lt_prog_compiler_pic='-qpic'
8327         lt_prog_compiler_static='-qstaticlink'
8328         ;;
8329       *)
8330         case `$CC -V 2>&1 | sed 5q` in
8331         *Sun\ F* | *Sun*Fortran*)
8332           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8333           lt_prog_compiler_pic='-KPIC'
8334           lt_prog_compiler_static='-Bstatic'
8335           lt_prog_compiler_wl=''
8336           ;;
8337         *Sun\ C*)
8338           # Sun C 5.9
8339           lt_prog_compiler_pic='-KPIC'
8340           lt_prog_compiler_static='-Bstatic'
8341           lt_prog_compiler_wl='-Wl,'
8342           ;;
8343         esac
8344         ;;
8345       esac
8346       ;;
8347
8348     newsos6)
8349       lt_prog_compiler_pic='-KPIC'
8350       lt_prog_compiler_static='-Bstatic'
8351       ;;
8352
8353     *nto* | *qnx*)
8354       # QNX uses GNU C++, but need to define -shared option too, otherwise
8355       # it will coredump.
8356       lt_prog_compiler_pic='-fPIC -shared'
8357       ;;
8358
8359     osf3* | osf4* | osf5*)
8360       lt_prog_compiler_wl='-Wl,'
8361       # All OSF/1 code is PIC.
8362       lt_prog_compiler_static='-non_shared'
8363       ;;
8364
8365     rdos*)
8366       lt_prog_compiler_static='-non_shared'
8367       ;;
8368
8369     solaris*)
8370       lt_prog_compiler_pic='-KPIC'
8371       lt_prog_compiler_static='-Bstatic'
8372       case $cc_basename in
8373       f77* | f90* | f95*)
8374         lt_prog_compiler_wl='-Qoption ld ';;
8375       *)
8376         lt_prog_compiler_wl='-Wl,';;
8377       esac
8378       ;;
8379
8380     sunos4*)
8381       lt_prog_compiler_wl='-Qoption ld '
8382       lt_prog_compiler_pic='-PIC'
8383       lt_prog_compiler_static='-Bstatic'
8384       ;;
8385
8386     sysv4 | sysv4.2uw2* | sysv4.3*)
8387       lt_prog_compiler_wl='-Wl,'
8388       lt_prog_compiler_pic='-KPIC'
8389       lt_prog_compiler_static='-Bstatic'
8390       ;;
8391
8392     sysv4*MP*)
8393       if test -d /usr/nec ;then
8394         lt_prog_compiler_pic='-Kconform_pic'
8395         lt_prog_compiler_static='-Bstatic'
8396       fi
8397       ;;
8398
8399     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8400       lt_prog_compiler_wl='-Wl,'
8401       lt_prog_compiler_pic='-KPIC'
8402       lt_prog_compiler_static='-Bstatic'
8403       ;;
8404
8405     unicos*)
8406       lt_prog_compiler_wl='-Wl,'
8407       lt_prog_compiler_can_build_shared=no
8408       ;;
8409
8410     uts4*)
8411       lt_prog_compiler_pic='-pic'
8412       lt_prog_compiler_static='-Bstatic'
8413       ;;
8414
8415     *)
8416       lt_prog_compiler_can_build_shared=no
8417       ;;
8418     esac
8419   fi
8420
8421 case $host_os in
8422   # For platforms which do not support PIC, -DPIC is meaningless:
8423   *djgpp*)
8424     lt_prog_compiler_pic=
8425     ;;
8426   *)
8427     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8428     ;;
8429 esac
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8431 $as_echo "$lt_prog_compiler_pic" >&6; }
8432
8433
8434
8435
8436
8437
8438 #
8439 # Check to make sure the PIC flag actually works.
8440 #
8441 if test -n "$lt_prog_compiler_pic"; then
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8443 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8444 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8445   $as_echo_n "(cached) " >&6
8446 else
8447   lt_cv_prog_compiler_pic_works=no
8448    ac_outfile=conftest.$ac_objext
8449    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8450    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8451    # Insert the option either (1) after the last *FLAGS variable, or
8452    # (2) before a word containing "conftest.", or (3) at the end.
8453    # Note that $ac_compile itself does not contain backslashes and begins
8454    # with a dollar sign (not a hyphen), so the echo should work correctly.
8455    # The option is referenced via a variable to avoid confusing sed.
8456    lt_compile=`echo "$ac_compile" | $SED \
8457    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8458    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8459    -e 's:$: $lt_compiler_flag:'`
8460    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8461    (eval "$lt_compile" 2>conftest.err)
8462    ac_status=$?
8463    cat conftest.err >&5
8464    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465    if (exit $ac_status) && test -s "$ac_outfile"; then
8466      # The compiler can only warn and ignore the option if not recognized
8467      # So say no if there are warnings other than the usual output.
8468      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8469      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8470      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8471        lt_cv_prog_compiler_pic_works=yes
8472      fi
8473    fi
8474    $RM conftest*
8475
8476 fi
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8478 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8479
8480 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8481     case $lt_prog_compiler_pic in
8482      "" | " "*) ;;
8483      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8484      esac
8485 else
8486     lt_prog_compiler_pic=
8487      lt_prog_compiler_can_build_shared=no
8488 fi
8489
8490 fi
8491
8492
8493
8494
8495
8496
8497 #
8498 # Check to make sure the static flag actually works.
8499 #
8500 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8502 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8503 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   lt_cv_prog_compiler_static_works=no
8507    save_LDFLAGS="$LDFLAGS"
8508    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8509    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8510    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8511      # The linker can only warn and ignore the option if not recognized
8512      # So say no if there are warnings
8513      if test -s conftest.err; then
8514        # Append any errors to the config.log.
8515        cat conftest.err 1>&5
8516        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8517        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8518        if diff conftest.exp conftest.er2 >/dev/null; then
8519          lt_cv_prog_compiler_static_works=yes
8520        fi
8521      else
8522        lt_cv_prog_compiler_static_works=yes
8523      fi
8524    fi
8525    $RM -r conftest*
8526    LDFLAGS="$save_LDFLAGS"
8527
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8530 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8531
8532 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8533     :
8534 else
8535     lt_prog_compiler_static=
8536 fi
8537
8538
8539
8540
8541
8542
8543
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8545 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8546 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549   lt_cv_prog_compiler_c_o=no
8550    $RM -r conftest 2>/dev/null
8551    mkdir conftest
8552    cd conftest
8553    mkdir out
8554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8555
8556    lt_compiler_flag="-o out/conftest2.$ac_objext"
8557    # Insert the option either (1) after the last *FLAGS variable, or
8558    # (2) before a word containing "conftest.", or (3) at the end.
8559    # Note that $ac_compile itself does not contain backslashes and begins
8560    # with a dollar sign (not a hyphen), so the echo should work correctly.
8561    lt_compile=`echo "$ac_compile" | $SED \
8562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8564    -e 's:$: $lt_compiler_flag:'`
8565    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8566    (eval "$lt_compile" 2>out/conftest.err)
8567    ac_status=$?
8568    cat out/conftest.err >&5
8569    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8571    then
8572      # The compiler can only warn and ignore the option if not recognized
8573      # So say no if there are warnings
8574      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8575      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8576      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8577        lt_cv_prog_compiler_c_o=yes
8578      fi
8579    fi
8580    chmod u+w . 2>&5
8581    $RM conftest*
8582    # SGI C++ compiler will create directory out/ii_files/ for
8583    # template instantiation
8584    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8585    $RM out/* && rmdir out
8586    cd ..
8587    $RM -r conftest
8588    $RM conftest*
8589
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8592 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8593
8594
8595
8596
8597
8598
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8600 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8601 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   lt_cv_prog_compiler_c_o=no
8605    $RM -r conftest 2>/dev/null
8606    mkdir conftest
8607    cd conftest
8608    mkdir out
8609    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8610
8611    lt_compiler_flag="-o out/conftest2.$ac_objext"
8612    # Insert the option either (1) after the last *FLAGS variable, or
8613    # (2) before a word containing "conftest.", or (3) at the end.
8614    # Note that $ac_compile itself does not contain backslashes and begins
8615    # with a dollar sign (not a hyphen), so the echo should work correctly.
8616    lt_compile=`echo "$ac_compile" | $SED \
8617    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8618    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8619    -e 's:$: $lt_compiler_flag:'`
8620    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8621    (eval "$lt_compile" 2>out/conftest.err)
8622    ac_status=$?
8623    cat out/conftest.err >&5
8624    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8626    then
8627      # The compiler can only warn and ignore the option if not recognized
8628      # So say no if there are warnings
8629      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8630      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8631      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8632        lt_cv_prog_compiler_c_o=yes
8633      fi
8634    fi
8635    chmod u+w . 2>&5
8636    $RM conftest*
8637    # SGI C++ compiler will create directory out/ii_files/ for
8638    # template instantiation
8639    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8640    $RM out/* && rmdir out
8641    cd ..
8642    $RM -r conftest
8643    $RM conftest*
8644
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8647 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8648
8649
8650
8651
8652 hard_links="nottested"
8653 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8654   # do not overwrite the value of need_locks provided by the user
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8656 $as_echo_n "checking if we can lock with hard links... " >&6; }
8657   hard_links=yes
8658   $RM conftest*
8659   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8660   touch conftest.a
8661   ln conftest.a conftest.b 2>&5 || hard_links=no
8662   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8664 $as_echo "$hard_links" >&6; }
8665   if test "$hard_links" = no; then
8666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8667 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8668     need_locks=warn
8669   fi
8670 else
8671   need_locks=no
8672 fi
8673
8674
8675
8676
8677
8678
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8680 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8681
8682   runpath_var=
8683   allow_undefined_flag=
8684   always_export_symbols=no
8685   archive_cmds=
8686   archive_expsym_cmds=
8687   compiler_needs_object=no
8688   enable_shared_with_static_runtimes=no
8689   export_dynamic_flag_spec=
8690   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8691   hardcode_automatic=no
8692   hardcode_direct=no
8693   hardcode_direct_absolute=no
8694   hardcode_libdir_flag_spec=
8695   hardcode_libdir_flag_spec_ld=
8696   hardcode_libdir_separator=
8697   hardcode_minus_L=no
8698   hardcode_shlibpath_var=unsupported
8699   inherit_rpath=no
8700   link_all_deplibs=unknown
8701   module_cmds=
8702   module_expsym_cmds=
8703   old_archive_from_new_cmds=
8704   old_archive_from_expsyms_cmds=
8705   thread_safe_flag_spec=
8706   whole_archive_flag_spec=
8707   # include_expsyms should be a list of space-separated symbols to be *always*
8708   # included in the symbol list
8709   include_expsyms=
8710   # exclude_expsyms can be an extended regexp of symbols to exclude
8711   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8712   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8713   # as well as any symbol that contains `d'.
8714   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8715   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8716   # platforms (ab)use it in PIC code, but their linkers get confused if
8717   # the symbol is explicitly referenced.  Since portable code cannot
8718   # rely on this symbol name, it's probably fine to never include it in
8719   # preloaded symbol tables.
8720   # Exclude shared library initialization/finalization symbols.
8721   extract_expsyms_cmds=
8722
8723   case $host_os in
8724   cygwin* | mingw* | pw32* | cegcc*)
8725     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8726     # When not using gcc, we currently assume that we are using
8727     # Microsoft Visual C++.
8728     if test "$GCC" != yes; then
8729       with_gnu_ld=no
8730     fi
8731     ;;
8732   interix*)
8733     # we just hope/assume this is gcc and not c89 (= MSVC++)
8734     with_gnu_ld=yes
8735     ;;
8736   openbsd*)
8737     with_gnu_ld=no
8738     ;;
8739   esac
8740
8741   ld_shlibs=yes
8742
8743   # On some targets, GNU ld is compatible enough with the native linker
8744   # that we're better off using the native interface for both.
8745   lt_use_gnu_ld_interface=no
8746   if test "$with_gnu_ld" = yes; then
8747     case $host_os in
8748       aix*)
8749         # The AIX port of GNU ld has always aspired to compatibility
8750         # with the native linker.  However, as the warning in the GNU ld
8751         # block says, versions before 2.19.5* couldn't really create working
8752         # shared libraries, regardless of the interface used.
8753         case `$LD -v 2>&1` in
8754           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8755           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8756           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8757           *)
8758             lt_use_gnu_ld_interface=yes
8759             ;;
8760         esac
8761         ;;
8762       *)
8763         lt_use_gnu_ld_interface=yes
8764         ;;
8765     esac
8766   fi
8767
8768   if test "$lt_use_gnu_ld_interface" = yes; then
8769     # If archive_cmds runs LD, not CC, wlarc should be empty
8770     wlarc='${wl}'
8771
8772     # Set some defaults for GNU ld with shared library support. These
8773     # are reset later if shared libraries are not supported. Putting them
8774     # here allows them to be overridden if necessary.
8775     runpath_var=LD_RUN_PATH
8776     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777     export_dynamic_flag_spec='${wl}--export-dynamic'
8778     # ancient GNU ld didn't support --whole-archive et. al.
8779     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8780       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8781     else
8782       whole_archive_flag_spec=
8783     fi
8784     supports_anon_versioning=no
8785     case `$LD -v 2>&1` in
8786       *GNU\ gold*) supports_anon_versioning=yes ;;
8787       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8788       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8789       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8790       *\ 2.11.*) ;; # other 2.11 versions
8791       *) supports_anon_versioning=yes ;;
8792     esac
8793
8794     # See if GNU ld supports shared libraries.
8795     case $host_os in
8796     aix[3-9]*)
8797       # On AIX/PPC, the GNU linker is very broken
8798       if test "$host_cpu" != ia64; then
8799         ld_shlibs=no
8800         cat <<_LT_EOF 1>&2
8801
8802 *** Warning: the GNU linker, at least up to release 2.19, is reported
8803 *** to be unable to reliably create shared libraries on AIX.
8804 *** Therefore, libtool is disabling shared libraries support.  If you
8805 *** really care for shared libraries, you may want to install binutils
8806 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8807 *** You will then need to restart the configuration process.
8808
8809 _LT_EOF
8810       fi
8811       ;;
8812
8813     amigaos*)
8814       case $host_cpu in
8815       powerpc)
8816             # see comment about AmigaOS4 .so support
8817             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818             archive_expsym_cmds=''
8819         ;;
8820       m68k)
8821             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)'
8822             hardcode_libdir_flag_spec='-L$libdir'
8823             hardcode_minus_L=yes
8824         ;;
8825       esac
8826       ;;
8827
8828     beos*)
8829       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8830         allow_undefined_flag=unsupported
8831         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8832         # support --undefined.  This deserves some investigation.  FIXME
8833         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834       else
8835         ld_shlibs=no
8836       fi
8837       ;;
8838
8839     cygwin* | mingw* | pw32* | cegcc*)
8840       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8841       # as there is no search path for DLLs.
8842       hardcode_libdir_flag_spec='-L$libdir'
8843       export_dynamic_flag_spec='${wl}--export-all-symbols'
8844       allow_undefined_flag=unsupported
8845       always_export_symbols=no
8846       enable_shared_with_static_runtimes=yes
8847       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8848
8849       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8850         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8851         # If the export-symbols file already is a .def file (1st line
8852         # is EXPORTS), use it as is; otherwise, prepend...
8853         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8854           cp $export_symbols $output_objdir/$soname.def;
8855         else
8856           echo EXPORTS > $output_objdir/$soname.def;
8857           cat $export_symbols >> $output_objdir/$soname.def;
8858         fi~
8859         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8860       else
8861         ld_shlibs=no
8862       fi
8863       ;;
8864
8865     haiku*)
8866       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867       link_all_deplibs=yes
8868       ;;
8869
8870     interix[3-9]*)
8871       hardcode_direct=no
8872       hardcode_shlibpath_var=no
8873       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8874       export_dynamic_flag_spec='${wl}-E'
8875       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8876       # Instead, shared libraries are loaded at an image base (0x10000000 by
8877       # default) and relocated if they conflict, which is a slow very memory
8878       # consuming and fragmenting process.  To avoid this, we pick a random,
8879       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8880       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8881       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8882       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'
8883       ;;
8884
8885     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8886       tmp_diet=no
8887       if test "$host_os" = linux-dietlibc; then
8888         case $cc_basename in
8889           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8890         esac
8891       fi
8892       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8893          && test "$tmp_diet" = no
8894       then
8895         tmp_addflag=
8896         tmp_sharedflag='-shared'
8897         case $cc_basename,$host_cpu in
8898         pgcc*)                          # Portland Group C compiler
8899           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'
8900           tmp_addflag=' $pic_flag'
8901           ;;
8902         pgf77* | pgf90* | pgf95* | pgfortran*)
8903                                         # Portland Group f77 and f90 compilers
8904           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'
8905           tmp_addflag=' $pic_flag -Mnomain' ;;
8906         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8907           tmp_addflag=' -i_dynamic' ;;
8908         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8909           tmp_addflag=' -i_dynamic -nofor_main' ;;
8910         ifc* | ifort*)                  # Intel Fortran compiler
8911           tmp_addflag=' -nofor_main' ;;
8912         lf95*)                          # Lahey Fortran 8.1
8913           whole_archive_flag_spec=
8914           tmp_sharedflag='--shared' ;;
8915         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8916           tmp_sharedflag='-qmkshrobj'
8917           tmp_addflag= ;;
8918         nvcc*)  # Cuda Compiler Driver 2.2
8919           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'
8920           compiler_needs_object=yes
8921           ;;
8922         esac
8923         case `$CC -V 2>&1 | sed 5q` in
8924         *Sun\ C*)                       # Sun C 5.9
8925           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'
8926           compiler_needs_object=yes
8927           tmp_sharedflag='-G' ;;
8928         *Sun\ F*)                       # Sun Fortran 8.3
8929           tmp_sharedflag='-G' ;;
8930         esac
8931         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932
8933         if test "x$supports_anon_versioning" = xyes; then
8934           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8935             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8936             echo "local: *; };" >> $output_objdir/$libname.ver~
8937             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8938         fi
8939
8940         case $cc_basename in
8941         xlf* | bgf* | bgxlf* | mpixlf*)
8942           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8943           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8944           hardcode_libdir_flag_spec=
8945           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8946           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8947           if test "x$supports_anon_versioning" = xyes; then
8948             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8949               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8950               echo "local: *; };" >> $output_objdir/$libname.ver~
8951               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8952           fi
8953           ;;
8954         esac
8955       else
8956         ld_shlibs=no
8957       fi
8958       ;;
8959
8960     netbsd*)
8961       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8962         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8963         wlarc=
8964       else
8965         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8967       fi
8968       ;;
8969
8970     solaris*)
8971       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8972         ld_shlibs=no
8973         cat <<_LT_EOF 1>&2
8974
8975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8976 *** create shared libraries on Solaris systems.  Therefore, libtool
8977 *** is disabling shared libraries support.  We urge you to upgrade GNU
8978 *** binutils to release 2.9.1 or newer.  Another option is to modify
8979 *** your PATH or compiler configuration so that the native linker is
8980 *** used, and then restart.
8981
8982 _LT_EOF
8983       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8984         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986       else
8987         ld_shlibs=no
8988       fi
8989       ;;
8990
8991     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8992       case `$LD -v 2>&1` in
8993         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8994         ld_shlibs=no
8995         cat <<_LT_EOF 1>&2
8996
8997 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8998 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8999 *** is disabling shared libraries support.  We urge you to upgrade GNU
9000 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9001 *** your PATH or compiler configuration so that the native linker is
9002 *** used, and then restart.
9003
9004 _LT_EOF
9005         ;;
9006         *)
9007           # For security reasons, it is highly recommended that you always
9008           # use absolute paths for naming shared libraries, and exclude the
9009           # DT_RUNPATH tag from executables and libraries.  But doing so
9010           # requires that you compile everything twice, which is a pain.
9011           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9012             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9013             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9014             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9015           else
9016             ld_shlibs=no
9017           fi
9018         ;;
9019       esac
9020       ;;
9021
9022     sunos4*)
9023       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9024       wlarc=
9025       hardcode_direct=yes
9026       hardcode_shlibpath_var=no
9027       ;;
9028
9029     *)
9030       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9031         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033       else
9034         ld_shlibs=no
9035       fi
9036       ;;
9037     esac
9038
9039     if test "$ld_shlibs" = no; then
9040       runpath_var=
9041       hardcode_libdir_flag_spec=
9042       export_dynamic_flag_spec=
9043       whole_archive_flag_spec=
9044     fi
9045   else
9046     # PORTME fill in a description of your system's linker (not GNU ld)
9047     case $host_os in
9048     aix3*)
9049       allow_undefined_flag=unsupported
9050       always_export_symbols=yes
9051       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'
9052       # Note: this linker hardcodes the directories in LIBPATH if there
9053       # are no directories specified by -L.
9054       hardcode_minus_L=yes
9055       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9056         # Neither direct hardcoding nor static linking is supported with a
9057         # broken collect2.
9058         hardcode_direct=unsupported
9059       fi
9060       ;;
9061
9062     aix[4-9]*)
9063       if test "$host_cpu" = ia64; then
9064         # On IA64, the linker does run time linking by default, so we don't
9065         # have to do anything special.
9066         aix_use_runtimelinking=no
9067         exp_sym_flag='-Bexport'
9068         no_entry_flag=""
9069       else
9070         # If we're using GNU nm, then we don't want the "-C" option.
9071         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9072         # Also, AIX nm treats weak defined symbols like other global
9073         # defined symbols, whereas GNU nm marks them as "W".
9074         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9075           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'
9076         else
9077           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'
9078         fi
9079         aix_use_runtimelinking=no
9080
9081         # Test if we are trying to use run time linking or normal
9082         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083         # need to do runtime linking.
9084         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9085           for ld_flag in $LDFLAGS; do
9086           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087             aix_use_runtimelinking=yes
9088             break
9089           fi
9090           done
9091           ;;
9092         esac
9093
9094         exp_sym_flag='-bexport'
9095         no_entry_flag='-bnoentry'
9096       fi
9097
9098       # When large executables or shared objects are built, AIX ld can
9099       # have problems creating the table of contents.  If linking a library
9100       # or program results in "error TOC overflow" add -mminimal-toc to
9101       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9102       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103
9104       archive_cmds=''
9105       hardcode_direct=yes
9106       hardcode_direct_absolute=yes
9107       hardcode_libdir_separator=':'
9108       link_all_deplibs=yes
9109       file_list_spec='${wl}-f,'
9110
9111       if test "$GCC" = yes; then
9112         case $host_os in aix4.[012]|aix4.[012].*)
9113         # We only want to do this on AIX 4.2 and lower, the check
9114         # below for broken collect2 doesn't work under 4.3+
9115           collect2name=`${CC} -print-prog-name=collect2`
9116           if test -f "$collect2name" &&
9117            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9118           then
9119           # We have reworked collect2
9120           :
9121           else
9122           # We have old collect2
9123           hardcode_direct=unsupported
9124           # It fails to find uninstalled libraries when the uninstalled
9125           # path is not listed in the libpath.  Setting hardcode_minus_L
9126           # to unsupported forces relinking
9127           hardcode_minus_L=yes
9128           hardcode_libdir_flag_spec='-L$libdir'
9129           hardcode_libdir_separator=
9130           fi
9131           ;;
9132         esac
9133         shared_flag='-shared'
9134         if test "$aix_use_runtimelinking" = yes; then
9135           shared_flag="$shared_flag "'${wl}-G'
9136         fi
9137       else
9138         # not using gcc
9139         if test "$host_cpu" = ia64; then
9140         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9141         # chokes on -Wl,-G. The following line is correct:
9142           shared_flag='-G'
9143         else
9144           if test "$aix_use_runtimelinking" = yes; then
9145             shared_flag='${wl}-G'
9146           else
9147             shared_flag='${wl}-bM:SRE'
9148           fi
9149         fi
9150       fi
9151
9152       export_dynamic_flag_spec='${wl}-bexpall'
9153       # It seems that -bexpall does not export symbols beginning with
9154       # underscore (_), so it is better to generate a list of symbols to export.
9155       always_export_symbols=yes
9156       if test "$aix_use_runtimelinking" = yes; then
9157         # Warning - without using the other runtime loading flags (-brtl),
9158         # -berok will link without error, but may produce a broken library.
9159         allow_undefined_flag='-berok'
9160         # Determine the default libpath from the value encoded in an
9161         # empty executable.
9162         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h.  */
9164
9165 int
9166 main ()
9167 {
9168
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9174
9175 lt_aix_libpath_sed='
9176     /Import File Strings/,/^$/ {
9177         /^0/ {
9178             s/^0  *\(.*\)$/\1/
9179             p
9180         }
9181     }'
9182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 # Check for a 64-bit object if we didn't find anything.
9184 if test -z "$aix_libpath"; then
9185   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186 fi
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext \
9189     conftest$ac_exeext conftest.$ac_ext
9190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9191
9192         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9193         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"
9194       else
9195         if test "$host_cpu" = ia64; then
9196           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9197           allow_undefined_flag="-z nodefs"
9198           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"
9199         else
9200          # Determine the default libpath from the value encoded in an
9201          # empty executable.
9202          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h.  */
9204
9205 int
9206 main ()
9207 {
9208
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214
9215 lt_aix_libpath_sed='
9216     /Import File Strings/,/^$/ {
9217         /^0/ {
9218             s/^0  *\(.*\)$/\1/
9219             p
9220         }
9221     }'
9222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 # Check for a 64-bit object if we didn't find anything.
9224 if test -z "$aix_libpath"; then
9225   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 fi
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext \
9229     conftest$ac_exeext conftest.$ac_ext
9230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9231
9232          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9233           # Warning - without using the other run time loading flags,
9234           # -berok will link without error, but may produce a broken library.
9235           no_undefined_flag=' ${wl}-bernotok'
9236           allow_undefined_flag=' ${wl}-berok'
9237           if test "$with_gnu_ld" = yes; then
9238             # We only use this code for GNU lds that support --whole-archive.
9239             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9240           else
9241             # Exported symbols can be pulled into shared objects from archives
9242             whole_archive_flag_spec='$convenience'
9243           fi
9244           archive_cmds_need_lc=yes
9245           # This is similar to how AIX traditionally builds its shared libraries.
9246           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'
9247         fi
9248       fi
9249       ;;
9250
9251     amigaos*)
9252       case $host_cpu in
9253       powerpc)
9254             # see comment about AmigaOS4 .so support
9255             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256             archive_expsym_cmds=''
9257         ;;
9258       m68k)
9259             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)'
9260             hardcode_libdir_flag_spec='-L$libdir'
9261             hardcode_minus_L=yes
9262         ;;
9263       esac
9264       ;;
9265
9266     bsdi[45]*)
9267       export_dynamic_flag_spec=-rdynamic
9268       ;;
9269
9270     cygwin* | mingw* | pw32* | cegcc*)
9271       # When not using gcc, we currently assume that we are using
9272       # Microsoft Visual C++.
9273       # hardcode_libdir_flag_spec is actually meaningless, as there is
9274       # no search path for DLLs.
9275       hardcode_libdir_flag_spec=' '
9276       allow_undefined_flag=unsupported
9277       # Tell ltmain to make .lib files, not .a files.
9278       libext=lib
9279       # Tell ltmain to make .dll files, not .so files.
9280       shrext_cmds=".dll"
9281       # FIXME: Setting linknames here is a bad hack.
9282       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9283       # The linker will automatically build a .lib file if we build a DLL.
9284       old_archive_from_new_cmds='true'
9285       # FIXME: Should let the user specify the lib program.
9286       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9287       fix_srcfile_path='`cygpath -w "$srcfile"`'
9288       enable_shared_with_static_runtimes=yes
9289       ;;
9290
9291     darwin* | rhapsody*)
9292
9293
9294   archive_cmds_need_lc=no
9295   hardcode_direct=no
9296   hardcode_automatic=yes
9297   hardcode_shlibpath_var=unsupported
9298   if test "$lt_cv_ld_force_load" = "yes"; then
9299     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\"`'
9300   else
9301     whole_archive_flag_spec=''
9302   fi
9303   link_all_deplibs=yes
9304   allow_undefined_flag="$_lt_dar_allow_undefined"
9305   case $cc_basename in
9306      ifort*) _lt_dar_can_shared=yes ;;
9307      *) _lt_dar_can_shared=$GCC ;;
9308   esac
9309   if test "$_lt_dar_can_shared" = "yes"; then
9310     output_verbose_link_cmd=func_echo_all
9311     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9312     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9313     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}"
9314     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}"
9315
9316   else
9317   ld_shlibs=no
9318   fi
9319
9320       ;;
9321
9322     dgux*)
9323       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324       hardcode_libdir_flag_spec='-L$libdir'
9325       hardcode_shlibpath_var=no
9326       ;;
9327
9328     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9329     # support.  Future versions do this automatically, but an explicit c++rt0.o
9330     # does not break anything, and helps significantly (at the cost of a little
9331     # extra space).
9332     freebsd2.2*)
9333       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9334       hardcode_libdir_flag_spec='-R$libdir'
9335       hardcode_direct=yes
9336       hardcode_shlibpath_var=no
9337       ;;
9338
9339     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9340     freebsd2*)
9341       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9342       hardcode_direct=yes
9343       hardcode_minus_L=yes
9344       hardcode_shlibpath_var=no
9345       ;;
9346
9347     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9348     freebsd* | dragonfly*)
9349       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9350       hardcode_libdir_flag_spec='-R$libdir'
9351       hardcode_direct=yes
9352       hardcode_shlibpath_var=no
9353       ;;
9354
9355     hpux9*)
9356       if test "$GCC" = yes; then
9357         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'
9358       else
9359         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'
9360       fi
9361       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9362       hardcode_libdir_separator=:
9363       hardcode_direct=yes
9364
9365       # hardcode_minus_L: Not really in the search PATH,
9366       # but as the default location of the library.
9367       hardcode_minus_L=yes
9368       export_dynamic_flag_spec='${wl}-E'
9369       ;;
9370
9371     hpux10*)
9372       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9373         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9374       else
9375         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9376       fi
9377       if test "$with_gnu_ld" = no; then
9378         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9379         hardcode_libdir_flag_spec_ld='+b $libdir'
9380         hardcode_libdir_separator=:
9381         hardcode_direct=yes
9382         hardcode_direct_absolute=yes
9383         export_dynamic_flag_spec='${wl}-E'
9384         # hardcode_minus_L: Not really in the search PATH,
9385         # but as the default location of the library.
9386         hardcode_minus_L=yes
9387       fi
9388       ;;
9389
9390     hpux11*)
9391       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9392         case $host_cpu in
9393         hppa*64*)
9394           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9395           ;;
9396         ia64*)
9397           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9398           ;;
9399         *)
9400           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9401           ;;
9402         esac
9403       else
9404         case $host_cpu in
9405         hppa*64*)
9406           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407           ;;
9408         ia64*)
9409           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9410           ;;
9411         *)
9412
9413           # Older versions of the 11.00 compiler do not understand -b yet
9414           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9415           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9416 $as_echo_n "checking if $CC understands -b... " >&6; }
9417 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9418   $as_echo_n "(cached) " >&6
9419 else
9420   lt_cv_prog_compiler__b=no
9421    save_LDFLAGS="$LDFLAGS"
9422    LDFLAGS="$LDFLAGS -b"
9423    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9424    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9425      # The linker can only warn and ignore the option if not recognized
9426      # So say no if there are warnings
9427      if test -s conftest.err; then
9428        # Append any errors to the config.log.
9429        cat conftest.err 1>&5
9430        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9431        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9432        if diff conftest.exp conftest.er2 >/dev/null; then
9433          lt_cv_prog_compiler__b=yes
9434        fi
9435      else
9436        lt_cv_prog_compiler__b=yes
9437      fi
9438    fi
9439    $RM -r conftest*
9440    LDFLAGS="$save_LDFLAGS"
9441
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9444 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9445
9446 if test x"$lt_cv_prog_compiler__b" = xyes; then
9447     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448 else
9449     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9450 fi
9451
9452           ;;
9453         esac
9454       fi
9455       if test "$with_gnu_ld" = no; then
9456         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457         hardcode_libdir_separator=:
9458
9459         case $host_cpu in
9460         hppa*64*|ia64*)
9461           hardcode_direct=no
9462           hardcode_shlibpath_var=no
9463           ;;
9464         *)
9465           hardcode_direct=yes
9466           hardcode_direct_absolute=yes
9467           export_dynamic_flag_spec='${wl}-E'
9468
9469           # hardcode_minus_L: Not really in the search PATH,
9470           # but as the default location of the library.
9471           hardcode_minus_L=yes
9472           ;;
9473         esac
9474       fi
9475       ;;
9476
9477     irix5* | irix6* | nonstopux*)
9478       if test "$GCC" = yes; then
9479         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'
9480         # Try to use the -exported_symbol ld option, if it does not
9481         # work, assume that -exports_file does not work either and
9482         # implicitly export all symbols.
9483         save_LDFLAGS="$LDFLAGS"
9484         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9485         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h.  */
9487 int foo(void) {}
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490   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'
9491
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494     conftest$ac_exeext conftest.$ac_ext
9495         LDFLAGS="$save_LDFLAGS"
9496       else
9497         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'
9498         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'
9499       fi
9500       archive_cmds_need_lc='no'
9501       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502       hardcode_libdir_separator=:
9503       inherit_rpath=yes
9504       link_all_deplibs=yes
9505       ;;
9506
9507     netbsd*)
9508       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9509         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9510       else
9511         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9512       fi
9513       hardcode_libdir_flag_spec='-R$libdir'
9514       hardcode_direct=yes
9515       hardcode_shlibpath_var=no
9516       ;;
9517
9518     newsos6)
9519       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520       hardcode_direct=yes
9521       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522       hardcode_libdir_separator=:
9523       hardcode_shlibpath_var=no
9524       ;;
9525
9526     *nto* | *qnx*)
9527       ;;
9528
9529     openbsd*)
9530       if test -f /usr/libexec/ld.so; then
9531         hardcode_direct=yes
9532         hardcode_shlibpath_var=no
9533         hardcode_direct_absolute=yes
9534         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9536           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9537           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538           export_dynamic_flag_spec='${wl}-E'
9539         else
9540           case $host_os in
9541            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9542              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9543              hardcode_libdir_flag_spec='-R$libdir'
9544              ;;
9545            *)
9546              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9547              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548              ;;
9549           esac
9550         fi
9551       else
9552         ld_shlibs=no
9553       fi
9554       ;;
9555
9556     os2*)
9557       hardcode_libdir_flag_spec='-L$libdir'
9558       hardcode_minus_L=yes
9559       allow_undefined_flag=unsupported
9560       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'
9561       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9562       ;;
9563
9564     osf3*)
9565       if test "$GCC" = yes; then
9566         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9567         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'
9568       else
9569         allow_undefined_flag=' -expect_unresolved \*'
9570         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'
9571       fi
9572       archive_cmds_need_lc='no'
9573       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574       hardcode_libdir_separator=:
9575       ;;
9576
9577     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9578       if test "$GCC" = yes; then
9579         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9580         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'
9581         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582       else
9583         allow_undefined_flag=' -expect_unresolved \*'
9584         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'
9585         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~
9586         $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'
9587
9588         # Both c and cxx compiler support -rpath directly
9589         hardcode_libdir_flag_spec='-rpath $libdir'
9590       fi
9591       archive_cmds_need_lc='no'
9592       hardcode_libdir_separator=:
9593       ;;
9594
9595     solaris*)
9596       no_undefined_flag=' -z defs'
9597       if test "$GCC" = yes; then
9598         wlarc='${wl}'
9599         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9601           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9602       else
9603         case `$CC -V 2>&1` in
9604         *"Compilers 5.0"*)
9605           wlarc=''
9606           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9608           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9609           ;;
9610         *)
9611           wlarc='${wl}'
9612           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9613           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9614           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9615           ;;
9616         esac
9617       fi
9618       hardcode_libdir_flag_spec='-R$libdir'
9619       hardcode_shlibpath_var=no
9620       case $host_os in
9621       solaris2.[0-5] | solaris2.[0-5].*) ;;
9622       *)
9623         # The compiler driver will combine and reorder linker options,
9624         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9625         # but is careful enough not to reorder.
9626         # Supported since Solaris 2.6 (maybe 2.5.1?)
9627         if test "$GCC" = yes; then
9628           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9629         else
9630           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9631         fi
9632         ;;
9633       esac
9634       link_all_deplibs=yes
9635       ;;
9636
9637     sunos4*)
9638       if test "x$host_vendor" = xsequent; then
9639         # Use $CC to link under sequent, because it throws in some extra .o
9640         # files that make .init and .fini sections work.
9641         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9642       else
9643         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9644       fi
9645       hardcode_libdir_flag_spec='-L$libdir'
9646       hardcode_direct=yes
9647       hardcode_minus_L=yes
9648       hardcode_shlibpath_var=no
9649       ;;
9650
9651     sysv4)
9652       case $host_vendor in
9653         sni)
9654           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655           hardcode_direct=yes # is this really true???
9656         ;;
9657         siemens)
9658           ## LD is ld it makes a PLAMLIB
9659           ## CC just makes a GrossModule.
9660           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9661           reload_cmds='$CC -r -o $output$reload_objs'
9662           hardcode_direct=no
9663         ;;
9664         motorola)
9665           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9667         ;;
9668       esac
9669       runpath_var='LD_RUN_PATH'
9670       hardcode_shlibpath_var=no
9671       ;;
9672
9673     sysv4.3*)
9674       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675       hardcode_shlibpath_var=no
9676       export_dynamic_flag_spec='-Bexport'
9677       ;;
9678
9679     sysv4*MP*)
9680       if test -d /usr/nec; then
9681         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682         hardcode_shlibpath_var=no
9683         runpath_var=LD_RUN_PATH
9684         hardcode_runpath_var=yes
9685         ld_shlibs=yes
9686       fi
9687       ;;
9688
9689     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9690       no_undefined_flag='${wl}-z,text'
9691       archive_cmds_need_lc=no
9692       hardcode_shlibpath_var=no
9693       runpath_var='LD_RUN_PATH'
9694
9695       if test "$GCC" = yes; then
9696         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698       else
9699         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701       fi
9702       ;;
9703
9704     sysv5* | sco3.2v5* | sco5v6*)
9705       # Note: We can NOT use -z defs as we might desire, because we do not
9706       # link with -lc, and that would cause any symbols used from libc to
9707       # always be unresolved, which means just about no library would
9708       # ever link correctly.  If we're not using GNU ld we use -z text
9709       # though, which does catch some bad symbols but isn't as heavy-handed
9710       # as -z defs.
9711       no_undefined_flag='${wl}-z,text'
9712       allow_undefined_flag='${wl}-z,nodefs'
9713       archive_cmds_need_lc=no
9714       hardcode_shlibpath_var=no
9715       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9716       hardcode_libdir_separator=':'
9717       link_all_deplibs=yes
9718       export_dynamic_flag_spec='${wl}-Bexport'
9719       runpath_var='LD_RUN_PATH'
9720
9721       if test "$GCC" = yes; then
9722         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724       else
9725         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727       fi
9728       ;;
9729
9730     uts4*)
9731       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732       hardcode_libdir_flag_spec='-L$libdir'
9733       hardcode_shlibpath_var=no
9734       ;;
9735
9736     *)
9737       ld_shlibs=no
9738       ;;
9739     esac
9740
9741     if test x$host_vendor = xsni; then
9742       case $host in
9743       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9744         export_dynamic_flag_spec='${wl}-Blargedynsym'
9745         ;;
9746       esac
9747     fi
9748   fi
9749
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9751 $as_echo "$ld_shlibs" >&6; }
9752 test "$ld_shlibs" = no && can_build_shared=no
9753
9754 with_gnu_ld=$with_gnu_ld
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770 #
9771 # Do we need to explicitly link libc?
9772 #
9773 case "x$archive_cmds_need_lc" in
9774 x|xyes)
9775   # Assume -lc should be added
9776   archive_cmds_need_lc=yes
9777
9778   if test "$enable_shared" = yes && test "$GCC" = yes; then
9779     case $archive_cmds in
9780     *'~'*)
9781       # FIXME: we may have to deal with multi-command sequences.
9782       ;;
9783     '$CC '*)
9784       # Test whether the compiler implicitly links with -lc since on some
9785       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9786       # to ld, don't add -lc before -lgcc.
9787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9789 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   $RM conftest*
9793         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9794
9795         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9796   (eval $ac_compile) 2>&5
9797   ac_status=$?
9798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9799   test $ac_status = 0; } 2>conftest.err; then
9800           soname=conftest
9801           lib=conftest
9802           libobjs=conftest.$ac_objext
9803           deplibs=
9804           wl=$lt_prog_compiler_wl
9805           pic_flag=$lt_prog_compiler_pic
9806           compiler_flags=-v
9807           linker_flags=-v
9808           verstring=
9809           output_objdir=.
9810           libname=conftest
9811           lt_save_allow_undefined_flag=$allow_undefined_flag
9812           allow_undefined_flag=
9813           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9814   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9815   ac_status=$?
9816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9817   test $ac_status = 0; }
9818           then
9819             lt_cv_archive_cmds_need_lc=no
9820           else
9821             lt_cv_archive_cmds_need_lc=yes
9822           fi
9823           allow_undefined_flag=$lt_save_allow_undefined_flag
9824         else
9825           cat conftest.err 1>&5
9826         fi
9827         $RM conftest*
9828
9829 fi
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9831 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9832       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9833       ;;
9834     esac
9835   fi
9836   ;;
9837 esac
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9996 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9997
9998 if test "$GCC" = yes; then
9999   case $host_os in
10000     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10001     *) lt_awk_arg="/^libraries:/" ;;
10002   esac
10003   case $host_os in
10004     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10005     *) lt_sed_strip_eq="s,=/,/,g" ;;
10006   esac
10007   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10008   case $lt_search_path_spec in
10009   *\;*)
10010     # if the path contains ";" then we assume it to be the separator
10011     # otherwise default to the standard path separator (i.e. ":") - it is
10012     # assumed that no part of a normal pathname contains ";" but that should
10013     # okay in the real world where ";" in dirpaths is itself problematic.
10014     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10015     ;;
10016   *)
10017     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10018     ;;
10019   esac
10020   # Ok, now we have the path, separated by spaces, we can step through it
10021   # and add multilib dir if necessary.
10022   lt_tmp_lt_search_path_spec=
10023   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10024   for lt_sys_path in $lt_search_path_spec; do
10025     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10026       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10027     else
10028       test -d "$lt_sys_path" && \
10029         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10030     fi
10031   done
10032   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10033 BEGIN {RS=" "; FS="/|\n";} {
10034   lt_foo="";
10035   lt_count=0;
10036   for (lt_i = NF; lt_i > 0; lt_i--) {
10037     if ($lt_i != "" && $lt_i != ".") {
10038       if ($lt_i == "..") {
10039         lt_count++;
10040       } else {
10041         if (lt_count == 0) {
10042           lt_foo="/" $lt_i lt_foo;
10043         } else {
10044           lt_count--;
10045         }
10046       }
10047     }
10048   }
10049   if (lt_foo != "") { lt_freq[lt_foo]++; }
10050   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10051 }'`
10052   # AWK program above erroneously prepends '/' to C:/dos/paths
10053   # for these hosts.
10054   case $host_os in
10055     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10056       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10057   esac
10058   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10059 else
10060   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10061 fi
10062 library_names_spec=
10063 libname_spec='lib$name'
10064 soname_spec=
10065 shrext_cmds=".so"
10066 postinstall_cmds=
10067 postuninstall_cmds=
10068 finish_cmds=
10069 finish_eval=
10070 shlibpath_var=
10071 shlibpath_overrides_runpath=unknown
10072 version_type=none
10073 dynamic_linker="$host_os ld.so"
10074 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10075 need_lib_prefix=unknown
10076 hardcode_into_libs=no
10077
10078 # when you set need_version to no, make sure it does not cause -set_version
10079 # flags to be left without arguments
10080 need_version=unknown
10081
10082 case $host_os in
10083 aix3*)
10084   version_type=linux
10085   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10086   shlibpath_var=LIBPATH
10087
10088   # AIX 3 has no versioning support, so we append a major version to the name.
10089   soname_spec='${libname}${release}${shared_ext}$major'
10090   ;;
10091
10092 aix[4-9]*)
10093   version_type=linux
10094   need_lib_prefix=no
10095   need_version=no
10096   hardcode_into_libs=yes
10097   if test "$host_cpu" = ia64; then
10098     # AIX 5 supports IA64
10099     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10100     shlibpath_var=LD_LIBRARY_PATH
10101   else
10102     # With GCC up to 2.95.x, collect2 would create an import file
10103     # for dependence libraries.  The import file would start with
10104     # the line `#! .'.  This would cause the generated library to
10105     # depend on `.', always an invalid library.  This was fixed in
10106     # development snapshots of GCC prior to 3.0.
10107     case $host_os in
10108       aix4 | aix4.[01] | aix4.[01].*)
10109       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10110            echo ' yes '
10111            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10112         :
10113       else
10114         can_build_shared=no
10115       fi
10116       ;;
10117     esac
10118     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10119     # soname into executable. Probably we can add versioning support to
10120     # collect2, so additional links can be useful in future.
10121     if test "$aix_use_runtimelinking" = yes; then
10122       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10123       # instead of lib<name>.a to let people know that these are not
10124       # typical AIX shared libraries.
10125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126     else
10127       # We preserve .a as extension for shared libraries through AIX4.2
10128       # and later when we are not doing run time linking.
10129       library_names_spec='${libname}${release}.a $libname.a'
10130       soname_spec='${libname}${release}${shared_ext}$major'
10131     fi
10132     shlibpath_var=LIBPATH
10133   fi
10134   ;;
10135
10136 amigaos*)
10137   case $host_cpu in
10138   powerpc)
10139     # Since July 2007 AmigaOS4 officially supports .so libraries.
10140     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142     ;;
10143   m68k)
10144     library_names_spec='$libname.ixlibrary $libname.a'
10145     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10146     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'
10147     ;;
10148   esac
10149   ;;
10150
10151 beos*)
10152   library_names_spec='${libname}${shared_ext}'
10153   dynamic_linker="$host_os ld.so"
10154   shlibpath_var=LIBRARY_PATH
10155   ;;
10156
10157 bsdi[45]*)
10158   version_type=linux
10159   need_version=no
10160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161   soname_spec='${libname}${release}${shared_ext}$major'
10162   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10163   shlibpath_var=LD_LIBRARY_PATH
10164   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10165   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10166   # the default ld.so.conf also contains /usr/contrib/lib and
10167   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10168   # libtool to hard-code these into programs
10169   ;;
10170
10171 cygwin* | mingw* | pw32* | cegcc*)
10172   version_type=windows
10173   shrext_cmds=".dll"
10174   need_version=no
10175   need_lib_prefix=no
10176
10177   case $GCC,$host_os in
10178   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10179     library_names_spec='$libname.dll.a'
10180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10181     postinstall_cmds='base_file=`basename \${file}`~
10182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10183       dldir=$destdir/`dirname \$dlpath`~
10184       test -d \$dldir || mkdir -p \$dldir~
10185       $install_prog $dir/$dlname \$dldir/$dlname~
10186       chmod a+x \$dldir/$dlname~
10187       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10188         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10189       fi'
10190     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10191       dlpath=$dir/\$dldll~
10192        $RM \$dlpath'
10193     shlibpath_overrides_runpath=yes
10194
10195     case $host_os in
10196     cygwin*)
10197       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10198       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199
10200       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10201       ;;
10202     mingw* | cegcc*)
10203       # MinGW DLLs use traditional 'lib' prefix
10204       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205       ;;
10206     pw32*)
10207       # pw32 DLLs use 'pw' prefix rather than 'lib'
10208       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209       ;;
10210     esac
10211     ;;
10212
10213   *)
10214     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10215     ;;
10216   esac
10217   dynamic_linker='Win32 ld.exe'
10218   # FIXME: first we should search . and the directory the executable is in
10219   shlibpath_var=PATH
10220   ;;
10221
10222 darwin* | rhapsody*)
10223   dynamic_linker="$host_os dyld"
10224   version_type=darwin
10225   need_lib_prefix=no
10226   need_version=no
10227   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10228   soname_spec='${libname}${release}${major}$shared_ext'
10229   shlibpath_overrides_runpath=yes
10230   shlibpath_var=DYLD_LIBRARY_PATH
10231   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10232
10233   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10234   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10235   ;;
10236
10237 dgux*)
10238   version_type=linux
10239   need_lib_prefix=no
10240   need_version=no
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10242   soname_spec='${libname}${release}${shared_ext}$major'
10243   shlibpath_var=LD_LIBRARY_PATH
10244   ;;
10245
10246 freebsd* | dragonfly*)
10247   # DragonFly does not have aout.  When/if they implement a new
10248   # versioning mechanism, adjust this.
10249   if test -x /usr/bin/objformat; then
10250     objformat=`/usr/bin/objformat`
10251   else
10252     case $host_os in
10253     freebsd[123]*) objformat=aout ;;
10254     *) objformat=elf ;;
10255     esac
10256   fi
10257   version_type=freebsd-$objformat
10258   case $version_type in
10259     freebsd-elf*)
10260       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10261       need_version=no
10262       need_lib_prefix=no
10263       ;;
10264     freebsd-*)
10265       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10266       need_version=yes
10267       ;;
10268   esac
10269   shlibpath_var=LD_LIBRARY_PATH
10270   case $host_os in
10271   freebsd2*)
10272     shlibpath_overrides_runpath=yes
10273     ;;
10274   freebsd3.[01]* | freebsdelf3.[01]*)
10275     shlibpath_overrides_runpath=yes
10276     hardcode_into_libs=yes
10277     ;;
10278   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10279   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10280     shlibpath_overrides_runpath=no
10281     hardcode_into_libs=yes
10282     ;;
10283   *) # from 4.6 on, and DragonFly
10284     shlibpath_overrides_runpath=yes
10285     hardcode_into_libs=yes
10286     ;;
10287   esac
10288   ;;
10289
10290 gnu*)
10291   version_type=linux
10292   need_lib_prefix=no
10293   need_version=no
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10295   soname_spec='${libname}${release}${shared_ext}$major'
10296   shlibpath_var=LD_LIBRARY_PATH
10297   hardcode_into_libs=yes
10298   ;;
10299
10300 haiku*)
10301   version_type=linux
10302   need_lib_prefix=no
10303   need_version=no
10304   dynamic_linker="$host_os runtime_loader"
10305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10306   soname_spec='${libname}${release}${shared_ext}$major'
10307   shlibpath_var=LIBRARY_PATH
10308   shlibpath_overrides_runpath=yes
10309   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10310   hardcode_into_libs=yes
10311   ;;
10312
10313 hpux9* | hpux10* | hpux11*)
10314   # Give a soname corresponding to the major version so that dld.sl refuses to
10315   # link against other versions.
10316   version_type=sunos
10317   need_lib_prefix=no
10318   need_version=no
10319   case $host_cpu in
10320   ia64*)
10321     shrext_cmds='.so'
10322     hardcode_into_libs=yes
10323     dynamic_linker="$host_os dld.so"
10324     shlibpath_var=LD_LIBRARY_PATH
10325     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327     soname_spec='${libname}${release}${shared_ext}$major'
10328     if test "X$HPUX_IA64_MODE" = X32; then
10329       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10330     else
10331       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10332     fi
10333     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10334     ;;
10335   hppa*64*)
10336     shrext_cmds='.sl'
10337     hardcode_into_libs=yes
10338     dynamic_linker="$host_os dld.sl"
10339     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10340     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342     soname_spec='${libname}${release}${shared_ext}$major'
10343     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10344     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10345     ;;
10346   *)
10347     shrext_cmds='.sl'
10348     dynamic_linker="$host_os dld.sl"
10349     shlibpath_var=SHLIB_PATH
10350     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352     soname_spec='${libname}${release}${shared_ext}$major'
10353     ;;
10354   esac
10355   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10356   postinstall_cmds='chmod 555 $lib'
10357   # or fails outright, so override atomically:
10358   install_override_mode=555
10359   ;;
10360
10361 interix[3-9]*)
10362   version_type=linux
10363   need_lib_prefix=no
10364   need_version=no
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366   soname_spec='${libname}${release}${shared_ext}$major'
10367   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10368   shlibpath_var=LD_LIBRARY_PATH
10369   shlibpath_overrides_runpath=no
10370   hardcode_into_libs=yes
10371   ;;
10372
10373 irix5* | irix6* | nonstopux*)
10374   case $host_os in
10375     nonstopux*) version_type=nonstopux ;;
10376     *)
10377         if test "$lt_cv_prog_gnu_ld" = yes; then
10378                 version_type=linux
10379         else
10380                 version_type=irix
10381         fi ;;
10382   esac
10383   need_lib_prefix=no
10384   need_version=no
10385   soname_spec='${libname}${release}${shared_ext}$major'
10386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10387   case $host_os in
10388   irix5* | nonstopux*)
10389     libsuff= shlibsuff=
10390     ;;
10391   *)
10392     case $LD in # libtool.m4 will add one of these switches to LD
10393     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10394       libsuff= shlibsuff= libmagic=32-bit;;
10395     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10396       libsuff=32 shlibsuff=N32 libmagic=N32;;
10397     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10398       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10399     *) libsuff= shlibsuff= libmagic=never-match;;
10400     esac
10401     ;;
10402   esac
10403   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10404   shlibpath_overrides_runpath=no
10405   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10406   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10407   hardcode_into_libs=yes
10408   ;;
10409
10410 # No shared lib support for Linux oldld, aout, or coff.
10411 linux*oldld* | linux*aout* | linux*coff*)
10412   dynamic_linker=no
10413   ;;
10414
10415 # This must be Linux ELF.
10416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10417   version_type=linux
10418   need_lib_prefix=no
10419   need_version=no
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10423   shlibpath_var=LD_LIBRARY_PATH
10424   shlibpath_overrides_runpath=no
10425
10426   # Some binutils ld are patched to set DT_RUNPATH
10427   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10428   $as_echo_n "(cached) " >&6
10429 else
10430   lt_cv_shlibpath_overrides_runpath=no
10431     save_LDFLAGS=$LDFLAGS
10432     save_libdir=$libdir
10433     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10434          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h.  */
10437
10438 int
10439 main ()
10440 {
10441
10442   ;
10443   return 0;
10444 }
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10448   lt_cv_shlibpath_overrides_runpath=yes
10449 fi
10450 fi
10451 rm -f core conftest.err conftest.$ac_objext \
10452     conftest$ac_exeext conftest.$ac_ext
10453     LDFLAGS=$save_LDFLAGS
10454     libdir=$save_libdir
10455
10456 fi
10457
10458   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10459
10460   # This implies no fast_install, which is unacceptable.
10461   # Some rework will be needed to allow for fast_install
10462   # before this can be enabled.
10463   hardcode_into_libs=yes
10464
10465   # Append ld.so.conf contents to the search path
10466   if test -f /etc/ld.so.conf; then
10467     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' ' '`
10468     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10469   fi
10470
10471   # We used to test for /lib/ld.so.1 and disable shared libraries on
10472   # powerpc, because MkLinux only supported shared libraries with the
10473   # GNU dynamic linker.  Since this was broken with cross compilers,
10474   # most powerpc-linux boxes support dynamic linking these days and
10475   # people can always --disable-shared, the test was removed, and we
10476   # assume the GNU/Linux dynamic linker is in use.
10477   dynamic_linker='GNU/Linux ld.so'
10478   ;;
10479
10480 netbsd*)
10481   version_type=sunos
10482   need_lib_prefix=no
10483   need_version=no
10484   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10486     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10487     dynamic_linker='NetBSD (a.out) ld.so'
10488   else
10489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10490     soname_spec='${libname}${release}${shared_ext}$major'
10491     dynamic_linker='NetBSD ld.elf_so'
10492   fi
10493   shlibpath_var=LD_LIBRARY_PATH
10494   shlibpath_overrides_runpath=yes
10495   hardcode_into_libs=yes
10496   ;;
10497
10498 newsos6)
10499   version_type=linux
10500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501   shlibpath_var=LD_LIBRARY_PATH
10502   shlibpath_overrides_runpath=yes
10503   ;;
10504
10505 *nto* | *qnx*)
10506   version_type=qnx
10507   need_lib_prefix=no
10508   need_version=no
10509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510   soname_spec='${libname}${release}${shared_ext}$major'
10511   shlibpath_var=LD_LIBRARY_PATH
10512   shlibpath_overrides_runpath=no
10513   hardcode_into_libs=yes
10514   dynamic_linker='ldqnx.so'
10515   ;;
10516
10517 openbsd*)
10518   version_type=sunos
10519   sys_lib_dlsearch_path_spec="/usr/lib"
10520   need_lib_prefix=no
10521   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10522   case $host_os in
10523     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10524     *)                          need_version=no  ;;
10525   esac
10526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10528   shlibpath_var=LD_LIBRARY_PATH
10529   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10530     case $host_os in
10531       openbsd2.[89] | openbsd2.[89].*)
10532         shlibpath_overrides_runpath=no
10533         ;;
10534       *)
10535         shlibpath_overrides_runpath=yes
10536         ;;
10537       esac
10538   else
10539     shlibpath_overrides_runpath=yes
10540   fi
10541   ;;
10542
10543 os2*)
10544   libname_spec='$name'
10545   shrext_cmds=".dll"
10546   need_lib_prefix=no
10547   library_names_spec='$libname${shared_ext} $libname.a'
10548   dynamic_linker='OS/2 ld.exe'
10549   shlibpath_var=LIBPATH
10550   ;;
10551
10552 osf3* | osf4* | osf5*)
10553   version_type=osf
10554   need_lib_prefix=no
10555   need_version=no
10556   soname_spec='${libname}${release}${shared_ext}$major'
10557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558   shlibpath_var=LD_LIBRARY_PATH
10559   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10560   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10561   ;;
10562
10563 rdos*)
10564   dynamic_linker=no
10565   ;;
10566
10567 solaris*)
10568   version_type=linux
10569   need_lib_prefix=no
10570   need_version=no
10571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572   soname_spec='${libname}${release}${shared_ext}$major'
10573   shlibpath_var=LD_LIBRARY_PATH
10574   shlibpath_overrides_runpath=yes
10575   hardcode_into_libs=yes
10576   # ldd complains unless libraries are executable
10577   postinstall_cmds='chmod +x $lib'
10578   ;;
10579
10580 sunos4*)
10581   version_type=sunos
10582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10583   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10584   shlibpath_var=LD_LIBRARY_PATH
10585   shlibpath_overrides_runpath=yes
10586   if test "$with_gnu_ld" = yes; then
10587     need_lib_prefix=no
10588   fi
10589   need_version=yes
10590   ;;
10591
10592 sysv4 | sysv4.3*)
10593   version_type=linux
10594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595   soname_spec='${libname}${release}${shared_ext}$major'
10596   shlibpath_var=LD_LIBRARY_PATH
10597   case $host_vendor in
10598     sni)
10599       shlibpath_overrides_runpath=no
10600       need_lib_prefix=no
10601       runpath_var=LD_RUN_PATH
10602       ;;
10603     siemens)
10604       need_lib_prefix=no
10605       ;;
10606     motorola)
10607       need_lib_prefix=no
10608       need_version=no
10609       shlibpath_overrides_runpath=no
10610       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10611       ;;
10612   esac
10613   ;;
10614
10615 sysv4*MP*)
10616   if test -d /usr/nec ;then
10617     version_type=linux
10618     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10619     soname_spec='$libname${shared_ext}.$major'
10620     shlibpath_var=LD_LIBRARY_PATH
10621   fi
10622   ;;
10623
10624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10625   version_type=freebsd-elf
10626   need_lib_prefix=no
10627   need_version=no
10628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10629   soname_spec='${libname}${release}${shared_ext}$major'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   shlibpath_overrides_runpath=yes
10632   hardcode_into_libs=yes
10633   if test "$with_gnu_ld" = yes; then
10634     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10635   else
10636     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10637     case $host_os in
10638       sco3.2v5*)
10639         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10640         ;;
10641     esac
10642   fi
10643   sys_lib_dlsearch_path_spec='/usr/lib'
10644   ;;
10645
10646 tpf*)
10647   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10648   version_type=linux
10649   need_lib_prefix=no
10650   need_version=no
10651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652   shlibpath_var=LD_LIBRARY_PATH
10653   shlibpath_overrides_runpath=no
10654   hardcode_into_libs=yes
10655   ;;
10656
10657 uts4*)
10658   version_type=linux
10659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660   soname_spec='${libname}${release}${shared_ext}$major'
10661   shlibpath_var=LD_LIBRARY_PATH
10662   ;;
10663
10664 *)
10665   dynamic_linker=no
10666   ;;
10667 esac
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10669 $as_echo "$dynamic_linker" >&6; }
10670 test "$dynamic_linker" = no && can_build_shared=no
10671
10672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10673 if test "$GCC" = yes; then
10674   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10675 fi
10676
10677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10678   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10679 fi
10680 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10681   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10682 fi
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10776 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10777 hardcode_action=
10778 if test -n "$hardcode_libdir_flag_spec" ||
10779    test -n "$runpath_var" ||
10780    test "X$hardcode_automatic" = "Xyes" ; then
10781
10782   # We can hardcode non-existent directories.
10783   if test "$hardcode_direct" != no &&
10784      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10785      # have to relink, otherwise we might link with an installed library
10786      # when we should be linking with a yet-to-be-installed one
10787      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10788      test "$hardcode_minus_L" != no; then
10789     # Linking always hardcodes the temporary library directory.
10790     hardcode_action=relink
10791   else
10792     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10793     hardcode_action=immediate
10794   fi
10795 else
10796   # We cannot hardcode anything, or else we can only hardcode existing
10797   # directories.
10798   hardcode_action=unsupported
10799 fi
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10801 $as_echo "$hardcode_action" >&6; }
10802
10803 if test "$hardcode_action" = relink ||
10804    test "$inherit_rpath" = yes; then
10805   # Fast installation is not supported
10806   enable_fast_install=no
10807 elif test "$shlibpath_overrides_runpath" = yes ||
10808      test "$enable_shared" = no; then
10809   # Fast installation is not necessary
10810   enable_fast_install=needless
10811 fi
10812
10813
10814
10815
10816
10817
10818   if test "x$enable_dlopen" != xyes; then
10819   enable_dlopen=unknown
10820   enable_dlopen_self=unknown
10821   enable_dlopen_self_static=unknown
10822 else
10823   lt_cv_dlopen=no
10824   lt_cv_dlopen_libs=
10825
10826   case $host_os in
10827   beos*)
10828     lt_cv_dlopen="load_add_on"
10829     lt_cv_dlopen_libs=
10830     lt_cv_dlopen_self=yes
10831     ;;
10832
10833   mingw* | pw32* | cegcc*)
10834     lt_cv_dlopen="LoadLibrary"
10835     lt_cv_dlopen_libs=
10836     ;;
10837
10838   cygwin*)
10839     lt_cv_dlopen="dlopen"
10840     lt_cv_dlopen_libs=
10841     ;;
10842
10843   darwin*)
10844   # if libdl is installed we need to link against it
10845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10846 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-ldl  $LIBS"
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h.  */
10854
10855 /* Override any GCC internal prototype to avoid an error.
10856    Use char because int might match the return type of a GCC
10857    builtin and then its argument prototype would still apply.  */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char dlopen ();
10862 int
10863 main ()
10864 {
10865 return dlopen ();
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871   ac_cv_lib_dl_dlopen=yes
10872 else
10873   ac_cv_lib_dl_dlopen=no
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext \
10876     conftest$ac_exeext conftest.$ac_ext
10877 LIBS=$ac_check_lib_save_LIBS
10878 fi
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10880 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10881 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10882   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10883 else
10884
10885     lt_cv_dlopen="dyld"
10886     lt_cv_dlopen_libs=
10887     lt_cv_dlopen_self=yes
10888
10889 fi
10890
10891     ;;
10892
10893   *)
10894     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10895 if test "x$ac_cv_func_shl_load" = x""yes; then :
10896   lt_cv_dlopen="shl_load"
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10899 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10901   $as_echo_n "(cached) " >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-ldld  $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char shl_load ();
10915 int
10916 main ()
10917 {
10918 return shl_load ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924   ac_cv_lib_dld_shl_load=yes
10925 else
10926   ac_cv_lib_dld_shl_load=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929     conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10933 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10934 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10935   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10936 else
10937   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10938 if test "x$ac_cv_func_dlopen" = x""yes; then :
10939   lt_cv_dlopen="dlopen"
10940 else
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10942 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10944   $as_echo_n "(cached) " >&6
10945 else
10946   ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldl  $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h.  */
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952    Use char because int might match the return type of a GCC
10953    builtin and then its argument prototype would still apply.  */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char dlopen ();
10958 int
10959 main ()
10960 {
10961 return dlopen ();
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967   ac_cv_lib_dl_dlopen=yes
10968 else
10969   ac_cv_lib_dl_dlopen=no
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972     conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10976 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10977 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10978   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10979 else
10980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10981 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10983   $as_echo_n "(cached) " >&6
10984 else
10985   ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-lsvld  $LIBS"
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h.  */
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991    Use char because int might match the return type of a GCC
10992    builtin and then its argument prototype would still apply.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dlopen ();
10997 int
10998 main ()
10999 {
11000 return dlopen ();
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006   ac_cv_lib_svld_dlopen=yes
11007 else
11008   ac_cv_lib_svld_dlopen=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext \
11011     conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11013 fi
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11015 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11016 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11017   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11018 else
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11020 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11022   $as_echo_n "(cached) " >&6
11023 else
11024   ac_check_lib_save_LIBS=$LIBS
11025 LIBS="-ldld  $LIBS"
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h.  */
11028
11029 /* Override any GCC internal prototype to avoid an error.
11030    Use char because int might match the return type of a GCC
11031    builtin and then its argument prototype would still apply.  */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char dld_link ();
11036 int
11037 main ()
11038 {
11039 return dld_link ();
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045   ac_cv_lib_dld_dld_link=yes
11046 else
11047   ac_cv_lib_dld_dld_link=no
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext \
11050     conftest$ac_exeext conftest.$ac_ext
11051 LIBS=$ac_check_lib_save_LIBS
11052 fi
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11054 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11055 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11056   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11057 fi
11058
11059
11060 fi
11061
11062
11063 fi
11064
11065
11066 fi
11067
11068
11069 fi
11070
11071
11072 fi
11073
11074     ;;
11075   esac
11076
11077   if test "x$lt_cv_dlopen" != xno; then
11078     enable_dlopen=yes
11079   else
11080     enable_dlopen=no
11081   fi
11082
11083   case $lt_cv_dlopen in
11084   dlopen)
11085     save_CPPFLAGS="$CPPFLAGS"
11086     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11087
11088     save_LDFLAGS="$LDFLAGS"
11089     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11090
11091     save_LIBS="$LIBS"
11092     LIBS="$lt_cv_dlopen_libs $LIBS"
11093
11094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11095 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11096 if test "${lt_cv_dlopen_self+set}" = set; then :
11097   $as_echo_n "(cached) " >&6
11098 else
11099           if test "$cross_compiling" = yes; then :
11100   lt_cv_dlopen_self=cross
11101 else
11102   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11103   lt_status=$lt_dlunknown
11104   cat > conftest.$ac_ext <<_LT_EOF
11105 #line 11105 "configure"
11106 #include "confdefs.h"
11107
11108 #if HAVE_DLFCN_H
11109 #include <dlfcn.h>
11110 #endif
11111
11112 #include <stdio.h>
11113
11114 #ifdef RTLD_GLOBAL
11115 #  define LT_DLGLOBAL           RTLD_GLOBAL
11116 #else
11117 #  ifdef DL_GLOBAL
11118 #    define LT_DLGLOBAL         DL_GLOBAL
11119 #  else
11120 #    define LT_DLGLOBAL         0
11121 #  endif
11122 #endif
11123
11124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11125    find out it does not work in some platform. */
11126 #ifndef LT_DLLAZY_OR_NOW
11127 #  ifdef RTLD_LAZY
11128 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11129 #  else
11130 #    ifdef DL_LAZY
11131 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11132 #    else
11133 #      ifdef RTLD_NOW
11134 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11135 #      else
11136 #        ifdef DL_NOW
11137 #          define LT_DLLAZY_OR_NOW      DL_NOW
11138 #        else
11139 #          define LT_DLLAZY_OR_NOW      0
11140 #        endif
11141 #      endif
11142 #    endif
11143 #  endif
11144 #endif
11145
11146 /* When -fvisbility=hidden is used, assume the code has been annotated
11147    correspondingly for the symbols needed.  */
11148 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11149 void fnord () __attribute__((visibility("default")));
11150 #endif
11151
11152 void fnord () { int i=42; }
11153 int main ()
11154 {
11155   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11156   int status = $lt_dlunknown;
11157
11158   if (self)
11159     {
11160       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11161       else
11162         {
11163           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11164           else puts (dlerror ());
11165         }
11166       /* dlclose (self); */
11167     }
11168   else
11169     puts (dlerror ());
11170
11171   return status;
11172 }
11173 _LT_EOF
11174   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11175   (eval $ac_link) 2>&5
11176   ac_status=$?
11177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11178   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11179     (./conftest; exit; ) >&5 2>/dev/null
11180     lt_status=$?
11181     case x$lt_status in
11182       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11183       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11184       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11185     esac
11186   else :
11187     # compilation failed
11188     lt_cv_dlopen_self=no
11189   fi
11190 fi
11191 rm -fr conftest*
11192
11193
11194 fi
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11196 $as_echo "$lt_cv_dlopen_self" >&6; }
11197
11198     if test "x$lt_cv_dlopen_self" = xyes; then
11199       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11200       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11201 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11202 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205           if test "$cross_compiling" = yes; then :
11206   lt_cv_dlopen_self_static=cross
11207 else
11208   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11209   lt_status=$lt_dlunknown
11210   cat > conftest.$ac_ext <<_LT_EOF
11211 #line 11211 "configure"
11212 #include "confdefs.h"
11213
11214 #if HAVE_DLFCN_H
11215 #include <dlfcn.h>
11216 #endif
11217
11218 #include <stdio.h>
11219
11220 #ifdef RTLD_GLOBAL
11221 #  define LT_DLGLOBAL           RTLD_GLOBAL
11222 #else
11223 #  ifdef DL_GLOBAL
11224 #    define LT_DLGLOBAL         DL_GLOBAL
11225 #  else
11226 #    define LT_DLGLOBAL         0
11227 #  endif
11228 #endif
11229
11230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11231    find out it does not work in some platform. */
11232 #ifndef LT_DLLAZY_OR_NOW
11233 #  ifdef RTLD_LAZY
11234 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11235 #  else
11236 #    ifdef DL_LAZY
11237 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11238 #    else
11239 #      ifdef RTLD_NOW
11240 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11241 #      else
11242 #        ifdef DL_NOW
11243 #          define LT_DLLAZY_OR_NOW      DL_NOW
11244 #        else
11245 #          define LT_DLLAZY_OR_NOW      0
11246 #        endif
11247 #      endif
11248 #    endif
11249 #  endif
11250 #endif
11251
11252 /* When -fvisbility=hidden is used, assume the code has been annotated
11253    correspondingly for the symbols needed.  */
11254 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11255 void fnord () __attribute__((visibility("default")));
11256 #endif
11257
11258 void fnord () { int i=42; }
11259 int main ()
11260 {
11261   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11262   int status = $lt_dlunknown;
11263
11264   if (self)
11265     {
11266       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11267       else
11268         {
11269           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11270           else puts (dlerror ());
11271         }
11272       /* dlclose (self); */
11273     }
11274   else
11275     puts (dlerror ());
11276
11277   return status;
11278 }
11279 _LT_EOF
11280   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11281   (eval $ac_link) 2>&5
11282   ac_status=$?
11283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11284   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11285     (./conftest; exit; ) >&5 2>/dev/null
11286     lt_status=$?
11287     case x$lt_status in
11288       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11289       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11290       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11291     esac
11292   else :
11293     # compilation failed
11294     lt_cv_dlopen_self_static=no
11295   fi
11296 fi
11297 rm -fr conftest*
11298
11299
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11302 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11303     fi
11304
11305     CPPFLAGS="$save_CPPFLAGS"
11306     LDFLAGS="$save_LDFLAGS"
11307     LIBS="$save_LIBS"
11308     ;;
11309   esac
11310
11311   case $lt_cv_dlopen_self in
11312   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11313   *) enable_dlopen_self=unknown ;;
11314   esac
11315
11316   case $lt_cv_dlopen_self_static in
11317   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11318   *) enable_dlopen_self_static=unknown ;;
11319   esac
11320 fi
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338 striplib=
11339 old_striplib=
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11341 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11342 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11343   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11344   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346 $as_echo "yes" >&6; }
11347 else
11348 # FIXME - insert some real tests, host_os isn't really good enough
11349   case $host_os in
11350   darwin*)
11351     if test -n "$STRIP" ; then
11352       striplib="$STRIP -x"
11353       old_striplib="$STRIP -S"
11354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356     else
11357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11359     fi
11360     ;;
11361   *)
11362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11364     ;;
11365   esac
11366 fi
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379   # Report which library types will actually be built
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11381 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11383 $as_echo "$can_build_shared" >&6; }
11384
11385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11386 $as_echo_n "checking whether to build shared libraries... " >&6; }
11387   test "$can_build_shared" = "no" && enable_shared=no
11388
11389   # On AIX, shared libraries and static libraries use the same namespace, and
11390   # are all built from PIC.
11391   case $host_os in
11392   aix3*)
11393     test "$enable_shared" = yes && enable_static=no
11394     if test -n "$RANLIB"; then
11395       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11396       postinstall_cmds='$RANLIB $lib'
11397     fi
11398     ;;
11399
11400   aix[4-9]*)
11401     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11402       test "$enable_shared" = yes && enable_static=no
11403     fi
11404     ;;
11405   esac
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11407 $as_echo "$enable_shared" >&6; }
11408
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11410 $as_echo_n "checking whether to build static libraries... " >&6; }
11411   # Make sure either enable_shared or enable_static is yes.
11412   test "$enable_shared" = yes || enable_static=yes
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11414 $as_echo "$enable_static" >&6; }
11415
11416
11417
11418
11419 fi
11420 ac_ext=c
11421 ac_cpp='$CPP $CPPFLAGS'
11422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11425
11426 CC="$lt_save_CC"
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 # Source file extension for Go test sources.
11441 ac_ext=go
11442
11443 # Object file extension for compiled Go test sources.
11444 objext=o
11445 objext_GO=$objext
11446
11447 # Code to be used in simple compile tests
11448 lt_simple_compile_test_code="package main; func main() { }"
11449
11450 # Code to be used in simple link tests
11451 lt_simple_link_test_code='package main; func main() { }'
11452
11453 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11454
11455
11456
11457
11458
11459
11460 # If no C compiler was specified, use CC.
11461 LTCC=${LTCC-"$CC"}
11462
11463 # If no C compiler flags were specified, use CFLAGS.
11464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11465
11466 # Allow CC to be a program name with arguments.
11467 compiler=$CC
11468
11469
11470 # save warnings/boilerplate of simple test code
11471 ac_outfile=conftest.$ac_objext
11472 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11474 _lt_compiler_boilerplate=`cat conftest.err`
11475 $RM conftest*
11476
11477 ac_outfile=conftest.$ac_objext
11478 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11480 _lt_linker_boilerplate=`cat conftest.err`
11481 $RM -r conftest*
11482
11483
11484 # Allow CC to be a program name with arguments.
11485 lt_save_CC="$CC"
11486 lt_save_GCC="$GCC"
11487 GCC=yes
11488 CC=${GOC-"gccgo"}
11489 compiler=$CC
11490 compiler_GO=$CC
11491 LD_GO="$LD"
11492 for cc_temp in $compiler""; do
11493   case $cc_temp in
11494     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11495     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11496     \-*) ;;
11497     *) break;;
11498   esac
11499 done
11500 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11501
11502
11503 # Go did not exist at the time GCC didn't implicitly link libc in.
11504 archive_cmds_need_lc_GO=no
11505
11506 old_archive_cmds_GO=$old_archive_cmds
11507
11508 ## CAVEAT EMPTOR:
11509 ## There is no encapsulation within the following macros, do not change
11510 ## the running order or otherwise move them around unless you know exactly
11511 ## what you are doing...
11512 if test -n "$compiler"; then
11513
11514 lt_prog_compiler_no_builtin_flag_GO=
11515
11516 if test "$GCC" = yes; then
11517   case $cc_basename in
11518   nvcc*)
11519     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11520   *)
11521     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11522   esac
11523
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11525 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11526 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   lt_cv_prog_compiler_rtti_exceptions=no
11530    ac_outfile=conftest.$ac_objext
11531    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11532    lt_compiler_flag="-fno-rtti -fno-exceptions"
11533    # Insert the option either (1) after the last *FLAGS variable, or
11534    # (2) before a word containing "conftest.", or (3) at the end.
11535    # Note that $ac_compile itself does not contain backslashes and begins
11536    # with a dollar sign (not a hyphen), so the echo should work correctly.
11537    # The option is referenced via a variable to avoid confusing sed.
11538    lt_compile=`echo "$ac_compile" | $SED \
11539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11541    -e 's:$: $lt_compiler_flag:'`
11542    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11543    (eval "$lt_compile" 2>conftest.err)
11544    ac_status=$?
11545    cat conftest.err >&5
11546    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547    if (exit $ac_status) && test -s "$ac_outfile"; then
11548      # The compiler can only warn and ignore the option if not recognized
11549      # So say no if there are warnings other than the usual output.
11550      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11551      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11552      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11553        lt_cv_prog_compiler_rtti_exceptions=yes
11554      fi
11555    fi
11556    $RM conftest*
11557
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11560 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11561
11562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11563     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11564 else
11565     :
11566 fi
11567
11568 fi
11569
11570
11571
11572   lt_prog_compiler_wl_GO=
11573 lt_prog_compiler_pic_GO=
11574 lt_prog_compiler_static_GO=
11575
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11577 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11578
11579   if test "$GCC" = yes; then
11580     lt_prog_compiler_wl_GO='-Wl,'
11581     lt_prog_compiler_static_GO='-static'
11582
11583     case $host_os in
11584       aix*)
11585       # All AIX code is PIC.
11586       if test "$host_cpu" = ia64; then
11587         # AIX 5 now supports IA64 processor
11588         lt_prog_compiler_static_GO='-Bstatic'
11589       fi
11590       ;;
11591
11592     amigaos*)
11593       case $host_cpu in
11594       powerpc)
11595             # see comment about AmigaOS4 .so support
11596             lt_prog_compiler_pic_GO='-fPIC'
11597         ;;
11598       m68k)
11599             # FIXME: we need at least 68020 code to build shared libraries, but
11600             # adding the `-m68020' flag to GCC prevents building anything better,
11601             # like `-m68040'.
11602             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11603         ;;
11604       esac
11605       ;;
11606
11607     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11608       # PIC is the default for these OSes.
11609       ;;
11610
11611     mingw* | cygwin* | pw32* | os2* | cegcc*)
11612       # This hack is so that the source file can tell whether it is being
11613       # built for inclusion in a dll (and should export symbols for example).
11614       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11615       # (--disable-auto-import) libraries
11616       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11617       ;;
11618
11619     darwin* | rhapsody*)
11620       # PIC is the default on this platform
11621       # Common symbols not allowed in MH_DYLIB files
11622       lt_prog_compiler_pic_GO='-fno-common'
11623       ;;
11624
11625     haiku*)
11626       # PIC is the default for Haiku.
11627       # The "-static" flag exists, but is broken.
11628       lt_prog_compiler_static_GO=
11629       ;;
11630
11631     hpux*)
11632       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11633       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11634       # sets the default TLS model and affects inlining.
11635       case $host_cpu in
11636       hppa*64*)
11637         # +Z the default
11638         ;;
11639       *)
11640         lt_prog_compiler_pic_GO='-fPIC'
11641         ;;
11642       esac
11643       ;;
11644
11645     interix[3-9]*)
11646       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11647       # Instead, we relocate shared libraries at runtime.
11648       ;;
11649
11650     msdosdjgpp*)
11651       # Just because we use GCC doesn't mean we suddenly get shared libraries
11652       # on systems that don't support them.
11653       lt_prog_compiler_can_build_shared_GO=no
11654       enable_shared=no
11655       ;;
11656
11657     *nto* | *qnx*)
11658       # QNX uses GNU C++, but need to define -shared option too, otherwise
11659       # it will coredump.
11660       lt_prog_compiler_pic_GO='-fPIC -shared'
11661       ;;
11662
11663     sysv4*MP*)
11664       if test -d /usr/nec; then
11665         lt_prog_compiler_pic_GO=-Kconform_pic
11666       fi
11667       ;;
11668
11669     *)
11670       lt_prog_compiler_pic_GO='-fPIC'
11671       ;;
11672     esac
11673
11674     case $cc_basename in
11675     nvcc*) # Cuda Compiler Driver 2.2
11676       lt_prog_compiler_wl_GO='-Xlinker '
11677       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11678       ;;
11679     esac
11680   else
11681     # PORTME Check for flag to pass linker flags through the system compiler.
11682     case $host_os in
11683     aix*)
11684       lt_prog_compiler_wl_GO='-Wl,'
11685       if test "$host_cpu" = ia64; then
11686         # AIX 5 now supports IA64 processor
11687         lt_prog_compiler_static_GO='-Bstatic'
11688       else
11689         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11690       fi
11691       ;;
11692
11693     mingw* | cygwin* | pw32* | os2* | cegcc*)
11694       # This hack is so that the source file can tell whether it is being
11695       # built for inclusion in a dll (and should export symbols for example).
11696       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11697       ;;
11698
11699     hpux9* | hpux10* | hpux11*)
11700       lt_prog_compiler_wl_GO='-Wl,'
11701       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11702       # not for PA HP-UX.
11703       case $host_cpu in
11704       hppa*64*|ia64*)
11705         # +Z the default
11706         ;;
11707       *)
11708         lt_prog_compiler_pic_GO='+Z'
11709         ;;
11710       esac
11711       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11712       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11713       ;;
11714
11715     irix5* | irix6* | nonstopux*)
11716       lt_prog_compiler_wl_GO='-Wl,'
11717       # PIC (with -KPIC) is the default.
11718       lt_prog_compiler_static_GO='-non_shared'
11719       ;;
11720
11721     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11722       case $cc_basename in
11723       # old Intel for x86_64 which still supported -KPIC.
11724       ecc*)
11725         lt_prog_compiler_wl_GO='-Wl,'
11726         lt_prog_compiler_pic_GO='-KPIC'
11727         lt_prog_compiler_static_GO='-static'
11728         ;;
11729       # icc used to be incompatible with GCC.
11730       # ICC 10 doesn't accept -KPIC any more.
11731       icc* | ifort*)
11732         lt_prog_compiler_wl_GO='-Wl,'
11733         lt_prog_compiler_pic_GO='-fPIC'
11734         lt_prog_compiler_static_GO='-static'
11735         ;;
11736       # Lahey Fortran 8.1.
11737       lf95*)
11738         lt_prog_compiler_wl_GO='-Wl,'
11739         lt_prog_compiler_pic_GO='--shared'
11740         lt_prog_compiler_static_GO='--static'
11741         ;;
11742       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11743         # Portland Group compilers (*not* the Pentium gcc compiler,
11744         # which looks to be a dead project)
11745         lt_prog_compiler_wl_GO='-Wl,'
11746         lt_prog_compiler_pic_GO='-fpic'
11747         lt_prog_compiler_static_GO='-Bstatic'
11748         ;;
11749       ccc*)
11750         lt_prog_compiler_wl_GO='-Wl,'
11751         # All Alpha code is PIC.
11752         lt_prog_compiler_static_GO='-non_shared'
11753         ;;
11754       xl* | bgxl* | bgf* | mpixl*)
11755         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11756         lt_prog_compiler_wl_GO='-Wl,'
11757         lt_prog_compiler_pic_GO='-qpic'
11758         lt_prog_compiler_static_GO='-qstaticlink'
11759         ;;
11760       *)
11761         case `$CC -V 2>&1 | sed 5q` in
11762         *Sun\ F* | *Sun*Fortran*)
11763           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11764           lt_prog_compiler_pic_GO='-KPIC'
11765           lt_prog_compiler_static_GO='-Bstatic'
11766           lt_prog_compiler_wl_GO=''
11767           ;;
11768         *Sun\ C*)
11769           # Sun C 5.9
11770           lt_prog_compiler_pic_GO='-KPIC'
11771           lt_prog_compiler_static_GO='-Bstatic'
11772           lt_prog_compiler_wl_GO='-Wl,'
11773           ;;
11774         esac
11775         ;;
11776       esac
11777       ;;
11778
11779     newsos6)
11780       lt_prog_compiler_pic_GO='-KPIC'
11781       lt_prog_compiler_static_GO='-Bstatic'
11782       ;;
11783
11784     *nto* | *qnx*)
11785       # QNX uses GNU C++, but need to define -shared option too, otherwise
11786       # it will coredump.
11787       lt_prog_compiler_pic_GO='-fPIC -shared'
11788       ;;
11789
11790     osf3* | osf4* | osf5*)
11791       lt_prog_compiler_wl_GO='-Wl,'
11792       # All OSF/1 code is PIC.
11793       lt_prog_compiler_static_GO='-non_shared'
11794       ;;
11795
11796     rdos*)
11797       lt_prog_compiler_static_GO='-non_shared'
11798       ;;
11799
11800     solaris*)
11801       lt_prog_compiler_pic_GO='-KPIC'
11802       lt_prog_compiler_static_GO='-Bstatic'
11803       case $cc_basename in
11804       f77* | f90* | f95*)
11805         lt_prog_compiler_wl_GO='-Qoption ld ';;
11806       *)
11807         lt_prog_compiler_wl_GO='-Wl,';;
11808       esac
11809       ;;
11810
11811     sunos4*)
11812       lt_prog_compiler_wl_GO='-Qoption ld '
11813       lt_prog_compiler_pic_GO='-PIC'
11814       lt_prog_compiler_static_GO='-Bstatic'
11815       ;;
11816
11817     sysv4 | sysv4.2uw2* | sysv4.3*)
11818       lt_prog_compiler_wl_GO='-Wl,'
11819       lt_prog_compiler_pic_GO='-KPIC'
11820       lt_prog_compiler_static_GO='-Bstatic'
11821       ;;
11822
11823     sysv4*MP*)
11824       if test -d /usr/nec ;then
11825         lt_prog_compiler_pic_GO='-Kconform_pic'
11826         lt_prog_compiler_static_GO='-Bstatic'
11827       fi
11828       ;;
11829
11830     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11831       lt_prog_compiler_wl_GO='-Wl,'
11832       lt_prog_compiler_pic_GO='-KPIC'
11833       lt_prog_compiler_static_GO='-Bstatic'
11834       ;;
11835
11836     unicos*)
11837       lt_prog_compiler_wl_GO='-Wl,'
11838       lt_prog_compiler_can_build_shared_GO=no
11839       ;;
11840
11841     uts4*)
11842       lt_prog_compiler_pic_GO='-pic'
11843       lt_prog_compiler_static_GO='-Bstatic'
11844       ;;
11845
11846     *)
11847       lt_prog_compiler_can_build_shared_GO=no
11848       ;;
11849     esac
11850   fi
11851
11852 case $host_os in
11853   # For platforms which do not support PIC, -DPIC is meaningless:
11854   *djgpp*)
11855     lt_prog_compiler_pic_GO=
11856     ;;
11857   *)
11858     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11859     ;;
11860 esac
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11862 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11863
11864
11865
11866 #
11867 # Check to make sure the PIC flag actually works.
11868 #
11869 if test -n "$lt_prog_compiler_pic_GO"; then
11870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11871 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11872 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   lt_cv_prog_compiler_pic_works_GO=no
11876    ac_outfile=conftest.$ac_objext
11877    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11878    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11879    # Insert the option either (1) after the last *FLAGS variable, or
11880    # (2) before a word containing "conftest.", or (3) at the end.
11881    # Note that $ac_compile itself does not contain backslashes and begins
11882    # with a dollar sign (not a hyphen), so the echo should work correctly.
11883    # The option is referenced via a variable to avoid confusing sed.
11884    lt_compile=`echo "$ac_compile" | $SED \
11885    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11886    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11887    -e 's:$: $lt_compiler_flag:'`
11888    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11889    (eval "$lt_compile" 2>conftest.err)
11890    ac_status=$?
11891    cat conftest.err >&5
11892    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893    if (exit $ac_status) && test -s "$ac_outfile"; then
11894      # The compiler can only warn and ignore the option if not recognized
11895      # So say no if there are warnings other than the usual output.
11896      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11897      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11898      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11899        lt_cv_prog_compiler_pic_works_GO=yes
11900      fi
11901    fi
11902    $RM conftest*
11903
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11906 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11907
11908 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11909     case $lt_prog_compiler_pic_GO in
11910      "" | " "*) ;;
11911      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11912      esac
11913 else
11914     lt_prog_compiler_pic_GO=
11915      lt_prog_compiler_can_build_shared_GO=no
11916 fi
11917
11918 fi
11919
11920
11921
11922 #
11923 # Check to make sure the static flag actually works.
11924 #
11925 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11927 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11928 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11929   $as_echo_n "(cached) " >&6
11930 else
11931   lt_cv_prog_compiler_static_works_GO=no
11932    save_LDFLAGS="$LDFLAGS"
11933    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11934    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11935    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11936      # The linker can only warn and ignore the option if not recognized
11937      # So say no if there are warnings
11938      if test -s conftest.err; then
11939        # Append any errors to the config.log.
11940        cat conftest.err 1>&5
11941        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11942        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11943        if diff conftest.exp conftest.er2 >/dev/null; then
11944          lt_cv_prog_compiler_static_works_GO=yes
11945        fi
11946      else
11947        lt_cv_prog_compiler_static_works_GO=yes
11948      fi
11949    fi
11950    $RM -r conftest*
11951    LDFLAGS="$save_LDFLAGS"
11952
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11955 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11956
11957 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11958     :
11959 else
11960     lt_prog_compiler_static_GO=
11961 fi
11962
11963
11964
11965
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11968 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11969   $as_echo_n "(cached) " >&6
11970 else
11971   lt_cv_prog_compiler_c_o_GO=no
11972    $RM -r conftest 2>/dev/null
11973    mkdir conftest
11974    cd conftest
11975    mkdir out
11976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11977
11978    lt_compiler_flag="-o out/conftest2.$ac_objext"
11979    # Insert the option either (1) after the last *FLAGS variable, or
11980    # (2) before a word containing "conftest.", or (3) at the end.
11981    # Note that $ac_compile itself does not contain backslashes and begins
11982    # with a dollar sign (not a hyphen), so the echo should work correctly.
11983    lt_compile=`echo "$ac_compile" | $SED \
11984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11986    -e 's:$: $lt_compiler_flag:'`
11987    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11988    (eval "$lt_compile" 2>out/conftest.err)
11989    ac_status=$?
11990    cat out/conftest.err >&5
11991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11993    then
11994      # The compiler can only warn and ignore the option if not recognized
11995      # So say no if there are warnings
11996      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11997      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11998      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11999        lt_cv_prog_compiler_c_o_GO=yes
12000      fi
12001    fi
12002    chmod u+w . 2>&5
12003    $RM conftest*
12004    # SGI C++ compiler will create directory out/ii_files/ for
12005    # template instantiation
12006    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12007    $RM out/* && rmdir out
12008    cd ..
12009    $RM -r conftest
12010    $RM conftest*
12011
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12014 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12015
12016
12017
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12019 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12020 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023   lt_cv_prog_compiler_c_o_GO=no
12024    $RM -r conftest 2>/dev/null
12025    mkdir conftest
12026    cd conftest
12027    mkdir out
12028    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12029
12030    lt_compiler_flag="-o out/conftest2.$ac_objext"
12031    # Insert the option either (1) after the last *FLAGS variable, or
12032    # (2) before a word containing "conftest.", or (3) at the end.
12033    # Note that $ac_compile itself does not contain backslashes and begins
12034    # with a dollar sign (not a hyphen), so the echo should work correctly.
12035    lt_compile=`echo "$ac_compile" | $SED \
12036    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12038    -e 's:$: $lt_compiler_flag:'`
12039    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12040    (eval "$lt_compile" 2>out/conftest.err)
12041    ac_status=$?
12042    cat out/conftest.err >&5
12043    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12045    then
12046      # The compiler can only warn and ignore the option if not recognized
12047      # So say no if there are warnings
12048      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12049      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12050      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12051        lt_cv_prog_compiler_c_o_GO=yes
12052      fi
12053    fi
12054    chmod u+w . 2>&5
12055    $RM conftest*
12056    # SGI C++ compiler will create directory out/ii_files/ for
12057    # template instantiation
12058    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12059    $RM out/* && rmdir out
12060    cd ..
12061    $RM -r conftest
12062    $RM conftest*
12063
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12066 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12067
12068
12069
12070
12071 hard_links="nottested"
12072 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12073   # do not overwrite the value of need_locks provided by the user
12074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12075 $as_echo_n "checking if we can lock with hard links... " >&6; }
12076   hard_links=yes
12077   $RM conftest*
12078   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079   touch conftest.a
12080   ln conftest.a conftest.b 2>&5 || hard_links=no
12081   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12083 $as_echo "$hard_links" >&6; }
12084   if test "$hard_links" = no; then
12085     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12086 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12087     need_locks=warn
12088   fi
12089 else
12090   need_locks=no
12091 fi
12092
12093
12094
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12097
12098   runpath_var=
12099   allow_undefined_flag_GO=
12100   always_export_symbols_GO=no
12101   archive_cmds_GO=
12102   archive_expsym_cmds_GO=
12103   compiler_needs_object_GO=no
12104   enable_shared_with_static_runtimes_GO=no
12105   export_dynamic_flag_spec_GO=
12106   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12107   hardcode_automatic_GO=no
12108   hardcode_direct_GO=no
12109   hardcode_direct_absolute_GO=no
12110   hardcode_libdir_flag_spec_GO=
12111   hardcode_libdir_flag_spec_ld_GO=
12112   hardcode_libdir_separator_GO=
12113   hardcode_minus_L_GO=no
12114   hardcode_shlibpath_var_GO=unsupported
12115   inherit_rpath_GO=no
12116   link_all_deplibs_GO=unknown
12117   module_cmds_GO=
12118   module_expsym_cmds_GO=
12119   old_archive_from_new_cmds_GO=
12120   old_archive_from_expsyms_cmds_GO=
12121   thread_safe_flag_spec_GO=
12122   whole_archive_flag_spec_GO=
12123   # include_expsyms should be a list of space-separated symbols to be *always*
12124   # included in the symbol list
12125   include_expsyms_GO=
12126   # exclude_expsyms can be an extended regexp of symbols to exclude
12127   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12128   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12129   # as well as any symbol that contains `d'.
12130   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12131   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12132   # platforms (ab)use it in PIC code, but their linkers get confused if
12133   # the symbol is explicitly referenced.  Since portable code cannot
12134   # rely on this symbol name, it's probably fine to never include it in
12135   # preloaded symbol tables.
12136   # Exclude shared library initialization/finalization symbols.
12137   extract_expsyms_cmds=
12138
12139   case $host_os in
12140   cygwin* | mingw* | pw32* | cegcc*)
12141     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12142     # When not using gcc, we currently assume that we are using
12143     # Microsoft Visual C++.
12144     if test "$GCC" != yes; then
12145       with_gnu_ld=no
12146     fi
12147     ;;
12148   interix*)
12149     # we just hope/assume this is gcc and not c89 (= MSVC++)
12150     with_gnu_ld=yes
12151     ;;
12152   openbsd*)
12153     with_gnu_ld=no
12154     ;;
12155   esac
12156
12157   ld_shlibs_GO=yes
12158
12159   # On some targets, GNU ld is compatible enough with the native linker
12160   # that we're better off using the native interface for both.
12161   lt_use_gnu_ld_interface=no
12162   if test "$with_gnu_ld" = yes; then
12163     case $host_os in
12164       aix*)
12165         # The AIX port of GNU ld has always aspired to compatibility
12166         # with the native linker.  However, as the warning in the GNU ld
12167         # block says, versions before 2.19.5* couldn't really create working
12168         # shared libraries, regardless of the interface used.
12169         case `$LD -v 2>&1` in
12170           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12171           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12172           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12173           *)
12174             lt_use_gnu_ld_interface=yes
12175             ;;
12176         esac
12177         ;;
12178       *)
12179         lt_use_gnu_ld_interface=yes
12180         ;;
12181     esac
12182   fi
12183
12184   if test "$lt_use_gnu_ld_interface" = yes; then
12185     # If archive_cmds runs LD, not CC, wlarc should be empty
12186     wlarc='${wl}'
12187
12188     # Set some defaults for GNU ld with shared library support. These
12189     # are reset later if shared libraries are not supported. Putting them
12190     # here allows them to be overridden if necessary.
12191     runpath_var=LD_RUN_PATH
12192     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12193     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12194     # ancient GNU ld didn't support --whole-archive et. al.
12195     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12196       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12197     else
12198       whole_archive_flag_spec_GO=
12199     fi
12200     supports_anon_versioning=no
12201     case `$LD -v 2>&1` in
12202       *GNU\ gold*) supports_anon_versioning=yes ;;
12203       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12204       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12205       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12206       *\ 2.11.*) ;; # other 2.11 versions
12207       *) supports_anon_versioning=yes ;;
12208     esac
12209
12210     # See if GNU ld supports shared libraries.
12211     case $host_os in
12212     aix[3-9]*)
12213       # On AIX/PPC, the GNU linker is very broken
12214       if test "$host_cpu" != ia64; then
12215         ld_shlibs_GO=no
12216         cat <<_LT_EOF 1>&2
12217
12218 *** Warning: the GNU linker, at least up to release 2.19, is reported
12219 *** to be unable to reliably create shared libraries on AIX.
12220 *** Therefore, libtool is disabling shared libraries support.  If you
12221 *** really care for shared libraries, you may want to install binutils
12222 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12223 *** You will then need to restart the configuration process.
12224
12225 _LT_EOF
12226       fi
12227       ;;
12228
12229     amigaos*)
12230       case $host_cpu in
12231       powerpc)
12232             # see comment about AmigaOS4 .so support
12233             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234             archive_expsym_cmds_GO=''
12235         ;;
12236       m68k)
12237             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)'
12238             hardcode_libdir_flag_spec_GO='-L$libdir'
12239             hardcode_minus_L_GO=yes
12240         ;;
12241       esac
12242       ;;
12243
12244     beos*)
12245       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12246         allow_undefined_flag_GO=unsupported
12247         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12248         # support --undefined.  This deserves some investigation.  FIXME
12249         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250       else
12251         ld_shlibs_GO=no
12252       fi
12253       ;;
12254
12255     cygwin* | mingw* | pw32* | cegcc*)
12256       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12257       # as there is no search path for DLLs.
12258       hardcode_libdir_flag_spec_GO='-L$libdir'
12259       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12260       allow_undefined_flag_GO=unsupported
12261       always_export_symbols_GO=no
12262       enable_shared_with_static_runtimes_GO=yes
12263       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12264
12265       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12266         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12267         # If the export-symbols file already is a .def file (1st line
12268         # is EXPORTS), use it as is; otherwise, prepend...
12269         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12270           cp $export_symbols $output_objdir/$soname.def;
12271         else
12272           echo EXPORTS > $output_objdir/$soname.def;
12273           cat $export_symbols >> $output_objdir/$soname.def;
12274         fi~
12275         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12276       else
12277         ld_shlibs_GO=no
12278       fi
12279       ;;
12280
12281     haiku*)
12282       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283       link_all_deplibs_GO=yes
12284       ;;
12285
12286     interix[3-9]*)
12287       hardcode_direct_GO=no
12288       hardcode_shlibpath_var_GO=no
12289       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12290       export_dynamic_flag_spec_GO='${wl}-E'
12291       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12292       # Instead, shared libraries are loaded at an image base (0x10000000 by
12293       # default) and relocated if they conflict, which is a slow very memory
12294       # consuming and fragmenting process.  To avoid this, we pick a random,
12295       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12296       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12297       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'
12298       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'
12299       ;;
12300
12301     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12302       tmp_diet=no
12303       if test "$host_os" = linux-dietlibc; then
12304         case $cc_basename in
12305           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12306         esac
12307       fi
12308       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12309          && test "$tmp_diet" = no
12310       then
12311         tmp_addflag=
12312         tmp_sharedflag='-shared'
12313         case $cc_basename,$host_cpu in
12314         pgcc*)                          # Portland Group C compiler
12315           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'
12316           tmp_addflag=' $pic_flag'
12317           ;;
12318         pgf77* | pgf90* | pgf95* | pgfortran*)
12319                                         # Portland Group f77 and f90 compilers
12320           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'
12321           tmp_addflag=' $pic_flag -Mnomain' ;;
12322         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12323           tmp_addflag=' -i_dynamic' ;;
12324         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12325           tmp_addflag=' -i_dynamic -nofor_main' ;;
12326         ifc* | ifort*)                  # Intel Fortran compiler
12327           tmp_addflag=' -nofor_main' ;;
12328         lf95*)                          # Lahey Fortran 8.1
12329           whole_archive_flag_spec_GO=
12330           tmp_sharedflag='--shared' ;;
12331         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12332           tmp_sharedflag='-qmkshrobj'
12333           tmp_addflag= ;;
12334         nvcc*)  # Cuda Compiler Driver 2.2
12335           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'
12336           compiler_needs_object_GO=yes
12337           ;;
12338         esac
12339         case `$CC -V 2>&1 | sed 5q` in
12340         *Sun\ C*)                       # Sun C 5.9
12341           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'
12342           compiler_needs_object_GO=yes
12343           tmp_sharedflag='-G' ;;
12344         *Sun\ F*)                       # Sun Fortran 8.3
12345           tmp_sharedflag='-G' ;;
12346         esac
12347         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12348
12349         if test "x$supports_anon_versioning" = xyes; then
12350           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12351             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12352             echo "local: *; };" >> $output_objdir/$libname.ver~
12353             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12354         fi
12355
12356         case $cc_basename in
12357         xlf* | bgf* | bgxlf* | mpixlf*)
12358           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12359           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12360           hardcode_libdir_flag_spec_GO=
12361           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12362           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12363           if test "x$supports_anon_versioning" = xyes; then
12364             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12365               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12366               echo "local: *; };" >> $output_objdir/$libname.ver~
12367               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12368           fi
12369           ;;
12370         esac
12371       else
12372         ld_shlibs_GO=no
12373       fi
12374       ;;
12375
12376     netbsd*)
12377       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12378         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12379         wlarc=
12380       else
12381         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12382         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12383       fi
12384       ;;
12385
12386     solaris*)
12387       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12388         ld_shlibs_GO=no
12389         cat <<_LT_EOF 1>&2
12390
12391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12392 *** create shared libraries on Solaris systems.  Therefore, libtool
12393 *** is disabling shared libraries support.  We urge you to upgrade GNU
12394 *** binutils to release 2.9.1 or newer.  Another option is to modify
12395 *** your PATH or compiler configuration so that the native linker is
12396 *** used, and then restart.
12397
12398 _LT_EOF
12399       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12400         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12401         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12402       else
12403         ld_shlibs_GO=no
12404       fi
12405       ;;
12406
12407     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12408       case `$LD -v 2>&1` in
12409         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12410         ld_shlibs_GO=no
12411         cat <<_LT_EOF 1>&2
12412
12413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12414 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12415 *** is disabling shared libraries support.  We urge you to upgrade GNU
12416 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12417 *** your PATH or compiler configuration so that the native linker is
12418 *** used, and then restart.
12419
12420 _LT_EOF
12421         ;;
12422         *)
12423           # For security reasons, it is highly recommended that you always
12424           # use absolute paths for naming shared libraries, and exclude the
12425           # DT_RUNPATH tag from executables and libraries.  But doing so
12426           # requires that you compile everything twice, which is a pain.
12427           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12428             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12429             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12431           else
12432             ld_shlibs_GO=no
12433           fi
12434         ;;
12435       esac
12436       ;;
12437
12438     sunos4*)
12439       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12440       wlarc=
12441       hardcode_direct_GO=yes
12442       hardcode_shlibpath_var_GO=no
12443       ;;
12444
12445     *)
12446       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12447         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12449       else
12450         ld_shlibs_GO=no
12451       fi
12452       ;;
12453     esac
12454
12455     if test "$ld_shlibs_GO" = no; then
12456       runpath_var=
12457       hardcode_libdir_flag_spec_GO=
12458       export_dynamic_flag_spec_GO=
12459       whole_archive_flag_spec_GO=
12460     fi
12461   else
12462     # PORTME fill in a description of your system's linker (not GNU ld)
12463     case $host_os in
12464     aix3*)
12465       allow_undefined_flag_GO=unsupported
12466       always_export_symbols_GO=yes
12467       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'
12468       # Note: this linker hardcodes the directories in LIBPATH if there
12469       # are no directories specified by -L.
12470       hardcode_minus_L_GO=yes
12471       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12472         # Neither direct hardcoding nor static linking is supported with a
12473         # broken collect2.
12474         hardcode_direct_GO=unsupported
12475       fi
12476       ;;
12477
12478     aix[4-9]*)
12479       if test "$host_cpu" = ia64; then
12480         # On IA64, the linker does run time linking by default, so we don't
12481         # have to do anything special.
12482         aix_use_runtimelinking=no
12483         exp_sym_flag='-Bexport'
12484         no_entry_flag=""
12485       else
12486         # If we're using GNU nm, then we don't want the "-C" option.
12487         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12488         # Also, AIX nm treats weak defined symbols like other global
12489         # defined symbols, whereas GNU nm marks them as "W".
12490         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12491           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'
12492         else
12493           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'
12494         fi
12495         aix_use_runtimelinking=no
12496
12497         # Test if we are trying to use run time linking or normal
12498         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12499         # need to do runtime linking.
12500         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12501           for ld_flag in $LDFLAGS; do
12502           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12503             aix_use_runtimelinking=yes
12504             break
12505           fi
12506           done
12507           ;;
12508         esac
12509
12510         exp_sym_flag='-bexport'
12511         no_entry_flag='-bnoentry'
12512       fi
12513
12514       # When large executables or shared objects are built, AIX ld can
12515       # have problems creating the table of contents.  If linking a library
12516       # or program results in "error TOC overflow" add -mminimal-toc to
12517       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12518       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12519
12520       archive_cmds_GO=''
12521       hardcode_direct_GO=yes
12522       hardcode_direct_absolute_GO=yes
12523       hardcode_libdir_separator_GO=':'
12524       link_all_deplibs_GO=yes
12525       file_list_spec_GO='${wl}-f,'
12526
12527       if test "$GCC" = yes; then
12528         case $host_os in aix4.[012]|aix4.[012].*)
12529         # We only want to do this on AIX 4.2 and lower, the check
12530         # below for broken collect2 doesn't work under 4.3+
12531           collect2name=`${CC} -print-prog-name=collect2`
12532           if test -f "$collect2name" &&
12533            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12534           then
12535           # We have reworked collect2
12536           :
12537           else
12538           # We have old collect2
12539           hardcode_direct_GO=unsupported
12540           # It fails to find uninstalled libraries when the uninstalled
12541           # path is not listed in the libpath.  Setting hardcode_minus_L
12542           # to unsupported forces relinking
12543           hardcode_minus_L_GO=yes
12544           hardcode_libdir_flag_spec_GO='-L$libdir'
12545           hardcode_libdir_separator_GO=
12546           fi
12547           ;;
12548         esac
12549         shared_flag='-shared'
12550         if test "$aix_use_runtimelinking" = yes; then
12551           shared_flag="$shared_flag "'${wl}-G'
12552         fi
12553       else
12554         # not using gcc
12555         if test "$host_cpu" = ia64; then
12556         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12557         # chokes on -Wl,-G. The following line is correct:
12558           shared_flag='-G'
12559         else
12560           if test "$aix_use_runtimelinking" = yes; then
12561             shared_flag='${wl}-G'
12562           else
12563             shared_flag='${wl}-bM:SRE'
12564           fi
12565         fi
12566       fi
12567
12568       export_dynamic_flag_spec_GO='${wl}-bexpall'
12569       # It seems that -bexpall does not export symbols beginning with
12570       # underscore (_), so it is better to generate a list of symbols to export.
12571       always_export_symbols_GO=yes
12572       if test "$aix_use_runtimelinking" = yes; then
12573         # Warning - without using the other runtime loading flags (-brtl),
12574         # -berok will link without error, but may produce a broken library.
12575         allow_undefined_flag_GO='-berok'
12576         # Determine the default libpath from the value encoded in an
12577         # empty executable.
12578         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h.  */
12580
12581 int
12582 main ()
12583 {
12584
12585   ;
12586   return 0;
12587 }
12588 _ACEOF
12589 if ac_fn_c_try_link "$LINENO"; then :
12590
12591 lt_aix_libpath_sed='
12592     /Import File Strings/,/^$/ {
12593         /^0/ {
12594             s/^0  *\(.*\)$/\1/
12595             p
12596         }
12597     }'
12598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599 # Check for a 64-bit object if we didn't find anything.
12600 if test -z "$aix_libpath"; then
12601   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602 fi
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext \
12605     conftest$ac_exeext conftest.$ac_ext
12606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12607
12608         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12609         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"
12610       else
12611         if test "$host_cpu" = ia64; then
12612           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12613           allow_undefined_flag_GO="-z nodefs"
12614           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"
12615         else
12616          # Determine the default libpath from the value encoded in an
12617          # empty executable.
12618          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h.  */
12620
12621 int
12622 main ()
12623 {
12624
12625   ;
12626   return 0;
12627 }
12628 _ACEOF
12629 if ac_fn_c_try_link "$LINENO"; then :
12630
12631 lt_aix_libpath_sed='
12632     /Import File Strings/,/^$/ {
12633         /^0/ {
12634             s/^0  *\(.*\)$/\1/
12635             p
12636         }
12637     }'
12638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639 # Check for a 64-bit object if we didn't find anything.
12640 if test -z "$aix_libpath"; then
12641   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642 fi
12643 fi
12644 rm -f core conftest.err conftest.$ac_objext \
12645     conftest$ac_exeext conftest.$ac_ext
12646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12647
12648          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12649           # Warning - without using the other run time loading flags,
12650           # -berok will link without error, but may produce a broken library.
12651           no_undefined_flag_GO=' ${wl}-bernotok'
12652           allow_undefined_flag_GO=' ${wl}-berok'
12653           if test "$with_gnu_ld" = yes; then
12654             # We only use this code for GNU lds that support --whole-archive.
12655             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12656           else
12657             # Exported symbols can be pulled into shared objects from archives
12658             whole_archive_flag_spec_GO='$convenience'
12659           fi
12660           archive_cmds_need_lc_GO=yes
12661           # This is similar to how AIX traditionally builds its shared libraries.
12662           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'
12663         fi
12664       fi
12665       ;;
12666
12667     amigaos*)
12668       case $host_cpu in
12669       powerpc)
12670             # see comment about AmigaOS4 .so support
12671             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672             archive_expsym_cmds_GO=''
12673         ;;
12674       m68k)
12675             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)'
12676             hardcode_libdir_flag_spec_GO='-L$libdir'
12677             hardcode_minus_L_GO=yes
12678         ;;
12679       esac
12680       ;;
12681
12682     bsdi[45]*)
12683       export_dynamic_flag_spec_GO=-rdynamic
12684       ;;
12685
12686     cygwin* | mingw* | pw32* | cegcc*)
12687       # When not using gcc, we currently assume that we are using
12688       # Microsoft Visual C++.
12689       # hardcode_libdir_flag_spec is actually meaningless, as there is
12690       # no search path for DLLs.
12691       hardcode_libdir_flag_spec_GO=' '
12692       allow_undefined_flag_GO=unsupported
12693       # Tell ltmain to make .lib files, not .a files.
12694       libext=lib
12695       # Tell ltmain to make .dll files, not .so files.
12696       shrext_cmds=".dll"
12697       # FIXME: Setting linknames here is a bad hack.
12698       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12699       # The linker will automatically build a .lib file if we build a DLL.
12700       old_archive_from_new_cmds_GO='true'
12701       # FIXME: Should let the user specify the lib program.
12702       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12703       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12704       enable_shared_with_static_runtimes_GO=yes
12705       ;;
12706
12707     darwin* | rhapsody*)
12708
12709
12710   archive_cmds_need_lc_GO=no
12711   hardcode_direct_GO=no
12712   hardcode_automatic_GO=yes
12713   hardcode_shlibpath_var_GO=unsupported
12714   if test "$lt_cv_ld_force_load" = "yes"; then
12715     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\"`'
12716   else
12717     whole_archive_flag_spec_GO=''
12718   fi
12719   link_all_deplibs_GO=yes
12720   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12721   case $cc_basename in
12722      ifort*) _lt_dar_can_shared=yes ;;
12723      *) _lt_dar_can_shared=$GCC ;;
12724   esac
12725   if test "$_lt_dar_can_shared" = "yes"; then
12726     output_verbose_link_cmd=func_echo_all
12727     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}"
12728     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12729     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}"
12730     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}"
12731
12732   else
12733   ld_shlibs_GO=no
12734   fi
12735
12736       ;;
12737
12738     dgux*)
12739       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12740       hardcode_libdir_flag_spec_GO='-L$libdir'
12741       hardcode_shlibpath_var_GO=no
12742       ;;
12743
12744     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12745     # support.  Future versions do this automatically, but an explicit c++rt0.o
12746     # does not break anything, and helps significantly (at the cost of a little
12747     # extra space).
12748     freebsd2.2*)
12749       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12750       hardcode_libdir_flag_spec_GO='-R$libdir'
12751       hardcode_direct_GO=yes
12752       hardcode_shlibpath_var_GO=no
12753       ;;
12754
12755     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12756     freebsd2*)
12757       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12758       hardcode_direct_GO=yes
12759       hardcode_minus_L_GO=yes
12760       hardcode_shlibpath_var_GO=no
12761       ;;
12762
12763     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12764     freebsd* | dragonfly*)
12765       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12766       hardcode_libdir_flag_spec_GO='-R$libdir'
12767       hardcode_direct_GO=yes
12768       hardcode_shlibpath_var_GO=no
12769       ;;
12770
12771     hpux9*)
12772       if test "$GCC" = yes; then
12773         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'
12774       else
12775         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'
12776       fi
12777       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12778       hardcode_libdir_separator_GO=:
12779       hardcode_direct_GO=yes
12780
12781       # hardcode_minus_L: Not really in the search PATH,
12782       # but as the default location of the library.
12783       hardcode_minus_L_GO=yes
12784       export_dynamic_flag_spec_GO='${wl}-E'
12785       ;;
12786
12787     hpux10*)
12788       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12789         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12790       else
12791         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12792       fi
12793       if test "$with_gnu_ld" = no; then
12794         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12795         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12796         hardcode_libdir_separator_GO=:
12797         hardcode_direct_GO=yes
12798         hardcode_direct_absolute_GO=yes
12799         export_dynamic_flag_spec_GO='${wl}-E'
12800         # hardcode_minus_L: Not really in the search PATH,
12801         # but as the default location of the library.
12802         hardcode_minus_L_GO=yes
12803       fi
12804       ;;
12805
12806     hpux11*)
12807       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12808         case $host_cpu in
12809         hppa*64*)
12810           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12811           ;;
12812         ia64*)
12813           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12814           ;;
12815         *)
12816           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12817           ;;
12818         esac
12819       else
12820         case $host_cpu in
12821         hppa*64*)
12822           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12823           ;;
12824         ia64*)
12825           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12826           ;;
12827         *)
12828         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12829           ;;
12830         esac
12831       fi
12832       if test "$with_gnu_ld" = no; then
12833         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12834         hardcode_libdir_separator_GO=:
12835
12836         case $host_cpu in
12837         hppa*64*|ia64*)
12838           hardcode_direct_GO=no
12839           hardcode_shlibpath_var_GO=no
12840           ;;
12841         *)
12842           hardcode_direct_GO=yes
12843           hardcode_direct_absolute_GO=yes
12844           export_dynamic_flag_spec_GO='${wl}-E'
12845
12846           # hardcode_minus_L: Not really in the search PATH,
12847           # but as the default location of the library.
12848           hardcode_minus_L_GO=yes
12849           ;;
12850         esac
12851       fi
12852       ;;
12853
12854     irix5* | irix6* | nonstopux*)
12855       if test "$GCC" = yes; then
12856         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'
12857         # Try to use the -exported_symbol ld option, if it does not
12858         # work, assume that -exports_file does not work either and
12859         # implicitly export all symbols.
12860         save_LDFLAGS="$LDFLAGS"
12861         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12862         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h.  */
12864 int foo(void) {}
12865 _ACEOF
12866 if ac_fn_c_try_link "$LINENO"; then :
12867   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'
12868
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext \
12871     conftest$ac_exeext conftest.$ac_ext
12872         LDFLAGS="$save_LDFLAGS"
12873       else
12874         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'
12875         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'
12876       fi
12877       archive_cmds_need_lc_GO='no'
12878       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12879       hardcode_libdir_separator_GO=:
12880       inherit_rpath_GO=yes
12881       link_all_deplibs_GO=yes
12882       ;;
12883
12884     netbsd*)
12885       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12886         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12887       else
12888         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12889       fi
12890       hardcode_libdir_flag_spec_GO='-R$libdir'
12891       hardcode_direct_GO=yes
12892       hardcode_shlibpath_var_GO=no
12893       ;;
12894
12895     newsos6)
12896       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897       hardcode_direct_GO=yes
12898       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12899       hardcode_libdir_separator_GO=:
12900       hardcode_shlibpath_var_GO=no
12901       ;;
12902
12903     *nto* | *qnx*)
12904       ;;
12905
12906     openbsd*)
12907       if test -f /usr/libexec/ld.so; then
12908         hardcode_direct_GO=yes
12909         hardcode_shlibpath_var_GO=no
12910         hardcode_direct_absolute_GO=yes
12911         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12912           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12913           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12914           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12915           export_dynamic_flag_spec_GO='${wl}-E'
12916         else
12917           case $host_os in
12918            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12919              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12920              hardcode_libdir_flag_spec_GO='-R$libdir'
12921              ;;
12922            *)
12923              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12924              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12925              ;;
12926           esac
12927         fi
12928       else
12929         ld_shlibs_GO=no
12930       fi
12931       ;;
12932
12933     os2*)
12934       hardcode_libdir_flag_spec_GO='-L$libdir'
12935       hardcode_minus_L_GO=yes
12936       allow_undefined_flag_GO=unsupported
12937       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'
12938       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12939       ;;
12940
12941     osf3*)
12942       if test "$GCC" = yes; then
12943         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12944         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'
12945       else
12946         allow_undefined_flag_GO=' -expect_unresolved \*'
12947         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'
12948       fi
12949       archive_cmds_need_lc_GO='no'
12950       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12951       hardcode_libdir_separator_GO=:
12952       ;;
12953
12954     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12955       if test "$GCC" = yes; then
12956         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12957         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'
12958         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12959       else
12960         allow_undefined_flag_GO=' -expect_unresolved \*'
12961         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'
12962         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~
12963         $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'
12964
12965         # Both c and cxx compiler support -rpath directly
12966         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12967       fi
12968       archive_cmds_need_lc_GO='no'
12969       hardcode_libdir_separator_GO=:
12970       ;;
12971
12972     solaris*)
12973       no_undefined_flag_GO=' -z defs'
12974       if test "$GCC" = yes; then
12975         wlarc='${wl}'
12976         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12977         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12978           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12979       else
12980         case `$CC -V 2>&1` in
12981         *"Compilers 5.0"*)
12982           wlarc=''
12983           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12984           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12986           ;;
12987         *)
12988           wlarc='${wl}'
12989           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12990           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12991           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12992           ;;
12993         esac
12994       fi
12995       hardcode_libdir_flag_spec_GO='-R$libdir'
12996       hardcode_shlibpath_var_GO=no
12997       case $host_os in
12998       solaris2.[0-5] | solaris2.[0-5].*) ;;
12999       *)
13000         # The compiler driver will combine and reorder linker options,
13001         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13002         # but is careful enough not to reorder.
13003         # Supported since Solaris 2.6 (maybe 2.5.1?)
13004         if test "$GCC" = yes; then
13005           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13006         else
13007           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13008         fi
13009         ;;
13010       esac
13011       link_all_deplibs_GO=yes
13012       ;;
13013
13014     sunos4*)
13015       if test "x$host_vendor" = xsequent; then
13016         # Use $CC to link under sequent, because it throws in some extra .o
13017         # files that make .init and .fini sections work.
13018         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13019       else
13020         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13021       fi
13022       hardcode_libdir_flag_spec_GO='-L$libdir'
13023       hardcode_direct_GO=yes
13024       hardcode_minus_L_GO=yes
13025       hardcode_shlibpath_var_GO=no
13026       ;;
13027
13028     sysv4)
13029       case $host_vendor in
13030         sni)
13031           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13032           hardcode_direct_GO=yes # is this really true???
13033         ;;
13034         siemens)
13035           ## LD is ld it makes a PLAMLIB
13036           ## CC just makes a GrossModule.
13037           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13038           reload_cmds_GO='$CC -r -o $output$reload_objs'
13039           hardcode_direct_GO=no
13040         ;;
13041         motorola)
13042           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13044         ;;
13045       esac
13046       runpath_var='LD_RUN_PATH'
13047       hardcode_shlibpath_var_GO=no
13048       ;;
13049
13050     sysv4.3*)
13051       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052       hardcode_shlibpath_var_GO=no
13053       export_dynamic_flag_spec_GO='-Bexport'
13054       ;;
13055
13056     sysv4*MP*)
13057       if test -d /usr/nec; then
13058         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13059         hardcode_shlibpath_var_GO=no
13060         runpath_var=LD_RUN_PATH
13061         hardcode_runpath_var=yes
13062         ld_shlibs_GO=yes
13063       fi
13064       ;;
13065
13066     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13067       no_undefined_flag_GO='${wl}-z,text'
13068       archive_cmds_need_lc_GO=no
13069       hardcode_shlibpath_var_GO=no
13070       runpath_var='LD_RUN_PATH'
13071
13072       if test "$GCC" = yes; then
13073         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075       else
13076         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078       fi
13079       ;;
13080
13081     sysv5* | sco3.2v5* | sco5v6*)
13082       # Note: We can NOT use -z defs as we might desire, because we do not
13083       # link with -lc, and that would cause any symbols used from libc to
13084       # always be unresolved, which means just about no library would
13085       # ever link correctly.  If we're not using GNU ld we use -z text
13086       # though, which does catch some bad symbols but isn't as heavy-handed
13087       # as -z defs.
13088       no_undefined_flag_GO='${wl}-z,text'
13089       allow_undefined_flag_GO='${wl}-z,nodefs'
13090       archive_cmds_need_lc_GO=no
13091       hardcode_shlibpath_var_GO=no
13092       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13093       hardcode_libdir_separator_GO=':'
13094       link_all_deplibs_GO=yes
13095       export_dynamic_flag_spec_GO='${wl}-Bexport'
13096       runpath_var='LD_RUN_PATH'
13097
13098       if test "$GCC" = yes; then
13099         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101       else
13102         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104       fi
13105       ;;
13106
13107     uts4*)
13108       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13109       hardcode_libdir_flag_spec_GO='-L$libdir'
13110       hardcode_shlibpath_var_GO=no
13111       ;;
13112
13113     *)
13114       ld_shlibs_GO=no
13115       ;;
13116     esac
13117
13118     if test x$host_vendor = xsni; then
13119       case $host in
13120       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13121         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13122         ;;
13123       esac
13124     fi
13125   fi
13126
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13128 $as_echo "$ld_shlibs_GO" >&6; }
13129 test "$ld_shlibs_GO" = no && can_build_shared=no
13130
13131 with_gnu_ld_GO=$with_gnu_ld
13132
13133
13134
13135
13136
13137
13138 #
13139 # Do we need to explicitly link libc?
13140 #
13141 case "x$archive_cmds_need_lc_GO" in
13142 x|xyes)
13143   # Assume -lc should be added
13144   archive_cmds_need_lc_GO=yes
13145
13146   if test "$enable_shared" = yes && test "$GCC" = yes; then
13147     case $archive_cmds_GO in
13148     *'~'*)
13149       # FIXME: we may have to deal with multi-command sequences.
13150       ;;
13151     '$CC '*)
13152       # Test whether the compiler implicitly links with -lc since on some
13153       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13154       # to ld, don't add -lc before -lgcc.
13155       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13156 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13157 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13158   $as_echo_n "(cached) " >&6
13159 else
13160   $RM conftest*
13161         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13162
13163         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13164   (eval $ac_compile) 2>&5
13165   ac_status=$?
13166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167   test $ac_status = 0; } 2>conftest.err; then
13168           soname=conftest
13169           lib=conftest
13170           libobjs=conftest.$ac_objext
13171           deplibs=
13172           wl=$lt_prog_compiler_wl_GO
13173           pic_flag=$lt_prog_compiler_pic_GO
13174           compiler_flags=-v
13175           linker_flags=-v
13176           verstring=
13177           output_objdir=.
13178           libname=conftest
13179           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13180           allow_undefined_flag_GO=
13181           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13182   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13183   ac_status=$?
13184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185   test $ac_status = 0; }
13186           then
13187             lt_cv_archive_cmds_need_lc_GO=no
13188           else
13189             lt_cv_archive_cmds_need_lc_GO=yes
13190           fi
13191           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13192         else
13193           cat conftest.err 1>&5
13194         fi
13195         $RM conftest*
13196
13197 fi
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13199 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13200       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13201       ;;
13202     esac
13203   fi
13204   ;;
13205 esac
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13271 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13272 hardcode_action_GO=
13273 if test -n "$hardcode_libdir_flag_spec_GO" ||
13274    test -n "$runpath_var_GO" ||
13275    test "X$hardcode_automatic_GO" = "Xyes" ; then
13276
13277   # We can hardcode non-existent directories.
13278   if test "$hardcode_direct_GO" != no &&
13279      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13280      # have to relink, otherwise we might link with an installed library
13281      # when we should be linking with a yet-to-be-installed one
13282      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13283      test "$hardcode_minus_L_GO" != no; then
13284     # Linking always hardcodes the temporary library directory.
13285     hardcode_action_GO=relink
13286   else
13287     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13288     hardcode_action_GO=immediate
13289   fi
13290 else
13291   # We cannot hardcode anything, or else we can only hardcode existing
13292   # directories.
13293   hardcode_action_GO=unsupported
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13296 $as_echo "$hardcode_action_GO" >&6; }
13297
13298 if test "$hardcode_action_GO" = relink ||
13299    test "$inherit_rpath_GO" = yes; then
13300   # Fast installation is not supported
13301   enable_fast_install=no
13302 elif test "$shlibpath_overrides_runpath" = yes ||
13303      test "$enable_shared" = no; then
13304   # Fast installation is not necessary
13305   enable_fast_install=needless
13306 fi
13307
13308
13309
13310
13311
13312
13313
13314 fi
13315
13316 ac_ext=c
13317 ac_cpp='$CPP $CPPFLAGS'
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13321
13322
13323 GCC=$lt_save_GCC
13324 CC="$lt_save_CC"
13325
13326
13327
13328
13329         ac_config_commands="$ac_config_commands libtool"
13330
13331
13332
13333
13334 # Only expand once:
13335
13336
13337
13338
13339
13340 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13341
13342
13343 for ac_prog in gawk mawk nawk awk
13344 do
13345   # Extract the first word of "$ac_prog", so it can be a program name with args.
13346 set dummy $ac_prog; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if test "${ac_cv_prog_AWK+set}" = set; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   if test -n "$AWK"; then
13353   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13354 else
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $PATH
13357 do
13358   IFS=$as_save_IFS
13359   test -z "$as_dir" && as_dir=.
13360     for ac_exec_ext in '' $ac_executable_extensions; do
13361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13362     ac_cv_prog_AWK="$ac_prog"
13363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364     break 2
13365   fi
13366 done
13367   done
13368 IFS=$as_save_IFS
13369
13370 fi
13371 fi
13372 AWK=$ac_cv_prog_AWK
13373 if test -n "$AWK"; then
13374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13375 $as_echo "$AWK" >&6; }
13376 else
13377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13379 fi
13380
13381
13382   test -n "$AWK" && break
13383 done
13384
13385
13386 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13387
13388
13389 WERROR="-Werror"
13390
13391
13392 glibgo_toolexecdir=no
13393 glibgo_toolexeclibdir=no
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13396 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13397 # Check whether --enable-version-specific-runtime-libs was given.
13398 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13399   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13400     yes) version_specific_libs=yes ;;
13401     no)  version_specific_libs=no ;;
13402     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13403    esac
13404 else
13405   version_specific_libs=no
13406 fi
13407
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13409 $as_echo "$version_specific_libs" >&6; }
13410
13411 # Version-specific runtime libs processing.
13412 if test $version_specific_libs = yes; then
13413   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13414   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13415 fi
13416
13417 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13418 # Install a library built with a cross compiler in tooldir, not libdir.
13419 if test -n "$with_cross_host" &&
13420    test x"$with_cross_host" != x"no"; then
13421   nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13422   nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13423 else
13424   nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13425   nover_glibgo_toolexeclibdir='${libdir}'
13426 fi
13427 multi_os_directory=`$CC -print-multi-os-directory`
13428 case $multi_os_directory in
13429   .) ;; # Avoid trailing /.
13430   *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13431 esac
13432
13433 if test x"$glibgo_toolexecdir" = x"no"; then
13434   glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13435   glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13436 fi
13437
13438
13439
13440
13441
13442 # See if the user wants to configure without libffi.  Some
13443 # architectures don't support it.  FIXME: We should set a default
13444 # based on the host.
13445
13446 # Check whether --with-libffi was given.
13447 if test "${with_libffi+set}" = set; then :
13448   withval=$with_libffi; :
13449 else
13450   with_libffi=${with_libffi_default-yes}
13451 fi
13452
13453
13454 LIBFFI=
13455 LIBFFIINCS=
13456 if test "$with_libffi" != no; then
13457
13458 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13459
13460    LIBFFI=../libffi/libffi_convenience.la
13461    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13462 fi
13463
13464
13465
13466 # Used to tell GNU make to include a file without telling automake to
13467 # include it.
13468 go_include="-include"
13469
13470
13471 is_darwin=no
13472 is_freebsd=no
13473 is_irix=no
13474 is_linux=no
13475 is_netbsd=no
13476 is_rtems=no
13477 is_solaris=no
13478 GOOS=unknown
13479 case ${host} in
13480   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13481   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13482   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13483   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13484   *-*-netbsd*)   is_netbsd=yes;  GOOS=netbsd ;;
13485   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13486   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13487 esac
13488  if test $is_darwin = yes; then
13489   LIBGO_IS_DARWIN_TRUE=
13490   LIBGO_IS_DARWIN_FALSE='#'
13491 else
13492   LIBGO_IS_DARWIN_TRUE='#'
13493   LIBGO_IS_DARWIN_FALSE=
13494 fi
13495
13496  if test $is_freebsd = yes; then
13497   LIBGO_IS_FREEBSD_TRUE=
13498   LIBGO_IS_FREEBSD_FALSE='#'
13499 else
13500   LIBGO_IS_FREEBSD_TRUE='#'
13501   LIBGO_IS_FREEBSD_FALSE=
13502 fi
13503
13504  if test $is_irix = yes; then
13505   LIBGO_IS_IRIX_TRUE=
13506   LIBGO_IS_IRIX_FALSE='#'
13507 else
13508   LIBGO_IS_IRIX_TRUE='#'
13509   LIBGO_IS_IRIX_FALSE=
13510 fi
13511
13512  if test $is_linux = yes; then
13513   LIBGO_IS_LINUX_TRUE=
13514   LIBGO_IS_LINUX_FALSE='#'
13515 else
13516   LIBGO_IS_LINUX_TRUE='#'
13517   LIBGO_IS_LINUX_FALSE=
13518 fi
13519
13520  if test $is_netbsd = yes; then
13521   LIBGO_IS_NETBSD_TRUE=
13522   LIBGO_IS_NETBSD_FALSE='#'
13523 else
13524   LIBGO_IS_NETBSD_TRUE='#'
13525   LIBGO_IS_NETBSD_FALSE=
13526 fi
13527
13528  if test $is_rtems = yes; then
13529   LIBGO_IS_RTEMS_TRUE=
13530   LIBGO_IS_RTEMS_FALSE='#'
13531 else
13532   LIBGO_IS_RTEMS_TRUE='#'
13533   LIBGO_IS_RTEMS_FALSE=
13534 fi
13535
13536  if test $is_solaris = yes; then
13537   LIBGO_IS_SOLARIS_TRUE=
13538   LIBGO_IS_SOLARIS_FALSE='#'
13539 else
13540   LIBGO_IS_SOLARIS_TRUE='#'
13541   LIBGO_IS_SOLARIS_FALSE=
13542 fi
13543
13544
13545
13546 is_386=no
13547 is_alpha=no
13548 is_arm=no
13549 is_m68k=no
13550 mips_abi=unknown
13551 is_ppc=no
13552 is_ppc64=no
13553 is_sparc=no
13554 is_sparc64=no
13555 is_x86_64=no
13556 GOARCH=unknown
13557 case ${host} in
13558   alpha*-*-*)
13559     is_alpha=yes
13560     GOARCH=alpha
13561     ;;
13562   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13563     is_arm=yes
13564     GOARCH=arm
13565     ;;
13566   i[34567]86-*-* | x86_64-*-*)
13567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h.  */
13569
13570 #ifdef __x86_64__
13571 #error 64-bit
13572 #endif
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575   is_386=yes
13576 else
13577   is_x86_64=yes
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580     if test "$is_386" = "yes"; then
13581       GOARCH=386
13582     else
13583       GOARCH=amd64
13584     fi
13585     ;;
13586   m68k*-*-*)
13587     is_m68k=yes
13588     GOARCH=m68k
13589     ;;
13590   mips*-*-*)
13591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h.  */
13593
13594 #if _MIPS_SIM != _ABIO32
13595 #error not o32
13596 #endif
13597 _ACEOF
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599   mips_abi="o32"
13600 else
13601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h.  */
13603
13604 #if _MIPS_SIM != _ABIN32
13605 #error not n32
13606 #endif
13607 _ACEOF
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609   mips_abi="n32"
13610 else
13611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h.  */
13613
13614 #if _MIPS_SIM != _ABI64
13615 #error not n64
13616 #endif
13617 _ACEOF
13618 if ac_fn_c_try_compile "$LINENO"; then :
13619   mips_abi="n64"
13620 else
13621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h.  */
13623
13624 #if _MIPS_SIM != _ABIO64
13625 #error not o64
13626 #endif
13627 _ACEOF
13628 if ac_fn_c_try_compile "$LINENO"; then :
13629   mips_abi="o64"
13630 else
13631   as_fn_error "unknown MIPS ABI" "$LINENO" 5
13632 mips_abi="n32"
13633 fi
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 fi
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641     case "$mips_abi" in
13642     "o32") GOARCH=mipso32 ;;
13643     "n32") GOARCH=mipsn32 ;;
13644     "n64") GOARCH=mipsn64 ;;
13645     "o64") GOARCH=mipso64 ;;
13646     esac
13647     ;;
13648   rs6000*-*-* | powerpc*-*-*)
13649     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h.  */
13651
13652 #ifdef _ARCH_PPC64
13653 #error 64-bit
13654 #endif
13655 _ACEOF
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657   is_ppc=yes
13658 else
13659   is_ppc64=yes
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662     if test "$is_ppc" = "yes"; then
13663       GOARCH=ppc
13664     else
13665       GOARCH=ppc64
13666     fi
13667     ;;
13668   sparc*-*-*)
13669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h.  */
13671
13672 #if defined(__sparcv9) || defined(__arch64__)
13673 #error 64-bit
13674 #endif
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"; then :
13677   is_sparc=yes
13678 else
13679   is_sparc64=yes
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682     if test "$is_sparc" = "yes"; then
13683       GOARCH=sparc
13684     else
13685       GOARCH=sparc64
13686     fi
13687     ;;
13688 esac
13689  if test $is_386 = yes; then
13690   LIBGO_IS_386_TRUE=
13691   LIBGO_IS_386_FALSE='#'
13692 else
13693   LIBGO_IS_386_TRUE='#'
13694   LIBGO_IS_386_FALSE=
13695 fi
13696
13697  if test $is_alpha = yes; then
13698   LIBGO_IS_ALPHA_TRUE=
13699   LIBGO_IS_ALPHA_FALSE='#'
13700 else
13701   LIBGO_IS_ALPHA_TRUE='#'
13702   LIBGO_IS_ALPHA_FALSE=
13703 fi
13704
13705  if test $is_arm = yes; then
13706   LIBGO_IS_ARM_TRUE=
13707   LIBGO_IS_ARM_FALSE='#'
13708 else
13709   LIBGO_IS_ARM_TRUE='#'
13710   LIBGO_IS_ARM_FALSE=
13711 fi
13712
13713  if test $is_m68k = yes; then
13714   LIBGO_IS_M68K_TRUE=
13715   LIBGO_IS_M68K_FALSE='#'
13716 else
13717   LIBGO_IS_M68K_TRUE='#'
13718   LIBGO_IS_M68K_FALSE=
13719 fi
13720
13721  if test $mips_abi != unknown; then
13722   LIBGO_IS_MIPS_TRUE=
13723   LIBGO_IS_MIPS_FALSE='#'
13724 else
13725   LIBGO_IS_MIPS_TRUE='#'
13726   LIBGO_IS_MIPS_FALSE=
13727 fi
13728
13729  if test $mips_abi = o32; then
13730   LIBGO_IS_MIPSO32_TRUE=
13731   LIBGO_IS_MIPSO32_FALSE='#'
13732 else
13733   LIBGO_IS_MIPSO32_TRUE='#'
13734   LIBGO_IS_MIPSO32_FALSE=
13735 fi
13736
13737  if test $mips_abi = n32; then
13738   LIBGO_IS_MIPSN32_TRUE=
13739   LIBGO_IS_MIPSN32_FALSE='#'
13740 else
13741   LIBGO_IS_MIPSN32_TRUE='#'
13742   LIBGO_IS_MIPSN32_FALSE=
13743 fi
13744
13745  if test $mips_abi = n64; then
13746   LIBGO_IS_MIPSN64_TRUE=
13747   LIBGO_IS_MIPSN64_FALSE='#'
13748 else
13749   LIBGO_IS_MIPSN64_TRUE='#'
13750   LIBGO_IS_MIPSN64_FALSE=
13751 fi
13752
13753  if test $mips_abi = o64; then
13754   LIBGO_IS_MIPSO64_TRUE=
13755   LIBGO_IS_MIPSO64_FALSE='#'
13756 else
13757   LIBGO_IS_MIPSO64_TRUE='#'
13758   LIBGO_IS_MIPSO64_FALSE=
13759 fi
13760
13761  if test $is_ppc = yes; then
13762   LIBGO_IS_PPC_TRUE=
13763   LIBGO_IS_PPC_FALSE='#'
13764 else
13765   LIBGO_IS_PPC_TRUE='#'
13766   LIBGO_IS_PPC_FALSE=
13767 fi
13768
13769  if test $is_ppc64 = yes; then
13770   LIBGO_IS_PPC64_TRUE=
13771   LIBGO_IS_PPC64_FALSE='#'
13772 else
13773   LIBGO_IS_PPC64_TRUE='#'
13774   LIBGO_IS_PPC64_FALSE=
13775 fi
13776
13777  if test $is_sparc = yes; then
13778   LIBGO_IS_SPARC_TRUE=
13779   LIBGO_IS_SPARC_FALSE='#'
13780 else
13781   LIBGO_IS_SPARC_TRUE='#'
13782   LIBGO_IS_SPARC_FALSE=
13783 fi
13784
13785  if test $is_sparc64 = yes; then
13786   LIBGO_IS_SPARC64_TRUE=
13787   LIBGO_IS_SPARC64_FALSE='#'
13788 else
13789   LIBGO_IS_SPARC64_TRUE='#'
13790   LIBGO_IS_SPARC64_FALSE=
13791 fi
13792
13793  if test $is_x86_64 = yes; then
13794   LIBGO_IS_X86_64_TRUE=
13795   LIBGO_IS_X86_64_FALSE='#'
13796 else
13797   LIBGO_IS_X86_64_TRUE='#'
13798   LIBGO_IS_X86_64_FALSE=
13799 fi
13800
13801
13802
13803 GO_LIBCALL_OS_FILE=
13804 GO_LIBCALL_OS_ARCH_FILE=
13805 GO_SYSCALL_OS_FILE=
13806 GO_SYSCALL_OS_ARCH_FILE=
13807 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13808   GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13809 fi
13810 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13811   GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13812 fi
13813 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13814   GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13815 fi
13816 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13817   GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13818 fi
13819
13820
13821
13822
13823
13824 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13825 case "$target" in
13826     mips-sgi-irix6.5*)
13827         # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13828         # msghdr in <sys/socket.h>.
13829         OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13830         ;;
13831     *-*-solaris2.[89])
13832         # Solaris 8/9 need this so struct msghdr gets the msg_control
13833         # etc. fields in <sys/socket.h> (_XPG4_2).
13834         OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13835         ;;
13836     *-*-solaris2.1[01])
13837         # Solaris 10+ needs this so struct msghdr gets the msg_control
13838         # etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=600 as
13839         # above doesn't work with C99.
13840         OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13841         ;;
13842 esac
13843
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13846 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13847 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13848   $as_echo_n "(cached) " >&6
13849 else
13850   CFLAGS_hold=$CFLAGS
13851 CFLAGS="$CFLAGS -fsplit-stack"
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h.  */
13854 int i;
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857   libgo_cv_c_split_stack_supported=yes
13858 else
13859   libgo_cv_c_split_stack_supported=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 CFLAGS=$CFLAGS_hold
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13865 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13866 if test "$libgo_cv_c_split_stack_supported" = yes; then
13867   SPLIT_STACK=-fsplit-stack
13868
13869 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13870
13871 else
13872   SPLIT_STACK=
13873 fi
13874
13875  if test "$libgo_cv_c_split_stack_supported" = yes; then
13876   USING_SPLIT_STACK_TRUE=
13877   USING_SPLIT_STACK_FALSE='#'
13878 else
13879   USING_SPLIT_STACK_TRUE='#'
13880   USING_SPLIT_STACK_FALSE=
13881 fi
13882
13883
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13885 $as_echo_n "checking whether linker supports split stack... " >&6; }
13886 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13887   $as_echo_n "(cached) " >&6
13888 else
13889   libgo_cv_c_linker_supports_split_stack=no
13890 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13891   libgo_cv_c_linker_supports_split_stack=yes
13892 fi
13893 fi
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13895 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13896 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13897
13898 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13899
13900 fi
13901
13902 MATH_LIBS=
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13904 $as_echo_n "checking for sqrt in -lm... " >&6; }
13905 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   ac_check_lib_save_LIBS=$LIBS
13909 LIBS="-lm  $LIBS"
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h.  */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914    Use char because int might match the return type of a GCC
13915    builtin and then its argument prototype would still apply.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char sqrt ();
13920 int
13921 main ()
13922 {
13923 return sqrt ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929   ac_cv_lib_m_sqrt=yes
13930 else
13931   ac_cv_lib_m_sqrt=no
13932 fi
13933 rm -f core conftest.err conftest.$ac_objext \
13934     conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13938 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13939 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13940   MATH_LIBS=-lm
13941 fi
13942
13943
13944
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13946 $as_echo_n "checking for socket libraries... " >&6; }
13947 if test "${libgo_cv_lib_sockets+set}" = set; then :
13948   $as_echo_n "(cached) " >&6
13949 else
13950   libgo_cv_lib_sockets=
13951    libgo_check_both=no
13952    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13953 if test "x$ac_cv_func_connect" = x""yes; then :
13954   libgo_check_socket=no
13955 else
13956   libgo_check_socket=yes
13957 fi
13958
13959    if test "$libgo_check_socket" = "yes"; then
13960      unset ac_cv_func_connect
13961      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13962 $as_echo_n "checking for main in -lsocket... " >&6; }
13963 if test "${ac_cv_lib_socket_main+set}" = set; then :
13964   $as_echo_n "(cached) " >&6
13965 else
13966   ac_check_lib_save_LIBS=$LIBS
13967 LIBS="-lsocket  $LIBS"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h.  */
13970
13971
13972 int
13973 main ()
13974 {
13975 return main ();
13976   ;
13977   return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_link "$LINENO"; then :
13981   ac_cv_lib_socket_main=yes
13982 else
13983   ac_cv_lib_socket_main=no
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext \
13986     conftest$ac_exeext conftest.$ac_ext
13987 LIBS=$ac_check_lib_save_LIBS
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13990 $as_echo "$ac_cv_lib_socket_main" >&6; }
13991 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13992   libgo_cv_lib_sockets="-lsocket"
13993 else
13994   libgo_check_both=yes
13995 fi
13996
13997    fi
13998    if test "$libgo_check_both" = "yes"; then
13999      libgo_old_libs=$LIBS
14000      LIBS="$LIBS -lsocket -lnsl"
14001      unset ac_cv_func_accept
14002      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14003 if test "x$ac_cv_func_accept" = x""yes; then :
14004   libgo_check_nsl=no
14005                     libgo_cv_lib_sockets="-lsocket -lnsl"
14006 fi
14007
14008      unset ac_cv_func_accept
14009      LIBS=$libgo_old_libs
14010    fi
14011    unset ac_cv_func_gethostbyname
14012    libgo_old_libs="$LIBS"
14013    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14014 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14015
14016 else
14017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14018 $as_echo_n "checking for main in -lnsl... " >&6; }
14019 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14020   $as_echo_n "(cached) " >&6
14021 else
14022   ac_check_lib_save_LIBS=$LIBS
14023 LIBS="-lnsl  $LIBS"
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h.  */
14026
14027
14028 int
14029 main ()
14030 {
14031 return main ();
14032   ;
14033   return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"; then :
14037   ac_cv_lib_nsl_main=yes
14038 else
14039   ac_cv_lib_nsl_main=no
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext \
14042     conftest$ac_exeext conftest.$ac_ext
14043 LIBS=$ac_check_lib_save_LIBS
14044 fi
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14046 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14047 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14048   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14049 fi
14050
14051 fi
14052
14053    unset ac_cv_func_gethostbyname
14054    LIBS=$libgo_old_libs
14055
14056 fi
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14058 $as_echo "$libgo_cv_lib_sockets" >&6; }
14059 NET_LIBS="$libgo_cv_lib_sockets"
14060
14061
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14063 $as_echo_n "checking whether -pthread is supported... " >&6; }
14064 if test "${libgo_cv_lib_pthread+set}" = set; then :
14065   $as_echo_n "(cached) " >&6
14066 else
14067   CFLAGS_hold=$CFLAGS
14068 CFLAGS="$CFLAGS -pthread"
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h.  */
14071 int i;
14072 _ACEOF
14073 if ac_fn_c_try_compile "$LINENO"; then :
14074   libgo_cv_lib_pthread=yes
14075 else
14076   libgo_cv_lib_pthread=no
14077 fi
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 CFLAGS=$CFLAGS_hold
14080 fi
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14082 $as_echo "$libgo_cv_lib_pthread" >&6; }
14083 PTHREAD_CFLAGS=
14084 if test "$libgo_cv_lib_pthread" = yes; then
14085   PTHREAD_CFLAGS=-pthread
14086 fi
14087
14088
14089 PTHREAD_LIBS=
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14091 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14092 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14093   $as_echo_n "(cached) " >&6
14094 else
14095   ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-lpthread  $LIBS"
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h.  */
14099
14100 /* Override any GCC internal prototype to avoid an error.
14101    Use char because int might match the return type of a GCC
14102    builtin and then its argument prototype would still apply.  */
14103 #ifdef __cplusplus
14104 extern "C"
14105 #endif
14106 char pthread_create ();
14107 int
14108 main ()
14109 {
14110 return pthread_create ();
14111   ;
14112   return 0;
14113 }
14114 _ACEOF
14115 if ac_fn_c_try_link "$LINENO"; then :
14116   ac_cv_lib_pthread_pthread_create=yes
14117 else
14118   ac_cv_lib_pthread_pthread_create=no
14119 fi
14120 rm -f core conftest.err conftest.$ac_objext \
14121     conftest$ac_exeext conftest.$ac_ext
14122 LIBS=$ac_check_lib_save_LIBS
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14125 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14126 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14127   PTHREAD_LIBS=-lpthread
14128 fi
14129
14130
14131
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14133 $as_echo_n "checking for library containing sched_yield... " >&6; }
14134 if test "${ac_cv_search_sched_yield+set}" = set; then :
14135   $as_echo_n "(cached) " >&6
14136 else
14137   ac_func_search_save_LIBS=$LIBS
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h.  */
14140
14141 /* Override any GCC internal prototype to avoid an error.
14142    Use char because int might match the return type of a GCC
14143    builtin and then its argument prototype would still apply.  */
14144 #ifdef __cplusplus
14145 extern "C"
14146 #endif
14147 char sched_yield ();
14148 int
14149 main ()
14150 {
14151 return sched_yield ();
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 for ac_lib in '' rt; do
14157   if test -z "$ac_lib"; then
14158     ac_res="none required"
14159   else
14160     ac_res=-l$ac_lib
14161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14162   fi
14163   if ac_fn_c_try_link "$LINENO"; then :
14164   ac_cv_search_sched_yield=$ac_res
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext \
14167     conftest$ac_exeext
14168   if test "${ac_cv_search_sched_yield+set}" = set; then :
14169   break
14170 fi
14171 done
14172 if test "${ac_cv_search_sched_yield+set}" = set; then :
14173
14174 else
14175   ac_cv_search_sched_yield=no
14176 fi
14177 rm conftest.$ac_ext
14178 LIBS=$ac_func_search_save_LIBS
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14181 $as_echo "$ac_cv_search_sched_yield" >&6; }
14182 ac_res=$ac_cv_search_sched_yield
14183 if test "$ac_res" != no; then :
14184   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14185
14186 fi
14187
14188
14189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14190 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14191 if test "${ac_cv_c_bigendian+set}" = set; then :
14192   $as_echo_n "(cached) " >&6
14193 else
14194   ac_cv_c_bigendian=unknown
14195     # See if we're dealing with a universal compiler.
14196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h.  */
14198 #ifndef __APPLE_CC__
14199                not a universal capable compiler
14200              #endif
14201              typedef int dummy;
14202
14203 _ACEOF
14204 if ac_fn_c_try_compile "$LINENO"; then :
14205
14206         # Check for potential -arch flags.  It is not universal unless
14207         # there are at least two -arch flags with different values.
14208         ac_arch=
14209         ac_prev=
14210         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14211          if test -n "$ac_prev"; then
14212            case $ac_word in
14213              i?86 | x86_64 | ppc | ppc64)
14214                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14215                  ac_arch=$ac_word
14216                else
14217                  ac_cv_c_bigendian=universal
14218                  break
14219                fi
14220                ;;
14221            esac
14222            ac_prev=
14223          elif test "x$ac_word" = "x-arch"; then
14224            ac_prev=arch
14225          fi
14226        done
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14229     if test $ac_cv_c_bigendian = unknown; then
14230       # See if sys/param.h defines the BYTE_ORDER macro.
14231       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h.  */
14233 #include <sys/types.h>
14234              #include <sys/param.h>
14235
14236 int
14237 main ()
14238 {
14239 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14240                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14241                      && LITTLE_ENDIAN)
14242               bogus endian macros
14243              #endif
14244
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 if ac_fn_c_try_compile "$LINENO"; then :
14250   # It does; now see whether it defined to BIG_ENDIAN or not.
14251          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h.  */
14253 #include <sys/types.h>
14254                 #include <sys/param.h>
14255
14256 int
14257 main ()
14258 {
14259 #if BYTE_ORDER != BIG_ENDIAN
14260                  not big endian
14261                 #endif
14262
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 if ac_fn_c_try_compile "$LINENO"; then :
14268   ac_cv_c_bigendian=yes
14269 else
14270   ac_cv_c_bigendian=no
14271 fi
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 fi
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275     fi
14276     if test $ac_cv_c_bigendian = unknown; then
14277       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h.  */
14280 #include <limits.h>
14281
14282 int
14283 main ()
14284 {
14285 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14286               bogus endian macros
14287              #endif
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 if ac_fn_c_try_compile "$LINENO"; then :
14294   # It does; now see whether it defined to _BIG_ENDIAN or not.
14295          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h.  */
14297 #include <limits.h>
14298
14299 int
14300 main ()
14301 {
14302 #ifndef _BIG_ENDIAN
14303                  not big endian
14304                 #endif
14305
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 if ac_fn_c_try_compile "$LINENO"; then :
14311   ac_cv_c_bigendian=yes
14312 else
14313   ac_cv_c_bigendian=no
14314 fi
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 fi
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318     fi
14319     if test $ac_cv_c_bigendian = unknown; then
14320       # Compile a test program.
14321       if test "$cross_compiling" = yes; then :
14322   # Try to guess by grepping values from an object file.
14323          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h.  */
14325 short int ascii_mm[] =
14326                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14327                 short int ascii_ii[] =
14328                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14329                 int use_ascii (int i) {
14330                   return ascii_mm[i] + ascii_ii[i];
14331                 }
14332                 short int ebcdic_ii[] =
14333                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14334                 short int ebcdic_mm[] =
14335                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14336                 int use_ebcdic (int i) {
14337                   return ebcdic_mm[i] + ebcdic_ii[i];
14338                 }
14339                 extern int foo;
14340
14341 int
14342 main ()
14343 {
14344 return use_ascii (foo) == use_ebcdic (foo);
14345   ;
14346   return 0;
14347 }
14348 _ACEOF
14349 if ac_fn_c_try_compile "$LINENO"; then :
14350   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14351               ac_cv_c_bigendian=yes
14352             fi
14353             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14354               if test "$ac_cv_c_bigendian" = unknown; then
14355                 ac_cv_c_bigendian=no
14356               else
14357                 # finding both strings is unlikely to happen, but who knows?
14358                 ac_cv_c_bigendian=unknown
14359               fi
14360             fi
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363 else
14364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h.  */
14366 $ac_includes_default
14367 int
14368 main ()
14369 {
14370
14371              /* Are we little or big endian?  From Harbison&Steele.  */
14372              union
14373              {
14374                long int l;
14375                char c[sizeof (long int)];
14376              } u;
14377              u.l = 1;
14378              return u.c[sizeof (long int) - 1] == 1;
14379
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 if ac_fn_c_try_run "$LINENO"; then :
14385   ac_cv_c_bigendian=no
14386 else
14387   ac_cv_c_bigendian=yes
14388 fi
14389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14390   conftest.$ac_objext conftest.beam conftest.$ac_ext
14391 fi
14392
14393     fi
14394 fi
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14396 $as_echo "$ac_cv_c_bigendian" >&6; }
14397  case $ac_cv_c_bigendian in #(
14398    yes)
14399      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14400 ;; #(
14401    no)
14402       ;; #(
14403    universal)
14404
14405 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14406
14407      ;; #(
14408    *)
14409      as_fn_error "unknown endianness
14410  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14411  esac
14412
14413
14414
14415
14416 # Check whether --with-system-libunwind was given.
14417 if test "${with_system_libunwind+set}" = set; then :
14418   withval=$with_system_libunwind;
14419 fi
14420
14421   # If system-libunwind was not specifically set, pick a default setting.
14422   if test x$with_system_libunwind = x; then
14423     case ${target} in
14424       ia64-*-hpux*) with_system_libunwind=yes ;;
14425       *) with_system_libunwind=no ;;
14426     esac
14427   fi
14428   # Based on system-libunwind and target, do we have ipinfo?
14429   if  test x$with_system_libunwind = xyes; then
14430     case ${target} in
14431       ia64-*-*) have_unwind_getipinfo=no ;;
14432       *) have_unwind_getipinfo=yes ;;
14433     esac
14434   else
14435     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14436
14437     case ${target} in
14438       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14439       *) have_unwind_getipinfo=yes ;;
14440     esac
14441
14442   fi
14443
14444   if test x$have_unwind_getipinfo = xyes; then
14445
14446 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14447
14448   fi
14449
14450
14451 # Check whether --enable-sjlj-exceptions was given.
14452 if test "${enable_sjlj_exceptions+set}" = set; then :
14453   enableval=$enable_sjlj_exceptions; case "$enableval" in
14454    yes|no|auto) ;;
14455    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14456    esac
14457 else
14458   enable_sjlj_exceptions=auto
14459 fi
14460
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14463 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14464 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14465   $as_echo_n "(cached) " >&6
14466 else
14467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h.  */
14469
14470 void bar ();
14471 void clean (int *);
14472 void foo ()
14473 {
14474   int i __attribute__ ((cleanup (clean)));
14475   bar();
14476 }
14477
14478 _ACEOF
14479 CFLAGS_hold=$CFLAGS
14480 CFLAGS="--save-temps -fexceptions"
14481 libgo_cv_lib_sjlj_exceptions=unknown
14482 if ac_fn_c_try_compile; then :
14483   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14484     libgo_cv_lib_sjlj_exceptions=yes
14485   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14486     libgo_cv_lib_sjlj_exceptions=no
14487   fi
14488 fi
14489 CFLAGS=$CFLAGS_hold
14490 rm -f conftest*
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14494 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14495
14496 if test "$enable_sjlj_exceptions" = "auto"; then
14497   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14498 fi
14499
14500 case $enable_sjlj_exceptions in
14501 yes)
14502
14503 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14504
14505   ;;
14506 no)
14507   ;;
14508 *)
14509   as_fn_error "unable to detect exception model" "$LINENO" 5
14510   ;;
14511 esac
14512
14513 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h
14514 do :
14515   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14516 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14517 eval as_val=\$$as_ac_Header
14518    if test "x$as_val" = x""yes; then :
14519   cat >>confdefs.h <<_ACEOF
14520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14521 _ACEOF
14522
14523 fi
14524
14525 done
14526
14527
14528 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14529 do :
14530   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14532 #include <sys/socket.h>
14533 #endif
14534
14535 "
14536 eval as_val=\$$as_ac_Header
14537    if test "x$as_val" = x""yes; then :
14538   cat >>confdefs.h <<_ACEOF
14539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14540 _ACEOF
14541
14542 fi
14543
14544 done
14545
14546
14547  if test "$ac_cv_header_sys_mman_h" = yes; then
14548   HAVE_SYS_MMAN_H_TRUE=
14549   HAVE_SYS_MMAN_H_FALSE='#'
14550 else
14551   HAVE_SYS_MMAN_H_TRUE='#'
14552   HAVE_SYS_MMAN_H_FALSE=
14553 fi
14554
14555
14556 for ac_func in strerror_r strsignal wait4 mincore setenv
14557 do :
14558   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14560 eval as_val=\$$as_ac_var
14561    if test "x$as_val" = x""yes; then :
14562   cat >>confdefs.h <<_ACEOF
14563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14564 _ACEOF
14565
14566 fi
14567 done
14568
14569  if test "$ac_cv_func_strerror_r" = yes; then
14570   HAVE_STRERROR_R_TRUE=
14571   HAVE_STRERROR_R_FALSE='#'
14572 else
14573   HAVE_STRERROR_R_TRUE='#'
14574   HAVE_STRERROR_R_FALSE=
14575 fi
14576
14577  if test "$ac_cv_func_wait4" = yes; then
14578   HAVE_WAIT4_TRUE=
14579   HAVE_WAIT4_FALSE='#'
14580 else
14581   HAVE_WAIT4_TRUE='#'
14582   HAVE_WAIT4_FALSE=
14583 fi
14584
14585
14586 for ac_func in epoll_create1 faccessat fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_rm_watch mkdirat mknodat openat renameat splice tee unlinkat unshare
14587 do :
14588   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14590 eval as_val=\$$as_ac_var
14591    if test "x$as_val" = x""yes; then :
14592   cat >>confdefs.h <<_ACEOF
14593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14594 _ACEOF
14595
14596 fi
14597 done
14598
14599 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14600 if test "x$ac_cv_type_loff_t" = x""yes; then :
14601
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_LOFF_T 1
14604 _ACEOF
14605
14606
14607 fi
14608
14609
14610 CFLAGS_hold="$CFLAGS"
14611 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14612 LIBS_hold="$LIBS"
14613 LIBS="$LIBS $PTHREAD_LIBS"
14614 for ac_func in sem_timedwait
14615 do :
14616   ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14617 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14618   cat >>confdefs.h <<_ACEOF
14619 #define HAVE_SEM_TIMEDWAIT 1
14620 _ACEOF
14621
14622 fi
14623 done
14624
14625 CFLAGS="$CFLAGS_hold"
14626 LIBS="$LIBS_hold"
14627
14628 LIBS_hold="$LIBS"
14629 LIBS="$LIBS $MATH_LIBS"
14630 for ac_func in matherr
14631 do :
14632   ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14633 if test "x$ac_cv_func_matherr" = x""yes; then :
14634   cat >>confdefs.h <<_ACEOF
14635 #define HAVE_MATHERR 1
14636 _ACEOF
14637
14638 fi
14639 done
14640
14641 LIBS="$LIBS_hold"
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14644 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14645 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14646   $as_echo_n "(cached) " >&6
14647 else
14648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h.  */
14650
14651 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14652 uint32 i;
14653 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14654
14655 _ACEOF
14656 if ac_fn_c_try_link "$LINENO"; then :
14657   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14658 else
14659   libgo_cv_func___sync_bool_compare_and_swap_4=no
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext \
14662     conftest$ac_exeext conftest.$ac_ext
14663 fi
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14665 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14666 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14667
14668 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14669
14670 fi
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14673 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14674 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14675   $as_echo_n "(cached) " >&6
14676 else
14677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h.  */
14679
14680 typedef unsigned int uint64  __attribute__ ((mode (DI)));
14681 uint64 i;
14682 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14683
14684 _ACEOF
14685 if ac_fn_c_try_link "$LINENO"; then :
14686   libgo_cv_func___sync_bool_compare_and_swap_8=yes
14687 else
14688   libgo_cv_func___sync_bool_compare_and_swap_8=no
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext \
14691     conftest$ac_exeext conftest.$ac_ext
14692 fi
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14694 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14695 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14696
14697 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14698
14699 fi
14700
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14702 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14703 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h.  */
14708
14709 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14710 uint32 i;
14711 int main() { return __sync_fetch_and_add (&i, 1); }
14712
14713 _ACEOF
14714 if ac_fn_c_try_link "$LINENO"; then :
14715   libgo_cv_func___sync_fetch_and_add_4=yes
14716 else
14717   libgo_cv_func___sync_fetch_and_add_4=no
14718 fi
14719 rm -f core conftest.err conftest.$ac_objext \
14720     conftest$ac_exeext conftest.$ac_ext
14721 fi
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14723 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14724 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14725
14726 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14727
14728 fi
14729
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14731 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14732 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14733   $as_echo_n "(cached) " >&6
14734 else
14735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h.  */
14737
14738 typedef unsigned int uint64  __attribute__ ((mode (DI)));
14739 uint64 i;
14740 int main() { return __sync_add_and_fetch (&i, 1); }
14741
14742 _ACEOF
14743 if ac_fn_c_try_link "$LINENO"; then :
14744   libgo_cv_func___sync_add_and_fetch_8=yes
14745 else
14746   libgo_cv_func___sync_add_and_fetch_8=no
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext \
14749     conftest$ac_exeext conftest.$ac_ext
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14752 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14753 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14754
14755 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14756
14757 fi
14758
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14760 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14761 if test "${libgo_cv_c_stringops+set}" = set; then :
14762   $as_echo_n "(cached) " >&6
14763 else
14764   CFLAGS_hold=$CFLAGS
14765 CFLAGS="$CFLAGS -minline-all-stringops"
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h.  */
14768 int i;
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771   libgo_cv_c_stringops=yes
14772 else
14773   libgo_cv_c_stringops=no
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 CFLAGS=$CFLAGS_hold
14777 fi
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14779 $as_echo "$libgo_cv_c_stringops" >&6; }
14780 STRINGOPS_FLAG=
14781 if test "$libgo_cv_c_stringops" = yes; then
14782   STRINGOPS_FLAG=-minline-all-stringops
14783 fi
14784
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14787 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14788 if test "${libgo_cv_c_fancymath+set}" = set; then :
14789   $as_echo_n "(cached) " >&6
14790 else
14791   CFLAGS_hold=$CFLAGS
14792 CFLAGS="$CFLAGS -mfancy-math-387"
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h.  */
14795 int i;
14796 _ACEOF
14797 if ac_fn_c_try_compile "$LINENO"; then :
14798   libgo_cv_c_fancymath=yes
14799 else
14800   libgo_cv_c_fancymath=no
14801 fi
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 CFLAGS=$CFLAGS_hold
14804 fi
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14806 $as_echo "$libgo_cv_c_fancymath" >&6; }
14807 MATH_FLAG=
14808 if test "$libgo_cv_c_fancymath" = yes; then
14809   MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14810 fi
14811
14812
14813 CFLAGS_hold=$CFLAGS
14814 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14815 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14816 if test "x$ac_cv_type_off64_t" = x""yes; then :
14817
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_OFF64_T 1
14820 _ACEOF
14821
14822
14823 fi
14824
14825 CFLAGS=$CFLAGS_hold
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14828 $as_echo_n "checking epoll_event size... " >&6; }
14829 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14830   $as_echo_n "(cached) " >&6
14831 else
14832   if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size"        "#include <sys/epoll.h>"; then :
14833
14834 else
14835   libgo_cv_c_epoll_event_size=0
14836 fi
14837
14838 fi
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14840 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14841 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14842
14843
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14845 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14846 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14847   $as_echo_n "(cached) " >&6
14848 else
14849   if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset"        "#include <stddef.h>
14850 #include <sys/epoll.h>"; then :
14851
14852 else
14853   libgo_cv_c_epoll_event_fd_offset=0
14854 fi
14855
14856 fi
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14858 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14859 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14860
14861
14862 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
14863 "
14864 if test "x$ac_cv_type_struct_exception" = x""yes; then :
14865   libgo_has_struct_exception=yes
14866 else
14867   libgo_has_struct_exception=no
14868 fi
14869
14870 if test "$libgo_has_struct_exception" = "yes"; then
14871
14872 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
14873
14874 fi
14875
14876 case "$target" in
14877   sparc*-*-solaris2.[89]*)
14878     libgo_cv_lib_makecontext_stack_top=yes
14879     ;;
14880   *)
14881     libgo_cv_lib_makecontext_stack_top=no
14882     ;;
14883 esac
14884 if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
14885
14886 $as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
14887
14888 fi
14889
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
14891 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
14892 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
14893   $as_echo_n "(cached) " >&6
14894 else
14895   CFLAGS_hold="$CFLAGS"
14896 CFLAGS="$PTHREAD_CFLAGS"
14897 LIBS_hold="$LIBS"
14898 LIBS="$LIBS $PTHREAD_LIBS"
14899 # The cast to long int works around a bug in the HP C Compiler
14900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14902 # This bug is HP SR number 8606223364.
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14904 $as_echo_n "checking size of void *... " >&6; }
14905 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14906   $as_echo_n "(cached) " >&6
14907 else
14908   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14909
14910 else
14911   if test "$ac_cv_type_void_p" = yes; then
14912      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14914 { as_fn_set_status 77
14915 as_fn_error "cannot compute sizeof (void *)
14916 See \`config.log' for more details." "$LINENO" 5; }; }
14917    else
14918      ac_cv_sizeof_void_p=0
14919    fi
14920 fi
14921
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14924 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14925
14926
14927
14928 cat >>confdefs.h <<_ACEOF
14929 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14930 _ACEOF
14931
14932
14933 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
14934 if test "$cross_compiling" = yes; then :
14935   case "$target:$ptr_type_size" in
14936   i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
14937     libgo_cv_lib_setcontext_clobbers_tls=yes ;;
14938   *)
14939     libgo_cv_lib_setcontext_clobbers_tls=no ;;
14940  esac
14941
14942 else
14943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h.  */
14945
14946 #include <pthread.h>
14947 #include <stdlib.h>
14948 #include <ucontext.h>
14949 #include <unistd.h>
14950
14951 __thread int tls;
14952
14953 static char stack[10 * 1024 * 1024];
14954 static ucontext_t c;
14955
14956 /* Called via makecontext/setcontext.  */
14957
14958 static void
14959 cfn (void)
14960 {
14961   exit (tls);
14962 }
14963
14964 /* Called via pthread_create.  */
14965
14966 static void *
14967 tfn (void *dummy)
14968 {
14969   /* The thread should still see this value after calling
14970      setcontext.  */
14971   tls = 0;
14972
14973   setcontext (&c);
14974
14975   /* The call to setcontext should not return.  */
14976   abort ();
14977 }
14978
14979 int
14980 main ()
14981 {
14982   pthread_t tid;
14983
14984   /* The thread should not see this value.  */
14985   tls = 1;
14986
14987   if (getcontext (&c) < 0)
14988     abort ();
14989
14990   c.uc_stack.ss_sp = stack;
14991 #ifdef MAKECONTEXT_STACK_TOP
14992   c.uc_stack.ss_sp += sizeof stack;
14993 #endif
14994   c.uc_stack.ss_flags = 0;
14995   c.uc_stack.ss_size = sizeof stack;
14996   c.uc_link = NULL;
14997   makecontext (&c, cfn, 0);
14998
14999   if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15000     abort ();
15001
15002   if (pthread_join (tid, NULL) != 0)
15003     abort ();
15004
15005   /* The thread should have called exit.  */
15006   abort ();
15007 }
15008
15009 _ACEOF
15010 if ac_fn_c_try_run "$LINENO"; then :
15011   libgo_cv_lib_setcontext_clobbers_tls=no
15012 else
15013   libgo_cv_lib_setcontext_clobbers_tls=yes
15014 fi
15015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15016   conftest.$ac_objext conftest.beam conftest.$ac_ext
15017 fi
15018
15019 CFLAGS="$CFLAGS_hold"
15020 LIBS="$LIBS_hold"
15021
15022 fi
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15024 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15025 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15026
15027 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15028
15029 fi
15030
15031 cat >confcache <<\_ACEOF
15032 # This file is a shell script that caches the results of configure
15033 # tests run on this system so they can be shared between configure
15034 # scripts and configure runs, see configure's option --config-cache.
15035 # It is not useful on other systems.  If it contains results you don't
15036 # want to keep, you may remove or edit it.
15037 #
15038 # config.status only pays attention to the cache file if you give it
15039 # the --recheck option to rerun configure.
15040 #
15041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15043 # following values.
15044
15045 _ACEOF
15046
15047 # The following way of writing the cache mishandles newlines in values,
15048 # but we know of no workaround that is simple, portable, and efficient.
15049 # So, we kill variables containing newlines.
15050 # Ultrix sh set writes to stderr and can't be redirected directly,
15051 # and sets the high bit in the cache file unless we assign to the vars.
15052 (
15053   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15054     eval ac_val=\$$ac_var
15055     case $ac_val in #(
15056     *${as_nl}*)
15057       case $ac_var in #(
15058       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15060       esac
15061       case $ac_var in #(
15062       _ | IFS | as_nl) ;; #(
15063       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15064       *) { eval $ac_var=; unset $ac_var;} ;;
15065       esac ;;
15066     esac
15067   done
15068
15069   (set) 2>&1 |
15070     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15071     *${as_nl}ac_space=\ *)
15072       # `set' does not quote correctly, so add quotes: double-quote
15073       # substitution turns \\\\ into \\, and sed turns \\ into \.
15074       sed -n \
15075         "s/'/'\\\\''/g;
15076           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15077       ;; #(
15078     *)
15079       # `set' quotes correctly as required by POSIX, so do not add quotes.
15080       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15081       ;;
15082     esac |
15083     sort
15084 ) |
15085   sed '
15086      /^ac_cv_env_/b end
15087      t clear
15088      :clear
15089      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15090      t end
15091      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15092      :end' >>confcache
15093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15094   if test -w "$cache_file"; then
15095     test "x$cache_file" != "x/dev/null" &&
15096       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15097 $as_echo "$as_me: updating cache $cache_file" >&6;}
15098     cat confcache >$cache_file
15099   else
15100     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15101 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15102   fi
15103 fi
15104 rm -f confcache
15105
15106 if test ${multilib} = yes; then
15107   multilib_arg="--enable-multilib"
15108 else
15109   multilib_arg=
15110 fi
15111
15112 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15113
15114
15115 ac_config_commands="$ac_config_commands default"
15116
15117
15118 cat >confcache <<\_ACEOF
15119 # This file is a shell script that caches the results of configure
15120 # tests run on this system so they can be shared between configure
15121 # scripts and configure runs, see configure's option --config-cache.
15122 # It is not useful on other systems.  If it contains results you don't
15123 # want to keep, you may remove or edit it.
15124 #
15125 # config.status only pays attention to the cache file if you give it
15126 # the --recheck option to rerun configure.
15127 #
15128 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15129 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15130 # following values.
15131
15132 _ACEOF
15133
15134 # The following way of writing the cache mishandles newlines in values,
15135 # but we know of no workaround that is simple, portable, and efficient.
15136 # So, we kill variables containing newlines.
15137 # Ultrix sh set writes to stderr and can't be redirected directly,
15138 # and sets the high bit in the cache file unless we assign to the vars.
15139 (
15140   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15141     eval ac_val=\$$ac_var
15142     case $ac_val in #(
15143     *${as_nl}*)
15144       case $ac_var in #(
15145       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15146 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15147       esac
15148       case $ac_var in #(
15149       _ | IFS | as_nl) ;; #(
15150       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15151       *) { eval $ac_var=; unset $ac_var;} ;;
15152       esac ;;
15153     esac
15154   done
15155
15156   (set) 2>&1 |
15157     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15158     *${as_nl}ac_space=\ *)
15159       # `set' does not quote correctly, so add quotes: double-quote
15160       # substitution turns \\\\ into \\, and sed turns \\ into \.
15161       sed -n \
15162         "s/'/'\\\\''/g;
15163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15164       ;; #(
15165     *)
15166       # `set' quotes correctly as required by POSIX, so do not add quotes.
15167       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15168       ;;
15169     esac |
15170     sort
15171 ) |
15172   sed '
15173      /^ac_cv_env_/b end
15174      t clear
15175      :clear
15176      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15177      t end
15178      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15179      :end' >>confcache
15180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15181   if test -w "$cache_file"; then
15182     test "x$cache_file" != "x/dev/null" &&
15183       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15184 $as_echo "$as_me: updating cache $cache_file" >&6;}
15185     cat confcache >$cache_file
15186   else
15187     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15189   fi
15190 fi
15191 rm -f confcache
15192
15193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15194 # Let make expand exec_prefix.
15195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15196
15197 DEFS=-DHAVE_CONFIG_H
15198
15199 ac_libobjs=
15200 ac_ltlibobjs=
15201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15202   # 1. Remove the extension, and $U if already installed.
15203   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15204   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15205   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15206   #    will be set to the directory where LIBOBJS objects are built.
15207   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15208   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15209 done
15210 LIBOBJS=$ac_libobjs
15211
15212 LTLIBOBJS=$ac_ltlibobjs
15213
15214
15215  if test -n "$EXEEXT"; then
15216   am__EXEEXT_TRUE=
15217   am__EXEEXT_FALSE='#'
15218 else
15219   am__EXEEXT_TRUE='#'
15220   am__EXEEXT_FALSE=
15221 fi
15222
15223 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15224   as_fn_error "conditional \"AMDEP\" was never defined.
15225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15226 fi
15227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15228   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15230 fi
15231 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15232   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15234 fi
15235 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15236   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238 fi
15239 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15240   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15242 fi
15243 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15244   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15246 fi
15247 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15248   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15250 fi
15251 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15252   as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15254 fi
15255 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15256   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15258 fi
15259 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15260   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15262 fi
15263 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15264   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15266 fi
15267 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15268   as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15270 fi
15271 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15272   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15274 fi
15275 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15276   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15278 fi
15279 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15280   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15282 fi
15283 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15284   as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15286 fi
15287 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15288   as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15290 fi
15291 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15292   as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15294 fi
15295 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15296   as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15298 fi
15299 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15300   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15302 fi
15303 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15304   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15306 fi
15307 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15308   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15310 fi
15311 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15312   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314 fi
15315 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15316   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318 fi
15319 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15320   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322 fi
15323
15324 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15325   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327 fi
15328 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15329   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331 fi
15332 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15333   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15335 fi
15336
15337 : ${CONFIG_STATUS=./config.status}
15338 ac_write_fail=0
15339 ac_clean_files_save=$ac_clean_files
15340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15342 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15343 as_write_fail=0
15344 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15345 #! $SHELL
15346 # Generated by $as_me.
15347 # Run this file to recreate the current configuration.
15348 # Compiler output produced by configure, useful for debugging
15349 # configure, is in config.log if it exists.
15350
15351 debug=false
15352 ac_cs_recheck=false
15353 ac_cs_silent=false
15354
15355 SHELL=\${CONFIG_SHELL-$SHELL}
15356 export SHELL
15357 _ASEOF
15358 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15359 ## -------------------- ##
15360 ## M4sh Initialization. ##
15361 ## -------------------- ##
15362
15363 # Be more Bourne compatible
15364 DUALCASE=1; export DUALCASE # for MKS sh
15365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15366   emulate sh
15367   NULLCMD=:
15368   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15369   # is contrary to our usage.  Disable this feature.
15370   alias -g '${1+"$@"}'='"$@"'
15371   setopt NO_GLOB_SUBST
15372 else
15373   case `(set -o) 2>/dev/null` in #(
15374   *posix*) :
15375     set -o posix ;; #(
15376   *) :
15377      ;;
15378 esac
15379 fi
15380
15381
15382 as_nl='
15383 '
15384 export as_nl
15385 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15386 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15389 # Prefer a ksh shell builtin over an external printf program on Solaris,
15390 # but without wasting forks for bash or zsh.
15391 if test -z "$BASH_VERSION$ZSH_VERSION" \
15392     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15393   as_echo='print -r --'
15394   as_echo_n='print -rn --'
15395 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15396   as_echo='printf %s\n'
15397   as_echo_n='printf %s'
15398 else
15399   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15400     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15401     as_echo_n='/usr/ucb/echo -n'
15402   else
15403     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15404     as_echo_n_body='eval
15405       arg=$1;
15406       case $arg in #(
15407       *"$as_nl"*)
15408         expr "X$arg" : "X\\(.*\\)$as_nl";
15409         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15410       esac;
15411       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15412     '
15413     export as_echo_n_body
15414     as_echo_n='sh -c $as_echo_n_body as_echo'
15415   fi
15416   export as_echo_body
15417   as_echo='sh -c $as_echo_body as_echo'
15418 fi
15419
15420 # The user is always right.
15421 if test "${PATH_SEPARATOR+set}" != set; then
15422   PATH_SEPARATOR=:
15423   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15424     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15425       PATH_SEPARATOR=';'
15426   }
15427 fi
15428
15429
15430 # IFS
15431 # We need space, tab and new line, in precisely that order.  Quoting is
15432 # there to prevent editors from complaining about space-tab.
15433 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15434 # splitting by setting IFS to empty value.)
15435 IFS=" ""        $as_nl"
15436
15437 # Find who we are.  Look in the path if we contain no directory separator.
15438 case $0 in #((
15439   *[\\/]* ) as_myself=$0 ;;
15440   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441 for as_dir in $PATH
15442 do
15443   IFS=$as_save_IFS
15444   test -z "$as_dir" && as_dir=.
15445     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15446   done
15447 IFS=$as_save_IFS
15448
15449      ;;
15450 esac
15451 # We did not find ourselves, most probably we were run as `sh COMMAND'
15452 # in which case we are not to be found in the path.
15453 if test "x$as_myself" = x; then
15454   as_myself=$0
15455 fi
15456 if test ! -f "$as_myself"; then
15457   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15458   exit 1
15459 fi
15460
15461 # Unset variables that we do not need and which cause bugs (e.g. in
15462 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15463 # suppresses any "Segmentation fault" message there.  '((' could
15464 # trigger a bug in pdksh 5.2.14.
15465 for as_var in BASH_ENV ENV MAIL MAILPATH
15466 do eval test x\${$as_var+set} = xset \
15467   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15468 done
15469 PS1='$ '
15470 PS2='> '
15471 PS4='+ '
15472
15473 # NLS nuisances.
15474 LC_ALL=C
15475 export LC_ALL
15476 LANGUAGE=C
15477 export LANGUAGE
15478
15479 # CDPATH.
15480 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15481
15482
15483 # as_fn_error ERROR [LINENO LOG_FD]
15484 # ---------------------------------
15485 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15486 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15487 # script with status $?, using 1 if that was 0.
15488 as_fn_error ()
15489 {
15490   as_status=$?; test $as_status -eq 0 && as_status=1
15491   if test "$3"; then
15492     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15493     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15494   fi
15495   $as_echo "$as_me: error: $1" >&2
15496   as_fn_exit $as_status
15497 } # as_fn_error
15498
15499
15500 # as_fn_set_status STATUS
15501 # -----------------------
15502 # Set $? to STATUS, without forking.
15503 as_fn_set_status ()
15504 {
15505   return $1
15506 } # as_fn_set_status
15507
15508 # as_fn_exit STATUS
15509 # -----------------
15510 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15511 as_fn_exit ()
15512 {
15513   set +e
15514   as_fn_set_status $1
15515   exit $1
15516 } # as_fn_exit
15517
15518 # as_fn_unset VAR
15519 # ---------------
15520 # Portably unset VAR.
15521 as_fn_unset ()
15522 {
15523   { eval $1=; unset $1;}
15524 }
15525 as_unset=as_fn_unset
15526 # as_fn_append VAR VALUE
15527 # ----------------------
15528 # Append the text in VALUE to the end of the definition contained in VAR. Take
15529 # advantage of any shell optimizations that allow amortized linear growth over
15530 # repeated appends, instead of the typical quadratic growth present in naive
15531 # implementations.
15532 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15533   eval 'as_fn_append ()
15534   {
15535     eval $1+=\$2
15536   }'
15537 else
15538   as_fn_append ()
15539   {
15540     eval $1=\$$1\$2
15541   }
15542 fi # as_fn_append
15543
15544 # as_fn_arith ARG...
15545 # ------------------
15546 # Perform arithmetic evaluation on the ARGs, and store the result in the
15547 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15548 # must be portable across $(()) and expr.
15549 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15550   eval 'as_fn_arith ()
15551   {
15552     as_val=$(( $* ))
15553   }'
15554 else
15555   as_fn_arith ()
15556   {
15557     as_val=`expr "$@" || test $? -eq 1`
15558   }
15559 fi # as_fn_arith
15560
15561
15562 if expr a : '\(a\)' >/dev/null 2>&1 &&
15563    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15564   as_expr=expr
15565 else
15566   as_expr=false
15567 fi
15568
15569 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15570   as_basename=basename
15571 else
15572   as_basename=false
15573 fi
15574
15575 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15576   as_dirname=dirname
15577 else
15578   as_dirname=false
15579 fi
15580
15581 as_me=`$as_basename -- "$0" ||
15582 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15583          X"$0" : 'X\(//\)$' \| \
15584          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15585 $as_echo X/"$0" |
15586     sed '/^.*\/\([^/][^/]*\)\/*$/{
15587             s//\1/
15588             q
15589           }
15590           /^X\/\(\/\/\)$/{
15591             s//\1/
15592             q
15593           }
15594           /^X\/\(\/\).*/{
15595             s//\1/
15596             q
15597           }
15598           s/.*/./; q'`
15599
15600 # Avoid depending upon Character Ranges.
15601 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15602 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15603 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15604 as_cr_digits='0123456789'
15605 as_cr_alnum=$as_cr_Letters$as_cr_digits
15606
15607 ECHO_C= ECHO_N= ECHO_T=
15608 case `echo -n x` in #(((((
15609 -n*)
15610   case `echo 'xy\c'` in
15611   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15612   xy)  ECHO_C='\c';;
15613   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15614        ECHO_T=' ';;
15615   esac;;
15616 *)
15617   ECHO_N='-n';;
15618 esac
15619
15620 rm -f conf$$ conf$$.exe conf$$.file
15621 if test -d conf$$.dir; then
15622   rm -f conf$$.dir/conf$$.file
15623 else
15624   rm -f conf$$.dir
15625   mkdir conf$$.dir 2>/dev/null
15626 fi
15627 if (echo >conf$$.file) 2>/dev/null; then
15628   if ln -s conf$$.file conf$$ 2>/dev/null; then
15629     as_ln_s='ln -s'
15630     # ... but there are two gotchas:
15631     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15632     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15633     # In both cases, we have to default to `cp -p'.
15634     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15635       as_ln_s='cp -p'
15636   elif ln conf$$.file conf$$ 2>/dev/null; then
15637     as_ln_s=ln
15638   else
15639     as_ln_s='cp -p'
15640   fi
15641 else
15642   as_ln_s='cp -p'
15643 fi
15644 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15645 rmdir conf$$.dir 2>/dev/null
15646
15647
15648 # as_fn_mkdir_p
15649 # -------------
15650 # Create "$as_dir" as a directory, including parents if necessary.
15651 as_fn_mkdir_p ()
15652 {
15653
15654   case $as_dir in #(
15655   -*) as_dir=./$as_dir;;
15656   esac
15657   test -d "$as_dir" || eval $as_mkdir_p || {
15658     as_dirs=
15659     while :; do
15660       case $as_dir in #(
15661       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15662       *) as_qdir=$as_dir;;
15663       esac
15664       as_dirs="'$as_qdir' $as_dirs"
15665       as_dir=`$as_dirname -- "$as_dir" ||
15666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15667          X"$as_dir" : 'X\(//\)[^/]' \| \
15668          X"$as_dir" : 'X\(//\)$' \| \
15669          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15670 $as_echo X"$as_dir" |
15671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15672             s//\1/
15673             q
15674           }
15675           /^X\(\/\/\)[^/].*/{
15676             s//\1/
15677             q
15678           }
15679           /^X\(\/\/\)$/{
15680             s//\1/
15681             q
15682           }
15683           /^X\(\/\).*/{
15684             s//\1/
15685             q
15686           }
15687           s/.*/./; q'`
15688       test -d "$as_dir" && break
15689     done
15690     test -z "$as_dirs" || eval "mkdir $as_dirs"
15691   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15692
15693
15694 } # as_fn_mkdir_p
15695 if mkdir -p . 2>/dev/null; then
15696   as_mkdir_p='mkdir -p "$as_dir"'
15697 else
15698   test -d ./-p && rmdir ./-p
15699   as_mkdir_p=false
15700 fi
15701
15702 if test -x / >/dev/null 2>&1; then
15703   as_test_x='test -x'
15704 else
15705   if ls -dL / >/dev/null 2>&1; then
15706     as_ls_L_option=L
15707   else
15708     as_ls_L_option=
15709   fi
15710   as_test_x='
15711     eval sh -c '\''
15712       if test -d "$1"; then
15713         test -d "$1/.";
15714       else
15715         case $1 in #(
15716         -*)set "./$1";;
15717         esac;
15718         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15719         ???[sx]*):;;*)false;;esac;fi
15720     '\'' sh
15721   '
15722 fi
15723 as_executable_p=$as_test_x
15724
15725 # Sed expression to map a string onto a valid CPP name.
15726 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15727
15728 # Sed expression to map a string onto a valid variable name.
15729 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15730
15731
15732 exec 6>&1
15733 ## ----------------------------------- ##
15734 ## Main body of $CONFIG_STATUS script. ##
15735 ## ----------------------------------- ##
15736 _ASEOF
15737 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15738
15739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15740 # Save the log message, to keep $0 and so on meaningful, and to
15741 # report actual input values of CONFIG_FILES etc. instead of their
15742 # values after options handling.
15743 ac_log="
15744 This file was extended by package-unused $as_me version-unused, which was
15745 generated by GNU Autoconf 2.64.  Invocation command line was
15746
15747   CONFIG_FILES    = $CONFIG_FILES
15748   CONFIG_HEADERS  = $CONFIG_HEADERS
15749   CONFIG_LINKS    = $CONFIG_LINKS
15750   CONFIG_COMMANDS = $CONFIG_COMMANDS
15751   $ $0 $@
15752
15753 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15754 "
15755
15756 _ACEOF
15757
15758 case $ac_config_files in *"
15759 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15760 esac
15761
15762 case $ac_config_headers in *"
15763 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15764 esac
15765
15766
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 # Files that config.status was made for.
15769 config_files="$ac_config_files"
15770 config_headers="$ac_config_headers"
15771 config_commands="$ac_config_commands"
15772
15773 _ACEOF
15774
15775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15776 ac_cs_usage="\
15777 \`$as_me' instantiates files and other configuration actions
15778 from templates according to the current configuration.  Unless the files
15779 and actions are specified as TAGs, all are instantiated by default.
15780
15781 Usage: $0 [OPTION]... [TAG]...
15782
15783   -h, --help       print this help, then exit
15784   -V, --version    print version number and configuration settings, then exit
15785   -q, --quiet, --silent
15786                    do not print progress messages
15787   -d, --debug      don't remove temporary files
15788       --recheck    update $as_me by reconfiguring in the same conditions
15789       --file=FILE[:TEMPLATE]
15790                    instantiate the configuration file FILE
15791       --header=FILE[:TEMPLATE]
15792                    instantiate the configuration header FILE
15793
15794 Configuration files:
15795 $config_files
15796
15797 Configuration headers:
15798 $config_headers
15799
15800 Configuration commands:
15801 $config_commands
15802
15803 Report bugs to the package provider."
15804
15805 _ACEOF
15806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15807 ac_cs_version="\\
15808 package-unused config.status version-unused
15809 configured by $0, generated by GNU Autoconf 2.64,
15810   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15811
15812 Copyright (C) 2009 Free Software Foundation, Inc.
15813 This config.status script is free software; the Free Software Foundation
15814 gives unlimited permission to copy, distribute and modify it."
15815
15816 ac_pwd='$ac_pwd'
15817 srcdir='$srcdir'
15818 INSTALL='$INSTALL'
15819 MKDIR_P='$MKDIR_P'
15820 AWK='$AWK'
15821 test -n "\$AWK" || AWK=awk
15822 _ACEOF
15823
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825 # The default lists apply if the user does not specify any file.
15826 ac_need_defaults=:
15827 while test $# != 0
15828 do
15829   case $1 in
15830   --*=*)
15831     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15832     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15833     ac_shift=:
15834     ;;
15835   *)
15836     ac_option=$1
15837     ac_optarg=$2
15838     ac_shift=shift
15839     ;;
15840   esac
15841
15842   case $ac_option in
15843   # Handling of the options.
15844   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15845     ac_cs_recheck=: ;;
15846   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15847     $as_echo "$ac_cs_version"; exit ;;
15848   --debug | --debu | --deb | --de | --d | -d )
15849     debug=: ;;
15850   --file | --fil | --fi | --f )
15851     $ac_shift
15852     case $ac_optarg in
15853     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15854     esac
15855     as_fn_append CONFIG_FILES " '$ac_optarg'"
15856     ac_need_defaults=false;;
15857   --header | --heade | --head | --hea )
15858     $ac_shift
15859     case $ac_optarg in
15860     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15861     esac
15862     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15863     ac_need_defaults=false;;
15864   --he | --h)
15865     # Conflict between --help and --header
15866     as_fn_error "ambiguous option: \`$1'
15867 Try \`$0 --help' for more information.";;
15868   --help | --hel | -h )
15869     $as_echo "$ac_cs_usage"; exit ;;
15870   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15871   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15872     ac_cs_silent=: ;;
15873
15874   # This is an error.
15875   -*) as_fn_error "unrecognized option: \`$1'
15876 Try \`$0 --help' for more information." ;;
15877
15878   *) as_fn_append ac_config_targets " $1"
15879      ac_need_defaults=false ;;
15880
15881   esac
15882   shift
15883 done
15884
15885 ac_configure_extra_args=
15886
15887 if $ac_cs_silent; then
15888   exec 6>/dev/null
15889   ac_configure_extra_args="$ac_configure_extra_args --silent"
15890 fi
15891
15892 _ACEOF
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894 if \$ac_cs_recheck; then
15895   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15896   shift
15897   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15898   CONFIG_SHELL='$SHELL'
15899   export CONFIG_SHELL
15900   exec "\$@"
15901 fi
15902
15903 _ACEOF
15904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905 exec 5>>config.log
15906 {
15907   echo
15908   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15909 ## Running $as_me. ##
15910 _ASBOX
15911   $as_echo "$ac_log"
15912 } >&5
15913
15914 _ACEOF
15915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916 #
15917 # INIT-COMMANDS
15918 #
15919
15920 srcdir="$srcdir"
15921 host="$host"
15922 target="$target"
15923 with_multisubdir="$with_multisubdir"
15924 with_multisrctop="$with_multisrctop"
15925 with_target_subdir="$with_target_subdir"
15926 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15927 multi_basedir="$multi_basedir"
15928 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15929 CC="$CC"
15930 CXX="$CXX"
15931 GFORTRAN="$GFORTRAN"
15932 GCJ="$GCJ"
15933 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15934
15935
15936 # The HP-UX ksh and POSIX shell print the target directory to stdout
15937 # if CDPATH is set.
15938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15939
15940 sed_quote_subst='$sed_quote_subst'
15941 double_quote_subst='$double_quote_subst'
15942 delay_variable_subst='$delay_variable_subst'
15943 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15944 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15945 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15946 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15947 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15948 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15949 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15950 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15951 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15952 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15953 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15954 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15955 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15956 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15957 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15958 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15959 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15960 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15961 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15962 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15963 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15964 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15965 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15966 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15967 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15968 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15969 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15970 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15971 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15972 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15973 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15974 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15975 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15976 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15977 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15978 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15979 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15980 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15981 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15982 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15983 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15984 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15985 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15986 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15987 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15988 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15989 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15990 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15991 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"`'
15992 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15993 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15994 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15995 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15996 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15997 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15998 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15999 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16000 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16001 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16002 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16003 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16004 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16005 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16006 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16007 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16008 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16009 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16010 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16011 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16012 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16013 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16014 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16015 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16016 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16017 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16018 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16019 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16020 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16021 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16022 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16023 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16024 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16025 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16026 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16027 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16028 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16029 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16030 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16031 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16032 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16033 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16034 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16035 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16036 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16037 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16038 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16039 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16040 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16041 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16042 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16043 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16044 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16045 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16046 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16047 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16048 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16049 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16050 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16051 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16052 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16053 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16054 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16055 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16056 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16057 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16058 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16059 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16060 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16061 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16062 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16063 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16064 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16065 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16066 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16067 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16068 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16069 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16070 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16071 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16072 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16073 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16074 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16075 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16076 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16077 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16078 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16079 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16080 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16081 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16082 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16083 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16084 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16085 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16086 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16087 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16088 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16089 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16090 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16091 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16092 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16093 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16094 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16095 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16096 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16097 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16098 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16099 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16100 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16101 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16102 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16103 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16104 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16105 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16106
16107 LTCC='$LTCC'
16108 LTCFLAGS='$LTCFLAGS'
16109 compiler='$compiler_DEFAULT'
16110
16111 # A function that is used when there is no print builtin or printf.
16112 func_fallback_echo ()
16113 {
16114   eval 'cat <<_LTECHO_EOF
16115 \$1
16116 _LTECHO_EOF'
16117 }
16118
16119 # Quote evaled strings.
16120 for var in SED \
16121 GREP \
16122 EGREP \
16123 FGREP \
16124 SHELL \
16125 ECHO \
16126 LD \
16127 NM \
16128 LN_S \
16129 lt_SP2NL \
16130 lt_NL2SP \
16131 reload_flag \
16132 OBJDUMP \
16133 deplibs_check_method \
16134 file_magic_cmd \
16135 AR \
16136 AR_FLAGS \
16137 STRIP \
16138 RANLIB \
16139 CC \
16140 CFLAGS \
16141 compiler \
16142 lt_cv_sys_global_symbol_pipe \
16143 lt_cv_sys_global_symbol_to_cdecl \
16144 lt_cv_sys_global_symbol_to_c_name_address \
16145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16146 lt_prog_compiler_no_builtin_flag \
16147 lt_prog_compiler_wl \
16148 lt_prog_compiler_pic \
16149 lt_prog_compiler_static \
16150 lt_cv_prog_compiler_c_o \
16151 need_locks \
16152 DSYMUTIL \
16153 NMEDIT \
16154 LIPO \
16155 OTOOL \
16156 OTOOL64 \
16157 shrext_cmds \
16158 export_dynamic_flag_spec \
16159 whole_archive_flag_spec \
16160 compiler_needs_object \
16161 with_gnu_ld \
16162 allow_undefined_flag \
16163 no_undefined_flag \
16164 hardcode_libdir_flag_spec \
16165 hardcode_libdir_flag_spec_ld \
16166 hardcode_libdir_separator \
16167 fix_srcfile_path \
16168 exclude_expsyms \
16169 include_expsyms \
16170 file_list_spec \
16171 variables_saved_for_relink \
16172 libname_spec \
16173 library_names_spec \
16174 soname_spec \
16175 install_override_mode \
16176 finish_eval \
16177 old_striplib \
16178 striplib \
16179 LD_GO \
16180 reload_flag_GO \
16181 compiler_GO \
16182 lt_prog_compiler_no_builtin_flag_GO \
16183 lt_prog_compiler_wl_GO \
16184 lt_prog_compiler_pic_GO \
16185 lt_prog_compiler_static_GO \
16186 lt_cv_prog_compiler_c_o_GO \
16187 export_dynamic_flag_spec_GO \
16188 whole_archive_flag_spec_GO \
16189 compiler_needs_object_GO \
16190 with_gnu_ld_GO \
16191 allow_undefined_flag_GO \
16192 no_undefined_flag_GO \
16193 hardcode_libdir_flag_spec_GO \
16194 hardcode_libdir_flag_spec_ld_GO \
16195 hardcode_libdir_separator_GO \
16196 fix_srcfile_path_GO \
16197 exclude_expsyms_GO \
16198 include_expsyms_GO \
16199 file_list_spec_GO; do
16200     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16201     *[\\\\\\\`\\"\\\$]*)
16202       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16203       ;;
16204     *)
16205       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16206       ;;
16207     esac
16208 done
16209
16210 # Double-quote double-evaled strings.
16211 for var in reload_cmds \
16212 old_postinstall_cmds \
16213 old_postuninstall_cmds \
16214 old_archive_cmds \
16215 extract_expsyms_cmds \
16216 old_archive_from_new_cmds \
16217 old_archive_from_expsyms_cmds \
16218 archive_cmds \
16219 archive_expsym_cmds \
16220 module_cmds \
16221 module_expsym_cmds \
16222 export_symbols_cmds \
16223 prelink_cmds \
16224 postinstall_cmds \
16225 postuninstall_cmds \
16226 finish_cmds \
16227 sys_lib_search_path_spec \
16228 sys_lib_dlsearch_path_spec \
16229 reload_cmds_GO \
16230 old_archive_cmds_GO \
16231 old_archive_from_new_cmds_GO \
16232 old_archive_from_expsyms_cmds_GO \
16233 archive_cmds_GO \
16234 archive_expsym_cmds_GO \
16235 module_cmds_GO \
16236 module_expsym_cmds_GO \
16237 export_symbols_cmds_GO \
16238 prelink_cmds_GO; do
16239     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16240     *[\\\\\\\`\\"\\\$]*)
16241       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16242       ;;
16243     *)
16244       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16245       ;;
16246     esac
16247 done
16248
16249 ac_aux_dir='$ac_aux_dir'
16250 xsi_shell='$xsi_shell'
16251 lt_shell_append='$lt_shell_append'
16252
16253 # See if we are running on zsh, and set the options which allow our
16254 # commands through without removal of \ escapes INIT.
16255 if test -n "\${ZSH_VERSION+set}" ; then
16256    setopt NO_GLOB_SUBST
16257 fi
16258
16259
16260     PACKAGE='$PACKAGE'
16261     VERSION='$VERSION'
16262     TIMESTAMP='$TIMESTAMP'
16263     RM='$RM'
16264     ofile='$ofile'
16265
16266
16267
16268
16269
16270
16271 # Variables needed in config.status (file generation) which aren't already
16272 # passed by autoconf.
16273 SUBDIRS="$SUBDIRS"
16274
16275
16276 _ACEOF
16277
16278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16279
16280 # Handling of arguments.
16281 for ac_config_target in $ac_config_targets
16282 do
16283   case $ac_config_target in
16284     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16285     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16286     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16287     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16288     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16289     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16290     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16291
16292   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16293   esac
16294 done
16295
16296
16297 # If the user did not use the arguments to specify the items to instantiate,
16298 # then the envvar interface is used.  Set only those that are not.
16299 # We use the long form for the default assignment because of an extremely
16300 # bizarre bug on SunOS 4.1.3.
16301 if $ac_need_defaults; then
16302   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16303   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16304   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16305 fi
16306
16307 # Have a temporary directory for convenience.  Make it in the build tree
16308 # simply because there is no reason against having it here, and in addition,
16309 # creating and moving files from /tmp can sometimes cause problems.
16310 # Hook for its removal unless debugging.
16311 # Note that there is a small window in which the directory will not be cleaned:
16312 # after its creation but before its name has been assigned to `$tmp'.
16313 $debug ||
16314 {
16315   tmp=
16316   trap 'exit_status=$?
16317   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16318 ' 0
16319   trap 'as_fn_exit 1' 1 2 13 15
16320 }
16321 # Create a (secure) tmp directory for tmp files.
16322
16323 {
16324   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16325   test -n "$tmp" && test -d "$tmp"
16326 }  ||
16327 {
16328   tmp=./conf$$-$RANDOM
16329   (umask 077 && mkdir "$tmp")
16330 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16331
16332 # Set up the scripts for CONFIG_FILES section.
16333 # No need to generate them if there are no CONFIG_FILES.
16334 # This happens for instance with `./config.status config.h'.
16335 if test -n "$CONFIG_FILES"; then
16336
16337
16338 ac_cr=`echo X | tr X '\015'`
16339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16340 # But we know of no other shell where ac_cr would be empty at this
16341 # point, so we can use a bashism as a fallback.
16342 if test "x$ac_cr" = x; then
16343   eval ac_cr=\$\'\\r\'
16344 fi
16345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16347   ac_cs_awk_cr='\r'
16348 else
16349   ac_cs_awk_cr=$ac_cr
16350 fi
16351
16352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16353 _ACEOF
16354
16355
16356 {
16357   echo "cat >conf$$subs.awk <<_ACEOF" &&
16358   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16359   echo "_ACEOF"
16360 } >conf$$subs.sh ||
16361   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16363 ac_delim='%!_!# '
16364 for ac_last_try in false false false false false :; do
16365   . ./conf$$subs.sh ||
16366     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16367
16368   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16369   if test $ac_delim_n = $ac_delim_num; then
16370     break
16371   elif $ac_last_try; then
16372     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16373   else
16374     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16375   fi
16376 done
16377 rm -f conf$$subs.sh
16378
16379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16380 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16381 _ACEOF
16382 sed -n '
16383 h
16384 s/^/S["/; s/!.*/"]=/
16385 p
16386 g
16387 s/^[^!]*!//
16388 :repl
16389 t repl
16390 s/'"$ac_delim"'$//
16391 t delim
16392 :nl
16393 h
16394 s/\(.\{148\}\).*/\1/
16395 t more1
16396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16397 p
16398 n
16399 b repl
16400 :more1
16401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16402 p
16403 g
16404 s/.\{148\}//
16405 t nl
16406 :delim
16407 h
16408 s/\(.\{148\}\).*/\1/
16409 t more2
16410 s/["\\]/\\&/g; s/^/"/; s/$/"/
16411 p
16412 b
16413 :more2
16414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16415 p
16416 g
16417 s/.\{148\}//
16418 t delim
16419 ' <conf$$subs.awk | sed '
16420 /^[^""]/{
16421   N
16422   s/\n//
16423 }
16424 ' >>$CONFIG_STATUS || ac_write_fail=1
16425 rm -f conf$$subs.awk
16426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16427 _ACAWK
16428 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16429   for (key in S) S_is_set[key] = 1
16430   FS = "\a"
16431
16432 }
16433 {
16434   line = $ 0
16435   nfields = split(line, field, "@")
16436   substed = 0
16437   len = length(field[1])
16438   for (i = 2; i < nfields; i++) {
16439     key = field[i]
16440     keylen = length(key)
16441     if (S_is_set[key]) {
16442       value = S[key]
16443       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16444       len += length(value) + length(field[++i])
16445       substed = 1
16446     } else
16447       len += 1 + keylen
16448   }
16449
16450   print line
16451 }
16452
16453 _ACAWK
16454 _ACEOF
16455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16457   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16458 else
16459   cat
16460 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16461   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16462 _ACEOF
16463
16464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16466 # trailing colons and then remove the whole line if VPATH becomes empty
16467 # (actually we leave an empty line to preserve line numbers).
16468 if test "x$srcdir" = x.; then
16469   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16470 s/:*\$(srcdir):*/:/
16471 s/:*\${srcdir}:*/:/
16472 s/:*@srcdir@:*/:/
16473 s/^\([^=]*=[     ]*\):*/\1/
16474 s/:*$//
16475 s/^[^=]*=[       ]*$//
16476 }'
16477 fi
16478
16479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480 fi # test -n "$CONFIG_FILES"
16481
16482 # Set up the scripts for CONFIG_HEADERS section.
16483 # No need to generate them if there are no CONFIG_HEADERS.
16484 # This happens for instance with `./config.status Makefile'.
16485 if test -n "$CONFIG_HEADERS"; then
16486 cat >"$tmp/defines.awk" <<\_ACAWK ||
16487 BEGIN {
16488 _ACEOF
16489
16490 # Transform confdefs.h into an awk script `defines.awk', embedded as
16491 # here-document in config.status, that substitutes the proper values into
16492 # config.h.in to produce config.h.
16493
16494 # Create a delimiter string that does not exist in confdefs.h, to ease
16495 # handling of long lines.
16496 ac_delim='%!_!# '
16497 for ac_last_try in false false :; do
16498   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16499   if test -z "$ac_t"; then
16500     break
16501   elif $ac_last_try; then
16502     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16503   else
16504     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16505   fi
16506 done
16507
16508 # For the awk script, D is an array of macro values keyed by name,
16509 # likewise P contains macro parameters if any.  Preserve backslash
16510 # newline sequences.
16511
16512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16513 sed -n '
16514 s/.\{148\}/&'"$ac_delim"'/g
16515 t rset
16516 :rset
16517 s/^[     ]*#[    ]*define[       ][      ]*/ /
16518 t def
16519 d
16520 :def
16521 s/\\$//
16522 t bsnl
16523 s/["\\]/\\&/g
16524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16525 D["\1"]=" \3"/p
16526 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16527 d
16528 :bsnl
16529 s/["\\]/\\&/g
16530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16531 D["\1"]=" \3\\\\\\n"\\/p
16532 t cont
16533 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16534 t cont
16535 d
16536 :cont
16537 n
16538 s/.\{148\}/&'"$ac_delim"'/g
16539 t clear
16540 :clear
16541 s/\\$//
16542 t bsnlc
16543 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16544 d
16545 :bsnlc
16546 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16547 b cont
16548 ' <confdefs.h | sed '
16549 s/'"$ac_delim"'/"\\\
16550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16551
16552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16553   for (key in D) D_is_set[key] = 1
16554   FS = "\a"
16555 }
16556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16557   line = \$ 0
16558   split(line, arg, " ")
16559   if (arg[1] == "#") {
16560     defundef = arg[2]
16561     mac1 = arg[3]
16562   } else {
16563     defundef = substr(arg[1], 2)
16564     mac1 = arg[2]
16565   }
16566   split(mac1, mac2, "(") #)
16567   macro = mac2[1]
16568   prefix = substr(line, 1, index(line, defundef) - 1)
16569   if (D_is_set[macro]) {
16570     # Preserve the white space surrounding the "#".
16571     print prefix "define", macro P[macro] D[macro]
16572     next
16573   } else {
16574     # Replace #undef with comments.  This is necessary, for example,
16575     # in the case of _POSIX_SOURCE, which is predefined and required
16576     # on some systems where configure will not decide to define it.
16577     if (defundef == "undef") {
16578       print "/*", prefix defundef, macro, "*/"
16579       next
16580     }
16581   }
16582 }
16583 { print }
16584 _ACAWK
16585 _ACEOF
16586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16587   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16588 fi # test -n "$CONFIG_HEADERS"
16589
16590
16591 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16592 shift
16593 for ac_tag
16594 do
16595   case $ac_tag in
16596   :[FHLC]) ac_mode=$ac_tag; continue;;
16597   esac
16598   case $ac_mode$ac_tag in
16599   :[FHL]*:*);;
16600   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16601   :[FH]-) ac_tag=-:-;;
16602   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16603   esac
16604   ac_save_IFS=$IFS
16605   IFS=:
16606   set x $ac_tag
16607   IFS=$ac_save_IFS
16608   shift
16609   ac_file=$1
16610   shift
16611
16612   case $ac_mode in
16613   :L) ac_source=$1;;
16614   :[FH])
16615     ac_file_inputs=
16616     for ac_f
16617     do
16618       case $ac_f in
16619       -) ac_f="$tmp/stdin";;
16620       *) # Look for the file first in the build tree, then in the source tree
16621          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16622          # because $ac_f cannot contain `:'.
16623          test -f "$ac_f" ||
16624            case $ac_f in
16625            [\\/$]*) false;;
16626            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16627            esac ||
16628            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16629       esac
16630       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16631       as_fn_append ac_file_inputs " '$ac_f'"
16632     done
16633
16634     # Let's still pretend it is `configure' which instantiates (i.e., don't
16635     # use $as_me), people would be surprised to read:
16636     #    /* config.h.  Generated by config.status.  */
16637     configure_input='Generated from '`
16638           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16639         `' by configure.'
16640     if test x"$ac_file" != x-; then
16641       configure_input="$ac_file.  $configure_input"
16642       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16643 $as_echo "$as_me: creating $ac_file" >&6;}
16644     fi
16645     # Neutralize special characters interpreted by sed in replacement strings.
16646     case $configure_input in #(
16647     *\&* | *\|* | *\\* )
16648        ac_sed_conf_input=`$as_echo "$configure_input" |
16649        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16650     *) ac_sed_conf_input=$configure_input;;
16651     esac
16652
16653     case $ac_tag in
16654     *:-:* | *:-) cat >"$tmp/stdin" \
16655       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16656     esac
16657     ;;
16658   esac
16659
16660   ac_dir=`$as_dirname -- "$ac_file" ||
16661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16662          X"$ac_file" : 'X\(//\)[^/]' \| \
16663          X"$ac_file" : 'X\(//\)$' \| \
16664          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16665 $as_echo X"$ac_file" |
16666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16667             s//\1/
16668             q
16669           }
16670           /^X\(\/\/\)[^/].*/{
16671             s//\1/
16672             q
16673           }
16674           /^X\(\/\/\)$/{
16675             s//\1/
16676             q
16677           }
16678           /^X\(\/\).*/{
16679             s//\1/
16680             q
16681           }
16682           s/.*/./; q'`
16683   as_dir="$ac_dir"; as_fn_mkdir_p
16684   ac_builddir=.
16685
16686 case "$ac_dir" in
16687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16688 *)
16689   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16690   # A ".." for each directory in $ac_dir_suffix.
16691   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16692   case $ac_top_builddir_sub in
16693   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16694   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16695   esac ;;
16696 esac
16697 ac_abs_top_builddir=$ac_pwd
16698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16699 # for backward compatibility:
16700 ac_top_builddir=$ac_top_build_prefix
16701
16702 case $srcdir in
16703   .)  # We are building in place.
16704     ac_srcdir=.
16705     ac_top_srcdir=$ac_top_builddir_sub
16706     ac_abs_top_srcdir=$ac_pwd ;;
16707   [\\/]* | ?:[\\/]* )  # Absolute name.
16708     ac_srcdir=$srcdir$ac_dir_suffix;
16709     ac_top_srcdir=$srcdir
16710     ac_abs_top_srcdir=$srcdir ;;
16711   *) # Relative name.
16712     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16713     ac_top_srcdir=$ac_top_build_prefix$srcdir
16714     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16715 esac
16716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16717
16718
16719   case $ac_mode in
16720   :F)
16721   #
16722   # CONFIG_FILE
16723   #
16724
16725   case $INSTALL in
16726   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16727   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16728   esac
16729   ac_MKDIR_P=$MKDIR_P
16730   case $MKDIR_P in
16731   [\\/$]* | ?:[\\/]* ) ;;
16732   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16733   esac
16734 _ACEOF
16735
16736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16737 # If the template does not know about datarootdir, expand it.
16738 # FIXME: This hack should be removed a few years after 2.60.
16739 ac_datarootdir_hack=; ac_datarootdir_seen=
16740 ac_sed_dataroot='
16741 /datarootdir/ {
16742   p
16743   q
16744 }
16745 /@datadir@/p
16746 /@docdir@/p
16747 /@infodir@/p
16748 /@localedir@/p
16749 /@mandir@/p'
16750 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16751 *datarootdir*) ac_datarootdir_seen=yes;;
16752 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16753   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16754 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16755 _ACEOF
16756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16757   ac_datarootdir_hack='
16758   s&@datadir@&$datadir&g
16759   s&@docdir@&$docdir&g
16760   s&@infodir@&$infodir&g
16761   s&@localedir@&$localedir&g
16762   s&@mandir@&$mandir&g
16763   s&\\\${datarootdir}&$datarootdir&g' ;;
16764 esac
16765 _ACEOF
16766
16767 # Neutralize VPATH when `$srcdir' = `.'.
16768 # Shell code in configure.ac might set extrasub.
16769 # FIXME: do we really want to maintain this feature?
16770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16771 ac_sed_extra="$ac_vpsub
16772 $extrasub
16773 _ACEOF
16774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16775 :t
16776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16777 s|@configure_input@|$ac_sed_conf_input|;t t
16778 s&@top_builddir@&$ac_top_builddir_sub&;t t
16779 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16780 s&@srcdir@&$ac_srcdir&;t t
16781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16782 s&@top_srcdir@&$ac_top_srcdir&;t t
16783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16784 s&@builddir@&$ac_builddir&;t t
16785 s&@abs_builddir@&$ac_abs_builddir&;t t
16786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16787 s&@INSTALL@&$ac_INSTALL&;t t
16788 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16789 $ac_datarootdir_hack
16790 "
16791 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16792   || as_fn_error "could not create $ac_file" "$LINENO" 5
16793
16794 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16795   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16796   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16797   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16798 which seems to be undefined.  Please make sure it is defined." >&5
16799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16800 which seems to be undefined.  Please make sure it is defined." >&2;}
16801
16802   rm -f "$tmp/stdin"
16803   case $ac_file in
16804   -) cat "$tmp/out" && rm -f "$tmp/out";;
16805   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16806   esac \
16807   || as_fn_error "could not create $ac_file" "$LINENO" 5
16808  ;;
16809   :H)
16810   #
16811   # CONFIG_HEADER
16812   #
16813   if test x"$ac_file" != x-; then
16814     {
16815       $as_echo "/* $configure_input  */" \
16816       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16817     } >"$tmp/config.h" \
16818       || as_fn_error "could not create $ac_file" "$LINENO" 5
16819     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16820       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16822     else
16823       rm -f "$ac_file"
16824       mv "$tmp/config.h" "$ac_file" \
16825         || as_fn_error "could not create $ac_file" "$LINENO" 5
16826     fi
16827   else
16828     $as_echo "/* $configure_input  */" \
16829       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16830       || as_fn_error "could not create -" "$LINENO" 5
16831   fi
16832 # Compute "$ac_file"'s index in $config_headers.
16833 _am_arg="$ac_file"
16834 _am_stamp_count=1
16835 for _am_header in $config_headers :; do
16836   case $_am_header in
16837     $_am_arg | $_am_arg:* )
16838       break ;;
16839     * )
16840       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16841   esac
16842 done
16843 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16844 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16845          X"$_am_arg" : 'X\(//\)[^/]' \| \
16846          X"$_am_arg" : 'X\(//\)$' \| \
16847          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16848 $as_echo X"$_am_arg" |
16849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16850             s//\1/
16851             q
16852           }
16853           /^X\(\/\/\)[^/].*/{
16854             s//\1/
16855             q
16856           }
16857           /^X\(\/\/\)$/{
16858             s//\1/
16859             q
16860           }
16861           /^X\(\/\).*/{
16862             s//\1/
16863             q
16864           }
16865           s/.*/./; q'`/stamp-h$_am_stamp_count
16866  ;;
16867
16868   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16869 $as_echo "$as_me: executing $ac_file commands" >&6;}
16870  ;;
16871   esac
16872
16873
16874   case $ac_file$ac_mode in
16875     "default-1":C)
16876 # Only add multilib support code if we just rebuilt the top-level
16877 # Makefile.
16878 case " $CONFIG_FILES " in
16879  *" Makefile "*)
16880    ac_file=Makefile . ${multi_basedir}/config-ml.in
16881    ;;
16882 esac ;;
16883     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16884   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16885   # are listed without --file.  Let's play safe and only enable the eval
16886   # if we detect the quoting.
16887   case $CONFIG_FILES in
16888   *\'*) eval set x "$CONFIG_FILES" ;;
16889   *)   set x $CONFIG_FILES ;;
16890   esac
16891   shift
16892   for mf
16893   do
16894     # Strip MF so we end up with the name of the file.
16895     mf=`echo "$mf" | sed -e 's/:.*$//'`
16896     # Check whether this is an Automake generated Makefile or not.
16897     # We used to match only the files named `Makefile.in', but
16898     # some people rename them; so instead we look at the file content.
16899     # Grep'ing the first line is not enough: some people post-process
16900     # each Makefile.in and add a new line on top of each file to say so.
16901     # Grep'ing the whole file is not good either: AIX grep has a line
16902     # limit of 2048, but all sed's we know have understand at least 4000.
16903     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16904       dirpart=`$as_dirname -- "$mf" ||
16905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906          X"$mf" : 'X\(//\)[^/]' \| \
16907          X"$mf" : 'X\(//\)$' \| \
16908          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16909 $as_echo X"$mf" |
16910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16911             s//\1/
16912             q
16913           }
16914           /^X\(\/\/\)[^/].*/{
16915             s//\1/
16916             q
16917           }
16918           /^X\(\/\/\)$/{
16919             s//\1/
16920             q
16921           }
16922           /^X\(\/\).*/{
16923             s//\1/
16924             q
16925           }
16926           s/.*/./; q'`
16927     else
16928       continue
16929     fi
16930     # Extract the definition of DEPDIR, am__include, and am__quote
16931     # from the Makefile without running `make'.
16932     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16933     test -z "$DEPDIR" && continue
16934     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16935     test -z "am__include" && continue
16936     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16937     # When using ansi2knr, U may be empty or an underscore; expand it
16938     U=`sed -n 's/^U = //p' < "$mf"`
16939     # Find all dependency output files, they are included files with
16940     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16941     # simplest approach to changing $(DEPDIR) to its actual value in the
16942     # expansion.
16943     for file in `sed -n "
16944       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16945          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16946       # Make sure the directory exists.
16947       test -f "$dirpart/$file" && continue
16948       fdir=`$as_dirname -- "$file" ||
16949 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16950          X"$file" : 'X\(//\)[^/]' \| \
16951          X"$file" : 'X\(//\)$' \| \
16952          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16953 $as_echo X"$file" |
16954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16955             s//\1/
16956             q
16957           }
16958           /^X\(\/\/\)[^/].*/{
16959             s//\1/
16960             q
16961           }
16962           /^X\(\/\/\)$/{
16963             s//\1/
16964             q
16965           }
16966           /^X\(\/\).*/{
16967             s//\1/
16968             q
16969           }
16970           s/.*/./; q'`
16971       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16972       # echo "creating $dirpart/$file"
16973       echo '# dummy' > "$dirpart/$file"
16974     done
16975   done
16976 }
16977  ;;
16978     "libtool":C)
16979
16980     # See if we are running on zsh, and set the options which allow our
16981     # commands through without removal of \ escapes.
16982     if test -n "${ZSH_VERSION+set}" ; then
16983       setopt NO_GLOB_SUBST
16984     fi
16985
16986     cfgfile="${ofile}T"
16987     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16988     $RM "$cfgfile"
16989
16990     cat <<_LT_EOF >> "$cfgfile"
16991 #! $SHELL
16992
16993 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16994 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16995 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16996 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16997 #
16998 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16999 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17000 #   Written by Gordon Matzigkeit, 1996
17001 #
17002 #   This file is part of GNU Libtool.
17003 #
17004 # GNU Libtool is free software; you can redistribute it and/or
17005 # modify it under the terms of the GNU General Public License as
17006 # published by the Free Software Foundation; either version 2 of
17007 # the License, or (at your option) any later version.
17008 #
17009 # As a special exception to the GNU General Public License,
17010 # if you distribute this file as part of a program or library that
17011 # is built using GNU Libtool, you may include this file under the
17012 # same distribution terms that you use for the rest of that program.
17013 #
17014 # GNU Libtool is distributed in the hope that it will be useful,
17015 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17017 # GNU General Public License for more details.
17018 #
17019 # You should have received a copy of the GNU General Public License
17020 # along with GNU Libtool; see the file COPYING.  If not, a copy
17021 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17022 # obtained by writing to the Free Software Foundation, Inc.,
17023 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17024
17025
17026 # The names of the tagged configurations supported by this script.
17027 available_tags="GO "
17028
17029 # ### BEGIN LIBTOOL CONFIG
17030
17031 # A sed program that does not truncate output.
17032 SED=$lt_SED
17033
17034 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17035 Xsed="\$SED -e 1s/^X//"
17036
17037 # A grep program that handles long lines.
17038 GREP=$lt_GREP
17039
17040 # An ERE matcher.
17041 EGREP=$lt_EGREP
17042
17043 # A literal string matcher.
17044 FGREP=$lt_FGREP
17045
17046 # Shell to use when invoking shell scripts.
17047 SHELL=$lt_SHELL
17048
17049 # An echo program that protects backslashes.
17050 ECHO=$lt_ECHO
17051
17052 # Which release of libtool.m4 was used?
17053 macro_version=$macro_version
17054 macro_revision=$macro_revision
17055
17056 # Whether or not to build shared libraries.
17057 build_libtool_libs=$enable_shared
17058
17059 # Whether or not to build static libraries.
17060 build_old_libs=$enable_static
17061
17062 # What type of objects to build.
17063 pic_mode=$pic_mode
17064
17065 # Whether or not to optimize for fast installation.
17066 fast_install=$enable_fast_install
17067
17068 # The host system.
17069 host_alias=$host_alias
17070 host=$host
17071 host_os=$host_os
17072
17073 # The build system.
17074 build_alias=$build_alias
17075 build=$build
17076 build_os=$build_os
17077
17078 # A BSD- or MS-compatible name lister.
17079 NM=$lt_NM
17080
17081 # Whether we need soft or hard links.
17082 LN_S=$lt_LN_S
17083
17084 # What is the maximum length of a command?
17085 max_cmd_len=$max_cmd_len
17086
17087 # Object file suffix (normally "o").
17088 objext=$ac_objext
17089
17090 # Executable file suffix (normally "").
17091 exeext=$exeext
17092
17093 # whether the shell understands "unset".
17094 lt_unset=$lt_unset
17095
17096 # turn spaces into newlines.
17097 SP2NL=$lt_lt_SP2NL
17098
17099 # turn newlines into spaces.
17100 NL2SP=$lt_lt_NL2SP
17101
17102 # An object symbol dumper.
17103 OBJDUMP=$lt_OBJDUMP
17104
17105 # Method to check whether dependent libraries are shared objects.
17106 deplibs_check_method=$lt_deplibs_check_method
17107
17108 # Command to use when deplibs_check_method == "file_magic".
17109 file_magic_cmd=$lt_file_magic_cmd
17110
17111 # The archiver.
17112 AR=$lt_AR
17113 AR_FLAGS=$lt_AR_FLAGS
17114
17115 # A symbol stripping program.
17116 STRIP=$lt_STRIP
17117
17118 # Commands used to install an old-style archive.
17119 RANLIB=$lt_RANLIB
17120 old_postinstall_cmds=$lt_old_postinstall_cmds
17121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17122
17123 # Whether to use a lock for old archive extraction.
17124 lock_old_archive_extraction=$lock_old_archive_extraction
17125
17126 # A C compiler.
17127 LTCC=$lt_CC
17128
17129 # LTCC compiler flags.
17130 LTCFLAGS=$lt_CFLAGS
17131
17132 # Take the output of nm and produce a listing of raw symbols and C names.
17133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17134
17135 # Transform the output of nm in a proper C declaration.
17136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17137
17138 # Transform the output of nm in a C name address pair.
17139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17140
17141 # Transform the output of nm in a C name address pair when lib prefix is needed.
17142 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17143
17144 # The name of the directory that contains temporary libtool files.
17145 objdir=$objdir
17146
17147 # Used to examine libraries when file_magic_cmd begins with "file".
17148 MAGIC_CMD=$MAGIC_CMD
17149
17150 # Must we lock files when doing compilation?
17151 need_locks=$lt_need_locks
17152
17153 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17154 DSYMUTIL=$lt_DSYMUTIL
17155
17156 # Tool to change global to local symbols on Mac OS X.
17157 NMEDIT=$lt_NMEDIT
17158
17159 # Tool to manipulate fat objects and archives on Mac OS X.
17160 LIPO=$lt_LIPO
17161
17162 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17163 OTOOL=$lt_OTOOL
17164
17165 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17166 OTOOL64=$lt_OTOOL64
17167
17168 # Old archive suffix (normally "a").
17169 libext=$libext
17170
17171 # Shared library suffix (normally ".so").
17172 shrext_cmds=$lt_shrext_cmds
17173
17174 # The commands to extract the exported symbol list from a shared archive.
17175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17176
17177 # Variables whose values should be saved in libtool wrapper scripts and
17178 # restored at link time.
17179 variables_saved_for_relink=$lt_variables_saved_for_relink
17180
17181 # Do we need the "lib" prefix for modules?
17182 need_lib_prefix=$need_lib_prefix
17183
17184 # Do we need a version for libraries?
17185 need_version=$need_version
17186
17187 # Library versioning type.
17188 version_type=$version_type
17189
17190 # Shared library runtime path variable.
17191 runpath_var=$runpath_var
17192
17193 # Shared library path variable.
17194 shlibpath_var=$shlibpath_var
17195
17196 # Is shlibpath searched before the hard-coded library search path?
17197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17198
17199 # Format of library name prefix.
17200 libname_spec=$lt_libname_spec
17201
17202 # List of archive names.  First name is the real one, the rest are links.
17203 # The last name is the one that the linker finds with -lNAME
17204 library_names_spec=$lt_library_names_spec
17205
17206 # The coded name of the library, if different from the real name.
17207 soname_spec=$lt_soname_spec
17208
17209 # Permission mode override for installation of shared libraries.
17210 install_override_mode=$lt_install_override_mode
17211
17212 # Command to use after installation of a shared archive.
17213 postinstall_cmds=$lt_postinstall_cmds
17214
17215 # Command to use after uninstallation of a shared archive.
17216 postuninstall_cmds=$lt_postuninstall_cmds
17217
17218 # Commands used to finish a libtool library installation in a directory.
17219 finish_cmds=$lt_finish_cmds
17220
17221 # As "finish_cmds", except a single script fragment to be evaled but
17222 # not shown.
17223 finish_eval=$lt_finish_eval
17224
17225 # Whether we should hardcode library paths into libraries.
17226 hardcode_into_libs=$hardcode_into_libs
17227
17228 # Compile-time system search path for libraries.
17229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17230
17231 # Run-time system search path for libraries.
17232 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17233
17234 # Whether dlopen is supported.
17235 dlopen_support=$enable_dlopen
17236
17237 # Whether dlopen of programs is supported.
17238 dlopen_self=$enable_dlopen_self
17239
17240 # Whether dlopen of statically linked programs is supported.
17241 dlopen_self_static=$enable_dlopen_self_static
17242
17243 # Commands to strip libraries.
17244 old_striplib=$lt_old_striplib
17245 striplib=$lt_striplib
17246
17247
17248 # The linker used to build libraries.
17249 LD=$lt_LD
17250
17251 # How to create reloadable object files.
17252 reload_flag=$lt_reload_flag
17253 reload_cmds=$lt_reload_cmds
17254
17255 # Commands used to build an old-style archive.
17256 old_archive_cmds=$lt_old_archive_cmds
17257
17258 # A language specific compiler.
17259 CC=$lt_compiler
17260
17261 # Is the compiler the GNU compiler?
17262 with_gcc=$GCC
17263
17264 # Compiler flag to turn off builtin functions.
17265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17266
17267 # How to pass a linker flag through the compiler.
17268 wl=$lt_lt_prog_compiler_wl
17269
17270 # Additional compiler flags for building library objects.
17271 pic_flag=$lt_lt_prog_compiler_pic
17272
17273 # Compiler flag to prevent dynamic linking.
17274 link_static_flag=$lt_lt_prog_compiler_static
17275
17276 # Does compiler simultaneously support -c and -o options?
17277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17278
17279 # Whether or not to add -lc for building shared libraries.
17280 build_libtool_need_lc=$archive_cmds_need_lc
17281
17282 # Whether or not to disallow shared libs when runtime libs are static.
17283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17284
17285 # Compiler flag to allow reflexive dlopens.
17286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17287
17288 # Compiler flag to generate shared objects directly from archives.
17289 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17290
17291 # Whether the compiler copes with passing no objects directly.
17292 compiler_needs_object=$lt_compiler_needs_object
17293
17294 # Create an old-style archive from a shared archive.
17295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17296
17297 # Create a temporary old-style archive to link instead of a shared archive.
17298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17299
17300 # Commands used to build a shared archive.
17301 archive_cmds=$lt_archive_cmds
17302 archive_expsym_cmds=$lt_archive_expsym_cmds
17303
17304 # Commands used to build a loadable module if different from building
17305 # a shared archive.
17306 module_cmds=$lt_module_cmds
17307 module_expsym_cmds=$lt_module_expsym_cmds
17308
17309 # Whether we are building with GNU ld or not.
17310 with_gnu_ld=$lt_with_gnu_ld
17311
17312 # Flag that allows shared libraries with undefined symbols to be built.
17313 allow_undefined_flag=$lt_allow_undefined_flag
17314
17315 # Flag that enforces no undefined symbols.
17316 no_undefined_flag=$lt_no_undefined_flag
17317
17318 # Flag to hardcode \$libdir into a binary during linking.
17319 # This must work even if \$libdir does not exist
17320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17321
17322 # If ld is used when linking, flag to hardcode \$libdir into a binary
17323 # during linking.  This must work even if \$libdir does not exist.
17324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17325
17326 # Whether we need a single "-rpath" flag with a separated argument.
17327 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17328
17329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17330 # DIR into the resulting binary.
17331 hardcode_direct=$hardcode_direct
17332
17333 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17334 # DIR into the resulting binary and the resulting library dependency is
17335 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17336 # library is relocated.
17337 hardcode_direct_absolute=$hardcode_direct_absolute
17338
17339 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17340 # into the resulting binary.
17341 hardcode_minus_L=$hardcode_minus_L
17342
17343 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17344 # into the resulting binary.
17345 hardcode_shlibpath_var=$hardcode_shlibpath_var
17346
17347 # Set to "yes" if building a shared library automatically hardcodes DIR
17348 # into the library and all subsequent libraries and executables linked
17349 # against it.
17350 hardcode_automatic=$hardcode_automatic
17351
17352 # Set to yes if linker adds runtime paths of dependent libraries
17353 # to runtime path list.
17354 inherit_rpath=$inherit_rpath
17355
17356 # Whether libtool must link a program against all its dependency libraries.
17357 link_all_deplibs=$link_all_deplibs
17358
17359 # Fix the shell variable \$srcfile for the compiler.
17360 fix_srcfile_path=$lt_fix_srcfile_path
17361
17362 # Set to "yes" if exported symbols are required.
17363 always_export_symbols=$always_export_symbols
17364
17365 # The commands to list exported symbols.
17366 export_symbols_cmds=$lt_export_symbols_cmds
17367
17368 # Symbols that should not be listed in the preloaded symbols.
17369 exclude_expsyms=$lt_exclude_expsyms
17370
17371 # Symbols that must always be exported.
17372 include_expsyms=$lt_include_expsyms
17373
17374 # Commands necessary for linking programs (against libraries) with templates.
17375 prelink_cmds=$lt_prelink_cmds
17376
17377 # Specify filename containing input files.
17378 file_list_spec=$lt_file_list_spec
17379
17380 # How to hardcode a shared library path into an executable.
17381 hardcode_action=$hardcode_action
17382
17383 # ### END LIBTOOL CONFIG
17384
17385 _LT_EOF
17386
17387   case $host_os in
17388   aix3*)
17389     cat <<\_LT_EOF >> "$cfgfile"
17390 # AIX sometimes has problems with the GCC collect2 program.  For some
17391 # reason, if we set the COLLECT_NAMES environment variable, the problems
17392 # vanish in a puff of smoke.
17393 if test "X${COLLECT_NAMES+set}" != Xset; then
17394   COLLECT_NAMES=
17395   export COLLECT_NAMES
17396 fi
17397 _LT_EOF
17398     ;;
17399   esac
17400
17401
17402 ltmain="$ac_aux_dir/ltmain.sh"
17403
17404
17405   # We use sed instead of cat because bash on DJGPP gets confused if
17406   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17407   # text mode, it properly converts lines to CR/LF.  This bash problem
17408   # is reportedly fixed, but why not run on old versions too?
17409   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17410     || (rm -f "$cfgfile"; exit 1)
17411
17412   case $xsi_shell in
17413   yes)
17414     cat << \_LT_EOF >> "$cfgfile"
17415
17416 # func_dirname file append nondir_replacement
17417 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17418 # otherwise set result to NONDIR_REPLACEMENT.
17419 func_dirname ()
17420 {
17421   case ${1} in
17422     */*) func_dirname_result="${1%/*}${2}" ;;
17423     *  ) func_dirname_result="${3}" ;;
17424   esac
17425 }
17426
17427 # func_basename file
17428 func_basename ()
17429 {
17430   func_basename_result="${1##*/}"
17431 }
17432
17433 # func_dirname_and_basename file append nondir_replacement
17434 # perform func_basename and func_dirname in a single function
17435 # call:
17436 #   dirname:  Compute the dirname of FILE.  If nonempty,
17437 #             add APPEND to the result, otherwise set result
17438 #             to NONDIR_REPLACEMENT.
17439 #             value returned in "$func_dirname_result"
17440 #   basename: Compute filename of FILE.
17441 #             value retuned in "$func_basename_result"
17442 # Implementation must be kept synchronized with func_dirname
17443 # and func_basename. For efficiency, we do not delegate to
17444 # those functions but instead duplicate the functionality here.
17445 func_dirname_and_basename ()
17446 {
17447   case ${1} in
17448     */*) func_dirname_result="${1%/*}${2}" ;;
17449     *  ) func_dirname_result="${3}" ;;
17450   esac
17451   func_basename_result="${1##*/}"
17452 }
17453
17454 # func_stripname prefix suffix name
17455 # strip PREFIX and SUFFIX off of NAME.
17456 # PREFIX and SUFFIX must not contain globbing or regex special
17457 # characters, hashes, percent signs, but SUFFIX may contain a leading
17458 # dot (in which case that matches only a dot).
17459 func_stripname ()
17460 {
17461   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17462   # positional parameters, so assign one to ordinary parameter first.
17463   func_stripname_result=${3}
17464   func_stripname_result=${func_stripname_result#"${1}"}
17465   func_stripname_result=${func_stripname_result%"${2}"}
17466 }
17467
17468 # func_opt_split
17469 func_opt_split ()
17470 {
17471   func_opt_split_opt=${1%%=*}
17472   func_opt_split_arg=${1#*=}
17473 }
17474
17475 # func_lo2o object
17476 func_lo2o ()
17477 {
17478   case ${1} in
17479     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17480     *)    func_lo2o_result=${1} ;;
17481   esac
17482 }
17483
17484 # func_xform libobj-or-source
17485 func_xform ()
17486 {
17487   func_xform_result=${1%.*}.lo
17488 }
17489
17490 # func_arith arithmetic-term...
17491 func_arith ()
17492 {
17493   func_arith_result=$(( $* ))
17494 }
17495
17496 # func_len string
17497 # STRING may not start with a hyphen.
17498 func_len ()
17499 {
17500   func_len_result=${#1}
17501 }
17502
17503 _LT_EOF
17504     ;;
17505   *) # Bourne compatible functions.
17506     cat << \_LT_EOF >> "$cfgfile"
17507
17508 # func_dirname file append nondir_replacement
17509 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17510 # otherwise set result to NONDIR_REPLACEMENT.
17511 func_dirname ()
17512 {
17513   # Extract subdirectory from the argument.
17514   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17515   if test "X$func_dirname_result" = "X${1}"; then
17516     func_dirname_result="${3}"
17517   else
17518     func_dirname_result="$func_dirname_result${2}"
17519   fi
17520 }
17521
17522 # func_basename file
17523 func_basename ()
17524 {
17525   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17526 }
17527
17528
17529 # func_stripname prefix suffix name
17530 # strip PREFIX and SUFFIX off of NAME.
17531 # PREFIX and SUFFIX must not contain globbing or regex special
17532 # characters, hashes, percent signs, but SUFFIX may contain a leading
17533 # dot (in which case that matches only a dot).
17534 # func_strip_suffix prefix name
17535 func_stripname ()
17536 {
17537   case ${2} in
17538     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17539     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17540   esac
17541 }
17542
17543 # sed scripts:
17544 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17545 my_sed_long_arg='1s/^-[^=]*=//'
17546
17547 # func_opt_split
17548 func_opt_split ()
17549 {
17550   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17551   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17552 }
17553
17554 # func_lo2o object
17555 func_lo2o ()
17556 {
17557   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17558 }
17559
17560 # func_xform libobj-or-source
17561 func_xform ()
17562 {
17563   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17564 }
17565
17566 # func_arith arithmetic-term...
17567 func_arith ()
17568 {
17569   func_arith_result=`expr "$@"`
17570 }
17571
17572 # func_len string
17573 # STRING may not start with a hyphen.
17574 func_len ()
17575 {
17576   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17577 }
17578
17579 _LT_EOF
17580 esac
17581
17582 case $lt_shell_append in
17583   yes)
17584     cat << \_LT_EOF >> "$cfgfile"
17585
17586 # func_append var value
17587 # Append VALUE to the end of shell variable VAR.
17588 func_append ()
17589 {
17590   eval "$1+=\$2"
17591 }
17592 _LT_EOF
17593     ;;
17594   *)
17595     cat << \_LT_EOF >> "$cfgfile"
17596
17597 # func_append var value
17598 # Append VALUE to the end of shell variable VAR.
17599 func_append ()
17600 {
17601   eval "$1=\$$1\$2"
17602 }
17603
17604 _LT_EOF
17605     ;;
17606   esac
17607
17608
17609   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17610     || (rm -f "$cfgfile"; exit 1)
17611
17612   mv -f "$cfgfile" "$ofile" ||
17613     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17614   chmod +x "$ofile"
17615
17616
17617     cat <<_LT_EOF >> "$ofile"
17618
17619 # ### BEGIN LIBTOOL TAG CONFIG: GO
17620
17621 # The linker used to build libraries.
17622 LD=$lt_LD_GO
17623
17624 # How to create reloadable object files.
17625 reload_flag=$lt_reload_flag_GO
17626 reload_cmds=$lt_reload_cmds_GO
17627
17628 # Commands used to build an old-style archive.
17629 old_archive_cmds=$lt_old_archive_cmds_GO
17630
17631 # A language specific compiler.
17632 CC=$lt_compiler_GO
17633
17634 # Is the compiler the GNU compiler?
17635 with_gcc=$GCC_GO
17636
17637 # Compiler flag to turn off builtin functions.
17638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17639
17640 # How to pass a linker flag through the compiler.
17641 wl=$lt_lt_prog_compiler_wl_GO
17642
17643 # Additional compiler flags for building library objects.
17644 pic_flag=$lt_lt_prog_compiler_pic_GO
17645
17646 # Compiler flag to prevent dynamic linking.
17647 link_static_flag=$lt_lt_prog_compiler_static_GO
17648
17649 # Does compiler simultaneously support -c and -o options?
17650 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17651
17652 # Whether or not to add -lc for building shared libraries.
17653 build_libtool_need_lc=$archive_cmds_need_lc_GO
17654
17655 # Whether or not to disallow shared libs when runtime libs are static.
17656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17657
17658 # Compiler flag to allow reflexive dlopens.
17659 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17660
17661 # Compiler flag to generate shared objects directly from archives.
17662 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17663
17664 # Whether the compiler copes with passing no objects directly.
17665 compiler_needs_object=$lt_compiler_needs_object_GO
17666
17667 # Create an old-style archive from a shared archive.
17668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17669
17670 # Create a temporary old-style archive to link instead of a shared archive.
17671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17672
17673 # Commands used to build a shared archive.
17674 archive_cmds=$lt_archive_cmds_GO
17675 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17676
17677 # Commands used to build a loadable module if different from building
17678 # a shared archive.
17679 module_cmds=$lt_module_cmds_GO
17680 module_expsym_cmds=$lt_module_expsym_cmds_GO
17681
17682 # Whether we are building with GNU ld or not.
17683 with_gnu_ld=$lt_with_gnu_ld_GO
17684
17685 # Flag that allows shared libraries with undefined symbols to be built.
17686 allow_undefined_flag=$lt_allow_undefined_flag_GO
17687
17688 # Flag that enforces no undefined symbols.
17689 no_undefined_flag=$lt_no_undefined_flag_GO
17690
17691 # Flag to hardcode \$libdir into a binary during linking.
17692 # This must work even if \$libdir does not exist
17693 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17694
17695 # If ld is used when linking, flag to hardcode \$libdir into a binary
17696 # during linking.  This must work even if \$libdir does not exist.
17697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17698
17699 # Whether we need a single "-rpath" flag with a separated argument.
17700 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17701
17702 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17703 # DIR into the resulting binary.
17704 hardcode_direct=$hardcode_direct_GO
17705
17706 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17707 # DIR into the resulting binary and the resulting library dependency is
17708 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17709 # library is relocated.
17710 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17711
17712 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17713 # into the resulting binary.
17714 hardcode_minus_L=$hardcode_minus_L_GO
17715
17716 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17717 # into the resulting binary.
17718 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17719
17720 # Set to "yes" if building a shared library automatically hardcodes DIR
17721 # into the library and all subsequent libraries and executables linked
17722 # against it.
17723 hardcode_automatic=$hardcode_automatic_GO
17724
17725 # Set to yes if linker adds runtime paths of dependent libraries
17726 # to runtime path list.
17727 inherit_rpath=$inherit_rpath_GO
17728
17729 # Whether libtool must link a program against all its dependency libraries.
17730 link_all_deplibs=$link_all_deplibs_GO
17731
17732 # Fix the shell variable \$srcfile for the compiler.
17733 fix_srcfile_path=$lt_fix_srcfile_path_GO
17734
17735 # Set to "yes" if exported symbols are required.
17736 always_export_symbols=$always_export_symbols_GO
17737
17738 # The commands to list exported symbols.
17739 export_symbols_cmds=$lt_export_symbols_cmds_GO
17740
17741 # Symbols that should not be listed in the preloaded symbols.
17742 exclude_expsyms=$lt_exclude_expsyms_GO
17743
17744 # Symbols that must always be exported.
17745 include_expsyms=$lt_include_expsyms_GO
17746
17747 # Commands necessary for linking programs (against libraries) with templates.
17748 prelink_cmds=$lt_prelink_cmds_GO
17749
17750 # Specify filename containing input files.
17751 file_list_spec=$lt_file_list_spec_GO
17752
17753 # How to hardcode a shared library path into an executable.
17754 hardcode_action=$hardcode_action_GO
17755
17756 # ### END LIBTOOL TAG CONFIG: GO
17757 _LT_EOF
17758
17759  ;;
17760     "default":C) if test -n "$CONFIG_FILES"; then
17761    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17762    # that multilib installs will end up installed in the correct place.
17763    # The testsuite needs it for multilib-aware ABI baseline files.
17764    # To work around this not being passed down from config-ml.in ->
17765    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17766    # append it here.  Only modify Makefiles that have just been created.
17767    #
17768    # Also, get rid of this simulated-VPATH thing that automake does.
17769    cat > vpsed << \_EOF
17770 s!`test -f '$<' || echo '$(srcdir)/'`!!
17771 _EOF
17772    for i in $SUBDIRS; do
17773     case $CONFIG_FILES in
17774      *${i}/Makefile*)
17775        #echo "Adding MULTISUBDIR to $i/Makefile"
17776        sed -f vpsed $i/Makefile > tmp
17777        grep '^MULTISUBDIR =' Makefile >> tmp
17778        mv tmp $i/Makefile
17779        ;;
17780     esac
17781    done
17782    rm vpsed
17783  fi
17784  ;;
17785
17786   esac
17787 done # for ac_tag
17788
17789
17790 as_fn_exit 0
17791 _ACEOF
17792 ac_clean_files=$ac_clean_files_save
17793
17794 test $ac_write_fail = 0 ||
17795   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17796
17797
17798 # configure is writing to config.log, and then calls config.status.
17799 # config.status does its own redirection, appending to config.log.
17800 # Unfortunately, on DOS this fails, as config.log is still kept open
17801 # by configure, so config.status won't be able to write to it; its
17802 # output is simply discarded.  So we exec the FD to /dev/null,
17803 # effectively closing config.log, so it can be properly (re)opened and
17804 # appended to by config.status.  When coming back to configure, we
17805 # need to make the FD available again.
17806 if test "$no_create" != yes; then
17807   ac_cs_success=:
17808   ac_config_status_args=
17809   test "$silent" = yes &&
17810     ac_config_status_args="$ac_config_status_args --quiet"
17811   exec 5>/dev/null
17812   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17813   exec 5>>config.log
17814   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17815   # would make configure fail if this is the last instruction.
17816   $ac_cs_success || as_fn_exit $?
17817 fi
17818 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17819   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17820 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17821 fi
17822