OSDN Git Service

Implement new syscall package.
[pf3gnuchains/gcc-fork.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_WAIT4_FALSE
607 HAVE_WAIT4_TRUE
608 HAVE_STRERROR_R_FALSE
609 HAVE_STRERROR_R_TRUE
610 HAVE_SYS_MMAN_H_FALSE
611 HAVE_SYS_MMAN_H_TRUE
612 PTHREAD_LIBS
613 PTHREAD_CFLAGS
614 NET_LIBS
615 MATH_LIBS
616 USING_SPLIT_STACK_FALSE
617 USING_SPLIT_STACK_TRUE
618 SPLIT_STACK
619 OSCFLAGS
620 GO_SYSCALL_OS_ARCH_FILE
621 GO_SYSCALL_OS_FILE
622 GO_LIBCALL_OS_ARCH_FILE
623 GO_LIBCALL_OS_FILE
624 GOARCH
625 LIBGO_IS_X86_64_FALSE
626 LIBGO_IS_X86_64_TRUE
627 LIBGO_IS_SPARC64_FALSE
628 LIBGO_IS_SPARC64_TRUE
629 LIBGO_IS_SPARC_FALSE
630 LIBGO_IS_SPARC_TRUE
631 LIBGO_IS_PPC64_FALSE
632 LIBGO_IS_PPC64_TRUE
633 LIBGO_IS_PPC_FALSE
634 LIBGO_IS_PPC_TRUE
635 LIBGO_IS_MIPSO64_FALSE
636 LIBGO_IS_MIPSO64_TRUE
637 LIBGO_IS_MIPSN64_FALSE
638 LIBGO_IS_MIPSN64_TRUE
639 LIBGO_IS_MIPSN32_FALSE
640 LIBGO_IS_MIPSN32_TRUE
641 LIBGO_IS_MIPSO32_FALSE
642 LIBGO_IS_MIPSO32_TRUE
643 LIBGO_IS_MIPS_FALSE
644 LIBGO_IS_MIPS_TRUE
645 LIBGO_IS_M68K_FALSE
646 LIBGO_IS_M68K_TRUE
647 LIBGO_IS_ARM_FALSE
648 LIBGO_IS_ARM_TRUE
649 LIBGO_IS_ALPHA_FALSE
650 LIBGO_IS_ALPHA_TRUE
651 LIBGO_IS_386_FALSE
652 LIBGO_IS_386_TRUE
653 GOOS
654 LIBGO_IS_SOLARIS_FALSE
655 LIBGO_IS_SOLARIS_TRUE
656 LIBGO_IS_RTEMS_FALSE
657 LIBGO_IS_RTEMS_TRUE
658 LIBGO_IS_LINUX_FALSE
659 LIBGO_IS_LINUX_TRUE
660 LIBGO_IS_IRIX_FALSE
661 LIBGO_IS_IRIX_TRUE
662 LIBGO_IS_FREEBSD_FALSE
663 LIBGO_IS_FREEBSD_TRUE
664 LIBGO_IS_DARWIN_FALSE
665 LIBGO_IS_DARWIN_TRUE
666 LIBFFIINCS
667 LIBFFI
668 glibgo_toolexeclibdir
669 glibgo_toolexecdir
670 glibgo_prefixdir
671 WERROR
672 WARN_FLAGS
673 CC_FOR_BUILD
674 enable_static
675 enable_shared
676 CPP
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 AR
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LIBTOOL
689 OBJCOPY
690 RANLIB
691 LD
692 FGREP
693 EGREP
694 GREP
695 SED
696 MAINT
697 MAINTAINER_MODE_FALSE
698 MAINTAINER_MODE_TRUE
699 GOCFLAGS
700 GOC
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 multi_basedir
753 libtool_VERSION
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_multilib
796 enable_dependency_tracking
797 enable_maintainer_mode
798 with_gnu_ld
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 enable_libtool_lock
804 enable_version_specific_runtime_libs
805 with_libffi
806 with_system_libunwind
807 enable_sjlj_exceptions
808 '
809       ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CPP
813 CPPFLAGS'
814
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922       as_fn_error "invalid feature name: $ac_useropt"
923     ac_useropt_orig=$ac_useropt
924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925     case $ac_user_opts in
926       *"
927 "enable_$ac_useropt"
928 "*) ;;
929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930          ac_unrecognized_sep=', ';;
931     esac
932     eval enable_$ac_useropt=no ;;
933
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
938
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
943
944   -enable-* | --enable-*)
945     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948       as_fn_error "invalid feature name: $ac_useropt"
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152       as_fn_error "invalid package name: $ac_useropt"
1153     ac_useropt_orig=$ac_useropt
1154     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155     case $ac_user_opts in
1156       *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160          ac_unrecognized_sep=', ';;
1161     esac
1162     eval with_$ac_useropt=\$ac_optarg ;;
1163
1164   -without-* | --without-*)
1165     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168       as_fn_error "invalid package name: $ac_useropt"
1169     ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172       *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176          ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=no ;;
1179
1180   --x)
1181     # Obsolete; use --with-x.
1182     with_x=yes ;;
1183
1184   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185   | --x-incl | --x-inc | --x-in | --x-i)
1186     ac_prev=x_includes ;;
1187   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189     x_includes=$ac_optarg ;;
1190
1191   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193     ac_prev=x_libraries ;;
1194   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196     x_libraries=$ac_optarg ;;
1197
1198   -*) as_fn_error "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information."
1200     ;;
1201
1202   *=*)
1203     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204     # Reject names that are not valid shell variable names.
1205     case $ac_envvar in #(
1206       '' | [0-9]* | *[!_$as_cr_alnum]* )
1207       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1208     esac
1209     eval $ac_envvar=\$ac_optarg
1210     export $ac_envvar ;;
1211
1212   *)
1213     # FIXME: should be removed in autoconf 3.0.
1214     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218     ;;
1219
1220   esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225   as_fn_error "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229   case $enable_option_checking in
1230     no) ;;
1231     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1232     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233   esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238                 datadir sysconfdir sharedstatedir localstatedir includedir \
1239                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240                 libdir localedir mandir
1241 do
1242   eval ac_val=\$$ac_var
1243   # Remove trailing slashes.
1244   case $ac_val in
1245     */ )
1246       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247       eval $ac_var=\$ac_val;;
1248   esac
1249   # Be sure to have absolute directory names.
1250   case $ac_val in
1251     [\\/$]* | ?:[\\/]* )  continue;;
1252     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253   esac
1254   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266   if test "x$build_alias" = x; then
1267     cross_compiling=maybe
1268     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269     If a cross compiler is detected then cross compile mode will be used." >&2
1270   elif test "x$build_alias" != "x$host_alias"; then
1271     cross_compiling=yes
1272   fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284   as_fn_error "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286   as_fn_error "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291   ac_srcdir_defaulted=yes
1292   # Try the directory containing this script, then the parent directory.
1293   ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295          X"$as_myself" : 'X\(//\)[^/]' \| \
1296          X"$as_myself" : 'X\(//\)$' \| \
1297          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\/\)[^/].*/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\).*/{
1312             s//\1/
1313             q
1314           }
1315           s/.*/./; q'`
1316   srcdir=$ac_confdir
1317   if test ! -r "$srcdir/$ac_unique_file"; then
1318     srcdir=..
1319   fi
1320 else
1321   ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1330         pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333   srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343   eval ac_env_${ac_var}_value=\$${ac_var}
1344   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352   # Omit some internal or obsolete options to make the list less imposing.
1353   # This message is too long to be a string in the A/UX 3.1 sh.
1354   cat <<_ACEOF
1355 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365   -h, --help              display this help and exit
1366       --help=short        display options specific to this package
1367       --help=recursive    display the short help of all the included packages
1368   -V, --version           display version information and exit
1369   -q, --quiet, --silent   do not print \`checking...' messages
1370       --cache-file=FILE   cache test results in FILE [disabled]
1371   -C, --config-cache      alias for \`--cache-file=config.cache'
1372   -n, --no-create         do not create output files
1373       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376   --prefix=PREFIX         install architecture-independent files in PREFIX
1377                           [$ac_default_prefix]
1378   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                           [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389   --bindir=DIR            user executables [EPREFIX/bin]
1390   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391   --libexecdir=DIR        program executables [EPREFIX/libexec]
1392   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395   --libdir=DIR            object code libraries [EPREFIX/lib]
1396   --includedir=DIR        C header files [PREFIX/include]
1397   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400   --infodir=DIR           info documentation [DATAROOTDIR/info]
1401   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402   --mandir=DIR            man documentation [DATAROOTDIR/man]
1403   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1404   --htmldir=DIR           html documentation [DOCDIR]
1405   --dvidir=DIR            dvi documentation [DOCDIR]
1406   --pdfdir=DIR            pdf documentation [DOCDIR]
1407   --psdir=DIR             ps documentation [DOCDIR]
1408 _ACEOF
1409
1410   cat <<\_ACEOF
1411
1412 Program names:
1413   --program-prefix=PREFIX            prepend PREFIX to installed program names
1414   --program-suffix=SUFFIX            append SUFFIX to installed program names
1415   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417 System types:
1418   --build=BUILD     configure for building on BUILD [guessed]
1419   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420   --target=TARGET   configure for building compilers for TARGET [HOST]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425   case $ac_init_help in
1426      short | recursive ) echo "Configuration of package-unused version-unused:";;
1427    esac
1428   cat <<\_ACEOF
1429
1430 Optional Features:
1431   --disable-option-checking  ignore unrecognized --enable/--with options
1432   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434   --enable-multilib       build many library versions (default)
1435   --disable-dependency-tracking  speeds up one-time build
1436   --enable-dependency-tracking   do not reject slow dependency extractors
1437   --enable-maintainer-mode  enable make rules and dependencies not useful
1438                           (and sometimes confusing) to the casual installer
1439   --enable-shared[=PKGS]  build shared libraries [default=yes]
1440   --enable-static[=PKGS]  build static libraries [default=yes]
1441   --enable-fast-install[=PKGS]
1442                           optimize for fast installation [default=yes]
1443   --disable-libtool-lock  avoid locking (might break parallel builds)
1444   --enable-version-specific-runtime-libs
1445                           Specify that runtime libraries should be installed
1446                           in a compiler-specific directory
1447   --enable-sjlj-exceptions
1448                           force use of builtin_setjmp for exceptions
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1454   --with-pic              try to use only PIC/non-PIC objects [default=use
1455                           both]
1456   --without-libffi        don't use libffi
1457   --with-system-libunwind use installed libunwind
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   LIBS        libraries to pass to the linker, e.g. -l<library>
1465   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466               you have headers in a nonstandard directory <include dir>
1467   GOC         Go compiler command
1468   GOCFLAGS    Go compiler flags
1469   CPP         C preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480   # If there are subdirs, report their specific --help.
1481   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482     test -d "$ac_dir" ||
1483       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484       continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 package-unused configure version-unused
1538 generated by GNU Autoconf 2.64
1539
1540 Copyright (C) 2009 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544   exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557   rm -f conftest.$ac_objext
1558   if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561   *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565   (eval "$ac_compile") 2>conftest.err
1566   ac_status=$?
1567   if test -s conftest.err; then
1568     grep -v '^ *+' conftest.err >conftest.er1
1569     cat conftest.er1 >&5
1570     mv -f conftest.er1 conftest.err
1571   fi
1572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573   test $ac_status = 0; } && {
1574          test -z "$ac_c_werror_flag" ||
1575          test ! -s conftest.err
1576        } && test -s conftest.$ac_objext; then :
1577   ac_retval=0
1578 else
1579   $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582         ac_retval=1
1583 fi
1584   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585   return $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_try_link LINENO
1590 # -----------------------
1591 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_link ()
1593 {
1594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595   rm -f conftest.$ac_objext conftest$ac_exeext
1596   if { { ac_try="$ac_link"
1597 case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_link") 2>conftest.err
1604   ac_status=$?
1605   if test -s conftest.err; then
1606     grep -v '^ *+' conftest.err >conftest.er1
1607     cat conftest.er1 >&5
1608     mv -f conftest.er1 conftest.err
1609   fi
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; } && {
1612          test -z "$ac_c_werror_flag" ||
1613          test ! -s conftest.err
1614        } && test -s conftest$ac_exeext && {
1615          test "$cross_compiling" = yes ||
1616          $as_test_x conftest$ac_exeext
1617        }; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623         ac_retval=1
1624 fi
1625   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627   # interfere with the next link command; also delete a directory that is
1628   # left behind by Apple's compiler.  We do this before executing the actions.
1629   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631   return $ac_retval
1632
1633 } # ac_fn_c_try_link
1634
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645   $as_echo_n "(cached) " >&6
1646 else
1647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h.  */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653   eval "$3=yes"
1654 else
1655   eval "$3=no"
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 fi
1659 eval ac_res=\$$3
1660                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663
1664 } # ac_fn_c_check_header_compile
1665
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_cpp ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 case "(($ac_try" in
1674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675   *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680   ac_status=$?
1681   if test -s conftest.err; then
1682     grep -v '^ *+' conftest.err >conftest.er1
1683     cat conftest.er1 >&5
1684     mv -f conftest.er1 conftest.err
1685   fi
1686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687   test $ac_status = 0; } >/dev/null && {
1688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689          test ! -s conftest.err
1690        }; then :
1691   ac_retval=0
1692 else
1693   $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696     ac_retval=1
1697 fi
1698   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699   return $ac_retval
1700
1701 } # ac_fn_c_try_cpp
1702
1703 # ac_fn_c_try_run LINENO
1704 # ----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706 # that executables *can* be run.
1707 ac_fn_c_try_run ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713   *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717   (eval "$ac_link") 2>&5
1718   ac_status=$?
1719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721   { { case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_try") 2>&5
1728   ac_status=$?
1729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730   test $ac_status = 0; }; }; then :
1731   ac_retval=0
1732 else
1733   $as_echo "$as_me: program exited with status $ac_status" >&5
1734        $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737        ac_retval=$ac_status
1738 fi
1739   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741   return $ac_retval
1742
1743 } # ac_fn_c_try_run
1744
1745 # ac_fn_c_check_func LINENO FUNC VAR
1746 # ----------------------------------
1747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1748 ac_fn_c_check_func ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754   $as_echo_n "(cached) " >&6
1755 else
1756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h.  */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1760 #define $2 innocuous_$2
1761
1762 /* System header to define __stub macros and hopefully few prototypes,
1763     which can conflict with char $2 (); below.
1764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765     <limits.h> exists even on freestanding compilers.  */
1766
1767 #ifdef __STDC__
1768 # include <limits.h>
1769 #else
1770 # include <assert.h>
1771 #endif
1772
1773 #undef $2
1774
1775 /* Override any GCC internal prototype to avoid an error.
1776    Use char because int might match the return type of a GCC
1777    builtin and then its argument prototype would still apply.  */
1778 #ifdef __cplusplus
1779 extern "C"
1780 #endif
1781 char $2 ();
1782 /* The GNU C library defines this for functions which it implements
1783     to always fail with ENOSYS.  Some functions are actually named
1784     something starting with __ and the normal name is an alias.  */
1785 #if defined __stub_$2 || defined __stub___$2
1786 choke me
1787 #endif
1788
1789 int
1790 main ()
1791 {
1792 return $2 ();
1793   ;
1794   return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_link "$LINENO"; then :
1798   eval "$3=yes"
1799 else
1800   eval "$3=no"
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext \
1803     conftest$ac_exeext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810 } # ac_fn_c_check_func
1811
1812 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815 # the include files in INCLUDES and setting the cache variable VAR
1816 # accordingly.
1817 ac_fn_c_check_header_mongrel ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824   $as_echo_n "(cached) " >&6
1825 fi
1826 eval ac_res=\$$3
1827                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 else
1830   # Is the header compilable?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832 $as_echo_n "checking $2 usability... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839   ac_header_compiler=yes
1840 else
1841   ac_header_compiler=no
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845 $as_echo "$ac_header_compiler" >&6; }
1846
1847 # Is the header present?
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849 $as_echo_n "checking $2 presence... " >&6; }
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h.  */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_cpp "$LINENO"; then :
1855   ac_header_preproc=yes
1856 else
1857   ac_header_preproc=no
1858 fi
1859 rm -f conftest.err conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861 $as_echo "$ac_header_preproc" >&6; }
1862
1863 # So?  What about this header?
1864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1865   yes:no: )
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870     ;;
1871   no:yes:* )
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1875 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1879 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882     ;;
1883 esac
1884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887   $as_echo_n "(cached) " >&6
1888 else
1889   eval "$3=\$ac_header_compiler"
1890 fi
1891 eval ac_res=\$$3
1892                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 fi
1895   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896
1897 } # ac_fn_c_check_header_mongrel
1898
1899 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900 # -------------------------------------------
1901 # Tests whether TYPE exists after having included INCLUDES, setting cache
1902 # variable VAR accordingly.
1903 ac_fn_c_check_type ()
1904 {
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909   $as_echo_n "(cached) " >&6
1910 else
1911   eval "$3=no"
1912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 $4
1915 int
1916 main ()
1917 {
1918 if (sizeof ($2))
1919          return 0;
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 $4
1928 int
1929 main ()
1930 {
1931 if (sizeof (($2)))
1932             return 0;
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938
1939 else
1940   eval "$3=yes"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
1951 } # ac_fn_c_check_type
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1955
1956 It was created by package-unused $as_me version-unused, which was
1957 generated by GNU Autoconf 2.64.  Invocation command line was
1958
1959   $ $0 $@
1960
1961 _ACEOF
1962 exec 5>>config.log
1963 {
1964 cat <<_ASUNAME
1965 ## --------- ##
1966 ## Platform. ##
1967 ## --------- ##
1968
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1977
1978 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1979 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1982 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1983 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1984 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1985
1986 _ASUNAME
1987
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993     $as_echo "PATH: $as_dir"
1994   done
1995 IFS=$as_save_IFS
1996
1997 } >&5
1998
1999 cat >&5 <<_ACEOF
2000
2001
2002 ## ----------- ##
2003 ## Core tests. ##
2004 ## ----------- ##
2005
2006 _ACEOF
2007
2008
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2014 ac_configure_args=
2015 ac_configure_args0=
2016 ac_configure_args1=
2017 ac_must_keep_next=false
2018 for ac_pass in 1 2
2019 do
2020   for ac_arg
2021   do
2022     case $ac_arg in
2023     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025     | -silent | --silent | --silen | --sile | --sil)
2026       continue ;;
2027     *\'*)
2028       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029     esac
2030     case $ac_pass in
2031     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2032     2)
2033       as_fn_append ac_configure_args1 " '$ac_arg'"
2034       if test $ac_must_keep_next = true; then
2035         ac_must_keep_next=false # Got value, back to normal.
2036       else
2037         case $ac_arg in
2038           *=* | --config-cache | -C | -disable-* | --disable-* \
2039           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041           | -with-* | --with-* | -without-* | --without-* | --x)
2042             case "$ac_configure_args0 " in
2043               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044             esac
2045             ;;
2046           -* ) ac_must_keep_next=true ;;
2047         esac
2048       fi
2049       as_fn_append ac_configure_args " '$ac_arg'"
2050       ;;
2051     esac
2052   done
2053 done
2054 { ac_configure_args0=; unset ac_configure_args0;}
2055 { ac_configure_args1=; unset ac_configure_args1;}
2056
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log.  We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063   # Save into config.log some information that might help in debugging.
2064   {
2065     echo
2066
2067     cat <<\_ASBOX
2068 ## ---------------- ##
2069 ## Cache variables. ##
2070 ## ---------------- ##
2071 _ASBOX
2072     echo
2073     # The following way of writing the cache mishandles newlines in values,
2074 (
2075   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076     eval ac_val=\$$ac_var
2077     case $ac_val in #(
2078     *${as_nl}*)
2079       case $ac_var in #(
2080       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082       esac
2083       case $ac_var in #(
2084       _ | IFS | as_nl) ;; #(
2085       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086       *) { eval $ac_var=; unset $ac_var;} ;;
2087       esac ;;
2088     esac
2089   done
2090   (set) 2>&1 |
2091     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092     *${as_nl}ac_space=\ *)
2093       sed -n \
2094         "s/'\''/'\''\\\\'\'''\''/g;
2095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096       ;; #(
2097     *)
2098       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2099       ;;
2100     esac |
2101     sort
2102 )
2103     echo
2104
2105     cat <<\_ASBOX
2106 ## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##
2109 _ASBOX
2110     echo
2111     for ac_var in $ac_subst_vars
2112     do
2113       eval ac_val=\$$ac_var
2114       case $ac_val in
2115       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116       esac
2117       $as_echo "$ac_var='\''$ac_val'\''"
2118     done | sort
2119     echo
2120
2121     if test -n "$ac_subst_files"; then
2122       cat <<\_ASBOX
2123 ## ------------------- ##
2124 ## File substitutions. ##
2125 ## ------------------- ##
2126 _ASBOX
2127       echo
2128       for ac_var in $ac_subst_files
2129       do
2130         eval ac_val=\$$ac_var
2131         case $ac_val in
2132         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133         esac
2134         $as_echo "$ac_var='\''$ac_val'\''"
2135       done | sort
2136       echo
2137     fi
2138
2139     if test -s confdefs.h; then
2140       cat <<\_ASBOX
2141 ## ----------- ##
2142 ## confdefs.h. ##
2143 ## ----------- ##
2144 _ASBOX
2145       echo
2146       cat confdefs.h
2147       echo
2148     fi
2149     test "$ac_signal" != 0 &&
2150       $as_echo "$as_me: caught signal $ac_signal"
2151     $as_echo "$as_me: exit $exit_status"
2152   } >&5
2153   rm -f core *.core core.conftest.* &&
2154     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155     exit $exit_status
2156 ' 0
2157 for ac_signal in 1 2 13 15; do
2158   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2159 done
2160 ac_signal=0
2161
2162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2163 rm -f -r conftest* confdefs.h
2164
2165 $as_echo "/* confdefs.h */" > confdefs.h
2166
2167 # Predefined preprocessor variables.
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_NAME "$PACKAGE_NAME"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_STRING "$PACKAGE_STRING"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_URL "$PACKAGE_URL"
2191 _ACEOF
2192
2193
2194 # Let the site file select an alternate cache file if it wants to.
2195 # Prefer an explicitly selected file to automatically selected ones.
2196 ac_site_file1=NONE
2197 ac_site_file2=NONE
2198 if test -n "$CONFIG_SITE"; then
2199   ac_site_file1=$CONFIG_SITE
2200 elif test "x$prefix" != xNONE; then
2201   ac_site_file1=$prefix/share/config.site
2202   ac_site_file2=$prefix/etc/config.site
2203 else
2204   ac_site_file1=$ac_default_prefix/share/config.site
2205   ac_site_file2=$ac_default_prefix/etc/config.site
2206 fi
2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208 do
2209   test "x$ac_site_file" = xNONE && continue
2210   if test -r "$ac_site_file"; then
2211     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213     sed 's/^/| /' "$ac_site_file" >&5
2214     . "$ac_site_file"
2215   fi
2216 done
2217
2218 if test -r "$cache_file"; then
2219   # Some versions of bash will fail to source /dev/null (special
2220   # files actually), so we avoid doing that.
2221   if test -f "$cache_file"; then
2222     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223 $as_echo "$as_me: loading cache $cache_file" >&6;}
2224     case $cache_file in
2225       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226       *)                      . "./$cache_file";;
2227     esac
2228   fi
2229 else
2230   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231 $as_echo "$as_me: creating cache $cache_file" >&6;}
2232   >$cache_file
2233 fi
2234
2235 # Check that the precious variables saved in the cache have kept the same
2236 # value.
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240   eval ac_new_set=\$ac_env_${ac_var}_set
2241   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242   eval ac_new_val=\$ac_env_${ac_var}_value
2243   case $ac_old_set,$ac_new_set in
2244     set,)
2245       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247       ac_cache_corrupted=: ;;
2248     ,set)
2249       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251       ac_cache_corrupted=: ;;
2252     ,);;
2253     *)
2254       if test "x$ac_old_val" != "x$ac_new_val"; then
2255         # differences in whitespace do not lead to failure.
2256         ac_old_val_w=`echo x $ac_old_val`
2257         ac_new_val_w=`echo x $ac_new_val`
2258         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261           ac_cache_corrupted=:
2262         else
2263           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265           eval $ac_var=\$ac_old_val
2266         fi
2267         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2268 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2269         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2271       fi;;
2272   esac
2273   # Pass precious variables to config.status.
2274   if test "$ac_new_set" = set; then
2275     case $ac_new_val in
2276     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277     *) ac_arg=$ac_var=$ac_new_val ;;
2278     esac
2279     case " $ac_configure_args " in
2280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2281       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2282     esac
2283   fi
2284 done
2285 if $ac_cache_corrupted; then
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 fi
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2295
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
2304
2305
2306
2307 ac_config_headers="$ac_config_headers config.h"
2308
2309
2310 libtool_VERSION=1:0:0
2311
2312
2313 # Default to --enable-multilib
2314 # Check whether --enable-multilib was given.
2315 if test "${enable_multilib+set}" = set; then :
2316   enableval=$enable_multilib; case "$enableval" in
2317   yes) multilib=yes ;;
2318   no)  multilib=no ;;
2319   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2320  esac
2321 else
2322   multilib=yes
2323 fi
2324
2325
2326 # We may get other options which we leave undocumented:
2327 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2328 # See config-ml.in if you want the gory details.
2329
2330 if test "$srcdir" = "."; then
2331   if test "$with_target_subdir" != "."; then
2332     multi_basedir="$srcdir/$with_multisrctop../.."
2333   else
2334     multi_basedir="$srcdir/$with_multisrctop.."
2335   fi
2336 else
2337   multi_basedir="$srcdir/.."
2338 fi
2339
2340
2341 # Even if the default multilib is not a cross compilation,
2342 # it may be that some of the other multilibs are.
2343 if test $cross_compiling = no && test $multilib = yes \
2344    && test "x${with_multisubdir}" != x ; then
2345    cross_compiling=maybe
2346 fi
2347
2348 ac_config_commands="$ac_config_commands default-1"
2349
2350
2351 ac_aux_dir=
2352 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2353   for ac_t in install-sh install.sh shtool; do
2354     if test -f "$ac_dir/$ac_t"; then
2355       ac_aux_dir=$ac_dir
2356       ac_install_sh="$ac_aux_dir/$ac_t -c"
2357       break 2
2358     fi
2359   done
2360 done
2361 if test -z "$ac_aux_dir"; then
2362   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2363 fi
2364
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2372
2373
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if test "${ac_cv_build+set}" = set; then :
2381   $as_echo_n "(cached) " >&6
2382 else
2383   ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2390
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2410
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2413 $as_echo_n "checking host system type... " >&6; }
2414 if test "${ac_cv_host+set}" = set; then :
2415   $as_echo_n "(cached) " >&6
2416 else
2417   if test "x$host_alias" = x; then
2418   ac_cv_host=$ac_cv_build
2419 else
2420   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2421     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2422 fi
2423
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2426 $as_echo "$ac_cv_host" >&6; }
2427 case $ac_cv_host in
2428 *-*-*) ;;
2429 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2430 esac
2431 host=$ac_cv_host
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_host
2434 shift
2435 host_cpu=$1
2436 host_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 host_os=$*
2441 IFS=$ac_save_IFS
2442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2443
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2446 $as_echo_n "checking target system type... " >&6; }
2447 if test "${ac_cv_target+set}" = set; then :
2448   $as_echo_n "(cached) " >&6
2449 else
2450   if test "x$target_alias" = x; then
2451   ac_cv_target=$ac_cv_host
2452 else
2453   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2454     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2455 fi
2456
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2459 $as_echo "$ac_cv_target" >&6; }
2460 case $ac_cv_target in
2461 *-*-*) ;;
2462 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2463 esac
2464 target=$ac_cv_target
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_target
2467 shift
2468 target_cpu=$1
2469 target_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 target_os=$*
2474 IFS=$ac_save_IFS
2475 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 # The aliases save the names the user supplied, while $host etc.
2479 # will get canonicalized.
2480 test -n "$target_alias" &&
2481   test "$program_prefix$program_suffix$program_transform_name" = \
2482     NONENONEs,x,x, &&
2483   program_prefix=${target_alias}-
2484
2485 target_alias=${target_alias-$host_alias}
2486
2487 am__api_version='1.11'
2488
2489 # Find a good install program.  We prefer a C program (faster),
2490 # so one script is as good as another.  But avoid the broken or
2491 # incompatible versions:
2492 # SysV /etc/install, /usr/sbin/install
2493 # SunOS /usr/etc/install
2494 # IRIX /sbin/install
2495 # AIX /bin/install
2496 # AmigaOS /C/install, which installs bootblocks on floppy discs
2497 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500 # OS/2's system install, which has a completely different semantic
2501 # ./install, which can be erroneously created by make from ./install.sh.
2502 # Reject install programs that cannot install multiple files.
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2504 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then :
2507   $as_echo_n "(cached) " >&6
2508 else
2509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514     # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in #((
2516   ./ | .// | /[cC]/* | \
2517   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2519   /usr/ucb/* ) ;;
2520   *)
2521     # OSF1 and SCO ODT 3.0 have their own names for install.
2522     # Don't use installbsd from OSF since it installs stuff as root
2523     # by default.
2524     for ac_prog in ginstall scoinst install; do
2525       for ac_exec_ext in '' $ac_executable_extensions; do
2526         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2527           if test $ac_prog = install &&
2528             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529             # AIX install.  It has an incompatible calling convention.
2530             :
2531           elif test $ac_prog = install &&
2532             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533             # program-specific install script used by HP pwplus--don't use.
2534             :
2535           else
2536             rm -rf conftest.one conftest.two conftest.dir
2537             echo one > conftest.one
2538             echo two > conftest.two
2539             mkdir conftest.dir
2540             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2541               test -s conftest.one && test -s conftest.two &&
2542               test -s conftest.dir/conftest.one &&
2543               test -s conftest.dir/conftest.two
2544             then
2545               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2546               break 3
2547             fi
2548           fi
2549         fi
2550       done
2551     done
2552     ;;
2553 esac
2554
2555   done
2556 IFS=$as_save_IFS
2557
2558 rm -rf conftest.one conftest.two conftest.dir
2559
2560 fi
2561   if test "${ac_cv_path_install+set}" = set; then
2562     INSTALL=$ac_cv_path_install
2563   else
2564     # As a last resort, use the slow shell script.  Don't cache a
2565     # value for INSTALL within a source directory, because that will
2566     # break other packages using the cache if that directory is
2567     # removed, or if the value is a relative name.
2568     INSTALL=$ac_install_sh
2569   fi
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2572 $as_echo "$INSTALL" >&6; }
2573
2574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2575 # It thinks the first close brace ends the variable substitution.
2576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577
2578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579
2580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2583 $as_echo_n "checking whether build environment is sane... " >&6; }
2584 # Just in case
2585 sleep 1
2586 echo timestamp > conftest.file
2587 # Reject unsafe characters in $srcdir or the absolute working directory
2588 # name.  Accept space and tab only in the latter.
2589 am_lf='
2590 '
2591 case `pwd` in
2592   *[\\\"\#\$\&\'\`$am_lf]*)
2593     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2594 esac
2595 case $srcdir in
2596   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2597     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2598 esac
2599
2600 # Do `set' in a subshell so we don't clobber the current shell's
2601 # arguments.  Must try -L first in case configure is actually a
2602 # symlink; some systems play weird games with the mod time of symlinks
2603 # (eg FreeBSD returns the mod time of the symlink's containing
2604 # directory).
2605 if (
2606    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2607    if test "$*" = "X"; then
2608       # -L didn't work.
2609       set X `ls -t "$srcdir/configure" conftest.file`
2610    fi
2611    rm -f conftest.file
2612    if test "$*" != "X $srcdir/configure conftest.file" \
2613       && test "$*" != "X conftest.file $srcdir/configure"; then
2614
2615       # If neither matched, then we have a broken ls.  This can happen
2616       # if, for instance, CONFIG_SHELL is bash and it inherits a
2617       # broken ls alias from the environment.  This has actually
2618       # happened.  Such a system could not be considered "sane".
2619       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2620 alias in your environment" "$LINENO" 5
2621    fi
2622
2623    test "$2" = conftest.file
2624    )
2625 then
2626    # Ok.
2627    :
2628 else
2629    as_fn_error "newly created file is older than distributed files!
2630 Check your system clock" "$LINENO" 5
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2633 $as_echo "yes" >&6; }
2634 test "$program_prefix" != NONE &&
2635   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2636 # Use a double $ so make ignores it.
2637 test "$program_suffix" != NONE &&
2638   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2639 # Double any \ or $.
2640 # By default was `s,x,x', remove it if useless.
2641 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2642 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2643
2644 # expand $ac_aux_dir to an absolute path
2645 am_aux_dir=`cd $ac_aux_dir && pwd`
2646
2647 if test x"${MISSING+set}" != xset; then
2648   case $am_aux_dir in
2649   *\ * | *\     *)
2650     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2651   *)
2652     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2653   esac
2654 fi
2655 # Use eval to expand $SHELL
2656 if eval "$MISSING --run true"; then
2657   am_missing_run="$MISSING --run "
2658 else
2659   am_missing_run=
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2661 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2662 fi
2663
2664 if test x"${install_sh}" != xset; then
2665   case $am_aux_dir in
2666   *\ * | *\     *)
2667     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2668   *)
2669     install_sh="\${SHELL} $am_aux_dir/install-sh"
2670   esac
2671 fi
2672
2673 # Installed binaries are usually stripped using `strip' when the user
2674 # run `make install-strip'.  However `strip' might not be the right
2675 # tool to use in cross-compilation environments, therefore Automake
2676 # will honor the `STRIP' environment variable to overrule this program.
2677 if test "$cross_compiling" != no; then
2678   if test -n "$ac_tool_prefix"; then
2679   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}strip; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_STRIP+set}" = set; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   if test -n "$STRIP"; then
2687   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694     for ac_exec_ext in '' $ac_executable_extensions; do
2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701   done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 STRIP=$ac_cv_prog_STRIP
2707 if test -n "$STRIP"; then
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2709 $as_echo "$STRIP" >&6; }
2710 else
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2714
2715
2716 fi
2717 if test -z "$ac_cv_prog_STRIP"; then
2718   ac_ct_STRIP=$STRIP
2719   # Extract the first word of "strip", so it can be a program name with args.
2720 set dummy strip; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   if test -n "$ac_ct_STRIP"; then
2727   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734     for ac_exec_ext in '' $ac_executable_extensions; do
2735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736     ac_cv_prog_ac_ct_STRIP="strip"
2737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738     break 2
2739   fi
2740 done
2741   done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2747 if test -n "$ac_ct_STRIP"; then
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2749 $as_echo "$ac_ct_STRIP" >&6; }
2750 else
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755   if test "x$ac_ct_STRIP" = x; then
2756     STRIP=":"
2757   else
2758     case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2763 esac
2764     STRIP=$ac_ct_STRIP
2765   fi
2766 else
2767   STRIP="$ac_cv_prog_STRIP"
2768 fi
2769
2770 fi
2771 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2774 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2775 if test -z "$MKDIR_P"; then
2776   if test "${ac_cv_path_mkdir+set}" = set; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_prog in mkdir gmkdir; do
2785          for ac_exec_ext in '' $ac_executable_extensions; do
2786            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2787            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2788              'mkdir (GNU coreutils) '* | \
2789              'mkdir (coreutils) '* | \
2790              'mkdir (fileutils) '4.1*)
2791                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2792                break 3;;
2793            esac
2794          done
2795        done
2796   done
2797 IFS=$as_save_IFS
2798
2799 fi
2800
2801   if test "${ac_cv_path_mkdir+set}" = set; then
2802     MKDIR_P="$ac_cv_path_mkdir -p"
2803   else
2804     # As a last resort, use the slow shell script.  Don't cache a
2805     # value for MKDIR_P within a source directory, because that will
2806     # break other packages using the cache if that directory is
2807     # removed, or if the value is a relative name.
2808     test -d ./--version && rmdir ./--version
2809     MKDIR_P="$ac_install_sh -d"
2810   fi
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2813 $as_echo "$MKDIR_P" >&6; }
2814
2815 mkdir_p="$MKDIR_P"
2816 case $mkdir_p in
2817   [\\/$]* | ?:[\\/]*) ;;
2818   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2819 esac
2820
2821 for ac_prog in gawk mawk nawk awk
2822 do
2823   # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_AWK+set}" = set; then :
2828   $as_echo_n "(cached) " >&6
2829 else
2830   if test -n "$AWK"; then
2831   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836   IFS=$as_save_IFS
2837   test -z "$as_dir" && as_dir=.
2838     for ac_exec_ext in '' $ac_executable_extensions; do
2839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840     ac_cv_prog_AWK="$ac_prog"
2841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842     break 2
2843   fi
2844 done
2845   done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 AWK=$ac_cv_prog_AWK
2851 if test -n "$AWK"; then
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2853 $as_echo "$AWK" >&6; }
2854 else
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857 fi
2858
2859
2860   test -n "$AWK" && break
2861 done
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2864 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2865 set x ${MAKE-make}
2866 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2867 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   cat >conftest.make <<\_ACEOF
2871 SHELL = /bin/sh
2872 all:
2873         @echo '@@@%%%=$(MAKE)=@@@%%%'
2874 _ACEOF
2875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2877   *@@@%%%=?*=@@@%%%*)
2878     eval ac_cv_prog_make_${ac_make}_set=yes;;
2879   *)
2880     eval ac_cv_prog_make_${ac_make}_set=no;;
2881 esac
2882 rm -f conftest.make
2883 fi
2884 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886 $as_echo "yes" >&6; }
2887   SET_MAKE=
2888 else
2889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891   SET_MAKE="MAKE=${MAKE-make}"
2892 fi
2893
2894 rm -rf .tst 2>/dev/null
2895 mkdir .tst 2>/dev/null
2896 if test -d .tst; then
2897   am__leading_dot=.
2898 else
2899   am__leading_dot=_
2900 fi
2901 rmdir .tst 2>/dev/null
2902
2903 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2904   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2905   # is not polluted with repeated "-I."
2906   am__isrc=' -I$(srcdir)'
2907   # test to see if srcdir already configured
2908   if test -f $srcdir/config.status; then
2909     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2910   fi
2911 fi
2912
2913 # test whether we have cygpath
2914 if test -z "$CYGPATH_W"; then
2915   if (cygpath --version) >/dev/null 2>/dev/null; then
2916     CYGPATH_W='cygpath -w'
2917   else
2918     CYGPATH_W=echo
2919   fi
2920 fi
2921
2922
2923 # Define the identity of the package.
2924  PACKAGE='libgo'
2925  VERSION='version-unused'
2926
2927
2928 # Some tools Automake needs.
2929
2930 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2931
2932
2933 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2934
2935
2936 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2937
2938
2939 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2940
2941
2942 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2943
2944 # We need awk for the "check" target.  The system "awk" is bad on
2945 # some platforms.
2946 # Always define AMTAR for backward compatibility.
2947
2948 AMTAR=${AMTAR-"${am_missing_run}tar"}
2949
2950 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 if test -n "$ac_tool_prefix"; then
2967   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$CC"; then
2975   ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     for ac_exec_ext in '' $ac_executable_extensions; do
2983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989   done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003
3004 fi
3005 if test -z "$ac_cv_prog_CC"; then
3006   ac_ct_CC=$CC
3007   # Extract the first word of "gcc", so it can be a program name with args.
3008 set dummy gcc; 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_ac_ct_CC+set}" = set; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$ac_ct_CC"; then
3015   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043   if test "x$ac_ct_CC" = x; then
3044     CC=""
3045   else
3046     case $cross_compiling:$ac_tool_warned in
3047 yes:)
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3051 esac
3052     CC=$ac_ct_CC
3053   fi
3054 else
3055   CC="$ac_cv_prog_CC"
3056 fi
3057
3058 if test -z "$CC"; then
3059           if test -n "$ac_tool_prefix"; then
3060     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   if test -n "$CC"; then
3068   ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075     for ac_exec_ext in '' $ac_executable_extensions; do
3076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077     ac_cv_prog_CC="${ac_tool_prefix}cc"
3078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082   done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097   fi
3098 fi
3099 if test -z "$CC"; then
3100   # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_CC+set}" = set; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test -n "$CC"; then
3108   ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110   ac_prog_rejected=no
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114   IFS=$as_save_IFS
3115   test -z "$as_dir" && as_dir=.
3116     for ac_exec_ext in '' $ac_executable_extensions; do
3117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119        ac_prog_rejected=yes
3120        continue
3121      fi
3122     ac_cv_prog_CC="cc"
3123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127   done
3128 IFS=$as_save_IFS
3129
3130 if test $ac_prog_rejected = yes; then
3131   # We found a bogon in the path, so make sure we never use it.
3132   set dummy $ac_cv_prog_CC
3133   shift
3134   if test $# != 0; then
3135     # We chose a different compiler from the bogus one.
3136     # However, it has the same basename, so the bogon will be chosen
3137     # first if we set CC to just the basename; use the full file name.
3138     shift
3139     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3140   fi
3141 fi
3142 fi
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$CC"; then
3156   if test -n "$ac_tool_prefix"; then
3157   for ac_prog in cl.exe
3158   do
3159     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   if test -n "$CC"; then
3167   ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174     for ac_exec_ext in '' $ac_executable_extensions; do
3175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196     test -n "$CC" && break
3197   done
3198 fi
3199 if test -z "$CC"; then
3200   ac_ct_CC=$CC
3201   for ac_prog in cl.exe
3202 do
3203   # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   if test -n "$ac_ct_CC"; then
3211   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218     for ac_exec_ext in '' $ac_executable_extensions; do
3219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220     ac_cv_prog_ac_ct_CC="$ac_prog"
3221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225   done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240   test -n "$ac_ct_CC" && break
3241 done
3242
3243   if test "x$ac_ct_CC" = x; then
3244     CC=""
3245   else
3246     case $cross_compiling:$ac_tool_warned in
3247 yes:)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3251 esac
3252     CC=$ac_ct_CC
3253   fi
3254 fi
3255
3256 fi
3257
3258
3259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error "no acceptable C compiler found in \$PATH
3262 See \`config.log' for more details." "$LINENO" 5; }
3263
3264 # Provide some information about the compiler.
3265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266 set X $ac_compile
3267 ac_compiler=$2
3268 for ac_option in --version -v -V -qversion; do
3269   { { ac_try="$ac_compiler $ac_option >&5"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3277   ac_status=$?
3278   if test -s conftest.err; then
3279     sed '10a\
3280 ... rest of stderr output deleted ...
3281          10q' conftest.err >conftest.er1
3282     cat conftest.er1 >&5
3283     rm -f conftest.er1 conftest.err
3284   fi
3285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286   test $ac_status = 0; }
3287 done
3288
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h.  */
3291
3292 int
3293 main ()
3294 {
3295
3296   ;
3297   return 0;
3298 }
3299 _ACEOF
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3304 # of exeext.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3308
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3311
3312 ac_rmfiles=
3313 for ac_file in $ac_files
3314 do
3315   case $ac_file in
3316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318   esac
3319 done
3320 rm -f $ac_rmfiles
3321
3322 if { { ac_try="$ac_link_default"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329   (eval "$ac_link_default") 2>&5
3330   ac_status=$?
3331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332   test $ac_status = 0; }; then :
3333   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3337 # Autoconf.
3338 for ac_file in $ac_files ''
3339 do
3340   test -f "$ac_file" || continue
3341   case $ac_file in
3342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3343         ;;
3344     [ab].out )
3345         # We found the default executable, but exeext='' is most
3346         # certainly right.
3347         break;;
3348     *.* )
3349         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350         then :; else
3351            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352         fi
3353         # We set ac_cv_exeext here because the later test for it is not
3354         # safe: cross compilers may not add the suffix if given an `-o'
3355         # argument, so we may need to know it at that point already.
3356         # Even if this section looks crufty: it has the advantage of
3357         # actually working.
3358         break;;
3359     * )
3360         break;;
3361   esac
3362 done
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3364
3365 else
3366   ac_file=''
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369 $as_echo "$ac_file" >&6; }
3370 if test -z "$ac_file"; then :
3371   $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { as_fn_set_status 77
3377 as_fn_error "C compiler cannot create executables
3378 See \`config.log' for more details." "$LINENO" 5; }; }
3379 fi
3380 ac_exeext=$ac_cv_exeext
3381
3382 # Check that the compiler produces executables we can run.  If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # If not cross compiling, check that we can run a simple program.
3387 if test "$cross_compiling" != yes; then
3388   if { ac_try='./$ac_file'
3389   { { case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_try") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }; }; then
3399     cross_compiling=no
3400   else
3401     if test "$cross_compiling" = maybe; then
3402         cross_compiling=yes
3403     else
3404         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error "cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." "$LINENO" 5; }
3409     fi
3410   fi
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414
3415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run.  If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420 $as_echo_n "checking whether we are cross compiling... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422 $as_echo "$cross_compiling" >&6; }
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442   test -f "$ac_file" || continue
3443   case $ac_file in
3444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446           break;;
3447     * ) break;;
3448   esac
3449 done
3450 else
3451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." "$LINENO" 5; }
3455 fi
3456 rm -f conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3459
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3464 $as_echo_n "checking for suffix of object files... " >&6; }
3465 if test "${ac_cv_objext+set}" = set; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h.  */
3470
3471 int
3472 main ()
3473 {
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 rm -f conftest.o conftest.obj
3480 if { { ac_try="$ac_compile"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487   (eval "$ac_compile") 2>&5
3488   ac_status=$?
3489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490   test $ac_status = 0; }; then :
3491   for ac_file in conftest.o conftest.obj conftest.*; do
3492   test -f "$ac_file" || continue;
3493   case $ac_file in
3494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3495     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3496        break;;
3497   esac
3498 done
3499 else
3500   $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error "cannot compute suffix of object files: cannot compile
3506 See \`config.log' for more details." "$LINENO" 5; }
3507 fi
3508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3511 $as_echo "$ac_cv_objext" >&6; }
3512 OBJEXT=$ac_cv_objext
3513 ac_objext=$OBJEXT
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3516 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3517   $as_echo_n "(cached) " >&6
3518 else
3519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525 #ifndef __GNUC__
3526        choke me
3527 #endif
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534   ac_compiler_gnu=yes
3535 else
3536   ac_compiler_gnu=no
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3544 if test $ac_compiler_gnu = yes; then
3545   GCC=yes
3546 else
3547   GCC=
3548 fi
3549 ac_test_CFLAGS=${CFLAGS+set}
3550 ac_save_CFLAGS=$CFLAGS
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3553 if test "${ac_cv_prog_cc_g+set}" = set; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   ac_save_c_werror_flag=$ac_c_werror_flag
3557    ac_c_werror_flag=yes
3558    ac_cv_prog_cc_g=no
3559    CFLAGS="-g"
3560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h.  */
3562
3563 int
3564 main ()
3565 {
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572   ac_cv_prog_cc_g=yes
3573 else
3574   CFLAGS=""
3575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587
3588 else
3589   ac_c_werror_flag=$ac_save_c_werror_flag
3590          CFLAGS="-g"
3591          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593
3594 int
3595 main ()
3596 {
3597
3598   ;
3599   return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603   ac_cv_prog_cc_g=yes
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610    ac_c_werror_flag=$ac_save_c_werror_flag
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613 $as_echo "$ac_cv_prog_cc_g" >&6; }
3614 if test "$ac_test_CFLAGS" = set; then
3615   CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617   if test "$GCC" = yes; then
3618     CFLAGS="-g -O2"
3619   else
3620     CFLAGS="-g"
3621   fi
3622 else
3623   if test "$GCC" = yes; then
3624     CFLAGS="-O2"
3625   else
3626     CFLAGS=
3627   fi
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3631 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   ac_cv_prog_cc_c89=no
3635 ac_save_CC=$CC
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h.  */
3638 #include <stdarg.h>
3639 #include <stdio.h>
3640 #include <sys/types.h>
3641 #include <sys/stat.h>
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3646      char **p;
3647      int i;
3648 {
3649   return p[i];
3650 }
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3652 {
3653   char *s;
3654   va_list v;
3655   va_start (v,p);
3656   s = g (p, va_arg (v,int));
3657   va_end (v);
3658   return s;
3659 }
3660
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3662    function prototypes and stuff, but not '\xHH' hex character constants.
3663    These don't provoke an error unfortunately, instead are silently treated
3664    as 'x'.  The following induces an error, until -std is added to get
3665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3666    array size at least.  It's necessary to write '\x00'==0 to get something
3667    that's true only with -std.  */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669
3670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671    inside strings and character constants.  */
3672 #define FOO(x) 'x'
3673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3674
3675 int test (int i, double x);
3676 struct s1 {int (*f) (int a);};
3677 struct s2 {int (*f) (double a);};
3678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679 int argc;
3680 char **argv;
3681 int
3682 main ()
3683 {
3684 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3691 do
3692   CC="$ac_save_CC $ac_arg"
3693   if ac_fn_c_try_compile "$LINENO"; then :
3694   ac_cv_prog_cc_c89=$ac_arg
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext
3697   test "x$ac_cv_prog_cc_c89" != "xno" && break
3698 done
3699 rm -f conftest.$ac_ext
3700 CC=$ac_save_CC
3701
3702 fi
3703 # AC_CACHE_VAL
3704 case "x$ac_cv_prog_cc_c89" in
3705   x)
3706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707 $as_echo "none needed" >&6; } ;;
3708   xno)
3709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710 $as_echo "unsupported" >&6; } ;;
3711   *)
3712     CC="$CC $ac_cv_prog_cc_c89"
3713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3715 esac
3716 if test "x$ac_cv_prog_cc_c89" != xno; then :
3717
3718 fi
3719
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 DEPDIR="${am__leading_dot}deps"
3726
3727 ac_config_commands="$ac_config_commands depfiles"
3728
3729
3730 am_make=${MAKE-make}
3731 cat > confinc << 'END'
3732 am__doit:
3733         @echo this is the am__doit target
3734 .PHONY: am__doit
3735 END
3736 # If we don't find an include directive, just comment out the code.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3738 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3739 am__include="#"
3740 am__quote=
3741 _am_result=none
3742 # First try GNU make style include.
3743 echo "include confinc" > confmf
3744 # Ignore all kinds of additional output from `make'.
3745 case `$am_make -s -f confmf 2> /dev/null` in #(
3746 *the\ am__doit\ target*)
3747   am__include=include
3748   am__quote=
3749   _am_result=GNU
3750   ;;
3751 esac
3752 # Now try BSD make style include.
3753 if test "$am__include" = "#"; then
3754    echo '.include "confinc"' > confmf
3755    case `$am_make -s -f confmf 2> /dev/null` in #(
3756    *the\ am__doit\ target*)
3757      am__include=.include
3758      am__quote="\""
3759      _am_result=BSD
3760      ;;
3761    esac
3762 fi
3763
3764
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3766 $as_echo "$_am_result" >&6; }
3767 rm -f confinc confmf
3768
3769 # Check whether --enable-dependency-tracking was given.
3770 if test "${enable_dependency_tracking+set}" = set; then :
3771   enableval=$enable_dependency_tracking;
3772 fi
3773
3774 if test "x$enable_dependency_tracking" != xno; then
3775   am_depcomp="$ac_aux_dir/depcomp"
3776   AMDEPBACKSLASH='\'
3777 fi
3778  if test "x$enable_dependency_tracking" != xno; then
3779   AMDEP_TRUE=
3780   AMDEP_FALSE='#'
3781 else
3782   AMDEP_TRUE='#'
3783   AMDEP_FALSE=
3784 fi
3785
3786
3787
3788 depcc="$CC"   am_compiler_list=
3789
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3791 $as_echo_n "checking dependency style of $depcc... " >&6; }
3792 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3796   # We make a subdir and do the tests there.  Otherwise we can end up
3797   # making bogus files that we don't know about and never remove.  For
3798   # instance it was reported that on HP-UX the gcc test will end up
3799   # making a dummy file named `D' -- because `-MD' means `put the output
3800   # in D'.
3801   mkdir conftest.dir
3802   # Copy depcomp to subdir because otherwise we won't find it if we're
3803   # using a relative directory.
3804   cp "$am_depcomp" conftest.dir
3805   cd conftest.dir
3806   # We will build objects and dependencies in a subdirectory because
3807   # it helps to detect inapplicable dependency modes.  For instance
3808   # both Tru64's cc and ICC support -MD to output dependencies as a
3809   # side effect of compilation, but ICC will put the dependencies in
3810   # the current directory while Tru64 will put them in the object
3811   # directory.
3812   mkdir sub
3813
3814   am_cv_CC_dependencies_compiler_type=none
3815   if test "$am_compiler_list" = ""; then
3816      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817   fi
3818   am__universal=false
3819   case " $depcc " in #(
3820      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3821      esac
3822
3823   for depmode in $am_compiler_list; do
3824     # Setup a source with many dependencies, because some compilers
3825     # like to wrap large dependency lists on column 80 (with \), and
3826     # we should not choose a depcomp mode which is confused by this.
3827     #
3828     # We need to recreate these files for each test, as the compiler may
3829     # overwrite some of them when testing with obscure command lines.
3830     # This happens at least with the AIX C compiler.
3831     : > sub/conftest.c
3832     for i in 1 2 3 4 5 6; do
3833       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3835       # Solaris 8's {/usr,}/bin/sh.
3836       touch sub/conftst$i.h
3837     done
3838     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3839
3840     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3841     # mode.  It turns out that the SunPro C++ compiler does not properly
3842     # handle `-M -o', and we need to detect this.  Also, some Intel
3843     # versions had trouble with output in subdirs
3844     am__obj=sub/conftest.${OBJEXT-o}
3845     am__minus_obj="-o $am__obj"
3846     case $depmode in
3847     gcc)
3848       # This depmode causes a compiler race in universal mode.
3849       test "$am__universal" = false || continue
3850       ;;
3851     nosideeffect)
3852       # after this tag, mechanisms are not by side-effect, so they'll
3853       # only be used when explicitly requested
3854       if test "x$enable_dependency_tracking" = xyes; then
3855         continue
3856       else
3857         break
3858       fi
3859       ;;
3860     msvisualcpp | msvcmsys)
3861       # This compiler won't grok `-c -o', but also, the minuso test has
3862       # not run yet.  These depmodes are late enough in the game, and
3863       # so weak that their functioning should not be impacted.
3864       am__obj=conftest.${OBJEXT-o}
3865       am__minus_obj=
3866       ;;
3867     none) break ;;
3868     esac
3869     if depmode=$depmode \
3870        source=sub/conftest.c object=$am__obj \
3871        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3872        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3873          >/dev/null 2>conftest.err &&
3874        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3875        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3876        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3877        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3878       # icc doesn't choke on unknown options, it will just issue warnings
3879       # or remarks (even with -Werror).  So we grep stderr for any message
3880       # that says an option was ignored or not supported.
3881       # When given -MP, icc 7.0 and 7.1 complain thusly:
3882       #   icc: Command line warning: ignoring option '-M'; no argument required
3883       # The diagnosis changed in icc 8.0:
3884       #   icc: Command line remark: option '-MP' not supported
3885       if (grep 'ignoring option' conftest.err ||
3886           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3887         am_cv_CC_dependencies_compiler_type=$depmode
3888         break
3889       fi
3890     fi
3891   done
3892
3893   cd ..
3894   rm -rf conftest.dir
3895 else
3896   am_cv_CC_dependencies_compiler_type=none
3897 fi
3898
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3901 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903
3904  if
3905   test "x$enable_dependency_tracking" != xno \
3906   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3907   am__fastdepCC_TRUE=
3908   am__fastdepCC_FALSE='#'
3909 else
3910   am__fastdepCC_TRUE='#'
3911   am__fastdepCC_FALSE=
3912 fi
3913
3914
3915 ac_ext=go
3916 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3917 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compile_gnu=yes
3919 if test -n "$ac_tool_prefix"; then
3920   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_GOC+set}" = set; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -n "$GOC"; then
3928   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935     for ac_exec_ext in '' $ac_executable_extensions; do
3936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942   done
3943 IFS=$as_save_IFS
3944
3945 fi
3946 fi
3947 GOC=$ac_cv_prog_GOC
3948 if test -n "$GOC"; then
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3950 $as_echo "$GOC" >&6; }
3951 else
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956
3957 fi
3958 if test -z "$ac_cv_prog_GOC"; then
3959   ac_ct_GOC=$GOC
3960   # Extract the first word of "gccgo", so it can be a program name with args.
3961 set dummy gccgo; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if test -n "$ac_ct_GOC"; then
3968   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975     for ac_exec_ext in '' $ac_executable_extensions; do
3976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977     ac_cv_prog_ac_ct_GOC="gccgo"
3978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982   done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3988 if test -n "$ac_ct_GOC"; then
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3990 $as_echo "$ac_ct_GOC" >&6; }
3991 else
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996   if test "x$ac_ct_GOC" = x; then
3997     GOC=""
3998   else
3999     case $cross_compiling:$ac_tool_warned in
4000 yes:)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4004 esac
4005     GOC=$ac_ct_GOC
4006   fi
4007 else
4008   GOC="$ac_cv_prog_GOC"
4009 fi
4010
4011 if test -z "$GOC"; then
4012   if test -n "$ac_tool_prefix"; then
4013     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_prog_GOC+set}" = set; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   if test -n "$GOC"; then
4021   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028     for ac_exec_ext in '' $ac_executable_extensions; do
4029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032     break 2
4033   fi
4034 done
4035   done
4036 IFS=$as_save_IFS
4037
4038 fi
4039 fi
4040 GOC=$ac_cv_prog_GOC
4041 if test -n "$GOC"; then
4042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4043 $as_echo "$GOC" >&6; }
4044 else
4045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4047 fi
4048
4049
4050   fi
4051 fi
4052 if test -z "$GOC"; then
4053   # Extract the first word of "gccgo", so it can be a program name with args.
4054 set dummy gccgo; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_GOC+set}" = set; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -n "$GOC"; then
4061   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4062 else
4063   ac_prog_rejected=no
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067   IFS=$as_save_IFS
4068   test -z "$as_dir" && as_dir=.
4069     for ac_exec_ext in '' $ac_executable_extensions; do
4070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4072        ac_prog_rejected=yes
4073        continue
4074      fi
4075     ac_cv_prog_GOC="gccgo"
4076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077     break 2
4078   fi
4079 done
4080   done
4081 IFS=$as_save_IFS
4082
4083 if test $ac_prog_rejected = yes; then
4084   # We found a bogon in the path, so make sure we never use it.
4085   set dummy $ac_cv_prog_GOC
4086   shift
4087   if test $# != 0; then
4088     # We chose a different compiler from the bogus one.
4089     # However, it has the same basename, so the bogon will be chosen
4090     # first if we set GOC to just the basename; use the full file name.
4091     shift
4092     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4093   fi
4094 fi
4095 fi
4096 fi
4097 GOC=$ac_cv_prog_GOC
4098 if test -n "$GOC"; then
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4100 $as_echo "$GOC" >&6; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106
4107 fi
4108
4109
4110 # Provide some information about the compiler.
4111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4112 set X $ac_compile
4113 ac_compiler=$2
4114 { { ac_try="$ac_compiler --version >&5"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121   (eval "$ac_compiler --version >&5") 2>conftest.err
4122   ac_status=$?
4123   if test -s conftest.err; then
4124     sed '10a\
4125 ... rest of stderr output deleted ...
4126          10q' conftest.err >conftest.er1
4127     cat conftest.er1 >&5
4128     rm -f conftest.er1 conftest.err
4129   fi
4130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131   test $ac_status = 0; }
4132 GOCFLAGS="-g -O2"
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139
4140
4141
4142
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4145 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4146     # Check whether --enable-maintainer-mode was given.
4147 if test "${enable_maintainer_mode+set}" = set; then :
4148   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4149 else
4150   USE_MAINTAINER_MODE=no
4151 fi
4152
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4154 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4155    if test $USE_MAINTAINER_MODE = yes; then
4156   MAINTAINER_MODE_TRUE=
4157   MAINTAINER_MODE_FALSE='#'
4158 else
4159   MAINTAINER_MODE_TRUE='#'
4160   MAINTAINER_MODE_FALSE=
4161 fi
4162
4163   MAINT=$MAINTAINER_MODE_TRUE
4164
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4168 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4169 if test "${ac_cv_path_SED+set}" = set; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4173      for ac_i in 1 2 3 4 5 6 7; do
4174        ac_script="$ac_script$as_nl$ac_script"
4175      done
4176      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4177      { ac_script=; unset ac_script;}
4178      if test -z "$SED"; then
4179   ac_path_SED_found=false
4180   # Loop through the user's path and test for each of PROGNAME-LIST
4181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_prog in sed gsed; do
4187     for ac_exec_ext in '' $ac_executable_extensions; do
4188       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4189       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4190 # Check for GNU ac_path_SED and select it if it is found.
4191   # Check for GNU $ac_path_SED
4192 case `"$ac_path_SED" --version 2>&1` in
4193 *GNU*)
4194   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4195 *)
4196   ac_count=0
4197   $as_echo_n 0123456789 >"conftest.in"
4198   while :
4199   do
4200     cat "conftest.in" "conftest.in" >"conftest.tmp"
4201     mv "conftest.tmp" "conftest.in"
4202     cp "conftest.in" "conftest.nl"
4203     $as_echo '' >> "conftest.nl"
4204     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206     as_fn_arith $ac_count + 1 && ac_count=$as_val
4207     if test $ac_count -gt ${ac_path_SED_max-0}; then
4208       # Best one so far, save it but keep looking for a better one
4209       ac_cv_path_SED="$ac_path_SED"
4210       ac_path_SED_max=$ac_count
4211     fi
4212     # 10*(2^10) chars as input seems more than enough
4213     test $ac_count -gt 10 && break
4214   done
4215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4217
4218       $ac_path_SED_found && break 3
4219     done
4220   done
4221   done
4222 IFS=$as_save_IFS
4223   if test -z "$ac_cv_path_SED"; then
4224     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4225   fi
4226 else
4227   ac_cv_path_SED=$SED
4228 fi
4229
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4232 $as_echo "$ac_cv_path_SED" >&6; }
4233  SED="$ac_cv_path_SED"
4234   rm -f conftest.sed
4235
4236 test -z "$SED" && SED=sed
4237 Xsed="$SED -e 1s/^X//"
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4250 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4251 if test "${ac_cv_path_GREP+set}" = set; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   if test -z "$GREP"; then
4255   ac_path_GREP_found=false
4256   # Loop through the user's path and test for each of PROGNAME-LIST
4257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262     for ac_prog in grep ggrep; do
4263     for ac_exec_ext in '' $ac_executable_extensions; do
4264       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4265       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4266 # Check for GNU ac_path_GREP and select it if it is found.
4267   # Check for GNU $ac_path_GREP
4268 case `"$ac_path_GREP" --version 2>&1` in
4269 *GNU*)
4270   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4271 *)
4272   ac_count=0
4273   $as_echo_n 0123456789 >"conftest.in"
4274   while :
4275   do
4276     cat "conftest.in" "conftest.in" >"conftest.tmp"
4277     mv "conftest.tmp" "conftest.in"
4278     cp "conftest.in" "conftest.nl"
4279     $as_echo 'GREP' >> "conftest.nl"
4280     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282     as_fn_arith $ac_count + 1 && ac_count=$as_val
4283     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4284       # Best one so far, save it but keep looking for a better one
4285       ac_cv_path_GREP="$ac_path_GREP"
4286       ac_path_GREP_max=$ac_count
4287     fi
4288     # 10*(2^10) chars as input seems more than enough
4289     test $ac_count -gt 10 && break
4290   done
4291   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 esac
4293
4294       $ac_path_GREP_found && break 3
4295     done
4296   done
4297   done
4298 IFS=$as_save_IFS
4299   if test -z "$ac_cv_path_GREP"; then
4300     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301   fi
4302 else
4303   ac_cv_path_GREP=$GREP
4304 fi
4305
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4308 $as_echo "$ac_cv_path_GREP" >&6; }
4309  GREP="$ac_cv_path_GREP"
4310
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4313 $as_echo_n "checking for egrep... " >&6; }
4314 if test "${ac_cv_path_EGREP+set}" = set; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4318    then ac_cv_path_EGREP="$GREP -E"
4319    else
4320      if test -z "$EGREP"; then
4321   ac_path_EGREP_found=false
4322   # Loop through the user's path and test for each of PROGNAME-LIST
4323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328     for ac_prog in egrep; do
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4331       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4332 # Check for GNU ac_path_EGREP and select it if it is found.
4333   # Check for GNU $ac_path_EGREP
4334 case `"$ac_path_EGREP" --version 2>&1` in
4335 *GNU*)
4336   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4337 *)
4338   ac_count=0
4339   $as_echo_n 0123456789 >"conftest.in"
4340   while :
4341   do
4342     cat "conftest.in" "conftest.in" >"conftest.tmp"
4343     mv "conftest.tmp" "conftest.in"
4344     cp "conftest.in" "conftest.nl"
4345     $as_echo 'EGREP' >> "conftest.nl"
4346     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348     as_fn_arith $ac_count + 1 && ac_count=$as_val
4349     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4350       # Best one so far, save it but keep looking for a better one
4351       ac_cv_path_EGREP="$ac_path_EGREP"
4352       ac_path_EGREP_max=$ac_count
4353     fi
4354     # 10*(2^10) chars as input seems more than enough
4355     test $ac_count -gt 10 && break
4356   done
4357   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 esac
4359
4360       $ac_path_EGREP_found && break 3
4361     done
4362   done
4363   done
4364 IFS=$as_save_IFS
4365   if test -z "$ac_cv_path_EGREP"; then
4366     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367   fi
4368 else
4369   ac_cv_path_EGREP=$EGREP
4370 fi
4371
4372    fi
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4375 $as_echo "$ac_cv_path_EGREP" >&6; }
4376  EGREP="$ac_cv_path_EGREP"
4377
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4380 $as_echo_n "checking for fgrep... " >&6; }
4381 if test "${ac_cv_path_FGREP+set}" = set; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4385    then ac_cv_path_FGREP="$GREP -F"
4386    else
4387      if test -z "$FGREP"; then
4388   ac_path_FGREP_found=false
4389   # Loop through the user's path and test for each of PROGNAME-LIST
4390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395     for ac_prog in fgrep; do
4396     for ac_exec_ext in '' $ac_executable_extensions; do
4397       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4398       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4399 # Check for GNU ac_path_FGREP and select it if it is found.
4400   # Check for GNU $ac_path_FGREP
4401 case `"$ac_path_FGREP" --version 2>&1` in
4402 *GNU*)
4403   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4404 *)
4405   ac_count=0
4406   $as_echo_n 0123456789 >"conftest.in"
4407   while :
4408   do
4409     cat "conftest.in" "conftest.in" >"conftest.tmp"
4410     mv "conftest.tmp" "conftest.in"
4411     cp "conftest.in" "conftest.nl"
4412     $as_echo 'FGREP' >> "conftest.nl"
4413     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415     as_fn_arith $ac_count + 1 && ac_count=$as_val
4416     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4417       # Best one so far, save it but keep looking for a better one
4418       ac_cv_path_FGREP="$ac_path_FGREP"
4419       ac_path_FGREP_max=$ac_count
4420     fi
4421     # 10*(2^10) chars as input seems more than enough
4422     test $ac_count -gt 10 && break
4423   done
4424   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 esac
4426
4427       $ac_path_FGREP_found && break 3
4428     done
4429   done
4430   done
4431 IFS=$as_save_IFS
4432   if test -z "$ac_cv_path_FGREP"; then
4433     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434   fi
4435 else
4436   ac_cv_path_FGREP=$FGREP
4437 fi
4438
4439    fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4442 $as_echo "$ac_cv_path_FGREP" >&6; }
4443  FGREP="$ac_cv_path_FGREP"
4444
4445
4446 test -z "$GREP" && GREP=grep
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4465 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4466 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4469 $as_echo_n "checking how to print strings... " >&6; }
4470 # Test print first, because it will be a builtin if present.
4471 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4472    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4473   ECHO='print -r --'
4474 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4475   ECHO='printf %s\n'
4476 else
4477   # Use this function as a fallback that always works.
4478   func_fallback_echo ()
4479   {
4480     eval 'cat <<_LTECHO_EOF
4481 $1
4482 _LTECHO_EOF'
4483   }
4484   ECHO='func_fallback_echo'
4485 fi
4486
4487 # func_echo_all arg...
4488 # Invoke $ECHO with all args, space-separated.
4489 func_echo_all ()
4490 {
4491     $ECHO ""
4492 }
4493
4494 case "$ECHO" in
4495   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4496 $as_echo "printf" >&6; } ;;
4497   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4498 $as_echo "print -r" >&6; } ;;
4499   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4500 $as_echo "cat" >&6; } ;;
4501 esac
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 # Check whether --with-gnu-ld was given.
4519 if test "${with_gnu_ld+set}" = set; then :
4520   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4521 else
4522   with_gnu_ld=no
4523 fi
4524
4525 ac_prog=ld
4526 if test "$GCC" = yes; then
4527   # Check if gcc -print-prog-name=ld gives a path.
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4529 $as_echo_n "checking for ld used by $CC... " >&6; }
4530   case $host in
4531   *-*-mingw*)
4532     # gcc leaves a trailing carriage return which upsets mingw
4533     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4534   *)
4535     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4536   esac
4537   case $ac_prog in
4538     # Accept absolute paths.
4539     [\\/]* | ?:[\\/]*)
4540       re_direlt='/[^/][^/]*/\.\./'
4541       # Canonicalize the pathname of ld
4542       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4543       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4544         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4545       done
4546       test -z "$LD" && LD="$ac_prog"
4547       ;;
4548   "")
4549     # If it fails, then pretend we aren't using GCC.
4550     ac_prog=ld
4551     ;;
4552   *)
4553     # If it is relative, then search for the first ld in PATH.
4554     with_gnu_ld=unknown
4555     ;;
4556   esac
4557 elif test "$with_gnu_ld" = yes; then
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4559 $as_echo_n "checking for GNU ld... " >&6; }
4560 else
4561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4562 $as_echo_n "checking for non-GNU ld... " >&6; }
4563 fi
4564 if test "${lt_cv_path_LD+set}" = set; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   if test -z "$LD"; then
4568   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4569   for ac_dir in $PATH; do
4570     IFS="$lt_save_ifs"
4571     test -z "$ac_dir" && ac_dir=.
4572     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4573       lt_cv_path_LD="$ac_dir/$ac_prog"
4574       # Check to see if the program is GNU ld.  I'd rather use --version,
4575       # but apparently some variants of GNU ld only accept -v.
4576       # Break only if it was the GNU/non-GNU ld that we prefer.
4577       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4578       *GNU* | *'with BFD'*)
4579         test "$with_gnu_ld" != no && break
4580         ;;
4581       *)
4582         test "$with_gnu_ld" != yes && break
4583         ;;
4584       esac
4585     fi
4586   done
4587   IFS="$lt_save_ifs"
4588 else
4589   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4590 fi
4591 fi
4592
4593 LD="$lt_cv_path_LD"
4594 if test -n "$LD"; then
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4596 $as_echo "$LD" >&6; }
4597 else
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4603 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4604 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4608 case `$LD -v 2>&1 </dev/null` in
4609 *GNU* | *'with BFD'*)
4610   lt_cv_prog_gnu_ld=yes
4611   ;;
4612 *)
4613   lt_cv_prog_gnu_ld=no
4614   ;;
4615 esac
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4618 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4619 with_gnu_ld=$lt_cv_prog_gnu_ld
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629 if test -n "$ac_tool_prefix"; then
4630   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   if test -n "$RANLIB"; then
4638   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645     for ac_exec_ext in '' $ac_executable_extensions; do
4646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649     break 2
4650   fi
4651 done
4652   done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 RANLIB=$ac_cv_prog_RANLIB
4658 if test -n "$RANLIB"; then
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4660 $as_echo "$RANLIB" >&6; }
4661 else
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666
4667 fi
4668 if test -z "$ac_cv_prog_RANLIB"; then
4669   ac_ct_RANLIB=$RANLIB
4670   # Extract the first word of "ranlib", so it can be a program name with args.
4671 set dummy ranlib; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4675   $as_echo_n "(cached) " >&6
4676 else
4677   if test -n "$ac_ct_RANLIB"; then
4678   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685     for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_prog_ac_ct_RANLIB="ranlib"
4688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692   done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4698 if test -n "$ac_ct_RANLIB"; then
4699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4700 $as_echo "$ac_ct_RANLIB" >&6; }
4701 else
4702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706   if test "x$ac_ct_RANLIB" = x; then
4707     RANLIB=":"
4708   else
4709     case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715     RANLIB=$ac_ct_RANLIB
4716   fi
4717 else
4718   RANLIB="$ac_cv_prog_RANLIB"
4719 fi
4720
4721 if test -n "$ac_tool_prefix"; then
4722   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   if test -n "$OBJCOPY"; then
4730   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737     for ac_exec_ext in '' $ac_executable_extensions; do
4738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744   done
4745 IFS=$as_save_IFS
4746
4747 fi
4748 fi
4749 OBJCOPY=$ac_cv_prog_OBJCOPY
4750 if test -n "$OBJCOPY"; then
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4752 $as_echo "$OBJCOPY" >&6; }
4753 else
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757
4758
4759 fi
4760 if test -z "$ac_cv_prog_OBJCOPY"; then
4761   ac_ct_OBJCOPY=$OBJCOPY
4762   # Extract the first word of "objcopy", so it can be a program name with args.
4763 set dummy objcopy; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4767   $as_echo_n "(cached) " >&6
4768 else
4769   if test -n "$ac_ct_OBJCOPY"; then
4770   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777     for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784   done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4790 if test -n "$ac_ct_OBJCOPY"; then
4791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4792 $as_echo "$ac_ct_OBJCOPY" >&6; }
4793 else
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798   if test "x$ac_ct_OBJCOPY" = x; then
4799     OBJCOPY="missing-objcopy"
4800   else
4801     case $cross_compiling:$ac_tool_warned in
4802 yes:)
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805 ac_tool_warned=yes ;;
4806 esac
4807     OBJCOPY=$ac_ct_OBJCOPY
4808   fi
4809 else
4810   OBJCOPY="$ac_cv_prog_OBJCOPY"
4811 fi
4812
4813
4814 enable_dlopen=yes
4815
4816
4817
4818 case `pwd` in
4819   *\ * | *\     *)
4820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4822 esac
4823
4824
4825
4826 macro_version='2.2.7a'
4827 macro_revision='1.3134'
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 ltmain="$ac_aux_dir/ltmain.sh"
4842
4843 # Backslashify metacharacters that are still active within
4844 # double-quoted strings.
4845 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4846
4847 # Same as above, but do not quote variable references.
4848 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4849
4850 # Sed substitution to delay expansion of an escaped shell variable in a
4851 # double_quote_subst'ed string.
4852 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4853
4854 # Sed substitution to delay expansion of an escaped single quote.
4855 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4856
4857 # Sed substitution to avoid accidental globbing in evaled expressions
4858 no_glob_subst='s/\*/\\\*/g'
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4861 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4862 if test "${lt_cv_path_NM+set}" = set; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   if test -n "$NM"; then
4866   # Let the user override the test.
4867   lt_cv_path_NM="$NM"
4868 else
4869   lt_nm_to_check="${ac_tool_prefix}nm"
4870   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4871     lt_nm_to_check="$lt_nm_to_check nm"
4872   fi
4873   for lt_tmp_nm in $lt_nm_to_check; do
4874     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4875     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4876       IFS="$lt_save_ifs"
4877       test -z "$ac_dir" && ac_dir=.
4878       tmp_nm="$ac_dir/$lt_tmp_nm"
4879       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4880         # Check to see if the nm accepts a BSD-compat flag.
4881         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4882         #   nm: unknown option "B" ignored
4883         # Tru64's nm complains that /dev/null is an invalid object file
4884         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4885         */dev/null* | *'Invalid file or object type'*)
4886           lt_cv_path_NM="$tmp_nm -B"
4887           break
4888           ;;
4889         *)
4890           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4891           */dev/null*)
4892             lt_cv_path_NM="$tmp_nm -p"
4893             break
4894             ;;
4895           *)
4896             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4897             continue # so that we can try to find one that supports BSD flags
4898             ;;
4899           esac
4900           ;;
4901         esac
4902       fi
4903     done
4904     IFS="$lt_save_ifs"
4905   done
4906   : ${lt_cv_path_NM=no}
4907 fi
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4910 $as_echo "$lt_cv_path_NM" >&6; }
4911 if test "$lt_cv_path_NM" != "no"; then
4912   NM="$lt_cv_path_NM"
4913 else
4914   # Didn't find any BSD compatible name lister, look for dumpbin.
4915   if test -n "$DUMPBIN"; then :
4916     # Let the user override the test.
4917   else
4918     if test -n "$ac_tool_prefix"; then
4919   for ac_prog in dumpbin "link -dump"
4920   do
4921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   if test -n "$DUMPBIN"; then
4929   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 DUMPBIN=$ac_cv_prog_DUMPBIN
4949 if test -n "$DUMPBIN"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4951 $as_echo "$DUMPBIN" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957
4958     test -n "$DUMPBIN" && break
4959   done
4960 fi
4961 if test -z "$DUMPBIN"; then
4962   ac_ct_DUMPBIN=$DUMPBIN
4963   for ac_prog in dumpbin "link -dump"
4964 do
4965   # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4970   $as_echo_n "(cached) " >&6
4971 else
4972   if test -n "$ac_ct_DUMPBIN"; then
4973   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_exec_ext in '' $ac_executable_extensions; do
4981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987   done
4988 IFS=$as_save_IFS
4989
4990 fi
4991 fi
4992 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4993 if test -n "$ac_ct_DUMPBIN"; then
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4995 $as_echo "$ac_ct_DUMPBIN" >&6; }
4996 else
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 fi
5000
5001
5002   test -n "$ac_ct_DUMPBIN" && break
5003 done
5004
5005   if test "x$ac_ct_DUMPBIN" = x; then
5006     DUMPBIN=":"
5007   else
5008     case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014     DUMPBIN=$ac_ct_DUMPBIN
5015   fi
5016 fi
5017
5018     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5019     *COFF*)
5020       DUMPBIN="$DUMPBIN -symbols"
5021       ;;
5022     *)
5023       DUMPBIN=:
5024       ;;
5025     esac
5026   fi
5027
5028   if test "$DUMPBIN" != ":"; then
5029     NM="$DUMPBIN"
5030   fi
5031 fi
5032 test -z "$NM" && NM=nm
5033
5034
5035
5036
5037
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5040 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5041 if test "${lt_cv_nm_interface+set}" = set; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044   lt_cv_nm_interface="BSD nm"
5045   echo "int some_variable = 0;" > conftest.$ac_ext
5046   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5047   (eval "$ac_compile" 2>conftest.err)
5048   cat conftest.err >&5
5049   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5050   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5051   cat conftest.err >&5
5052   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5053   cat conftest.out >&5
5054   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5055     lt_cv_nm_interface="MS dumpbin"
5056   fi
5057   rm -f conftest*
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5060 $as_echo "$lt_cv_nm_interface" >&6; }
5061
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5063 $as_echo_n "checking whether ln -s works... " >&6; }
5064 LN_S=$as_ln_s
5065 if test "$LN_S" = "ln -s"; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5067 $as_echo "yes" >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5070 $as_echo "no, using $LN_S" >&6; }
5071 fi
5072
5073 # find the maximum length of command line arguments
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5075 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5076 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079     i=0
5080   teststring="ABCD"
5081
5082   case $build_os in
5083   msdosdjgpp*)
5084     # On DJGPP, this test can blow up pretty badly due to problems in libc
5085     # (any single argument exceeding 2000 bytes causes a buffer overrun
5086     # during glob expansion).  Even if it were fixed, the result of this
5087     # check would be larger than it should be.
5088     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5089     ;;
5090
5091   gnu*)
5092     # Under GNU Hurd, this test is not required because there is
5093     # no limit to the length of command line arguments.
5094     # Libtool will interpret -1 as no limit whatsoever
5095     lt_cv_sys_max_cmd_len=-1;
5096     ;;
5097
5098   cygwin* | mingw* | cegcc*)
5099     # On Win9x/ME, this test blows up -- it succeeds, but takes
5100     # about 5 minutes as the teststring grows exponentially.
5101     # Worse, since 9x/ME are not pre-emptively multitasking,
5102     # you end up with a "frozen" computer, even though with patience
5103     # the test eventually succeeds (with a max line length of 256k).
5104     # Instead, let's just punt: use the minimum linelength reported by
5105     # all of the supported platforms: 8192 (on NT/2K/XP).
5106     lt_cv_sys_max_cmd_len=8192;
5107     ;;
5108
5109   mint*)
5110     # On MiNT this can take a long time and run out of memory.
5111     lt_cv_sys_max_cmd_len=8192;
5112     ;;
5113
5114   amigaos*)
5115     # On AmigaOS with pdksh, this test takes hours, literally.
5116     # So we just punt and use a minimum line length of 8192.
5117     lt_cv_sys_max_cmd_len=8192;
5118     ;;
5119
5120   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5121     # This has been around since 386BSD, at least.  Likely further.
5122     if test -x /sbin/sysctl; then
5123       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5124     elif test -x /usr/sbin/sysctl; then
5125       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5126     else
5127       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5128     fi
5129     # And add a safety zone
5130     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5131     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5132     ;;
5133
5134   interix*)
5135     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5136     lt_cv_sys_max_cmd_len=196608
5137     ;;
5138
5139   osf*)
5140     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5141     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5142     # nice to cause kernel panics so lets avoid the loop below.
5143     # First set a reasonable default.
5144     lt_cv_sys_max_cmd_len=16384
5145     #
5146     if test -x /sbin/sysconfig; then
5147       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5148         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5149       esac
5150     fi
5151     ;;
5152   sco3.2v5*)
5153     lt_cv_sys_max_cmd_len=102400
5154     ;;
5155   sysv5* | sco5v6* | sysv4.2uw2*)
5156     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5157     if test -n "$kargmax"; then
5158       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5159     else
5160       lt_cv_sys_max_cmd_len=32768
5161     fi
5162     ;;
5163   *)
5164     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5165     if test -n "$lt_cv_sys_max_cmd_len"; then
5166       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5167       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5168     else
5169       # Make teststring a little bigger before we do anything with it.
5170       # a 1K string should be a reasonable start.
5171       for i in 1 2 3 4 5 6 7 8 ; do
5172         teststring=$teststring$teststring
5173       done
5174       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5175       # If test is not a shell built-in, we'll probably end up computing a
5176       # maximum length that is only half of the actual maximum length, but
5177       # we can't tell.
5178       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5179                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5180               test $i != 17 # 1/2 MB should be enough
5181       do
5182         i=`expr $i + 1`
5183         teststring=$teststring$teststring
5184       done
5185       # Only check the string length outside the loop.
5186       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5187       teststring=
5188       # Add a significant safety factor because C++ compilers can tack on
5189       # massive amounts of additional arguments before passing them to the
5190       # linker.  It appears as though 1/2 is a usable value.
5191       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5192     fi
5193     ;;
5194   esac
5195
5196 fi
5197
5198 if test -n $lt_cv_sys_max_cmd_len ; then
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5200 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5201 else
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5203 $as_echo "none" >&6; }
5204 fi
5205 max_cmd_len=$lt_cv_sys_max_cmd_len
5206
5207
5208
5209
5210
5211
5212 : ${CP="cp -f"}
5213 : ${MV="mv -f"}
5214 : ${RM="rm -f"}
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5217 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5218 # Try some XSI features
5219 xsi_shell=no
5220 ( _lt_dummy="a/b/c"
5221   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5222       = c,a/b,, \
5223     && eval 'test $(( 1 + 1 )) -eq 2 \
5224     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5225   && xsi_shell=yes
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5227 $as_echo "$xsi_shell" >&6; }
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5231 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5232 lt_shell_append=no
5233 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5234     >/dev/null 2>&1 \
5235   && lt_shell_append=yes
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5237 $as_echo "$lt_shell_append" >&6; }
5238
5239
5240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5241   lt_unset=unset
5242 else
5243   lt_unset=false
5244 fi
5245
5246
5247
5248
5249
5250 # test EBCDIC or ASCII
5251 case `echo X|tr X '\101'` in
5252  A) # ASCII based system
5253     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5254   lt_SP2NL='tr \040 \012'
5255   lt_NL2SP='tr \015\012 \040\040'
5256   ;;
5257  *) # EBCDIC based system
5258   lt_SP2NL='tr \100 \n'
5259   lt_NL2SP='tr \r\n \100\100'
5260   ;;
5261 esac
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5272 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5273 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   lt_cv_ld_reload_flag='-r'
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5279 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5280 reload_flag=$lt_cv_ld_reload_flag
5281 case $reload_flag in
5282 "" | " "*) ;;
5283 *) reload_flag=" $reload_flag" ;;
5284 esac
5285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5286 case $host_os in
5287   darwin*)
5288     if test "$GCC" = yes; then
5289       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5290     else
5291       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5292     fi
5293     ;;
5294 esac
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304 if test -n "$ac_tool_prefix"; then
5305   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   if test -n "$OBJDUMP"; then
5313   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 OBJDUMP=$ac_cv_prog_OBJDUMP
5333 if test -n "$OBJDUMP"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5335 $as_echo "$OBJDUMP" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 fi
5343 if test -z "$ac_cv_prog_OBJDUMP"; then
5344   ac_ct_OBJDUMP=$OBJDUMP
5345   # Extract the first word of "objdump", so it can be a program name with args.
5346 set dummy objdump; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   if test -n "$ac_ct_OBJDUMP"; then
5353   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5373 if test -n "$ac_ct_OBJDUMP"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5375 $as_echo "$ac_ct_OBJDUMP" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381   if test "x$ac_ct_OBJDUMP" = x; then
5382     OBJDUMP="false"
5383   else
5384     case $cross_compiling:$ac_tool_warned in
5385 yes:)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388 ac_tool_warned=yes ;;
5389 esac
5390     OBJDUMP=$ac_ct_OBJDUMP
5391   fi
5392 else
5393   OBJDUMP="$ac_cv_prog_OBJDUMP"
5394 fi
5395
5396 test -z "$OBJDUMP" && OBJDUMP=objdump
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5407 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5408 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   lt_cv_file_magic_cmd='$MAGIC_CMD'
5412 lt_cv_file_magic_test_file=
5413 lt_cv_deplibs_check_method='unknown'
5414 # Need to set the preceding variable on all platforms that support
5415 # interlibrary dependencies.
5416 # 'none' -- dependencies not supported.
5417 # `unknown' -- same as none, but documents that we really don't know.
5418 # 'pass_all' -- all dependencies passed with no checks.
5419 # 'test_compile' -- check by making test program.
5420 # 'file_magic [[regex]]' -- check by looking for files in library path
5421 # which responds to the $file_magic_cmd with a given extended regex.
5422 # If you have `file' or equivalent on your system and you're not sure
5423 # whether `pass_all' will *always* work, you probably want this one.
5424
5425 case $host_os in
5426 aix[4-9]*)
5427   lt_cv_deplibs_check_method=pass_all
5428   ;;
5429
5430 beos*)
5431   lt_cv_deplibs_check_method=pass_all
5432   ;;
5433
5434 bsdi[45]*)
5435   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5436   lt_cv_file_magic_cmd='/usr/bin/file -L'
5437   lt_cv_file_magic_test_file=/shlib/libc.so
5438   ;;
5439
5440 cygwin*)
5441   # func_win32_libid is a shell function defined in ltmain.sh
5442   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5443   lt_cv_file_magic_cmd='func_win32_libid'
5444   ;;
5445
5446 mingw* | pw32*)
5447   # Base MSYS/MinGW do not provide the 'file' command needed by
5448   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5449   # unless we find 'file', for example because we are cross-compiling.
5450   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5451   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5452     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5453     lt_cv_file_magic_cmd='func_win32_libid'
5454   else
5455     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5456     lt_cv_file_magic_cmd='$OBJDUMP -f'
5457   fi
5458   ;;
5459
5460 cegcc*)
5461   # use the weaker test based on 'objdump'. See mingw*.
5462   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5463   lt_cv_file_magic_cmd='$OBJDUMP -f'
5464   ;;
5465
5466 darwin* | rhapsody*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 freebsd* | dragonfly*)
5471   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5472     case $host_cpu in
5473     i*86 )
5474       # Not sure whether the presence of OpenBSD here was a mistake.
5475       # Let's accept both of them until this is cleared up.
5476       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5477       lt_cv_file_magic_cmd=/usr/bin/file
5478       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5479       ;;
5480     esac
5481   else
5482     lt_cv_deplibs_check_method=pass_all
5483   fi
5484   ;;
5485
5486 gnu*)
5487   lt_cv_deplibs_check_method=pass_all
5488   ;;
5489
5490 haiku*)
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 hpux10.20* | hpux11*)
5495   lt_cv_file_magic_cmd=/usr/bin/file
5496   case $host_cpu in
5497   ia64*)
5498     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5499     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5500     ;;
5501   hppa*64*)
5502     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]'
5503     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5504     ;;
5505   *)
5506     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5507     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5508     ;;
5509   esac
5510   ;;
5511
5512 interix[3-9]*)
5513   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5514   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5515   ;;
5516
5517 irix5* | irix6* | nonstopux*)
5518   case $LD in
5519   *-32|*"-32 ") libmagic=32-bit;;
5520   *-n32|*"-n32 ") libmagic=N32;;
5521   *-64|*"-64 ") libmagic=64-bit;;
5522   *) libmagic=never-match;;
5523   esac
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 # This must be Linux ELF.
5528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5529   lt_cv_deplibs_check_method=pass_all
5530   ;;
5531
5532 netbsd*)
5533   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5534     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5535   else
5536     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5537   fi
5538   ;;
5539
5540 newos6*)
5541   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5542   lt_cv_file_magic_cmd=/usr/bin/file
5543   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5544   ;;
5545
5546 *nto* | *qnx*)
5547   lt_cv_deplibs_check_method=pass_all
5548   ;;
5549
5550 openbsd*)
5551   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5553   else
5554     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5555   fi
5556   ;;
5557
5558 osf3* | osf4* | osf5*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561
5562 rdos*)
5563   lt_cv_deplibs_check_method=pass_all
5564   ;;
5565
5566 solaris*)
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569
5570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 sysv4 | sysv4.3*)
5575   case $host_vendor in
5576   motorola)
5577     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]'
5578     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5579     ;;
5580   ncr)
5581     lt_cv_deplibs_check_method=pass_all
5582     ;;
5583   sequent)
5584     lt_cv_file_magic_cmd='/bin/file'
5585     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5586     ;;
5587   sni)
5588     lt_cv_file_magic_cmd='/bin/file'
5589     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5590     lt_cv_file_magic_test_file=/lib/libc.so
5591     ;;
5592   siemens)
5593     lt_cv_deplibs_check_method=pass_all
5594     ;;
5595   pc)
5596     lt_cv_deplibs_check_method=pass_all
5597     ;;
5598   esac
5599   ;;
5600
5601 tpf*)
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604 esac
5605
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5608 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5609 file_magic_cmd=$lt_cv_file_magic_cmd
5610 deplibs_check_method=$lt_cv_deplibs_check_method
5611 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624 if test -n "$ac_tool_prefix"; then
5625   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5626 set dummy ${ac_tool_prefix}ar; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_AR+set}" = set; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   if test -n "$AR"; then
5633   ac_cv_prog_AR="$AR" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638   IFS=$as_save_IFS
5639   test -z "$as_dir" && as_dir=.
5640     for ac_exec_ext in '' $ac_executable_extensions; do
5641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642     ac_cv_prog_AR="${ac_tool_prefix}ar"
5643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644     break 2
5645   fi
5646 done
5647   done
5648 IFS=$as_save_IFS
5649
5650 fi
5651 fi
5652 AR=$ac_cv_prog_AR
5653 if test -n "$AR"; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5655 $as_echo "$AR" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661
5662 fi
5663 if test -z "$ac_cv_prog_AR"; then
5664   ac_ct_AR=$AR
5665   # Extract the first word of "ar", so it can be a program name with args.
5666 set dummy ar; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   if test -n "$ac_ct_AR"; then
5673   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678   IFS=$as_save_IFS
5679   test -z "$as_dir" && as_dir=.
5680     for ac_exec_ext in '' $ac_executable_extensions; do
5681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682     ac_cv_prog_ac_ct_AR="ar"
5683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684     break 2
5685   fi
5686 done
5687   done
5688 IFS=$as_save_IFS
5689
5690 fi
5691 fi
5692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5693 if test -n "$ac_ct_AR"; then
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5695 $as_echo "$ac_ct_AR" >&6; }
5696 else
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5699 fi
5700
5701   if test "x$ac_ct_AR" = x; then
5702     AR="false"
5703   else
5704     case $cross_compiling:$ac_tool_warned in
5705 yes:)
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5709 esac
5710     AR=$ac_ct_AR
5711   fi
5712 else
5713   AR="$ac_cv_prog_AR"
5714 fi
5715
5716 test -z "$AR" && AR=ar
5717 test -z "$AR_FLAGS" && AR_FLAGS=cru
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 if test -n "$ac_tool_prefix"; then
5730   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}strip; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_prog_STRIP+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$STRIP"; then
5738   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 STRIP=$ac_cv_prog_STRIP
5758 if test -n "$STRIP"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5760 $as_echo "$STRIP" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767 fi
5768 if test -z "$ac_cv_prog_STRIP"; then
5769   ac_ct_STRIP=$STRIP
5770   # Extract the first word of "strip", so it can be a program name with args.
5771 set dummy strip; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if test -n "$ac_ct_STRIP"; then
5778   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785     for ac_exec_ext in '' $ac_executable_extensions; do
5786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787     ac_cv_prog_ac_ct_STRIP="strip"
5788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789     break 2
5790   fi
5791 done
5792   done
5793 IFS=$as_save_IFS
5794
5795 fi
5796 fi
5797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5798 if test -n "$ac_ct_STRIP"; then
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5800 $as_echo "$ac_ct_STRIP" >&6; }
5801 else
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 fi
5805
5806   if test "x$ac_ct_STRIP" = x; then
5807     STRIP=":"
5808   else
5809     case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815     STRIP=$ac_ct_STRIP
5816   fi
5817 else
5818   STRIP="$ac_cv_prog_STRIP"
5819 fi
5820
5821 test -z "$STRIP" && STRIP=:
5822
5823
5824
5825
5826
5827
5828 if test -n "$ac_tool_prefix"; then
5829   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -n "$RANLIB"; then
5837   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 RANLIB=$ac_cv_prog_RANLIB
5857 if test -n "$RANLIB"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5859 $as_echo "$RANLIB" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865
5866 fi
5867 if test -z "$ac_cv_prog_RANLIB"; then
5868   ac_ct_RANLIB=$RANLIB
5869   # Extract the first word of "ranlib", so it can be a program name with args.
5870 set dummy ranlib; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if test -n "$ac_ct_RANLIB"; then
5877   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_exec_ext in '' $ac_executable_extensions; do
5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886     ac_cv_prog_ac_ct_RANLIB="ranlib"
5887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891   done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5897 if test -n "$ac_ct_RANLIB"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5899 $as_echo "$ac_ct_RANLIB" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905   if test "x$ac_ct_RANLIB" = x; then
5906     RANLIB=":"
5907   else
5908     case $cross_compiling:$ac_tool_warned in
5909 yes:)
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912 ac_tool_warned=yes ;;
5913 esac
5914     RANLIB=$ac_ct_RANLIB
5915   fi
5916 else
5917   RANLIB="$ac_cv_prog_RANLIB"
5918 fi
5919
5920 test -z "$RANLIB" && RANLIB=:
5921
5922
5923
5924
5925
5926
5927 # Determine commands to create old-style static archives.
5928 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5929 old_postinstall_cmds='chmod 644 $oldlib'
5930 old_postuninstall_cmds=
5931
5932 if test -n "$RANLIB"; then
5933   case $host_os in
5934   openbsd*)
5935     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5936     ;;
5937   *)
5938     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5939     ;;
5940   esac
5941   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5942 fi
5943
5944 case $host_os in
5945   darwin*)
5946     lock_old_archive_extraction=yes ;;
5947   *)
5948     lock_old_archive_extraction=no ;;
5949 esac
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989 # If no C compiler was specified, use CC.
5990 LTCC=${LTCC-"$CC"}
5991
5992 # If no C compiler flags were specified, use CFLAGS.
5993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5994
5995 # Allow CC to be a program name with arguments.
5996 compiler=$CC
5997
5998
5999 # Check for command to grab the raw symbol name followed by C symbol from nm.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6001 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6002 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005
6006 # These are sane defaults that work on at least a few old systems.
6007 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6008
6009 # Character class describing NM global symbol codes.
6010 symcode='[BCDEGRST]'
6011
6012 # Regexp to match symbols that can be accessed directly from C.
6013 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6014
6015 # Define system-specific variables.
6016 case $host_os in
6017 aix*)
6018   symcode='[BCDT]'
6019   ;;
6020 cygwin* | mingw* | pw32* | cegcc*)
6021   symcode='[ABCDGISTW]'
6022   ;;
6023 hpux*)
6024   if test "$host_cpu" = ia64; then
6025     symcode='[ABCDEGRST]'
6026   fi
6027   ;;
6028 irix* | nonstopux*)
6029   symcode='[BCDEGRST]'
6030   ;;
6031 osf*)
6032   symcode='[BCDEGQRST]'
6033   ;;
6034 solaris*)
6035   symcode='[BDRT]'
6036   ;;
6037 sco3.2v5*)
6038   symcode='[DT]'
6039   ;;
6040 sysv4.2uw2*)
6041   symcode='[DT]'
6042   ;;
6043 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6044   symcode='[ABDT]'
6045   ;;
6046 sysv4)
6047   symcode='[DFNSTU]'
6048   ;;
6049 esac
6050
6051 # If we're using GNU nm, then use its standard symbol codes.
6052 case `$NM -V 2>&1` in
6053 *GNU* | *'with BFD'*)
6054   symcode='[ABCDGIRSTW]' ;;
6055 esac
6056
6057 # Transform an extracted symbol line into a proper C declaration.
6058 # Some systems (esp. on ia64) link data and code symbols differently,
6059 # so use this general approach.
6060 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6061
6062 # Transform an extracted symbol line into symbol name and symbol address
6063 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6064 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'"
6065
6066 # Handle CRLF in mingw tool chain
6067 opt_cr=
6068 case $build_os in
6069 mingw*)
6070   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6071   ;;
6072 esac
6073
6074 # Try without a prefix underscore, then with it.
6075 for ac_symprfx in "" "_"; do
6076
6077   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6078   symxfrm="\\1 $ac_symprfx\\2 \\2"
6079
6080   # Write the raw and C identifiers.
6081   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6082     # Fake it for dumpbin and say T for any non-static function
6083     # and D for any global variable.
6084     # Also find C++ and __fastcall symbols from MSVC++,
6085     # which start with @ or ?.
6086     lt_cv_sys_global_symbol_pipe="$AWK '"\
6087 "     {last_section=section; section=\$ 3};"\
6088 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6089 "     \$ 0!~/External *\|/{next};"\
6090 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6091 "     {if(hide[section]) next};"\
6092 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6093 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6094 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6095 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6096 "     ' prfx=^$ac_symprfx"
6097   else
6098     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6099   fi
6100
6101   # Check to see that the pipe works correctly.
6102   pipe_works=no
6103
6104   rm -f conftest*
6105   cat > conftest.$ac_ext <<_LT_EOF
6106 #ifdef __cplusplus
6107 extern "C" {
6108 #endif
6109 char nm_test_var;
6110 void nm_test_func(void);
6111 void nm_test_func(void){}
6112 #ifdef __cplusplus
6113 }
6114 #endif
6115 int main(){nm_test_var='a';nm_test_func();return(0);}
6116 _LT_EOF
6117
6118   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6119   (eval $ac_compile) 2>&5
6120   ac_status=$?
6121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122   test $ac_status = 0; }; then
6123     # Now try to grab the symbols.
6124     nlist=conftest.nm
6125     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6126   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6127   ac_status=$?
6128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129   test $ac_status = 0; } && test -s "$nlist"; then
6130       # Try sorting and uniquifying the output.
6131       if sort "$nlist" | uniq > "$nlist"T; then
6132         mv -f "$nlist"T "$nlist"
6133       else
6134         rm -f "$nlist"T
6135       fi
6136
6137       # Make sure that we snagged all the symbols we need.
6138       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6139         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6140           cat <<_LT_EOF > conftest.$ac_ext
6141 #ifdef __cplusplus
6142 extern "C" {
6143 #endif
6144
6145 _LT_EOF
6146           # Now generate the symbol file.
6147           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6148
6149           cat <<_LT_EOF >> conftest.$ac_ext
6150
6151 /* The mapping between symbol names and symbols.  */
6152 const struct {
6153   const char *name;
6154   void       *address;
6155 }
6156 lt__PROGRAM__LTX_preloaded_symbols[] =
6157 {
6158   { "@PROGRAM@", (void *) 0 },
6159 _LT_EOF
6160           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6161           cat <<\_LT_EOF >> conftest.$ac_ext
6162   {0, (void *) 0}
6163 };
6164
6165 /* This works around a problem in FreeBSD linker */
6166 #ifdef FREEBSD_WORKAROUND
6167 static const void *lt_preloaded_setup() {
6168   return lt__PROGRAM__LTX_preloaded_symbols;
6169 }
6170 #endif
6171
6172 #ifdef __cplusplus
6173 }
6174 #endif
6175 _LT_EOF
6176           # Now try linking the two files.
6177           mv conftest.$ac_objext conftstm.$ac_objext
6178           lt_save_LIBS="$LIBS"
6179           lt_save_CFLAGS="$CFLAGS"
6180           LIBS="conftstm.$ac_objext"
6181           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6182           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6183   (eval $ac_link) 2>&5
6184   ac_status=$?
6185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6187             pipe_works=yes
6188           fi
6189           LIBS="$lt_save_LIBS"
6190           CFLAGS="$lt_save_CFLAGS"
6191         else
6192           echo "cannot find nm_test_func in $nlist" >&5
6193         fi
6194       else
6195         echo "cannot find nm_test_var in $nlist" >&5
6196       fi
6197     else
6198       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6199     fi
6200   else
6201     echo "$progname: failed program was:" >&5
6202     cat conftest.$ac_ext >&5
6203   fi
6204   rm -rf conftest* conftst*
6205
6206   # Do not use the global_symbol_pipe unless it works.
6207   if test "$pipe_works" = yes; then
6208     break
6209   else
6210     lt_cv_sys_global_symbol_pipe=
6211   fi
6212 done
6213
6214 fi
6215
6216 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6217   lt_cv_sys_global_symbol_to_cdecl=
6218 fi
6219 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6221 $as_echo "failed" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6224 $as_echo "ok" >&6; }
6225 fi
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 # Check whether --enable-libtool-lock was given.
6250 if test "${enable_libtool_lock+set}" = set; then :
6251   enableval=$enable_libtool_lock;
6252 fi
6253
6254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6255
6256 # Some flags need to be propagated to the compiler or linker for good
6257 # libtool support.
6258 case $host in
6259 ia64-*-hpux*)
6260   # Find out which ABI we are using.
6261   echo 'int i;' > conftest.$ac_ext
6262   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6263   (eval $ac_compile) 2>&5
6264   ac_status=$?
6265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266   test $ac_status = 0; }; then
6267     case `/usr/bin/file conftest.$ac_objext` in
6268       *ELF-32*)
6269         HPUX_IA64_MODE="32"
6270         ;;
6271       *ELF-64*)
6272         HPUX_IA64_MODE="64"
6273         ;;
6274     esac
6275   fi
6276   rm -rf conftest*
6277   ;;
6278 *-*-irix6*)
6279   # Find out which ABI we are using.
6280   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6281   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6282   (eval $ac_compile) 2>&5
6283   ac_status=$?
6284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285   test $ac_status = 0; }; then
6286     if test "$lt_cv_prog_gnu_ld" = yes; then
6287       case `/usr/bin/file conftest.$ac_objext` in
6288         *32-bit*)
6289           LD="${LD-ld} -melf32bsmip"
6290           ;;
6291         *N32*)
6292           LD="${LD-ld} -melf32bmipn32"
6293           ;;
6294         *64-bit*)
6295           LD="${LD-ld} -melf64bmip"
6296         ;;
6297       esac
6298     else
6299       case `/usr/bin/file conftest.$ac_objext` in
6300         *32-bit*)
6301           LD="${LD-ld} -32"
6302           ;;
6303         *N32*)
6304           LD="${LD-ld} -n32"
6305           ;;
6306         *64-bit*)
6307           LD="${LD-ld} -64"
6308           ;;
6309       esac
6310     fi
6311   fi
6312   rm -rf conftest*
6313   ;;
6314
6315 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6316 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6317   # Find out which ABI we are using.
6318   echo 'int i;' > conftest.$ac_ext
6319   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320   (eval $ac_compile) 2>&5
6321   ac_status=$?
6322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323   test $ac_status = 0; }; then
6324     case `/usr/bin/file conftest.o` in
6325       *32-bit*)
6326         case $host in
6327           x86_64-*kfreebsd*-gnu)
6328             LD="${LD-ld} -m elf_i386_fbsd"
6329             ;;
6330           x86_64-*linux*)
6331             LD="${LD-ld} -m elf_i386"
6332             ;;
6333           ppc64-*linux*|powerpc64-*linux*)
6334             LD="${LD-ld} -m elf32ppclinux"
6335             ;;
6336           s390x-*linux*)
6337             LD="${LD-ld} -m elf_s390"
6338             ;;
6339           sparc64-*linux*)
6340             LD="${LD-ld} -m elf32_sparc"
6341             ;;
6342         esac
6343         ;;
6344       *64-bit*)
6345         case $host in
6346           x86_64-*kfreebsd*-gnu)
6347             LD="${LD-ld} -m elf_x86_64_fbsd"
6348             ;;
6349           x86_64-*linux*)
6350             LD="${LD-ld} -m elf_x86_64"
6351             ;;
6352           ppc*-*linux*|powerpc*-*linux*)
6353             LD="${LD-ld} -m elf64ppc"
6354             ;;
6355           s390*-*linux*|s390*-*tpf*)
6356             LD="${LD-ld} -m elf64_s390"
6357             ;;
6358           sparc*-*linux*)
6359             LD="${LD-ld} -m elf64_sparc"
6360             ;;
6361         esac
6362         ;;
6363     esac
6364   fi
6365   rm -rf conftest*
6366   ;;
6367
6368 *-*-sco3.2v5*)
6369   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6370   SAVE_CFLAGS="$CFLAGS"
6371   CFLAGS="$CFLAGS -belf"
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6373 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6374 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   ac_ext=c
6378 ac_cpp='$CPP $CPPFLAGS'
6379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h.  */
6385
6386 int
6387 main ()
6388 {
6389
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 if ac_fn_c_try_link "$LINENO"; then :
6395   lt_cv_cc_needs_belf=yes
6396 else
6397   lt_cv_cc_needs_belf=no
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext \
6400     conftest$ac_exeext conftest.$ac_ext
6401      ac_ext=c
6402 ac_cpp='$CPP $CPPFLAGS'
6403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6409 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6410   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6411     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6412     CFLAGS="$SAVE_CFLAGS"
6413   fi
6414   ;;
6415 *-*solaris*)
6416   # Find out which ABI we are using.
6417   echo 'int i;' > conftest.$ac_ext
6418   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419   (eval $ac_compile) 2>&5
6420   ac_status=$?
6421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422   test $ac_status = 0; }; then
6423     case `/usr/bin/file conftest.o` in
6424     *64-bit*)
6425       case $lt_cv_prog_gnu_ld in
6426       yes*)
6427         case $host in
6428         i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6429           LD="${LD-ld} -m elf_x86_64"
6430           ;;
6431         sparc*-*-solaris*)
6432           LD="${LD-ld} -m elf64_sparc"
6433           ;;
6434         esac
6435         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6436         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6437           LD="${LD-ld}_sol2"
6438         fi
6439         ;;
6440       *)
6441         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6442           LD="${LD-ld} -64"
6443         fi
6444         ;;
6445       esac
6446       ;;
6447     esac
6448   fi
6449   rm -rf conftest*
6450   ;;
6451 esac
6452
6453 need_locks="$enable_libtool_lock"
6454
6455
6456   case $host_os in
6457     rhapsody* | darwin*)
6458     if test -n "$ac_tool_prefix"; then
6459   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$DSYMUTIL"; then
6467   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474     for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481   done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6487 if test -n "$DSYMUTIL"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6489 $as_echo "$DSYMUTIL" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495
6496 fi
6497 if test -z "$ac_cv_prog_DSYMUTIL"; then
6498   ac_ct_DSYMUTIL=$DSYMUTIL
6499   # Extract the first word of "dsymutil", so it can be a program name with args.
6500 set dummy dsymutil; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$ac_ct_DSYMUTIL"; then
6507   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6527 if test -n "$ac_ct_DSYMUTIL"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6529 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535   if test "x$ac_ct_DSYMUTIL" = x; then
6536     DSYMUTIL=":"
6537   else
6538     case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544     DSYMUTIL=$ac_ct_DSYMUTIL
6545   fi
6546 else
6547   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6548 fi
6549
6550     if test -n "$ac_tool_prefix"; then
6551   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   if test -n "$NMEDIT"; then
6559   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566     for ac_exec_ext in '' $ac_executable_extensions; do
6567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573   done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 NMEDIT=$ac_cv_prog_NMEDIT
6579 if test -n "$NMEDIT"; then
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6581 $as_echo "$NMEDIT" >&6; }
6582 else
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587
6588 fi
6589 if test -z "$ac_cv_prog_NMEDIT"; then
6590   ac_ct_NMEDIT=$NMEDIT
6591   # Extract the first word of "nmedit", so it can be a program name with args.
6592 set dummy nmedit; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   if test -n "$ac_ct_NMEDIT"; then
6599   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604   IFS=$as_save_IFS
6605   test -z "$as_dir" && as_dir=.
6606     for ac_exec_ext in '' $ac_executable_extensions; do
6607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610     break 2
6611   fi
6612 done
6613   done
6614 IFS=$as_save_IFS
6615
6616 fi
6617 fi
6618 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6619 if test -n "$ac_ct_NMEDIT"; then
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6621 $as_echo "$ac_ct_NMEDIT" >&6; }
6622 else
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627   if test "x$ac_ct_NMEDIT" = x; then
6628     NMEDIT=":"
6629   else
6630     case $cross_compiling:$ac_tool_warned in
6631 yes:)
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6635 esac
6636     NMEDIT=$ac_ct_NMEDIT
6637   fi
6638 else
6639   NMEDIT="$ac_cv_prog_NMEDIT"
6640 fi
6641
6642     if test -n "$ac_tool_prefix"; then
6643   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if test "${ac_cv_prog_LIPO+set}" = set; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   if test -n "$LIPO"; then
6651   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658     for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665   done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 LIPO=$ac_cv_prog_LIPO
6671 if test -n "$LIPO"; then
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6673 $as_echo "$LIPO" >&6; }
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679
6680 fi
6681 if test -z "$ac_cv_prog_LIPO"; then
6682   ac_ct_LIPO=$LIPO
6683   # Extract the first word of "lipo", so it can be a program name with args.
6684 set dummy lipo; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6688   $as_echo_n "(cached) " >&6
6689 else
6690   if test -n "$ac_ct_LIPO"; then
6691   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698     for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_ac_ct_LIPO="lipo"
6701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705   done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6711 if test -n "$ac_ct_LIPO"; then
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6713 $as_echo "$ac_ct_LIPO" >&6; }
6714 else
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719   if test "x$ac_ct_LIPO" = x; then
6720     LIPO=":"
6721   else
6722     case $cross_compiling:$ac_tool_warned in
6723 yes:)
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728     LIPO=$ac_ct_LIPO
6729   fi
6730 else
6731   LIPO="$ac_cv_prog_LIPO"
6732 fi
6733
6734     if test -n "$ac_tool_prefix"; then
6735   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}otool; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6740   $as_echo_n "(cached) " >&6
6741 else
6742   if test -n "$OTOOL"; then
6743   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750     for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757   done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 OTOOL=$ac_cv_prog_OTOOL
6763 if test -n "$OTOOL"; then
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6765 $as_echo "$OTOOL" >&6; }
6766 else
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_OTOOL"; then
6774   ac_ct_OTOOL=$OTOOL
6775   # Extract the first word of "otool", so it can be a program name with args.
6776 set dummy otool; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   if test -n "$ac_ct_OTOOL"; then
6783   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790     for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_prog_ac_ct_OTOOL="otool"
6793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797   done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6803 if test -n "$ac_ct_OTOOL"; then
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6805 $as_echo "$ac_ct_OTOOL" >&6; }
6806 else
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811   if test "x$ac_ct_OTOOL" = x; then
6812     OTOOL=":"
6813   else
6814     case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820     OTOOL=$ac_ct_OTOOL
6821   fi
6822 else
6823   OTOOL="$ac_cv_prog_OTOOL"
6824 fi
6825
6826     if test -n "$ac_tool_prefix"; then
6827   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   if test -n "$OTOOL64"; then
6835   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842     for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849   done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 OTOOL64=$ac_cv_prog_OTOOL64
6855 if test -n "$OTOOL64"; then
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6857 $as_echo "$OTOOL64" >&6; }
6858 else
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_OTOOL64"; then
6866   ac_ct_OTOOL64=$OTOOL64
6867   # Extract the first word of "otool64", so it can be a program name with args.
6868 set dummy otool64; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   if test -n "$ac_ct_OTOOL64"; then
6875   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_prog_ac_ct_OTOOL64="otool64"
6885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6895 if test -n "$ac_ct_OTOOL64"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6897 $as_echo "$ac_ct_OTOOL64" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903   if test "x$ac_ct_OTOOL64" = x; then
6904     OTOOL64=":"
6905   else
6906     case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912     OTOOL64=$ac_ct_OTOOL64
6913   fi
6914 else
6915   OTOOL64="$ac_cv_prog_OTOOL64"
6916 fi
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6945 $as_echo_n "checking for -single_module linker flag... " >&6; }
6946 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   lt_cv_apple_cc_single_mod=no
6950       if test -z "${LT_MULTI_MODULE}"; then
6951         # By default we will add the -single_module flag. You can override
6952         # by either setting the environment variable LT_MULTI_MODULE
6953         # non-empty at configure time, or by adding -multi_module to the
6954         # link flags.
6955         rm -rf libconftest.dylib*
6956         echo "int foo(void){return 1;}" > conftest.c
6957         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6958 -dynamiclib -Wl,-single_module conftest.c" >&5
6959         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6960           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6961         _lt_result=$?
6962         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6963           lt_cv_apple_cc_single_mod=yes
6964         else
6965           cat conftest.err >&5
6966         fi
6967         rm -rf libconftest.dylib*
6968         rm -f conftest.*
6969       fi
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6972 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6974 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6975 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   lt_cv_ld_exported_symbols_list=no
6979       save_LDFLAGS=$LDFLAGS
6980       echo "_main" > conftest.sym
6981       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6982       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h.  */
6984
6985 int
6986 main ()
6987 {
6988
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 if ac_fn_c_try_link "$LINENO"; then :
6994   lt_cv_ld_exported_symbols_list=yes
6995 else
6996   lt_cv_ld_exported_symbols_list=no
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext \
6999     conftest$ac_exeext conftest.$ac_ext
7000         LDFLAGS="$save_LDFLAGS"
7001
7002 fi
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7004 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7006 $as_echo_n "checking for -force_load linker flag... " >&6; }
7007 if test "${lt_cv_ld_force_load+set}" = set; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   lt_cv_ld_force_load=no
7011       cat > conftest.c << _LT_EOF
7012 int forced_loaded() { return 2;}
7013 _LT_EOF
7014       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7015       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7016       echo "$AR cru libconftest.a conftest.o" >&5
7017       $AR cru libconftest.a conftest.o 2>&5
7018       cat > conftest.c << _LT_EOF
7019 int main() { return 0;}
7020 _LT_EOF
7021       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7022       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7023       _lt_result=$?
7024       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7025         lt_cv_ld_force_load=yes
7026       else
7027         cat conftest.err >&5
7028       fi
7029         rm -f conftest.err libconftest.a conftest conftest.c
7030         rm -rf conftest.dSYM
7031
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7034 $as_echo "$lt_cv_ld_force_load" >&6; }
7035     case $host_os in
7036     rhapsody* | darwin1.[012])
7037       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7038     darwin1.*)
7039       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7040     darwin*) # darwin 5.x on
7041       # if running on 10.5 or later, the deployment target defaults
7042       # to the OS version, if on x86, and 10.4, the deployment
7043       # target defaults to 10.4. Don't you love it?
7044       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7045         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7046           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7047         10.[012]*)
7048           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7049         10.*)
7050           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7051       esac
7052     ;;
7053   esac
7054     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7055       _lt_dar_single_mod='$single_module'
7056     fi
7057     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7058       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7059     else
7060       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7061     fi
7062     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7063       _lt_dsymutil='~$DSYMUTIL $lib || :'
7064     else
7065       _lt_dsymutil=
7066     fi
7067     ;;
7068   esac
7069
7070 ac_ext=c
7071 ac_cpp='$CPP $CPPFLAGS'
7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7076 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7077 # On Suns, sometimes $CPP names a directory.
7078 if test -n "$CPP" && test -d "$CPP"; then
7079   CPP=
7080 fi
7081 if test -z "$CPP"; then
7082   if test "${ac_cv_prog_CPP+set}" = set; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085       # Double quotes because CPP needs to be expanded
7086     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7087     do
7088       ac_preproc_ok=false
7089 for ac_c_preproc_warn_flag in '' yes
7090 do
7091   # Use a header file that comes with gcc, so configuring glibc
7092   # with a fresh cross-compiler works.
7093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7094   # <limits.h> exists even on freestanding compilers.
7095   # On the NeXT, cc -E runs the code through the compiler's parser,
7096   # not just through cpp. "Syntax error" is here to catch this case.
7097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h.  */
7099 #ifdef __STDC__
7100 # include <limits.h>
7101 #else
7102 # include <assert.h>
7103 #endif
7104                      Syntax error
7105 _ACEOF
7106 if ac_fn_c_try_cpp "$LINENO"; then :
7107
7108 else
7109   # Broken: fails on valid input.
7110 continue
7111 fi
7112 rm -f conftest.err conftest.$ac_ext
7113
7114   # OK, works on sane cases.  Now check whether nonexistent headers
7115   # can be detected and how.
7116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h.  */
7118 #include <ac_nonexistent.h>
7119 _ACEOF
7120 if ac_fn_c_try_cpp "$LINENO"; then :
7121   # Broken: success on invalid input.
7122 continue
7123 else
7124   # Passes both tests.
7125 ac_preproc_ok=:
7126 break
7127 fi
7128 rm -f conftest.err conftest.$ac_ext
7129
7130 done
7131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7132 rm -f conftest.err conftest.$ac_ext
7133 if $ac_preproc_ok; then :
7134   break
7135 fi
7136
7137     done
7138     ac_cv_prog_CPP=$CPP
7139
7140 fi
7141   CPP=$ac_cv_prog_CPP
7142 else
7143   ac_cv_prog_CPP=$CPP
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7146 $as_echo "$CPP" >&6; }
7147 ac_preproc_ok=false
7148 for ac_c_preproc_warn_flag in '' yes
7149 do
7150   # Use a header file that comes with gcc, so configuring glibc
7151   # with a fresh cross-compiler works.
7152   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7153   # <limits.h> exists even on freestanding compilers.
7154   # On the NeXT, cc -E runs the code through the compiler's parser,
7155   # not just through cpp. "Syntax error" is here to catch this case.
7156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h.  */
7158 #ifdef __STDC__
7159 # include <limits.h>
7160 #else
7161 # include <assert.h>
7162 #endif
7163                      Syntax error
7164 _ACEOF
7165 if ac_fn_c_try_cpp "$LINENO"; then :
7166
7167 else
7168   # Broken: fails on valid input.
7169 continue
7170 fi
7171 rm -f conftest.err conftest.$ac_ext
7172
7173   # OK, works on sane cases.  Now check whether nonexistent headers
7174   # can be detected and how.
7175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h.  */
7177 #include <ac_nonexistent.h>
7178 _ACEOF
7179 if ac_fn_c_try_cpp "$LINENO"; then :
7180   # Broken: success on invalid input.
7181 continue
7182 else
7183   # Passes both tests.
7184 ac_preproc_ok=:
7185 break
7186 fi
7187 rm -f conftest.err conftest.$ac_ext
7188
7189 done
7190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7191 rm -f conftest.err conftest.$ac_ext
7192 if $ac_preproc_ok; then :
7193
7194 else
7195   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7197 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7198 See \`config.log' for more details." "$LINENO" 5; }
7199 fi
7200
7201 ac_ext=c
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206
7207
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7209 $as_echo_n "checking for ANSI C header files... " >&6; }
7210 if test "${ac_cv_header_stdc+set}" = set; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h.  */
7215 #include <stdlib.h>
7216 #include <stdarg.h>
7217 #include <string.h>
7218 #include <float.h>
7219
7220 int
7221 main ()
7222 {
7223
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_compile "$LINENO"; then :
7229   ac_cv_header_stdc=yes
7230 else
7231   ac_cv_header_stdc=no
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234
7235 if test $ac_cv_header_stdc = yes; then
7236   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h.  */
7239 #include <string.h>
7240
7241 _ACEOF
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243   $EGREP "memchr" >/dev/null 2>&1; then :
7244
7245 else
7246   ac_cv_header_stdc=no
7247 fi
7248 rm -f conftest*
7249
7250 fi
7251
7252 if test $ac_cv_header_stdc = yes; then
7253   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h.  */
7256 #include <stdlib.h>
7257
7258 _ACEOF
7259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260   $EGREP "free" >/dev/null 2>&1; then :
7261
7262 else
7263   ac_cv_header_stdc=no
7264 fi
7265 rm -f conftest*
7266
7267 fi
7268
7269 if test $ac_cv_header_stdc = yes; then
7270   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7271   if test "$cross_compiling" = yes; then :
7272   :
7273 else
7274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h.  */
7276 #include <ctype.h>
7277 #include <stdlib.h>
7278 #if ((' ' & 0x0FF) == 0x020)
7279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7281 #else
7282 # define ISLOWER(c) \
7283                    (('a' <= (c) && (c) <= 'i') \
7284                      || ('j' <= (c) && (c) <= 'r') \
7285                      || ('s' <= (c) && (c) <= 'z'))
7286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7287 #endif
7288
7289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7290 int
7291 main ()
7292 {
7293   int i;
7294   for (i = 0; i < 256; i++)
7295     if (XOR (islower (i), ISLOWER (i))
7296         || toupper (i) != TOUPPER (i))
7297       return 2;
7298   return 0;
7299 }
7300 _ACEOF
7301 if ac_fn_c_try_run "$LINENO"; then :
7302
7303 else
7304   ac_cv_header_stdc=no
7305 fi
7306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7307   conftest.$ac_objext conftest.beam conftest.$ac_ext
7308 fi
7309
7310 fi
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7313 $as_echo "$ac_cv_header_stdc" >&6; }
7314 if test $ac_cv_header_stdc = yes; then
7315
7316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7317
7318 fi
7319
7320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7322                   inttypes.h stdint.h unistd.h
7323 do :
7324   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7326 "
7327 eval as_val=\$$as_ac_Header
7328    if test "x$as_val" = x""yes; then :
7329   cat >>confdefs.h <<_ACEOF
7330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7331 _ACEOF
7332
7333 fi
7334
7335 done
7336
7337
7338 for ac_header in dlfcn.h
7339 do :
7340   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7341 "
7342 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7343   cat >>confdefs.h <<_ACEOF
7344 #define HAVE_DLFCN_H 1
7345 _ACEOF
7346
7347 fi
7348
7349 done
7350
7351 if test -n "$ac_tool_prefix"; then
7352   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if test "${ac_cv_prog_GOC+set}" = set; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   if test -n "$GOC"; then
7360   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 GOC=$ac_cv_prog_GOC
7380 if test -n "$GOC"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7382 $as_echo "$GOC" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_GOC"; then
7391   ac_ct_GOC=$GOC
7392   # Extract the first word of "gccgo", so it can be a program name with args.
7393 set dummy gccgo; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$ac_ct_GOC"; then
7400   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_GOC="gccgo"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7420 if test -n "$ac_ct_GOC"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7422 $as_echo "$ac_ct_GOC" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428   if test "x$ac_ct_GOC" = x; then
7429     GOC=""
7430   else
7431     case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437     GOC=$ac_ct_GOC
7438   fi
7439 else
7440   GOC="$ac_cv_prog_GOC"
7441 fi
7442
7443
7444
7445
7446
7447
7448 # Set options
7449
7450
7451
7452
7453   enable_win32_dll=no
7454
7455
7456             # Check whether --enable-shared was given.
7457 if test "${enable_shared+set}" = set; then :
7458   enableval=$enable_shared; p=${PACKAGE-default}
7459     case $enableval in
7460     yes) enable_shared=yes ;;
7461     no) enable_shared=no ;;
7462     *)
7463       enable_shared=no
7464       # Look at the argument we got.  We use all the common list separators.
7465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7466       for pkg in $enableval; do
7467         IFS="$lt_save_ifs"
7468         if test "X$pkg" = "X$p"; then
7469           enable_shared=yes
7470         fi
7471       done
7472       IFS="$lt_save_ifs"
7473       ;;
7474     esac
7475 else
7476   enable_shared=yes
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487   # Check whether --enable-static was given.
7488 if test "${enable_static+set}" = set; then :
7489   enableval=$enable_static; p=${PACKAGE-default}
7490     case $enableval in
7491     yes) enable_static=yes ;;
7492     no) enable_static=no ;;
7493     *)
7494      enable_static=no
7495       # Look at the argument we got.  We use all the common list separators.
7496       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497       for pkg in $enableval; do
7498         IFS="$lt_save_ifs"
7499         if test "X$pkg" = "X$p"; then
7500           enable_static=yes
7501         fi
7502       done
7503       IFS="$lt_save_ifs"
7504       ;;
7505     esac
7506 else
7507   enable_static=yes
7508 fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519 # Check whether --with-pic was given.
7520 if test "${with_pic+set}" = set; then :
7521   withval=$with_pic; pic_mode="$withval"
7522 else
7523   pic_mode=default
7524 fi
7525
7526
7527 test -z "$pic_mode" && pic_mode=default
7528
7529
7530
7531
7532
7533
7534
7535   # Check whether --enable-fast-install was given.
7536 if test "${enable_fast_install+set}" = set; then :
7537   enableval=$enable_fast_install; p=${PACKAGE-default}
7538     case $enableval in
7539     yes) enable_fast_install=yes ;;
7540     no) enable_fast_install=no ;;
7541     *)
7542       enable_fast_install=no
7543       # Look at the argument we got.  We use all the common list separators.
7544       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7545       for pkg in $enableval; do
7546         IFS="$lt_save_ifs"
7547         if test "X$pkg" = "X$p"; then
7548           enable_fast_install=yes
7549         fi
7550       done
7551       IFS="$lt_save_ifs"
7552       ;;
7553     esac
7554 else
7555   enable_fast_install=yes
7556 fi
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 # This can be used to rebuild libtool when needed
7569 LIBTOOL_DEPS="$ltmain"
7570
7571 # Always use our own libtool.
7572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 test -z "$LN_S" && LN_S="ln -s"
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 if test -n "${ZSH_VERSION+set}" ; then
7615    setopt NO_GLOB_SUBST
7616 fi
7617
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7619 $as_echo_n "checking for objdir... " >&6; }
7620 if test "${lt_cv_objdir+set}" = set; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   rm -f .libs 2>/dev/null
7624 mkdir .libs 2>/dev/null
7625 if test -d .libs; then
7626   lt_cv_objdir=.libs
7627 else
7628   # MS-DOS does not allow filenames that begin with a dot.
7629   lt_cv_objdir=_libs
7630 fi
7631 rmdir .libs 2>/dev/null
7632 fi
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7634 $as_echo "$lt_cv_objdir" >&6; }
7635 objdir=$lt_cv_objdir
7636
7637
7638
7639
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define LT_OBJDIR "$lt_cv_objdir/"
7643 _ACEOF
7644
7645
7646
7647
7648 case $host_os in
7649 aix3*)
7650   # AIX sometimes has problems with the GCC collect2 program.  For some
7651   # reason, if we set the COLLECT_NAMES environment variable, the problems
7652   # vanish in a puff of smoke.
7653   if test "X${COLLECT_NAMES+set}" != Xset; then
7654     COLLECT_NAMES=
7655     export COLLECT_NAMES
7656   fi
7657   ;;
7658 esac
7659
7660 # Global variables:
7661 ofile=libtool
7662 can_build_shared=yes
7663
7664 # All known linkers require a `.a' archive for static linking (except MSVC,
7665 # which needs '.lib').
7666 libext=a
7667
7668 with_gnu_ld="$lt_cv_prog_gnu_ld"
7669
7670 old_CC="$CC"
7671 old_CFLAGS="$CFLAGS"
7672
7673 # Set sane defaults for various variables
7674 test -z "$CC" && CC=cc
7675 test -z "$LTCC" && LTCC=$CC
7676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7677 test -z "$LD" && LD=ld
7678 test -z "$ac_objext" && ac_objext=o
7679
7680 for cc_temp in $compiler""; do
7681   case $cc_temp in
7682     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7683     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7684     \-*) ;;
7685     *) break;;
7686   esac
7687 done
7688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7689
7690
7691 # Only perform the check for file, if the check method requires it
7692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7693 case $deplibs_check_method in
7694 file_magic*)
7695   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7698 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   case $MAGIC_CMD in
7702 [\\/*] |  ?:[\\/]*)
7703   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7704   ;;
7705 *)
7706   lt_save_MAGIC_CMD="$MAGIC_CMD"
7707   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7708   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7709   for ac_dir in $ac_dummy; do
7710     IFS="$lt_save_ifs"
7711     test -z "$ac_dir" && ac_dir=.
7712     if test -f $ac_dir/${ac_tool_prefix}file; then
7713       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7714       if test -n "$file_magic_test_file"; then
7715         case $deplibs_check_method in
7716         "file_magic "*)
7717           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7718           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7719           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7720             $EGREP "$file_magic_regex" > /dev/null; then
7721             :
7722           else
7723             cat <<_LT_EOF 1>&2
7724
7725 *** Warning: the command libtool uses to detect shared libraries,
7726 *** $file_magic_cmd, produces output that libtool cannot recognize.
7727 *** The result is that libtool may fail to recognize shared libraries
7728 *** as such.  This will affect the creation of libtool libraries that
7729 *** depend on shared libraries, but programs linked with such libtool
7730 *** libraries will work regardless of this problem.  Nevertheless, you
7731 *** may want to report the problem to your system manager and/or to
7732 *** bug-libtool@gnu.org
7733
7734 _LT_EOF
7735           fi ;;
7736         esac
7737       fi
7738       break
7739     fi
7740   done
7741   IFS="$lt_save_ifs"
7742   MAGIC_CMD="$lt_save_MAGIC_CMD"
7743   ;;
7744 esac
7745 fi
7746
7747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7748 if test -n "$MAGIC_CMD"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7750 $as_echo "$MAGIC_CMD" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757
7758
7759
7760 if test -z "$lt_cv_path_MAGIC_CMD"; then
7761   if test -n "$ac_tool_prefix"; then
7762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7763 $as_echo_n "checking for file... " >&6; }
7764 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   case $MAGIC_CMD in
7768 [\\/*] |  ?:[\\/]*)
7769   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7770   ;;
7771 *)
7772   lt_save_MAGIC_CMD="$MAGIC_CMD"
7773   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7774   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7775   for ac_dir in $ac_dummy; do
7776     IFS="$lt_save_ifs"
7777     test -z "$ac_dir" && ac_dir=.
7778     if test -f $ac_dir/file; then
7779       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7780       if test -n "$file_magic_test_file"; then
7781         case $deplibs_check_method in
7782         "file_magic "*)
7783           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7784           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7785           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7786             $EGREP "$file_magic_regex" > /dev/null; then
7787             :
7788           else
7789             cat <<_LT_EOF 1>&2
7790
7791 *** Warning: the command libtool uses to detect shared libraries,
7792 *** $file_magic_cmd, produces output that libtool cannot recognize.
7793 *** The result is that libtool may fail to recognize shared libraries
7794 *** as such.  This will affect the creation of libtool libraries that
7795 *** depend on shared libraries, but programs linked with such libtool
7796 *** libraries will work regardless of this problem.  Nevertheless, you
7797 *** may want to report the problem to your system manager and/or to
7798 *** bug-libtool@gnu.org
7799
7800 _LT_EOF
7801           fi ;;
7802         esac
7803       fi
7804       break
7805     fi
7806   done
7807   IFS="$lt_save_ifs"
7808   MAGIC_CMD="$lt_save_MAGIC_CMD"
7809   ;;
7810 esac
7811 fi
7812
7813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7814 if test -n "$MAGIC_CMD"; then
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7816 $as_echo "$MAGIC_CMD" >&6; }
7817 else
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821
7822
7823   else
7824     MAGIC_CMD=:
7825   fi
7826 fi
7827
7828   fi
7829   ;;
7830 esac
7831
7832 # Use C for the default configuration in the libtool script
7833
7834 lt_save_CC="$CC"
7835 ac_ext=c
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840
7841
7842 # Source file extension for C test sources.
7843 ac_ext=c
7844
7845 # Object file extension for compiled C test sources.
7846 objext=o
7847 objext=$objext
7848
7849 # Code to be used in simple compile tests
7850 lt_simple_compile_test_code="int some_variable = 0;"
7851
7852 # Code to be used in simple link tests
7853 lt_simple_link_test_code='int main(){return(0);}'
7854
7855
7856
7857
7858
7859
7860
7861 # If no C compiler was specified, use CC.
7862 LTCC=${LTCC-"$CC"}
7863
7864 # If no C compiler flags were specified, use CFLAGS.
7865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7866
7867 # Allow CC to be a program name with arguments.
7868 compiler=$CC
7869
7870 # Save the default compiler, since it gets overwritten when the other
7871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7872 compiler_DEFAULT=$CC
7873
7874 # save warnings/boilerplate of simple test code
7875 ac_outfile=conftest.$ac_objext
7876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7878 _lt_compiler_boilerplate=`cat conftest.err`
7879 $RM conftest*
7880
7881 ac_outfile=conftest.$ac_objext
7882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7884 _lt_linker_boilerplate=`cat conftest.err`
7885 $RM -r conftest*
7886
7887
7888 ## CAVEAT EMPTOR:
7889 ## There is no encapsulation within the following macros, do not change
7890 ## the running order or otherwise move them around unless you know exactly
7891 ## what you are doing...
7892 if test -n "$compiler"; then
7893
7894 lt_prog_compiler_no_builtin_flag=
7895
7896 if test "$GCC" = yes; then
7897   case $cc_basename in
7898   nvcc*)
7899     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7900   *)
7901     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7902   esac
7903
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7906 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   lt_cv_prog_compiler_rtti_exceptions=no
7910    ac_outfile=conftest.$ac_objext
7911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912    lt_compiler_flag="-fno-rtti -fno-exceptions"
7913    # Insert the option either (1) after the last *FLAGS variable, or
7914    # (2) before a word containing "conftest.", or (3) at the end.
7915    # Note that $ac_compile itself does not contain backslashes and begins
7916    # with a dollar sign (not a hyphen), so the echo should work correctly.
7917    # The option is referenced via a variable to avoid confusing sed.
7918    lt_compile=`echo "$ac_compile" | $SED \
7919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921    -e 's:$: $lt_compiler_flag:'`
7922    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7923    (eval "$lt_compile" 2>conftest.err)
7924    ac_status=$?
7925    cat conftest.err >&5
7926    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927    if (exit $ac_status) && test -s "$ac_outfile"; then
7928      # The compiler can only warn and ignore the option if not recognized
7929      # So say no if there are warnings other than the usual output.
7930      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933        lt_cv_prog_compiler_rtti_exceptions=yes
7934      fi
7935    fi
7936    $RM conftest*
7937
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7941
7942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7943     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7944 else
7945     :
7946 fi
7947
7948 fi
7949
7950
7951
7952
7953
7954
7955   lt_prog_compiler_wl=
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_static=
7958
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7960 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7961
7962   if test "$GCC" = yes; then
7963     lt_prog_compiler_wl='-Wl,'
7964     lt_prog_compiler_static='-static'
7965
7966     case $host_os in
7967       aix*)
7968       # All AIX code is PIC.
7969       if test "$host_cpu" = ia64; then
7970         # AIX 5 now supports IA64 processor
7971         lt_prog_compiler_static='-Bstatic'
7972       fi
7973       ;;
7974
7975     amigaos*)
7976       case $host_cpu in
7977       powerpc)
7978             # see comment about AmigaOS4 .so support
7979             lt_prog_compiler_pic='-fPIC'
7980         ;;
7981       m68k)
7982             # FIXME: we need at least 68020 code to build shared libraries, but
7983             # adding the `-m68020' flag to GCC prevents building anything better,
7984             # like `-m68040'.
7985             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7986         ;;
7987       esac
7988       ;;
7989
7990     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7991       # PIC is the default for these OSes.
7992       ;;
7993
7994     mingw* | cygwin* | pw32* | os2* | cegcc*)
7995       # This hack is so that the source file can tell whether it is being
7996       # built for inclusion in a dll (and should export symbols for example).
7997       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7998       # (--disable-auto-import) libraries
7999       lt_prog_compiler_pic='-DDLL_EXPORT'
8000       ;;
8001
8002     darwin* | rhapsody*)
8003       # PIC is the default on this platform
8004       # Common symbols not allowed in MH_DYLIB files
8005       lt_prog_compiler_pic='-fno-common'
8006       ;;
8007
8008     haiku*)
8009       # PIC is the default for Haiku.
8010       # The "-static" flag exists, but is broken.
8011       lt_prog_compiler_static=
8012       ;;
8013
8014     hpux*)
8015       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8016       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8017       # sets the default TLS model and affects inlining.
8018       case $host_cpu in
8019       hppa*64*)
8020         # +Z the default
8021         ;;
8022       *)
8023         lt_prog_compiler_pic='-fPIC'
8024         ;;
8025       esac
8026       ;;
8027
8028     interix[3-9]*)
8029       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8030       # Instead, we relocate shared libraries at runtime.
8031       ;;
8032
8033     msdosdjgpp*)
8034       # Just because we use GCC doesn't mean we suddenly get shared libraries
8035       # on systems that don't support them.
8036       lt_prog_compiler_can_build_shared=no
8037       enable_shared=no
8038       ;;
8039
8040     *nto* | *qnx*)
8041       # QNX uses GNU C++, but need to define -shared option too, otherwise
8042       # it will coredump.
8043       lt_prog_compiler_pic='-fPIC -shared'
8044       ;;
8045
8046     sysv4*MP*)
8047       if test -d /usr/nec; then
8048         lt_prog_compiler_pic=-Kconform_pic
8049       fi
8050       ;;
8051
8052     *)
8053       lt_prog_compiler_pic='-fPIC'
8054       ;;
8055     esac
8056
8057     case $cc_basename in
8058     nvcc*) # Cuda Compiler Driver 2.2
8059       lt_prog_compiler_wl='-Xlinker '
8060       lt_prog_compiler_pic='-Xcompiler -fPIC'
8061       ;;
8062     esac
8063   else
8064     # PORTME Check for flag to pass linker flags through the system compiler.
8065     case $host_os in
8066     aix*)
8067       lt_prog_compiler_wl='-Wl,'
8068       if test "$host_cpu" = ia64; then
8069         # AIX 5 now supports IA64 processor
8070         lt_prog_compiler_static='-Bstatic'
8071       else
8072         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8073       fi
8074       ;;
8075
8076     mingw* | cygwin* | pw32* | os2* | cegcc*)
8077       # This hack is so that the source file can tell whether it is being
8078       # built for inclusion in a dll (and should export symbols for example).
8079       lt_prog_compiler_pic='-DDLL_EXPORT'
8080       ;;
8081
8082     hpux9* | hpux10* | hpux11*)
8083       lt_prog_compiler_wl='-Wl,'
8084       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8085       # not for PA HP-UX.
8086       case $host_cpu in
8087       hppa*64*|ia64*)
8088         # +Z the default
8089         ;;
8090       *)
8091         lt_prog_compiler_pic='+Z'
8092         ;;
8093       esac
8094       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8095       lt_prog_compiler_static='${wl}-a ${wl}archive'
8096       ;;
8097
8098     irix5* | irix6* | nonstopux*)
8099       lt_prog_compiler_wl='-Wl,'
8100       # PIC (with -KPIC) is the default.
8101       lt_prog_compiler_static='-non_shared'
8102       ;;
8103
8104     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8105       case $cc_basename in
8106       # old Intel for x86_64 which still supported -KPIC.
8107       ecc*)
8108         lt_prog_compiler_wl='-Wl,'
8109         lt_prog_compiler_pic='-KPIC'
8110         lt_prog_compiler_static='-static'
8111         ;;
8112       # icc used to be incompatible with GCC.
8113       # ICC 10 doesn't accept -KPIC any more.
8114       icc* | ifort*)
8115         lt_prog_compiler_wl='-Wl,'
8116         lt_prog_compiler_pic='-fPIC'
8117         lt_prog_compiler_static='-static'
8118         ;;
8119       # Lahey Fortran 8.1.
8120       lf95*)
8121         lt_prog_compiler_wl='-Wl,'
8122         lt_prog_compiler_pic='--shared'
8123         lt_prog_compiler_static='--static'
8124         ;;
8125       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8126         # Portland Group compilers (*not* the Pentium gcc compiler,
8127         # which looks to be a dead project)
8128         lt_prog_compiler_wl='-Wl,'
8129         lt_prog_compiler_pic='-fpic'
8130         lt_prog_compiler_static='-Bstatic'
8131         ;;
8132       ccc*)
8133         lt_prog_compiler_wl='-Wl,'
8134         # All Alpha code is PIC.
8135         lt_prog_compiler_static='-non_shared'
8136         ;;
8137       xl* | bgxl* | bgf* | mpixl*)
8138         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8139         lt_prog_compiler_wl='-Wl,'
8140         lt_prog_compiler_pic='-qpic'
8141         lt_prog_compiler_static='-qstaticlink'
8142         ;;
8143       *)
8144         case `$CC -V 2>&1 | sed 5q` in
8145         *Sun\ F* | *Sun*Fortran*)
8146           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8147           lt_prog_compiler_pic='-KPIC'
8148           lt_prog_compiler_static='-Bstatic'
8149           lt_prog_compiler_wl=''
8150           ;;
8151         *Sun\ C*)
8152           # Sun C 5.9
8153           lt_prog_compiler_pic='-KPIC'
8154           lt_prog_compiler_static='-Bstatic'
8155           lt_prog_compiler_wl='-Wl,'
8156           ;;
8157         esac
8158         ;;
8159       esac
8160       ;;
8161
8162     newsos6)
8163       lt_prog_compiler_pic='-KPIC'
8164       lt_prog_compiler_static='-Bstatic'
8165       ;;
8166
8167     *nto* | *qnx*)
8168       # QNX uses GNU C++, but need to define -shared option too, otherwise
8169       # it will coredump.
8170       lt_prog_compiler_pic='-fPIC -shared'
8171       ;;
8172
8173     osf3* | osf4* | osf5*)
8174       lt_prog_compiler_wl='-Wl,'
8175       # All OSF/1 code is PIC.
8176       lt_prog_compiler_static='-non_shared'
8177       ;;
8178
8179     rdos*)
8180       lt_prog_compiler_static='-non_shared'
8181       ;;
8182
8183     solaris*)
8184       lt_prog_compiler_pic='-KPIC'
8185       lt_prog_compiler_static='-Bstatic'
8186       case $cc_basename in
8187       f77* | f90* | f95*)
8188         lt_prog_compiler_wl='-Qoption ld ';;
8189       *)
8190         lt_prog_compiler_wl='-Wl,';;
8191       esac
8192       ;;
8193
8194     sunos4*)
8195       lt_prog_compiler_wl='-Qoption ld '
8196       lt_prog_compiler_pic='-PIC'
8197       lt_prog_compiler_static='-Bstatic'
8198       ;;
8199
8200     sysv4 | sysv4.2uw2* | sysv4.3*)
8201       lt_prog_compiler_wl='-Wl,'
8202       lt_prog_compiler_pic='-KPIC'
8203       lt_prog_compiler_static='-Bstatic'
8204       ;;
8205
8206     sysv4*MP*)
8207       if test -d /usr/nec ;then
8208         lt_prog_compiler_pic='-Kconform_pic'
8209         lt_prog_compiler_static='-Bstatic'
8210       fi
8211       ;;
8212
8213     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8214       lt_prog_compiler_wl='-Wl,'
8215       lt_prog_compiler_pic='-KPIC'
8216       lt_prog_compiler_static='-Bstatic'
8217       ;;
8218
8219     unicos*)
8220       lt_prog_compiler_wl='-Wl,'
8221       lt_prog_compiler_can_build_shared=no
8222       ;;
8223
8224     uts4*)
8225       lt_prog_compiler_pic='-pic'
8226       lt_prog_compiler_static='-Bstatic'
8227       ;;
8228
8229     *)
8230       lt_prog_compiler_can_build_shared=no
8231       ;;
8232     esac
8233   fi
8234
8235 case $host_os in
8236   # For platforms which do not support PIC, -DPIC is meaningless:
8237   *djgpp*)
8238     lt_prog_compiler_pic=
8239     ;;
8240   *)
8241     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8242     ;;
8243 esac
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8245 $as_echo "$lt_prog_compiler_pic" >&6; }
8246
8247
8248
8249
8250
8251
8252 #
8253 # Check to make sure the PIC flag actually works.
8254 #
8255 if test -n "$lt_prog_compiler_pic"; then
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8257 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8258 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   lt_cv_prog_compiler_pic_works=no
8262    ac_outfile=conftest.$ac_objext
8263    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8264    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8265    # Insert the option either (1) after the last *FLAGS variable, or
8266    # (2) before a word containing "conftest.", or (3) at the end.
8267    # Note that $ac_compile itself does not contain backslashes and begins
8268    # with a dollar sign (not a hyphen), so the echo should work correctly.
8269    # The option is referenced via a variable to avoid confusing sed.
8270    lt_compile=`echo "$ac_compile" | $SED \
8271    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8273    -e 's:$: $lt_compiler_flag:'`
8274    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8275    (eval "$lt_compile" 2>conftest.err)
8276    ac_status=$?
8277    cat conftest.err >&5
8278    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279    if (exit $ac_status) && test -s "$ac_outfile"; then
8280      # The compiler can only warn and ignore the option if not recognized
8281      # So say no if there are warnings other than the usual output.
8282      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8283      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8284      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8285        lt_cv_prog_compiler_pic_works=yes
8286      fi
8287    fi
8288    $RM conftest*
8289
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8292 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8293
8294 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8295     case $lt_prog_compiler_pic in
8296      "" | " "*) ;;
8297      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8298      esac
8299 else
8300     lt_prog_compiler_pic=
8301      lt_prog_compiler_can_build_shared=no
8302 fi
8303
8304 fi
8305
8306
8307
8308
8309
8310
8311 #
8312 # Check to make sure the static flag actually works.
8313 #
8314 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8316 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8317 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   lt_cv_prog_compiler_static_works=no
8321    save_LDFLAGS="$LDFLAGS"
8322    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8323    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8324    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8325      # The linker can only warn and ignore the option if not recognized
8326      # So say no if there are warnings
8327      if test -s conftest.err; then
8328        # Append any errors to the config.log.
8329        cat conftest.err 1>&5
8330        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8331        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332        if diff conftest.exp conftest.er2 >/dev/null; then
8333          lt_cv_prog_compiler_static_works=yes
8334        fi
8335      else
8336        lt_cv_prog_compiler_static_works=yes
8337      fi
8338    fi
8339    $RM -r conftest*
8340    LDFLAGS="$save_LDFLAGS"
8341
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8344 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8345
8346 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8347     :
8348 else
8349     lt_prog_compiler_static=
8350 fi
8351
8352
8353
8354
8355
8356
8357
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8359 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8360 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   lt_cv_prog_compiler_c_o=no
8364    $RM -r conftest 2>/dev/null
8365    mkdir conftest
8366    cd conftest
8367    mkdir out
8368    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8369
8370    lt_compiler_flag="-o out/conftest2.$ac_objext"
8371    # Insert the option either (1) after the last *FLAGS variable, or
8372    # (2) before a word containing "conftest.", or (3) at the end.
8373    # Note that $ac_compile itself does not contain backslashes and begins
8374    # with a dollar sign (not a hyphen), so the echo should work correctly.
8375    lt_compile=`echo "$ac_compile" | $SED \
8376    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8378    -e 's:$: $lt_compiler_flag:'`
8379    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8380    (eval "$lt_compile" 2>out/conftest.err)
8381    ac_status=$?
8382    cat out/conftest.err >&5
8383    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8385    then
8386      # The compiler can only warn and ignore the option if not recognized
8387      # So say no if there are warnings
8388      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8389      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8390      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8391        lt_cv_prog_compiler_c_o=yes
8392      fi
8393    fi
8394    chmod u+w . 2>&5
8395    $RM conftest*
8396    # SGI C++ compiler will create directory out/ii_files/ for
8397    # template instantiation
8398    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8399    $RM out/* && rmdir out
8400    cd ..
8401    $RM -r conftest
8402    $RM conftest*
8403
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8406 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8407
8408
8409
8410
8411
8412
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   lt_cv_prog_compiler_c_o=no
8419    $RM -r conftest 2>/dev/null
8420    mkdir conftest
8421    cd conftest
8422    mkdir out
8423    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424
8425    lt_compiler_flag="-o out/conftest2.$ac_objext"
8426    # Insert the option either (1) after the last *FLAGS variable, or
8427    # (2) before a word containing "conftest.", or (3) at the end.
8428    # Note that $ac_compile itself does not contain backslashes and begins
8429    # with a dollar sign (not a hyphen), so the echo should work correctly.
8430    lt_compile=`echo "$ac_compile" | $SED \
8431    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433    -e 's:$: $lt_compiler_flag:'`
8434    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8435    (eval "$lt_compile" 2>out/conftest.err)
8436    ac_status=$?
8437    cat out/conftest.err >&5
8438    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8440    then
8441      # The compiler can only warn and ignore the option if not recognized
8442      # So say no if there are warnings
8443      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8444      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8445      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8446        lt_cv_prog_compiler_c_o=yes
8447      fi
8448    fi
8449    chmod u+w . 2>&5
8450    $RM conftest*
8451    # SGI C++ compiler will create directory out/ii_files/ for
8452    # template instantiation
8453    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8454    $RM out/* && rmdir out
8455    cd ..
8456    $RM -r conftest
8457    $RM conftest*
8458
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8462
8463
8464
8465
8466 hard_links="nottested"
8467 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8468   # do not overwrite the value of need_locks provided by the user
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8470 $as_echo_n "checking if we can lock with hard links... " >&6; }
8471   hard_links=yes
8472   $RM conftest*
8473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8474   touch conftest.a
8475   ln conftest.a conftest.b 2>&5 || hard_links=no
8476   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8478 $as_echo "$hard_links" >&6; }
8479   if test "$hard_links" = no; then
8480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8481 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8482     need_locks=warn
8483   fi
8484 else
8485   need_locks=no
8486 fi
8487
8488
8489
8490
8491
8492
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8494 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8495
8496   runpath_var=
8497   allow_undefined_flag=
8498   always_export_symbols=no
8499   archive_cmds=
8500   archive_expsym_cmds=
8501   compiler_needs_object=no
8502   enable_shared_with_static_runtimes=no
8503   export_dynamic_flag_spec=
8504   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8505   hardcode_automatic=no
8506   hardcode_direct=no
8507   hardcode_direct_absolute=no
8508   hardcode_libdir_flag_spec=
8509   hardcode_libdir_flag_spec_ld=
8510   hardcode_libdir_separator=
8511   hardcode_minus_L=no
8512   hardcode_shlibpath_var=unsupported
8513   inherit_rpath=no
8514   link_all_deplibs=unknown
8515   module_cmds=
8516   module_expsym_cmds=
8517   old_archive_from_new_cmds=
8518   old_archive_from_expsyms_cmds=
8519   thread_safe_flag_spec=
8520   whole_archive_flag_spec=
8521   # include_expsyms should be a list of space-separated symbols to be *always*
8522   # included in the symbol list
8523   include_expsyms=
8524   # exclude_expsyms can be an extended regexp of symbols to exclude
8525   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8526   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8527   # as well as any symbol that contains `d'.
8528   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8529   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8530   # platforms (ab)use it in PIC code, but their linkers get confused if
8531   # the symbol is explicitly referenced.  Since portable code cannot
8532   # rely on this symbol name, it's probably fine to never include it in
8533   # preloaded symbol tables.
8534   # Exclude shared library initialization/finalization symbols.
8535   extract_expsyms_cmds=
8536
8537   case $host_os in
8538   cygwin* | mingw* | pw32* | cegcc*)
8539     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8540     # When not using gcc, we currently assume that we are using
8541     # Microsoft Visual C++.
8542     if test "$GCC" != yes; then
8543       with_gnu_ld=no
8544     fi
8545     ;;
8546   interix*)
8547     # we just hope/assume this is gcc and not c89 (= MSVC++)
8548     with_gnu_ld=yes
8549     ;;
8550   openbsd*)
8551     with_gnu_ld=no
8552     ;;
8553   esac
8554
8555   ld_shlibs=yes
8556
8557   # On some targets, GNU ld is compatible enough with the native linker
8558   # that we're better off using the native interface for both.
8559   lt_use_gnu_ld_interface=no
8560   if test "$with_gnu_ld" = yes; then
8561     case $host_os in
8562       aix*)
8563         # The AIX port of GNU ld has always aspired to compatibility
8564         # with the native linker.  However, as the warning in the GNU ld
8565         # block says, versions before 2.19.5* couldn't really create working
8566         # shared libraries, regardless of the interface used.
8567         case `$LD -v 2>&1` in
8568           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8569           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8570           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8571           *)
8572             lt_use_gnu_ld_interface=yes
8573             ;;
8574         esac
8575         ;;
8576       *)
8577         lt_use_gnu_ld_interface=yes
8578         ;;
8579     esac
8580   fi
8581
8582   if test "$lt_use_gnu_ld_interface" = yes; then
8583     # If archive_cmds runs LD, not CC, wlarc should be empty
8584     wlarc='${wl}'
8585
8586     # Set some defaults for GNU ld with shared library support. These
8587     # are reset later if shared libraries are not supported. Putting them
8588     # here allows them to be overridden if necessary.
8589     runpath_var=LD_RUN_PATH
8590     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8591     export_dynamic_flag_spec='${wl}--export-dynamic'
8592     # ancient GNU ld didn't support --whole-archive et. al.
8593     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8594       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8595     else
8596       whole_archive_flag_spec=
8597     fi
8598     supports_anon_versioning=no
8599     case `$LD -v 2>&1` in
8600       *GNU\ gold*) supports_anon_versioning=yes ;;
8601       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8602       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8603       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8604       *\ 2.11.*) ;; # other 2.11 versions
8605       *) supports_anon_versioning=yes ;;
8606     esac
8607
8608     # See if GNU ld supports shared libraries.
8609     case $host_os in
8610     aix[3-9]*)
8611       # On AIX/PPC, the GNU linker is very broken
8612       if test "$host_cpu" != ia64; then
8613         ld_shlibs=no
8614         cat <<_LT_EOF 1>&2
8615
8616 *** Warning: the GNU linker, at least up to release 2.19, is reported
8617 *** to be unable to reliably create shared libraries on AIX.
8618 *** Therefore, libtool is disabling shared libraries support.  If you
8619 *** really care for shared libraries, you may want to install binutils
8620 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8621 *** You will then need to restart the configuration process.
8622
8623 _LT_EOF
8624       fi
8625       ;;
8626
8627     amigaos*)
8628       case $host_cpu in
8629       powerpc)
8630             # see comment about AmigaOS4 .so support
8631             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632             archive_expsym_cmds=''
8633         ;;
8634       m68k)
8635             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)'
8636             hardcode_libdir_flag_spec='-L$libdir'
8637             hardcode_minus_L=yes
8638         ;;
8639       esac
8640       ;;
8641
8642     beos*)
8643       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8644         allow_undefined_flag=unsupported
8645         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8646         # support --undefined.  This deserves some investigation.  FIXME
8647         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648       else
8649         ld_shlibs=no
8650       fi
8651       ;;
8652
8653     cygwin* | mingw* | pw32* | cegcc*)
8654       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8655       # as there is no search path for DLLs.
8656       hardcode_libdir_flag_spec='-L$libdir'
8657       export_dynamic_flag_spec='${wl}--export-all-symbols'
8658       allow_undefined_flag=unsupported
8659       always_export_symbols=no
8660       enable_shared_with_static_runtimes=yes
8661       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8662
8663       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8664         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8665         # If the export-symbols file already is a .def file (1st line
8666         # is EXPORTS), use it as is; otherwise, prepend...
8667         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8668           cp $export_symbols $output_objdir/$soname.def;
8669         else
8670           echo EXPORTS > $output_objdir/$soname.def;
8671           cat $export_symbols >> $output_objdir/$soname.def;
8672         fi~
8673         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8674       else
8675         ld_shlibs=no
8676       fi
8677       ;;
8678
8679     haiku*)
8680       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681       link_all_deplibs=yes
8682       ;;
8683
8684     interix[3-9]*)
8685       hardcode_direct=no
8686       hardcode_shlibpath_var=no
8687       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8688       export_dynamic_flag_spec='${wl}-E'
8689       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8690       # Instead, shared libraries are loaded at an image base (0x10000000 by
8691       # default) and relocated if they conflict, which is a slow very memory
8692       # consuming and fragmenting process.  To avoid this, we pick a random,
8693       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8694       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8695       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8696       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'
8697       ;;
8698
8699     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8700       tmp_diet=no
8701       if test "$host_os" = linux-dietlibc; then
8702         case $cc_basename in
8703           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8704         esac
8705       fi
8706       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8707          && test "$tmp_diet" = no
8708       then
8709         tmp_addflag=
8710         tmp_sharedflag='-shared'
8711         case $cc_basename,$host_cpu in
8712         pgcc*)                          # Portland Group C compiler
8713           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'
8714           tmp_addflag=' $pic_flag'
8715           ;;
8716         pgf77* | pgf90* | pgf95* | pgfortran*)
8717                                         # Portland Group f77 and f90 compilers
8718           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'
8719           tmp_addflag=' $pic_flag -Mnomain' ;;
8720         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8721           tmp_addflag=' -i_dynamic' ;;
8722         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8723           tmp_addflag=' -i_dynamic -nofor_main' ;;
8724         ifc* | ifort*)                  # Intel Fortran compiler
8725           tmp_addflag=' -nofor_main' ;;
8726         lf95*)                          # Lahey Fortran 8.1
8727           whole_archive_flag_spec=
8728           tmp_sharedflag='--shared' ;;
8729         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8730           tmp_sharedflag='-qmkshrobj'
8731           tmp_addflag= ;;
8732         nvcc*)  # Cuda Compiler Driver 2.2
8733           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'
8734           compiler_needs_object=yes
8735           ;;
8736         esac
8737         case `$CC -V 2>&1 | sed 5q` in
8738         *Sun\ C*)                       # Sun C 5.9
8739           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'
8740           compiler_needs_object=yes
8741           tmp_sharedflag='-G' ;;
8742         *Sun\ F*)                       # Sun Fortran 8.3
8743           tmp_sharedflag='-G' ;;
8744         esac
8745         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746
8747         if test "x$supports_anon_versioning" = xyes; then
8748           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8749             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8750             echo "local: *; };" >> $output_objdir/$libname.ver~
8751             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8752         fi
8753
8754         case $cc_basename in
8755         xlf* | bgf* | bgxlf* | mpixlf*)
8756           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8757           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8758           hardcode_libdir_flag_spec=
8759           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8760           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8761           if test "x$supports_anon_versioning" = xyes; then
8762             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8763               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8764               echo "local: *; };" >> $output_objdir/$libname.ver~
8765               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8766           fi
8767           ;;
8768         esac
8769       else
8770         ld_shlibs=no
8771       fi
8772       ;;
8773
8774     netbsd*)
8775       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8776         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8777         wlarc=
8778       else
8779         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8781       fi
8782       ;;
8783
8784     solaris*)
8785       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8786         ld_shlibs=no
8787         cat <<_LT_EOF 1>&2
8788
8789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8790 *** create shared libraries on Solaris systems.  Therefore, libtool
8791 *** is disabling shared libraries support.  We urge you to upgrade GNU
8792 *** binutils to release 2.9.1 or newer.  Another option is to modify
8793 *** your PATH or compiler configuration so that the native linker is
8794 *** used, and then restart.
8795
8796 _LT_EOF
8797       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8798         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800       else
8801         ld_shlibs=no
8802       fi
8803       ;;
8804
8805     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8806       case `$LD -v 2>&1` in
8807         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8808         ld_shlibs=no
8809         cat <<_LT_EOF 1>&2
8810
8811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8812 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8813 *** is disabling shared libraries support.  We urge you to upgrade GNU
8814 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8815 *** your PATH or compiler configuration so that the native linker is
8816 *** used, and then restart.
8817
8818 _LT_EOF
8819         ;;
8820         *)
8821           # For security reasons, it is highly recommended that you always
8822           # use absolute paths for naming shared libraries, and exclude the
8823           # DT_RUNPATH tag from executables and libraries.  But doing so
8824           # requires that you compile everything twice, which is a pain.
8825           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8829           else
8830             ld_shlibs=no
8831           fi
8832         ;;
8833       esac
8834       ;;
8835
8836     sunos4*)
8837       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8838       wlarc=
8839       hardcode_direct=yes
8840       hardcode_shlibpath_var=no
8841       ;;
8842
8843     *)
8844       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8847       else
8848         ld_shlibs=no
8849       fi
8850       ;;
8851     esac
8852
8853     if test "$ld_shlibs" = no; then
8854       runpath_var=
8855       hardcode_libdir_flag_spec=
8856       export_dynamic_flag_spec=
8857       whole_archive_flag_spec=
8858     fi
8859   else
8860     # PORTME fill in a description of your system's linker (not GNU ld)
8861     case $host_os in
8862     aix3*)
8863       allow_undefined_flag=unsupported
8864       always_export_symbols=yes
8865       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'
8866       # Note: this linker hardcodes the directories in LIBPATH if there
8867       # are no directories specified by -L.
8868       hardcode_minus_L=yes
8869       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8870         # Neither direct hardcoding nor static linking is supported with a
8871         # broken collect2.
8872         hardcode_direct=unsupported
8873       fi
8874       ;;
8875
8876     aix[4-9]*)
8877       if test "$host_cpu" = ia64; then
8878         # On IA64, the linker does run time linking by default, so we don't
8879         # have to do anything special.
8880         aix_use_runtimelinking=no
8881         exp_sym_flag='-Bexport'
8882         no_entry_flag=""
8883       else
8884         # If we're using GNU nm, then we don't want the "-C" option.
8885         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8886         # Also, AIX nm treats weak defined symbols like other global
8887         # defined symbols, whereas GNU nm marks them as "W".
8888         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8889           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'
8890         else
8891           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'
8892         fi
8893         aix_use_runtimelinking=no
8894
8895         # Test if we are trying to use run time linking or normal
8896         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8897         # need to do runtime linking.
8898         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8899           for ld_flag in $LDFLAGS; do
8900           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8901             aix_use_runtimelinking=yes
8902             break
8903           fi
8904           done
8905           ;;
8906         esac
8907
8908         exp_sym_flag='-bexport'
8909         no_entry_flag='-bnoentry'
8910       fi
8911
8912       # When large executables or shared objects are built, AIX ld can
8913       # have problems creating the table of contents.  If linking a library
8914       # or program results in "error TOC overflow" add -mminimal-toc to
8915       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8916       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8917
8918       archive_cmds=''
8919       hardcode_direct=yes
8920       hardcode_direct_absolute=yes
8921       hardcode_libdir_separator=':'
8922       link_all_deplibs=yes
8923       file_list_spec='${wl}-f,'
8924
8925       if test "$GCC" = yes; then
8926         case $host_os in aix4.[012]|aix4.[012].*)
8927         # We only want to do this on AIX 4.2 and lower, the check
8928         # below for broken collect2 doesn't work under 4.3+
8929           collect2name=`${CC} -print-prog-name=collect2`
8930           if test -f "$collect2name" &&
8931            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8932           then
8933           # We have reworked collect2
8934           :
8935           else
8936           # We have old collect2
8937           hardcode_direct=unsupported
8938           # It fails to find uninstalled libraries when the uninstalled
8939           # path is not listed in the libpath.  Setting hardcode_minus_L
8940           # to unsupported forces relinking
8941           hardcode_minus_L=yes
8942           hardcode_libdir_flag_spec='-L$libdir'
8943           hardcode_libdir_separator=
8944           fi
8945           ;;
8946         esac
8947         shared_flag='-shared'
8948         if test "$aix_use_runtimelinking" = yes; then
8949           shared_flag="$shared_flag "'${wl}-G'
8950         fi
8951       else
8952         # not using gcc
8953         if test "$host_cpu" = ia64; then
8954         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8955         # chokes on -Wl,-G. The following line is correct:
8956           shared_flag='-G'
8957         else
8958           if test "$aix_use_runtimelinking" = yes; then
8959             shared_flag='${wl}-G'
8960           else
8961             shared_flag='${wl}-bM:SRE'
8962           fi
8963         fi
8964       fi
8965
8966       export_dynamic_flag_spec='${wl}-bexpall'
8967       # It seems that -bexpall does not export symbols beginning with
8968       # underscore (_), so it is better to generate a list of symbols to export.
8969       always_export_symbols=yes
8970       if test "$aix_use_runtimelinking" = yes; then
8971         # Warning - without using the other runtime loading flags (-brtl),
8972         # -berok will link without error, but may produce a broken library.
8973         allow_undefined_flag='-berok'
8974         # Determine the default libpath from the value encoded in an
8975         # empty executable.
8976         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h.  */
8978
8979 int
8980 main ()
8981 {
8982
8983   ;
8984   return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988
8989 lt_aix_libpath_sed='
8990     /Import File Strings/,/^$/ {
8991         /^0/ {
8992             s/^0  *\(.*\)$/\1/
8993             p
8994         }
8995     }'
8996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997 # Check for a 64-bit object if we didn't find anything.
8998 if test -z "$aix_libpath"; then
8999   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9000 fi
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext \
9003     conftest$ac_exeext conftest.$ac_ext
9004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9005
9006         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9007         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"
9008       else
9009         if test "$host_cpu" = ia64; then
9010           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9011           allow_undefined_flag="-z nodefs"
9012           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"
9013         else
9014          # Determine the default libpath from the value encoded in an
9015          # empty executable.
9016          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h.  */
9018
9019 int
9020 main ()
9021 {
9022
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028
9029 lt_aix_libpath_sed='
9030     /Import File Strings/,/^$/ {
9031         /^0/ {
9032             s/^0  *\(.*\)$/\1/
9033             p
9034         }
9035     }'
9036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9037 # Check for a 64-bit object if we didn't find anything.
9038 if test -z "$aix_libpath"; then
9039   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9040 fi
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext \
9043     conftest$ac_exeext conftest.$ac_ext
9044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9045
9046          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9047           # Warning - without using the other run time loading flags,
9048           # -berok will link without error, but may produce a broken library.
9049           no_undefined_flag=' ${wl}-bernotok'
9050           allow_undefined_flag=' ${wl}-berok'
9051           if test "$with_gnu_ld" = yes; then
9052             # We only use this code for GNU lds that support --whole-archive.
9053             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9054           else
9055             # Exported symbols can be pulled into shared objects from archives
9056             whole_archive_flag_spec='$convenience'
9057           fi
9058           archive_cmds_need_lc=yes
9059           # This is similar to how AIX traditionally builds its shared libraries.
9060           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'
9061         fi
9062       fi
9063       ;;
9064
9065     amigaos*)
9066       case $host_cpu in
9067       powerpc)
9068             # see comment about AmigaOS4 .so support
9069             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070             archive_expsym_cmds=''
9071         ;;
9072       m68k)
9073             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)'
9074             hardcode_libdir_flag_spec='-L$libdir'
9075             hardcode_minus_L=yes
9076         ;;
9077       esac
9078       ;;
9079
9080     bsdi[45]*)
9081       export_dynamic_flag_spec=-rdynamic
9082       ;;
9083
9084     cygwin* | mingw* | pw32* | cegcc*)
9085       # When not using gcc, we currently assume that we are using
9086       # Microsoft Visual C++.
9087       # hardcode_libdir_flag_spec is actually meaningless, as there is
9088       # no search path for DLLs.
9089       hardcode_libdir_flag_spec=' '
9090       allow_undefined_flag=unsupported
9091       # Tell ltmain to make .lib files, not .a files.
9092       libext=lib
9093       # Tell ltmain to make .dll files, not .so files.
9094       shrext_cmds=".dll"
9095       # FIXME: Setting linknames here is a bad hack.
9096       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9097       # The linker will automatically build a .lib file if we build a DLL.
9098       old_archive_from_new_cmds='true'
9099       # FIXME: Should let the user specify the lib program.
9100       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9101       fix_srcfile_path='`cygpath -w "$srcfile"`'
9102       enable_shared_with_static_runtimes=yes
9103       ;;
9104
9105     darwin* | rhapsody*)
9106
9107
9108   archive_cmds_need_lc=no
9109   hardcode_direct=no
9110   hardcode_automatic=yes
9111   hardcode_shlibpath_var=unsupported
9112   if test "$lt_cv_ld_force_load" = "yes"; then
9113     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\"`'
9114   else
9115     whole_archive_flag_spec=''
9116   fi
9117   link_all_deplibs=yes
9118   allow_undefined_flag="$_lt_dar_allow_undefined"
9119   case $cc_basename in
9120      ifort*) _lt_dar_can_shared=yes ;;
9121      *) _lt_dar_can_shared=$GCC ;;
9122   esac
9123   if test "$_lt_dar_can_shared" = "yes"; then
9124     output_verbose_link_cmd=func_echo_all
9125     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9126     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9127     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}"
9128     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}"
9129
9130   else
9131   ld_shlibs=no
9132   fi
9133
9134       ;;
9135
9136     dgux*)
9137       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138       hardcode_libdir_flag_spec='-L$libdir'
9139       hardcode_shlibpath_var=no
9140       ;;
9141
9142     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9143     # support.  Future versions do this automatically, but an explicit c++rt0.o
9144     # does not break anything, and helps significantly (at the cost of a little
9145     # extra space).
9146     freebsd2.2*)
9147       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9148       hardcode_libdir_flag_spec='-R$libdir'
9149       hardcode_direct=yes
9150       hardcode_shlibpath_var=no
9151       ;;
9152
9153     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9154     freebsd2*)
9155       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9156       hardcode_direct=yes
9157       hardcode_minus_L=yes
9158       hardcode_shlibpath_var=no
9159       ;;
9160
9161     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9162     freebsd* | dragonfly*)
9163       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9164       hardcode_libdir_flag_spec='-R$libdir'
9165       hardcode_direct=yes
9166       hardcode_shlibpath_var=no
9167       ;;
9168
9169     hpux9*)
9170       if test "$GCC" = yes; then
9171         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'
9172       else
9173         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'
9174       fi
9175       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176       hardcode_libdir_separator=:
9177       hardcode_direct=yes
9178
9179       # hardcode_minus_L: Not really in the search PATH,
9180       # but as the default location of the library.
9181       hardcode_minus_L=yes
9182       export_dynamic_flag_spec='${wl}-E'
9183       ;;
9184
9185     hpux10*)
9186       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9187         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9188       else
9189         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9190       fi
9191       if test "$with_gnu_ld" = no; then
9192         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9193         hardcode_libdir_flag_spec_ld='+b $libdir'
9194         hardcode_libdir_separator=:
9195         hardcode_direct=yes
9196         hardcode_direct_absolute=yes
9197         export_dynamic_flag_spec='${wl}-E'
9198         # hardcode_minus_L: Not really in the search PATH,
9199         # but as the default location of the library.
9200         hardcode_minus_L=yes
9201       fi
9202       ;;
9203
9204     hpux11*)
9205       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9206         case $host_cpu in
9207         hppa*64*)
9208           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209           ;;
9210         ia64*)
9211           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9212           ;;
9213         *)
9214           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215           ;;
9216         esac
9217       else
9218         case $host_cpu in
9219         hppa*64*)
9220           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9221           ;;
9222         ia64*)
9223           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9224           ;;
9225         *)
9226
9227           # Older versions of the 11.00 compiler do not understand -b yet
9228           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9229           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9230 $as_echo_n "checking if $CC understands -b... " >&6; }
9231 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9232   $as_echo_n "(cached) " >&6
9233 else
9234   lt_cv_prog_compiler__b=no
9235    save_LDFLAGS="$LDFLAGS"
9236    LDFLAGS="$LDFLAGS -b"
9237    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9238    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9239      # The linker can only warn and ignore the option if not recognized
9240      # So say no if there are warnings
9241      if test -s conftest.err; then
9242        # Append any errors to the config.log.
9243        cat conftest.err 1>&5
9244        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9245        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9246        if diff conftest.exp conftest.er2 >/dev/null; then
9247          lt_cv_prog_compiler__b=yes
9248        fi
9249      else
9250        lt_cv_prog_compiler__b=yes
9251      fi
9252    fi
9253    $RM -r conftest*
9254    LDFLAGS="$save_LDFLAGS"
9255
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9258 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9259
9260 if test x"$lt_cv_prog_compiler__b" = xyes; then
9261     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9262 else
9263     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9264 fi
9265
9266           ;;
9267         esac
9268       fi
9269       if test "$with_gnu_ld" = no; then
9270         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271         hardcode_libdir_separator=:
9272
9273         case $host_cpu in
9274         hppa*64*|ia64*)
9275           hardcode_direct=no
9276           hardcode_shlibpath_var=no
9277           ;;
9278         *)
9279           hardcode_direct=yes
9280           hardcode_direct_absolute=yes
9281           export_dynamic_flag_spec='${wl}-E'
9282
9283           # hardcode_minus_L: Not really in the search PATH,
9284           # but as the default location of the library.
9285           hardcode_minus_L=yes
9286           ;;
9287         esac
9288       fi
9289       ;;
9290
9291     irix5* | irix6* | nonstopux*)
9292       if test "$GCC" = yes; then
9293         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'
9294         # Try to use the -exported_symbol ld option, if it does not
9295         # work, assume that -exports_file does not work either and
9296         # implicitly export all symbols.
9297         save_LDFLAGS="$LDFLAGS"
9298         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9299         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h.  */
9301 int foo(void) {}
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9304   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'
9305
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext \
9308     conftest$ac_exeext conftest.$ac_ext
9309         LDFLAGS="$save_LDFLAGS"
9310       else
9311         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'
9312         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'
9313       fi
9314       archive_cmds_need_lc='no'
9315       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316       hardcode_libdir_separator=:
9317       inherit_rpath=yes
9318       link_all_deplibs=yes
9319       ;;
9320
9321     netbsd*)
9322       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9323         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9324       else
9325         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9326       fi
9327       hardcode_libdir_flag_spec='-R$libdir'
9328       hardcode_direct=yes
9329       hardcode_shlibpath_var=no
9330       ;;
9331
9332     newsos6)
9333       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334       hardcode_direct=yes
9335       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336       hardcode_libdir_separator=:
9337       hardcode_shlibpath_var=no
9338       ;;
9339
9340     *nto* | *qnx*)
9341       ;;
9342
9343     openbsd*)
9344       if test -f /usr/libexec/ld.so; then
9345         hardcode_direct=yes
9346         hardcode_shlibpath_var=no
9347         hardcode_direct_absolute=yes
9348         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9349           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9350           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9351           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9352           export_dynamic_flag_spec='${wl}-E'
9353         else
9354           case $host_os in
9355            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9356              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9357              hardcode_libdir_flag_spec='-R$libdir'
9358              ;;
9359            *)
9360              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9361              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9362              ;;
9363           esac
9364         fi
9365       else
9366         ld_shlibs=no
9367       fi
9368       ;;
9369
9370     os2*)
9371       hardcode_libdir_flag_spec='-L$libdir'
9372       hardcode_minus_L=yes
9373       allow_undefined_flag=unsupported
9374       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'
9375       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9376       ;;
9377
9378     osf3*)
9379       if test "$GCC" = yes; then
9380         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9381         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'
9382       else
9383         allow_undefined_flag=' -expect_unresolved \*'
9384         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'
9385       fi
9386       archive_cmds_need_lc='no'
9387       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388       hardcode_libdir_separator=:
9389       ;;
9390
9391     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9392       if test "$GCC" = yes; then
9393         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9394         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'
9395         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396       else
9397         allow_undefined_flag=' -expect_unresolved \*'
9398         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'
9399         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~
9400         $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'
9401
9402         # Both c and cxx compiler support -rpath directly
9403         hardcode_libdir_flag_spec='-rpath $libdir'
9404       fi
9405       archive_cmds_need_lc='no'
9406       hardcode_libdir_separator=:
9407       ;;
9408
9409     solaris*)
9410       no_undefined_flag=' -z defs'
9411       if test "$GCC" = yes; then
9412         wlarc='${wl}'
9413         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9416       else
9417         case `$CC -V 2>&1` in
9418         *"Compilers 5.0"*)
9419           wlarc=''
9420           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9422           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9423           ;;
9424         *)
9425           wlarc='${wl}'
9426           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9427           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9428           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9429           ;;
9430         esac
9431       fi
9432       hardcode_libdir_flag_spec='-R$libdir'
9433       hardcode_shlibpath_var=no
9434       case $host_os in
9435       solaris2.[0-5] | solaris2.[0-5].*) ;;
9436       *)
9437         # The compiler driver will combine and reorder linker options,
9438         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9439         # but is careful enough not to reorder.
9440         # Supported since Solaris 2.6 (maybe 2.5.1?)
9441         if test "$GCC" = yes; then
9442           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9443         else
9444           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9445         fi
9446         ;;
9447       esac
9448       link_all_deplibs=yes
9449       ;;
9450
9451     sunos4*)
9452       if test "x$host_vendor" = xsequent; then
9453         # Use $CC to link under sequent, because it throws in some extra .o
9454         # files that make .init and .fini sections work.
9455         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9456       else
9457         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9458       fi
9459       hardcode_libdir_flag_spec='-L$libdir'
9460       hardcode_direct=yes
9461       hardcode_minus_L=yes
9462       hardcode_shlibpath_var=no
9463       ;;
9464
9465     sysv4)
9466       case $host_vendor in
9467         sni)
9468           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469           hardcode_direct=yes # is this really true???
9470         ;;
9471         siemens)
9472           ## LD is ld it makes a PLAMLIB
9473           ## CC just makes a GrossModule.
9474           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9475           reload_cmds='$CC -r -o $output$reload_objs'
9476           hardcode_direct=no
9477         ;;
9478         motorola)
9479           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9481         ;;
9482       esac
9483       runpath_var='LD_RUN_PATH'
9484       hardcode_shlibpath_var=no
9485       ;;
9486
9487     sysv4.3*)
9488       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489       hardcode_shlibpath_var=no
9490       export_dynamic_flag_spec='-Bexport'
9491       ;;
9492
9493     sysv4*MP*)
9494       if test -d /usr/nec; then
9495         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496         hardcode_shlibpath_var=no
9497         runpath_var=LD_RUN_PATH
9498         hardcode_runpath_var=yes
9499         ld_shlibs=yes
9500       fi
9501       ;;
9502
9503     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9504       no_undefined_flag='${wl}-z,text'
9505       archive_cmds_need_lc=no
9506       hardcode_shlibpath_var=no
9507       runpath_var='LD_RUN_PATH'
9508
9509       if test "$GCC" = yes; then
9510         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512       else
9513         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515       fi
9516       ;;
9517
9518     sysv5* | sco3.2v5* | sco5v6*)
9519       # Note: We can NOT use -z defs as we might desire, because we do not
9520       # link with -lc, and that would cause any symbols used from libc to
9521       # always be unresolved, which means just about no library would
9522       # ever link correctly.  If we're not using GNU ld we use -z text
9523       # though, which does catch some bad symbols but isn't as heavy-handed
9524       # as -z defs.
9525       no_undefined_flag='${wl}-z,text'
9526       allow_undefined_flag='${wl}-z,nodefs'
9527       archive_cmds_need_lc=no
9528       hardcode_shlibpath_var=no
9529       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9530       hardcode_libdir_separator=':'
9531       link_all_deplibs=yes
9532       export_dynamic_flag_spec='${wl}-Bexport'
9533       runpath_var='LD_RUN_PATH'
9534
9535       if test "$GCC" = yes; then
9536         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538       else
9539         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541       fi
9542       ;;
9543
9544     uts4*)
9545       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546       hardcode_libdir_flag_spec='-L$libdir'
9547       hardcode_shlibpath_var=no
9548       ;;
9549
9550     *)
9551       ld_shlibs=no
9552       ;;
9553     esac
9554
9555     if test x$host_vendor = xsni; then
9556       case $host in
9557       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9558         export_dynamic_flag_spec='${wl}-Blargedynsym'
9559         ;;
9560       esac
9561     fi
9562   fi
9563
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9565 $as_echo "$ld_shlibs" >&6; }
9566 test "$ld_shlibs" = no && can_build_shared=no
9567
9568 with_gnu_ld=$with_gnu_ld
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 #
9585 # Do we need to explicitly link libc?
9586 #
9587 case "x$archive_cmds_need_lc" in
9588 x|xyes)
9589   # Assume -lc should be added
9590   archive_cmds_need_lc=yes
9591
9592   if test "$enable_shared" = yes && test "$GCC" = yes; then
9593     case $archive_cmds in
9594     *'~'*)
9595       # FIXME: we may have to deal with multi-command sequences.
9596       ;;
9597     '$CC '*)
9598       # Test whether the compiler implicitly links with -lc since on some
9599       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9600       # to ld, don't add -lc before -lgcc.
9601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9603 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9604   $as_echo_n "(cached) " >&6
9605 else
9606   $RM conftest*
9607         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608
9609         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9610   (eval $ac_compile) 2>&5
9611   ac_status=$?
9612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613   test $ac_status = 0; } 2>conftest.err; then
9614           soname=conftest
9615           lib=conftest
9616           libobjs=conftest.$ac_objext
9617           deplibs=
9618           wl=$lt_prog_compiler_wl
9619           pic_flag=$lt_prog_compiler_pic
9620           compiler_flags=-v
9621           linker_flags=-v
9622           verstring=
9623           output_objdir=.
9624           libname=conftest
9625           lt_save_allow_undefined_flag=$allow_undefined_flag
9626           allow_undefined_flag=
9627           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9628   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9629   ac_status=$?
9630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631   test $ac_status = 0; }
9632           then
9633             lt_cv_archive_cmds_need_lc=no
9634           else
9635             lt_cv_archive_cmds_need_lc=yes
9636           fi
9637           allow_undefined_flag=$lt_save_allow_undefined_flag
9638         else
9639           cat conftest.err 1>&5
9640         fi
9641         $RM conftest*
9642
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9645 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9646       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9647       ;;
9648     esac
9649   fi
9650   ;;
9651 esac
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9811
9812 if test "$GCC" = yes; then
9813   case $host_os in
9814     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9815     *) lt_awk_arg="/^libraries:/" ;;
9816   esac
9817   case $host_os in
9818     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9819     *) lt_sed_strip_eq="s,=/,/,g" ;;
9820   esac
9821   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9822   case $lt_search_path_spec in
9823   *\;*)
9824     # if the path contains ";" then we assume it to be the separator
9825     # otherwise default to the standard path separator (i.e. ":") - it is
9826     # assumed that no part of a normal pathname contains ";" but that should
9827     # okay in the real world where ";" in dirpaths is itself problematic.
9828     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9829     ;;
9830   *)
9831     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9832     ;;
9833   esac
9834   # Ok, now we have the path, separated by spaces, we can step through it
9835   # and add multilib dir if necessary.
9836   lt_tmp_lt_search_path_spec=
9837   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9838   for lt_sys_path in $lt_search_path_spec; do
9839     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9840       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9841     else
9842       test -d "$lt_sys_path" && \
9843         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9844     fi
9845   done
9846   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9847 BEGIN {RS=" "; FS="/|\n";} {
9848   lt_foo="";
9849   lt_count=0;
9850   for (lt_i = NF; lt_i > 0; lt_i--) {
9851     if ($lt_i != "" && $lt_i != ".") {
9852       if ($lt_i == "..") {
9853         lt_count++;
9854       } else {
9855         if (lt_count == 0) {
9856           lt_foo="/" $lt_i lt_foo;
9857         } else {
9858           lt_count--;
9859         }
9860       }
9861     }
9862   }
9863   if (lt_foo != "") { lt_freq[lt_foo]++; }
9864   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9865 }'`
9866   # AWK program above erroneously prepends '/' to C:/dos/paths
9867   # for these hosts.
9868   case $host_os in
9869     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9870       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9871   esac
9872   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9873 else
9874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9875 fi
9876 library_names_spec=
9877 libname_spec='lib$name'
9878 soname_spec=
9879 shrext_cmds=".so"
9880 postinstall_cmds=
9881 postuninstall_cmds=
9882 finish_cmds=
9883 finish_eval=
9884 shlibpath_var=
9885 shlibpath_overrides_runpath=unknown
9886 version_type=none
9887 dynamic_linker="$host_os ld.so"
9888 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9889 need_lib_prefix=unknown
9890 hardcode_into_libs=no
9891
9892 # when you set need_version to no, make sure it does not cause -set_version
9893 # flags to be left without arguments
9894 need_version=unknown
9895
9896 case $host_os in
9897 aix3*)
9898   version_type=linux
9899   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9900   shlibpath_var=LIBPATH
9901
9902   # AIX 3 has no versioning support, so we append a major version to the name.
9903   soname_spec='${libname}${release}${shared_ext}$major'
9904   ;;
9905
9906 aix[4-9]*)
9907   version_type=linux
9908   need_lib_prefix=no
9909   need_version=no
9910   hardcode_into_libs=yes
9911   if test "$host_cpu" = ia64; then
9912     # AIX 5 supports IA64
9913     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9914     shlibpath_var=LD_LIBRARY_PATH
9915   else
9916     # With GCC up to 2.95.x, collect2 would create an import file
9917     # for dependence libraries.  The import file would start with
9918     # the line `#! .'.  This would cause the generated library to
9919     # depend on `.', always an invalid library.  This was fixed in
9920     # development snapshots of GCC prior to 3.0.
9921     case $host_os in
9922       aix4 | aix4.[01] | aix4.[01].*)
9923       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9924            echo ' yes '
9925            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9926         :
9927       else
9928         can_build_shared=no
9929       fi
9930       ;;
9931     esac
9932     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9933     # soname into executable. Probably we can add versioning support to
9934     # collect2, so additional links can be useful in future.
9935     if test "$aix_use_runtimelinking" = yes; then
9936       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9937       # instead of lib<name>.a to let people know that these are not
9938       # typical AIX shared libraries.
9939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940     else
9941       # We preserve .a as extension for shared libraries through AIX4.2
9942       # and later when we are not doing run time linking.
9943       library_names_spec='${libname}${release}.a $libname.a'
9944       soname_spec='${libname}${release}${shared_ext}$major'
9945     fi
9946     shlibpath_var=LIBPATH
9947   fi
9948   ;;
9949
9950 amigaos*)
9951   case $host_cpu in
9952   powerpc)
9953     # Since July 2007 AmigaOS4 officially supports .so libraries.
9954     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956     ;;
9957   m68k)
9958     library_names_spec='$libname.ixlibrary $libname.a'
9959     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9960     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'
9961     ;;
9962   esac
9963   ;;
9964
9965 beos*)
9966   library_names_spec='${libname}${shared_ext}'
9967   dynamic_linker="$host_os ld.so"
9968   shlibpath_var=LIBRARY_PATH
9969   ;;
9970
9971 bsdi[45]*)
9972   version_type=linux
9973   need_version=no
9974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975   soname_spec='${libname}${release}${shared_ext}$major'
9976   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9977   shlibpath_var=LD_LIBRARY_PATH
9978   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9979   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9980   # the default ld.so.conf also contains /usr/contrib/lib and
9981   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9982   # libtool to hard-code these into programs
9983   ;;
9984
9985 cygwin* | mingw* | pw32* | cegcc*)
9986   version_type=windows
9987   shrext_cmds=".dll"
9988   need_version=no
9989   need_lib_prefix=no
9990
9991   case $GCC,$host_os in
9992   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9993     library_names_spec='$libname.dll.a'
9994     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9995     postinstall_cmds='base_file=`basename \${file}`~
9996       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9997       dldir=$destdir/`dirname \$dlpath`~
9998       test -d \$dldir || mkdir -p \$dldir~
9999       $install_prog $dir/$dlname \$dldir/$dlname~
10000       chmod a+x \$dldir/$dlname~
10001       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10002         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10003       fi'
10004     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10005       dlpath=$dir/\$dldll~
10006        $RM \$dlpath'
10007     shlibpath_overrides_runpath=yes
10008
10009     case $host_os in
10010     cygwin*)
10011       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10012       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10013
10014       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10015       ;;
10016     mingw* | cegcc*)
10017       # MinGW DLLs use traditional 'lib' prefix
10018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019       ;;
10020     pw32*)
10021       # pw32 DLLs use 'pw' prefix rather than 'lib'
10022       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023       ;;
10024     esac
10025     ;;
10026
10027   *)
10028     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10029     ;;
10030   esac
10031   dynamic_linker='Win32 ld.exe'
10032   # FIXME: first we should search . and the directory the executable is in
10033   shlibpath_var=PATH
10034   ;;
10035
10036 darwin* | rhapsody*)
10037   dynamic_linker="$host_os dyld"
10038   version_type=darwin
10039   need_lib_prefix=no
10040   need_version=no
10041   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10042   soname_spec='${libname}${release}${major}$shared_ext'
10043   shlibpath_overrides_runpath=yes
10044   shlibpath_var=DYLD_LIBRARY_PATH
10045   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10046
10047   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10048   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10049   ;;
10050
10051 dgux*)
10052   version_type=linux
10053   need_lib_prefix=no
10054   need_version=no
10055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10056   soname_spec='${libname}${release}${shared_ext}$major'
10057   shlibpath_var=LD_LIBRARY_PATH
10058   ;;
10059
10060 freebsd* | dragonfly*)
10061   # DragonFly does not have aout.  When/if they implement a new
10062   # versioning mechanism, adjust this.
10063   if test -x /usr/bin/objformat; then
10064     objformat=`/usr/bin/objformat`
10065   else
10066     case $host_os in
10067     freebsd[123]*) objformat=aout ;;
10068     *) objformat=elf ;;
10069     esac
10070   fi
10071   version_type=freebsd-$objformat
10072   case $version_type in
10073     freebsd-elf*)
10074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10075       need_version=no
10076       need_lib_prefix=no
10077       ;;
10078     freebsd-*)
10079       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10080       need_version=yes
10081       ;;
10082   esac
10083   shlibpath_var=LD_LIBRARY_PATH
10084   case $host_os in
10085   freebsd2*)
10086     shlibpath_overrides_runpath=yes
10087     ;;
10088   freebsd3.[01]* | freebsdelf3.[01]*)
10089     shlibpath_overrides_runpath=yes
10090     hardcode_into_libs=yes
10091     ;;
10092   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10093   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10094     shlibpath_overrides_runpath=no
10095     hardcode_into_libs=yes
10096     ;;
10097   *) # from 4.6 on, and DragonFly
10098     shlibpath_overrides_runpath=yes
10099     hardcode_into_libs=yes
10100     ;;
10101   esac
10102   ;;
10103
10104 gnu*)
10105   version_type=linux
10106   need_lib_prefix=no
10107   need_version=no
10108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10109   soname_spec='${libname}${release}${shared_ext}$major'
10110   shlibpath_var=LD_LIBRARY_PATH
10111   hardcode_into_libs=yes
10112   ;;
10113
10114 haiku*)
10115   version_type=linux
10116   need_lib_prefix=no
10117   need_version=no
10118   dynamic_linker="$host_os runtime_loader"
10119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10120   soname_spec='${libname}${release}${shared_ext}$major'
10121   shlibpath_var=LIBRARY_PATH
10122   shlibpath_overrides_runpath=yes
10123   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10124   hardcode_into_libs=yes
10125   ;;
10126
10127 hpux9* | hpux10* | hpux11*)
10128   # Give a soname corresponding to the major version so that dld.sl refuses to
10129   # link against other versions.
10130   version_type=sunos
10131   need_lib_prefix=no
10132   need_version=no
10133   case $host_cpu in
10134   ia64*)
10135     shrext_cmds='.so'
10136     hardcode_into_libs=yes
10137     dynamic_linker="$host_os dld.so"
10138     shlibpath_var=LD_LIBRARY_PATH
10139     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141     soname_spec='${libname}${release}${shared_ext}$major'
10142     if test "X$HPUX_IA64_MODE" = X32; then
10143       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10144     else
10145       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10146     fi
10147     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10148     ;;
10149   hppa*64*)
10150     shrext_cmds='.sl'
10151     hardcode_into_libs=yes
10152     dynamic_linker="$host_os dld.sl"
10153     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10154     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156     soname_spec='${libname}${release}${shared_ext}$major'
10157     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10158     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10159     ;;
10160   *)
10161     shrext_cmds='.sl'
10162     dynamic_linker="$host_os dld.sl"
10163     shlibpath_var=SHLIB_PATH
10164     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166     soname_spec='${libname}${release}${shared_ext}$major'
10167     ;;
10168   esac
10169   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10170   postinstall_cmds='chmod 555 $lib'
10171   # or fails outright, so override atomically:
10172   install_override_mode=555
10173   ;;
10174
10175 interix[3-9]*)
10176   version_type=linux
10177   need_lib_prefix=no
10178   need_version=no
10179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10180   soname_spec='${libname}${release}${shared_ext}$major'
10181   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10182   shlibpath_var=LD_LIBRARY_PATH
10183   shlibpath_overrides_runpath=no
10184   hardcode_into_libs=yes
10185   ;;
10186
10187 irix5* | irix6* | nonstopux*)
10188   case $host_os in
10189     nonstopux*) version_type=nonstopux ;;
10190     *)
10191         if test "$lt_cv_prog_gnu_ld" = yes; then
10192                 version_type=linux
10193         else
10194                 version_type=irix
10195         fi ;;
10196   esac
10197   need_lib_prefix=no
10198   need_version=no
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10201   case $host_os in
10202   irix5* | nonstopux*)
10203     libsuff= shlibsuff=
10204     ;;
10205   *)
10206     case $LD in # libtool.m4 will add one of these switches to LD
10207     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10208       libsuff= shlibsuff= libmagic=32-bit;;
10209     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10210       libsuff=32 shlibsuff=N32 libmagic=N32;;
10211     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10212       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10213     *) libsuff= shlibsuff= libmagic=never-match;;
10214     esac
10215     ;;
10216   esac
10217   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10218   shlibpath_overrides_runpath=no
10219   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10220   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10221   hardcode_into_libs=yes
10222   ;;
10223
10224 # No shared lib support for Linux oldld, aout, or coff.
10225 linux*oldld* | linux*aout* | linux*coff*)
10226   dynamic_linker=no
10227   ;;
10228
10229 # This must be Linux ELF.
10230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10231   version_type=linux
10232   need_lib_prefix=no
10233   need_version=no
10234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235   soname_spec='${libname}${release}${shared_ext}$major'
10236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   shlibpath_overrides_runpath=no
10239
10240   # Some binutils ld are patched to set DT_RUNPATH
10241   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10242   $as_echo_n "(cached) " >&6
10243 else
10244   lt_cv_shlibpath_overrides_runpath=no
10245     save_LDFLAGS=$LDFLAGS
10246     save_libdir=$libdir
10247     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10248          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10249     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h.  */
10251
10252 int
10253 main ()
10254 {
10255
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10262   lt_cv_shlibpath_overrides_runpath=yes
10263 fi
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266     conftest$ac_exeext conftest.$ac_ext
10267     LDFLAGS=$save_LDFLAGS
10268     libdir=$save_libdir
10269
10270 fi
10271
10272   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10273
10274   # This implies no fast_install, which is unacceptable.
10275   # Some rework will be needed to allow for fast_install
10276   # before this can be enabled.
10277   hardcode_into_libs=yes
10278
10279   # Append ld.so.conf contents to the search path
10280   if test -f /etc/ld.so.conf; then
10281     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' ' '`
10282     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10283   fi
10284
10285   # We used to test for /lib/ld.so.1 and disable shared libraries on
10286   # powerpc, because MkLinux only supported shared libraries with the
10287   # GNU dynamic linker.  Since this was broken with cross compilers,
10288   # most powerpc-linux boxes support dynamic linking these days and
10289   # people can always --disable-shared, the test was removed, and we
10290   # assume the GNU/Linux dynamic linker is in use.
10291   dynamic_linker='GNU/Linux ld.so'
10292   ;;
10293
10294 netbsd*)
10295   version_type=sunos
10296   need_lib_prefix=no
10297   need_version=no
10298   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10301     dynamic_linker='NetBSD (a.out) ld.so'
10302   else
10303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10304     soname_spec='${libname}${release}${shared_ext}$major'
10305     dynamic_linker='NetBSD ld.elf_so'
10306   fi
10307   shlibpath_var=LD_LIBRARY_PATH
10308   shlibpath_overrides_runpath=yes
10309   hardcode_into_libs=yes
10310   ;;
10311
10312 newsos6)
10313   version_type=linux
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315   shlibpath_var=LD_LIBRARY_PATH
10316   shlibpath_overrides_runpath=yes
10317   ;;
10318
10319 *nto* | *qnx*)
10320   version_type=qnx
10321   need_lib_prefix=no
10322   need_version=no
10323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324   soname_spec='${libname}${release}${shared_ext}$major'
10325   shlibpath_var=LD_LIBRARY_PATH
10326   shlibpath_overrides_runpath=no
10327   hardcode_into_libs=yes
10328   dynamic_linker='ldqnx.so'
10329   ;;
10330
10331 openbsd*)
10332   version_type=sunos
10333   sys_lib_dlsearch_path_spec="/usr/lib"
10334   need_lib_prefix=no
10335   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10336   case $host_os in
10337     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10338     *)                          need_version=no  ;;
10339   esac
10340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10342   shlibpath_var=LD_LIBRARY_PATH
10343   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10344     case $host_os in
10345       openbsd2.[89] | openbsd2.[89].*)
10346         shlibpath_overrides_runpath=no
10347         ;;
10348       *)
10349         shlibpath_overrides_runpath=yes
10350         ;;
10351       esac
10352   else
10353     shlibpath_overrides_runpath=yes
10354   fi
10355   ;;
10356
10357 os2*)
10358   libname_spec='$name'
10359   shrext_cmds=".dll"
10360   need_lib_prefix=no
10361   library_names_spec='$libname${shared_ext} $libname.a'
10362   dynamic_linker='OS/2 ld.exe'
10363   shlibpath_var=LIBPATH
10364   ;;
10365
10366 osf3* | osf4* | osf5*)
10367   version_type=osf
10368   need_lib_prefix=no
10369   need_version=no
10370   soname_spec='${libname}${release}${shared_ext}$major'
10371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10374   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10375   ;;
10376
10377 rdos*)
10378   dynamic_linker=no
10379   ;;
10380
10381 solaris*)
10382   version_type=linux
10383   need_lib_prefix=no
10384   need_version=no
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386   soname_spec='${libname}${release}${shared_ext}$major'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   shlibpath_overrides_runpath=yes
10389   hardcode_into_libs=yes
10390   # ldd complains unless libraries are executable
10391   postinstall_cmds='chmod +x $lib'
10392   ;;
10393
10394 sunos4*)
10395   version_type=sunos
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   shlibpath_overrides_runpath=yes
10400   if test "$with_gnu_ld" = yes; then
10401     need_lib_prefix=no
10402   fi
10403   need_version=yes
10404   ;;
10405
10406 sysv4 | sysv4.3*)
10407   version_type=linux
10408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409   soname_spec='${libname}${release}${shared_ext}$major'
10410   shlibpath_var=LD_LIBRARY_PATH
10411   case $host_vendor in
10412     sni)
10413       shlibpath_overrides_runpath=no
10414       need_lib_prefix=no
10415       runpath_var=LD_RUN_PATH
10416       ;;
10417     siemens)
10418       need_lib_prefix=no
10419       ;;
10420     motorola)
10421       need_lib_prefix=no
10422       need_version=no
10423       shlibpath_overrides_runpath=no
10424       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10425       ;;
10426   esac
10427   ;;
10428
10429 sysv4*MP*)
10430   if test -d /usr/nec ;then
10431     version_type=linux
10432     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10433     soname_spec='$libname${shared_ext}.$major'
10434     shlibpath_var=LD_LIBRARY_PATH
10435   fi
10436   ;;
10437
10438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10439   version_type=freebsd-elf
10440   need_lib_prefix=no
10441   need_version=no
10442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443   soname_spec='${libname}${release}${shared_ext}$major'
10444   shlibpath_var=LD_LIBRARY_PATH
10445   shlibpath_overrides_runpath=yes
10446   hardcode_into_libs=yes
10447   if test "$with_gnu_ld" = yes; then
10448     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10449   else
10450     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10451     case $host_os in
10452       sco3.2v5*)
10453         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10454         ;;
10455     esac
10456   fi
10457   sys_lib_dlsearch_path_spec='/usr/lib'
10458   ;;
10459
10460 tpf*)
10461   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10462   version_type=linux
10463   need_lib_prefix=no
10464   need_version=no
10465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466   shlibpath_var=LD_LIBRARY_PATH
10467   shlibpath_overrides_runpath=no
10468   hardcode_into_libs=yes
10469   ;;
10470
10471 uts4*)
10472   version_type=linux
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474   soname_spec='${libname}${release}${shared_ext}$major'
10475   shlibpath_var=LD_LIBRARY_PATH
10476   ;;
10477
10478 *)
10479   dynamic_linker=no
10480   ;;
10481 esac
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10483 $as_echo "$dynamic_linker" >&6; }
10484 test "$dynamic_linker" = no && can_build_shared=no
10485
10486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10487 if test "$GCC" = yes; then
10488   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10489 fi
10490
10491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10492   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10493 fi
10494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10495   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10496 fi
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10590 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10591 hardcode_action=
10592 if test -n "$hardcode_libdir_flag_spec" ||
10593    test -n "$runpath_var" ||
10594    test "X$hardcode_automatic" = "Xyes" ; then
10595
10596   # We can hardcode non-existent directories.
10597   if test "$hardcode_direct" != no &&
10598      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10599      # have to relink, otherwise we might link with an installed library
10600      # when we should be linking with a yet-to-be-installed one
10601      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10602      test "$hardcode_minus_L" != no; then
10603     # Linking always hardcodes the temporary library directory.
10604     hardcode_action=relink
10605   else
10606     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10607     hardcode_action=immediate
10608   fi
10609 else
10610   # We cannot hardcode anything, or else we can only hardcode existing
10611   # directories.
10612   hardcode_action=unsupported
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10615 $as_echo "$hardcode_action" >&6; }
10616
10617 if test "$hardcode_action" = relink ||
10618    test "$inherit_rpath" = yes; then
10619   # Fast installation is not supported
10620   enable_fast_install=no
10621 elif test "$shlibpath_overrides_runpath" = yes ||
10622      test "$enable_shared" = no; then
10623   # Fast installation is not necessary
10624   enable_fast_install=needless
10625 fi
10626
10627
10628
10629
10630
10631
10632   if test "x$enable_dlopen" != xyes; then
10633   enable_dlopen=unknown
10634   enable_dlopen_self=unknown
10635   enable_dlopen_self_static=unknown
10636 else
10637   lt_cv_dlopen=no
10638   lt_cv_dlopen_libs=
10639
10640   case $host_os in
10641   beos*)
10642     lt_cv_dlopen="load_add_on"
10643     lt_cv_dlopen_libs=
10644     lt_cv_dlopen_self=yes
10645     ;;
10646
10647   mingw* | pw32* | cegcc*)
10648     lt_cv_dlopen="LoadLibrary"
10649     lt_cv_dlopen_libs=
10650     ;;
10651
10652   cygwin*)
10653     lt_cv_dlopen="dlopen"
10654     lt_cv_dlopen_libs=
10655     ;;
10656
10657   darwin*)
10658   # if libdl is installed we need to link against it
10659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10660 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10662   $as_echo_n "(cached) " >&6
10663 else
10664   ac_check_lib_save_LIBS=$LIBS
10665 LIBS="-ldl  $LIBS"
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h.  */
10668
10669 /* Override any GCC internal prototype to avoid an error.
10670    Use char because int might match the return type of a GCC
10671    builtin and then its argument prototype would still apply.  */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 char dlopen ();
10676 int
10677 main ()
10678 {
10679 return dlopen ();
10680   ;
10681   return 0;
10682 }
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685   ac_cv_lib_dl_dlopen=yes
10686 else
10687   ac_cv_lib_dl_dlopen=no
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext \
10690     conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10694 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10695 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10696   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10697 else
10698
10699     lt_cv_dlopen="dyld"
10700     lt_cv_dlopen_libs=
10701     lt_cv_dlopen_self=yes
10702
10703 fi
10704
10705     ;;
10706
10707   *)
10708     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10709 if test "x$ac_cv_func_shl_load" = x""yes; then :
10710   lt_cv_dlopen="shl_load"
10711 else
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10713 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10714 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10715   $as_echo_n "(cached) " >&6
10716 else
10717   ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldld  $LIBS"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h.  */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723    Use char because int might match the return type of a GCC
10724    builtin and then its argument prototype would still apply.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char shl_load ();
10729 int
10730 main ()
10731 {
10732 return shl_load ();
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10738   ac_cv_lib_dld_shl_load=yes
10739 else
10740   ac_cv_lib_dld_shl_load=no
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext \
10743     conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10747 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10748 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10749   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10750 else
10751   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10752 if test "x$ac_cv_func_dlopen" = x""yes; then :
10753   lt_cv_dlopen="dlopen"
10754 else
10755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10756 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   ac_check_lib_save_LIBS=$LIBS
10761 LIBS="-ldl  $LIBS"
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h.  */
10764
10765 /* Override any GCC internal prototype to avoid an error.
10766    Use char because int might match the return type of a GCC
10767    builtin and then its argument prototype would still apply.  */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 char dlopen ();
10772 int
10773 main ()
10774 {
10775 return dlopen ();
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10781   ac_cv_lib_dl_dlopen=yes
10782 else
10783   ac_cv_lib_dl_dlopen=no
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786     conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10791 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10792   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10793 else
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10795 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10797   $as_echo_n "(cached) " >&6
10798 else
10799   ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-lsvld  $LIBS"
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h.  */
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805    Use char because int might match the return type of a GCC
10806    builtin and then its argument prototype would still apply.  */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char dlopen ();
10811 int
10812 main ()
10813 {
10814 return dlopen ();
10815   ;
10816   return 0;
10817 }
10818 _ACEOF
10819 if ac_fn_c_try_link "$LINENO"; then :
10820   ac_cv_lib_svld_dlopen=yes
10821 else
10822   ac_cv_lib_svld_dlopen=no
10823 fi
10824 rm -f core conftest.err conftest.$ac_objext \
10825     conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_check_lib_save_LIBS
10827 fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10829 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10830 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10831   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10832 else
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10834 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10835 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10836   $as_echo_n "(cached) " >&6
10837 else
10838   ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-ldld  $LIBS"
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h.  */
10842
10843 /* Override any GCC internal prototype to avoid an error.
10844    Use char because int might match the return type of a GCC
10845    builtin and then its argument prototype would still apply.  */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 char dld_link ();
10850 int
10851 main ()
10852 {
10853 return dld_link ();
10854   ;
10855   return 0;
10856 }
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"; then :
10859   ac_cv_lib_dld_dld_link=yes
10860 else
10861   ac_cv_lib_dld_dld_link=no
10862 fi
10863 rm -f core conftest.err conftest.$ac_objext \
10864     conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10866 fi
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10868 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10869 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10870   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10871 fi
10872
10873
10874 fi
10875
10876
10877 fi
10878
10879
10880 fi
10881
10882
10883 fi
10884
10885
10886 fi
10887
10888     ;;
10889   esac
10890
10891   if test "x$lt_cv_dlopen" != xno; then
10892     enable_dlopen=yes
10893   else
10894     enable_dlopen=no
10895   fi
10896
10897   case $lt_cv_dlopen in
10898   dlopen)
10899     save_CPPFLAGS="$CPPFLAGS"
10900     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10901
10902     save_LDFLAGS="$LDFLAGS"
10903     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10904
10905     save_LIBS="$LIBS"
10906     LIBS="$lt_cv_dlopen_libs $LIBS"
10907
10908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10909 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10910 if test "${lt_cv_dlopen_self+set}" = set; then :
10911   $as_echo_n "(cached) " >&6
10912 else
10913           if test "$cross_compiling" = yes; then :
10914   lt_cv_dlopen_self=cross
10915 else
10916   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10917   lt_status=$lt_dlunknown
10918   cat > conftest.$ac_ext <<_LT_EOF
10919 #line 10919 "configure"
10920 #include "confdefs.h"
10921
10922 #if HAVE_DLFCN_H
10923 #include <dlfcn.h>
10924 #endif
10925
10926 #include <stdio.h>
10927
10928 #ifdef RTLD_GLOBAL
10929 #  define LT_DLGLOBAL           RTLD_GLOBAL
10930 #else
10931 #  ifdef DL_GLOBAL
10932 #    define LT_DLGLOBAL         DL_GLOBAL
10933 #  else
10934 #    define LT_DLGLOBAL         0
10935 #  endif
10936 #endif
10937
10938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10939    find out it does not work in some platform. */
10940 #ifndef LT_DLLAZY_OR_NOW
10941 #  ifdef RTLD_LAZY
10942 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10943 #  else
10944 #    ifdef DL_LAZY
10945 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10946 #    else
10947 #      ifdef RTLD_NOW
10948 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10949 #      else
10950 #        ifdef DL_NOW
10951 #          define LT_DLLAZY_OR_NOW      DL_NOW
10952 #        else
10953 #          define LT_DLLAZY_OR_NOW      0
10954 #        endif
10955 #      endif
10956 #    endif
10957 #  endif
10958 #endif
10959
10960 /* When -fvisbility=hidden is used, assume the code has been annotated
10961    correspondingly for the symbols needed.  */
10962 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10963 void fnord () __attribute__((visibility("default")));
10964 #endif
10965
10966 void fnord () { int i=42; }
10967 int main ()
10968 {
10969   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10970   int status = $lt_dlunknown;
10971
10972   if (self)
10973     {
10974       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10975       else
10976         {
10977           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10978           else puts (dlerror ());
10979         }
10980       /* dlclose (self); */
10981     }
10982   else
10983     puts (dlerror ());
10984
10985   return status;
10986 }
10987 _LT_EOF
10988   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10989   (eval $ac_link) 2>&5
10990   ac_status=$?
10991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10992   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10993     (./conftest; exit; ) >&5 2>/dev/null
10994     lt_status=$?
10995     case x$lt_status in
10996       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10997       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10998       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10999     esac
11000   else :
11001     # compilation failed
11002     lt_cv_dlopen_self=no
11003   fi
11004 fi
11005 rm -fr conftest*
11006
11007
11008 fi
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11010 $as_echo "$lt_cv_dlopen_self" >&6; }
11011
11012     if test "x$lt_cv_dlopen_self" = xyes; then
11013       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11014       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11015 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11016 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11017   $as_echo_n "(cached) " >&6
11018 else
11019           if test "$cross_compiling" = yes; then :
11020   lt_cv_dlopen_self_static=cross
11021 else
11022   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11023   lt_status=$lt_dlunknown
11024   cat > conftest.$ac_ext <<_LT_EOF
11025 #line 11025 "configure"
11026 #include "confdefs.h"
11027
11028 #if HAVE_DLFCN_H
11029 #include <dlfcn.h>
11030 #endif
11031
11032 #include <stdio.h>
11033
11034 #ifdef RTLD_GLOBAL
11035 #  define LT_DLGLOBAL           RTLD_GLOBAL
11036 #else
11037 #  ifdef DL_GLOBAL
11038 #    define LT_DLGLOBAL         DL_GLOBAL
11039 #  else
11040 #    define LT_DLGLOBAL         0
11041 #  endif
11042 #endif
11043
11044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11045    find out it does not work in some platform. */
11046 #ifndef LT_DLLAZY_OR_NOW
11047 #  ifdef RTLD_LAZY
11048 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11049 #  else
11050 #    ifdef DL_LAZY
11051 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11052 #    else
11053 #      ifdef RTLD_NOW
11054 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11055 #      else
11056 #        ifdef DL_NOW
11057 #          define LT_DLLAZY_OR_NOW      DL_NOW
11058 #        else
11059 #          define LT_DLLAZY_OR_NOW      0
11060 #        endif
11061 #      endif
11062 #    endif
11063 #  endif
11064 #endif
11065
11066 /* When -fvisbility=hidden is used, assume the code has been annotated
11067    correspondingly for the symbols needed.  */
11068 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11069 void fnord () __attribute__((visibility("default")));
11070 #endif
11071
11072 void fnord () { int i=42; }
11073 int main ()
11074 {
11075   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11076   int status = $lt_dlunknown;
11077
11078   if (self)
11079     {
11080       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11081       else
11082         {
11083           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11084           else puts (dlerror ());
11085         }
11086       /* dlclose (self); */
11087     }
11088   else
11089     puts (dlerror ());
11090
11091   return status;
11092 }
11093 _LT_EOF
11094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11095   (eval $ac_link) 2>&5
11096   ac_status=$?
11097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11099     (./conftest; exit; ) >&5 2>/dev/null
11100     lt_status=$?
11101     case x$lt_status in
11102       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11103       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11104       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11105     esac
11106   else :
11107     # compilation failed
11108     lt_cv_dlopen_self_static=no
11109   fi
11110 fi
11111 rm -fr conftest*
11112
11113
11114 fi
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11116 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11117     fi
11118
11119     CPPFLAGS="$save_CPPFLAGS"
11120     LDFLAGS="$save_LDFLAGS"
11121     LIBS="$save_LIBS"
11122     ;;
11123   esac
11124
11125   case $lt_cv_dlopen_self in
11126   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11127   *) enable_dlopen_self=unknown ;;
11128   esac
11129
11130   case $lt_cv_dlopen_self_static in
11131   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11132   *) enable_dlopen_self_static=unknown ;;
11133   esac
11134 fi
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152 striplib=
11153 old_striplib=
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11155 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11156 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11157   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11158   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160 $as_echo "yes" >&6; }
11161 else
11162 # FIXME - insert some real tests, host_os isn't really good enough
11163   case $host_os in
11164   darwin*)
11165     if test -n "$STRIP" ; then
11166       striplib="$STRIP -x"
11167       old_striplib="$STRIP -S"
11168       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169 $as_echo "yes" >&6; }
11170     else
11171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11173     fi
11174     ;;
11175   *)
11176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11178     ;;
11179   esac
11180 fi
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193   # Report which library types will actually be built
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11195 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11197 $as_echo "$can_build_shared" >&6; }
11198
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11200 $as_echo_n "checking whether to build shared libraries... " >&6; }
11201   test "$can_build_shared" = "no" && enable_shared=no
11202
11203   # On AIX, shared libraries and static libraries use the same namespace, and
11204   # are all built from PIC.
11205   case $host_os in
11206   aix3*)
11207     test "$enable_shared" = yes && enable_static=no
11208     if test -n "$RANLIB"; then
11209       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11210       postinstall_cmds='$RANLIB $lib'
11211     fi
11212     ;;
11213
11214   aix[4-9]*)
11215     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11216       test "$enable_shared" = yes && enable_static=no
11217     fi
11218     ;;
11219   esac
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11221 $as_echo "$enable_shared" >&6; }
11222
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11224 $as_echo_n "checking whether to build static libraries... " >&6; }
11225   # Make sure either enable_shared or enable_static is yes.
11226   test "$enable_shared" = yes || enable_static=yes
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11228 $as_echo "$enable_static" >&6; }
11229
11230
11231
11232
11233 fi
11234 ac_ext=c
11235 ac_cpp='$CPP $CPPFLAGS'
11236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11239
11240 CC="$lt_save_CC"
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254 # Source file extension for Go test sources.
11255 ac_ext=go
11256
11257 # Object file extension for compiled Go test sources.
11258 objext=o
11259 objext_GO=$objext
11260
11261 # Code to be used in simple compile tests
11262 lt_simple_compile_test_code="package main; func main() { }"
11263
11264 # Code to be used in simple link tests
11265 lt_simple_link_test_code='package main; func main() { }'
11266
11267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11268
11269
11270
11271
11272
11273
11274 # If no C compiler was specified, use CC.
11275 LTCC=${LTCC-"$CC"}
11276
11277 # If no C compiler flags were specified, use CFLAGS.
11278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11279
11280 # Allow CC to be a program name with arguments.
11281 compiler=$CC
11282
11283
11284 # save warnings/boilerplate of simple test code
11285 ac_outfile=conftest.$ac_objext
11286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11288 _lt_compiler_boilerplate=`cat conftest.err`
11289 $RM conftest*
11290
11291 ac_outfile=conftest.$ac_objext
11292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11294 _lt_linker_boilerplate=`cat conftest.err`
11295 $RM -r conftest*
11296
11297
11298 # Allow CC to be a program name with arguments.
11299 lt_save_CC="$CC"
11300 lt_save_GCC="$GCC"
11301 GCC=yes
11302 CC=${GOC-"gccgo"}
11303 compiler=$CC
11304 compiler_GO=$CC
11305 LD_GO="$LD"
11306 for cc_temp in $compiler""; do
11307   case $cc_temp in
11308     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11309     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11310     \-*) ;;
11311     *) break;;
11312   esac
11313 done
11314 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11315
11316
11317 # Go did not exist at the time GCC didn't implicitly link libc in.
11318 archive_cmds_need_lc_GO=no
11319
11320 old_archive_cmds_GO=$old_archive_cmds
11321
11322 ## CAVEAT EMPTOR:
11323 ## There is no encapsulation within the following macros, do not change
11324 ## the running order or otherwise move them around unless you know exactly
11325 ## what you are doing...
11326 if test -n "$compiler"; then
11327
11328 lt_prog_compiler_no_builtin_flag_GO=
11329
11330 if test "$GCC" = yes; then
11331   case $cc_basename in
11332   nvcc*)
11333     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11334   *)
11335     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11336   esac
11337
11338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11339 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11340 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11341   $as_echo_n "(cached) " >&6
11342 else
11343   lt_cv_prog_compiler_rtti_exceptions=no
11344    ac_outfile=conftest.$ac_objext
11345    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11346    lt_compiler_flag="-fno-rtti -fno-exceptions"
11347    # Insert the option either (1) after the last *FLAGS variable, or
11348    # (2) before a word containing "conftest.", or (3) at the end.
11349    # Note that $ac_compile itself does not contain backslashes and begins
11350    # with a dollar sign (not a hyphen), so the echo should work correctly.
11351    # The option is referenced via a variable to avoid confusing sed.
11352    lt_compile=`echo "$ac_compile" | $SED \
11353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11355    -e 's:$: $lt_compiler_flag:'`
11356    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11357    (eval "$lt_compile" 2>conftest.err)
11358    ac_status=$?
11359    cat conftest.err >&5
11360    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361    if (exit $ac_status) && test -s "$ac_outfile"; then
11362      # The compiler can only warn and ignore the option if not recognized
11363      # So say no if there are warnings other than the usual output.
11364      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11365      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11366      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11367        lt_cv_prog_compiler_rtti_exceptions=yes
11368      fi
11369    fi
11370    $RM conftest*
11371
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11374 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11375
11376 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11377     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11378 else
11379     :
11380 fi
11381
11382 fi
11383
11384
11385
11386   lt_prog_compiler_wl_GO=
11387 lt_prog_compiler_pic_GO=
11388 lt_prog_compiler_static_GO=
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11391 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11392
11393   if test "$GCC" = yes; then
11394     lt_prog_compiler_wl_GO='-Wl,'
11395     lt_prog_compiler_static_GO='-static'
11396
11397     case $host_os in
11398       aix*)
11399       # All AIX code is PIC.
11400       if test "$host_cpu" = ia64; then
11401         # AIX 5 now supports IA64 processor
11402         lt_prog_compiler_static_GO='-Bstatic'
11403       fi
11404       ;;
11405
11406     amigaos*)
11407       case $host_cpu in
11408       powerpc)
11409             # see comment about AmigaOS4 .so support
11410             lt_prog_compiler_pic_GO='-fPIC'
11411         ;;
11412       m68k)
11413             # FIXME: we need at least 68020 code to build shared libraries, but
11414             # adding the `-m68020' flag to GCC prevents building anything better,
11415             # like `-m68040'.
11416             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11417         ;;
11418       esac
11419       ;;
11420
11421     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11422       # PIC is the default for these OSes.
11423       ;;
11424
11425     mingw* | cygwin* | pw32* | os2* | cegcc*)
11426       # This hack is so that the source file can tell whether it is being
11427       # built for inclusion in a dll (and should export symbols for example).
11428       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11429       # (--disable-auto-import) libraries
11430       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11431       ;;
11432
11433     darwin* | rhapsody*)
11434       # PIC is the default on this platform
11435       # Common symbols not allowed in MH_DYLIB files
11436       lt_prog_compiler_pic_GO='-fno-common'
11437       ;;
11438
11439     haiku*)
11440       # PIC is the default for Haiku.
11441       # The "-static" flag exists, but is broken.
11442       lt_prog_compiler_static_GO=
11443       ;;
11444
11445     hpux*)
11446       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11447       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11448       # sets the default TLS model and affects inlining.
11449       case $host_cpu in
11450       hppa*64*)
11451         # +Z the default
11452         ;;
11453       *)
11454         lt_prog_compiler_pic_GO='-fPIC'
11455         ;;
11456       esac
11457       ;;
11458
11459     interix[3-9]*)
11460       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11461       # Instead, we relocate shared libraries at runtime.
11462       ;;
11463
11464     msdosdjgpp*)
11465       # Just because we use GCC doesn't mean we suddenly get shared libraries
11466       # on systems that don't support them.
11467       lt_prog_compiler_can_build_shared_GO=no
11468       enable_shared=no
11469       ;;
11470
11471     *nto* | *qnx*)
11472       # QNX uses GNU C++, but need to define -shared option too, otherwise
11473       # it will coredump.
11474       lt_prog_compiler_pic_GO='-fPIC -shared'
11475       ;;
11476
11477     sysv4*MP*)
11478       if test -d /usr/nec; then
11479         lt_prog_compiler_pic_GO=-Kconform_pic
11480       fi
11481       ;;
11482
11483     *)
11484       lt_prog_compiler_pic_GO='-fPIC'
11485       ;;
11486     esac
11487
11488     case $cc_basename in
11489     nvcc*) # Cuda Compiler Driver 2.2
11490       lt_prog_compiler_wl_GO='-Xlinker '
11491       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11492       ;;
11493     esac
11494   else
11495     # PORTME Check for flag to pass linker flags through the system compiler.
11496     case $host_os in
11497     aix*)
11498       lt_prog_compiler_wl_GO='-Wl,'
11499       if test "$host_cpu" = ia64; then
11500         # AIX 5 now supports IA64 processor
11501         lt_prog_compiler_static_GO='-Bstatic'
11502       else
11503         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11504       fi
11505       ;;
11506
11507     mingw* | cygwin* | pw32* | os2* | cegcc*)
11508       # This hack is so that the source file can tell whether it is being
11509       # built for inclusion in a dll (and should export symbols for example).
11510       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11511       ;;
11512
11513     hpux9* | hpux10* | hpux11*)
11514       lt_prog_compiler_wl_GO='-Wl,'
11515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11516       # not for PA HP-UX.
11517       case $host_cpu in
11518       hppa*64*|ia64*)
11519         # +Z the default
11520         ;;
11521       *)
11522         lt_prog_compiler_pic_GO='+Z'
11523         ;;
11524       esac
11525       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11526       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11527       ;;
11528
11529     irix5* | irix6* | nonstopux*)
11530       lt_prog_compiler_wl_GO='-Wl,'
11531       # PIC (with -KPIC) is the default.
11532       lt_prog_compiler_static_GO='-non_shared'
11533       ;;
11534
11535     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11536       case $cc_basename in
11537       # old Intel for x86_64 which still supported -KPIC.
11538       ecc*)
11539         lt_prog_compiler_wl_GO='-Wl,'
11540         lt_prog_compiler_pic_GO='-KPIC'
11541         lt_prog_compiler_static_GO='-static'
11542         ;;
11543       # icc used to be incompatible with GCC.
11544       # ICC 10 doesn't accept -KPIC any more.
11545       icc* | ifort*)
11546         lt_prog_compiler_wl_GO='-Wl,'
11547         lt_prog_compiler_pic_GO='-fPIC'
11548         lt_prog_compiler_static_GO='-static'
11549         ;;
11550       # Lahey Fortran 8.1.
11551       lf95*)
11552         lt_prog_compiler_wl_GO='-Wl,'
11553         lt_prog_compiler_pic_GO='--shared'
11554         lt_prog_compiler_static_GO='--static'
11555         ;;
11556       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11557         # Portland Group compilers (*not* the Pentium gcc compiler,
11558         # which looks to be a dead project)
11559         lt_prog_compiler_wl_GO='-Wl,'
11560         lt_prog_compiler_pic_GO='-fpic'
11561         lt_prog_compiler_static_GO='-Bstatic'
11562         ;;
11563       ccc*)
11564         lt_prog_compiler_wl_GO='-Wl,'
11565         # All Alpha code is PIC.
11566         lt_prog_compiler_static_GO='-non_shared'
11567         ;;
11568       xl* | bgxl* | bgf* | mpixl*)
11569         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11570         lt_prog_compiler_wl_GO='-Wl,'
11571         lt_prog_compiler_pic_GO='-qpic'
11572         lt_prog_compiler_static_GO='-qstaticlink'
11573         ;;
11574       *)
11575         case `$CC -V 2>&1 | sed 5q` in
11576         *Sun\ F* | *Sun*Fortran*)
11577           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11578           lt_prog_compiler_pic_GO='-KPIC'
11579           lt_prog_compiler_static_GO='-Bstatic'
11580           lt_prog_compiler_wl_GO=''
11581           ;;
11582         *Sun\ C*)
11583           # Sun C 5.9
11584           lt_prog_compiler_pic_GO='-KPIC'
11585           lt_prog_compiler_static_GO='-Bstatic'
11586           lt_prog_compiler_wl_GO='-Wl,'
11587           ;;
11588         esac
11589         ;;
11590       esac
11591       ;;
11592
11593     newsos6)
11594       lt_prog_compiler_pic_GO='-KPIC'
11595       lt_prog_compiler_static_GO='-Bstatic'
11596       ;;
11597
11598     *nto* | *qnx*)
11599       # QNX uses GNU C++, but need to define -shared option too, otherwise
11600       # it will coredump.
11601       lt_prog_compiler_pic_GO='-fPIC -shared'
11602       ;;
11603
11604     osf3* | osf4* | osf5*)
11605       lt_prog_compiler_wl_GO='-Wl,'
11606       # All OSF/1 code is PIC.
11607       lt_prog_compiler_static_GO='-non_shared'
11608       ;;
11609
11610     rdos*)
11611       lt_prog_compiler_static_GO='-non_shared'
11612       ;;
11613
11614     solaris*)
11615       lt_prog_compiler_pic_GO='-KPIC'
11616       lt_prog_compiler_static_GO='-Bstatic'
11617       case $cc_basename in
11618       f77* | f90* | f95*)
11619         lt_prog_compiler_wl_GO='-Qoption ld ';;
11620       *)
11621         lt_prog_compiler_wl_GO='-Wl,';;
11622       esac
11623       ;;
11624
11625     sunos4*)
11626       lt_prog_compiler_wl_GO='-Qoption ld '
11627       lt_prog_compiler_pic_GO='-PIC'
11628       lt_prog_compiler_static_GO='-Bstatic'
11629       ;;
11630
11631     sysv4 | sysv4.2uw2* | sysv4.3*)
11632       lt_prog_compiler_wl_GO='-Wl,'
11633       lt_prog_compiler_pic_GO='-KPIC'
11634       lt_prog_compiler_static_GO='-Bstatic'
11635       ;;
11636
11637     sysv4*MP*)
11638       if test -d /usr/nec ;then
11639         lt_prog_compiler_pic_GO='-Kconform_pic'
11640         lt_prog_compiler_static_GO='-Bstatic'
11641       fi
11642       ;;
11643
11644     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11645       lt_prog_compiler_wl_GO='-Wl,'
11646       lt_prog_compiler_pic_GO='-KPIC'
11647       lt_prog_compiler_static_GO='-Bstatic'
11648       ;;
11649
11650     unicos*)
11651       lt_prog_compiler_wl_GO='-Wl,'
11652       lt_prog_compiler_can_build_shared_GO=no
11653       ;;
11654
11655     uts4*)
11656       lt_prog_compiler_pic_GO='-pic'
11657       lt_prog_compiler_static_GO='-Bstatic'
11658       ;;
11659
11660     *)
11661       lt_prog_compiler_can_build_shared_GO=no
11662       ;;
11663     esac
11664   fi
11665
11666 case $host_os in
11667   # For platforms which do not support PIC, -DPIC is meaningless:
11668   *djgpp*)
11669     lt_prog_compiler_pic_GO=
11670     ;;
11671   *)
11672     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11673     ;;
11674 esac
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11676 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11677
11678
11679
11680 #
11681 # Check to make sure the PIC flag actually works.
11682 #
11683 if test -n "$lt_prog_compiler_pic_GO"; then
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11686 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11687   $as_echo_n "(cached) " >&6
11688 else
11689   lt_cv_prog_compiler_pic_works_GO=no
11690    ac_outfile=conftest.$ac_objext
11691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11692    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11693    # Insert the option either (1) after the last *FLAGS variable, or
11694    # (2) before a word containing "conftest.", or (3) at the end.
11695    # Note that $ac_compile itself does not contain backslashes and begins
11696    # with a dollar sign (not a hyphen), so the echo should work correctly.
11697    # The option is referenced via a variable to avoid confusing sed.
11698    lt_compile=`echo "$ac_compile" | $SED \
11699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11701    -e 's:$: $lt_compiler_flag:'`
11702    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11703    (eval "$lt_compile" 2>conftest.err)
11704    ac_status=$?
11705    cat conftest.err >&5
11706    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707    if (exit $ac_status) && test -s "$ac_outfile"; then
11708      # The compiler can only warn and ignore the option if not recognized
11709      # So say no if there are warnings other than the usual output.
11710      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11711      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11712      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11713        lt_cv_prog_compiler_pic_works_GO=yes
11714      fi
11715    fi
11716    $RM conftest*
11717
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11720 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11721
11722 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11723     case $lt_prog_compiler_pic_GO in
11724      "" | " "*) ;;
11725      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11726      esac
11727 else
11728     lt_prog_compiler_pic_GO=
11729      lt_prog_compiler_can_build_shared_GO=no
11730 fi
11731
11732 fi
11733
11734
11735
11736 #
11737 # Check to make sure the static flag actually works.
11738 #
11739 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11742 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   lt_cv_prog_compiler_static_works_GO=no
11746    save_LDFLAGS="$LDFLAGS"
11747    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11748    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11749    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11750      # The linker can only warn and ignore the option if not recognized
11751      # So say no if there are warnings
11752      if test -s conftest.err; then
11753        # Append any errors to the config.log.
11754        cat conftest.err 1>&5
11755        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11756        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11757        if diff conftest.exp conftest.er2 >/dev/null; then
11758          lt_cv_prog_compiler_static_works_GO=yes
11759        fi
11760      else
11761        lt_cv_prog_compiler_static_works_GO=yes
11762      fi
11763    fi
11764    $RM -r conftest*
11765    LDFLAGS="$save_LDFLAGS"
11766
11767 fi
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11769 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11770
11771 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11772     :
11773 else
11774     lt_prog_compiler_static_GO=
11775 fi
11776
11777
11778
11779
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11782 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11783   $as_echo_n "(cached) " >&6
11784 else
11785   lt_cv_prog_compiler_c_o_GO=no
11786    $RM -r conftest 2>/dev/null
11787    mkdir conftest
11788    cd conftest
11789    mkdir out
11790    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11791
11792    lt_compiler_flag="-o out/conftest2.$ac_objext"
11793    # Insert the option either (1) after the last *FLAGS variable, or
11794    # (2) before a word containing "conftest.", or (3) at the end.
11795    # Note that $ac_compile itself does not contain backslashes and begins
11796    # with a dollar sign (not a hyphen), so the echo should work correctly.
11797    lt_compile=`echo "$ac_compile" | $SED \
11798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11800    -e 's:$: $lt_compiler_flag:'`
11801    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11802    (eval "$lt_compile" 2>out/conftest.err)
11803    ac_status=$?
11804    cat out/conftest.err >&5
11805    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11807    then
11808      # The compiler can only warn and ignore the option if not recognized
11809      # So say no if there are warnings
11810      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11811      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11812      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11813        lt_cv_prog_compiler_c_o_GO=yes
11814      fi
11815    fi
11816    chmod u+w . 2>&5
11817    $RM conftest*
11818    # SGI C++ compiler will create directory out/ii_files/ for
11819    # template instantiation
11820    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11821    $RM out/* && rmdir out
11822    cd ..
11823    $RM -r conftest
11824    $RM conftest*
11825
11826 fi
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11828 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11829
11830
11831
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11834 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   lt_cv_prog_compiler_c_o_GO=no
11838    $RM -r conftest 2>/dev/null
11839    mkdir conftest
11840    cd conftest
11841    mkdir out
11842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11843
11844    lt_compiler_flag="-o out/conftest2.$ac_objext"
11845    # Insert the option either (1) after the last *FLAGS variable, or
11846    # (2) before a word containing "conftest.", or (3) at the end.
11847    # Note that $ac_compile itself does not contain backslashes and begins
11848    # with a dollar sign (not a hyphen), so the echo should work correctly.
11849    lt_compile=`echo "$ac_compile" | $SED \
11850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11852    -e 's:$: $lt_compiler_flag:'`
11853    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11854    (eval "$lt_compile" 2>out/conftest.err)
11855    ac_status=$?
11856    cat out/conftest.err >&5
11857    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11859    then
11860      # The compiler can only warn and ignore the option if not recognized
11861      # So say no if there are warnings
11862      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11863      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11864      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11865        lt_cv_prog_compiler_c_o_GO=yes
11866      fi
11867    fi
11868    chmod u+w . 2>&5
11869    $RM conftest*
11870    # SGI C++ compiler will create directory out/ii_files/ for
11871    # template instantiation
11872    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11873    $RM out/* && rmdir out
11874    cd ..
11875    $RM -r conftest
11876    $RM conftest*
11877
11878 fi
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11880 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11881
11882
11883
11884
11885 hard_links="nottested"
11886 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11887   # do not overwrite the value of need_locks provided by the user
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11889 $as_echo_n "checking if we can lock with hard links... " >&6; }
11890   hard_links=yes
11891   $RM conftest*
11892   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11893   touch conftest.a
11894   ln conftest.a conftest.b 2>&5 || hard_links=no
11895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11897 $as_echo "$hard_links" >&6; }
11898   if test "$hard_links" = no; then
11899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11900 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11901     need_locks=warn
11902   fi
11903 else
11904   need_locks=no
11905 fi
11906
11907
11908
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11911
11912   runpath_var=
11913   allow_undefined_flag_GO=
11914   always_export_symbols_GO=no
11915   archive_cmds_GO=
11916   archive_expsym_cmds_GO=
11917   compiler_needs_object_GO=no
11918   enable_shared_with_static_runtimes_GO=no
11919   export_dynamic_flag_spec_GO=
11920   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11921   hardcode_automatic_GO=no
11922   hardcode_direct_GO=no
11923   hardcode_direct_absolute_GO=no
11924   hardcode_libdir_flag_spec_GO=
11925   hardcode_libdir_flag_spec_ld_GO=
11926   hardcode_libdir_separator_GO=
11927   hardcode_minus_L_GO=no
11928   hardcode_shlibpath_var_GO=unsupported
11929   inherit_rpath_GO=no
11930   link_all_deplibs_GO=unknown
11931   module_cmds_GO=
11932   module_expsym_cmds_GO=
11933   old_archive_from_new_cmds_GO=
11934   old_archive_from_expsyms_cmds_GO=
11935   thread_safe_flag_spec_GO=
11936   whole_archive_flag_spec_GO=
11937   # include_expsyms should be a list of space-separated symbols to be *always*
11938   # included in the symbol list
11939   include_expsyms_GO=
11940   # exclude_expsyms can be an extended regexp of symbols to exclude
11941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11943   # as well as any symbol that contains `d'.
11944   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11946   # platforms (ab)use it in PIC code, but their linkers get confused if
11947   # the symbol is explicitly referenced.  Since portable code cannot
11948   # rely on this symbol name, it's probably fine to never include it in
11949   # preloaded symbol tables.
11950   # Exclude shared library initialization/finalization symbols.
11951   extract_expsyms_cmds=
11952
11953   case $host_os in
11954   cygwin* | mingw* | pw32* | cegcc*)
11955     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11956     # When not using gcc, we currently assume that we are using
11957     # Microsoft Visual C++.
11958     if test "$GCC" != yes; then
11959       with_gnu_ld=no
11960     fi
11961     ;;
11962   interix*)
11963     # we just hope/assume this is gcc and not c89 (= MSVC++)
11964     with_gnu_ld=yes
11965     ;;
11966   openbsd*)
11967     with_gnu_ld=no
11968     ;;
11969   esac
11970
11971   ld_shlibs_GO=yes
11972
11973   # On some targets, GNU ld is compatible enough with the native linker
11974   # that we're better off using the native interface for both.
11975   lt_use_gnu_ld_interface=no
11976   if test "$with_gnu_ld" = yes; then
11977     case $host_os in
11978       aix*)
11979         # The AIX port of GNU ld has always aspired to compatibility
11980         # with the native linker.  However, as the warning in the GNU ld
11981         # block says, versions before 2.19.5* couldn't really create working
11982         # shared libraries, regardless of the interface used.
11983         case `$LD -v 2>&1` in
11984           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11985           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11986           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11987           *)
11988             lt_use_gnu_ld_interface=yes
11989             ;;
11990         esac
11991         ;;
11992       *)
11993         lt_use_gnu_ld_interface=yes
11994         ;;
11995     esac
11996   fi
11997
11998   if test "$lt_use_gnu_ld_interface" = yes; then
11999     # If archive_cmds runs LD, not CC, wlarc should be empty
12000     wlarc='${wl}'
12001
12002     # Set some defaults for GNU ld with shared library support. These
12003     # are reset later if shared libraries are not supported. Putting them
12004     # here allows them to be overridden if necessary.
12005     runpath_var=LD_RUN_PATH
12006     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12007     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12008     # ancient GNU ld didn't support --whole-archive et. al.
12009     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12010       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12011     else
12012       whole_archive_flag_spec_GO=
12013     fi
12014     supports_anon_versioning=no
12015     case `$LD -v 2>&1` in
12016       *GNU\ gold*) supports_anon_versioning=yes ;;
12017       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12018       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12019       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12020       *\ 2.11.*) ;; # other 2.11 versions
12021       *) supports_anon_versioning=yes ;;
12022     esac
12023
12024     # See if GNU ld supports shared libraries.
12025     case $host_os in
12026     aix[3-9]*)
12027       # On AIX/PPC, the GNU linker is very broken
12028       if test "$host_cpu" != ia64; then
12029         ld_shlibs_GO=no
12030         cat <<_LT_EOF 1>&2
12031
12032 *** Warning: the GNU linker, at least up to release 2.19, is reported
12033 *** to be unable to reliably create shared libraries on AIX.
12034 *** Therefore, libtool is disabling shared libraries support.  If you
12035 *** really care for shared libraries, you may want to install binutils
12036 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12037 *** You will then need to restart the configuration process.
12038
12039 _LT_EOF
12040       fi
12041       ;;
12042
12043     amigaos*)
12044       case $host_cpu in
12045       powerpc)
12046             # see comment about AmigaOS4 .so support
12047             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12048             archive_expsym_cmds_GO=''
12049         ;;
12050       m68k)
12051             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)'
12052             hardcode_libdir_flag_spec_GO='-L$libdir'
12053             hardcode_minus_L_GO=yes
12054         ;;
12055       esac
12056       ;;
12057
12058     beos*)
12059       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12060         allow_undefined_flag_GO=unsupported
12061         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12062         # support --undefined.  This deserves some investigation.  FIXME
12063         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12064       else
12065         ld_shlibs_GO=no
12066       fi
12067       ;;
12068
12069     cygwin* | mingw* | pw32* | cegcc*)
12070       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12071       # as there is no search path for DLLs.
12072       hardcode_libdir_flag_spec_GO='-L$libdir'
12073       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12074       allow_undefined_flag_GO=unsupported
12075       always_export_symbols_GO=no
12076       enable_shared_with_static_runtimes_GO=yes
12077       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12078
12079       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12080         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12081         # If the export-symbols file already is a .def file (1st line
12082         # is EXPORTS), use it as is; otherwise, prepend...
12083         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12084           cp $export_symbols $output_objdir/$soname.def;
12085         else
12086           echo EXPORTS > $output_objdir/$soname.def;
12087           cat $export_symbols >> $output_objdir/$soname.def;
12088         fi~
12089         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12090       else
12091         ld_shlibs_GO=no
12092       fi
12093       ;;
12094
12095     haiku*)
12096       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12097       link_all_deplibs_GO=yes
12098       ;;
12099
12100     interix[3-9]*)
12101       hardcode_direct_GO=no
12102       hardcode_shlibpath_var_GO=no
12103       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12104       export_dynamic_flag_spec_GO='${wl}-E'
12105       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12106       # Instead, shared libraries are loaded at an image base (0x10000000 by
12107       # default) and relocated if they conflict, which is a slow very memory
12108       # consuming and fragmenting process.  To avoid this, we pick a random,
12109       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12110       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12111       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'
12112       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'
12113       ;;
12114
12115     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12116       tmp_diet=no
12117       if test "$host_os" = linux-dietlibc; then
12118         case $cc_basename in
12119           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12120         esac
12121       fi
12122       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12123          && test "$tmp_diet" = no
12124       then
12125         tmp_addflag=
12126         tmp_sharedflag='-shared'
12127         case $cc_basename,$host_cpu in
12128         pgcc*)                          # Portland Group C compiler
12129           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'
12130           tmp_addflag=' $pic_flag'
12131           ;;
12132         pgf77* | pgf90* | pgf95* | pgfortran*)
12133                                         # Portland Group f77 and f90 compilers
12134           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'
12135           tmp_addflag=' $pic_flag -Mnomain' ;;
12136         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12137           tmp_addflag=' -i_dynamic' ;;
12138         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12139           tmp_addflag=' -i_dynamic -nofor_main' ;;
12140         ifc* | ifort*)                  # Intel Fortran compiler
12141           tmp_addflag=' -nofor_main' ;;
12142         lf95*)                          # Lahey Fortran 8.1
12143           whole_archive_flag_spec_GO=
12144           tmp_sharedflag='--shared' ;;
12145         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12146           tmp_sharedflag='-qmkshrobj'
12147           tmp_addflag= ;;
12148         nvcc*)  # Cuda Compiler Driver 2.2
12149           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'
12150           compiler_needs_object_GO=yes
12151           ;;
12152         esac
12153         case `$CC -V 2>&1 | sed 5q` in
12154         *Sun\ C*)                       # Sun C 5.9
12155           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'
12156           compiler_needs_object_GO=yes
12157           tmp_sharedflag='-G' ;;
12158         *Sun\ F*)                       # Sun Fortran 8.3
12159           tmp_sharedflag='-G' ;;
12160         esac
12161         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12162
12163         if test "x$supports_anon_versioning" = xyes; then
12164           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12165             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12166             echo "local: *; };" >> $output_objdir/$libname.ver~
12167             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12168         fi
12169
12170         case $cc_basename in
12171         xlf* | bgf* | bgxlf* | mpixlf*)
12172           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12173           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12174           hardcode_libdir_flag_spec_GO=
12175           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12176           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12177           if test "x$supports_anon_versioning" = xyes; then
12178             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12179               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12180               echo "local: *; };" >> $output_objdir/$libname.ver~
12181               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12182           fi
12183           ;;
12184         esac
12185       else
12186         ld_shlibs_GO=no
12187       fi
12188       ;;
12189
12190     netbsd*)
12191       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12192         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12193         wlarc=
12194       else
12195         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12196         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12197       fi
12198       ;;
12199
12200     solaris*)
12201       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12202         ld_shlibs_GO=no
12203         cat <<_LT_EOF 1>&2
12204
12205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12206 *** create shared libraries on Solaris systems.  Therefore, libtool
12207 *** is disabling shared libraries support.  We urge you to upgrade GNU
12208 *** binutils to release 2.9.1 or newer.  Another option is to modify
12209 *** your PATH or compiler configuration so that the native linker is
12210 *** used, and then restart.
12211
12212 _LT_EOF
12213       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12214         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12216       else
12217         ld_shlibs_GO=no
12218       fi
12219       ;;
12220
12221     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12222       case `$LD -v 2>&1` in
12223         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12224         ld_shlibs_GO=no
12225         cat <<_LT_EOF 1>&2
12226
12227 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12228 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12229 *** is disabling shared libraries support.  We urge you to upgrade GNU
12230 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12231 *** your PATH or compiler configuration so that the native linker is
12232 *** used, and then restart.
12233
12234 _LT_EOF
12235         ;;
12236         *)
12237           # For security reasons, it is highly recommended that you always
12238           # use absolute paths for naming shared libraries, and exclude the
12239           # DT_RUNPATH tag from executables and libraries.  But doing so
12240           # requires that you compile everything twice, which is a pain.
12241           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12242             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12243             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12245           else
12246             ld_shlibs_GO=no
12247           fi
12248         ;;
12249       esac
12250       ;;
12251
12252     sunos4*)
12253       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12254       wlarc=
12255       hardcode_direct_GO=yes
12256       hardcode_shlibpath_var_GO=no
12257       ;;
12258
12259     *)
12260       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12261         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12262         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12263       else
12264         ld_shlibs_GO=no
12265       fi
12266       ;;
12267     esac
12268
12269     if test "$ld_shlibs_GO" = no; then
12270       runpath_var=
12271       hardcode_libdir_flag_spec_GO=
12272       export_dynamic_flag_spec_GO=
12273       whole_archive_flag_spec_GO=
12274     fi
12275   else
12276     # PORTME fill in a description of your system's linker (not GNU ld)
12277     case $host_os in
12278     aix3*)
12279       allow_undefined_flag_GO=unsupported
12280       always_export_symbols_GO=yes
12281       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'
12282       # Note: this linker hardcodes the directories in LIBPATH if there
12283       # are no directories specified by -L.
12284       hardcode_minus_L_GO=yes
12285       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12286         # Neither direct hardcoding nor static linking is supported with a
12287         # broken collect2.
12288         hardcode_direct_GO=unsupported
12289       fi
12290       ;;
12291
12292     aix[4-9]*)
12293       if test "$host_cpu" = ia64; then
12294         # On IA64, the linker does run time linking by default, so we don't
12295         # have to do anything special.
12296         aix_use_runtimelinking=no
12297         exp_sym_flag='-Bexport'
12298         no_entry_flag=""
12299       else
12300         # If we're using GNU nm, then we don't want the "-C" option.
12301         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12302         # Also, AIX nm treats weak defined symbols like other global
12303         # defined symbols, whereas GNU nm marks them as "W".
12304         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12305           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'
12306         else
12307           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'
12308         fi
12309         aix_use_runtimelinking=no
12310
12311         # Test if we are trying to use run time linking or normal
12312         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12313         # need to do runtime linking.
12314         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12315           for ld_flag in $LDFLAGS; do
12316           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12317             aix_use_runtimelinking=yes
12318             break
12319           fi
12320           done
12321           ;;
12322         esac
12323
12324         exp_sym_flag='-bexport'
12325         no_entry_flag='-bnoentry'
12326       fi
12327
12328       # When large executables or shared objects are built, AIX ld can
12329       # have problems creating the table of contents.  If linking a library
12330       # or program results in "error TOC overflow" add -mminimal-toc to
12331       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12332       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12333
12334       archive_cmds_GO=''
12335       hardcode_direct_GO=yes
12336       hardcode_direct_absolute_GO=yes
12337       hardcode_libdir_separator_GO=':'
12338       link_all_deplibs_GO=yes
12339       file_list_spec_GO='${wl}-f,'
12340
12341       if test "$GCC" = yes; then
12342         case $host_os in aix4.[012]|aix4.[012].*)
12343         # We only want to do this on AIX 4.2 and lower, the check
12344         # below for broken collect2 doesn't work under 4.3+
12345           collect2name=`${CC} -print-prog-name=collect2`
12346           if test -f "$collect2name" &&
12347            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12348           then
12349           # We have reworked collect2
12350           :
12351           else
12352           # We have old collect2
12353           hardcode_direct_GO=unsupported
12354           # It fails to find uninstalled libraries when the uninstalled
12355           # path is not listed in the libpath.  Setting hardcode_minus_L
12356           # to unsupported forces relinking
12357           hardcode_minus_L_GO=yes
12358           hardcode_libdir_flag_spec_GO='-L$libdir'
12359           hardcode_libdir_separator_GO=
12360           fi
12361           ;;
12362         esac
12363         shared_flag='-shared'
12364         if test "$aix_use_runtimelinking" = yes; then
12365           shared_flag="$shared_flag "'${wl}-G'
12366         fi
12367       else
12368         # not using gcc
12369         if test "$host_cpu" = ia64; then
12370         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12371         # chokes on -Wl,-G. The following line is correct:
12372           shared_flag='-G'
12373         else
12374           if test "$aix_use_runtimelinking" = yes; then
12375             shared_flag='${wl}-G'
12376           else
12377             shared_flag='${wl}-bM:SRE'
12378           fi
12379         fi
12380       fi
12381
12382       export_dynamic_flag_spec_GO='${wl}-bexpall'
12383       # It seems that -bexpall does not export symbols beginning with
12384       # underscore (_), so it is better to generate a list of symbols to export.
12385       always_export_symbols_GO=yes
12386       if test "$aix_use_runtimelinking" = yes; then
12387         # Warning - without using the other runtime loading flags (-brtl),
12388         # -berok will link without error, but may produce a broken library.
12389         allow_undefined_flag_GO='-berok'
12390         # Determine the default libpath from the value encoded in an
12391         # empty executable.
12392         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h.  */
12394
12395 int
12396 main ()
12397 {
12398
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 if ac_fn_c_try_link "$LINENO"; then :
12404
12405 lt_aix_libpath_sed='
12406     /Import File Strings/,/^$/ {
12407         /^0/ {
12408             s/^0  *\(.*\)$/\1/
12409             p
12410         }
12411     }'
12412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12413 # Check for a 64-bit object if we didn't find anything.
12414 if test -z "$aix_libpath"; then
12415   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12416 fi
12417 fi
12418 rm -f core conftest.err conftest.$ac_objext \
12419     conftest$ac_exeext conftest.$ac_ext
12420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12421
12422         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12423         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"
12424       else
12425         if test "$host_cpu" = ia64; then
12426           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12427           allow_undefined_flag_GO="-z nodefs"
12428           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"
12429         else
12430          # Determine the default libpath from the value encoded in an
12431          # empty executable.
12432          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h.  */
12434
12435 int
12436 main ()
12437 {
12438
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 if ac_fn_c_try_link "$LINENO"; then :
12444
12445 lt_aix_libpath_sed='
12446     /Import File Strings/,/^$/ {
12447         /^0/ {
12448             s/^0  *\(.*\)$/\1/
12449             p
12450         }
12451     }'
12452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12453 # Check for a 64-bit object if we didn't find anything.
12454 if test -z "$aix_libpath"; then
12455   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12456 fi
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext \
12459     conftest$ac_exeext conftest.$ac_ext
12460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12461
12462          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12463           # Warning - without using the other run time loading flags,
12464           # -berok will link without error, but may produce a broken library.
12465           no_undefined_flag_GO=' ${wl}-bernotok'
12466           allow_undefined_flag_GO=' ${wl}-berok'
12467           if test "$with_gnu_ld" = yes; then
12468             # We only use this code for GNU lds that support --whole-archive.
12469             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12470           else
12471             # Exported symbols can be pulled into shared objects from archives
12472             whole_archive_flag_spec_GO='$convenience'
12473           fi
12474           archive_cmds_need_lc_GO=yes
12475           # This is similar to how AIX traditionally builds its shared libraries.
12476           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'
12477         fi
12478       fi
12479       ;;
12480
12481     amigaos*)
12482       case $host_cpu in
12483       powerpc)
12484             # see comment about AmigaOS4 .so support
12485             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12486             archive_expsym_cmds_GO=''
12487         ;;
12488       m68k)
12489             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)'
12490             hardcode_libdir_flag_spec_GO='-L$libdir'
12491             hardcode_minus_L_GO=yes
12492         ;;
12493       esac
12494       ;;
12495
12496     bsdi[45]*)
12497       export_dynamic_flag_spec_GO=-rdynamic
12498       ;;
12499
12500     cygwin* | mingw* | pw32* | cegcc*)
12501       # When not using gcc, we currently assume that we are using
12502       # Microsoft Visual C++.
12503       # hardcode_libdir_flag_spec is actually meaningless, as there is
12504       # no search path for DLLs.
12505       hardcode_libdir_flag_spec_GO=' '
12506       allow_undefined_flag_GO=unsupported
12507       # Tell ltmain to make .lib files, not .a files.
12508       libext=lib
12509       # Tell ltmain to make .dll files, not .so files.
12510       shrext_cmds=".dll"
12511       # FIXME: Setting linknames here is a bad hack.
12512       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12513       # The linker will automatically build a .lib file if we build a DLL.
12514       old_archive_from_new_cmds_GO='true'
12515       # FIXME: Should let the user specify the lib program.
12516       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12517       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12518       enable_shared_with_static_runtimes_GO=yes
12519       ;;
12520
12521     darwin* | rhapsody*)
12522
12523
12524   archive_cmds_need_lc_GO=no
12525   hardcode_direct_GO=no
12526   hardcode_automatic_GO=yes
12527   hardcode_shlibpath_var_GO=unsupported
12528   if test "$lt_cv_ld_force_load" = "yes"; then
12529     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\"`'
12530   else
12531     whole_archive_flag_spec_GO=''
12532   fi
12533   link_all_deplibs_GO=yes
12534   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12535   case $cc_basename in
12536      ifort*) _lt_dar_can_shared=yes ;;
12537      *) _lt_dar_can_shared=$GCC ;;
12538   esac
12539   if test "$_lt_dar_can_shared" = "yes"; then
12540     output_verbose_link_cmd=func_echo_all
12541     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}"
12542     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12543     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}"
12544     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}"
12545
12546   else
12547   ld_shlibs_GO=no
12548   fi
12549
12550       ;;
12551
12552     dgux*)
12553       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12554       hardcode_libdir_flag_spec_GO='-L$libdir'
12555       hardcode_shlibpath_var_GO=no
12556       ;;
12557
12558     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12559     # support.  Future versions do this automatically, but an explicit c++rt0.o
12560     # does not break anything, and helps significantly (at the cost of a little
12561     # extra space).
12562     freebsd2.2*)
12563       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12564       hardcode_libdir_flag_spec_GO='-R$libdir'
12565       hardcode_direct_GO=yes
12566       hardcode_shlibpath_var_GO=no
12567       ;;
12568
12569     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12570     freebsd2*)
12571       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12572       hardcode_direct_GO=yes
12573       hardcode_minus_L_GO=yes
12574       hardcode_shlibpath_var_GO=no
12575       ;;
12576
12577     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12578     freebsd* | dragonfly*)
12579       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12580       hardcode_libdir_flag_spec_GO='-R$libdir'
12581       hardcode_direct_GO=yes
12582       hardcode_shlibpath_var_GO=no
12583       ;;
12584
12585     hpux9*)
12586       if test "$GCC" = yes; then
12587         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'
12588       else
12589         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'
12590       fi
12591       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12592       hardcode_libdir_separator_GO=:
12593       hardcode_direct_GO=yes
12594
12595       # hardcode_minus_L: Not really in the search PATH,
12596       # but as the default location of the library.
12597       hardcode_minus_L_GO=yes
12598       export_dynamic_flag_spec_GO='${wl}-E'
12599       ;;
12600
12601     hpux10*)
12602       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12603         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12604       else
12605         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12606       fi
12607       if test "$with_gnu_ld" = no; then
12608         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12609         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12610         hardcode_libdir_separator_GO=:
12611         hardcode_direct_GO=yes
12612         hardcode_direct_absolute_GO=yes
12613         export_dynamic_flag_spec_GO='${wl}-E'
12614         # hardcode_minus_L: Not really in the search PATH,
12615         # but as the default location of the library.
12616         hardcode_minus_L_GO=yes
12617       fi
12618       ;;
12619
12620     hpux11*)
12621       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12622         case $host_cpu in
12623         hppa*64*)
12624           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12625           ;;
12626         ia64*)
12627           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12628           ;;
12629         *)
12630           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12631           ;;
12632         esac
12633       else
12634         case $host_cpu in
12635         hppa*64*)
12636           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12637           ;;
12638         ia64*)
12639           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12640           ;;
12641         *)
12642         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12643           ;;
12644         esac
12645       fi
12646       if test "$with_gnu_ld" = no; then
12647         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12648         hardcode_libdir_separator_GO=:
12649
12650         case $host_cpu in
12651         hppa*64*|ia64*)
12652           hardcode_direct_GO=no
12653           hardcode_shlibpath_var_GO=no
12654           ;;
12655         *)
12656           hardcode_direct_GO=yes
12657           hardcode_direct_absolute_GO=yes
12658           export_dynamic_flag_spec_GO='${wl}-E'
12659
12660           # hardcode_minus_L: Not really in the search PATH,
12661           # but as the default location of the library.
12662           hardcode_minus_L_GO=yes
12663           ;;
12664         esac
12665       fi
12666       ;;
12667
12668     irix5* | irix6* | nonstopux*)
12669       if test "$GCC" = yes; then
12670         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'
12671         # Try to use the -exported_symbol ld option, if it does not
12672         # work, assume that -exports_file does not work either and
12673         # implicitly export all symbols.
12674         save_LDFLAGS="$LDFLAGS"
12675         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12676         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h.  */
12678 int foo(void) {}
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"; then :
12681   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'
12682
12683 fi
12684 rm -f core conftest.err conftest.$ac_objext \
12685     conftest$ac_exeext conftest.$ac_ext
12686         LDFLAGS="$save_LDFLAGS"
12687       else
12688         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'
12689         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'
12690       fi
12691       archive_cmds_need_lc_GO='no'
12692       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12693       hardcode_libdir_separator_GO=:
12694       inherit_rpath_GO=yes
12695       link_all_deplibs_GO=yes
12696       ;;
12697
12698     netbsd*)
12699       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12700         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12701       else
12702         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12703       fi
12704       hardcode_libdir_flag_spec_GO='-R$libdir'
12705       hardcode_direct_GO=yes
12706       hardcode_shlibpath_var_GO=no
12707       ;;
12708
12709     newsos6)
12710       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12711       hardcode_direct_GO=yes
12712       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12713       hardcode_libdir_separator_GO=:
12714       hardcode_shlibpath_var_GO=no
12715       ;;
12716
12717     *nto* | *qnx*)
12718       ;;
12719
12720     openbsd*)
12721       if test -f /usr/libexec/ld.so; then
12722         hardcode_direct_GO=yes
12723         hardcode_shlibpath_var_GO=no
12724         hardcode_direct_absolute_GO=yes
12725         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12726           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12727           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12728           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12729           export_dynamic_flag_spec_GO='${wl}-E'
12730         else
12731           case $host_os in
12732            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12733              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12734              hardcode_libdir_flag_spec_GO='-R$libdir'
12735              ;;
12736            *)
12737              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12738              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12739              ;;
12740           esac
12741         fi
12742       else
12743         ld_shlibs_GO=no
12744       fi
12745       ;;
12746
12747     os2*)
12748       hardcode_libdir_flag_spec_GO='-L$libdir'
12749       hardcode_minus_L_GO=yes
12750       allow_undefined_flag_GO=unsupported
12751       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'
12752       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12753       ;;
12754
12755     osf3*)
12756       if test "$GCC" = yes; then
12757         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12758         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'
12759       else
12760         allow_undefined_flag_GO=' -expect_unresolved \*'
12761         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'
12762       fi
12763       archive_cmds_need_lc_GO='no'
12764       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12765       hardcode_libdir_separator_GO=:
12766       ;;
12767
12768     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12769       if test "$GCC" = yes; then
12770         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12771         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'
12772         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12773       else
12774         allow_undefined_flag_GO=' -expect_unresolved \*'
12775         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'
12776         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~
12777         $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'
12778
12779         # Both c and cxx compiler support -rpath directly
12780         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12781       fi
12782       archive_cmds_need_lc_GO='no'
12783       hardcode_libdir_separator_GO=:
12784       ;;
12785
12786     solaris*)
12787       no_undefined_flag_GO=' -z defs'
12788       if test "$GCC" = yes; then
12789         wlarc='${wl}'
12790         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12791         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12792           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12793       else
12794         case `$CC -V 2>&1` in
12795         *"Compilers 5.0"*)
12796           wlarc=''
12797           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12798           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12799           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12800           ;;
12801         *)
12802           wlarc='${wl}'
12803           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12804           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12805           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12806           ;;
12807         esac
12808       fi
12809       hardcode_libdir_flag_spec_GO='-R$libdir'
12810       hardcode_shlibpath_var_GO=no
12811       case $host_os in
12812       solaris2.[0-5] | solaris2.[0-5].*) ;;
12813       *)
12814         # The compiler driver will combine and reorder linker options,
12815         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12816         # but is careful enough not to reorder.
12817         # Supported since Solaris 2.6 (maybe 2.5.1?)
12818         if test "$GCC" = yes; then
12819           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12820         else
12821           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12822         fi
12823         ;;
12824       esac
12825       link_all_deplibs_GO=yes
12826       ;;
12827
12828     sunos4*)
12829       if test "x$host_vendor" = xsequent; then
12830         # Use $CC to link under sequent, because it throws in some extra .o
12831         # files that make .init and .fini sections work.
12832         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12833       else
12834         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12835       fi
12836       hardcode_libdir_flag_spec_GO='-L$libdir'
12837       hardcode_direct_GO=yes
12838       hardcode_minus_L_GO=yes
12839       hardcode_shlibpath_var_GO=no
12840       ;;
12841
12842     sysv4)
12843       case $host_vendor in
12844         sni)
12845           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846           hardcode_direct_GO=yes # is this really true???
12847         ;;
12848         siemens)
12849           ## LD is ld it makes a PLAMLIB
12850           ## CC just makes a GrossModule.
12851           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12852           reload_cmds_GO='$CC -r -o $output$reload_objs'
12853           hardcode_direct_GO=no
12854         ;;
12855         motorola)
12856           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12858         ;;
12859       esac
12860       runpath_var='LD_RUN_PATH'
12861       hardcode_shlibpath_var_GO=no
12862       ;;
12863
12864     sysv4.3*)
12865       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12866       hardcode_shlibpath_var_GO=no
12867       export_dynamic_flag_spec_GO='-Bexport'
12868       ;;
12869
12870     sysv4*MP*)
12871       if test -d /usr/nec; then
12872         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873         hardcode_shlibpath_var_GO=no
12874         runpath_var=LD_RUN_PATH
12875         hardcode_runpath_var=yes
12876         ld_shlibs_GO=yes
12877       fi
12878       ;;
12879
12880     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12881       no_undefined_flag_GO='${wl}-z,text'
12882       archive_cmds_need_lc_GO=no
12883       hardcode_shlibpath_var_GO=no
12884       runpath_var='LD_RUN_PATH'
12885
12886       if test "$GCC" = yes; then
12887         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12888         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12889       else
12890         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12891         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12892       fi
12893       ;;
12894
12895     sysv5* | sco3.2v5* | sco5v6*)
12896       # Note: We can NOT use -z defs as we might desire, because we do not
12897       # link with -lc, and that would cause any symbols used from libc to
12898       # always be unresolved, which means just about no library would
12899       # ever link correctly.  If we're not using GNU ld we use -z text
12900       # though, which does catch some bad symbols but isn't as heavy-handed
12901       # as -z defs.
12902       no_undefined_flag_GO='${wl}-z,text'
12903       allow_undefined_flag_GO='${wl}-z,nodefs'
12904       archive_cmds_need_lc_GO=no
12905       hardcode_shlibpath_var_GO=no
12906       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12907       hardcode_libdir_separator_GO=':'
12908       link_all_deplibs_GO=yes
12909       export_dynamic_flag_spec_GO='${wl}-Bexport'
12910       runpath_var='LD_RUN_PATH'
12911
12912       if test "$GCC" = yes; then
12913         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12914         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12915       else
12916         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12917         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12918       fi
12919       ;;
12920
12921     uts4*)
12922       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12923       hardcode_libdir_flag_spec_GO='-L$libdir'
12924       hardcode_shlibpath_var_GO=no
12925       ;;
12926
12927     *)
12928       ld_shlibs_GO=no
12929       ;;
12930     esac
12931
12932     if test x$host_vendor = xsni; then
12933       case $host in
12934       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12935         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12936         ;;
12937       esac
12938     fi
12939   fi
12940
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12942 $as_echo "$ld_shlibs_GO" >&6; }
12943 test "$ld_shlibs_GO" = no && can_build_shared=no
12944
12945 with_gnu_ld_GO=$with_gnu_ld
12946
12947
12948
12949
12950
12951
12952 #
12953 # Do we need to explicitly link libc?
12954 #
12955 case "x$archive_cmds_need_lc_GO" in
12956 x|xyes)
12957   # Assume -lc should be added
12958   archive_cmds_need_lc_GO=yes
12959
12960   if test "$enable_shared" = yes && test "$GCC" = yes; then
12961     case $archive_cmds_GO in
12962     *'~'*)
12963       # FIXME: we may have to deal with multi-command sequences.
12964       ;;
12965     '$CC '*)
12966       # Test whether the compiler implicitly links with -lc since on some
12967       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12968       # to ld, don't add -lc before -lgcc.
12969       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12970 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12971 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12972   $as_echo_n "(cached) " >&6
12973 else
12974   $RM conftest*
12975         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12976
12977         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12978   (eval $ac_compile) 2>&5
12979   ac_status=$?
12980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981   test $ac_status = 0; } 2>conftest.err; then
12982           soname=conftest
12983           lib=conftest
12984           libobjs=conftest.$ac_objext
12985           deplibs=
12986           wl=$lt_prog_compiler_wl_GO
12987           pic_flag=$lt_prog_compiler_pic_GO
12988           compiler_flags=-v
12989           linker_flags=-v
12990           verstring=
12991           output_objdir=.
12992           libname=conftest
12993           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12994           allow_undefined_flag_GO=
12995           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12996   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12997   ac_status=$?
12998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12999   test $ac_status = 0; }
13000           then
13001             lt_cv_archive_cmds_need_lc_GO=no
13002           else
13003             lt_cv_archive_cmds_need_lc_GO=yes
13004           fi
13005           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13006         else
13007           cat conftest.err 1>&5
13008         fi
13009         $RM conftest*
13010
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13013 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13014       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13015       ;;
13016     esac
13017   fi
13018   ;;
13019 esac
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13085 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13086 hardcode_action_GO=
13087 if test -n "$hardcode_libdir_flag_spec_GO" ||
13088    test -n "$runpath_var_GO" ||
13089    test "X$hardcode_automatic_GO" = "Xyes" ; then
13090
13091   # We can hardcode non-existent directories.
13092   if test "$hardcode_direct_GO" != no &&
13093      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13094      # have to relink, otherwise we might link with an installed library
13095      # when we should be linking with a yet-to-be-installed one
13096      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13097      test "$hardcode_minus_L_GO" != no; then
13098     # Linking always hardcodes the temporary library directory.
13099     hardcode_action_GO=relink
13100   else
13101     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13102     hardcode_action_GO=immediate
13103   fi
13104 else
13105   # We cannot hardcode anything, or else we can only hardcode existing
13106   # directories.
13107   hardcode_action_GO=unsupported
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13110 $as_echo "$hardcode_action_GO" >&6; }
13111
13112 if test "$hardcode_action_GO" = relink ||
13113    test "$inherit_rpath_GO" = yes; then
13114   # Fast installation is not supported
13115   enable_fast_install=no
13116 elif test "$shlibpath_overrides_runpath" = yes ||
13117      test "$enable_shared" = no; then
13118   # Fast installation is not necessary
13119   enable_fast_install=needless
13120 fi
13121
13122
13123
13124
13125
13126
13127
13128 fi
13129
13130 ac_ext=c
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13135
13136
13137 GCC=$lt_save_GCC
13138 CC="$lt_save_CC"
13139
13140
13141
13142
13143         ac_config_commands="$ac_config_commands libtool"
13144
13145
13146
13147
13148 # Only expand once:
13149
13150
13151
13152
13153
13154 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13155
13156
13157 for ac_prog in gawk mawk nawk awk
13158 do
13159   # Extract the first word of "$ac_prog", so it can be a program name with args.
13160 set dummy $ac_prog; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if test "${ac_cv_prog_AWK+set}" = set; then :
13164   $as_echo_n "(cached) " >&6
13165 else
13166   if test -n "$AWK"; then
13167   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13168 else
13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13171 do
13172   IFS=$as_save_IFS
13173   test -z "$as_dir" && as_dir=.
13174     for ac_exec_ext in '' $ac_executable_extensions; do
13175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176     ac_cv_prog_AWK="$ac_prog"
13177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13178     break 2
13179   fi
13180 done
13181   done
13182 IFS=$as_save_IFS
13183
13184 fi
13185 fi
13186 AWK=$ac_cv_prog_AWK
13187 if test -n "$AWK"; then
13188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13189 $as_echo "$AWK" >&6; }
13190 else
13191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13193 fi
13194
13195
13196   test -n "$AWK" && break
13197 done
13198
13199
13200 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13201
13202
13203 WERROR="-Werror"
13204
13205
13206 glibgo_toolexecdir=no
13207 glibgo_toolexeclibdir=no
13208 glibgo_prefixdir=$prefix
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13211 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13212 # Check whether --enable-version-specific-runtime-libs was given.
13213 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13214   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13215     yes) version_specific_libs=yes ;;
13216     no)  version_specific_libs=no ;;
13217     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13218    esac
13219 else
13220   version_specific_libs=no
13221 fi
13222
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13224 $as_echo "$version_specific_libs" >&6; }
13225
13226 # Version-specific runtime libs processing.
13227 if test $version_specific_libs = yes; then
13228   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13229   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13230 fi
13231
13232 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13233 # Install a library built with a cross compiler in tooldir, not libdir.
13234 if test x"$glibgo_toolexecdir" = x"no"; then
13235   if test -n "$with_cross_host" &&
13236      test x"$with_cross_host" != x"no"; then
13237     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13238     glibgo_toolexeclibdir='${toolexecdir}/lib'
13239   else
13240     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13241     glibgo_toolexeclibdir='${libdir}'
13242   fi
13243   multi_os_directory=`$CC -print-multi-os-directory`
13244   case $multi_os_directory in
13245     .) ;; # Avoid trailing /.
13246     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13247   esac
13248 fi
13249
13250
13251
13252
13253
13254 # See if the user wants to configure without libffi.  Some
13255 # architectures don't support it.  FIXME: We should set a default
13256 # based on the host.
13257
13258 # Check whether --with-libffi was given.
13259 if test "${with_libffi+set}" = set; then :
13260   withval=$with_libffi; :
13261 else
13262   with_libffi=${with_libffi_default-yes}
13263 fi
13264
13265
13266 LIBFFI=
13267 LIBFFIINCS=
13268 if test "$with_libffi" != no; then
13269
13270 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13271
13272    LIBFFI=../libffi/libffi_convenience.la
13273    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13274 fi
13275
13276
13277
13278 is_darwin=no
13279 is_freebsd=no
13280 is_irix=no
13281 is_linux=no
13282 is_rtems=no
13283 is_solaris=no
13284 GOOS=unknown
13285 case ${host} in
13286   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13287   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13288   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13289   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13290   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13291   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13292 esac
13293  if test $is_darwin = yes; then
13294   LIBGO_IS_DARWIN_TRUE=
13295   LIBGO_IS_DARWIN_FALSE='#'
13296 else
13297   LIBGO_IS_DARWIN_TRUE='#'
13298   LIBGO_IS_DARWIN_FALSE=
13299 fi
13300
13301  if test $is_freebsd = yes; then
13302   LIBGO_IS_FREEBSD_TRUE=
13303   LIBGO_IS_FREEBSD_FALSE='#'
13304 else
13305   LIBGO_IS_FREEBSD_TRUE='#'
13306   LIBGO_IS_FREEBSD_FALSE=
13307 fi
13308
13309  if test $is_irix = yes; then
13310   LIBGO_IS_IRIX_TRUE=
13311   LIBGO_IS_IRIX_FALSE='#'
13312 else
13313   LIBGO_IS_IRIX_TRUE='#'
13314   LIBGO_IS_IRIX_FALSE=
13315 fi
13316
13317  if test $is_linux = yes; then
13318   LIBGO_IS_LINUX_TRUE=
13319   LIBGO_IS_LINUX_FALSE='#'
13320 else
13321   LIBGO_IS_LINUX_TRUE='#'
13322   LIBGO_IS_LINUX_FALSE=
13323 fi
13324
13325  if test $is_rtems = yes; then
13326   LIBGO_IS_RTEMS_TRUE=
13327   LIBGO_IS_RTEMS_FALSE='#'
13328 else
13329   LIBGO_IS_RTEMS_TRUE='#'
13330   LIBGO_IS_RTEMS_FALSE=
13331 fi
13332
13333  if test $is_solaris = yes; then
13334   LIBGO_IS_SOLARIS_TRUE=
13335   LIBGO_IS_SOLARIS_FALSE='#'
13336 else
13337   LIBGO_IS_SOLARIS_TRUE='#'
13338   LIBGO_IS_SOLARIS_FALSE=
13339 fi
13340
13341
13342
13343 is_386=no
13344 is_alpha=no
13345 is_arm=no
13346 is_m68k=no
13347 mips_abi=unknown
13348 is_ppc=no
13349 is_ppc64=no
13350 is_sparc=no
13351 is_sparc64=no
13352 is_x86_64=no
13353 GOARCH=unknown
13354 case ${host} in
13355   alpha*-*-*)
13356     is_alpha=yes
13357     GOARCH=alpha
13358     ;;
13359   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13360     is_arm=yes
13361     GOARCH=arm
13362     ;;
13363   i[34567]86-*-* | x86_64-*-*)
13364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h.  */
13366
13367 #ifdef __x86_64__
13368 #error 64-bit
13369 #endif
13370 _ACEOF
13371 if ac_fn_c_try_compile "$LINENO"; then :
13372   is_386=yes
13373 else
13374   is_x86_64=yes
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377     if test "$is_386" = "yes"; then
13378       GOARCH=386
13379     else
13380       GOARCH=amd64
13381     fi
13382     ;;
13383   m68k*-*-*)
13384     is_m68k=yes
13385     GOARCH=m68k
13386     ;;
13387   mips*-*-*)
13388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h.  */
13390
13391 #if _MIPS_SIM != _ABIO32
13392 #error not o32
13393 #endif
13394 _ACEOF
13395 if ac_fn_c_try_compile "$LINENO"; then :
13396   mips_abi="o32"
13397 else
13398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h.  */
13400
13401 #if _MIPS_SIM != _ABIN32
13402 #error not n32
13403 #endif
13404 _ACEOF
13405 if ac_fn_c_try_compile "$LINENO"; then :
13406   mips_abi="n32"
13407 else
13408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h.  */
13410
13411 #if _MIPS_SIM != _ABI64
13412 #error not n64
13413 #endif
13414 _ACEOF
13415 if ac_fn_c_try_compile "$LINENO"; then :
13416   mips_abi="n64"
13417 else
13418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h.  */
13420
13421 #if _MIPS_SIM != _ABIO64
13422 #error not o64
13423 #endif
13424 _ACEOF
13425 if ac_fn_c_try_compile "$LINENO"; then :
13426   mips_abi="o64"
13427 else
13428   as_fn_error "unknown MIPS ABI" "$LINENO" 5
13429 mips_abi="n32"
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 fi
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13436 fi
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438     case "$mips_abi" in
13439     "o32") GOARCH=mipso32 ;;
13440     "n32") GOARCH=mipsn32 ;;
13441     "n64") GOARCH=mipsn64 ;;
13442     "o64") GOARCH=mipso64 ;;
13443     esac
13444     ;;
13445   rs6000*-*-* | powerpc*-*-*)
13446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h.  */
13448
13449 #ifdef _ARCH_PPC64
13450 #error 64-bit
13451 #endif
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454   is_ppc=yes
13455 else
13456   is_ppc64=yes
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459     if test "$is_ppc" = "yes"; then
13460       GOARCH=ppc
13461     else
13462       GOARCH=ppc64
13463     fi
13464     ;;
13465   sparc*-*-*)
13466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h.  */
13468
13469 #if defined(__sparcv9) || defined(__arch64__)
13470 #error 64-bit
13471 #endif
13472 _ACEOF
13473 if ac_fn_c_try_compile "$LINENO"; then :
13474   is_sparc=yes
13475 else
13476   is_sparc64=yes
13477 fi
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479     if test "$is_sparc" = "yes"; then
13480       GOARCH=sparc
13481     else
13482       GOARCH=sparc64
13483     fi
13484     ;;
13485 esac
13486  if test $is_386 = yes; then
13487   LIBGO_IS_386_TRUE=
13488   LIBGO_IS_386_FALSE='#'
13489 else
13490   LIBGO_IS_386_TRUE='#'
13491   LIBGO_IS_386_FALSE=
13492 fi
13493
13494  if test $is_alpha = yes; then
13495   LIBGO_IS_ALPHA_TRUE=
13496   LIBGO_IS_ALPHA_FALSE='#'
13497 else
13498   LIBGO_IS_ALPHA_TRUE='#'
13499   LIBGO_IS_ALPHA_FALSE=
13500 fi
13501
13502  if test $is_arm = yes; then
13503   LIBGO_IS_ARM_TRUE=
13504   LIBGO_IS_ARM_FALSE='#'
13505 else
13506   LIBGO_IS_ARM_TRUE='#'
13507   LIBGO_IS_ARM_FALSE=
13508 fi
13509
13510  if test $is_m68k = yes; then
13511   LIBGO_IS_M68K_TRUE=
13512   LIBGO_IS_M68K_FALSE='#'
13513 else
13514   LIBGO_IS_M68K_TRUE='#'
13515   LIBGO_IS_M68K_FALSE=
13516 fi
13517
13518  if test $mips_abi != unknown; then
13519   LIBGO_IS_MIPS_TRUE=
13520   LIBGO_IS_MIPS_FALSE='#'
13521 else
13522   LIBGO_IS_MIPS_TRUE='#'
13523   LIBGO_IS_MIPS_FALSE=
13524 fi
13525
13526  if test $mips_abi = o32; then
13527   LIBGO_IS_MIPSO32_TRUE=
13528   LIBGO_IS_MIPSO32_FALSE='#'
13529 else
13530   LIBGO_IS_MIPSO32_TRUE='#'
13531   LIBGO_IS_MIPSO32_FALSE=
13532 fi
13533
13534  if test $mips_abi = n32; then
13535   LIBGO_IS_MIPSN32_TRUE=
13536   LIBGO_IS_MIPSN32_FALSE='#'
13537 else
13538   LIBGO_IS_MIPSN32_TRUE='#'
13539   LIBGO_IS_MIPSN32_FALSE=
13540 fi
13541
13542  if test $mips_abi = n64; then
13543   LIBGO_IS_MIPSN64_TRUE=
13544   LIBGO_IS_MIPSN64_FALSE='#'
13545 else
13546   LIBGO_IS_MIPSN64_TRUE='#'
13547   LIBGO_IS_MIPSN64_FALSE=
13548 fi
13549
13550  if test $mips_abi = o64; then
13551   LIBGO_IS_MIPSO64_TRUE=
13552   LIBGO_IS_MIPSO64_FALSE='#'
13553 else
13554   LIBGO_IS_MIPSO64_TRUE='#'
13555   LIBGO_IS_MIPSO64_FALSE=
13556 fi
13557
13558  if test $is_ppc = yes; then
13559   LIBGO_IS_PPC_TRUE=
13560   LIBGO_IS_PPC_FALSE='#'
13561 else
13562   LIBGO_IS_PPC_TRUE='#'
13563   LIBGO_IS_PPC_FALSE=
13564 fi
13565
13566  if test $is_ppc64 = yes; then
13567   LIBGO_IS_PPC64_TRUE=
13568   LIBGO_IS_PPC64_FALSE='#'
13569 else
13570   LIBGO_IS_PPC64_TRUE='#'
13571   LIBGO_IS_PPC64_FALSE=
13572 fi
13573
13574  if test $is_sparc = yes; then
13575   LIBGO_IS_SPARC_TRUE=
13576   LIBGO_IS_SPARC_FALSE='#'
13577 else
13578   LIBGO_IS_SPARC_TRUE='#'
13579   LIBGO_IS_SPARC_FALSE=
13580 fi
13581
13582  if test $is_sparc64 = yes; then
13583   LIBGO_IS_SPARC64_TRUE=
13584   LIBGO_IS_SPARC64_FALSE='#'
13585 else
13586   LIBGO_IS_SPARC64_TRUE='#'
13587   LIBGO_IS_SPARC64_FALSE=
13588 fi
13589
13590  if test $is_x86_64 = yes; then
13591   LIBGO_IS_X86_64_TRUE=
13592   LIBGO_IS_X86_64_FALSE='#'
13593 else
13594   LIBGO_IS_X86_64_TRUE='#'
13595   LIBGO_IS_X86_64_FALSE=
13596 fi
13597
13598
13599
13600 GO_LIBCALL_OS_FILE=
13601 GO_LIBCALL_OS_ARCH_FILE=
13602 GO_SYSCALL_OS_FILE=
13603 GO_SYSCALL_OS_ARCH_FILE=
13604 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13605   GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13606 fi
13607 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13608   GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13609 fi
13610 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13611   GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13612 fi
13613 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13614   GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13615 fi
13616
13617
13618
13619
13620
13621 case "$target" in
13622     mips-sgi-irix6.5*)
13623         # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13624         # msghdr in <sys/socket.h>.
13625         OSCFLAGS='-D_XOPEN_SOURCE=500'
13626         ;;
13627     *-*-solaris2.[89])
13628         # Solaris 8/9 need this so struct msghdr gets the msg_control
13629         # etc. fields in <sys/socket.h> (_XPG4_2).
13630         OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13631         ;;
13632     *-*-solaris2.1[01])
13633         # Solaris 10+ needs this so struct msghdr gets the msg_control
13634         # etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=500 as
13635         # above doesn't work with C99.
13636         OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13637         ;;
13638 esac
13639
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13642 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13643 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13644   $as_echo_n "(cached) " >&6
13645 else
13646   CFLAGS_hold=$CFLAGS
13647 CFLAGS="$CFLAGS -fsplit-stack"
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h.  */
13650 int i;
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653   libgo_cv_c_split_stack_supported=yes
13654 else
13655   libgo_cv_c_split_stack_supported=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 CFLAGS=$CFLAGS_hold
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13661 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13662 if test "$libgo_cv_c_split_stack_supported" = yes; then
13663   SPLIT_STACK=-fsplit-stack
13664
13665 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13666
13667 else
13668   SPLIT_STACK=
13669 fi
13670
13671  if test "$libgo_cv_c_split_stack_supported" = yes; then
13672   USING_SPLIT_STACK_TRUE=
13673   USING_SPLIT_STACK_FALSE='#'
13674 else
13675   USING_SPLIT_STACK_TRUE='#'
13676   USING_SPLIT_STACK_FALSE=
13677 fi
13678
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13681 $as_echo_n "checking whether linker supports split stack... " >&6; }
13682 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13683   $as_echo_n "(cached) " >&6
13684 else
13685   libgo_cv_c_linker_supports_split_stack=no
13686 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13687   libgo_cv_c_linker_supports_split_stack=yes
13688 fi
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13691 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13692 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13693
13694 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13695
13696 fi
13697
13698 MATH_LIBS=
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13700 $as_echo_n "checking for sqrt in -lm... " >&6; }
13701 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13702   $as_echo_n "(cached) " >&6
13703 else
13704   ac_check_lib_save_LIBS=$LIBS
13705 LIBS="-lm  $LIBS"
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h.  */
13708
13709 /* Override any GCC internal prototype to avoid an error.
13710    Use char because int might match the return type of a GCC
13711    builtin and then its argument prototype would still apply.  */
13712 #ifdef __cplusplus
13713 extern "C"
13714 #endif
13715 char sqrt ();
13716 int
13717 main ()
13718 {
13719 return sqrt ();
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_link "$LINENO"; then :
13725   ac_cv_lib_m_sqrt=yes
13726 else
13727   ac_cv_lib_m_sqrt=no
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext \
13730     conftest$ac_exeext conftest.$ac_ext
13731 LIBS=$ac_check_lib_save_LIBS
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13734 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13735 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13736   MATH_LIBS=-lm
13737 fi
13738
13739
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13742 $as_echo_n "checking for socket libraries... " >&6; }
13743 if test "${libgo_cv_lib_sockets+set}" = set; then :
13744   $as_echo_n "(cached) " >&6
13745 else
13746   libgo_cv_lib_sockets=
13747    libgo_check_both=no
13748    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13749 if test "x$ac_cv_func_connect" = x""yes; then :
13750   libgo_check_socket=no
13751 else
13752   libgo_check_socket=yes
13753 fi
13754
13755    if test "$libgo_check_socket" = "yes"; then
13756      unset ac_cv_func_connect
13757      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13758 $as_echo_n "checking for main in -lsocket... " >&6; }
13759 if test "${ac_cv_lib_socket_main+set}" = set; then :
13760   $as_echo_n "(cached) " >&6
13761 else
13762   ac_check_lib_save_LIBS=$LIBS
13763 LIBS="-lsocket  $LIBS"
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h.  */
13766
13767
13768 int
13769 main ()
13770 {
13771 return main ();
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_link "$LINENO"; then :
13777   ac_cv_lib_socket_main=yes
13778 else
13779   ac_cv_lib_socket_main=no
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext \
13782     conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13786 $as_echo "$ac_cv_lib_socket_main" >&6; }
13787 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13788   libgo_cv_lib_sockets="-lsocket"
13789 else
13790   libgo_check_both=yes
13791 fi
13792
13793    fi
13794    if test "$libgo_check_both" = "yes"; then
13795      libgo_old_libs=$LIBS
13796      LIBS="$LIBS -lsocket -lnsl"
13797      unset ac_cv_func_accept
13798      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13799 if test "x$ac_cv_func_accept" = x""yes; then :
13800   libgo_check_nsl=no
13801                     libgo_cv_lib_sockets="-lsocket -lnsl"
13802 fi
13803
13804      unset ac_cv_func_accept
13805      LIBS=$libgo_old_libs
13806    fi
13807    unset ac_cv_func_gethostbyname
13808    libgo_old_libs="$LIBS"
13809    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13810 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13811
13812 else
13813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13814 $as_echo_n "checking for main in -lnsl... " >&6; }
13815 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13816   $as_echo_n "(cached) " >&6
13817 else
13818   ac_check_lib_save_LIBS=$LIBS
13819 LIBS="-lnsl  $LIBS"
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h.  */
13822
13823
13824 int
13825 main ()
13826 {
13827 return main ();
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 if ac_fn_c_try_link "$LINENO"; then :
13833   ac_cv_lib_nsl_main=yes
13834 else
13835   ac_cv_lib_nsl_main=no
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext \
13838     conftest$ac_exeext conftest.$ac_ext
13839 LIBS=$ac_check_lib_save_LIBS
13840 fi
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13842 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13843 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13844   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13845 fi
13846
13847 fi
13848
13849    unset ac_cv_func_gethostbyname
13850    LIBS=$libgo_old_libs
13851
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13854 $as_echo "$libgo_cv_lib_sockets" >&6; }
13855 NET_LIBS="$libgo_cv_lib_sockets"
13856
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13859 $as_echo_n "checking whether -pthread is supported... " >&6; }
13860 if test "${libgo_cv_lib_pthread+set}" = set; then :
13861   $as_echo_n "(cached) " >&6
13862 else
13863   CFLAGS_hold=$CFLAGS
13864 CFLAGS="$CFLAGS -pthread"
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h.  */
13867 int i;
13868 _ACEOF
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870   libgo_cv_lib_pthread=yes
13871 else
13872   libgo_cv_lib_pthread=no
13873 fi
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 CFLAGS=$CFLAGS_hold
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13878 $as_echo "$libgo_cv_lib_pthread" >&6; }
13879 PTHREAD_CFLAGS=
13880 if test "$libgo_cv_lib_pthread" = yes; then
13881   PTHREAD_CFLAGS=-pthread
13882 fi
13883
13884
13885 PTHREAD_LIBS=
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13887 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13888 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13889   $as_echo_n "(cached) " >&6
13890 else
13891   ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-lpthread  $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h.  */
13895
13896 /* Override any GCC internal prototype to avoid an error.
13897    Use char because int might match the return type of a GCC
13898    builtin and then its argument prototype would still apply.  */
13899 #ifdef __cplusplus
13900 extern "C"
13901 #endif
13902 char pthread_create ();
13903 int
13904 main ()
13905 {
13906 return pthread_create ();
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912   ac_cv_lib_pthread_pthread_create=yes
13913 else
13914   ac_cv_lib_pthread_pthread_create=no
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917     conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13921 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13922 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13923   PTHREAD_LIBS=-lpthread
13924 fi
13925
13926
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13929 $as_echo_n "checking for library containing sched_yield... " >&6; }
13930 if test "${ac_cv_search_sched_yield+set}" = set; then :
13931   $as_echo_n "(cached) " >&6
13932 else
13933   ac_func_search_save_LIBS=$LIBS
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h.  */
13936
13937 /* Override any GCC internal prototype to avoid an error.
13938    Use char because int might match the return type of a GCC
13939    builtin and then its argument prototype would still apply.  */
13940 #ifdef __cplusplus
13941 extern "C"
13942 #endif
13943 char sched_yield ();
13944 int
13945 main ()
13946 {
13947 return sched_yield ();
13948   ;
13949   return 0;
13950 }
13951 _ACEOF
13952 for ac_lib in '' rt; do
13953   if test -z "$ac_lib"; then
13954     ac_res="none required"
13955   else
13956     ac_res=-l$ac_lib
13957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13958   fi
13959   if ac_fn_c_try_link "$LINENO"; then :
13960   ac_cv_search_sched_yield=$ac_res
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext \
13963     conftest$ac_exeext
13964   if test "${ac_cv_search_sched_yield+set}" = set; then :
13965   break
13966 fi
13967 done
13968 if test "${ac_cv_search_sched_yield+set}" = set; then :
13969
13970 else
13971   ac_cv_search_sched_yield=no
13972 fi
13973 rm conftest.$ac_ext
13974 LIBS=$ac_func_search_save_LIBS
13975 fi
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13977 $as_echo "$ac_cv_search_sched_yield" >&6; }
13978 ac_res=$ac_cv_search_sched_yield
13979 if test "$ac_res" != no; then :
13980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13981
13982 fi
13983
13984
13985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13986 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13987 if test "${ac_cv_c_bigendian+set}" = set; then :
13988   $as_echo_n "(cached) " >&6
13989 else
13990   ac_cv_c_bigendian=unknown
13991     # See if we're dealing with a universal compiler.
13992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h.  */
13994 #ifndef __APPLE_CC__
13995                not a universal capable compiler
13996              #endif
13997              typedef int dummy;
13998
13999 _ACEOF
14000 if ac_fn_c_try_compile "$LINENO"; then :
14001
14002         # Check for potential -arch flags.  It is not universal unless
14003         # there are at least two -arch flags with different values.
14004         ac_arch=
14005         ac_prev=
14006         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14007          if test -n "$ac_prev"; then
14008            case $ac_word in
14009              i?86 | x86_64 | ppc | ppc64)
14010                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14011                  ac_arch=$ac_word
14012                else
14013                  ac_cv_c_bigendian=universal
14014                  break
14015                fi
14016                ;;
14017            esac
14018            ac_prev=
14019          elif test "x$ac_word" = "x-arch"; then
14020            ac_prev=arch
14021          fi
14022        done
14023 fi
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025     if test $ac_cv_c_bigendian = unknown; then
14026       # See if sys/param.h defines the BYTE_ORDER macro.
14027       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h.  */
14029 #include <sys/types.h>
14030              #include <sys/param.h>
14031
14032 int
14033 main ()
14034 {
14035 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14036                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14037                      && LITTLE_ENDIAN)
14038               bogus endian macros
14039              #endif
14040
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046   # It does; now see whether it defined to BIG_ENDIAN or not.
14047          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h.  */
14049 #include <sys/types.h>
14050                 #include <sys/param.h>
14051
14052 int
14053 main ()
14054 {
14055 #if BYTE_ORDER != BIG_ENDIAN
14056                  not big endian
14057                 #endif
14058
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 if ac_fn_c_try_compile "$LINENO"; then :
14064   ac_cv_c_bigendian=yes
14065 else
14066   ac_cv_c_bigendian=no
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071     fi
14072     if test $ac_cv_c_bigendian = unknown; then
14073       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14074       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h.  */
14076 #include <limits.h>
14077
14078 int
14079 main ()
14080 {
14081 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14082               bogus endian macros
14083              #endif
14084
14085   ;
14086   return 0;
14087 }
14088 _ACEOF
14089 if ac_fn_c_try_compile "$LINENO"; then :
14090   # It does; now see whether it defined to _BIG_ENDIAN or not.
14091          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h.  */
14093 #include <limits.h>
14094
14095 int
14096 main ()
14097 {
14098 #ifndef _BIG_ENDIAN
14099                  not big endian
14100                 #endif
14101
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 if ac_fn_c_try_compile "$LINENO"; then :
14107   ac_cv_c_bigendian=yes
14108 else
14109   ac_cv_c_bigendian=no
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114     fi
14115     if test $ac_cv_c_bigendian = unknown; then
14116       # Compile a test program.
14117       if test "$cross_compiling" = yes; then :
14118   # Try to guess by grepping values from an object file.
14119          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h.  */
14121 short int ascii_mm[] =
14122                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14123                 short int ascii_ii[] =
14124                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14125                 int use_ascii (int i) {
14126                   return ascii_mm[i] + ascii_ii[i];
14127                 }
14128                 short int ebcdic_ii[] =
14129                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14130                 short int ebcdic_mm[] =
14131                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14132                 int use_ebcdic (int i) {
14133                   return ebcdic_mm[i] + ebcdic_ii[i];
14134                 }
14135                 extern int foo;
14136
14137 int
14138 main ()
14139 {
14140 return use_ascii (foo) == use_ebcdic (foo);
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_compile "$LINENO"; then :
14146   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14147               ac_cv_c_bigendian=yes
14148             fi
14149             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14150               if test "$ac_cv_c_bigendian" = unknown; then
14151                 ac_cv_c_bigendian=no
14152               else
14153                 # finding both strings is unlikely to happen, but who knows?
14154                 ac_cv_c_bigendian=unknown
14155               fi
14156             fi
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 else
14160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h.  */
14162 $ac_includes_default
14163 int
14164 main ()
14165 {
14166
14167              /* Are we little or big endian?  From Harbison&Steele.  */
14168              union
14169              {
14170                long int l;
14171                char c[sizeof (long int)];
14172              } u;
14173              u.l = 1;
14174              return u.c[sizeof (long int) - 1] == 1;
14175
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_run "$LINENO"; then :
14181   ac_cv_c_bigendian=no
14182 else
14183   ac_cv_c_bigendian=yes
14184 fi
14185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14186   conftest.$ac_objext conftest.beam conftest.$ac_ext
14187 fi
14188
14189     fi
14190 fi
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14192 $as_echo "$ac_cv_c_bigendian" >&6; }
14193  case $ac_cv_c_bigendian in #(
14194    yes)
14195      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14196 ;; #(
14197    no)
14198       ;; #(
14199    universal)
14200
14201 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14202
14203      ;; #(
14204    *)
14205      as_fn_error "unknown endianness
14206  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14207  esac
14208
14209
14210
14211
14212 # Check whether --with-system-libunwind was given.
14213 if test "${with_system_libunwind+set}" = set; then :
14214   withval=$with_system_libunwind;
14215 fi
14216
14217   # If system-libunwind was not specifically set, pick a default setting.
14218   if test x$with_system_libunwind = x; then
14219     case ${target} in
14220       ia64-*-hpux*) with_system_libunwind=yes ;;
14221       *) with_system_libunwind=no ;;
14222     esac
14223   fi
14224   # Based on system-libunwind and target, do we have ipinfo?
14225   if  test x$with_system_libunwind = xyes; then
14226     case ${target} in
14227       ia64-*-*) have_unwind_getipinfo=no ;;
14228       *) have_unwind_getipinfo=yes ;;
14229     esac
14230   else
14231     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14232
14233     case ${target} in
14234       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14235       *) have_unwind_getipinfo=yes ;;
14236     esac
14237
14238   fi
14239
14240   if test x$have_unwind_getipinfo = xyes; then
14241
14242 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14243
14244   fi
14245
14246
14247 # Check whether --enable-sjlj-exceptions was given.
14248 if test "${enable_sjlj_exceptions+set}" = set; then :
14249   enableval=$enable_sjlj_exceptions; case "$enableval" in
14250    yes|no|auto) ;;
14251    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14252    esac
14253 else
14254   enable_sjlj_exceptions=auto
14255 fi
14256
14257
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14259 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14260 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14261   $as_echo_n "(cached) " >&6
14262 else
14263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h.  */
14265
14266 void bar ();
14267 void clean (int *);
14268 void foo ()
14269 {
14270   int i __attribute__ ((cleanup (clean)));
14271   bar();
14272 }
14273
14274 _ACEOF
14275 CFLAGS_hold=$CFLAGS
14276 CFLAGS="--save-temps -fexceptions"
14277 libgo_cv_lib_sjlj_exceptions=unknown
14278 if ac_fn_c_try_compile; then :
14279   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14280     libgo_cv_lib_sjlj_exceptions=yes
14281   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14282     libgo_cv_lib_sjlj_exceptions=no
14283   fi
14284 fi
14285 CFLAGS=$CFLAGS_hold
14286 rm -f conftest*
14287
14288 fi
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14290 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14291
14292 if test "$enable_sjlj_exceptions" = "auto"; then
14293   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14294 fi
14295
14296 case $enable_sjlj_exceptions in
14297 yes)
14298
14299 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14300
14301   ;;
14302 no)
14303   ;;
14304 *)
14305   as_fn_error "unable to detect exception model" "$LINENO" 5
14306   ;;
14307 esac
14308
14309 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
14310 do :
14311   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14312 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14313 eval as_val=\$$as_ac_Header
14314    if test "x$as_val" = x""yes; then :
14315   cat >>confdefs.h <<_ACEOF
14316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14317 _ACEOF
14318
14319 fi
14320
14321 done
14322
14323
14324 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14325 do :
14326   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14328 #include <sys/socket.h>
14329 #endif
14330
14331 "
14332 eval as_val=\$$as_ac_Header
14333    if test "x$as_val" = x""yes; then :
14334   cat >>confdefs.h <<_ACEOF
14335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14336 _ACEOF
14337
14338 fi
14339
14340 done
14341
14342
14343  if test "$ac_cv_header_sys_mman_h" = yes; then
14344   HAVE_SYS_MMAN_H_TRUE=
14345   HAVE_SYS_MMAN_H_FALSE='#'
14346 else
14347   HAVE_SYS_MMAN_H_TRUE='#'
14348   HAVE_SYS_MMAN_H_FALSE=
14349 fi
14350
14351
14352 for ac_func in srandom random strerror_r strsignal wait4 mincore setenv
14353 do :
14354   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14356 eval as_val=\$$as_ac_var
14357    if test "x$as_val" = x""yes; then :
14358   cat >>confdefs.h <<_ACEOF
14359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14360 _ACEOF
14361
14362 fi
14363 done
14364
14365  if test "$ac_cv_func_strerror_r" = yes; then
14366   HAVE_STRERROR_R_TRUE=
14367   HAVE_STRERROR_R_FALSE='#'
14368 else
14369   HAVE_STRERROR_R_TRUE='#'
14370   HAVE_STRERROR_R_FALSE=
14371 fi
14372
14373  if test "$ac_cv_func_wait4" = yes; then
14374   HAVE_WAIT4_TRUE=
14375   HAVE_WAIT4_FALSE='#'
14376 else
14377   HAVE_WAIT4_TRUE='#'
14378   HAVE_WAIT4_FALSE=
14379 fi
14380
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14383 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14384 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14385   $as_echo_n "(cached) " >&6
14386 else
14387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h.  */
14389
14390 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14391 uint32 i;
14392 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14393
14394 _ACEOF
14395 if ac_fn_c_try_link "$LINENO"; then :
14396   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14397 else
14398   libgo_cv_func___sync_bool_compare_and_swap_4=no
14399 fi
14400 rm -f core conftest.err conftest.$ac_objext \
14401     conftest$ac_exeext conftest.$ac_ext
14402 fi
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14404 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14405 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14406
14407 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14408
14409 fi
14410
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14412 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14413 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h.  */
14418
14419 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14420 uint32 i;
14421 int main() { return __sync_fetch_and_add (&i, 1); }
14422
14423 _ACEOF
14424 if ac_fn_c_try_link "$LINENO"; then :
14425   libgo_cv_func___sync_fetch_and_add_4=yes
14426 else
14427   libgo_cv_func___sync_fetch_and_add_4=no
14428 fi
14429 rm -f core conftest.err conftest.$ac_objext \
14430     conftest$ac_exeext conftest.$ac_ext
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14433 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14434 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14435
14436 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14437
14438 fi
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14441 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14442 if test "${libgo_cv_c_stringops+set}" = set; then :
14443   $as_echo_n "(cached) " >&6
14444 else
14445   CFLAGS_hold=$CFLAGS
14446 CFLAGS="$CFLAGS -minline-all-stringops"
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h.  */
14449 int i;
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452   libgo_cv_c_stringops=yes
14453 else
14454   libgo_cv_c_stringops=no
14455 fi
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 CFLAGS=$CFLAGS_hold
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14460 $as_echo "$libgo_cv_c_stringops" >&6; }
14461 STRINGOPS_FLAG=
14462 if test "$libgo_cv_c_stringops" = yes; then
14463   STRINGOPS_FLAG=-minline-all-stringops
14464 fi
14465
14466
14467 CFLAGS_hold=$CFLAGS
14468 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14469 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14470 if test "x$ac_cv_type_off64_t" = x""yes; then :
14471
14472 cat >>confdefs.h <<_ACEOF
14473 #define HAVE_OFF64_T 1
14474 _ACEOF
14475
14476
14477 fi
14478
14479 CFLAGS=$CFLAGS_hold
14480
14481 cat >confcache <<\_ACEOF
14482 # This file is a shell script that caches the results of configure
14483 # tests run on this system so they can be shared between configure
14484 # scripts and configure runs, see configure's option --config-cache.
14485 # It is not useful on other systems.  If it contains results you don't
14486 # want to keep, you may remove or edit it.
14487 #
14488 # config.status only pays attention to the cache file if you give it
14489 # the --recheck option to rerun configure.
14490 #
14491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14493 # following values.
14494
14495 _ACEOF
14496
14497 # The following way of writing the cache mishandles newlines in values,
14498 # but we know of no workaround that is simple, portable, and efficient.
14499 # So, we kill variables containing newlines.
14500 # Ultrix sh set writes to stderr and can't be redirected directly,
14501 # and sets the high bit in the cache file unless we assign to the vars.
14502 (
14503   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14504     eval ac_val=\$$ac_var
14505     case $ac_val in #(
14506     *${as_nl}*)
14507       case $ac_var in #(
14508       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14510       esac
14511       case $ac_var in #(
14512       _ | IFS | as_nl) ;; #(
14513       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14514       *) { eval $ac_var=; unset $ac_var;} ;;
14515       esac ;;
14516     esac
14517   done
14518
14519   (set) 2>&1 |
14520     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14521     *${as_nl}ac_space=\ *)
14522       # `set' does not quote correctly, so add quotes: double-quote
14523       # substitution turns \\\\ into \\, and sed turns \\ into \.
14524       sed -n \
14525         "s/'/'\\\\''/g;
14526           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14527       ;; #(
14528     *)
14529       # `set' quotes correctly as required by POSIX, so do not add quotes.
14530       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14531       ;;
14532     esac |
14533     sort
14534 ) |
14535   sed '
14536      /^ac_cv_env_/b end
14537      t clear
14538      :clear
14539      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14540      t end
14541      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14542      :end' >>confcache
14543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14544   if test -w "$cache_file"; then
14545     test "x$cache_file" != "x/dev/null" &&
14546       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14547 $as_echo "$as_me: updating cache $cache_file" >&6;}
14548     cat confcache >$cache_file
14549   else
14550     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14552   fi
14553 fi
14554 rm -f confcache
14555
14556 if test ${multilib} = yes; then
14557   multilib_arg="--enable-multilib"
14558 else
14559   multilib_arg=
14560 fi
14561
14562 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14563
14564
14565 ac_config_commands="$ac_config_commands default"
14566
14567
14568 cat >confcache <<\_ACEOF
14569 # This file is a shell script that caches the results of configure
14570 # tests run on this system so they can be shared between configure
14571 # scripts and configure runs, see configure's option --config-cache.
14572 # It is not useful on other systems.  If it contains results you don't
14573 # want to keep, you may remove or edit it.
14574 #
14575 # config.status only pays attention to the cache file if you give it
14576 # the --recheck option to rerun configure.
14577 #
14578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14580 # following values.
14581
14582 _ACEOF
14583
14584 # The following way of writing the cache mishandles newlines in values,
14585 # but we know of no workaround that is simple, portable, and efficient.
14586 # So, we kill variables containing newlines.
14587 # Ultrix sh set writes to stderr and can't be redirected directly,
14588 # and sets the high bit in the cache file unless we assign to the vars.
14589 (
14590   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14591     eval ac_val=\$$ac_var
14592     case $ac_val in #(
14593     *${as_nl}*)
14594       case $ac_var in #(
14595       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14597       esac
14598       case $ac_var in #(
14599       _ | IFS | as_nl) ;; #(
14600       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14601       *) { eval $ac_var=; unset $ac_var;} ;;
14602       esac ;;
14603     esac
14604   done
14605
14606   (set) 2>&1 |
14607     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14608     *${as_nl}ac_space=\ *)
14609       # `set' does not quote correctly, so add quotes: double-quote
14610       # substitution turns \\\\ into \\, and sed turns \\ into \.
14611       sed -n \
14612         "s/'/'\\\\''/g;
14613           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14614       ;; #(
14615     *)
14616       # `set' quotes correctly as required by POSIX, so do not add quotes.
14617       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14618       ;;
14619     esac |
14620     sort
14621 ) |
14622   sed '
14623      /^ac_cv_env_/b end
14624      t clear
14625      :clear
14626      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14627      t end
14628      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14629      :end' >>confcache
14630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14631   if test -w "$cache_file"; then
14632     test "x$cache_file" != "x/dev/null" &&
14633       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14634 $as_echo "$as_me: updating cache $cache_file" >&6;}
14635     cat confcache >$cache_file
14636   else
14637     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14639   fi
14640 fi
14641 rm -f confcache
14642
14643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14644 # Let make expand exec_prefix.
14645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14646
14647 DEFS=-DHAVE_CONFIG_H
14648
14649 ac_libobjs=
14650 ac_ltlibobjs=
14651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14652   # 1. Remove the extension, and $U if already installed.
14653   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14654   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14655   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14656   #    will be set to the directory where LIBOBJS objects are built.
14657   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14658   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14659 done
14660 LIBOBJS=$ac_libobjs
14661
14662 LTLIBOBJS=$ac_ltlibobjs
14663
14664
14665  if test -n "$EXEEXT"; then
14666   am__EXEEXT_TRUE=
14667   am__EXEEXT_FALSE='#'
14668 else
14669   am__EXEEXT_TRUE='#'
14670   am__EXEEXT_FALSE=
14671 fi
14672
14673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14674   as_fn_error "conditional \"AMDEP\" was never defined.
14675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14676 fi
14677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14678   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14680 fi
14681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14682   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14684 fi
14685 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14686   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14688 fi
14689 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14690   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14692 fi
14693 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14694   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14696 fi
14697 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14698   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700 fi
14701 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14702   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14704 fi
14705 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14706   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14708 fi
14709 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14710   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14712 fi
14713 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14714   as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14716 fi
14717 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14718   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14720 fi
14721 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14722   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14724 fi
14725 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14726   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14728 fi
14729 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14730   as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14732 fi
14733 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14734   as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14736 fi
14737 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14738   as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14740 fi
14741 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14742   as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14744 fi
14745 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14746   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14748 fi
14749 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14750   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14752 fi
14753 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14754   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14756 fi
14757 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14758   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14760 fi
14761 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14762   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14764 fi
14765 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14766   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14768 fi
14769
14770 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14771   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14773 fi
14774 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14775   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14777 fi
14778 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14779   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14781 fi
14782
14783 : ${CONFIG_STATUS=./config.status}
14784 ac_write_fail=0
14785 ac_clean_files_save=$ac_clean_files
14786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14789 as_write_fail=0
14790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14791 #! $SHELL
14792 # Generated by $as_me.
14793 # Run this file to recreate the current configuration.
14794 # Compiler output produced by configure, useful for debugging
14795 # configure, is in config.log if it exists.
14796
14797 debug=false
14798 ac_cs_recheck=false
14799 ac_cs_silent=false
14800
14801 SHELL=\${CONFIG_SHELL-$SHELL}
14802 export SHELL
14803 _ASEOF
14804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14805 ## -------------------- ##
14806 ## M4sh Initialization. ##
14807 ## -------------------- ##
14808
14809 # Be more Bourne compatible
14810 DUALCASE=1; export DUALCASE # for MKS sh
14811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14812   emulate sh
14813   NULLCMD=:
14814   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14815   # is contrary to our usage.  Disable this feature.
14816   alias -g '${1+"$@"}'='"$@"'
14817   setopt NO_GLOB_SUBST
14818 else
14819   case `(set -o) 2>/dev/null` in #(
14820   *posix*) :
14821     set -o posix ;; #(
14822   *) :
14823      ;;
14824 esac
14825 fi
14826
14827
14828 as_nl='
14829 '
14830 export as_nl
14831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14835 # Prefer a ksh shell builtin over an external printf program on Solaris,
14836 # but without wasting forks for bash or zsh.
14837 if test -z "$BASH_VERSION$ZSH_VERSION" \
14838     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14839   as_echo='print -r --'
14840   as_echo_n='print -rn --'
14841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14842   as_echo='printf %s\n'
14843   as_echo_n='printf %s'
14844 else
14845   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14846     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14847     as_echo_n='/usr/ucb/echo -n'
14848   else
14849     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14850     as_echo_n_body='eval
14851       arg=$1;
14852       case $arg in #(
14853       *"$as_nl"*)
14854         expr "X$arg" : "X\\(.*\\)$as_nl";
14855         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14856       esac;
14857       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14858     '
14859     export as_echo_n_body
14860     as_echo_n='sh -c $as_echo_n_body as_echo'
14861   fi
14862   export as_echo_body
14863   as_echo='sh -c $as_echo_body as_echo'
14864 fi
14865
14866 # The user is always right.
14867 if test "${PATH_SEPARATOR+set}" != set; then
14868   PATH_SEPARATOR=:
14869   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14870     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14871       PATH_SEPARATOR=';'
14872   }
14873 fi
14874
14875
14876 # IFS
14877 # We need space, tab and new line, in precisely that order.  Quoting is
14878 # there to prevent editors from complaining about space-tab.
14879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14880 # splitting by setting IFS to empty value.)
14881 IFS=" ""        $as_nl"
14882
14883 # Find who we are.  Look in the path if we contain no directory separator.
14884 case $0 in #((
14885   *[\\/]* ) as_myself=$0 ;;
14886   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14888 do
14889   IFS=$as_save_IFS
14890   test -z "$as_dir" && as_dir=.
14891     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14892   done
14893 IFS=$as_save_IFS
14894
14895      ;;
14896 esac
14897 # We did not find ourselves, most probably we were run as `sh COMMAND'
14898 # in which case we are not to be found in the path.
14899 if test "x$as_myself" = x; then
14900   as_myself=$0
14901 fi
14902 if test ! -f "$as_myself"; then
14903   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14904   exit 1
14905 fi
14906
14907 # Unset variables that we do not need and which cause bugs (e.g. in
14908 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14909 # suppresses any "Segmentation fault" message there.  '((' could
14910 # trigger a bug in pdksh 5.2.14.
14911 for as_var in BASH_ENV ENV MAIL MAILPATH
14912 do eval test x\${$as_var+set} = xset \
14913   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14914 done
14915 PS1='$ '
14916 PS2='> '
14917 PS4='+ '
14918
14919 # NLS nuisances.
14920 LC_ALL=C
14921 export LC_ALL
14922 LANGUAGE=C
14923 export LANGUAGE
14924
14925 # CDPATH.
14926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14927
14928
14929 # as_fn_error ERROR [LINENO LOG_FD]
14930 # ---------------------------------
14931 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14932 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14933 # script with status $?, using 1 if that was 0.
14934 as_fn_error ()
14935 {
14936   as_status=$?; test $as_status -eq 0 && as_status=1
14937   if test "$3"; then
14938     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14939     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14940   fi
14941   $as_echo "$as_me: error: $1" >&2
14942   as_fn_exit $as_status
14943 } # as_fn_error
14944
14945
14946 # as_fn_set_status STATUS
14947 # -----------------------
14948 # Set $? to STATUS, without forking.
14949 as_fn_set_status ()
14950 {
14951   return $1
14952 } # as_fn_set_status
14953
14954 # as_fn_exit STATUS
14955 # -----------------
14956 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14957 as_fn_exit ()
14958 {
14959   set +e
14960   as_fn_set_status $1
14961   exit $1
14962 } # as_fn_exit
14963
14964 # as_fn_unset VAR
14965 # ---------------
14966 # Portably unset VAR.
14967 as_fn_unset ()
14968 {
14969   { eval $1=; unset $1;}
14970 }
14971 as_unset=as_fn_unset
14972 # as_fn_append VAR VALUE
14973 # ----------------------
14974 # Append the text in VALUE to the end of the definition contained in VAR. Take
14975 # advantage of any shell optimizations that allow amortized linear growth over
14976 # repeated appends, instead of the typical quadratic growth present in naive
14977 # implementations.
14978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14979   eval 'as_fn_append ()
14980   {
14981     eval $1+=\$2
14982   }'
14983 else
14984   as_fn_append ()
14985   {
14986     eval $1=\$$1\$2
14987   }
14988 fi # as_fn_append
14989
14990 # as_fn_arith ARG...
14991 # ------------------
14992 # Perform arithmetic evaluation on the ARGs, and store the result in the
14993 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14994 # must be portable across $(()) and expr.
14995 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14996   eval 'as_fn_arith ()
14997   {
14998     as_val=$(( $* ))
14999   }'
15000 else
15001   as_fn_arith ()
15002   {
15003     as_val=`expr "$@" || test $? -eq 1`
15004   }
15005 fi # as_fn_arith
15006
15007
15008 if expr a : '\(a\)' >/dev/null 2>&1 &&
15009    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15010   as_expr=expr
15011 else
15012   as_expr=false
15013 fi
15014
15015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15016   as_basename=basename
15017 else
15018   as_basename=false
15019 fi
15020
15021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15022   as_dirname=dirname
15023 else
15024   as_dirname=false
15025 fi
15026
15027 as_me=`$as_basename -- "$0" ||
15028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15029          X"$0" : 'X\(//\)$' \| \
15030          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15031 $as_echo X/"$0" |
15032     sed '/^.*\/\([^/][^/]*\)\/*$/{
15033             s//\1/
15034             q
15035           }
15036           /^X\/\(\/\/\)$/{
15037             s//\1/
15038             q
15039           }
15040           /^X\/\(\/\).*/{
15041             s//\1/
15042             q
15043           }
15044           s/.*/./; q'`
15045
15046 # Avoid depending upon Character Ranges.
15047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15050 as_cr_digits='0123456789'
15051 as_cr_alnum=$as_cr_Letters$as_cr_digits
15052
15053 ECHO_C= ECHO_N= ECHO_T=
15054 case `echo -n x` in #(((((
15055 -n*)
15056   case `echo 'xy\c'` in
15057   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15058   xy)  ECHO_C='\c';;
15059   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15060        ECHO_T=' ';;
15061   esac;;
15062 *)
15063   ECHO_N='-n';;
15064 esac
15065
15066 rm -f conf$$ conf$$.exe conf$$.file
15067 if test -d conf$$.dir; then
15068   rm -f conf$$.dir/conf$$.file
15069 else
15070   rm -f conf$$.dir
15071   mkdir conf$$.dir 2>/dev/null
15072 fi
15073 if (echo >conf$$.file) 2>/dev/null; then
15074   if ln -s conf$$.file conf$$ 2>/dev/null; then
15075     as_ln_s='ln -s'
15076     # ... but there are two gotchas:
15077     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15078     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15079     # In both cases, we have to default to `cp -p'.
15080     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15081       as_ln_s='cp -p'
15082   elif ln conf$$.file conf$$ 2>/dev/null; then
15083     as_ln_s=ln
15084   else
15085     as_ln_s='cp -p'
15086   fi
15087 else
15088   as_ln_s='cp -p'
15089 fi
15090 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15091 rmdir conf$$.dir 2>/dev/null
15092
15093
15094 # as_fn_mkdir_p
15095 # -------------
15096 # Create "$as_dir" as a directory, including parents if necessary.
15097 as_fn_mkdir_p ()
15098 {
15099
15100   case $as_dir in #(
15101   -*) as_dir=./$as_dir;;
15102   esac
15103   test -d "$as_dir" || eval $as_mkdir_p || {
15104     as_dirs=
15105     while :; do
15106       case $as_dir in #(
15107       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15108       *) as_qdir=$as_dir;;
15109       esac
15110       as_dirs="'$as_qdir' $as_dirs"
15111       as_dir=`$as_dirname -- "$as_dir" ||
15112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15113          X"$as_dir" : 'X\(//\)[^/]' \| \
15114          X"$as_dir" : 'X\(//\)$' \| \
15115          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15116 $as_echo X"$as_dir" |
15117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15118             s//\1/
15119             q
15120           }
15121           /^X\(\/\/\)[^/].*/{
15122             s//\1/
15123             q
15124           }
15125           /^X\(\/\/\)$/{
15126             s//\1/
15127             q
15128           }
15129           /^X\(\/\).*/{
15130             s//\1/
15131             q
15132           }
15133           s/.*/./; q'`
15134       test -d "$as_dir" && break
15135     done
15136     test -z "$as_dirs" || eval "mkdir $as_dirs"
15137   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15138
15139
15140 } # as_fn_mkdir_p
15141 if mkdir -p . 2>/dev/null; then
15142   as_mkdir_p='mkdir -p "$as_dir"'
15143 else
15144   test -d ./-p && rmdir ./-p
15145   as_mkdir_p=false
15146 fi
15147
15148 if test -x / >/dev/null 2>&1; then
15149   as_test_x='test -x'
15150 else
15151   if ls -dL / >/dev/null 2>&1; then
15152     as_ls_L_option=L
15153   else
15154     as_ls_L_option=
15155   fi
15156   as_test_x='
15157     eval sh -c '\''
15158       if test -d "$1"; then
15159         test -d "$1/.";
15160       else
15161         case $1 in #(
15162         -*)set "./$1";;
15163         esac;
15164         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15165         ???[sx]*):;;*)false;;esac;fi
15166     '\'' sh
15167   '
15168 fi
15169 as_executable_p=$as_test_x
15170
15171 # Sed expression to map a string onto a valid CPP name.
15172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15173
15174 # Sed expression to map a string onto a valid variable name.
15175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15176
15177
15178 exec 6>&1
15179 ## ----------------------------------- ##
15180 ## Main body of $CONFIG_STATUS script. ##
15181 ## ----------------------------------- ##
15182 _ASEOF
15183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15184
15185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186 # Save the log message, to keep $0 and so on meaningful, and to
15187 # report actual input values of CONFIG_FILES etc. instead of their
15188 # values after options handling.
15189 ac_log="
15190 This file was extended by package-unused $as_me version-unused, which was
15191 generated by GNU Autoconf 2.64.  Invocation command line was
15192
15193   CONFIG_FILES    = $CONFIG_FILES
15194   CONFIG_HEADERS  = $CONFIG_HEADERS
15195   CONFIG_LINKS    = $CONFIG_LINKS
15196   CONFIG_COMMANDS = $CONFIG_COMMANDS
15197   $ $0 $@
15198
15199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15200 "
15201
15202 _ACEOF
15203
15204 case $ac_config_files in *"
15205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15206 esac
15207
15208 case $ac_config_headers in *"
15209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15210 esac
15211
15212
15213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15214 # Files that config.status was made for.
15215 config_files="$ac_config_files"
15216 config_headers="$ac_config_headers"
15217 config_commands="$ac_config_commands"
15218
15219 _ACEOF
15220
15221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15222 ac_cs_usage="\
15223 \`$as_me' instantiates files and other configuration actions
15224 from templates according to the current configuration.  Unless the files
15225 and actions are specified as TAGs, all are instantiated by default.
15226
15227 Usage: $0 [OPTION]... [TAG]...
15228
15229   -h, --help       print this help, then exit
15230   -V, --version    print version number and configuration settings, then exit
15231   -q, --quiet, --silent
15232                    do not print progress messages
15233   -d, --debug      don't remove temporary files
15234       --recheck    update $as_me by reconfiguring in the same conditions
15235       --file=FILE[:TEMPLATE]
15236                    instantiate the configuration file FILE
15237       --header=FILE[:TEMPLATE]
15238                    instantiate the configuration header FILE
15239
15240 Configuration files:
15241 $config_files
15242
15243 Configuration headers:
15244 $config_headers
15245
15246 Configuration commands:
15247 $config_commands
15248
15249 Report bugs to the package provider."
15250
15251 _ACEOF
15252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15253 ac_cs_version="\\
15254 package-unused config.status version-unused
15255 configured by $0, generated by GNU Autoconf 2.64,
15256   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15257
15258 Copyright (C) 2009 Free Software Foundation, Inc.
15259 This config.status script is free software; the Free Software Foundation
15260 gives unlimited permission to copy, distribute and modify it."
15261
15262 ac_pwd='$ac_pwd'
15263 srcdir='$srcdir'
15264 INSTALL='$INSTALL'
15265 MKDIR_P='$MKDIR_P'
15266 AWK='$AWK'
15267 test -n "\$AWK" || AWK=awk
15268 _ACEOF
15269
15270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271 # The default lists apply if the user does not specify any file.
15272 ac_need_defaults=:
15273 while test $# != 0
15274 do
15275   case $1 in
15276   --*=*)
15277     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15278     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15279     ac_shift=:
15280     ;;
15281   *)
15282     ac_option=$1
15283     ac_optarg=$2
15284     ac_shift=shift
15285     ;;
15286   esac
15287
15288   case $ac_option in
15289   # Handling of the options.
15290   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15291     ac_cs_recheck=: ;;
15292   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15293     $as_echo "$ac_cs_version"; exit ;;
15294   --debug | --debu | --deb | --de | --d | -d )
15295     debug=: ;;
15296   --file | --fil | --fi | --f )
15297     $ac_shift
15298     case $ac_optarg in
15299     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15300     esac
15301     as_fn_append CONFIG_FILES " '$ac_optarg'"
15302     ac_need_defaults=false;;
15303   --header | --heade | --head | --hea )
15304     $ac_shift
15305     case $ac_optarg in
15306     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15307     esac
15308     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15309     ac_need_defaults=false;;
15310   --he | --h)
15311     # Conflict between --help and --header
15312     as_fn_error "ambiguous option: \`$1'
15313 Try \`$0 --help' for more information.";;
15314   --help | --hel | -h )
15315     $as_echo "$ac_cs_usage"; exit ;;
15316   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15317   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15318     ac_cs_silent=: ;;
15319
15320   # This is an error.
15321   -*) as_fn_error "unrecognized option: \`$1'
15322 Try \`$0 --help' for more information." ;;
15323
15324   *) as_fn_append ac_config_targets " $1"
15325      ac_need_defaults=false ;;
15326
15327   esac
15328   shift
15329 done
15330
15331 ac_configure_extra_args=
15332
15333 if $ac_cs_silent; then
15334   exec 6>/dev/null
15335   ac_configure_extra_args="$ac_configure_extra_args --silent"
15336 fi
15337
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15340 if \$ac_cs_recheck; then
15341   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15342   shift
15343   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15344   CONFIG_SHELL='$SHELL'
15345   export CONFIG_SHELL
15346   exec "\$@"
15347 fi
15348
15349 _ACEOF
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15351 exec 5>>config.log
15352 {
15353   echo
15354   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15355 ## Running $as_me. ##
15356 _ASBOX
15357   $as_echo "$ac_log"
15358 } >&5
15359
15360 _ACEOF
15361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15362 #
15363 # INIT-COMMANDS
15364 #
15365
15366 srcdir="$srcdir"
15367 host="$host"
15368 target="$target"
15369 with_multisubdir="$with_multisubdir"
15370 with_multisrctop="$with_multisrctop"
15371 with_target_subdir="$with_target_subdir"
15372 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15373 multi_basedir="$multi_basedir"
15374 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15375 CC="$CC"
15376 CXX="$CXX"
15377 GFORTRAN="$GFORTRAN"
15378 GCJ="$GCJ"
15379 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15380
15381
15382 # The HP-UX ksh and POSIX shell print the target directory to stdout
15383 # if CDPATH is set.
15384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15385
15386 sed_quote_subst='$sed_quote_subst'
15387 double_quote_subst='$double_quote_subst'
15388 delay_variable_subst='$delay_variable_subst'
15389 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15390 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15391 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15392 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15393 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15394 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15395 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15396 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15397 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15398 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15399 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15400 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15401 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15402 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15403 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15404 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15405 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15406 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15407 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15408 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15409 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15410 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15411 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15412 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15413 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15414 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15415 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15416 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15417 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15418 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15419 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15420 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15421 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15422 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15423 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15424 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15425 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15426 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15427 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15428 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15429 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15430 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15431 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15432 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15433 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15434 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15435 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15436 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15437 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"`'
15438 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15439 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15440 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15441 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15442 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15443 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15444 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15445 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15446 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15447 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15448 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15449 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15450 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15451 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15452 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15453 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15454 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15455 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15456 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15457 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15458 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15459 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15460 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15461 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15462 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15463 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15464 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15465 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15466 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15467 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15468 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15469 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15470 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15471 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15472 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15473 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15474 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15475 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15476 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15477 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15478 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15479 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15480 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15481 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15482 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15483 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15484 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15485 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15486 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15487 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15488 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15489 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15490 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15491 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15492 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15493 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15494 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15495 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15496 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15497 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15498 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15499 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15500 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15501 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15502 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15503 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15504 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15505 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15506 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15507 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15508 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15509 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15510 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15511 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15512 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15513 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15514 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15515 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15516 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15517 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15518 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15519 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15520 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15521 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15522 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15523 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15524 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15525 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15526 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15527 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15528 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15529 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15530 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15531 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15532 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15533 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15534 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15535 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15536 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15537 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15538 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15539 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15540 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15541 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15542 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15543 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15544 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15545 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15546 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15547 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15548 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15549 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15550 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15551 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15552
15553 LTCC='$LTCC'
15554 LTCFLAGS='$LTCFLAGS'
15555 compiler='$compiler_DEFAULT'
15556
15557 # A function that is used when there is no print builtin or printf.
15558 func_fallback_echo ()
15559 {
15560   eval 'cat <<_LTECHO_EOF
15561 \$1
15562 _LTECHO_EOF'
15563 }
15564
15565 # Quote evaled strings.
15566 for var in SED \
15567 GREP \
15568 EGREP \
15569 FGREP \
15570 SHELL \
15571 ECHO \
15572 LD \
15573 NM \
15574 LN_S \
15575 lt_SP2NL \
15576 lt_NL2SP \
15577 reload_flag \
15578 OBJDUMP \
15579 deplibs_check_method \
15580 file_magic_cmd \
15581 AR \
15582 AR_FLAGS \
15583 STRIP \
15584 RANLIB \
15585 CC \
15586 CFLAGS \
15587 compiler \
15588 lt_cv_sys_global_symbol_pipe \
15589 lt_cv_sys_global_symbol_to_cdecl \
15590 lt_cv_sys_global_symbol_to_c_name_address \
15591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15592 lt_prog_compiler_no_builtin_flag \
15593 lt_prog_compiler_wl \
15594 lt_prog_compiler_pic \
15595 lt_prog_compiler_static \
15596 lt_cv_prog_compiler_c_o \
15597 need_locks \
15598 DSYMUTIL \
15599 NMEDIT \
15600 LIPO \
15601 OTOOL \
15602 OTOOL64 \
15603 shrext_cmds \
15604 export_dynamic_flag_spec \
15605 whole_archive_flag_spec \
15606 compiler_needs_object \
15607 with_gnu_ld \
15608 allow_undefined_flag \
15609 no_undefined_flag \
15610 hardcode_libdir_flag_spec \
15611 hardcode_libdir_flag_spec_ld \
15612 hardcode_libdir_separator \
15613 fix_srcfile_path \
15614 exclude_expsyms \
15615 include_expsyms \
15616 file_list_spec \
15617 variables_saved_for_relink \
15618 libname_spec \
15619 library_names_spec \
15620 soname_spec \
15621 install_override_mode \
15622 finish_eval \
15623 old_striplib \
15624 striplib \
15625 LD_GO \
15626 reload_flag_GO \
15627 compiler_GO \
15628 lt_prog_compiler_no_builtin_flag_GO \
15629 lt_prog_compiler_wl_GO \
15630 lt_prog_compiler_pic_GO \
15631 lt_prog_compiler_static_GO \
15632 lt_cv_prog_compiler_c_o_GO \
15633 export_dynamic_flag_spec_GO \
15634 whole_archive_flag_spec_GO \
15635 compiler_needs_object_GO \
15636 with_gnu_ld_GO \
15637 allow_undefined_flag_GO \
15638 no_undefined_flag_GO \
15639 hardcode_libdir_flag_spec_GO \
15640 hardcode_libdir_flag_spec_ld_GO \
15641 hardcode_libdir_separator_GO \
15642 fix_srcfile_path_GO \
15643 exclude_expsyms_GO \
15644 include_expsyms_GO \
15645 file_list_spec_GO; do
15646     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15647     *[\\\\\\\`\\"\\\$]*)
15648       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15649       ;;
15650     *)
15651       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15652       ;;
15653     esac
15654 done
15655
15656 # Double-quote double-evaled strings.
15657 for var in reload_cmds \
15658 old_postinstall_cmds \
15659 old_postuninstall_cmds \
15660 old_archive_cmds \
15661 extract_expsyms_cmds \
15662 old_archive_from_new_cmds \
15663 old_archive_from_expsyms_cmds \
15664 archive_cmds \
15665 archive_expsym_cmds \
15666 module_cmds \
15667 module_expsym_cmds \
15668 export_symbols_cmds \
15669 prelink_cmds \
15670 postinstall_cmds \
15671 postuninstall_cmds \
15672 finish_cmds \
15673 sys_lib_search_path_spec \
15674 sys_lib_dlsearch_path_spec \
15675 reload_cmds_GO \
15676 old_archive_cmds_GO \
15677 old_archive_from_new_cmds_GO \
15678 old_archive_from_expsyms_cmds_GO \
15679 archive_cmds_GO \
15680 archive_expsym_cmds_GO \
15681 module_cmds_GO \
15682 module_expsym_cmds_GO \
15683 export_symbols_cmds_GO \
15684 prelink_cmds_GO; do
15685     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15686     *[\\\\\\\`\\"\\\$]*)
15687       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15688       ;;
15689     *)
15690       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15691       ;;
15692     esac
15693 done
15694
15695 ac_aux_dir='$ac_aux_dir'
15696 xsi_shell='$xsi_shell'
15697 lt_shell_append='$lt_shell_append'
15698
15699 # See if we are running on zsh, and set the options which allow our
15700 # commands through without removal of \ escapes INIT.
15701 if test -n "\${ZSH_VERSION+set}" ; then
15702    setopt NO_GLOB_SUBST
15703 fi
15704
15705
15706     PACKAGE='$PACKAGE'
15707     VERSION='$VERSION'
15708     TIMESTAMP='$TIMESTAMP'
15709     RM='$RM'
15710     ofile='$ofile'
15711
15712
15713
15714
15715
15716
15717 # Variables needed in config.status (file generation) which aren't already
15718 # passed by autoconf.
15719 SUBDIRS="$SUBDIRS"
15720
15721
15722 _ACEOF
15723
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725
15726 # Handling of arguments.
15727 for ac_config_target in $ac_config_targets
15728 do
15729   case $ac_config_target in
15730     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15731     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15732     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15733     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15734     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15735     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15736     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15737
15738   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15739   esac
15740 done
15741
15742
15743 # If the user did not use the arguments to specify the items to instantiate,
15744 # then the envvar interface is used.  Set only those that are not.
15745 # We use the long form for the default assignment because of an extremely
15746 # bizarre bug on SunOS 4.1.3.
15747 if $ac_need_defaults; then
15748   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15749   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15750   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15751 fi
15752
15753 # Have a temporary directory for convenience.  Make it in the build tree
15754 # simply because there is no reason against having it here, and in addition,
15755 # creating and moving files from /tmp can sometimes cause problems.
15756 # Hook for its removal unless debugging.
15757 # Note that there is a small window in which the directory will not be cleaned:
15758 # after its creation but before its name has been assigned to `$tmp'.
15759 $debug ||
15760 {
15761   tmp=
15762   trap 'exit_status=$?
15763   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15764 ' 0
15765   trap 'as_fn_exit 1' 1 2 13 15
15766 }
15767 # Create a (secure) tmp directory for tmp files.
15768
15769 {
15770   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15771   test -n "$tmp" && test -d "$tmp"
15772 }  ||
15773 {
15774   tmp=./conf$$-$RANDOM
15775   (umask 077 && mkdir "$tmp")
15776 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15777
15778 # Set up the scripts for CONFIG_FILES section.
15779 # No need to generate them if there are no CONFIG_FILES.
15780 # This happens for instance with `./config.status config.h'.
15781 if test -n "$CONFIG_FILES"; then
15782
15783
15784 ac_cr=`echo X | tr X '\015'`
15785 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15786 # But we know of no other shell where ac_cr would be empty at this
15787 # point, so we can use a bashism as a fallback.
15788 if test "x$ac_cr" = x; then
15789   eval ac_cr=\$\'\\r\'
15790 fi
15791 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15792 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15793   ac_cs_awk_cr='\r'
15794 else
15795   ac_cs_awk_cr=$ac_cr
15796 fi
15797
15798 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15799 _ACEOF
15800
15801
15802 {
15803   echo "cat >conf$$subs.awk <<_ACEOF" &&
15804   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15805   echo "_ACEOF"
15806 } >conf$$subs.sh ||
15807   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15808 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15809 ac_delim='%!_!# '
15810 for ac_last_try in false false false false false :; do
15811   . ./conf$$subs.sh ||
15812     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15813
15814   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15815   if test $ac_delim_n = $ac_delim_num; then
15816     break
15817   elif $ac_last_try; then
15818     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15819   else
15820     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15821   fi
15822 done
15823 rm -f conf$$subs.sh
15824
15825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15827 _ACEOF
15828 sed -n '
15829 h
15830 s/^/S["/; s/!.*/"]=/
15831 p
15832 g
15833 s/^[^!]*!//
15834 :repl
15835 t repl
15836 s/'"$ac_delim"'$//
15837 t delim
15838 :nl
15839 h
15840 s/\(.\{148\}\).*/\1/
15841 t more1
15842 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15843 p
15844 n
15845 b repl
15846 :more1
15847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15848 p
15849 g
15850 s/.\{148\}//
15851 t nl
15852 :delim
15853 h
15854 s/\(.\{148\}\).*/\1/
15855 t more2
15856 s/["\\]/\\&/g; s/^/"/; s/$/"/
15857 p
15858 b
15859 :more2
15860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15861 p
15862 g
15863 s/.\{148\}//
15864 t delim
15865 ' <conf$$subs.awk | sed '
15866 /^[^""]/{
15867   N
15868   s/\n//
15869 }
15870 ' >>$CONFIG_STATUS || ac_write_fail=1
15871 rm -f conf$$subs.awk
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 _ACAWK
15874 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15875   for (key in S) S_is_set[key] = 1
15876   FS = "\a"
15877
15878 }
15879 {
15880   line = $ 0
15881   nfields = split(line, field, "@")
15882   substed = 0
15883   len = length(field[1])
15884   for (i = 2; i < nfields; i++) {
15885     key = field[i]
15886     keylen = length(key)
15887     if (S_is_set[key]) {
15888       value = S[key]
15889       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15890       len += length(value) + length(field[++i])
15891       substed = 1
15892     } else
15893       len += 1 + keylen
15894   }
15895
15896   print line
15897 }
15898
15899 _ACAWK
15900 _ACEOF
15901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15903   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15904 else
15905   cat
15906 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15907   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15908 _ACEOF
15909
15910 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15911 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15912 # trailing colons and then remove the whole line if VPATH becomes empty
15913 # (actually we leave an empty line to preserve line numbers).
15914 if test "x$srcdir" = x.; then
15915   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15916 s/:*\$(srcdir):*/:/
15917 s/:*\${srcdir}:*/:/
15918 s/:*@srcdir@:*/:/
15919 s/^\([^=]*=[     ]*\):*/\1/
15920 s/:*$//
15921 s/^[^=]*=[       ]*$//
15922 }'
15923 fi
15924
15925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15926 fi # test -n "$CONFIG_FILES"
15927
15928 # Set up the scripts for CONFIG_HEADERS section.
15929 # No need to generate them if there are no CONFIG_HEADERS.
15930 # This happens for instance with `./config.status Makefile'.
15931 if test -n "$CONFIG_HEADERS"; then
15932 cat >"$tmp/defines.awk" <<\_ACAWK ||
15933 BEGIN {
15934 _ACEOF
15935
15936 # Transform confdefs.h into an awk script `defines.awk', embedded as
15937 # here-document in config.status, that substitutes the proper values into
15938 # config.h.in to produce config.h.
15939
15940 # Create a delimiter string that does not exist in confdefs.h, to ease
15941 # handling of long lines.
15942 ac_delim='%!_!# '
15943 for ac_last_try in false false :; do
15944   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15945   if test -z "$ac_t"; then
15946     break
15947   elif $ac_last_try; then
15948     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15949   else
15950     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15951   fi
15952 done
15953
15954 # For the awk script, D is an array of macro values keyed by name,
15955 # likewise P contains macro parameters if any.  Preserve backslash
15956 # newline sequences.
15957
15958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15959 sed -n '
15960 s/.\{148\}/&'"$ac_delim"'/g
15961 t rset
15962 :rset
15963 s/^[     ]*#[    ]*define[       ][      ]*/ /
15964 t def
15965 d
15966 :def
15967 s/\\$//
15968 t bsnl
15969 s/["\\]/\\&/g
15970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15971 D["\1"]=" \3"/p
15972 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15973 d
15974 :bsnl
15975 s/["\\]/\\&/g
15976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15977 D["\1"]=" \3\\\\\\n"\\/p
15978 t cont
15979 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15980 t cont
15981 d
15982 :cont
15983 n
15984 s/.\{148\}/&'"$ac_delim"'/g
15985 t clear
15986 :clear
15987 s/\\$//
15988 t bsnlc
15989 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15990 d
15991 :bsnlc
15992 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15993 b cont
15994 ' <confdefs.h | sed '
15995 s/'"$ac_delim"'/"\\\
15996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15997
15998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15999   for (key in D) D_is_set[key] = 1
16000   FS = "\a"
16001 }
16002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16003   line = \$ 0
16004   split(line, arg, " ")
16005   if (arg[1] == "#") {
16006     defundef = arg[2]
16007     mac1 = arg[3]
16008   } else {
16009     defundef = substr(arg[1], 2)
16010     mac1 = arg[2]
16011   }
16012   split(mac1, mac2, "(") #)
16013   macro = mac2[1]
16014   prefix = substr(line, 1, index(line, defundef) - 1)
16015   if (D_is_set[macro]) {
16016     # Preserve the white space surrounding the "#".
16017     print prefix "define", macro P[macro] D[macro]
16018     next
16019   } else {
16020     # Replace #undef with comments.  This is necessary, for example,
16021     # in the case of _POSIX_SOURCE, which is predefined and required
16022     # on some systems where configure will not decide to define it.
16023     if (defundef == "undef") {
16024       print "/*", prefix defundef, macro, "*/"
16025       next
16026     }
16027   }
16028 }
16029 { print }
16030 _ACAWK
16031 _ACEOF
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16034 fi # test -n "$CONFIG_HEADERS"
16035
16036
16037 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16038 shift
16039 for ac_tag
16040 do
16041   case $ac_tag in
16042   :[FHLC]) ac_mode=$ac_tag; continue;;
16043   esac
16044   case $ac_mode$ac_tag in
16045   :[FHL]*:*);;
16046   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16047   :[FH]-) ac_tag=-:-;;
16048   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16049   esac
16050   ac_save_IFS=$IFS
16051   IFS=:
16052   set x $ac_tag
16053   IFS=$ac_save_IFS
16054   shift
16055   ac_file=$1
16056   shift
16057
16058   case $ac_mode in
16059   :L) ac_source=$1;;
16060   :[FH])
16061     ac_file_inputs=
16062     for ac_f
16063     do
16064       case $ac_f in
16065       -) ac_f="$tmp/stdin";;
16066       *) # Look for the file first in the build tree, then in the source tree
16067          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16068          # because $ac_f cannot contain `:'.
16069          test -f "$ac_f" ||
16070            case $ac_f in
16071            [\\/$]*) false;;
16072            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16073            esac ||
16074            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16075       esac
16076       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16077       as_fn_append ac_file_inputs " '$ac_f'"
16078     done
16079
16080     # Let's still pretend it is `configure' which instantiates (i.e., don't
16081     # use $as_me), people would be surprised to read:
16082     #    /* config.h.  Generated by config.status.  */
16083     configure_input='Generated from '`
16084           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16085         `' by configure.'
16086     if test x"$ac_file" != x-; then
16087       configure_input="$ac_file.  $configure_input"
16088       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16089 $as_echo "$as_me: creating $ac_file" >&6;}
16090     fi
16091     # Neutralize special characters interpreted by sed in replacement strings.
16092     case $configure_input in #(
16093     *\&* | *\|* | *\\* )
16094        ac_sed_conf_input=`$as_echo "$configure_input" |
16095        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16096     *) ac_sed_conf_input=$configure_input;;
16097     esac
16098
16099     case $ac_tag in
16100     *:-:* | *:-) cat >"$tmp/stdin" \
16101       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16102     esac
16103     ;;
16104   esac
16105
16106   ac_dir=`$as_dirname -- "$ac_file" ||
16107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16108          X"$ac_file" : 'X\(//\)[^/]' \| \
16109          X"$ac_file" : 'X\(//\)$' \| \
16110          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16111 $as_echo X"$ac_file" |
16112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16113             s//\1/
16114             q
16115           }
16116           /^X\(\/\/\)[^/].*/{
16117             s//\1/
16118             q
16119           }
16120           /^X\(\/\/\)$/{
16121             s//\1/
16122             q
16123           }
16124           /^X\(\/\).*/{
16125             s//\1/
16126             q
16127           }
16128           s/.*/./; q'`
16129   as_dir="$ac_dir"; as_fn_mkdir_p
16130   ac_builddir=.
16131
16132 case "$ac_dir" in
16133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16134 *)
16135   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16136   # A ".." for each directory in $ac_dir_suffix.
16137   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16138   case $ac_top_builddir_sub in
16139   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16140   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16141   esac ;;
16142 esac
16143 ac_abs_top_builddir=$ac_pwd
16144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16145 # for backward compatibility:
16146 ac_top_builddir=$ac_top_build_prefix
16147
16148 case $srcdir in
16149   .)  # We are building in place.
16150     ac_srcdir=.
16151     ac_top_srcdir=$ac_top_builddir_sub
16152     ac_abs_top_srcdir=$ac_pwd ;;
16153   [\\/]* | ?:[\\/]* )  # Absolute name.
16154     ac_srcdir=$srcdir$ac_dir_suffix;
16155     ac_top_srcdir=$srcdir
16156     ac_abs_top_srcdir=$srcdir ;;
16157   *) # Relative name.
16158     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16159     ac_top_srcdir=$ac_top_build_prefix$srcdir
16160     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16161 esac
16162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16163
16164
16165   case $ac_mode in
16166   :F)
16167   #
16168   # CONFIG_FILE
16169   #
16170
16171   case $INSTALL in
16172   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16173   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16174   esac
16175   ac_MKDIR_P=$MKDIR_P
16176   case $MKDIR_P in
16177   [\\/$]* | ?:[\\/]* ) ;;
16178   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16179   esac
16180 _ACEOF
16181
16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 # If the template does not know about datarootdir, expand it.
16184 # FIXME: This hack should be removed a few years after 2.60.
16185 ac_datarootdir_hack=; ac_datarootdir_seen=
16186 ac_sed_dataroot='
16187 /datarootdir/ {
16188   p
16189   q
16190 }
16191 /@datadir@/p
16192 /@docdir@/p
16193 /@infodir@/p
16194 /@localedir@/p
16195 /@mandir@/p'
16196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16197 *datarootdir*) ac_datarootdir_seen=yes;;
16198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16199   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16201 _ACEOF
16202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16203   ac_datarootdir_hack='
16204   s&@datadir@&$datadir&g
16205   s&@docdir@&$docdir&g
16206   s&@infodir@&$infodir&g
16207   s&@localedir@&$localedir&g
16208   s&@mandir@&$mandir&g
16209   s&\\\${datarootdir}&$datarootdir&g' ;;
16210 esac
16211 _ACEOF
16212
16213 # Neutralize VPATH when `$srcdir' = `.'.
16214 # Shell code in configure.ac might set extrasub.
16215 # FIXME: do we really want to maintain this feature?
16216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16217 ac_sed_extra="$ac_vpsub
16218 $extrasub
16219 _ACEOF
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221 :t
16222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16223 s|@configure_input@|$ac_sed_conf_input|;t t
16224 s&@top_builddir@&$ac_top_builddir_sub&;t t
16225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16226 s&@srcdir@&$ac_srcdir&;t t
16227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16228 s&@top_srcdir@&$ac_top_srcdir&;t t
16229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16230 s&@builddir@&$ac_builddir&;t t
16231 s&@abs_builddir@&$ac_abs_builddir&;t t
16232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16233 s&@INSTALL@&$ac_INSTALL&;t t
16234 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16235 $ac_datarootdir_hack
16236 "
16237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16238   || as_fn_error "could not create $ac_file" "$LINENO" 5
16239
16240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16241   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16242   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16243   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16244 which seems to be undefined.  Please make sure it is defined." >&5
16245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16246 which seems to be undefined.  Please make sure it is defined." >&2;}
16247
16248   rm -f "$tmp/stdin"
16249   case $ac_file in
16250   -) cat "$tmp/out" && rm -f "$tmp/out";;
16251   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16252   esac \
16253   || as_fn_error "could not create $ac_file" "$LINENO" 5
16254  ;;
16255   :H)
16256   #
16257   # CONFIG_HEADER
16258   #
16259   if test x"$ac_file" != x-; then
16260     {
16261       $as_echo "/* $configure_input  */" \
16262       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16263     } >"$tmp/config.h" \
16264       || as_fn_error "could not create $ac_file" "$LINENO" 5
16265     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16266       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16268     else
16269       rm -f "$ac_file"
16270       mv "$tmp/config.h" "$ac_file" \
16271         || as_fn_error "could not create $ac_file" "$LINENO" 5
16272     fi
16273   else
16274     $as_echo "/* $configure_input  */" \
16275       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16276       || as_fn_error "could not create -" "$LINENO" 5
16277   fi
16278 # Compute "$ac_file"'s index in $config_headers.
16279 _am_arg="$ac_file"
16280 _am_stamp_count=1
16281 for _am_header in $config_headers :; do
16282   case $_am_header in
16283     $_am_arg | $_am_arg:* )
16284       break ;;
16285     * )
16286       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16287   esac
16288 done
16289 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16290 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291          X"$_am_arg" : 'X\(//\)[^/]' \| \
16292          X"$_am_arg" : 'X\(//\)$' \| \
16293          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16294 $as_echo X"$_am_arg" |
16295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16296             s//\1/
16297             q
16298           }
16299           /^X\(\/\/\)[^/].*/{
16300             s//\1/
16301             q
16302           }
16303           /^X\(\/\/\)$/{
16304             s//\1/
16305             q
16306           }
16307           /^X\(\/\).*/{
16308             s//\1/
16309             q
16310           }
16311           s/.*/./; q'`/stamp-h$_am_stamp_count
16312  ;;
16313
16314   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16315 $as_echo "$as_me: executing $ac_file commands" >&6;}
16316  ;;
16317   esac
16318
16319
16320   case $ac_file$ac_mode in
16321     "default-1":C)
16322 # Only add multilib support code if we just rebuilt the top-level
16323 # Makefile.
16324 case " $CONFIG_FILES " in
16325  *" Makefile "*)
16326    ac_file=Makefile . ${multi_basedir}/config-ml.in
16327    ;;
16328 esac ;;
16329     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16330   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16331   # are listed without --file.  Let's play safe and only enable the eval
16332   # if we detect the quoting.
16333   case $CONFIG_FILES in
16334   *\'*) eval set x "$CONFIG_FILES" ;;
16335   *)   set x $CONFIG_FILES ;;
16336   esac
16337   shift
16338   for mf
16339   do
16340     # Strip MF so we end up with the name of the file.
16341     mf=`echo "$mf" | sed -e 's/:.*$//'`
16342     # Check whether this is an Automake generated Makefile or not.
16343     # We used to match only the files named `Makefile.in', but
16344     # some people rename them; so instead we look at the file content.
16345     # Grep'ing the first line is not enough: some people post-process
16346     # each Makefile.in and add a new line on top of each file to say so.
16347     # Grep'ing the whole file is not good either: AIX grep has a line
16348     # limit of 2048, but all sed's we know have understand at least 4000.
16349     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16350       dirpart=`$as_dirname -- "$mf" ||
16351 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352          X"$mf" : 'X\(//\)[^/]' \| \
16353          X"$mf" : 'X\(//\)$' \| \
16354          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16355 $as_echo X"$mf" |
16356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16357             s//\1/
16358             q
16359           }
16360           /^X\(\/\/\)[^/].*/{
16361             s//\1/
16362             q
16363           }
16364           /^X\(\/\/\)$/{
16365             s//\1/
16366             q
16367           }
16368           /^X\(\/\).*/{
16369             s//\1/
16370             q
16371           }
16372           s/.*/./; q'`
16373     else
16374       continue
16375     fi
16376     # Extract the definition of DEPDIR, am__include, and am__quote
16377     # from the Makefile without running `make'.
16378     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16379     test -z "$DEPDIR" && continue
16380     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16381     test -z "am__include" && continue
16382     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16383     # When using ansi2knr, U may be empty or an underscore; expand it
16384     U=`sed -n 's/^U = //p' < "$mf"`
16385     # Find all dependency output files, they are included files with
16386     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16387     # simplest approach to changing $(DEPDIR) to its actual value in the
16388     # expansion.
16389     for file in `sed -n "
16390       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16391          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16392       # Make sure the directory exists.
16393       test -f "$dirpart/$file" && continue
16394       fdir=`$as_dirname -- "$file" ||
16395 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16396          X"$file" : 'X\(//\)[^/]' \| \
16397          X"$file" : 'X\(//\)$' \| \
16398          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16399 $as_echo X"$file" |
16400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16401             s//\1/
16402             q
16403           }
16404           /^X\(\/\/\)[^/].*/{
16405             s//\1/
16406             q
16407           }
16408           /^X\(\/\/\)$/{
16409             s//\1/
16410             q
16411           }
16412           /^X\(\/\).*/{
16413             s//\1/
16414             q
16415           }
16416           s/.*/./; q'`
16417       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16418       # echo "creating $dirpart/$file"
16419       echo '# dummy' > "$dirpart/$file"
16420     done
16421   done
16422 }
16423  ;;
16424     "libtool":C)
16425
16426     # See if we are running on zsh, and set the options which allow our
16427     # commands through without removal of \ escapes.
16428     if test -n "${ZSH_VERSION+set}" ; then
16429       setopt NO_GLOB_SUBST
16430     fi
16431
16432     cfgfile="${ofile}T"
16433     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16434     $RM "$cfgfile"
16435
16436     cat <<_LT_EOF >> "$cfgfile"
16437 #! $SHELL
16438
16439 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16440 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16441 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16442 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16443 #
16444 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16445 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16446 #   Written by Gordon Matzigkeit, 1996
16447 #
16448 #   This file is part of GNU Libtool.
16449 #
16450 # GNU Libtool is free software; you can redistribute it and/or
16451 # modify it under the terms of the GNU General Public License as
16452 # published by the Free Software Foundation; either version 2 of
16453 # the License, or (at your option) any later version.
16454 #
16455 # As a special exception to the GNU General Public License,
16456 # if you distribute this file as part of a program or library that
16457 # is built using GNU Libtool, you may include this file under the
16458 # same distribution terms that you use for the rest of that program.
16459 #
16460 # GNU Libtool is distributed in the hope that it will be useful,
16461 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16462 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16463 # GNU General Public License for more details.
16464 #
16465 # You should have received a copy of the GNU General Public License
16466 # along with GNU Libtool; see the file COPYING.  If not, a copy
16467 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16468 # obtained by writing to the Free Software Foundation, Inc.,
16469 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16470
16471
16472 # The names of the tagged configurations supported by this script.
16473 available_tags="GO "
16474
16475 # ### BEGIN LIBTOOL CONFIG
16476
16477 # A sed program that does not truncate output.
16478 SED=$lt_SED
16479
16480 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16481 Xsed="\$SED -e 1s/^X//"
16482
16483 # A grep program that handles long lines.
16484 GREP=$lt_GREP
16485
16486 # An ERE matcher.
16487 EGREP=$lt_EGREP
16488
16489 # A literal string matcher.
16490 FGREP=$lt_FGREP
16491
16492 # Shell to use when invoking shell scripts.
16493 SHELL=$lt_SHELL
16494
16495 # An echo program that protects backslashes.
16496 ECHO=$lt_ECHO
16497
16498 # Which release of libtool.m4 was used?
16499 macro_version=$macro_version
16500 macro_revision=$macro_revision
16501
16502 # Whether or not to build shared libraries.
16503 build_libtool_libs=$enable_shared
16504
16505 # Whether or not to build static libraries.
16506 build_old_libs=$enable_static
16507
16508 # What type of objects to build.
16509 pic_mode=$pic_mode
16510
16511 # Whether or not to optimize for fast installation.
16512 fast_install=$enable_fast_install
16513
16514 # The host system.
16515 host_alias=$host_alias
16516 host=$host
16517 host_os=$host_os
16518
16519 # The build system.
16520 build_alias=$build_alias
16521 build=$build
16522 build_os=$build_os
16523
16524 # A BSD- or MS-compatible name lister.
16525 NM=$lt_NM
16526
16527 # Whether we need soft or hard links.
16528 LN_S=$lt_LN_S
16529
16530 # What is the maximum length of a command?
16531 max_cmd_len=$max_cmd_len
16532
16533 # Object file suffix (normally "o").
16534 objext=$ac_objext
16535
16536 # Executable file suffix (normally "").
16537 exeext=$exeext
16538
16539 # whether the shell understands "unset".
16540 lt_unset=$lt_unset
16541
16542 # turn spaces into newlines.
16543 SP2NL=$lt_lt_SP2NL
16544
16545 # turn newlines into spaces.
16546 NL2SP=$lt_lt_NL2SP
16547
16548 # An object symbol dumper.
16549 OBJDUMP=$lt_OBJDUMP
16550
16551 # Method to check whether dependent libraries are shared objects.
16552 deplibs_check_method=$lt_deplibs_check_method
16553
16554 # Command to use when deplibs_check_method == "file_magic".
16555 file_magic_cmd=$lt_file_magic_cmd
16556
16557 # The archiver.
16558 AR=$lt_AR
16559 AR_FLAGS=$lt_AR_FLAGS
16560
16561 # A symbol stripping program.
16562 STRIP=$lt_STRIP
16563
16564 # Commands used to install an old-style archive.
16565 RANLIB=$lt_RANLIB
16566 old_postinstall_cmds=$lt_old_postinstall_cmds
16567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16568
16569 # Whether to use a lock for old archive extraction.
16570 lock_old_archive_extraction=$lock_old_archive_extraction
16571
16572 # A C compiler.
16573 LTCC=$lt_CC
16574
16575 # LTCC compiler flags.
16576 LTCFLAGS=$lt_CFLAGS
16577
16578 # Take the output of nm and produce a listing of raw symbols and C names.
16579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16580
16581 # Transform the output of nm in a proper C declaration.
16582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16583
16584 # Transform the output of nm in a C name address pair.
16585 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16586
16587 # Transform the output of nm in a C name address pair when lib prefix is needed.
16588 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16589
16590 # The name of the directory that contains temporary libtool files.
16591 objdir=$objdir
16592
16593 # Used to examine libraries when file_magic_cmd begins with "file".
16594 MAGIC_CMD=$MAGIC_CMD
16595
16596 # Must we lock files when doing compilation?
16597 need_locks=$lt_need_locks
16598
16599 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16600 DSYMUTIL=$lt_DSYMUTIL
16601
16602 # Tool to change global to local symbols on Mac OS X.
16603 NMEDIT=$lt_NMEDIT
16604
16605 # Tool to manipulate fat objects and archives on Mac OS X.
16606 LIPO=$lt_LIPO
16607
16608 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16609 OTOOL=$lt_OTOOL
16610
16611 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16612 OTOOL64=$lt_OTOOL64
16613
16614 # Old archive suffix (normally "a").
16615 libext=$libext
16616
16617 # Shared library suffix (normally ".so").
16618 shrext_cmds=$lt_shrext_cmds
16619
16620 # The commands to extract the exported symbol list from a shared archive.
16621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16622
16623 # Variables whose values should be saved in libtool wrapper scripts and
16624 # restored at link time.
16625 variables_saved_for_relink=$lt_variables_saved_for_relink
16626
16627 # Do we need the "lib" prefix for modules?
16628 need_lib_prefix=$need_lib_prefix
16629
16630 # Do we need a version for libraries?
16631 need_version=$need_version
16632
16633 # Library versioning type.
16634 version_type=$version_type
16635
16636 # Shared library runtime path variable.
16637 runpath_var=$runpath_var
16638
16639 # Shared library path variable.
16640 shlibpath_var=$shlibpath_var
16641
16642 # Is shlibpath searched before the hard-coded library search path?
16643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16644
16645 # Format of library name prefix.
16646 libname_spec=$lt_libname_spec
16647
16648 # List of archive names.  First name is the real one, the rest are links.
16649 # The last name is the one that the linker finds with -lNAME
16650 library_names_spec=$lt_library_names_spec
16651
16652 # The coded name of the library, if different from the real name.
16653 soname_spec=$lt_soname_spec
16654
16655 # Permission mode override for installation of shared libraries.
16656 install_override_mode=$lt_install_override_mode
16657
16658 # Command to use after installation of a shared archive.
16659 postinstall_cmds=$lt_postinstall_cmds
16660
16661 # Command to use after uninstallation of a shared archive.
16662 postuninstall_cmds=$lt_postuninstall_cmds
16663
16664 # Commands used to finish a libtool library installation in a directory.
16665 finish_cmds=$lt_finish_cmds
16666
16667 # As "finish_cmds", except a single script fragment to be evaled but
16668 # not shown.
16669 finish_eval=$lt_finish_eval
16670
16671 # Whether we should hardcode library paths into libraries.
16672 hardcode_into_libs=$hardcode_into_libs
16673
16674 # Compile-time system search path for libraries.
16675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16676
16677 # Run-time system search path for libraries.
16678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16679
16680 # Whether dlopen is supported.
16681 dlopen_support=$enable_dlopen
16682
16683 # Whether dlopen of programs is supported.
16684 dlopen_self=$enable_dlopen_self
16685
16686 # Whether dlopen of statically linked programs is supported.
16687 dlopen_self_static=$enable_dlopen_self_static
16688
16689 # Commands to strip libraries.
16690 old_striplib=$lt_old_striplib
16691 striplib=$lt_striplib
16692
16693
16694 # The linker used to build libraries.
16695 LD=$lt_LD
16696
16697 # How to create reloadable object files.
16698 reload_flag=$lt_reload_flag
16699 reload_cmds=$lt_reload_cmds
16700
16701 # Commands used to build an old-style archive.
16702 old_archive_cmds=$lt_old_archive_cmds
16703
16704 # A language specific compiler.
16705 CC=$lt_compiler
16706
16707 # Is the compiler the GNU compiler?
16708 with_gcc=$GCC
16709
16710 # Compiler flag to turn off builtin functions.
16711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16712
16713 # How to pass a linker flag through the compiler.
16714 wl=$lt_lt_prog_compiler_wl
16715
16716 # Additional compiler flags for building library objects.
16717 pic_flag=$lt_lt_prog_compiler_pic
16718
16719 # Compiler flag to prevent dynamic linking.
16720 link_static_flag=$lt_lt_prog_compiler_static
16721
16722 # Does compiler simultaneously support -c and -o options?
16723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16724
16725 # Whether or not to add -lc for building shared libraries.
16726 build_libtool_need_lc=$archive_cmds_need_lc
16727
16728 # Whether or not to disallow shared libs when runtime libs are static.
16729 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16730
16731 # Compiler flag to allow reflexive dlopens.
16732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16733
16734 # Compiler flag to generate shared objects directly from archives.
16735 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16736
16737 # Whether the compiler copes with passing no objects directly.
16738 compiler_needs_object=$lt_compiler_needs_object
16739
16740 # Create an old-style archive from a shared archive.
16741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16742
16743 # Create a temporary old-style archive to link instead of a shared archive.
16744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16745
16746 # Commands used to build a shared archive.
16747 archive_cmds=$lt_archive_cmds
16748 archive_expsym_cmds=$lt_archive_expsym_cmds
16749
16750 # Commands used to build a loadable module if different from building
16751 # a shared archive.
16752 module_cmds=$lt_module_cmds
16753 module_expsym_cmds=$lt_module_expsym_cmds
16754
16755 # Whether we are building with GNU ld or not.
16756 with_gnu_ld=$lt_with_gnu_ld
16757
16758 # Flag that allows shared libraries with undefined symbols to be built.
16759 allow_undefined_flag=$lt_allow_undefined_flag
16760
16761 # Flag that enforces no undefined symbols.
16762 no_undefined_flag=$lt_no_undefined_flag
16763
16764 # Flag to hardcode \$libdir into a binary during linking.
16765 # This must work even if \$libdir does not exist
16766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16767
16768 # If ld is used when linking, flag to hardcode \$libdir into a binary
16769 # during linking.  This must work even if \$libdir does not exist.
16770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16771
16772 # Whether we need a single "-rpath" flag with a separated argument.
16773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16774
16775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16776 # DIR into the resulting binary.
16777 hardcode_direct=$hardcode_direct
16778
16779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16780 # DIR into the resulting binary and the resulting library dependency is
16781 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16782 # library is relocated.
16783 hardcode_direct_absolute=$hardcode_direct_absolute
16784
16785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16786 # into the resulting binary.
16787 hardcode_minus_L=$hardcode_minus_L
16788
16789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16790 # into the resulting binary.
16791 hardcode_shlibpath_var=$hardcode_shlibpath_var
16792
16793 # Set to "yes" if building a shared library automatically hardcodes DIR
16794 # into the library and all subsequent libraries and executables linked
16795 # against it.
16796 hardcode_automatic=$hardcode_automatic
16797
16798 # Set to yes if linker adds runtime paths of dependent libraries
16799 # to runtime path list.
16800 inherit_rpath=$inherit_rpath
16801
16802 # Whether libtool must link a program against all its dependency libraries.
16803 link_all_deplibs=$link_all_deplibs
16804
16805 # Fix the shell variable \$srcfile for the compiler.
16806 fix_srcfile_path=$lt_fix_srcfile_path
16807
16808 # Set to "yes" if exported symbols are required.
16809 always_export_symbols=$always_export_symbols
16810
16811 # The commands to list exported symbols.
16812 export_symbols_cmds=$lt_export_symbols_cmds
16813
16814 # Symbols that should not be listed in the preloaded symbols.
16815 exclude_expsyms=$lt_exclude_expsyms
16816
16817 # Symbols that must always be exported.
16818 include_expsyms=$lt_include_expsyms
16819
16820 # Commands necessary for linking programs (against libraries) with templates.
16821 prelink_cmds=$lt_prelink_cmds
16822
16823 # Specify filename containing input files.
16824 file_list_spec=$lt_file_list_spec
16825
16826 # How to hardcode a shared library path into an executable.
16827 hardcode_action=$hardcode_action
16828
16829 # ### END LIBTOOL CONFIG
16830
16831 _LT_EOF
16832
16833   case $host_os in
16834   aix3*)
16835     cat <<\_LT_EOF >> "$cfgfile"
16836 # AIX sometimes has problems with the GCC collect2 program.  For some
16837 # reason, if we set the COLLECT_NAMES environment variable, the problems
16838 # vanish in a puff of smoke.
16839 if test "X${COLLECT_NAMES+set}" != Xset; then
16840   COLLECT_NAMES=
16841   export COLLECT_NAMES
16842 fi
16843 _LT_EOF
16844     ;;
16845   esac
16846
16847
16848 ltmain="$ac_aux_dir/ltmain.sh"
16849
16850
16851   # We use sed instead of cat because bash on DJGPP gets confused if
16852   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16853   # text mode, it properly converts lines to CR/LF.  This bash problem
16854   # is reportedly fixed, but why not run on old versions too?
16855   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16856     || (rm -f "$cfgfile"; exit 1)
16857
16858   case $xsi_shell in
16859   yes)
16860     cat << \_LT_EOF >> "$cfgfile"
16861
16862 # func_dirname file append nondir_replacement
16863 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16864 # otherwise set result to NONDIR_REPLACEMENT.
16865 func_dirname ()
16866 {
16867   case ${1} in
16868     */*) func_dirname_result="${1%/*}${2}" ;;
16869     *  ) func_dirname_result="${3}" ;;
16870   esac
16871 }
16872
16873 # func_basename file
16874 func_basename ()
16875 {
16876   func_basename_result="${1##*/}"
16877 }
16878
16879 # func_dirname_and_basename file append nondir_replacement
16880 # perform func_basename and func_dirname in a single function
16881 # call:
16882 #   dirname:  Compute the dirname of FILE.  If nonempty,
16883 #             add APPEND to the result, otherwise set result
16884 #             to NONDIR_REPLACEMENT.
16885 #             value returned in "$func_dirname_result"
16886 #   basename: Compute filename of FILE.
16887 #             value retuned in "$func_basename_result"
16888 # Implementation must be kept synchronized with func_dirname
16889 # and func_basename. For efficiency, we do not delegate to
16890 # those functions but instead duplicate the functionality here.
16891 func_dirname_and_basename ()
16892 {
16893   case ${1} in
16894     */*) func_dirname_result="${1%/*}${2}" ;;
16895     *  ) func_dirname_result="${3}" ;;
16896   esac
16897   func_basename_result="${1##*/}"
16898 }
16899
16900 # func_stripname prefix suffix name
16901 # strip PREFIX and SUFFIX off of NAME.
16902 # PREFIX and SUFFIX must not contain globbing or regex special
16903 # characters, hashes, percent signs, but SUFFIX may contain a leading
16904 # dot (in which case that matches only a dot).
16905 func_stripname ()
16906 {
16907   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16908   # positional parameters, so assign one to ordinary parameter first.
16909   func_stripname_result=${3}
16910   func_stripname_result=${func_stripname_result#"${1}"}
16911   func_stripname_result=${func_stripname_result%"${2}"}
16912 }
16913
16914 # func_opt_split
16915 func_opt_split ()
16916 {
16917   func_opt_split_opt=${1%%=*}
16918   func_opt_split_arg=${1#*=}
16919 }
16920
16921 # func_lo2o object
16922 func_lo2o ()
16923 {
16924   case ${1} in
16925     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16926     *)    func_lo2o_result=${1} ;;
16927   esac
16928 }
16929
16930 # func_xform libobj-or-source
16931 func_xform ()
16932 {
16933   func_xform_result=${1%.*}.lo
16934 }
16935
16936 # func_arith arithmetic-term...
16937 func_arith ()
16938 {
16939   func_arith_result=$(( $* ))
16940 }
16941
16942 # func_len string
16943 # STRING may not start with a hyphen.
16944 func_len ()
16945 {
16946   func_len_result=${#1}
16947 }
16948
16949 _LT_EOF
16950     ;;
16951   *) # Bourne compatible functions.
16952     cat << \_LT_EOF >> "$cfgfile"
16953
16954 # func_dirname file append nondir_replacement
16955 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16956 # otherwise set result to NONDIR_REPLACEMENT.
16957 func_dirname ()
16958 {
16959   # Extract subdirectory from the argument.
16960   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16961   if test "X$func_dirname_result" = "X${1}"; then
16962     func_dirname_result="${3}"
16963   else
16964     func_dirname_result="$func_dirname_result${2}"
16965   fi
16966 }
16967
16968 # func_basename file
16969 func_basename ()
16970 {
16971   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16972 }
16973
16974
16975 # func_stripname prefix suffix name
16976 # strip PREFIX and SUFFIX off of NAME.
16977 # PREFIX and SUFFIX must not contain globbing or regex special
16978 # characters, hashes, percent signs, but SUFFIX may contain a leading
16979 # dot (in which case that matches only a dot).
16980 # func_strip_suffix prefix name
16981 func_stripname ()
16982 {
16983   case ${2} in
16984     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16985     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16986   esac
16987 }
16988
16989 # sed scripts:
16990 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16991 my_sed_long_arg='1s/^-[^=]*=//'
16992
16993 # func_opt_split
16994 func_opt_split ()
16995 {
16996   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16997   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16998 }
16999
17000 # func_lo2o object
17001 func_lo2o ()
17002 {
17003   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17004 }
17005
17006 # func_xform libobj-or-source
17007 func_xform ()
17008 {
17009   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17010 }
17011
17012 # func_arith arithmetic-term...
17013 func_arith ()
17014 {
17015   func_arith_result=`expr "$@"`
17016 }
17017
17018 # func_len string
17019 # STRING may not start with a hyphen.
17020 func_len ()
17021 {
17022   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17023 }
17024
17025 _LT_EOF
17026 esac
17027
17028 case $lt_shell_append in
17029   yes)
17030     cat << \_LT_EOF >> "$cfgfile"
17031
17032 # func_append var value
17033 # Append VALUE to the end of shell variable VAR.
17034 func_append ()
17035 {
17036   eval "$1+=\$2"
17037 }
17038 _LT_EOF
17039     ;;
17040   *)
17041     cat << \_LT_EOF >> "$cfgfile"
17042
17043 # func_append var value
17044 # Append VALUE to the end of shell variable VAR.
17045 func_append ()
17046 {
17047   eval "$1=\$$1\$2"
17048 }
17049
17050 _LT_EOF
17051     ;;
17052   esac
17053
17054
17055   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17056     || (rm -f "$cfgfile"; exit 1)
17057
17058   mv -f "$cfgfile" "$ofile" ||
17059     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17060   chmod +x "$ofile"
17061
17062
17063     cat <<_LT_EOF >> "$ofile"
17064
17065 # ### BEGIN LIBTOOL TAG CONFIG: GO
17066
17067 # The linker used to build libraries.
17068 LD=$lt_LD_GO
17069
17070 # How to create reloadable object files.
17071 reload_flag=$lt_reload_flag_GO
17072 reload_cmds=$lt_reload_cmds_GO
17073
17074 # Commands used to build an old-style archive.
17075 old_archive_cmds=$lt_old_archive_cmds_GO
17076
17077 # A language specific compiler.
17078 CC=$lt_compiler_GO
17079
17080 # Is the compiler the GNU compiler?
17081 with_gcc=$GCC_GO
17082
17083 # Compiler flag to turn off builtin functions.
17084 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17085
17086 # How to pass a linker flag through the compiler.
17087 wl=$lt_lt_prog_compiler_wl_GO
17088
17089 # Additional compiler flags for building library objects.
17090 pic_flag=$lt_lt_prog_compiler_pic_GO
17091
17092 # Compiler flag to prevent dynamic linking.
17093 link_static_flag=$lt_lt_prog_compiler_static_GO
17094
17095 # Does compiler simultaneously support -c and -o options?
17096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17097
17098 # Whether or not to add -lc for building shared libraries.
17099 build_libtool_need_lc=$archive_cmds_need_lc_GO
17100
17101 # Whether or not to disallow shared libs when runtime libs are static.
17102 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17103
17104 # Compiler flag to allow reflexive dlopens.
17105 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17106
17107 # Compiler flag to generate shared objects directly from archives.
17108 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17109
17110 # Whether the compiler copes with passing no objects directly.
17111 compiler_needs_object=$lt_compiler_needs_object_GO
17112
17113 # Create an old-style archive from a shared archive.
17114 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17115
17116 # Create a temporary old-style archive to link instead of a shared archive.
17117 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17118
17119 # Commands used to build a shared archive.
17120 archive_cmds=$lt_archive_cmds_GO
17121 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17122
17123 # Commands used to build a loadable module if different from building
17124 # a shared archive.
17125 module_cmds=$lt_module_cmds_GO
17126 module_expsym_cmds=$lt_module_expsym_cmds_GO
17127
17128 # Whether we are building with GNU ld or not.
17129 with_gnu_ld=$lt_with_gnu_ld_GO
17130
17131 # Flag that allows shared libraries with undefined symbols to be built.
17132 allow_undefined_flag=$lt_allow_undefined_flag_GO
17133
17134 # Flag that enforces no undefined symbols.
17135 no_undefined_flag=$lt_no_undefined_flag_GO
17136
17137 # Flag to hardcode \$libdir into a binary during linking.
17138 # This must work even if \$libdir does not exist
17139 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17140
17141 # If ld is used when linking, flag to hardcode \$libdir into a binary
17142 # during linking.  This must work even if \$libdir does not exist.
17143 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17144
17145 # Whether we need a single "-rpath" flag with a separated argument.
17146 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17147
17148 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17149 # DIR into the resulting binary.
17150 hardcode_direct=$hardcode_direct_GO
17151
17152 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17153 # DIR into the resulting binary and the resulting library dependency is
17154 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17155 # library is relocated.
17156 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17157
17158 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17159 # into the resulting binary.
17160 hardcode_minus_L=$hardcode_minus_L_GO
17161
17162 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17163 # into the resulting binary.
17164 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17165
17166 # Set to "yes" if building a shared library automatically hardcodes DIR
17167 # into the library and all subsequent libraries and executables linked
17168 # against it.
17169 hardcode_automatic=$hardcode_automatic_GO
17170
17171 # Set to yes if linker adds runtime paths of dependent libraries
17172 # to runtime path list.
17173 inherit_rpath=$inherit_rpath_GO
17174
17175 # Whether libtool must link a program against all its dependency libraries.
17176 link_all_deplibs=$link_all_deplibs_GO
17177
17178 # Fix the shell variable \$srcfile for the compiler.
17179 fix_srcfile_path=$lt_fix_srcfile_path_GO
17180
17181 # Set to "yes" if exported symbols are required.
17182 always_export_symbols=$always_export_symbols_GO
17183
17184 # The commands to list exported symbols.
17185 export_symbols_cmds=$lt_export_symbols_cmds_GO
17186
17187 # Symbols that should not be listed in the preloaded symbols.
17188 exclude_expsyms=$lt_exclude_expsyms_GO
17189
17190 # Symbols that must always be exported.
17191 include_expsyms=$lt_include_expsyms_GO
17192
17193 # Commands necessary for linking programs (against libraries) with templates.
17194 prelink_cmds=$lt_prelink_cmds_GO
17195
17196 # Specify filename containing input files.
17197 file_list_spec=$lt_file_list_spec_GO
17198
17199 # How to hardcode a shared library path into an executable.
17200 hardcode_action=$hardcode_action_GO
17201
17202 # ### END LIBTOOL TAG CONFIG: GO
17203 _LT_EOF
17204
17205  ;;
17206     "default":C) if test -n "$CONFIG_FILES"; then
17207    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17208    # that multilib installs will end up installed in the correct place.
17209    # The testsuite needs it for multilib-aware ABI baseline files.
17210    # To work around this not being passed down from config-ml.in ->
17211    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17212    # append it here.  Only modify Makefiles that have just been created.
17213    #
17214    # Also, get rid of this simulated-VPATH thing that automake does.
17215    cat > vpsed << \_EOF
17216 s!`test -f '$<' || echo '$(srcdir)/'`!!
17217 _EOF
17218    for i in $SUBDIRS; do
17219     case $CONFIG_FILES in
17220      *${i}/Makefile*)
17221        #echo "Adding MULTISUBDIR to $i/Makefile"
17222        sed -f vpsed $i/Makefile > tmp
17223        grep '^MULTISUBDIR =' Makefile >> tmp
17224        mv tmp $i/Makefile
17225        ;;
17226     esac
17227    done
17228    rm vpsed
17229  fi
17230  ;;
17231
17232   esac
17233 done # for ac_tag
17234
17235
17236 as_fn_exit 0
17237 _ACEOF
17238 ac_clean_files=$ac_clean_files_save
17239
17240 test $ac_write_fail = 0 ||
17241   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17242
17243
17244 # configure is writing to config.log, and then calls config.status.
17245 # config.status does its own redirection, appending to config.log.
17246 # Unfortunately, on DOS this fails, as config.log is still kept open
17247 # by configure, so config.status won't be able to write to it; its
17248 # output is simply discarded.  So we exec the FD to /dev/null,
17249 # effectively closing config.log, so it can be properly (re)opened and
17250 # appended to by config.status.  When coming back to configure, we
17251 # need to make the FD available again.
17252 if test "$no_create" != yes; then
17253   ac_cs_success=:
17254   ac_config_status_args=
17255   test "$silent" = yes &&
17256     ac_config_status_args="$ac_config_status_args --quiet"
17257   exec 5>/dev/null
17258   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17259   exec 5>>config.log
17260   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17261   # would make configure fail if this is the last instruction.
17262   $ac_cs_success || as_fn_exit $?
17263 fi
17264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17265   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17266 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17267 fi
17268