OSDN Git Service

Check for -pthread and -lpthread at configure time.
[pf3gnuchains/gcc-fork.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 USING_SPLIT_STACK_FALSE
611 USING_SPLIT_STACK_TRUE
612 SPLIT_STACK
613 LIBGO_IS_ARM_FALSE
614 LIBGO_IS_ARM_TRUE
615 LIBGO_IS_X86_64_FALSE
616 LIBGO_IS_X86_64_TRUE
617 LIBGO_IS_386_FALSE
618 LIBGO_IS_386_TRUE
619 LIBGO_IS_RTEMS_FALSE
620 LIBGO_IS_RTEMS_TRUE
621 LIBGO_IS_LINUX_FALSE
622 LIBGO_IS_LINUX_TRUE
623 LIBGO_IS_FREEBSD_FALSE
624 LIBGO_IS_FREEBSD_TRUE
625 LIBGO_IS_DARWIN_FALSE
626 LIBGO_IS_DARWIN_TRUE
627 LIBFFIINCS
628 LIBFFI
629 glibgo_toolexeclibdir
630 glibgo_toolexecdir
631 glibgo_prefixdir
632 WERROR
633 WARN_FLAGS
634 enable_static
635 enable_shared
636 CPP
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 AR
643 OBJDUMP
644 LN_S
645 NM
646 ac_ct_DUMPBIN
647 DUMPBIN
648 LIBTOOL
649 OBJCOPY
650 RANLIB
651 LD
652 FGREP
653 EGREP
654 GREP
655 SED
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 GOCFLAGS
660 GOC
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 am__untar
678 am__tar
679 AMTAR
680 am__leading_dot
681 SET_MAKE
682 AWK
683 mkdir_p
684 MKDIR_P
685 INSTALL_STRIP_PROGRAM
686 STRIP
687 install_sh
688 MAKEINFO
689 AUTOHEADER
690 AUTOMAKE
691 AUTOCONF
692 ACLOCAL
693 VERSION
694 PACKAGE
695 CYGPATH_W
696 am__isrc
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 target_os
701 target_vendor
702 target_cpu
703 target
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 multi_basedir
713 libtool_VERSION
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_multilib
756 enable_dependency_tracking
757 enable_maintainer_mode
758 with_gnu_ld
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 enable_libtool_lock
764 enable_version_specific_runtime_libs
765 with_libffi
766 with_system_libunwind
767 '
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CPP
772 CPPFLAGS'
773
774
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
796
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
822
823 ac_prev=
824 ac_dashdash=
825 for ac_option
826 do
827   # If the previous option needs an argument, assign it.
828   if test -n "$ac_prev"; then
829     eval $ac_prev=\$ac_option
830     ac_prev=
831     continue
832   fi
833
834   case $ac_option in
835   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836   *)    ac_optarg=yes ;;
837   esac
838
839   # Accept the important Cygnus configure options, so we can diagnose typos.
840
841   case $ac_dashdash$ac_option in
842   --)
843     ac_dashdash=yes ;;
844
845   -bindir | --bindir | --bindi | --bind | --bin | --bi)
846     ac_prev=bindir ;;
847   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848     bindir=$ac_optarg ;;
849
850   -build | --build | --buil | --bui | --bu)
851     ac_prev=build_alias ;;
852   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853     build_alias=$ac_optarg ;;
854
855   -cache-file | --cache-file | --cache-fil | --cache-fi \
856   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857     ac_prev=cache_file ;;
858   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860     cache_file=$ac_optarg ;;
861
862   --config-cache | -C)
863     cache_file=config.cache ;;
864
865   -datadir | --datadir | --datadi | --datad)
866     ac_prev=datadir ;;
867   -datadir=* | --datadir=* | --datadi=* | --datad=*)
868     datadir=$ac_optarg ;;
869
870   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871   | --dataroo | --dataro | --datar)
872     ac_prev=datarootdir ;;
873   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875     datarootdir=$ac_optarg ;;
876
877   -disable-* | --disable-*)
878     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879     # Reject names that are not valid shell variable names.
880     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881       as_fn_error "invalid feature name: $ac_useropt"
882     ac_useropt_orig=$ac_useropt
883     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884     case $ac_user_opts in
885       *"
886 "enable_$ac_useropt"
887 "*) ;;
888       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889          ac_unrecognized_sep=', ';;
890     esac
891     eval enable_$ac_useropt=no ;;
892
893   -docdir | --docdir | --docdi | --doc | --do)
894     ac_prev=docdir ;;
895   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896     docdir=$ac_optarg ;;
897
898   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899     ac_prev=dvidir ;;
900   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901     dvidir=$ac_optarg ;;
902
903   -enable-* | --enable-*)
904     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905     # Reject names that are not valid shell variable names.
906     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907       as_fn_error "invalid feature name: $ac_useropt"
908     ac_useropt_orig=$ac_useropt
909     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910     case $ac_user_opts in
911       *"
912 "enable_$ac_useropt"
913 "*) ;;
914       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915          ac_unrecognized_sep=', ';;
916     esac
917     eval enable_$ac_useropt=\$ac_optarg ;;
918
919   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921   | --exec | --exe | --ex)
922     ac_prev=exec_prefix ;;
923   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925   | --exec=* | --exe=* | --ex=*)
926     exec_prefix=$ac_optarg ;;
927
928   -gas | --gas | --ga | --g)
929     # Obsolete; use --with-gas.
930     with_gas=yes ;;
931
932   -help | --help | --hel | --he | -h)
933     ac_init_help=long ;;
934   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935     ac_init_help=recursive ;;
936   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937     ac_init_help=short ;;
938
939   -host | --host | --hos | --ho)
940     ac_prev=host_alias ;;
941   -host=* | --host=* | --hos=* | --ho=*)
942     host_alias=$ac_optarg ;;
943
944   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945     ac_prev=htmldir ;;
946   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947   | --ht=*)
948     htmldir=$ac_optarg ;;
949
950   -includedir | --includedir | --includedi | --included | --include \
951   | --includ | --inclu | --incl | --inc)
952     ac_prev=includedir ;;
953   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954   | --includ=* | --inclu=* | --incl=* | --inc=*)
955     includedir=$ac_optarg ;;
956
957   -infodir | --infodir | --infodi | --infod | --info | --inf)
958     ac_prev=infodir ;;
959   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960     infodir=$ac_optarg ;;
961
962   -libdir | --libdir | --libdi | --libd)
963     ac_prev=libdir ;;
964   -libdir=* | --libdir=* | --libdi=* | --libd=*)
965     libdir=$ac_optarg ;;
966
967   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968   | --libexe | --libex | --libe)
969     ac_prev=libexecdir ;;
970   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971   | --libexe=* | --libex=* | --libe=*)
972     libexecdir=$ac_optarg ;;
973
974   -localedir | --localedir | --localedi | --localed | --locale)
975     ac_prev=localedir ;;
976   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977     localedir=$ac_optarg ;;
978
979   -localstatedir | --localstatedir | --localstatedi | --localstated \
980   | --localstate | --localstat | --localsta | --localst | --locals)
981     ac_prev=localstatedir ;;
982   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984     localstatedir=$ac_optarg ;;
985
986   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987     ac_prev=mandir ;;
988   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989     mandir=$ac_optarg ;;
990
991   -nfp | --nfp | --nf)
992     # Obsolete; use --without-fp.
993     with_fp=no ;;
994
995   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996   | --no-cr | --no-c | -n)
997     no_create=yes ;;
998
999   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001     no_recursion=yes ;;
1002
1003   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005   | --oldin | --oldi | --old | --ol | --o)
1006     ac_prev=oldincludedir ;;
1007   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010     oldincludedir=$ac_optarg ;;
1011
1012   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013     ac_prev=prefix ;;
1014   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015     prefix=$ac_optarg ;;
1016
1017   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018   | --program-pre | --program-pr | --program-p)
1019     ac_prev=program_prefix ;;
1020   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022     program_prefix=$ac_optarg ;;
1023
1024   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025   | --program-suf | --program-su | --program-s)
1026     ac_prev=program_suffix ;;
1027   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029     program_suffix=$ac_optarg ;;
1030
1031   -program-transform-name | --program-transform-name \
1032   | --program-transform-nam | --program-transform-na \
1033   | --program-transform-n | --program-transform- \
1034   | --program-transform | --program-transfor \
1035   | --program-transfo | --program-transf \
1036   | --program-trans | --program-tran \
1037   | --progr-tra | --program-tr | --program-t)
1038     ac_prev=program_transform_name ;;
1039   -program-transform-name=* | --program-transform-name=* \
1040   | --program-transform-nam=* | --program-transform-na=* \
1041   | --program-transform-n=* | --program-transform-=* \
1042   | --program-transform=* | --program-transfor=* \
1043   | --program-transfo=* | --program-transf=* \
1044   | --program-trans=* | --program-tran=* \
1045   | --progr-tra=* | --program-tr=* | --program-t=*)
1046     program_transform_name=$ac_optarg ;;
1047
1048   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049     ac_prev=pdfdir ;;
1050   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051     pdfdir=$ac_optarg ;;
1052
1053   -psdir | --psdir | --psdi | --psd | --ps)
1054     ac_prev=psdir ;;
1055   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056     psdir=$ac_optarg ;;
1057
1058   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059   | -silent | --silent | --silen | --sile | --sil)
1060     silent=yes ;;
1061
1062   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063     ac_prev=sbindir ;;
1064   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065   | --sbi=* | --sb=*)
1066     sbindir=$ac_optarg ;;
1067
1068   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070   | --sharedst | --shareds | --shared | --share | --shar \
1071   | --sha | --sh)
1072     ac_prev=sharedstatedir ;;
1073   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076   | --sha=* | --sh=*)
1077     sharedstatedir=$ac_optarg ;;
1078
1079   -site | --site | --sit)
1080     ac_prev=site ;;
1081   -site=* | --site=* | --sit=*)
1082     site=$ac_optarg ;;
1083
1084   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085     ac_prev=srcdir ;;
1086   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087     srcdir=$ac_optarg ;;
1088
1089   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090   | --syscon | --sysco | --sysc | --sys | --sy)
1091     ac_prev=sysconfdir ;;
1092   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094     sysconfdir=$ac_optarg ;;
1095
1096   -target | --target | --targe | --targ | --tar | --ta | --t)
1097     ac_prev=target_alias ;;
1098   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099     target_alias=$ac_optarg ;;
1100
1101   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102     verbose=yes ;;
1103
1104   -version | --version | --versio | --versi | --vers | -V)
1105     ac_init_version=: ;;
1106
1107   -with-* | --with-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error "invalid package name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=\$ac_optarg ;;
1122
1123   -without-* | --without-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       as_fn_error "invalid package name: $ac_useropt"
1128     ac_useropt_orig=$ac_useropt
1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130     case $ac_user_opts in
1131       *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135          ac_unrecognized_sep=', ';;
1136     esac
1137     eval with_$ac_useropt=no ;;
1138
1139   --x)
1140     # Obsolete; use --with-x.
1141     with_x=yes ;;
1142
1143   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144   | --x-incl | --x-inc | --x-in | --x-i)
1145     ac_prev=x_includes ;;
1146   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148     x_includes=$ac_optarg ;;
1149
1150   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152     ac_prev=x_libraries ;;
1153   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155     x_libraries=$ac_optarg ;;
1156
1157   -*) as_fn_error "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information."
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     case $ac_envvar in #(
1165       '' | [0-9]* | *[!_$as_cr_alnum]* )
1166       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1167     esac
1168     eval $ac_envvar=\$ac_optarg
1169     export $ac_envvar ;;
1170
1171   *)
1172     # FIXME: should be removed in autoconf 3.0.
1173     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177     ;;
1178
1179   esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184   as_fn_error "missing argument to $ac_option"
1185 fi
1186
1187 if test -n "$ac_unrecognized_opts"; then
1188   case $enable_option_checking in
1189     no) ;;
1190     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1191     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192   esac
1193 fi
1194
1195 # Check all directory arguments for consistency.
1196 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197                 datadir sysconfdir sharedstatedir localstatedir includedir \
1198                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199                 libdir localedir mandir
1200 do
1201   eval ac_val=\$$ac_var
1202   # Remove trailing slashes.
1203   case $ac_val in
1204     */ )
1205       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206       eval $ac_var=\$ac_val;;
1207   esac
1208   # Be sure to have absolute directory names.
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   as_fn_error "working directory cannot be determined"
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245   as_fn_error "pwd does not report name of working directory"
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250   ac_srcdir_defaulted=yes
1251   # Try the directory containing this script, then the parent directory.
1252   ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254          X"$as_myself" : 'X\(//\)[^/]' \| \
1255          X"$as_myself" : 'X\(//\)$' \| \
1256          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)[^/].*/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\).*/{
1271             s//\1/
1272             q
1273           }
1274           s/.*/./; q'`
1275   srcdir=$ac_confdir
1276   if test ! -r "$srcdir/$ac_unique_file"; then
1277     srcdir=..
1278   fi
1279 else
1280   ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1289         pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292   srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_env_${ac_var}_value=\$${ac_var}
1303   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311   # Omit some internal or obsolete options to make the list less imposing.
1312   # This message is too long to be a string in the A/UX 3.1 sh.
1313   cat <<_ACEOF
1314 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE.  See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324   -h, --help              display this help and exit
1325       --help=short        display options specific to this package
1326       --help=recursive    display the short help of all the included packages
1327   -V, --version           display version information and exit
1328   -q, --quiet, --silent   do not print \`checking...' messages
1329       --cache-file=FILE   cache test results in FILE [disabled]
1330   -C, --config-cache      alias for \`--cache-file=config.cache'
1331   -n, --no-create         do not create output files
1332       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335   --prefix=PREFIX         install architecture-independent files in PREFIX
1336                           [$ac_default_prefix]
1337   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1338                           [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348   --bindir=DIR            user executables [EPREFIX/bin]
1349   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1350   --libexecdir=DIR        program executables [EPREFIX/libexec]
1351   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1352   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1353   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1354   --libdir=DIR            object code libraries [EPREFIX/lib]
1355   --includedir=DIR        C header files [PREFIX/include]
1356   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1357   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1358   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1359   --infodir=DIR           info documentation [DATAROOTDIR/info]
1360   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1361   --mandir=DIR            man documentation [DATAROOTDIR/man]
1362   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1363   --htmldir=DIR           html documentation [DOCDIR]
1364   --dvidir=DIR            dvi documentation [DOCDIR]
1365   --pdfdir=DIR            pdf documentation [DOCDIR]
1366   --psdir=DIR             ps documentation [DOCDIR]
1367 _ACEOF
1368
1369   cat <<\_ACEOF
1370
1371 Program names:
1372   --program-prefix=PREFIX            prepend PREFIX to installed program names
1373   --program-suffix=SUFFIX            append SUFFIX to installed program names
1374   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of package-unused version-unused:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-option-checking  ignore unrecognized --enable/--with options
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-multilib       build many library versions (default)
1394   --disable-dependency-tracking  speeds up one-time build
1395   --enable-dependency-tracking   do not reject slow dependency extractors
1396   --enable-maintainer-mode  enable make rules and dependencies not useful
1397                           (and sometimes confusing) to the casual installer
1398   --enable-shared[=PKGS]  build shared libraries [default=yes]
1399   --enable-static[=PKGS]  build static libraries [default=yes]
1400   --enable-fast-install[=PKGS]
1401                           optimize for fast installation [default=yes]
1402   --disable-libtool-lock  avoid locking (might break parallel builds)
1403   --enable-version-specific-runtime-libs
1404                           Specify that runtime libraries should be installed
1405                           in a compiler-specific directory
1406
1407 Optional Packages:
1408   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1411   --with-pic              try to use only PIC/non-PIC objects [default=use
1412                           both]
1413   --without-libffi        don't use libffi
1414   --with-system-libunwind use installed libunwind
1415
1416 Some influential environment variables:
1417   CC          C compiler command
1418   CFLAGS      C compiler flags
1419   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420               nonstandard directory <lib dir>
1421   LIBS        libraries to pass to the linker, e.g. -l<library>
1422   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1423               you have headers in a nonstandard directory <include dir>
1424   GOC         Go compiler command
1425   GOCFLAGS    Go compiler flags
1426   CPP         C preprocessor
1427
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1430
1431 Report bugs to the package provider.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437   # If there are subdirs, report their specific --help.
1438   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439     test -d "$ac_dir" ||
1440       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441       continue
1442     ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448   # A ".." for each directory in $ac_dir_suffix.
1449   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450   case $ac_top_builddir_sub in
1451   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453   esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461   .)  # We are building in place.
1462     ac_srcdir=.
1463     ac_top_srcdir=$ac_top_builddir_sub
1464     ac_abs_top_srcdir=$ac_pwd ;;
1465   [\\/]* | ?:[\\/]* )  # Absolute name.
1466     ac_srcdir=$srcdir$ac_dir_suffix;
1467     ac_top_srcdir=$srcdir
1468     ac_abs_top_srcdir=$srcdir ;;
1469   *) # Relative name.
1470     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471     ac_top_srcdir=$ac_top_build_prefix$srcdir
1472     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476     cd "$ac_dir" || { ac_status=$?; continue; }
1477     # Check for guested configure.
1478     if test -f "$ac_srcdir/configure.gnu"; then
1479       echo &&
1480       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481     elif test -f "$ac_srcdir/configure"; then
1482       echo &&
1483       $SHELL "$ac_srcdir/configure" --help=recursive
1484     else
1485       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486     fi || ac_status=$?
1487     cd "$ac_pwd" || { ac_status=$?; break; }
1488   done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493   cat <<\_ACEOF
1494 package-unused configure version-unused
1495 generated by GNU Autoconf 2.64
1496
1497 Copyright (C) 2009 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501   exit
1502 fi
1503
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1507
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1512 {
1513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514   rm -f conftest.$ac_objext
1515   if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518   *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522   (eval "$ac_compile") 2>conftest.err
1523   ac_status=$?
1524   if test -s conftest.err; then
1525     grep -v '^ *+' conftest.err >conftest.er1
1526     cat conftest.er1 >&5
1527     mv -f conftest.er1 conftest.err
1528   fi
1529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530   test $ac_status = 0; } && {
1531          test -z "$ac_c_werror_flag" ||
1532          test ! -s conftest.err
1533        } && test -s conftest.$ac_objext; then :
1534   ac_retval=0
1535 else
1536   $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539         ac_retval=1
1540 fi
1541   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542   return $ac_retval
1543
1544 } # ac_fn_c_try_compile
1545
1546 # ac_fn_c_try_link LINENO
1547 # -----------------------
1548 # Try to link conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_link ()
1550 {
1551   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552   rm -f conftest.$ac_objext conftest$ac_exeext
1553   if { { ac_try="$ac_link"
1554 case "(($ac_try" in
1555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556   *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560   (eval "$ac_link") 2>conftest.err
1561   ac_status=$?
1562   if test -s conftest.err; then
1563     grep -v '^ *+' conftest.err >conftest.er1
1564     cat conftest.er1 >&5
1565     mv -f conftest.er1 conftest.err
1566   fi
1567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568   test $ac_status = 0; } && {
1569          test -z "$ac_c_werror_flag" ||
1570          test ! -s conftest.err
1571        } && test -s conftest$ac_exeext && {
1572          test "$cross_compiling" = yes ||
1573          $as_test_x conftest$ac_exeext
1574        }; then :
1575   ac_retval=0
1576 else
1577   $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580         ac_retval=1
1581 fi
1582   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1583   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1584   # interfere with the next link command; also delete a directory that is
1585   # left behind by Apple's compiler.  We do this before executing the actions.
1586   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1587   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588   return $ac_retval
1589
1590 } # ac_fn_c_try_link
1591
1592 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1593 # -------------------------------------------------------
1594 # Tests whether HEADER exists and can be compiled using the include files in
1595 # INCLUDES, setting the cache variable VAR accordingly.
1596 ac_fn_c_check_header_compile ()
1597 {
1598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600 $as_echo_n "checking for $2... " >&6; }
1601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1602   $as_echo_n "(cached) " >&6
1603 else
1604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h.  */
1606 $4
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610   eval "$3=yes"
1611 else
1612   eval "$3=no"
1613 fi
1614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 fi
1616 eval ac_res=\$$3
1617                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1619   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620
1621 } # ac_fn_c_check_header_compile
1622
1623 # ac_fn_c_try_cpp LINENO
1624 # ----------------------
1625 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_cpp ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   if { { ac_try="$ac_cpp conftest.$ac_ext"
1630 case "(($ac_try" in
1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632   *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1637   ac_status=$?
1638   if test -s conftest.err; then
1639     grep -v '^ *+' conftest.err >conftest.er1
1640     cat conftest.er1 >&5
1641     mv -f conftest.er1 conftest.err
1642   fi
1643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644   test $ac_status = 0; } >/dev/null && {
1645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1646          test ! -s conftest.err
1647        }; then :
1648   ac_retval=0
1649 else
1650   $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653     ac_retval=1
1654 fi
1655   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656   return $ac_retval
1657
1658 } # ac_fn_c_try_cpp
1659
1660 # ac_fn_c_try_run LINENO
1661 # ----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1663 # that executables *can* be run.
1664 ac_fn_c_try_run ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670   *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674   (eval "$ac_link") 2>&5
1675   ac_status=$?
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1678   { { case "(($ac_try" in
1679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680   *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684   (eval "$ac_try") 2>&5
1685   ac_status=$?
1686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687   test $ac_status = 0; }; }; then :
1688   ac_retval=0
1689 else
1690   $as_echo "$as_me: program exited with status $ac_status" >&5
1691        $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694        ac_retval=$ac_status
1695 fi
1696   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698   return $ac_retval
1699
1700 } # ac_fn_c_try_run
1701
1702 # ac_fn_c_check_func LINENO FUNC VAR
1703 # ----------------------------------
1704 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1705 ac_fn_c_check_func ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711   $as_echo_n "(cached) " >&6
1712 else
1713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1717 #define $2 innocuous_$2
1718
1719 /* System header to define __stub macros and hopefully few prototypes,
1720     which can conflict with char $2 (); below.
1721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1722     <limits.h> exists even on freestanding compilers.  */
1723
1724 #ifdef __STDC__
1725 # include <limits.h>
1726 #else
1727 # include <assert.h>
1728 #endif
1729
1730 #undef $2
1731
1732 /* Override any GCC internal prototype to avoid an error.
1733    Use char because int might match the return type of a GCC
1734    builtin and then its argument prototype would still apply.  */
1735 #ifdef __cplusplus
1736 extern "C"
1737 #endif
1738 char $2 ();
1739 /* The GNU C library defines this for functions which it implements
1740     to always fail with ENOSYS.  Some functions are actually named
1741     something starting with __ and the normal name is an alias.  */
1742 #if defined __stub_$2 || defined __stub___$2
1743 choke me
1744 #endif
1745
1746 int
1747 main ()
1748 {
1749 return $2 ();
1750   ;
1751   return 0;
1752 }
1753 _ACEOF
1754 if ac_fn_c_try_link "$LINENO"; then :
1755   eval "$3=yes"
1756 else
1757   eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext \
1760     conftest$ac_exeext conftest.$ac_ext
1761 fi
1762 eval ac_res=\$$3
1763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766
1767 } # ac_fn_c_check_func
1768
1769 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772 # the include files in INCLUDES and setting the cache variable VAR
1773 # accordingly.
1774 ac_fn_c_check_header_mongrel ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781   $as_echo_n "(cached) " >&6
1782 fi
1783 eval ac_res=\$$3
1784                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 else
1787   # Is the header compilable?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789 $as_echo_n "checking $2 usability... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h.  */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796   ac_header_compiler=yes
1797 else
1798   ac_header_compiler=no
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802 $as_echo "$ac_header_compiler" >&6; }
1803
1804 # Is the header present?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806 $as_echo_n "checking $2 presence... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_cpp "$LINENO"; then :
1812   ac_header_preproc=yes
1813 else
1814   ac_header_preproc=no
1815 fi
1816 rm -f conftest.err conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818 $as_echo "$ac_header_preproc" >&6; }
1819
1820 # So?  What about this header?
1821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822   yes:no: )
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827     ;;
1828   no:yes:* )
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1832 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1836 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839     ;;
1840 esac
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   eval "$3=\$ac_header_compiler"
1847 fi
1848 eval ac_res=\$$3
1849                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 fi
1852   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
1854 } # ac_fn_c_check_header_mongrel
1855
1856 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1857 # -------------------------------------------
1858 # Tests whether TYPE exists after having included INCLUDES, setting cache
1859 # variable VAR accordingly.
1860 ac_fn_c_check_type ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866   $as_echo_n "(cached) " >&6
1867 else
1868   eval "$3=no"
1869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h.  */
1871 $4
1872 int
1873 main ()
1874 {
1875 if (sizeof ($2))
1876          return 0;
1877   ;
1878   return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 $4
1885 int
1886 main ()
1887 {
1888 if (sizeof (($2)))
1889             return 0;
1890   ;
1891   return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895
1896 else
1897   eval "$3=yes"
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
1908 } # ac_fn_c_check_type
1909 cat >config.log <<_ACEOF
1910 This file contains any messages produced by compilers while
1911 running configure, to aid debugging if configure makes a mistake.
1912
1913 It was created by package-unused $as_me version-unused, which was
1914 generated by GNU Autoconf 2.64.  Invocation command line was
1915
1916   $ $0 $@
1917
1918 _ACEOF
1919 exec 5>>config.log
1920 {
1921 cat <<_ASUNAME
1922 ## --------- ##
1923 ## Platform. ##
1924 ## --------- ##
1925
1926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1934
1935 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1936 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1939 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1940 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1941 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1942
1943 _ASUNAME
1944
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948   IFS=$as_save_IFS
1949   test -z "$as_dir" && as_dir=.
1950     $as_echo "PATH: $as_dir"
1951   done
1952 IFS=$as_save_IFS
1953
1954 } >&5
1955
1956 cat >&5 <<_ACEOF
1957
1958
1959 ## ----------- ##
1960 ## Core tests. ##
1961 ## ----------- ##
1962
1963 _ACEOF
1964
1965
1966 # Keep a trace of the command line.
1967 # Strip out --no-create and --no-recursion so they do not pile up.
1968 # Strip out --silent because we don't want to record it for future runs.
1969 # Also quote any args containing shell meta-characters.
1970 # Make two passes to allow for proper duplicate-argument suppression.
1971 ac_configure_args=
1972 ac_configure_args0=
1973 ac_configure_args1=
1974 ac_must_keep_next=false
1975 for ac_pass in 1 2
1976 do
1977   for ac_arg
1978   do
1979     case $ac_arg in
1980     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982     | -silent | --silent | --silen | --sile | --sil)
1983       continue ;;
1984     *\'*)
1985       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986     esac
1987     case $ac_pass in
1988     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989     2)
1990       as_fn_append ac_configure_args1 " '$ac_arg'"
1991       if test $ac_must_keep_next = true; then
1992         ac_must_keep_next=false # Got value, back to normal.
1993       else
1994         case $ac_arg in
1995           *=* | --config-cache | -C | -disable-* | --disable-* \
1996           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998           | -with-* | --with-* | -without-* | --without-* | --x)
1999             case "$ac_configure_args0 " in
2000               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001             esac
2002             ;;
2003           -* ) ac_must_keep_next=true ;;
2004         esac
2005       fi
2006       as_fn_append ac_configure_args " '$ac_arg'"
2007       ;;
2008     esac
2009   done
2010 done
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
2013
2014 # When interrupted or exit'd, cleanup temporary files, and complete
2015 # config.log.  We remove comments because anyway the quotes in there
2016 # would cause problems or look ugly.
2017 # WARNING: Use '\'' to represent an apostrophe within the trap.
2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019 trap 'exit_status=$?
2020   # Save into config.log some information that might help in debugging.
2021   {
2022     echo
2023
2024     cat <<\_ASBOX
2025 ## ---------------- ##
2026 ## Cache variables. ##
2027 ## ---------------- ##
2028 _ASBOX
2029     echo
2030     # The following way of writing the cache mishandles newlines in values,
2031 (
2032   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2033     eval ac_val=\$$ac_var
2034     case $ac_val in #(
2035     *${as_nl}*)
2036       case $ac_var in #(
2037       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2039       esac
2040       case $ac_var in #(
2041       _ | IFS | as_nl) ;; #(
2042       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043       *) { eval $ac_var=; unset $ac_var;} ;;
2044       esac ;;
2045     esac
2046   done
2047   (set) 2>&1 |
2048     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049     *${as_nl}ac_space=\ *)
2050       sed -n \
2051         "s/'\''/'\''\\\\'\'''\''/g;
2052           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2053       ;; #(
2054     *)
2055       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056       ;;
2057     esac |
2058     sort
2059 )
2060     echo
2061
2062     cat <<\_ASBOX
2063 ## ----------------- ##
2064 ## Output variables. ##
2065 ## ----------------- ##
2066 _ASBOX
2067     echo
2068     for ac_var in $ac_subst_vars
2069     do
2070       eval ac_val=\$$ac_var
2071       case $ac_val in
2072       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2073       esac
2074       $as_echo "$ac_var='\''$ac_val'\''"
2075     done | sort
2076     echo
2077
2078     if test -n "$ac_subst_files"; then
2079       cat <<\_ASBOX
2080 ## ------------------- ##
2081 ## File substitutions. ##
2082 ## ------------------- ##
2083 _ASBOX
2084       echo
2085       for ac_var in $ac_subst_files
2086       do
2087         eval ac_val=\$$ac_var
2088         case $ac_val in
2089         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090         esac
2091         $as_echo "$ac_var='\''$ac_val'\''"
2092       done | sort
2093       echo
2094     fi
2095
2096     if test -s confdefs.h; then
2097       cat <<\_ASBOX
2098 ## ----------- ##
2099 ## confdefs.h. ##
2100 ## ----------- ##
2101 _ASBOX
2102       echo
2103       cat confdefs.h
2104       echo
2105     fi
2106     test "$ac_signal" != 0 &&
2107       $as_echo "$as_me: caught signal $ac_signal"
2108     $as_echo "$as_me: exit $exit_status"
2109   } >&5
2110   rm -f core *.core core.conftest.* &&
2111     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112     exit $exit_status
2113 ' 0
2114 for ac_signal in 1 2 13 15; do
2115   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116 done
2117 ac_signal=0
2118
2119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2120 rm -f -r conftest* confdefs.h
2121
2122 $as_echo "/* confdefs.h */" > confdefs.h
2123
2124 # Predefined preprocessor variables.
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_NAME "$PACKAGE_NAME"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_STRING "$PACKAGE_STRING"
2140 _ACEOF
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_URL "$PACKAGE_URL"
2148 _ACEOF
2149
2150
2151 # Let the site file select an alternate cache file if it wants to.
2152 # Prefer an explicitly selected file to automatically selected ones.
2153 ac_site_file1=NONE
2154 ac_site_file2=NONE
2155 if test -n "$CONFIG_SITE"; then
2156   ac_site_file1=$CONFIG_SITE
2157 elif test "x$prefix" != xNONE; then
2158   ac_site_file1=$prefix/share/config.site
2159   ac_site_file2=$prefix/etc/config.site
2160 else
2161   ac_site_file1=$ac_default_prefix/share/config.site
2162   ac_site_file2=$ac_default_prefix/etc/config.site
2163 fi
2164 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2165 do
2166   test "x$ac_site_file" = xNONE && continue
2167   if test -r "$ac_site_file"; then
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2169 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2170     sed 's/^/| /' "$ac_site_file" >&5
2171     . "$ac_site_file"
2172   fi
2173 done
2174
2175 if test -r "$cache_file"; then
2176   # Some versions of bash will fail to source /dev/null (special
2177   # files actually), so we avoid doing that.
2178   if test -f "$cache_file"; then
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 $as_echo "$as_me: loading cache $cache_file" >&6;}
2181     case $cache_file in
2182       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183       *)                      . "./$cache_file";;
2184     esac
2185   fi
2186 else
2187   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 $as_echo "$as_me: creating cache $cache_file" >&6;}
2189   >$cache_file
2190 fi
2191
2192 # Check that the precious variables saved in the cache have kept the same
2193 # value.
2194 ac_cache_corrupted=false
2195 for ac_var in $ac_precious_vars; do
2196   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197   eval ac_new_set=\$ac_env_${ac_var}_set
2198   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199   eval ac_new_val=\$ac_env_${ac_var}_value
2200   case $ac_old_set,$ac_new_set in
2201     set,)
2202       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204       ac_cache_corrupted=: ;;
2205     ,set)
2206       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208       ac_cache_corrupted=: ;;
2209     ,);;
2210     *)
2211       if test "x$ac_old_val" != "x$ac_new_val"; then
2212         # differences in whitespace do not lead to failure.
2213         ac_old_val_w=`echo x $ac_old_val`
2214         ac_new_val_w=`echo x $ac_new_val`
2215         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218           ac_cache_corrupted=:
2219         else
2220           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222           eval $ac_var=\$ac_old_val
2223         fi
2224         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2225 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2226         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2227 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2228       fi;;
2229   esac
2230   # Pass precious variables to config.status.
2231   if test "$ac_new_set" = set; then
2232     case $ac_new_val in
2233     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234     *) ac_arg=$ac_var=$ac_new_val ;;
2235     esac
2236     case " $ac_configure_args " in
2237       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2238       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2239     esac
2240   fi
2241 done
2242 if $ac_cache_corrupted; then
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2248 fi
2249 ## -------------------- ##
2250 ## Main body of script. ##
2251 ## -------------------- ##
2252
2253 ac_ext=c
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2258
2259
2260
2261
2262
2263
2264 ac_config_headers="$ac_config_headers config.h"
2265
2266
2267 libtool_VERSION=1:0:0
2268
2269
2270 # Default to --enable-multilib
2271 # Check whether --enable-multilib was given.
2272 if test "${enable_multilib+set}" = set; then :
2273   enableval=$enable_multilib; case "$enableval" in
2274   yes) multilib=yes ;;
2275   no)  multilib=no ;;
2276   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2277  esac
2278 else
2279   multilib=yes
2280 fi
2281
2282
2283 # We may get other options which we leave undocumented:
2284 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2285 # See config-ml.in if you want the gory details.
2286
2287 if test "$srcdir" = "."; then
2288   if test "$with_target_subdir" != "."; then
2289     multi_basedir="$srcdir/$with_multisrctop../.."
2290   else
2291     multi_basedir="$srcdir/$with_multisrctop.."
2292   fi
2293 else
2294   multi_basedir="$srcdir/.."
2295 fi
2296
2297
2298 # Even if the default multilib is not a cross compilation,
2299 # it may be that some of the other multilibs are.
2300 if test $cross_compiling = no && test $multilib = yes \
2301    && test "x${with_multisubdir}" != x ; then
2302    cross_compiling=maybe
2303 fi
2304
2305 ac_config_commands="$ac_config_commands default-1"
2306
2307
2308 ac_aux_dir=
2309 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2310   for ac_t in install-sh install.sh shtool; do
2311     if test -f "$ac_dir/$ac_t"; then
2312       ac_aux_dir=$ac_dir
2313       ac_install_sh="$ac_aux_dir/$ac_t -c"
2314       break 2
2315     fi
2316   done
2317 done
2318 if test -z "$ac_aux_dir"; then
2319   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320 fi
2321
2322 # These three variables are undocumented and unsupported,
2323 # and are intended to be withdrawn in a future Autoconf release.
2324 # They can cause serious problems if a builder's source tree is in a directory
2325 # whose full name contains unusual characters.
2326 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2327 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2328 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2329
2330
2331 # Make sure we can run config.sub.
2332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2333   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2334
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2336 $as_echo_n "checking build system type... " >&6; }
2337 if test "${ac_cv_build+set}" = set; then :
2338   $as_echo_n "(cached) " >&6
2339 else
2340   ac_build_alias=$build_alias
2341 test "x$ac_build_alias" = x &&
2342   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2343 test "x$ac_build_alias" = x &&
2344   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2346   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2347
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2350 $as_echo "$ac_cv_build" >&6; }
2351 case $ac_cv_build in
2352 *-*-*) ;;
2353 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2354 esac
2355 build=$ac_cv_build
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_build
2358 shift
2359 build_cpu=$1
2360 build_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 build_os=$*
2365 IFS=$ac_save_IFS
2366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2367
2368
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2370 $as_echo_n "checking host system type... " >&6; }
2371 if test "${ac_cv_host+set}" = set; then :
2372   $as_echo_n "(cached) " >&6
2373 else
2374   if test "x$host_alias" = x; then
2375   ac_cv_host=$ac_cv_build
2376 else
2377   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2378     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2379 fi
2380
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2383 $as_echo "$ac_cv_host" >&6; }
2384 case $ac_cv_host in
2385 *-*-*) ;;
2386 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2387 esac
2388 host=$ac_cv_host
2389 ac_save_IFS=$IFS; IFS='-'
2390 set x $ac_cv_host
2391 shift
2392 host_cpu=$1
2393 host_vendor=$2
2394 shift; shift
2395 # Remember, the first character of IFS is used to create $*,
2396 # except with old shells:
2397 host_os=$*
2398 IFS=$ac_save_IFS
2399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2400
2401
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2403 $as_echo_n "checking target system type... " >&6; }
2404 if test "${ac_cv_target+set}" = set; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   if test "x$target_alias" = x; then
2408   ac_cv_target=$ac_cv_host
2409 else
2410   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2411     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2412 fi
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2416 $as_echo "$ac_cv_target" >&6; }
2417 case $ac_cv_target in
2418 *-*-*) ;;
2419 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2420 esac
2421 target=$ac_cv_target
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_target
2424 shift
2425 target_cpu=$1
2426 target_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 target_os=$*
2431 IFS=$ac_save_IFS
2432 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 # The aliases save the names the user supplied, while $host etc.
2436 # will get canonicalized.
2437 test -n "$target_alias" &&
2438   test "$program_prefix$program_suffix$program_transform_name" = \
2439     NONENONEs,x,x, &&
2440   program_prefix=${target_alias}-
2441
2442 target_alias=${target_alias-$host_alias}
2443
2444 am__api_version='1.11'
2445
2446 # Find a good install program.  We prefer a C program (faster),
2447 # so one script is as good as another.  But avoid the broken or
2448 # incompatible versions:
2449 # SysV /etc/install, /usr/sbin/install
2450 # SunOS /usr/etc/install
2451 # IRIX /sbin/install
2452 # AIX /bin/install
2453 # AmigaOS /C/install, which installs bootblocks on floppy discs
2454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457 # OS/2's system install, which has a completely different semantic
2458 # ./install, which can be erroneously created by make from ./install.sh.
2459 # Reject install programs that cannot install multiple files.
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2461 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2462 if test -z "$INSTALL"; then
2463 if test "${ac_cv_path_install+set}" = set; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471     # Account for people who put trailing slashes in PATH elements.
2472 case $as_dir/ in #((
2473   ./ | .// | /[cC]/* | \
2474   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2476   /usr/ucb/* ) ;;
2477   *)
2478     # OSF1 and SCO ODT 3.0 have their own names for install.
2479     # Don't use installbsd from OSF since it installs stuff as root
2480     # by default.
2481     for ac_prog in ginstall scoinst install; do
2482       for ac_exec_ext in '' $ac_executable_extensions; do
2483         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2484           if test $ac_prog = install &&
2485             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486             # AIX install.  It has an incompatible calling convention.
2487             :
2488           elif test $ac_prog = install &&
2489             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490             # program-specific install script used by HP pwplus--don't use.
2491             :
2492           else
2493             rm -rf conftest.one conftest.two conftest.dir
2494             echo one > conftest.one
2495             echo two > conftest.two
2496             mkdir conftest.dir
2497             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2498               test -s conftest.one && test -s conftest.two &&
2499               test -s conftest.dir/conftest.one &&
2500               test -s conftest.dir/conftest.two
2501             then
2502               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2503               break 3
2504             fi
2505           fi
2506         fi
2507       done
2508     done
2509     ;;
2510 esac
2511
2512   done
2513 IFS=$as_save_IFS
2514
2515 rm -rf conftest.one conftest.two conftest.dir
2516
2517 fi
2518   if test "${ac_cv_path_install+set}" = set; then
2519     INSTALL=$ac_cv_path_install
2520   else
2521     # As a last resort, use the slow shell script.  Don't cache a
2522     # value for INSTALL within a source directory, because that will
2523     # break other packages using the cache if that directory is
2524     # removed, or if the value is a relative name.
2525     INSTALL=$ac_install_sh
2526   fi
2527 fi
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2529 $as_echo "$INSTALL" >&6; }
2530
2531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532 # It thinks the first close brace ends the variable substitution.
2533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2534
2535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2536
2537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2540 $as_echo_n "checking whether build environment is sane... " >&6; }
2541 # Just in case
2542 sleep 1
2543 echo timestamp > conftest.file
2544 # Reject unsafe characters in $srcdir or the absolute working directory
2545 # name.  Accept space and tab only in the latter.
2546 am_lf='
2547 '
2548 case `pwd` in
2549   *[\\\"\#\$\&\'\`$am_lf]*)
2550     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2551 esac
2552 case $srcdir in
2553   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2554     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2555 esac
2556
2557 # Do `set' in a subshell so we don't clobber the current shell's
2558 # arguments.  Must try -L first in case configure is actually a
2559 # symlink; some systems play weird games with the mod time of symlinks
2560 # (eg FreeBSD returns the mod time of the symlink's containing
2561 # directory).
2562 if (
2563    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2564    if test "$*" = "X"; then
2565       # -L didn't work.
2566       set X `ls -t "$srcdir/configure" conftest.file`
2567    fi
2568    rm -f conftest.file
2569    if test "$*" != "X $srcdir/configure conftest.file" \
2570       && test "$*" != "X conftest.file $srcdir/configure"; then
2571
2572       # If neither matched, then we have a broken ls.  This can happen
2573       # if, for instance, CONFIG_SHELL is bash and it inherits a
2574       # broken ls alias from the environment.  This has actually
2575       # happened.  Such a system could not be considered "sane".
2576       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2577 alias in your environment" "$LINENO" 5
2578    fi
2579
2580    test "$2" = conftest.file
2581    )
2582 then
2583    # Ok.
2584    :
2585 else
2586    as_fn_error "newly created file is older than distributed files!
2587 Check your system clock" "$LINENO" 5
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2591 test "$program_prefix" != NONE &&
2592   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2593 # Use a double $ so make ignores it.
2594 test "$program_suffix" != NONE &&
2595   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2596 # Double any \ or $.
2597 # By default was `s,x,x', remove it if useless.
2598 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2599 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2600
2601 # expand $ac_aux_dir to an absolute path
2602 am_aux_dir=`cd $ac_aux_dir && pwd`
2603
2604 if test x"${MISSING+set}" != xset; then
2605   case $am_aux_dir in
2606   *\ * | *\     *)
2607     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2608   *)
2609     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2610   esac
2611 fi
2612 # Use eval to expand $SHELL
2613 if eval "$MISSING --run true"; then
2614   am_missing_run="$MISSING --run "
2615 else
2616   am_missing_run=
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2618 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2619 fi
2620
2621 if test x"${install_sh}" != xset; then
2622   case $am_aux_dir in
2623   *\ * | *\     *)
2624     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2625   *)
2626     install_sh="\${SHELL} $am_aux_dir/install-sh"
2627   esac
2628 fi
2629
2630 # Installed binaries are usually stripped using `strip' when the user
2631 # run `make install-strip'.  However `strip' might not be the right
2632 # tool to use in cross-compilation environments, therefore Automake
2633 # will honor the `STRIP' environment variable to overrule this program.
2634 if test "$cross_compiling" != no; then
2635   if test -n "$ac_tool_prefix"; then
2636   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2637 set dummy ${ac_tool_prefix}strip; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_STRIP+set}" = set; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   if test -n "$STRIP"; then
2644   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651     for ac_exec_ext in '' $ac_executable_extensions; do
2652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655     break 2
2656   fi
2657 done
2658   done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 STRIP=$ac_cv_prog_STRIP
2664 if test -n "$STRIP"; then
2665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2666 $as_echo "$STRIP" >&6; }
2667 else
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673 fi
2674 if test -z "$ac_cv_prog_STRIP"; then
2675   ac_ct_STRIP=$STRIP
2676   # Extract the first word of "strip", so it can be a program name with args.
2677 set dummy strip; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   if test -n "$ac_ct_STRIP"; then
2684   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_exec_ext in '' $ac_executable_extensions; do
2692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693     ac_cv_prog_ac_ct_STRIP="strip"
2694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698   done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2704 if test -n "$ac_ct_STRIP"; then
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2706 $as_echo "$ac_ct_STRIP" >&6; }
2707 else
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712   if test "x$ac_ct_STRIP" = x; then
2713     STRIP=":"
2714   else
2715     case $cross_compiling:$ac_tool_warned in
2716 yes:)
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719 ac_tool_warned=yes ;;
2720 esac
2721     STRIP=$ac_ct_STRIP
2722   fi
2723 else
2724   STRIP="$ac_cv_prog_STRIP"
2725 fi
2726
2727 fi
2728 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2729
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2731 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2732 if test -z "$MKDIR_P"; then
2733   if test "${ac_cv_path_mkdir+set}" = set; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2738 do
2739   IFS=$as_save_IFS
2740   test -z "$as_dir" && as_dir=.
2741     for ac_prog in mkdir gmkdir; do
2742          for ac_exec_ext in '' $ac_executable_extensions; do
2743            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2744            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2745              'mkdir (GNU coreutils) '* | \
2746              'mkdir (coreutils) '* | \
2747              'mkdir (fileutils) '4.1*)
2748                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2749                break 3;;
2750            esac
2751          done
2752        done
2753   done
2754 IFS=$as_save_IFS
2755
2756 fi
2757
2758   if test "${ac_cv_path_mkdir+set}" = set; then
2759     MKDIR_P="$ac_cv_path_mkdir -p"
2760   else
2761     # As a last resort, use the slow shell script.  Don't cache a
2762     # value for MKDIR_P within a source directory, because that will
2763     # break other packages using the cache if that directory is
2764     # removed, or if the value is a relative name.
2765     test -d ./--version && rmdir ./--version
2766     MKDIR_P="$ac_install_sh -d"
2767   fi
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2770 $as_echo "$MKDIR_P" >&6; }
2771
2772 mkdir_p="$MKDIR_P"
2773 case $mkdir_p in
2774   [\\/$]* | ?:[\\/]*) ;;
2775   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2776 esac
2777
2778 for ac_prog in gawk mawk nawk awk
2779 do
2780   # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_AWK+set}" = set; then :
2785   $as_echo_n "(cached) " >&6
2786 else
2787   if test -n "$AWK"; then
2788   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795     for ac_exec_ext in '' $ac_executable_extensions; do
2796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797     ac_cv_prog_AWK="$ac_prog"
2798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802   done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 AWK=$ac_cv_prog_AWK
2808 if test -n "$AWK"; then
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2810 $as_echo "$AWK" >&6; }
2811 else
2812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817   test -n "$AWK" && break
2818 done
2819
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2821 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2822 set x ${MAKE-make}
2823 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2824 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2825   $as_echo_n "(cached) " >&6
2826 else
2827   cat >conftest.make <<\_ACEOF
2828 SHELL = /bin/sh
2829 all:
2830         @echo '@@@%%%=$(MAKE)=@@@%%%'
2831 _ACEOF
2832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2833 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2834   *@@@%%%=?*=@@@%%%*)
2835     eval ac_cv_prog_make_${ac_make}_set=yes;;
2836   *)
2837     eval ac_cv_prog_make_${ac_make}_set=no;;
2838 esac
2839 rm -f conftest.make
2840 fi
2841 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843 $as_echo "yes" >&6; }
2844   SET_MAKE=
2845 else
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848   SET_MAKE="MAKE=${MAKE-make}"
2849 fi
2850
2851 rm -rf .tst 2>/dev/null
2852 mkdir .tst 2>/dev/null
2853 if test -d .tst; then
2854   am__leading_dot=.
2855 else
2856   am__leading_dot=_
2857 fi
2858 rmdir .tst 2>/dev/null
2859
2860 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2861   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2862   # is not polluted with repeated "-I."
2863   am__isrc=' -I$(srcdir)'
2864   # test to see if srcdir already configured
2865   if test -f $srcdir/config.status; then
2866     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2867   fi
2868 fi
2869
2870 # test whether we have cygpath
2871 if test -z "$CYGPATH_W"; then
2872   if (cygpath --version) >/dev/null 2>/dev/null; then
2873     CYGPATH_W='cygpath -w'
2874   else
2875     CYGPATH_W=echo
2876   fi
2877 fi
2878
2879
2880 # Define the identity of the package.
2881  PACKAGE='libgo'
2882  VERSION='version-unused'
2883
2884
2885 # Some tools Automake needs.
2886
2887 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
2889
2890 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
2892
2893 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
2895
2896 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
2898
2899 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
2901 # We need awk for the "check" target.  The system "awk" is bad on
2902 # some platforms.
2903 # Always define AMTAR for backward compatibility.
2904
2905 AMTAR=${AMTAR-"${am_missing_run}tar"}
2906
2907 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923 if test -n "$ac_tool_prefix"; then
2924   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test -n "$CC"; then
2932   ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939     for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946   done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961 fi
2962 if test -z "$ac_cv_prog_CC"; then
2963   ac_ct_CC=$CC
2964   # Extract the first word of "gcc", so it can be a program name with args.
2965 set dummy gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2969   $as_echo_n "(cached) " >&6
2970 else
2971   if test -n "$ac_ct_CC"; then
2972   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979     for ac_exec_ext in '' $ac_executable_extensions; do
2980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981     ac_cv_prog_ac_ct_CC="gcc"
2982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983     break 2
2984   fi
2985 done
2986   done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2994 $as_echo "$ac_ct_CC" >&6; }
2995 else
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000   if test "x$ac_ct_CC" = x; then
3001     CC=""
3002   else
3003     case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3007 ac_tool_warned=yes ;;
3008 esac
3009     CC=$ac_ct_CC
3010   fi
3011 else
3012   CC="$ac_cv_prog_CC"
3013 fi
3014
3015 if test -z "$CC"; then
3016           if test -n "$ac_tool_prefix"; then
3017     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}cc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then :
3022   $as_echo_n "(cached) " >&6
3023 else
3024   if test -n "$CC"; then
3025   ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032     for ac_exec_ext in '' $ac_executable_extensions; do
3033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034     ac_cv_prog_CC="${ac_tool_prefix}cc"
3035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039   done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3048 else
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054   fi
3055 fi
3056 if test -z "$CC"; then
3057   # Extract the first word of "cc", so it can be a program name with args.
3058 set dummy cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if test "${ac_cv_prog_CC+set}" = set; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   if test -n "$CC"; then
3065   ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067   ac_prog_rejected=no
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071   IFS=$as_save_IFS
3072   test -z "$as_dir" && as_dir=.
3073     for ac_exec_ext in '' $ac_executable_extensions; do
3074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3076        ac_prog_rejected=yes
3077        continue
3078      fi
3079     ac_cv_prog_CC="cc"
3080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081     break 2
3082   fi
3083 done
3084   done
3085 IFS=$as_save_IFS
3086
3087 if test $ac_prog_rejected = yes; then
3088   # We found a bogon in the path, so make sure we never use it.
3089   set dummy $ac_cv_prog_CC
3090   shift
3091   if test $# != 0; then
3092     # We chose a different compiler from the bogus one.
3093     # However, it has the same basename, so the bogon will be chosen
3094     # first if we set CC to just the basename; use the full file name.
3095     shift
3096     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3097   fi
3098 fi
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 if test -z "$CC"; then
3113   if test -n "$ac_tool_prefix"; then
3114   for ac_prog in cl.exe
3115   do
3116     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if test "${ac_cv_prog_CC+set}" = set; then :
3121   $as_echo_n "(cached) " >&6
3122 else
3123   if test -n "$CC"; then
3124   ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131     for ac_exec_ext in '' $ac_executable_extensions; do
3132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135     break 2
3136   fi
3137 done
3138   done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153     test -n "$CC" && break
3154   done
3155 fi
3156 if test -z "$CC"; then
3157   ac_ct_CC=$CC
3158   for ac_prog in cl.exe
3159 do
3160   # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy $ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   if test -n "$ac_ct_CC"; then
3168   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177     ac_cv_prog_ac_ct_CC="$ac_prog"
3178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182   done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3188 if test -n "$ac_ct_CC"; then
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3190 $as_echo "$ac_ct_CC" >&6; }
3191 else
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197   test -n "$ac_ct_CC" && break
3198 done
3199
3200   if test "x$ac_ct_CC" = x; then
3201     CC=""
3202   else
3203     case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209     CC=$ac_ct_CC
3210   fi
3211 fi
3212
3213 fi
3214
3215
3216 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error "no acceptable C compiler found in \$PATH
3219 See \`config.log' for more details." "$LINENO" 5; }
3220
3221 # Provide some information about the compiler.
3222 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3223 set X $ac_compile
3224 ac_compiler=$2
3225 for ac_option in --version -v -V -qversion; do
3226   { { ac_try="$ac_compiler $ac_option >&5"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3234   ac_status=$?
3235   if test -s conftest.err; then
3236     sed '10a\
3237 ... rest of stderr output deleted ...
3238          10q' conftest.err >conftest.er1
3239     cat conftest.er1 >&5
3240     rm -f conftest.er1 conftest.err
3241   fi
3242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243   test $ac_status = 0; }
3244 done
3245
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h.  */
3248
3249 int
3250 main ()
3251 {
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 ac_clean_files_save=$ac_clean_files
3258 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3259 # Try to create an executable without -o first, disregard a.out.
3260 # It will help us diagnose broken compilers, and finding out an intuition
3261 # of exeext.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3263 $as_echo_n "checking for C compiler default output file name... " >&6; }
3264 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3265
3266 # The possible output files:
3267 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3268
3269 ac_rmfiles=
3270 for ac_file in $ac_files
3271 do
3272   case $ac_file in
3273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3274     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3275   esac
3276 done
3277 rm -f $ac_rmfiles
3278
3279 if { { ac_try="$ac_link_default"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286   (eval "$ac_link_default") 2>&5
3287   ac_status=$?
3288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289   test $ac_status = 0; }; then :
3290   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3291 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3292 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3293 # so that the user can short-circuit this test for compilers unknown to
3294 # Autoconf.
3295 for ac_file in $ac_files ''
3296 do
3297   test -f "$ac_file" || continue
3298   case $ac_file in
3299     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3300         ;;
3301     [ab].out )
3302         # We found the default executable, but exeext='' is most
3303         # certainly right.
3304         break;;
3305     *.* )
3306         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3307         then :; else
3308            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309         fi
3310         # We set ac_cv_exeext here because the later test for it is not
3311         # safe: cross compilers may not add the suffix if given an `-o'
3312         # argument, so we may need to know it at that point already.
3313         # Even if this section looks crufty: it has the advantage of
3314         # actually working.
3315         break;;
3316     * )
3317         break;;
3318   esac
3319 done
3320 test "$ac_cv_exeext" = no && ac_cv_exeext=
3321
3322 else
3323   ac_file=''
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326 $as_echo "$ac_file" >&6; }
3327 if test -z "$ac_file"; then :
3328   $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 { as_fn_set_status 77
3334 as_fn_error "C compiler cannot create executables
3335 See \`config.log' for more details." "$LINENO" 5; }; }
3336 fi
3337 ac_exeext=$ac_cv_exeext
3338
3339 # Check that the compiler produces executables we can run.  If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3342 $as_echo_n "checking whether the C compiler works... " >&6; }
3343 # If not cross compiling, check that we can run a simple program.
3344 if test "$cross_compiling" != yes; then
3345   if { ac_try='./$ac_file'
3346   { { case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352   (eval "$ac_try") 2>&5
3353   ac_status=$?
3354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355   test $ac_status = 0; }; }; then
3356     cross_compiling=no
3357   else
3358     if test "$cross_compiling" = maybe; then
3359         cross_compiling=yes
3360     else
3361         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error "cannot run C compiled programs.
3364 If you meant to cross compile, use \`--host'.
3365 See \`config.log' for more details." "$LINENO" 5; }
3366     fi
3367   fi
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3370 $as_echo "yes" >&6; }
3371
3372 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3373 ac_clean_files=$ac_clean_files_save
3374 # Check that the compiler produces executables we can run.  If not, either
3375 # the compiler is broken, or we cross compile.
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3377 $as_echo_n "checking whether we are cross compiling... " >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3379 $as_echo "$cross_compiling" >&6; }
3380
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3382 $as_echo_n "checking for suffix of executables... " >&6; }
3383 if { { ac_try="$ac_link"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390   (eval "$ac_link") 2>&5
3391   ac_status=$?
3392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393   test $ac_status = 0; }; then :
3394   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3395 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3396 # work properly (i.e., refer to `conftest.exe'), while it won't with
3397 # `rm'.
3398 for ac_file in conftest.exe conftest conftest.*; do
3399   test -f "$ac_file" || continue
3400   case $ac_file in
3401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3402     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403           break;;
3404     * ) break;;
3405   esac
3406 done
3407 else
3408   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error "cannot compute suffix of executables: cannot compile and link
3411 See \`config.log' for more details." "$LINENO" 5; }
3412 fi
3413 rm -f conftest$ac_cv_exeext
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3415 $as_echo "$ac_cv_exeext" >&6; }
3416
3417 rm -f conftest.$ac_ext
3418 EXEEXT=$ac_cv_exeext
3419 ac_exeext=$EXEEXT
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3421 $as_echo_n "checking for suffix of object files... " >&6; }
3422 if test "${ac_cv_objext+set}" = set; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h.  */
3427
3428 int
3429 main ()
3430 {
3431
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.o conftest.obj
3437 if { { ac_try="$ac_compile"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444   (eval "$ac_compile") 2>&5
3445   ac_status=$?
3446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447   test $ac_status = 0; }; then :
3448   for ac_file in conftest.o conftest.obj conftest.*; do
3449   test -f "$ac_file" || continue;
3450   case $ac_file in
3451     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3452     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3453        break;;
3454   esac
3455 done
3456 else
3457   $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "cannot compute suffix of object files: cannot compile
3463 See \`config.log' for more details." "$LINENO" 5; }
3464 fi
3465 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3468 $as_echo "$ac_cv_objext" >&6; }
3469 OBJEXT=$ac_cv_objext
3470 ac_objext=$OBJEXT
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3472 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3473 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h.  */
3478
3479 int
3480 main ()
3481 {
3482 #ifndef __GNUC__
3483        choke me
3484 #endif
3485
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491   ac_compiler_gnu=yes
3492 else
3493   ac_compiler_gnu=no
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3500 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3501 if test $ac_compiler_gnu = yes; then
3502   GCC=yes
3503 else
3504   GCC=
3505 fi
3506 ac_test_CFLAGS=${CFLAGS+set}
3507 ac_save_CFLAGS=$CFLAGS
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3509 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3510 if test "${ac_cv_prog_cc_g+set}" = set; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   ac_save_c_werror_flag=$ac_c_werror_flag
3514    ac_c_werror_flag=yes
3515    ac_cv_prog_cc_g=no
3516    CFLAGS="-g"
3517    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529   ac_cv_prog_cc_g=yes
3530 else
3531   CFLAGS=""
3532       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h.  */
3534
3535 int
3536 main ()
3537 {
3538
3539   ;
3540   return 0;
3541 }
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544
3545 else
3546   ac_c_werror_flag=$ac_save_c_werror_flag
3547          CFLAGS="-g"
3548          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h.  */
3550
3551 int
3552 main ()
3553 {
3554
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560   ac_cv_prog_cc_g=yes
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567    ac_c_werror_flag=$ac_save_c_werror_flag
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3570 $as_echo "$ac_cv_prog_cc_g" >&6; }
3571 if test "$ac_test_CFLAGS" = set; then
3572   CFLAGS=$ac_save_CFLAGS
3573 elif test $ac_cv_prog_cc_g = yes; then
3574   if test "$GCC" = yes; then
3575     CFLAGS="-g -O2"
3576   else
3577     CFLAGS="-g"
3578   fi
3579 else
3580   if test "$GCC" = yes; then
3581     CFLAGS="-O2"
3582   else
3583     CFLAGS=
3584   fi
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3587 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3588 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3589   $as_echo_n "(cached) " >&6
3590 else
3591   ac_cv_prog_cc_c89=no
3592 ac_save_CC=$CC
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h.  */
3595 #include <stdarg.h>
3596 #include <stdio.h>
3597 #include <sys/types.h>
3598 #include <sys/stat.h>
3599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3600 struct buf { int x; };
3601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602 static char *e (p, i)
3603      char **p;
3604      int i;
3605 {
3606   return p[i];
3607 }
3608 static char *f (char * (*g) (char **, int), char **p, ...)
3609 {
3610   char *s;
3611   va_list v;
3612   va_start (v,p);
3613   s = g (p, va_arg (v,int));
3614   va_end (v);
3615   return s;
3616 }
3617
3618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3619    function prototypes and stuff, but not '\xHH' hex character constants.
3620    These don't provoke an error unfortunately, instead are silently treated
3621    as 'x'.  The following induces an error, until -std is added to get
3622    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3623    array size at least.  It's necessary to write '\x00'==0 to get something
3624    that's true only with -std.  */
3625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3626
3627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3628    inside strings and character constants.  */
3629 #define FOO(x) 'x'
3630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3631
3632 int test (int i, double x);
3633 struct s1 {int (*f) (int a);};
3634 struct s2 {int (*f) (double a);};
3635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3636 int argc;
3637 char **argv;
3638 int
3639 main ()
3640 {
3641 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3647         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3648 do
3649   CC="$ac_save_CC $ac_arg"
3650   if ac_fn_c_try_compile "$LINENO"; then :
3651   ac_cv_prog_cc_c89=$ac_arg
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext
3654   test "x$ac_cv_prog_cc_c89" != "xno" && break
3655 done
3656 rm -f conftest.$ac_ext
3657 CC=$ac_save_CC
3658
3659 fi
3660 # AC_CACHE_VAL
3661 case "x$ac_cv_prog_cc_c89" in
3662   x)
3663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3664 $as_echo "none needed" >&6; } ;;
3665   xno)
3666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3667 $as_echo "unsupported" >&6; } ;;
3668   *)
3669     CC="$CC $ac_cv_prog_cc_c89"
3670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3671 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3672 esac
3673 if test "x$ac_cv_prog_cc_c89" != xno; then :
3674
3675 fi
3676
3677 ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682 DEPDIR="${am__leading_dot}deps"
3683
3684 ac_config_commands="$ac_config_commands depfiles"
3685
3686
3687 am_make=${MAKE-make}
3688 cat > confinc << 'END'
3689 am__doit:
3690         @echo this is the am__doit target
3691 .PHONY: am__doit
3692 END
3693 # If we don't find an include directive, just comment out the code.
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3695 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3696 am__include="#"
3697 am__quote=
3698 _am_result=none
3699 # First try GNU make style include.
3700 echo "include confinc" > confmf
3701 # Ignore all kinds of additional output from `make'.
3702 case `$am_make -s -f confmf 2> /dev/null` in #(
3703 *the\ am__doit\ target*)
3704   am__include=include
3705   am__quote=
3706   _am_result=GNU
3707   ;;
3708 esac
3709 # Now try BSD make style include.
3710 if test "$am__include" = "#"; then
3711    echo '.include "confinc"' > confmf
3712    case `$am_make -s -f confmf 2> /dev/null` in #(
3713    *the\ am__doit\ target*)
3714      am__include=.include
3715      am__quote="\""
3716      _am_result=BSD
3717      ;;
3718    esac
3719 fi
3720
3721
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3723 $as_echo "$_am_result" >&6; }
3724 rm -f confinc confmf
3725
3726 # Check whether --enable-dependency-tracking was given.
3727 if test "${enable_dependency_tracking+set}" = set; then :
3728   enableval=$enable_dependency_tracking;
3729 fi
3730
3731 if test "x$enable_dependency_tracking" != xno; then
3732   am_depcomp="$ac_aux_dir/depcomp"
3733   AMDEPBACKSLASH='\'
3734 fi
3735  if test "x$enable_dependency_tracking" != xno; then
3736   AMDEP_TRUE=
3737   AMDEP_FALSE='#'
3738 else
3739   AMDEP_TRUE='#'
3740   AMDEP_FALSE=
3741 fi
3742
3743
3744
3745 depcc="$CC"   am_compiler_list=
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3748 $as_echo_n "checking dependency style of $depcc... " >&6; }
3749 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3750   $as_echo_n "(cached) " >&6
3751 else
3752   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3753   # We make a subdir and do the tests there.  Otherwise we can end up
3754   # making bogus files that we don't know about and never remove.  For
3755   # instance it was reported that on HP-UX the gcc test will end up
3756   # making a dummy file named `D' -- because `-MD' means `put the output
3757   # in D'.
3758   mkdir conftest.dir
3759   # Copy depcomp to subdir because otherwise we won't find it if we're
3760   # using a relative directory.
3761   cp "$am_depcomp" conftest.dir
3762   cd conftest.dir
3763   # We will build objects and dependencies in a subdirectory because
3764   # it helps to detect inapplicable dependency modes.  For instance
3765   # both Tru64's cc and ICC support -MD to output dependencies as a
3766   # side effect of compilation, but ICC will put the dependencies in
3767   # the current directory while Tru64 will put them in the object
3768   # directory.
3769   mkdir sub
3770
3771   am_cv_CC_dependencies_compiler_type=none
3772   if test "$am_compiler_list" = ""; then
3773      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3774   fi
3775   am__universal=false
3776   case " $depcc " in #(
3777      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3778      esac
3779
3780   for depmode in $am_compiler_list; do
3781     # Setup a source with many dependencies, because some compilers
3782     # like to wrap large dependency lists on column 80 (with \), and
3783     # we should not choose a depcomp mode which is confused by this.
3784     #
3785     # We need to recreate these files for each test, as the compiler may
3786     # overwrite some of them when testing with obscure command lines.
3787     # This happens at least with the AIX C compiler.
3788     : > sub/conftest.c
3789     for i in 1 2 3 4 5 6; do
3790       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3791       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3792       # Solaris 8's {/usr,}/bin/sh.
3793       touch sub/conftst$i.h
3794     done
3795     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3796
3797     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3798     # mode.  It turns out that the SunPro C++ compiler does not properly
3799     # handle `-M -o', and we need to detect this.  Also, some Intel
3800     # versions had trouble with output in subdirs
3801     am__obj=sub/conftest.${OBJEXT-o}
3802     am__minus_obj="-o $am__obj"
3803     case $depmode in
3804     gcc)
3805       # This depmode causes a compiler race in universal mode.
3806       test "$am__universal" = false || continue
3807       ;;
3808     nosideeffect)
3809       # after this tag, mechanisms are not by side-effect, so they'll
3810       # only be used when explicitly requested
3811       if test "x$enable_dependency_tracking" = xyes; then
3812         continue
3813       else
3814         break
3815       fi
3816       ;;
3817     msvisualcpp | msvcmsys)
3818       # This compiler won't grok `-c -o', but also, the minuso test has
3819       # not run yet.  These depmodes are late enough in the game, and
3820       # so weak that their functioning should not be impacted.
3821       am__obj=conftest.${OBJEXT-o}
3822       am__minus_obj=
3823       ;;
3824     none) break ;;
3825     esac
3826     if depmode=$depmode \
3827        source=sub/conftest.c object=$am__obj \
3828        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3829        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3830          >/dev/null 2>conftest.err &&
3831        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3832        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3834        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835       # icc doesn't choke on unknown options, it will just issue warnings
3836       # or remarks (even with -Werror).  So we grep stderr for any message
3837       # that says an option was ignored or not supported.
3838       # When given -MP, icc 7.0 and 7.1 complain thusly:
3839       #   icc: Command line warning: ignoring option '-M'; no argument required
3840       # The diagnosis changed in icc 8.0:
3841       #   icc: Command line remark: option '-MP' not supported
3842       if (grep 'ignoring option' conftest.err ||
3843           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844         am_cv_CC_dependencies_compiler_type=$depmode
3845         break
3846       fi
3847     fi
3848   done
3849
3850   cd ..
3851   rm -rf conftest.dir
3852 else
3853   am_cv_CC_dependencies_compiler_type=none
3854 fi
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3858 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3860
3861  if
3862   test "x$enable_dependency_tracking" != xno \
3863   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3864   am__fastdepCC_TRUE=
3865   am__fastdepCC_FALSE='#'
3866 else
3867   am__fastdepCC_TRUE='#'
3868   am__fastdepCC_FALSE=
3869 fi
3870
3871
3872 ac_ext=go
3873 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3874 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compile_gnu=yes
3876 if test -n "$ac_tool_prefix"; then
3877   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3878 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 $as_echo_n "checking for $ac_word... " >&6; }
3881 if test "${ac_cv_prog_GOC+set}" = set; then :
3882   $as_echo_n "(cached) " >&6
3883 else
3884   if test -n "$GOC"; then
3885   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3886 else
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892     for ac_exec_ext in '' $ac_executable_extensions; do
3893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896     break 2
3897   fi
3898 done
3899   done
3900 IFS=$as_save_IFS
3901
3902 fi
3903 fi
3904 GOC=$ac_cv_prog_GOC
3905 if test -n "$GOC"; then
3906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3907 $as_echo "$GOC" >&6; }
3908 else
3909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3911 fi
3912
3913
3914 fi
3915 if test -z "$ac_cv_prog_GOC"; then
3916   ac_ct_GOC=$GOC
3917   # Extract the first word of "gccgo", so it can be a program name with args.
3918 set dummy gccgo; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3922   $as_echo_n "(cached) " >&6
3923 else
3924   if test -n "$ac_ct_GOC"; then
3925   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932     for ac_exec_ext in '' $ac_executable_extensions; do
3933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934     ac_cv_prog_ac_ct_GOC="gccgo"
3935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939   done
3940 IFS=$as_save_IFS
3941
3942 fi
3943 fi
3944 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3945 if test -n "$ac_ct_GOC"; then
3946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3947 $as_echo "$ac_ct_GOC" >&6; }
3948 else
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 fi
3952
3953   if test "x$ac_ct_GOC" = x; then
3954     GOC=""
3955   else
3956     case $cross_compiling:$ac_tool_warned in
3957 yes:)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3961 esac
3962     GOC=$ac_ct_GOC
3963   fi
3964 else
3965   GOC="$ac_cv_prog_GOC"
3966 fi
3967
3968 if test -z "$GOC"; then
3969   if test -n "$ac_tool_prefix"; then
3970     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_prog_GOC+set}" = set; then :
3975   $as_echo_n "(cached) " >&6
3976 else
3977   if test -n "$GOC"; then
3978   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983   IFS=$as_save_IFS
3984   test -z "$as_dir" && as_dir=.
3985     for ac_exec_ext in '' $ac_executable_extensions; do
3986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989     break 2
3990   fi
3991 done
3992   done
3993 IFS=$as_save_IFS
3994
3995 fi
3996 fi
3997 GOC=$ac_cv_prog_GOC
3998 if test -n "$GOC"; then
3999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4000 $as_echo "$GOC" >&6; }
4001 else
4002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4004 fi
4005
4006
4007   fi
4008 fi
4009 if test -z "$GOC"; then
4010   # Extract the first word of "gccgo", so it can be a program name with args.
4011 set dummy gccgo; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if test "${ac_cv_prog_GOC+set}" = set; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   if test -n "$GOC"; then
4018   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4019 else
4020   ac_prog_rejected=no
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026     for ac_exec_ext in '' $ac_executable_extensions; do
4027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4028     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4029        ac_prog_rejected=yes
4030        continue
4031      fi
4032     ac_cv_prog_GOC="gccgo"
4033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034     break 2
4035   fi
4036 done
4037   done
4038 IFS=$as_save_IFS
4039
4040 if test $ac_prog_rejected = yes; then
4041   # We found a bogon in the path, so make sure we never use it.
4042   set dummy $ac_cv_prog_GOC
4043   shift
4044   if test $# != 0; then
4045     # We chose a different compiler from the bogus one.
4046     # However, it has the same basename, so the bogon will be chosen
4047     # first if we set GOC to just the basename; use the full file name.
4048     shift
4049     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4050   fi
4051 fi
4052 fi
4053 fi
4054 GOC=$ac_cv_prog_GOC
4055 if test -n "$GOC"; then
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4057 $as_echo "$GOC" >&6; }
4058 else
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063
4064 fi
4065
4066
4067 # Provide some information about the compiler.
4068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4069 set X $ac_compile
4070 ac_compiler=$2
4071 { { ac_try="$ac_compiler --version >&5"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077 $as_echo "$ac_try_echo"; } >&5
4078   (eval "$ac_compiler --version >&5") 2>conftest.err
4079   ac_status=$?
4080   if test -s conftest.err; then
4081     sed '10a\
4082 ... rest of stderr output deleted ...
4083          10q' conftest.err >conftest.er1
4084     cat conftest.er1 >&5
4085     rm -f conftest.er1 conftest.err
4086   fi
4087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088   test $ac_status = 0; }
4089 GOCFLAGS="-g -O2"
4090 ac_ext=c
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095
4096
4097
4098
4099
4100
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4102 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4103     # Check whether --enable-maintainer-mode was given.
4104 if test "${enable_maintainer_mode+set}" = set; then :
4105   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4106 else
4107   USE_MAINTAINER_MODE=no
4108 fi
4109
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4111 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4112    if test $USE_MAINTAINER_MODE = yes; then
4113   MAINTAINER_MODE_TRUE=
4114   MAINTAINER_MODE_FALSE='#'
4115 else
4116   MAINTAINER_MODE_TRUE='#'
4117   MAINTAINER_MODE_FALSE=
4118 fi
4119
4120   MAINT=$MAINTAINER_MODE_TRUE
4121
4122
4123
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4126 if test "${ac_cv_path_SED+set}" = set; then :
4127   $as_echo_n "(cached) " >&6
4128 else
4129             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4130      for ac_i in 1 2 3 4 5 6 7; do
4131        ac_script="$ac_script$as_nl$ac_script"
4132      done
4133      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4134      { ac_script=; unset ac_script;}
4135      if test -z "$SED"; then
4136   ac_path_SED_found=false
4137   # Loop through the user's path and test for each of PROGNAME-LIST
4138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_prog in sed gsed; do
4144     for ac_exec_ext in '' $ac_executable_extensions; do
4145       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4146       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4147 # Check for GNU ac_path_SED and select it if it is found.
4148   # Check for GNU $ac_path_SED
4149 case `"$ac_path_SED" --version 2>&1` in
4150 *GNU*)
4151   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4152 *)
4153   ac_count=0
4154   $as_echo_n 0123456789 >"conftest.in"
4155   while :
4156   do
4157     cat "conftest.in" "conftest.in" >"conftest.tmp"
4158     mv "conftest.tmp" "conftest.in"
4159     cp "conftest.in" "conftest.nl"
4160     $as_echo '' >> "conftest.nl"
4161     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163     as_fn_arith $ac_count + 1 && ac_count=$as_val
4164     if test $ac_count -gt ${ac_path_SED_max-0}; then
4165       # Best one so far, save it but keep looking for a better one
4166       ac_cv_path_SED="$ac_path_SED"
4167       ac_path_SED_max=$ac_count
4168     fi
4169     # 10*(2^10) chars as input seems more than enough
4170     test $ac_count -gt 10 && break
4171   done
4172   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4174
4175       $ac_path_SED_found && break 3
4176     done
4177   done
4178   done
4179 IFS=$as_save_IFS
4180   if test -z "$ac_cv_path_SED"; then
4181     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4182   fi
4183 else
4184   ac_cv_path_SED=$SED
4185 fi
4186
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4189 $as_echo "$ac_cv_path_SED" >&6; }
4190  SED="$ac_cv_path_SED"
4191   rm -f conftest.sed
4192
4193 test -z "$SED" && SED=sed
4194 Xsed="$SED -e 1s/^X//"
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4207 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4208 if test "${ac_cv_path_GREP+set}" = set; then :
4209   $as_echo_n "(cached) " >&6
4210 else
4211   if test -z "$GREP"; then
4212   ac_path_GREP_found=false
4213   # Loop through the user's path and test for each of PROGNAME-LIST
4214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219     for ac_prog in grep ggrep; do
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4222       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4223 # Check for GNU ac_path_GREP and select it if it is found.
4224   # Check for GNU $ac_path_GREP
4225 case `"$ac_path_GREP" --version 2>&1` in
4226 *GNU*)
4227   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4228 *)
4229   ac_count=0
4230   $as_echo_n 0123456789 >"conftest.in"
4231   while :
4232   do
4233     cat "conftest.in" "conftest.in" >"conftest.tmp"
4234     mv "conftest.tmp" "conftest.in"
4235     cp "conftest.in" "conftest.nl"
4236     $as_echo 'GREP' >> "conftest.nl"
4237     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239     as_fn_arith $ac_count + 1 && ac_count=$as_val
4240     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4241       # Best one so far, save it but keep looking for a better one
4242       ac_cv_path_GREP="$ac_path_GREP"
4243       ac_path_GREP_max=$ac_count
4244     fi
4245     # 10*(2^10) chars as input seems more than enough
4246     test $ac_count -gt 10 && break
4247   done
4248   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 esac
4250
4251       $ac_path_GREP_found && break 3
4252     done
4253   done
4254   done
4255 IFS=$as_save_IFS
4256   if test -z "$ac_cv_path_GREP"; then
4257     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4258   fi
4259 else
4260   ac_cv_path_GREP=$GREP
4261 fi
4262
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4265 $as_echo "$ac_cv_path_GREP" >&6; }
4266  GREP="$ac_cv_path_GREP"
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4270 $as_echo_n "checking for egrep... " >&6; }
4271 if test "${ac_cv_path_EGREP+set}" = set; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4275    then ac_cv_path_EGREP="$GREP -E"
4276    else
4277      if test -z "$EGREP"; then
4278   ac_path_EGREP_found=false
4279   # Loop through the user's path and test for each of PROGNAME-LIST
4280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285     for ac_prog in egrep; do
4286     for ac_exec_ext in '' $ac_executable_extensions; do
4287       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4288       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4289 # Check for GNU ac_path_EGREP and select it if it is found.
4290   # Check for GNU $ac_path_EGREP
4291 case `"$ac_path_EGREP" --version 2>&1` in
4292 *GNU*)
4293   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4294 *)
4295   ac_count=0
4296   $as_echo_n 0123456789 >"conftest.in"
4297   while :
4298   do
4299     cat "conftest.in" "conftest.in" >"conftest.tmp"
4300     mv "conftest.tmp" "conftest.in"
4301     cp "conftest.in" "conftest.nl"
4302     $as_echo 'EGREP' >> "conftest.nl"
4303     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305     as_fn_arith $ac_count + 1 && ac_count=$as_val
4306     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307       # Best one so far, save it but keep looking for a better one
4308       ac_cv_path_EGREP="$ac_path_EGREP"
4309       ac_path_EGREP_max=$ac_count
4310     fi
4311     # 10*(2^10) chars as input seems more than enough
4312     test $ac_count -gt 10 && break
4313   done
4314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315 esac
4316
4317       $ac_path_EGREP_found && break 3
4318     done
4319   done
4320   done
4321 IFS=$as_save_IFS
4322   if test -z "$ac_cv_path_EGREP"; then
4323     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4324   fi
4325 else
4326   ac_cv_path_EGREP=$EGREP
4327 fi
4328
4329    fi
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4332 $as_echo "$ac_cv_path_EGREP" >&6; }
4333  EGREP="$ac_cv_path_EGREP"
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4337 $as_echo_n "checking for fgrep... " >&6; }
4338 if test "${ac_cv_path_FGREP+set}" = set; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4342    then ac_cv_path_FGREP="$GREP -F"
4343    else
4344      if test -z "$FGREP"; then
4345   ac_path_FGREP_found=false
4346   # Loop through the user's path and test for each of PROGNAME-LIST
4347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352     for ac_prog in fgrep; do
4353     for ac_exec_ext in '' $ac_executable_extensions; do
4354       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4355       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4356 # Check for GNU ac_path_FGREP and select it if it is found.
4357   # Check for GNU $ac_path_FGREP
4358 case `"$ac_path_FGREP" --version 2>&1` in
4359 *GNU*)
4360   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4361 *)
4362   ac_count=0
4363   $as_echo_n 0123456789 >"conftest.in"
4364   while :
4365   do
4366     cat "conftest.in" "conftest.in" >"conftest.tmp"
4367     mv "conftest.tmp" "conftest.in"
4368     cp "conftest.in" "conftest.nl"
4369     $as_echo 'FGREP' >> "conftest.nl"
4370     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4371     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4372     as_fn_arith $ac_count + 1 && ac_count=$as_val
4373     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4374       # Best one so far, save it but keep looking for a better one
4375       ac_cv_path_FGREP="$ac_path_FGREP"
4376       ac_path_FGREP_max=$ac_count
4377     fi
4378     # 10*(2^10) chars as input seems more than enough
4379     test $ac_count -gt 10 && break
4380   done
4381   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4382 esac
4383
4384       $ac_path_FGREP_found && break 3
4385     done
4386   done
4387   done
4388 IFS=$as_save_IFS
4389   if test -z "$ac_cv_path_FGREP"; then
4390     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4391   fi
4392 else
4393   ac_cv_path_FGREP=$FGREP
4394 fi
4395
4396    fi
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4399 $as_echo "$ac_cv_path_FGREP" >&6; }
4400  FGREP="$ac_cv_path_FGREP"
4401
4402
4403 test -z "$GREP" && GREP=grep
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4422 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4423 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4426 $as_echo_n "checking how to print strings... " >&6; }
4427 # Test print first, because it will be a builtin if present.
4428 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4429    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4430   ECHO='print -r --'
4431 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4432   ECHO='printf %s\n'
4433 else
4434   # Use this function as a fallback that always works.
4435   func_fallback_echo ()
4436   {
4437     eval 'cat <<_LTECHO_EOF
4438 $1
4439 _LTECHO_EOF'
4440   }
4441   ECHO='func_fallback_echo'
4442 fi
4443
4444 # func_echo_all arg...
4445 # Invoke $ECHO with all args, space-separated.
4446 func_echo_all ()
4447 {
4448     $ECHO ""
4449 }
4450
4451 case "$ECHO" in
4452   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4453 $as_echo "printf" >&6; } ;;
4454   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4455 $as_echo "print -r" >&6; } ;;
4456   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4457 $as_echo "cat" >&6; } ;;
4458 esac
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 # Check whether --with-gnu-ld was given.
4476 if test "${with_gnu_ld+set}" = set; then :
4477   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4478 else
4479   with_gnu_ld=no
4480 fi
4481
4482 ac_prog=ld
4483 if test "$GCC" = yes; then
4484   # Check if gcc -print-prog-name=ld gives a path.
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4486 $as_echo_n "checking for ld used by $CC... " >&6; }
4487   case $host in
4488   *-*-mingw*)
4489     # gcc leaves a trailing carriage return which upsets mingw
4490     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4491   *)
4492     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4493   esac
4494   case $ac_prog in
4495     # Accept absolute paths.
4496     [\\/]* | ?:[\\/]*)
4497       re_direlt='/[^/][^/]*/\.\./'
4498       # Canonicalize the pathname of ld
4499       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4500       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4501         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4502       done
4503       test -z "$LD" && LD="$ac_prog"
4504       ;;
4505   "")
4506     # If it fails, then pretend we aren't using GCC.
4507     ac_prog=ld
4508     ;;
4509   *)
4510     # If it is relative, then search for the first ld in PATH.
4511     with_gnu_ld=unknown
4512     ;;
4513   esac
4514 elif test "$with_gnu_ld" = yes; then
4515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4516 $as_echo_n "checking for GNU ld... " >&6; }
4517 else
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4519 $as_echo_n "checking for non-GNU ld... " >&6; }
4520 fi
4521 if test "${lt_cv_path_LD+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   if test -z "$LD"; then
4525   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4526   for ac_dir in $PATH; do
4527     IFS="$lt_save_ifs"
4528     test -z "$ac_dir" && ac_dir=.
4529     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530       lt_cv_path_LD="$ac_dir/$ac_prog"
4531       # Check to see if the program is GNU ld.  I'd rather use --version,
4532       # but apparently some variants of GNU ld only accept -v.
4533       # Break only if it was the GNU/non-GNU ld that we prefer.
4534       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535       *GNU* | *'with BFD'*)
4536         test "$with_gnu_ld" != no && break
4537         ;;
4538       *)
4539         test "$with_gnu_ld" != yes && break
4540         ;;
4541       esac
4542     fi
4543   done
4544   IFS="$lt_save_ifs"
4545 else
4546   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4547 fi
4548 fi
4549
4550 LD="$lt_cv_path_LD"
4551 if test -n "$LD"; then
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4553 $as_echo "$LD" >&6; }
4554 else
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4561 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565 case `$LD -v 2>&1 </dev/null` in
4566 *GNU* | *'with BFD'*)
4567   lt_cv_prog_gnu_ld=yes
4568   ;;
4569 *)
4570   lt_cv_prog_gnu_ld=no
4571   ;;
4572 esac
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4576 with_gnu_ld=$lt_cv_prog_gnu_ld
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586 if test -n "$ac_tool_prefix"; then
4587   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4588 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   if test -n "$RANLIB"; then
4595   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602     for ac_exec_ext in '' $ac_executable_extensions; do
4603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606     break 2
4607   fi
4608 done
4609   done
4610 IFS=$as_save_IFS
4611
4612 fi
4613 fi
4614 RANLIB=$ac_cv_prog_RANLIB
4615 if test -n "$RANLIB"; then
4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4617 $as_echo "$RANLIB" >&6; }
4618 else
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623
4624 fi
4625 if test -z "$ac_cv_prog_RANLIB"; then
4626   ac_ct_RANLIB=$RANLIB
4627   # Extract the first word of "ranlib", so it can be a program name with args.
4628 set dummy ranlib; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if test -n "$ac_ct_RANLIB"; then
4635   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642     for ac_exec_ext in '' $ac_executable_extensions; do
4643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644     ac_cv_prog_ac_ct_RANLIB="ranlib"
4645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649   done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4655 if test -n "$ac_ct_RANLIB"; then
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4657 $as_echo "$ac_ct_RANLIB" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663   if test "x$ac_ct_RANLIB" = x; then
4664     RANLIB=":"
4665   else
4666     case $cross_compiling:$ac_tool_warned in
4667 yes:)
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4670 ac_tool_warned=yes ;;
4671 esac
4672     RANLIB=$ac_ct_RANLIB
4673   fi
4674 else
4675   RANLIB="$ac_cv_prog_RANLIB"
4676 fi
4677
4678 if test -n "$ac_tool_prefix"; then
4679   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4680 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if test -n "$OBJCOPY"; then
4687   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698     break 2
4699   fi
4700 done
4701   done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 OBJCOPY=$ac_cv_prog_OBJCOPY
4707 if test -n "$OBJCOPY"; then
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4709 $as_echo "$OBJCOPY" >&6; }
4710 else
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715
4716 fi
4717 if test -z "$ac_cv_prog_OBJCOPY"; then
4718   ac_ct_OBJCOPY=$OBJCOPY
4719   # Extract the first word of "objcopy", so it can be a program name with args.
4720 set dummy objcopy; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   if test -n "$ac_ct_OBJCOPY"; then
4727   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734     for ac_exec_ext in '' $ac_executable_extensions; do
4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741   done
4742 IFS=$as_save_IFS
4743
4744 fi
4745 fi
4746 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4747 if test -n "$ac_ct_OBJCOPY"; then
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4749 $as_echo "$ac_ct_OBJCOPY" >&6; }
4750 else
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754
4755   if test "x$ac_ct_OBJCOPY" = x; then
4756     OBJCOPY="missing-objcopy"
4757   else
4758     case $cross_compiling:$ac_tool_warned in
4759 yes:)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4762 ac_tool_warned=yes ;;
4763 esac
4764     OBJCOPY=$ac_ct_OBJCOPY
4765   fi
4766 else
4767   OBJCOPY="$ac_cv_prog_OBJCOPY"
4768 fi
4769
4770
4771 enable_dlopen=yes
4772
4773
4774
4775 case `pwd` in
4776   *\ * | *\     *)
4777     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4778 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4779 esac
4780
4781
4782
4783 macro_version='2.2.7a'
4784 macro_revision='1.3134'
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798 ltmain="$ac_aux_dir/ltmain.sh"
4799
4800 # Backslashify metacharacters that are still active within
4801 # double-quoted strings.
4802 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4803
4804 # Same as above, but do not quote variable references.
4805 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4806
4807 # Sed substitution to delay expansion of an escaped shell variable in a
4808 # double_quote_subst'ed string.
4809 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4810
4811 # Sed substitution to delay expansion of an escaped single quote.
4812 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4813
4814 # Sed substitution to avoid accidental globbing in evaled expressions
4815 no_glob_subst='s/\*/\\\*/g'
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4818 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4819 if test "${lt_cv_path_NM+set}" = set; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   if test -n "$NM"; then
4823   # Let the user override the test.
4824   lt_cv_path_NM="$NM"
4825 else
4826   lt_nm_to_check="${ac_tool_prefix}nm"
4827   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4828     lt_nm_to_check="$lt_nm_to_check nm"
4829   fi
4830   for lt_tmp_nm in $lt_nm_to_check; do
4831     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4832     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4833       IFS="$lt_save_ifs"
4834       test -z "$ac_dir" && ac_dir=.
4835       tmp_nm="$ac_dir/$lt_tmp_nm"
4836       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4837         # Check to see if the nm accepts a BSD-compat flag.
4838         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4839         #   nm: unknown option "B" ignored
4840         # Tru64's nm complains that /dev/null is an invalid object file
4841         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4842         */dev/null* | *'Invalid file or object type'*)
4843           lt_cv_path_NM="$tmp_nm -B"
4844           break
4845           ;;
4846         *)
4847           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4848           */dev/null*)
4849             lt_cv_path_NM="$tmp_nm -p"
4850             break
4851             ;;
4852           *)
4853             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4854             continue # so that we can try to find one that supports BSD flags
4855             ;;
4856           esac
4857           ;;
4858         esac
4859       fi
4860     done
4861     IFS="$lt_save_ifs"
4862   done
4863   : ${lt_cv_path_NM=no}
4864 fi
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4867 $as_echo "$lt_cv_path_NM" >&6; }
4868 if test "$lt_cv_path_NM" != "no"; then
4869   NM="$lt_cv_path_NM"
4870 else
4871   # Didn't find any BSD compatible name lister, look for dumpbin.
4872   if test -n "$DUMPBIN"; then :
4873     # Let the user override the test.
4874   else
4875     if test -n "$ac_tool_prefix"; then
4876   for ac_prog in dumpbin "link -dump"
4877   do
4878     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   if test -n "$DUMPBIN"; then
4886   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893     for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900   done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 DUMPBIN=$ac_cv_prog_DUMPBIN
4906 if test -n "$DUMPBIN"; then
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4908 $as_echo "$DUMPBIN" >&6; }
4909 else
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913
4914
4915     test -n "$DUMPBIN" && break
4916   done
4917 fi
4918 if test -z "$DUMPBIN"; then
4919   ac_ct_DUMPBIN=$DUMPBIN
4920   for ac_prog in dumpbin "link -dump"
4921 do
4922   # Extract the first word of "$ac_prog", so it can be a program name with args.
4923 set dummy $ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -n "$ac_ct_DUMPBIN"; then
4930   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944   done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4950 if test -n "$ac_ct_DUMPBIN"; then
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4952 $as_echo "$ac_ct_DUMPBIN" >&6; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958
4959   test -n "$ac_ct_DUMPBIN" && break
4960 done
4961
4962   if test "x$ac_ct_DUMPBIN" = x; then
4963     DUMPBIN=":"
4964   else
4965     case $cross_compiling:$ac_tool_warned in
4966 yes:)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4969 ac_tool_warned=yes ;;
4970 esac
4971     DUMPBIN=$ac_ct_DUMPBIN
4972   fi
4973 fi
4974
4975     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4976     *COFF*)
4977       DUMPBIN="$DUMPBIN -symbols"
4978       ;;
4979     *)
4980       DUMPBIN=:
4981       ;;
4982     esac
4983   fi
4984
4985   if test "$DUMPBIN" != ":"; then
4986     NM="$DUMPBIN"
4987   fi
4988 fi
4989 test -z "$NM" && NM=nm
4990
4991
4992
4993
4994
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4997 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4998 if test "${lt_cv_nm_interface+set}" = set; then :
4999   $as_echo_n "(cached) " >&6
5000 else
5001   lt_cv_nm_interface="BSD nm"
5002   echo "int some_variable = 0;" > conftest.$ac_ext
5003   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5004   (eval "$ac_compile" 2>conftest.err)
5005   cat conftest.err >&5
5006   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5007   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5008   cat conftest.err >&5
5009   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5010   cat conftest.out >&5
5011   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5012     lt_cv_nm_interface="MS dumpbin"
5013   fi
5014   rm -f conftest*
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5017 $as_echo "$lt_cv_nm_interface" >&6; }
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5020 $as_echo_n "checking whether ln -s works... " >&6; }
5021 LN_S=$as_ln_s
5022 if test "$LN_S" = "ln -s"; then
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5024 $as_echo "yes" >&6; }
5025 else
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5027 $as_echo "no, using $LN_S" >&6; }
5028 fi
5029
5030 # find the maximum length of command line arguments
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5032 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5033 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036     i=0
5037   teststring="ABCD"
5038
5039   case $build_os in
5040   msdosdjgpp*)
5041     # On DJGPP, this test can blow up pretty badly due to problems in libc
5042     # (any single argument exceeding 2000 bytes causes a buffer overrun
5043     # during glob expansion).  Even if it were fixed, the result of this
5044     # check would be larger than it should be.
5045     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5046     ;;
5047
5048   gnu*)
5049     # Under GNU Hurd, this test is not required because there is
5050     # no limit to the length of command line arguments.
5051     # Libtool will interpret -1 as no limit whatsoever
5052     lt_cv_sys_max_cmd_len=-1;
5053     ;;
5054
5055   cygwin* | mingw* | cegcc*)
5056     # On Win9x/ME, this test blows up -- it succeeds, but takes
5057     # about 5 minutes as the teststring grows exponentially.
5058     # Worse, since 9x/ME are not pre-emptively multitasking,
5059     # you end up with a "frozen" computer, even though with patience
5060     # the test eventually succeeds (with a max line length of 256k).
5061     # Instead, let's just punt: use the minimum linelength reported by
5062     # all of the supported platforms: 8192 (on NT/2K/XP).
5063     lt_cv_sys_max_cmd_len=8192;
5064     ;;
5065
5066   mint*)
5067     # On MiNT this can take a long time and run out of memory.
5068     lt_cv_sys_max_cmd_len=8192;
5069     ;;
5070
5071   amigaos*)
5072     # On AmigaOS with pdksh, this test takes hours, literally.
5073     # So we just punt and use a minimum line length of 8192.
5074     lt_cv_sys_max_cmd_len=8192;
5075     ;;
5076
5077   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5078     # This has been around since 386BSD, at least.  Likely further.
5079     if test -x /sbin/sysctl; then
5080       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5081     elif test -x /usr/sbin/sysctl; then
5082       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5083     else
5084       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5085     fi
5086     # And add a safety zone
5087     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5088     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5089     ;;
5090
5091   interix*)
5092     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5093     lt_cv_sys_max_cmd_len=196608
5094     ;;
5095
5096   osf*)
5097     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5098     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5099     # nice to cause kernel panics so lets avoid the loop below.
5100     # First set a reasonable default.
5101     lt_cv_sys_max_cmd_len=16384
5102     #
5103     if test -x /sbin/sysconfig; then
5104       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5105         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5106       esac
5107     fi
5108     ;;
5109   sco3.2v5*)
5110     lt_cv_sys_max_cmd_len=102400
5111     ;;
5112   sysv5* | sco5v6* | sysv4.2uw2*)
5113     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5114     if test -n "$kargmax"; then
5115       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5116     else
5117       lt_cv_sys_max_cmd_len=32768
5118     fi
5119     ;;
5120   *)
5121     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5122     if test -n "$lt_cv_sys_max_cmd_len"; then
5123       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5124       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5125     else
5126       # Make teststring a little bigger before we do anything with it.
5127       # a 1K string should be a reasonable start.
5128       for i in 1 2 3 4 5 6 7 8 ; do
5129         teststring=$teststring$teststring
5130       done
5131       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5132       # If test is not a shell built-in, we'll probably end up computing a
5133       # maximum length that is only half of the actual maximum length, but
5134       # we can't tell.
5135       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5136                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5137               test $i != 17 # 1/2 MB should be enough
5138       do
5139         i=`expr $i + 1`
5140         teststring=$teststring$teststring
5141       done
5142       # Only check the string length outside the loop.
5143       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5144       teststring=
5145       # Add a significant safety factor because C++ compilers can tack on
5146       # massive amounts of additional arguments before passing them to the
5147       # linker.  It appears as though 1/2 is a usable value.
5148       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5149     fi
5150     ;;
5151   esac
5152
5153 fi
5154
5155 if test -n $lt_cv_sys_max_cmd_len ; then
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5157 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5160 $as_echo "none" >&6; }
5161 fi
5162 max_cmd_len=$lt_cv_sys_max_cmd_len
5163
5164
5165
5166
5167
5168
5169 : ${CP="cp -f"}
5170 : ${MV="mv -f"}
5171 : ${RM="rm -f"}
5172
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5174 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5175 # Try some XSI features
5176 xsi_shell=no
5177 ( _lt_dummy="a/b/c"
5178   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5179       = c,a/b,, \
5180     && eval 'test $(( 1 + 1 )) -eq 2 \
5181     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5182   && xsi_shell=yes
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5184 $as_echo "$xsi_shell" >&6; }
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5188 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5189 lt_shell_append=no
5190 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5191     >/dev/null 2>&1 \
5192   && lt_shell_append=yes
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5194 $as_echo "$lt_shell_append" >&6; }
5195
5196
5197 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5198   lt_unset=unset
5199 else
5200   lt_unset=false
5201 fi
5202
5203
5204
5205
5206
5207 # test EBCDIC or ASCII
5208 case `echo X|tr X '\101'` in
5209  A) # ASCII based system
5210     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5211   lt_SP2NL='tr \040 \012'
5212   lt_NL2SP='tr \015\012 \040\040'
5213   ;;
5214  *) # EBCDIC based system
5215   lt_SP2NL='tr \100 \n'
5216   lt_NL2SP='tr \r\n \100\100'
5217   ;;
5218 esac
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5229 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5230 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   lt_cv_ld_reload_flag='-r'
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5236 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5237 reload_flag=$lt_cv_ld_reload_flag
5238 case $reload_flag in
5239 "" | " "*) ;;
5240 *) reload_flag=" $reload_flag" ;;
5241 esac
5242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5243 case $host_os in
5244   darwin*)
5245     if test "$GCC" = yes; then
5246       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5247     else
5248       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5249     fi
5250     ;;
5251 esac
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 if test -n "$ac_tool_prefix"; then
5262   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5263 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269   if test -n "$OBJDUMP"; then
5270   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277     for ac_exec_ext in '' $ac_executable_extensions; do
5278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284   done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 OBJDUMP=$ac_cv_prog_OBJDUMP
5290 if test -n "$OBJDUMP"; then
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5292 $as_echo "$OBJDUMP" >&6; }
5293 else
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297
5298
5299 fi
5300 if test -z "$ac_cv_prog_OBJDUMP"; then
5301   ac_ct_OBJDUMP=$OBJDUMP
5302   # Extract the first word of "objdump", so it can be a program name with args.
5303 set dummy objdump; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   if test -n "$ac_ct_OBJDUMP"; then
5310   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315   IFS=$as_save_IFS
5316   test -z "$as_dir" && as_dir=.
5317     for ac_exec_ext in '' $ac_executable_extensions; do
5318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321     break 2
5322   fi
5323 done
5324   done
5325 IFS=$as_save_IFS
5326
5327 fi
5328 fi
5329 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5330 if test -n "$ac_ct_OBJDUMP"; then
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5332 $as_echo "$ac_ct_OBJDUMP" >&6; }
5333 else
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338   if test "x$ac_ct_OBJDUMP" = x; then
5339     OBJDUMP="false"
5340   else
5341     case $cross_compiling:$ac_tool_warned in
5342 yes:)
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5345 ac_tool_warned=yes ;;
5346 esac
5347     OBJDUMP=$ac_ct_OBJDUMP
5348   fi
5349 else
5350   OBJDUMP="$ac_cv_prog_OBJDUMP"
5351 fi
5352
5353 test -z "$OBJDUMP" && OBJDUMP=objdump
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5364 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5365 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   lt_cv_file_magic_cmd='$MAGIC_CMD'
5369 lt_cv_file_magic_test_file=
5370 lt_cv_deplibs_check_method='unknown'
5371 # Need to set the preceding variable on all platforms that support
5372 # interlibrary dependencies.
5373 # 'none' -- dependencies not supported.
5374 # `unknown' -- same as none, but documents that we really don't know.
5375 # 'pass_all' -- all dependencies passed with no checks.
5376 # 'test_compile' -- check by making test program.
5377 # 'file_magic [[regex]]' -- check by looking for files in library path
5378 # which responds to the $file_magic_cmd with a given extended regex.
5379 # If you have `file' or equivalent on your system and you're not sure
5380 # whether `pass_all' will *always* work, you probably want this one.
5381
5382 case $host_os in
5383 aix[4-9]*)
5384   lt_cv_deplibs_check_method=pass_all
5385   ;;
5386
5387 beos*)
5388   lt_cv_deplibs_check_method=pass_all
5389   ;;
5390
5391 bsdi[45]*)
5392   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5393   lt_cv_file_magic_cmd='/usr/bin/file -L'
5394   lt_cv_file_magic_test_file=/shlib/libc.so
5395   ;;
5396
5397 cygwin*)
5398   # func_win32_libid is a shell function defined in ltmain.sh
5399   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5400   lt_cv_file_magic_cmd='func_win32_libid'
5401   ;;
5402
5403 mingw* | pw32*)
5404   # Base MSYS/MinGW do not provide the 'file' command needed by
5405   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5406   # unless we find 'file', for example because we are cross-compiling.
5407   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5408   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5409     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410     lt_cv_file_magic_cmd='func_win32_libid'
5411   else
5412     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5413     lt_cv_file_magic_cmd='$OBJDUMP -f'
5414   fi
5415   ;;
5416
5417 cegcc*)
5418   # use the weaker test based on 'objdump'. See mingw*.
5419   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5420   lt_cv_file_magic_cmd='$OBJDUMP -f'
5421   ;;
5422
5423 darwin* | rhapsody*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5426
5427 freebsd* | dragonfly*)
5428   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5429     case $host_cpu in
5430     i*86 )
5431       # Not sure whether the presence of OpenBSD here was a mistake.
5432       # Let's accept both of them until this is cleared up.
5433       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5434       lt_cv_file_magic_cmd=/usr/bin/file
5435       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5436       ;;
5437     esac
5438   else
5439     lt_cv_deplibs_check_method=pass_all
5440   fi
5441   ;;
5442
5443 gnu*)
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 haiku*)
5448   lt_cv_deplibs_check_method=pass_all
5449   ;;
5450
5451 hpux10.20* | hpux11*)
5452   lt_cv_file_magic_cmd=/usr/bin/file
5453   case $host_cpu in
5454   ia64*)
5455     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5456     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5457     ;;
5458   hppa*64*)
5459     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]'
5460     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5461     ;;
5462   *)
5463     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5464     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5465     ;;
5466   esac
5467   ;;
5468
5469 interix[3-9]*)
5470   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5471   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5472   ;;
5473
5474 irix5* | irix6* | nonstopux*)
5475   case $LD in
5476   *-32|*"-32 ") libmagic=32-bit;;
5477   *-n32|*"-n32 ") libmagic=N32;;
5478   *-64|*"-64 ") libmagic=64-bit;;
5479   *) libmagic=never-match;;
5480   esac
5481   lt_cv_deplibs_check_method=pass_all
5482   ;;
5483
5484 # This must be Linux ELF.
5485 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 netbsd*)
5490   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5491     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5492   else
5493     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5494   fi
5495   ;;
5496
5497 newos6*)
5498   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5499   lt_cv_file_magic_cmd=/usr/bin/file
5500   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5501   ;;
5502
5503 *nto* | *qnx*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506
5507 openbsd*)
5508   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5509     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5510   else
5511     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5512   fi
5513   ;;
5514
5515 osf3* | osf4* | osf5*)
5516   lt_cv_deplibs_check_method=pass_all
5517   ;;
5518
5519 rdos*)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 solaris*)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5528   lt_cv_deplibs_check_method=pass_all
5529   ;;
5530
5531 sysv4 | sysv4.3*)
5532   case $host_vendor in
5533   motorola)
5534     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]'
5535     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5536     ;;
5537   ncr)
5538     lt_cv_deplibs_check_method=pass_all
5539     ;;
5540   sequent)
5541     lt_cv_file_magic_cmd='/bin/file'
5542     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5543     ;;
5544   sni)
5545     lt_cv_file_magic_cmd='/bin/file'
5546     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5547     lt_cv_file_magic_test_file=/lib/libc.so
5548     ;;
5549   siemens)
5550     lt_cv_deplibs_check_method=pass_all
5551     ;;
5552   pc)
5553     lt_cv_deplibs_check_method=pass_all
5554     ;;
5555   esac
5556   ;;
5557
5558 tpf*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561 esac
5562
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5565 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5566 file_magic_cmd=$lt_cv_file_magic_cmd
5567 deplibs_check_method=$lt_cv_deplibs_check_method
5568 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 if test -n "$ac_tool_prefix"; then
5582   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5583 set dummy ${ac_tool_prefix}ar; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_AR+set}" = set; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589   if test -n "$AR"; then
5590   ac_cv_prog_AR="$AR" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597     for ac_exec_ext in '' $ac_executable_extensions; do
5598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599     ac_cv_prog_AR="${ac_tool_prefix}ar"
5600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604   done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 AR=$ac_cv_prog_AR
5610 if test -n "$AR"; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5612 $as_echo "$AR" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618
5619 fi
5620 if test -z "$ac_cv_prog_AR"; then
5621   ac_ct_AR=$AR
5622   # Extract the first word of "ar", so it can be a program name with args.
5623 set dummy ar; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   if test -n "$ac_ct_AR"; then
5630   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637     for ac_exec_ext in '' $ac_executable_extensions; do
5638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639     ac_cv_prog_ac_ct_AR="ar"
5640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644   done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5650 if test -n "$ac_ct_AR"; then
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5652 $as_echo "$ac_ct_AR" >&6; }
5653 else
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658   if test "x$ac_ct_AR" = x; then
5659     AR="false"
5660   else
5661     case $cross_compiling:$ac_tool_warned in
5662 yes:)
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667     AR=$ac_ct_AR
5668   fi
5669 else
5670   AR="$ac_cv_prog_AR"
5671 fi
5672
5673 test -z "$AR" && AR=ar
5674 test -z "$AR_FLAGS" && AR_FLAGS=cru
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 if test -n "$ac_tool_prefix"; then
5687   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}strip; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_prog_STRIP+set}" = set; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   if test -n "$STRIP"; then
5695   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   test -z "$as_dir" && as_dir=.
5702     for ac_exec_ext in '' $ac_executable_extensions; do
5703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706     break 2
5707   fi
5708 done
5709   done
5710 IFS=$as_save_IFS
5711
5712 fi
5713 fi
5714 STRIP=$ac_cv_prog_STRIP
5715 if test -n "$STRIP"; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5717 $as_echo "$STRIP" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 fi
5725 if test -z "$ac_cv_prog_STRIP"; then
5726   ac_ct_STRIP=$STRIP
5727   # Extract the first word of "strip", so it can be a program name with args.
5728 set dummy strip; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$ac_ct_STRIP"; then
5735   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_ac_ct_STRIP="strip"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5755 if test -n "$ac_ct_STRIP"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5757 $as_echo "$ac_ct_STRIP" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763   if test "x$ac_ct_STRIP" = x; then
5764     STRIP=":"
5765   else
5766     case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772     STRIP=$ac_ct_STRIP
5773   fi
5774 else
5775   STRIP="$ac_cv_prog_STRIP"
5776 fi
5777
5778 test -z "$STRIP" && STRIP=:
5779
5780
5781
5782
5783
5784
5785 if test -n "$ac_tool_prefix"; then
5786   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if test -n "$RANLIB"; then
5794   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 RANLIB=$ac_cv_prog_RANLIB
5814 if test -n "$RANLIB"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5816 $as_echo "$RANLIB" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 fi
5824 if test -z "$ac_cv_prog_RANLIB"; then
5825   ac_ct_RANLIB=$RANLIB
5826   # Extract the first word of "ranlib", so it can be a program name with args.
5827 set dummy ranlib; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if test -n "$ac_ct_RANLIB"; then
5834   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_ac_ct_RANLIB="ranlib"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5854 if test -n "$ac_ct_RANLIB"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5856 $as_echo "$ac_ct_RANLIB" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862   if test "x$ac_ct_RANLIB" = x; then
5863     RANLIB=":"
5864   else
5865     case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871     RANLIB=$ac_ct_RANLIB
5872   fi
5873 else
5874   RANLIB="$ac_cv_prog_RANLIB"
5875 fi
5876
5877 test -z "$RANLIB" && RANLIB=:
5878
5879
5880
5881
5882
5883
5884 # Determine commands to create old-style static archives.
5885 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5886 old_postinstall_cmds='chmod 644 $oldlib'
5887 old_postuninstall_cmds=
5888
5889 if test -n "$RANLIB"; then
5890   case $host_os in
5891   openbsd*)
5892     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5893     ;;
5894   *)
5895     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5896     ;;
5897   esac
5898   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5899 fi
5900
5901 case $host_os in
5902   darwin*)
5903     lock_old_archive_extraction=yes ;;
5904   *)
5905     lock_old_archive_extraction=no ;;
5906 esac
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 # If no C compiler was specified, use CC.
5947 LTCC=${LTCC-"$CC"}
5948
5949 # If no C compiler flags were specified, use CFLAGS.
5950 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5951
5952 # Allow CC to be a program name with arguments.
5953 compiler=$CC
5954
5955
5956 # Check for command to grab the raw symbol name followed by C symbol from nm.
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5958 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5959 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962
5963 # These are sane defaults that work on at least a few old systems.
5964 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5965
5966 # Character class describing NM global symbol codes.
5967 symcode='[BCDEGRST]'
5968
5969 # Regexp to match symbols that can be accessed directly from C.
5970 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5971
5972 # Define system-specific variables.
5973 case $host_os in
5974 aix*)
5975   symcode='[BCDT]'
5976   ;;
5977 cygwin* | mingw* | pw32* | cegcc*)
5978   symcode='[ABCDGISTW]'
5979   ;;
5980 hpux*)
5981   if test "$host_cpu" = ia64; then
5982     symcode='[ABCDEGRST]'
5983   fi
5984   ;;
5985 irix* | nonstopux*)
5986   symcode='[BCDEGRST]'
5987   ;;
5988 osf*)
5989   symcode='[BCDEGQRST]'
5990   ;;
5991 solaris*)
5992   symcode='[BDRT]'
5993   ;;
5994 sco3.2v5*)
5995   symcode='[DT]'
5996   ;;
5997 sysv4.2uw2*)
5998   symcode='[DT]'
5999   ;;
6000 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6001   symcode='[ABDT]'
6002   ;;
6003 sysv4)
6004   symcode='[DFNSTU]'
6005   ;;
6006 esac
6007
6008 # If we're using GNU nm, then use its standard symbol codes.
6009 case `$NM -V 2>&1` in
6010 *GNU* | *'with BFD'*)
6011   symcode='[ABCDGIRSTW]' ;;
6012 esac
6013
6014 # Transform an extracted symbol line into a proper C declaration.
6015 # Some systems (esp. on ia64) link data and code symbols differently,
6016 # so use this general approach.
6017 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6018
6019 # Transform an extracted symbol line into symbol name and symbol address
6020 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6021 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'"
6022
6023 # Handle CRLF in mingw tool chain
6024 opt_cr=
6025 case $build_os in
6026 mingw*)
6027   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6028   ;;
6029 esac
6030
6031 # Try without a prefix underscore, then with it.
6032 for ac_symprfx in "" "_"; do
6033
6034   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6035   symxfrm="\\1 $ac_symprfx\\2 \\2"
6036
6037   # Write the raw and C identifiers.
6038   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6039     # Fake it for dumpbin and say T for any non-static function
6040     # and D for any global variable.
6041     # Also find C++ and __fastcall symbols from MSVC++,
6042     # which start with @ or ?.
6043     lt_cv_sys_global_symbol_pipe="$AWK '"\
6044 "     {last_section=section; section=\$ 3};"\
6045 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6046 "     \$ 0!~/External *\|/{next};"\
6047 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6048 "     {if(hide[section]) next};"\
6049 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6050 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6051 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6052 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6053 "     ' prfx=^$ac_symprfx"
6054   else
6055     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6056   fi
6057
6058   # Check to see that the pipe works correctly.
6059   pipe_works=no
6060
6061   rm -f conftest*
6062   cat > conftest.$ac_ext <<_LT_EOF
6063 #ifdef __cplusplus
6064 extern "C" {
6065 #endif
6066 char nm_test_var;
6067 void nm_test_func(void);
6068 void nm_test_func(void){}
6069 #ifdef __cplusplus
6070 }
6071 #endif
6072 int main(){nm_test_var='a';nm_test_func();return(0);}
6073 _LT_EOF
6074
6075   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076   (eval $ac_compile) 2>&5
6077   ac_status=$?
6078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079   test $ac_status = 0; }; then
6080     # Now try to grab the symbols.
6081     nlist=conftest.nm
6082     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6083   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6084   ac_status=$?
6085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086   test $ac_status = 0; } && test -s "$nlist"; then
6087       # Try sorting and uniquifying the output.
6088       if sort "$nlist" | uniq > "$nlist"T; then
6089         mv -f "$nlist"T "$nlist"
6090       else
6091         rm -f "$nlist"T
6092       fi
6093
6094       # Make sure that we snagged all the symbols we need.
6095       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6096         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6097           cat <<_LT_EOF > conftest.$ac_ext
6098 #ifdef __cplusplus
6099 extern "C" {
6100 #endif
6101
6102 _LT_EOF
6103           # Now generate the symbol file.
6104           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6105
6106           cat <<_LT_EOF >> conftest.$ac_ext
6107
6108 /* The mapping between symbol names and symbols.  */
6109 const struct {
6110   const char *name;
6111   void       *address;
6112 }
6113 lt__PROGRAM__LTX_preloaded_symbols[] =
6114 {
6115   { "@PROGRAM@", (void *) 0 },
6116 _LT_EOF
6117           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6118           cat <<\_LT_EOF >> conftest.$ac_ext
6119   {0, (void *) 0}
6120 };
6121
6122 /* This works around a problem in FreeBSD linker */
6123 #ifdef FREEBSD_WORKAROUND
6124 static const void *lt_preloaded_setup() {
6125   return lt__PROGRAM__LTX_preloaded_symbols;
6126 }
6127 #endif
6128
6129 #ifdef __cplusplus
6130 }
6131 #endif
6132 _LT_EOF
6133           # Now try linking the two files.
6134           mv conftest.$ac_objext conftstm.$ac_objext
6135           lt_save_LIBS="$LIBS"
6136           lt_save_CFLAGS="$CFLAGS"
6137           LIBS="conftstm.$ac_objext"
6138           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6139           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6140   (eval $ac_link) 2>&5
6141   ac_status=$?
6142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6143   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6144             pipe_works=yes
6145           fi
6146           LIBS="$lt_save_LIBS"
6147           CFLAGS="$lt_save_CFLAGS"
6148         else
6149           echo "cannot find nm_test_func in $nlist" >&5
6150         fi
6151       else
6152         echo "cannot find nm_test_var in $nlist" >&5
6153       fi
6154     else
6155       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6156     fi
6157   else
6158     echo "$progname: failed program was:" >&5
6159     cat conftest.$ac_ext >&5
6160   fi
6161   rm -rf conftest* conftst*
6162
6163   # Do not use the global_symbol_pipe unless it works.
6164   if test "$pipe_works" = yes; then
6165     break
6166   else
6167     lt_cv_sys_global_symbol_pipe=
6168   fi
6169 done
6170
6171 fi
6172
6173 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6174   lt_cv_sys_global_symbol_to_cdecl=
6175 fi
6176 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6178 $as_echo "failed" >&6; }
6179 else
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6181 $as_echo "ok" >&6; }
6182 fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 # Check whether --enable-libtool-lock was given.
6207 if test "${enable_libtool_lock+set}" = set; then :
6208   enableval=$enable_libtool_lock;
6209 fi
6210
6211 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6212
6213 # Some flags need to be propagated to the compiler or linker for good
6214 # libtool support.
6215 case $host in
6216 ia64-*-hpux*)
6217   # Find out which ABI we are using.
6218   echo 'int i;' > conftest.$ac_ext
6219   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6220   (eval $ac_compile) 2>&5
6221   ac_status=$?
6222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223   test $ac_status = 0; }; then
6224     case `/usr/bin/file conftest.$ac_objext` in
6225       *ELF-32*)
6226         HPUX_IA64_MODE="32"
6227         ;;
6228       *ELF-64*)
6229         HPUX_IA64_MODE="64"
6230         ;;
6231     esac
6232   fi
6233   rm -rf conftest*
6234   ;;
6235 *-*-irix6*)
6236   # Find out which ABI we are using.
6237   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6238   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6239   (eval $ac_compile) 2>&5
6240   ac_status=$?
6241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242   test $ac_status = 0; }; then
6243     if test "$lt_cv_prog_gnu_ld" = yes; then
6244       case `/usr/bin/file conftest.$ac_objext` in
6245         *32-bit*)
6246           LD="${LD-ld} -melf32bsmip"
6247           ;;
6248         *N32*)
6249           LD="${LD-ld} -melf32bmipn32"
6250           ;;
6251         *64-bit*)
6252           LD="${LD-ld} -melf64bmip"
6253         ;;
6254       esac
6255     else
6256       case `/usr/bin/file conftest.$ac_objext` in
6257         *32-bit*)
6258           LD="${LD-ld} -32"
6259           ;;
6260         *N32*)
6261           LD="${LD-ld} -n32"
6262           ;;
6263         *64-bit*)
6264           LD="${LD-ld} -64"
6265           ;;
6266       esac
6267     fi
6268   fi
6269   rm -rf conftest*
6270   ;;
6271
6272 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6273 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6274   # Find out which ABI we are using.
6275   echo 'int i;' > conftest.$ac_ext
6276   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6277   (eval $ac_compile) 2>&5
6278   ac_status=$?
6279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280   test $ac_status = 0; }; then
6281     case `/usr/bin/file conftest.o` in
6282       *32-bit*)
6283         case $host in
6284           x86_64-*kfreebsd*-gnu)
6285             LD="${LD-ld} -m elf_i386_fbsd"
6286             ;;
6287           x86_64-*linux*)
6288             LD="${LD-ld} -m elf_i386"
6289             ;;
6290           ppc64-*linux*|powerpc64-*linux*)
6291             LD="${LD-ld} -m elf32ppclinux"
6292             ;;
6293           s390x-*linux*)
6294             LD="${LD-ld} -m elf_s390"
6295             ;;
6296           sparc64-*linux*)
6297             LD="${LD-ld} -m elf32_sparc"
6298             ;;
6299         esac
6300         ;;
6301       *64-bit*)
6302         case $host in
6303           x86_64-*kfreebsd*-gnu)
6304             LD="${LD-ld} -m elf_x86_64_fbsd"
6305             ;;
6306           x86_64-*linux*)
6307             LD="${LD-ld} -m elf_x86_64"
6308             ;;
6309           ppc*-*linux*|powerpc*-*linux*)
6310             LD="${LD-ld} -m elf64ppc"
6311             ;;
6312           s390*-*linux*|s390*-*tpf*)
6313             LD="${LD-ld} -m elf64_s390"
6314             ;;
6315           sparc*-*linux*)
6316             LD="${LD-ld} -m elf64_sparc"
6317             ;;
6318         esac
6319         ;;
6320     esac
6321   fi
6322   rm -rf conftest*
6323   ;;
6324
6325 *-*-sco3.2v5*)
6326   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6327   SAVE_CFLAGS="$CFLAGS"
6328   CFLAGS="$CFLAGS -belf"
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6330 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6331 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   ac_ext=c
6335 ac_cpp='$CPP $CPPFLAGS'
6336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6339
6340      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h.  */
6342
6343 int
6344 main ()
6345 {
6346
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 if ac_fn_c_try_link "$LINENO"; then :
6352   lt_cv_cc_needs_belf=yes
6353 else
6354   lt_cv_cc_needs_belf=no
6355 fi
6356 rm -f core conftest.err conftest.$ac_objext \
6357     conftest$ac_exeext conftest.$ac_ext
6358      ac_ext=c
6359 ac_cpp='$CPP $CPPFLAGS'
6360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6363
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6366 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6367   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6368     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6369     CFLAGS="$SAVE_CFLAGS"
6370   fi
6371   ;;
6372 sparc*-*solaris*)
6373   # Find out which ABI we are using.
6374   echo 'int i;' > conftest.$ac_ext
6375   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6376   (eval $ac_compile) 2>&5
6377   ac_status=$?
6378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379   test $ac_status = 0; }; then
6380     case `/usr/bin/file conftest.o` in
6381     *64-bit*)
6382       case $lt_cv_prog_gnu_ld in
6383       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6384       *)
6385         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6386           LD="${LD-ld} -64"
6387         fi
6388         ;;
6389       esac
6390       ;;
6391     esac
6392   fi
6393   rm -rf conftest*
6394   ;;
6395 esac
6396
6397 need_locks="$enable_libtool_lock"
6398
6399
6400   case $host_os in
6401     rhapsody* | darwin*)
6402     if test -n "$ac_tool_prefix"; then
6403   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   if test -n "$DSYMUTIL"; then
6411   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418     for ac_exec_ext in '' $ac_executable_extensions; do
6419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425   done
6426 IFS=$as_save_IFS
6427
6428 fi
6429 fi
6430 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6431 if test -n "$DSYMUTIL"; then
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6433 $as_echo "$DSYMUTIL" >&6; }
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438
6439
6440 fi
6441 if test -z "$ac_cv_prog_DSYMUTIL"; then
6442   ac_ct_DSYMUTIL=$DSYMUTIL
6443   # Extract the first word of "dsymutil", so it can be a program name with args.
6444 set dummy dsymutil; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$ac_ct_DSYMUTIL"; then
6451   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6471 if test -n "$ac_ct_DSYMUTIL"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6473 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479   if test "x$ac_ct_DSYMUTIL" = x; then
6480     DSYMUTIL=":"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     DSYMUTIL=$ac_ct_DSYMUTIL
6489   fi
6490 else
6491   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6492 fi
6493
6494     if test -n "$ac_tool_prefix"; then
6495   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   if test -n "$NMEDIT"; then
6503   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508   IFS=$as_save_IFS
6509   test -z "$as_dir" && as_dir=.
6510     for ac_exec_ext in '' $ac_executable_extensions; do
6511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514     break 2
6515   fi
6516 done
6517   done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 NMEDIT=$ac_cv_prog_NMEDIT
6523 if test -n "$NMEDIT"; then
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6525 $as_echo "$NMEDIT" >&6; }
6526 else
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531
6532 fi
6533 if test -z "$ac_cv_prog_NMEDIT"; then
6534   ac_ct_NMEDIT=$NMEDIT
6535   # Extract the first word of "nmedit", so it can be a program name with args.
6536 set dummy nmedit; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   if test -n "$ac_ct_NMEDIT"; then
6543   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6563 if test -n "$ac_ct_NMEDIT"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6565 $as_echo "$ac_ct_NMEDIT" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571   if test "x$ac_ct_NMEDIT" = x; then
6572     NMEDIT=":"
6573   else
6574     case $cross_compiling:$ac_tool_warned in
6575 yes:)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580     NMEDIT=$ac_ct_NMEDIT
6581   fi
6582 else
6583   NMEDIT="$ac_cv_prog_NMEDIT"
6584 fi
6585
6586     if test -n "$ac_tool_prefix"; then
6587   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_prog_LIPO+set}" = set; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$LIPO"; then
6595   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602     for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609   done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 LIPO=$ac_cv_prog_LIPO
6615 if test -n "$LIPO"; then
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6617 $as_echo "$LIPO" >&6; }
6618 else
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624 fi
6625 if test -z "$ac_cv_prog_LIPO"; then
6626   ac_ct_LIPO=$LIPO
6627   # Extract the first word of "lipo", so it can be a program name with args.
6628 set dummy lipo; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   if test -n "$ac_ct_LIPO"; then
6635   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642     for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_prog_ac_ct_LIPO="lipo"
6645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649   done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6655 if test -n "$ac_ct_LIPO"; then
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6657 $as_echo "$ac_ct_LIPO" >&6; }
6658 else
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663   if test "x$ac_ct_LIPO" = x; then
6664     LIPO=":"
6665   else
6666     case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670 ac_tool_warned=yes ;;
6671 esac
6672     LIPO=$ac_ct_LIPO
6673   fi
6674 else
6675   LIPO="$ac_cv_prog_LIPO"
6676 fi
6677
6678     if test -n "$ac_tool_prefix"; then
6679   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}otool; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   if test -n "$OTOOL"; then
6687   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694     for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701   done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 OTOOL=$ac_cv_prog_OTOOL
6707 if test -n "$OTOOL"; then
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6709 $as_echo "$OTOOL" >&6; }
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_OTOOL"; then
6718   ac_ct_OTOOL=$OTOOL
6719   # Extract the first word of "otool", so it can be a program name with args.
6720 set dummy otool; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   if test -n "$ac_ct_OTOOL"; then
6727   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734     for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_ac_ct_OTOOL="otool"
6737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741   done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6747 if test -n "$ac_ct_OTOOL"; then
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6749 $as_echo "$ac_ct_OTOOL" >&6; }
6750 else
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755   if test "x$ac_ct_OTOOL" = x; then
6756     OTOOL=":"
6757   else
6758     case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764     OTOOL=$ac_ct_OTOOL
6765   fi
6766 else
6767   OTOOL="$ac_cv_prog_OTOOL"
6768 fi
6769
6770     if test -n "$ac_tool_prefix"; then
6771   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   if test -n "$OTOOL64"; then
6779   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786     for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793   done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 OTOOL64=$ac_cv_prog_OTOOL64
6799 if test -n "$OTOOL64"; then
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6801 $as_echo "$OTOOL64" >&6; }
6802 else
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_OTOOL64"; then
6810   ac_ct_OTOOL64=$OTOOL64
6811   # Extract the first word of "otool64", so it can be a program name with args.
6812 set dummy otool64; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   if test -n "$ac_ct_OTOOL64"; then
6819   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826     for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_prog_ac_ct_OTOOL64="otool64"
6829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833   done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6839 if test -n "$ac_ct_OTOOL64"; then
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6841 $as_echo "$ac_ct_OTOOL64" >&6; }
6842 else
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847   if test "x$ac_ct_OTOOL64" = x; then
6848     OTOOL64=":"
6849   else
6850     case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6854 ac_tool_warned=yes ;;
6855 esac
6856     OTOOL64=$ac_ct_OTOOL64
6857   fi
6858 else
6859   OTOOL64="$ac_cv_prog_OTOOL64"
6860 fi
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6889 $as_echo_n "checking for -single_module linker flag... " >&6; }
6890 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   lt_cv_apple_cc_single_mod=no
6894       if test -z "${LT_MULTI_MODULE}"; then
6895         # By default we will add the -single_module flag. You can override
6896         # by either setting the environment variable LT_MULTI_MODULE
6897         # non-empty at configure time, or by adding -multi_module to the
6898         # link flags.
6899         rm -rf libconftest.dylib*
6900         echo "int foo(void){return 1;}" > conftest.c
6901         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6902 -dynamiclib -Wl,-single_module conftest.c" >&5
6903         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6904           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6905         _lt_result=$?
6906         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6907           lt_cv_apple_cc_single_mod=yes
6908         else
6909           cat conftest.err >&5
6910         fi
6911         rm -rf libconftest.dylib*
6912         rm -f conftest.*
6913       fi
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6916 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6918 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6919 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   lt_cv_ld_exported_symbols_list=no
6923       save_LDFLAGS=$LDFLAGS
6924       echo "_main" > conftest.sym
6925       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h.  */
6928
6929 int
6930 main ()
6931 {
6932
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"; then :
6938   lt_cv_ld_exported_symbols_list=yes
6939 else
6940   lt_cv_ld_exported_symbols_list=no
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext \
6943     conftest$ac_exeext conftest.$ac_ext
6944         LDFLAGS="$save_LDFLAGS"
6945
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6948 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6950 $as_echo_n "checking for -force_load linker flag... " >&6; }
6951 if test "${lt_cv_ld_force_load+set}" = set; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   lt_cv_ld_force_load=no
6955       cat > conftest.c << _LT_EOF
6956 int forced_loaded() { return 2;}
6957 _LT_EOF
6958       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6959       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6960       echo "$AR cru libconftest.a conftest.o" >&5
6961       $AR cru libconftest.a conftest.o 2>&5
6962       cat > conftest.c << _LT_EOF
6963 int main() { return 0;}
6964 _LT_EOF
6965       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6966       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6967       _lt_result=$?
6968       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6969         lt_cv_ld_force_load=yes
6970       else
6971         cat conftest.err >&5
6972       fi
6973         rm -f conftest.err libconftest.a conftest conftest.c
6974         rm -rf conftest.dSYM
6975
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6978 $as_echo "$lt_cv_ld_force_load" >&6; }
6979     case $host_os in
6980     rhapsody* | darwin1.[012])
6981       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6982     darwin1.*)
6983       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6984     darwin*) # darwin 5.x on
6985       # if running on 10.5 or later, the deployment target defaults
6986       # to the OS version, if on x86, and 10.4, the deployment
6987       # target defaults to 10.4. Don't you love it?
6988       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6989         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6990           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6991         10.[012]*)
6992           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6993         10.*)
6994           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6995       esac
6996     ;;
6997   esac
6998     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6999       _lt_dar_single_mod='$single_module'
7000     fi
7001     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7002       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7003     else
7004       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7005     fi
7006     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7007       _lt_dsymutil='~$DSYMUTIL $lib || :'
7008     else
7009       _lt_dsymutil=
7010     fi
7011     ;;
7012   esac
7013
7014 ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7021 # On Suns, sometimes $CPP names a directory.
7022 if test -n "$CPP" && test -d "$CPP"; then
7023   CPP=
7024 fi
7025 if test -z "$CPP"; then
7026   if test "${ac_cv_prog_CPP+set}" = set; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029       # Double quotes because CPP needs to be expanded
7030     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7031     do
7032       ac_preproc_ok=false
7033 for ac_c_preproc_warn_flag in '' yes
7034 do
7035   # Use a header file that comes with gcc, so configuring glibc
7036   # with a fresh cross-compiler works.
7037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038   # <limits.h> exists even on freestanding compilers.
7039   # On the NeXT, cc -E runs the code through the compiler's parser,
7040   # not just through cpp. "Syntax error" is here to catch this case.
7041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h.  */
7043 #ifdef __STDC__
7044 # include <limits.h>
7045 #else
7046 # include <assert.h>
7047 #endif
7048                      Syntax error
7049 _ACEOF
7050 if ac_fn_c_try_cpp "$LINENO"; then :
7051
7052 else
7053   # Broken: fails on valid input.
7054 continue
7055 fi
7056 rm -f conftest.err conftest.$ac_ext
7057
7058   # OK, works on sane cases.  Now check whether nonexistent headers
7059   # can be detected and how.
7060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h.  */
7062 #include <ac_nonexistent.h>
7063 _ACEOF
7064 if ac_fn_c_try_cpp "$LINENO"; then :
7065   # Broken: success on invalid input.
7066 continue
7067 else
7068   # Passes both tests.
7069 ac_preproc_ok=:
7070 break
7071 fi
7072 rm -f conftest.err conftest.$ac_ext
7073
7074 done
7075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076 rm -f conftest.err conftest.$ac_ext
7077 if $ac_preproc_ok; then :
7078   break
7079 fi
7080
7081     done
7082     ac_cv_prog_CPP=$CPP
7083
7084 fi
7085   CPP=$ac_cv_prog_CPP
7086 else
7087   ac_cv_prog_CPP=$CPP
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7090 $as_echo "$CPP" >&6; }
7091 ac_preproc_ok=false
7092 for ac_c_preproc_warn_flag in '' yes
7093 do
7094   # Use a header file that comes with gcc, so configuring glibc
7095   # with a fresh cross-compiler works.
7096   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097   # <limits.h> exists even on freestanding compilers.
7098   # On the NeXT, cc -E runs the code through the compiler's parser,
7099   # not just through cpp. "Syntax error" is here to catch this case.
7100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h.  */
7102 #ifdef __STDC__
7103 # include <limits.h>
7104 #else
7105 # include <assert.h>
7106 #endif
7107                      Syntax error
7108 _ACEOF
7109 if ac_fn_c_try_cpp "$LINENO"; then :
7110
7111 else
7112   # Broken: fails on valid input.
7113 continue
7114 fi
7115 rm -f conftest.err conftest.$ac_ext
7116
7117   # OK, works on sane cases.  Now check whether nonexistent headers
7118   # can be detected and how.
7119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h.  */
7121 #include <ac_nonexistent.h>
7122 _ACEOF
7123 if ac_fn_c_try_cpp "$LINENO"; then :
7124   # Broken: success on invalid input.
7125 continue
7126 else
7127   # Passes both tests.
7128 ac_preproc_ok=:
7129 break
7130 fi
7131 rm -f conftest.err conftest.$ac_ext
7132
7133 done
7134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7135 rm -f conftest.err conftest.$ac_ext
7136 if $ac_preproc_ok; then :
7137
7138 else
7139   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7141 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7142 See \`config.log' for more details." "$LINENO" 5; }
7143 fi
7144
7145 ac_ext=c
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7153 $as_echo_n "checking for ANSI C header files... " >&6; }
7154 if test "${ac_cv_header_stdc+set}" = set; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h.  */
7159 #include <stdlib.h>
7160 #include <stdarg.h>
7161 #include <string.h>
7162 #include <float.h>
7163
7164 int
7165 main ()
7166 {
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173   ac_cv_header_stdc=yes
7174 else
7175   ac_cv_header_stdc=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178
7179 if test $ac_cv_header_stdc = yes; then
7180   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h.  */
7183 #include <string.h>
7184
7185 _ACEOF
7186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7187   $EGREP "memchr" >/dev/null 2>&1; then :
7188
7189 else
7190   ac_cv_header_stdc=no
7191 fi
7192 rm -f conftest*
7193
7194 fi
7195
7196 if test $ac_cv_header_stdc = yes; then
7197   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h.  */
7200 #include <stdlib.h>
7201
7202 _ACEOF
7203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7204   $EGREP "free" >/dev/null 2>&1; then :
7205
7206 else
7207   ac_cv_header_stdc=no
7208 fi
7209 rm -f conftest*
7210
7211 fi
7212
7213 if test $ac_cv_header_stdc = yes; then
7214   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7215   if test "$cross_compiling" = yes; then :
7216   :
7217 else
7218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h.  */
7220 #include <ctype.h>
7221 #include <stdlib.h>
7222 #if ((' ' & 0x0FF) == 0x020)
7223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7225 #else
7226 # define ISLOWER(c) \
7227                    (('a' <= (c) && (c) <= 'i') \
7228                      || ('j' <= (c) && (c) <= 'r') \
7229                      || ('s' <= (c) && (c) <= 'z'))
7230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7231 #endif
7232
7233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7234 int
7235 main ()
7236 {
7237   int i;
7238   for (i = 0; i < 256; i++)
7239     if (XOR (islower (i), ISLOWER (i))
7240         || toupper (i) != TOUPPER (i))
7241       return 2;
7242   return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_run "$LINENO"; then :
7246
7247 else
7248   ac_cv_header_stdc=no
7249 fi
7250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7251   conftest.$ac_objext conftest.beam conftest.$ac_ext
7252 fi
7253
7254 fi
7255 fi
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7257 $as_echo "$ac_cv_header_stdc" >&6; }
7258 if test $ac_cv_header_stdc = yes; then
7259
7260 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7261
7262 fi
7263
7264 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7266                   inttypes.h stdint.h unistd.h
7267 do :
7268   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7269 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7270 "
7271 eval as_val=\$$as_ac_Header
7272    if test "x$as_val" = x""yes; then :
7273   cat >>confdefs.h <<_ACEOF
7274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7275 _ACEOF
7276
7277 fi
7278
7279 done
7280
7281
7282 for ac_header in dlfcn.h
7283 do :
7284   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7285 "
7286 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7287   cat >>confdefs.h <<_ACEOF
7288 #define HAVE_DLFCN_H 1
7289 _ACEOF
7290
7291 fi
7292
7293 done
7294
7295 if test -n "$ac_tool_prefix"; then
7296   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7297 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if test "${ac_cv_prog_GOC+set}" = set; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   if test -n "$GOC"; then
7304   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311     for ac_exec_ext in '' $ac_executable_extensions; do
7312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318   done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 GOC=$ac_cv_prog_GOC
7324 if test -n "$GOC"; then
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7326 $as_echo "$GOC" >&6; }
7327 else
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332
7333 fi
7334 if test -z "$ac_cv_prog_GOC"; then
7335   ac_ct_GOC=$GOC
7336   # Extract the first word of "gccgo", so it can be a program name with args.
7337 set dummy gccgo; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   if test -n "$ac_ct_GOC"; then
7344   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351     for ac_exec_ext in '' $ac_executable_extensions; do
7352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7353     ac_cv_prog_ac_ct_GOC="gccgo"
7354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355     break 2
7356   fi
7357 done
7358   done
7359 IFS=$as_save_IFS
7360
7361 fi
7362 fi
7363 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7364 if test -n "$ac_ct_GOC"; then
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7366 $as_echo "$ac_ct_GOC" >&6; }
7367 else
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372   if test "x$ac_ct_GOC" = x; then
7373     GOC=""
7374   else
7375     case $cross_compiling:$ac_tool_warned in
7376 yes:)
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379 ac_tool_warned=yes ;;
7380 esac
7381     GOC=$ac_ct_GOC
7382   fi
7383 else
7384   GOC="$ac_cv_prog_GOC"
7385 fi
7386
7387
7388
7389
7390
7391
7392 # Set options
7393
7394
7395
7396
7397   enable_win32_dll=no
7398
7399
7400             # Check whether --enable-shared was given.
7401 if test "${enable_shared+set}" = set; then :
7402   enableval=$enable_shared; p=${PACKAGE-default}
7403     case $enableval in
7404     yes) enable_shared=yes ;;
7405     no) enable_shared=no ;;
7406     *)
7407       enable_shared=no
7408       # Look at the argument we got.  We use all the common list separators.
7409       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7410       for pkg in $enableval; do
7411         IFS="$lt_save_ifs"
7412         if test "X$pkg" = "X$p"; then
7413           enable_shared=yes
7414         fi
7415       done
7416       IFS="$lt_save_ifs"
7417       ;;
7418     esac
7419 else
7420   enable_shared=yes
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431   # Check whether --enable-static was given.
7432 if test "${enable_static+set}" = set; then :
7433   enableval=$enable_static; p=${PACKAGE-default}
7434     case $enableval in
7435     yes) enable_static=yes ;;
7436     no) enable_static=no ;;
7437     *)
7438      enable_static=no
7439       # Look at the argument we got.  We use all the common list separators.
7440       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7441       for pkg in $enableval; do
7442         IFS="$lt_save_ifs"
7443         if test "X$pkg" = "X$p"; then
7444           enable_static=yes
7445         fi
7446       done
7447       IFS="$lt_save_ifs"
7448       ;;
7449     esac
7450 else
7451   enable_static=yes
7452 fi
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463 # Check whether --with-pic was given.
7464 if test "${with_pic+set}" = set; then :
7465   withval=$with_pic; pic_mode="$withval"
7466 else
7467   pic_mode=default
7468 fi
7469
7470
7471 test -z "$pic_mode" && pic_mode=default
7472
7473
7474
7475
7476
7477
7478
7479   # Check whether --enable-fast-install was given.
7480 if test "${enable_fast_install+set}" = set; then :
7481   enableval=$enable_fast_install; p=${PACKAGE-default}
7482     case $enableval in
7483     yes) enable_fast_install=yes ;;
7484     no) enable_fast_install=no ;;
7485     *)
7486       enable_fast_install=no
7487       # Look at the argument we got.  We use all the common list separators.
7488       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7489       for pkg in $enableval; do
7490         IFS="$lt_save_ifs"
7491         if test "X$pkg" = "X$p"; then
7492           enable_fast_install=yes
7493         fi
7494       done
7495       IFS="$lt_save_ifs"
7496       ;;
7497     esac
7498 else
7499   enable_fast_install=yes
7500 fi
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 # This can be used to rebuild libtool when needed
7513 LIBTOOL_DEPS="$ltmain"
7514
7515 # Always use our own libtool.
7516 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 test -z "$LN_S" && LN_S="ln -s"
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558 if test -n "${ZSH_VERSION+set}" ; then
7559    setopt NO_GLOB_SUBST
7560 fi
7561
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7563 $as_echo_n "checking for objdir... " >&6; }
7564 if test "${lt_cv_objdir+set}" = set; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   rm -f .libs 2>/dev/null
7568 mkdir .libs 2>/dev/null
7569 if test -d .libs; then
7570   lt_cv_objdir=.libs
7571 else
7572   # MS-DOS does not allow filenames that begin with a dot.
7573   lt_cv_objdir=_libs
7574 fi
7575 rmdir .libs 2>/dev/null
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7578 $as_echo "$lt_cv_objdir" >&6; }
7579 objdir=$lt_cv_objdir
7580
7581
7582
7583
7584
7585 cat >>confdefs.h <<_ACEOF
7586 #define LT_OBJDIR "$lt_cv_objdir/"
7587 _ACEOF
7588
7589
7590
7591
7592 case $host_os in
7593 aix3*)
7594   # AIX sometimes has problems with the GCC collect2 program.  For some
7595   # reason, if we set the COLLECT_NAMES environment variable, the problems
7596   # vanish in a puff of smoke.
7597   if test "X${COLLECT_NAMES+set}" != Xset; then
7598     COLLECT_NAMES=
7599     export COLLECT_NAMES
7600   fi
7601   ;;
7602 esac
7603
7604 # Global variables:
7605 ofile=libtool
7606 can_build_shared=yes
7607
7608 # All known linkers require a `.a' archive for static linking (except MSVC,
7609 # which needs '.lib').
7610 libext=a
7611
7612 with_gnu_ld="$lt_cv_prog_gnu_ld"
7613
7614 old_CC="$CC"
7615 old_CFLAGS="$CFLAGS"
7616
7617 # Set sane defaults for various variables
7618 test -z "$CC" && CC=cc
7619 test -z "$LTCC" && LTCC=$CC
7620 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7621 test -z "$LD" && LD=ld
7622 test -z "$ac_objext" && ac_objext=o
7623
7624 for cc_temp in $compiler""; do
7625   case $cc_temp in
7626     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7627     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7628     \-*) ;;
7629     *) break;;
7630   esac
7631 done
7632 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7633
7634
7635 # Only perform the check for file, if the check method requires it
7636 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7637 case $deplibs_check_method in
7638 file_magic*)
7639   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7641 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7642 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   case $MAGIC_CMD in
7646 [\\/*] |  ?:[\\/]*)
7647   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7648   ;;
7649 *)
7650   lt_save_MAGIC_CMD="$MAGIC_CMD"
7651   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7652   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7653   for ac_dir in $ac_dummy; do
7654     IFS="$lt_save_ifs"
7655     test -z "$ac_dir" && ac_dir=.
7656     if test -f $ac_dir/${ac_tool_prefix}file; then
7657       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7658       if test -n "$file_magic_test_file"; then
7659         case $deplibs_check_method in
7660         "file_magic "*)
7661           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7662           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7664             $EGREP "$file_magic_regex" > /dev/null; then
7665             :
7666           else
7667             cat <<_LT_EOF 1>&2
7668
7669 *** Warning: the command libtool uses to detect shared libraries,
7670 *** $file_magic_cmd, produces output that libtool cannot recognize.
7671 *** The result is that libtool may fail to recognize shared libraries
7672 *** as such.  This will affect the creation of libtool libraries that
7673 *** depend on shared libraries, but programs linked with such libtool
7674 *** libraries will work regardless of this problem.  Nevertheless, you
7675 *** may want to report the problem to your system manager and/or to
7676 *** bug-libtool@gnu.org
7677
7678 _LT_EOF
7679           fi ;;
7680         esac
7681       fi
7682       break
7683     fi
7684   done
7685   IFS="$lt_save_ifs"
7686   MAGIC_CMD="$lt_save_MAGIC_CMD"
7687   ;;
7688 esac
7689 fi
7690
7691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7692 if test -n "$MAGIC_CMD"; then
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7694 $as_echo "$MAGIC_CMD" >&6; }
7695 else
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701
7702
7703
7704 if test -z "$lt_cv_path_MAGIC_CMD"; then
7705   if test -n "$ac_tool_prefix"; then
7706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7707 $as_echo_n "checking for file... " >&6; }
7708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   case $MAGIC_CMD in
7712 [\\/*] |  ?:[\\/]*)
7713   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7714   ;;
7715 *)
7716   lt_save_MAGIC_CMD="$MAGIC_CMD"
7717   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7718   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7719   for ac_dir in $ac_dummy; do
7720     IFS="$lt_save_ifs"
7721     test -z "$ac_dir" && ac_dir=.
7722     if test -f $ac_dir/file; then
7723       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7724       if test -n "$file_magic_test_file"; then
7725         case $deplibs_check_method in
7726         "file_magic "*)
7727           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7728           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7730             $EGREP "$file_magic_regex" > /dev/null; then
7731             :
7732           else
7733             cat <<_LT_EOF 1>&2
7734
7735 *** Warning: the command libtool uses to detect shared libraries,
7736 *** $file_magic_cmd, produces output that libtool cannot recognize.
7737 *** The result is that libtool may fail to recognize shared libraries
7738 *** as such.  This will affect the creation of libtool libraries that
7739 *** depend on shared libraries, but programs linked with such libtool
7740 *** libraries will work regardless of this problem.  Nevertheless, you
7741 *** may want to report the problem to your system manager and/or to
7742 *** bug-libtool@gnu.org
7743
7744 _LT_EOF
7745           fi ;;
7746         esac
7747       fi
7748       break
7749     fi
7750   done
7751   IFS="$lt_save_ifs"
7752   MAGIC_CMD="$lt_save_MAGIC_CMD"
7753   ;;
7754 esac
7755 fi
7756
7757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7758 if test -n "$MAGIC_CMD"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7760 $as_echo "$MAGIC_CMD" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767   else
7768     MAGIC_CMD=:
7769   fi
7770 fi
7771
7772   fi
7773   ;;
7774 esac
7775
7776 # Use C for the default configuration in the libtool script
7777
7778 lt_save_CC="$CC"
7779 ac_ext=c
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785
7786 # Source file extension for C test sources.
7787 ac_ext=c
7788
7789 # Object file extension for compiled C test sources.
7790 objext=o
7791 objext=$objext
7792
7793 # Code to be used in simple compile tests
7794 lt_simple_compile_test_code="int some_variable = 0;"
7795
7796 # Code to be used in simple link tests
7797 lt_simple_link_test_code='int main(){return(0);}'
7798
7799
7800
7801
7802
7803
7804
7805 # If no C compiler was specified, use CC.
7806 LTCC=${LTCC-"$CC"}
7807
7808 # If no C compiler flags were specified, use CFLAGS.
7809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7810
7811 # Allow CC to be a program name with arguments.
7812 compiler=$CC
7813
7814 # Save the default compiler, since it gets overwritten when the other
7815 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7816 compiler_DEFAULT=$CC
7817
7818 # save warnings/boilerplate of simple test code
7819 ac_outfile=conftest.$ac_objext
7820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7822 _lt_compiler_boilerplate=`cat conftest.err`
7823 $RM conftest*
7824
7825 ac_outfile=conftest.$ac_objext
7826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7828 _lt_linker_boilerplate=`cat conftest.err`
7829 $RM -r conftest*
7830
7831
7832 ## CAVEAT EMPTOR:
7833 ## There is no encapsulation within the following macros, do not change
7834 ## the running order or otherwise move them around unless you know exactly
7835 ## what you are doing...
7836 if test -n "$compiler"; then
7837
7838 lt_prog_compiler_no_builtin_flag=
7839
7840 if test "$GCC" = yes; then
7841   case $cc_basename in
7842   nvcc*)
7843     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7844   *)
7845     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7846   esac
7847
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7849 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7850 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   lt_cv_prog_compiler_rtti_exceptions=no
7854    ac_outfile=conftest.$ac_objext
7855    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7856    lt_compiler_flag="-fno-rtti -fno-exceptions"
7857    # Insert the option either (1) after the last *FLAGS variable, or
7858    # (2) before a word containing "conftest.", or (3) at the end.
7859    # Note that $ac_compile itself does not contain backslashes and begins
7860    # with a dollar sign (not a hyphen), so the echo should work correctly.
7861    # The option is referenced via a variable to avoid confusing sed.
7862    lt_compile=`echo "$ac_compile" | $SED \
7863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7865    -e 's:$: $lt_compiler_flag:'`
7866    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7867    (eval "$lt_compile" 2>conftest.err)
7868    ac_status=$?
7869    cat conftest.err >&5
7870    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871    if (exit $ac_status) && test -s "$ac_outfile"; then
7872      # The compiler can only warn and ignore the option if not recognized
7873      # So say no if there are warnings other than the usual output.
7874      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7875      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7876      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7877        lt_cv_prog_compiler_rtti_exceptions=yes
7878      fi
7879    fi
7880    $RM conftest*
7881
7882 fi
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7884 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7885
7886 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7887     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7888 else
7889     :
7890 fi
7891
7892 fi
7893
7894
7895
7896
7897
7898
7899   lt_prog_compiler_wl=
7900 lt_prog_compiler_pic=
7901 lt_prog_compiler_static=
7902
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7905
7906   if test "$GCC" = yes; then
7907     lt_prog_compiler_wl='-Wl,'
7908     lt_prog_compiler_static='-static'
7909
7910     case $host_os in
7911       aix*)
7912       # All AIX code is PIC.
7913       if test "$host_cpu" = ia64; then
7914         # AIX 5 now supports IA64 processor
7915         lt_prog_compiler_static='-Bstatic'
7916       fi
7917       ;;
7918
7919     amigaos*)
7920       case $host_cpu in
7921       powerpc)
7922             # see comment about AmigaOS4 .so support
7923             lt_prog_compiler_pic='-fPIC'
7924         ;;
7925       m68k)
7926             # FIXME: we need at least 68020 code to build shared libraries, but
7927             # adding the `-m68020' flag to GCC prevents building anything better,
7928             # like `-m68040'.
7929             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7930         ;;
7931       esac
7932       ;;
7933
7934     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7935       # PIC is the default for these OSes.
7936       ;;
7937
7938     mingw* | cygwin* | pw32* | os2* | cegcc*)
7939       # This hack is so that the source file can tell whether it is being
7940       # built for inclusion in a dll (and should export symbols for example).
7941       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7942       # (--disable-auto-import) libraries
7943       lt_prog_compiler_pic='-DDLL_EXPORT'
7944       ;;
7945
7946     darwin* | rhapsody*)
7947       # PIC is the default on this platform
7948       # Common symbols not allowed in MH_DYLIB files
7949       lt_prog_compiler_pic='-fno-common'
7950       ;;
7951
7952     haiku*)
7953       # PIC is the default for Haiku.
7954       # The "-static" flag exists, but is broken.
7955       lt_prog_compiler_static=
7956       ;;
7957
7958     hpux*)
7959       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7960       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7961       # sets the default TLS model and affects inlining.
7962       case $host_cpu in
7963       hppa*64*)
7964         # +Z the default
7965         ;;
7966       *)
7967         lt_prog_compiler_pic='-fPIC'
7968         ;;
7969       esac
7970       ;;
7971
7972     interix[3-9]*)
7973       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7974       # Instead, we relocate shared libraries at runtime.
7975       ;;
7976
7977     msdosdjgpp*)
7978       # Just because we use GCC doesn't mean we suddenly get shared libraries
7979       # on systems that don't support them.
7980       lt_prog_compiler_can_build_shared=no
7981       enable_shared=no
7982       ;;
7983
7984     *nto* | *qnx*)
7985       # QNX uses GNU C++, but need to define -shared option too, otherwise
7986       # it will coredump.
7987       lt_prog_compiler_pic='-fPIC -shared'
7988       ;;
7989
7990     sysv4*MP*)
7991       if test -d /usr/nec; then
7992         lt_prog_compiler_pic=-Kconform_pic
7993       fi
7994       ;;
7995
7996     *)
7997       lt_prog_compiler_pic='-fPIC'
7998       ;;
7999     esac
8000
8001     case $cc_basename in
8002     nvcc*) # Cuda Compiler Driver 2.2
8003       lt_prog_compiler_wl='-Xlinker '
8004       lt_prog_compiler_pic='-Xcompiler -fPIC'
8005       ;;
8006     esac
8007   else
8008     # PORTME Check for flag to pass linker flags through the system compiler.
8009     case $host_os in
8010     aix*)
8011       lt_prog_compiler_wl='-Wl,'
8012       if test "$host_cpu" = ia64; then
8013         # AIX 5 now supports IA64 processor
8014         lt_prog_compiler_static='-Bstatic'
8015       else
8016         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8017       fi
8018       ;;
8019
8020     mingw* | cygwin* | pw32* | os2* | cegcc*)
8021       # This hack is so that the source file can tell whether it is being
8022       # built for inclusion in a dll (and should export symbols for example).
8023       lt_prog_compiler_pic='-DDLL_EXPORT'
8024       ;;
8025
8026     hpux9* | hpux10* | hpux11*)
8027       lt_prog_compiler_wl='-Wl,'
8028       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8029       # not for PA HP-UX.
8030       case $host_cpu in
8031       hppa*64*|ia64*)
8032         # +Z the default
8033         ;;
8034       *)
8035         lt_prog_compiler_pic='+Z'
8036         ;;
8037       esac
8038       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8039       lt_prog_compiler_static='${wl}-a ${wl}archive'
8040       ;;
8041
8042     irix5* | irix6* | nonstopux*)
8043       lt_prog_compiler_wl='-Wl,'
8044       # PIC (with -KPIC) is the default.
8045       lt_prog_compiler_static='-non_shared'
8046       ;;
8047
8048     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8049       case $cc_basename in
8050       # old Intel for x86_64 which still supported -KPIC.
8051       ecc*)
8052         lt_prog_compiler_wl='-Wl,'
8053         lt_prog_compiler_pic='-KPIC'
8054         lt_prog_compiler_static='-static'
8055         ;;
8056       # icc used to be incompatible with GCC.
8057       # ICC 10 doesn't accept -KPIC any more.
8058       icc* | ifort*)
8059         lt_prog_compiler_wl='-Wl,'
8060         lt_prog_compiler_pic='-fPIC'
8061         lt_prog_compiler_static='-static'
8062         ;;
8063       # Lahey Fortran 8.1.
8064       lf95*)
8065         lt_prog_compiler_wl='-Wl,'
8066         lt_prog_compiler_pic='--shared'
8067         lt_prog_compiler_static='--static'
8068         ;;
8069       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8070         # Portland Group compilers (*not* the Pentium gcc compiler,
8071         # which looks to be a dead project)
8072         lt_prog_compiler_wl='-Wl,'
8073         lt_prog_compiler_pic='-fpic'
8074         lt_prog_compiler_static='-Bstatic'
8075         ;;
8076       ccc*)
8077         lt_prog_compiler_wl='-Wl,'
8078         # All Alpha code is PIC.
8079         lt_prog_compiler_static='-non_shared'
8080         ;;
8081       xl* | bgxl* | bgf* | mpixl*)
8082         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8083         lt_prog_compiler_wl='-Wl,'
8084         lt_prog_compiler_pic='-qpic'
8085         lt_prog_compiler_static='-qstaticlink'
8086         ;;
8087       *)
8088         case `$CC -V 2>&1 | sed 5q` in
8089         *Sun\ F* | *Sun*Fortran*)
8090           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8091           lt_prog_compiler_pic='-KPIC'
8092           lt_prog_compiler_static='-Bstatic'
8093           lt_prog_compiler_wl=''
8094           ;;
8095         *Sun\ C*)
8096           # Sun C 5.9
8097           lt_prog_compiler_pic='-KPIC'
8098           lt_prog_compiler_static='-Bstatic'
8099           lt_prog_compiler_wl='-Wl,'
8100           ;;
8101         esac
8102         ;;
8103       esac
8104       ;;
8105
8106     newsos6)
8107       lt_prog_compiler_pic='-KPIC'
8108       lt_prog_compiler_static='-Bstatic'
8109       ;;
8110
8111     *nto* | *qnx*)
8112       # QNX uses GNU C++, but need to define -shared option too, otherwise
8113       # it will coredump.
8114       lt_prog_compiler_pic='-fPIC -shared'
8115       ;;
8116
8117     osf3* | osf4* | osf5*)
8118       lt_prog_compiler_wl='-Wl,'
8119       # All OSF/1 code is PIC.
8120       lt_prog_compiler_static='-non_shared'
8121       ;;
8122
8123     rdos*)
8124       lt_prog_compiler_static='-non_shared'
8125       ;;
8126
8127     solaris*)
8128       lt_prog_compiler_pic='-KPIC'
8129       lt_prog_compiler_static='-Bstatic'
8130       case $cc_basename in
8131       f77* | f90* | f95*)
8132         lt_prog_compiler_wl='-Qoption ld ';;
8133       *)
8134         lt_prog_compiler_wl='-Wl,';;
8135       esac
8136       ;;
8137
8138     sunos4*)
8139       lt_prog_compiler_wl='-Qoption ld '
8140       lt_prog_compiler_pic='-PIC'
8141       lt_prog_compiler_static='-Bstatic'
8142       ;;
8143
8144     sysv4 | sysv4.2uw2* | sysv4.3*)
8145       lt_prog_compiler_wl='-Wl,'
8146       lt_prog_compiler_pic='-KPIC'
8147       lt_prog_compiler_static='-Bstatic'
8148       ;;
8149
8150     sysv4*MP*)
8151       if test -d /usr/nec ;then
8152         lt_prog_compiler_pic='-Kconform_pic'
8153         lt_prog_compiler_static='-Bstatic'
8154       fi
8155       ;;
8156
8157     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8158       lt_prog_compiler_wl='-Wl,'
8159       lt_prog_compiler_pic='-KPIC'
8160       lt_prog_compiler_static='-Bstatic'
8161       ;;
8162
8163     unicos*)
8164       lt_prog_compiler_wl='-Wl,'
8165       lt_prog_compiler_can_build_shared=no
8166       ;;
8167
8168     uts4*)
8169       lt_prog_compiler_pic='-pic'
8170       lt_prog_compiler_static='-Bstatic'
8171       ;;
8172
8173     *)
8174       lt_prog_compiler_can_build_shared=no
8175       ;;
8176     esac
8177   fi
8178
8179 case $host_os in
8180   # For platforms which do not support PIC, -DPIC is meaningless:
8181   *djgpp*)
8182     lt_prog_compiler_pic=
8183     ;;
8184   *)
8185     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8186     ;;
8187 esac
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8189 $as_echo "$lt_prog_compiler_pic" >&6; }
8190
8191
8192
8193
8194
8195
8196 #
8197 # Check to make sure the PIC flag actually works.
8198 #
8199 if test -n "$lt_prog_compiler_pic"; then
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8201 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8202 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   lt_cv_prog_compiler_pic_works=no
8206    ac_outfile=conftest.$ac_objext
8207    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8208    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8209    # Insert the option either (1) after the last *FLAGS variable, or
8210    # (2) before a word containing "conftest.", or (3) at the end.
8211    # Note that $ac_compile itself does not contain backslashes and begins
8212    # with a dollar sign (not a hyphen), so the echo should work correctly.
8213    # The option is referenced via a variable to avoid confusing sed.
8214    lt_compile=`echo "$ac_compile" | $SED \
8215    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8216    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217    -e 's:$: $lt_compiler_flag:'`
8218    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8219    (eval "$lt_compile" 2>conftest.err)
8220    ac_status=$?
8221    cat conftest.err >&5
8222    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223    if (exit $ac_status) && test -s "$ac_outfile"; then
8224      # The compiler can only warn and ignore the option if not recognized
8225      # So say no if there are warnings other than the usual output.
8226      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8227      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8228      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8229        lt_cv_prog_compiler_pic_works=yes
8230      fi
8231    fi
8232    $RM conftest*
8233
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8236 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8237
8238 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8239     case $lt_prog_compiler_pic in
8240      "" | " "*) ;;
8241      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8242      esac
8243 else
8244     lt_prog_compiler_pic=
8245      lt_prog_compiler_can_build_shared=no
8246 fi
8247
8248 fi
8249
8250
8251
8252
8253
8254
8255 #
8256 # Check to make sure the static flag actually works.
8257 #
8258 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8260 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8261 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   lt_cv_prog_compiler_static_works=no
8265    save_LDFLAGS="$LDFLAGS"
8266    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8267    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8268    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8269      # The linker can only warn and ignore the option if not recognized
8270      # So say no if there are warnings
8271      if test -s conftest.err; then
8272        # Append any errors to the config.log.
8273        cat conftest.err 1>&5
8274        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8275        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8276        if diff conftest.exp conftest.er2 >/dev/null; then
8277          lt_cv_prog_compiler_static_works=yes
8278        fi
8279      else
8280        lt_cv_prog_compiler_static_works=yes
8281      fi
8282    fi
8283    $RM -r conftest*
8284    LDFLAGS="$save_LDFLAGS"
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8288 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8289
8290 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8291     :
8292 else
8293     lt_prog_compiler_static=
8294 fi
8295
8296
8297
8298
8299
8300
8301
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8304 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   lt_cv_prog_compiler_c_o=no
8308    $RM -r conftest 2>/dev/null
8309    mkdir conftest
8310    cd conftest
8311    mkdir out
8312    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8313
8314    lt_compiler_flag="-o out/conftest2.$ac_objext"
8315    # Insert the option either (1) after the last *FLAGS variable, or
8316    # (2) before a word containing "conftest.", or (3) at the end.
8317    # Note that $ac_compile itself does not contain backslashes and begins
8318    # with a dollar sign (not a hyphen), so the echo should work correctly.
8319    lt_compile=`echo "$ac_compile" | $SED \
8320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8322    -e 's:$: $lt_compiler_flag:'`
8323    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8324    (eval "$lt_compile" 2>out/conftest.err)
8325    ac_status=$?
8326    cat out/conftest.err >&5
8327    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8329    then
8330      # The compiler can only warn and ignore the option if not recognized
8331      # So say no if there are warnings
8332      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8333      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8334      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8335        lt_cv_prog_compiler_c_o=yes
8336      fi
8337    fi
8338    chmod u+w . 2>&5
8339    $RM conftest*
8340    # SGI C++ compiler will create directory out/ii_files/ for
8341    # template instantiation
8342    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8343    $RM out/* && rmdir out
8344    cd ..
8345    $RM -r conftest
8346    $RM conftest*
8347
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8351
8352
8353
8354
8355
8356
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8359 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   lt_cv_prog_compiler_c_o=no
8363    $RM -r conftest 2>/dev/null
8364    mkdir conftest
8365    cd conftest
8366    mkdir out
8367    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8368
8369    lt_compiler_flag="-o out/conftest2.$ac_objext"
8370    # Insert the option either (1) after the last *FLAGS variable, or
8371    # (2) before a word containing "conftest.", or (3) at the end.
8372    # Note that $ac_compile itself does not contain backslashes and begins
8373    # with a dollar sign (not a hyphen), so the echo should work correctly.
8374    lt_compile=`echo "$ac_compile" | $SED \
8375    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8377    -e 's:$: $lt_compiler_flag:'`
8378    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8379    (eval "$lt_compile" 2>out/conftest.err)
8380    ac_status=$?
8381    cat out/conftest.err >&5
8382    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8384    then
8385      # The compiler can only warn and ignore the option if not recognized
8386      # So say no if there are warnings
8387      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8388      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8389      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8390        lt_cv_prog_compiler_c_o=yes
8391      fi
8392    fi
8393    chmod u+w . 2>&5
8394    $RM conftest*
8395    # SGI C++ compiler will create directory out/ii_files/ for
8396    # template instantiation
8397    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8398    $RM out/* && rmdir out
8399    cd ..
8400    $RM -r conftest
8401    $RM conftest*
8402
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8405 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8406
8407
8408
8409
8410 hard_links="nottested"
8411 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8412   # do not overwrite the value of need_locks provided by the user
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8414 $as_echo_n "checking if we can lock with hard links... " >&6; }
8415   hard_links=yes
8416   $RM conftest*
8417   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8418   touch conftest.a
8419   ln conftest.a conftest.b 2>&5 || hard_links=no
8420   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8422 $as_echo "$hard_links" >&6; }
8423   if test "$hard_links" = no; then
8424     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8425 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8426     need_locks=warn
8427   fi
8428 else
8429   need_locks=no
8430 fi
8431
8432
8433
8434
8435
8436
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8438 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8439
8440   runpath_var=
8441   allow_undefined_flag=
8442   always_export_symbols=no
8443   archive_cmds=
8444   archive_expsym_cmds=
8445   compiler_needs_object=no
8446   enable_shared_with_static_runtimes=no
8447   export_dynamic_flag_spec=
8448   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8449   hardcode_automatic=no
8450   hardcode_direct=no
8451   hardcode_direct_absolute=no
8452   hardcode_libdir_flag_spec=
8453   hardcode_libdir_flag_spec_ld=
8454   hardcode_libdir_separator=
8455   hardcode_minus_L=no
8456   hardcode_shlibpath_var=unsupported
8457   inherit_rpath=no
8458   link_all_deplibs=unknown
8459   module_cmds=
8460   module_expsym_cmds=
8461   old_archive_from_new_cmds=
8462   old_archive_from_expsyms_cmds=
8463   thread_safe_flag_spec=
8464   whole_archive_flag_spec=
8465   # include_expsyms should be a list of space-separated symbols to be *always*
8466   # included in the symbol list
8467   include_expsyms=
8468   # exclude_expsyms can be an extended regexp of symbols to exclude
8469   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8470   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8471   # as well as any symbol that contains `d'.
8472   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8473   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8474   # platforms (ab)use it in PIC code, but their linkers get confused if
8475   # the symbol is explicitly referenced.  Since portable code cannot
8476   # rely on this symbol name, it's probably fine to never include it in
8477   # preloaded symbol tables.
8478   # Exclude shared library initialization/finalization symbols.
8479   extract_expsyms_cmds=
8480
8481   case $host_os in
8482   cygwin* | mingw* | pw32* | cegcc*)
8483     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8484     # When not using gcc, we currently assume that we are using
8485     # Microsoft Visual C++.
8486     if test "$GCC" != yes; then
8487       with_gnu_ld=no
8488     fi
8489     ;;
8490   interix*)
8491     # we just hope/assume this is gcc and not c89 (= MSVC++)
8492     with_gnu_ld=yes
8493     ;;
8494   openbsd*)
8495     with_gnu_ld=no
8496     ;;
8497   esac
8498
8499   ld_shlibs=yes
8500
8501   # On some targets, GNU ld is compatible enough with the native linker
8502   # that we're better off using the native interface for both.
8503   lt_use_gnu_ld_interface=no
8504   if test "$with_gnu_ld" = yes; then
8505     case $host_os in
8506       aix*)
8507         # The AIX port of GNU ld has always aspired to compatibility
8508         # with the native linker.  However, as the warning in the GNU ld
8509         # block says, versions before 2.19.5* couldn't really create working
8510         # shared libraries, regardless of the interface used.
8511         case `$LD -v 2>&1` in
8512           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8513           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8514           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8515           *)
8516             lt_use_gnu_ld_interface=yes
8517             ;;
8518         esac
8519         ;;
8520       *)
8521         lt_use_gnu_ld_interface=yes
8522         ;;
8523     esac
8524   fi
8525
8526   if test "$lt_use_gnu_ld_interface" = yes; then
8527     # If archive_cmds runs LD, not CC, wlarc should be empty
8528     wlarc='${wl}'
8529
8530     # Set some defaults for GNU ld with shared library support. These
8531     # are reset later if shared libraries are not supported. Putting them
8532     # here allows them to be overridden if necessary.
8533     runpath_var=LD_RUN_PATH
8534     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8535     export_dynamic_flag_spec='${wl}--export-dynamic'
8536     # ancient GNU ld didn't support --whole-archive et. al.
8537     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8538       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8539     else
8540       whole_archive_flag_spec=
8541     fi
8542     supports_anon_versioning=no
8543     case `$LD -v 2>&1` in
8544       *GNU\ gold*) supports_anon_versioning=yes ;;
8545       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8546       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8547       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8548       *\ 2.11.*) ;; # other 2.11 versions
8549       *) supports_anon_versioning=yes ;;
8550     esac
8551
8552     # See if GNU ld supports shared libraries.
8553     case $host_os in
8554     aix[3-9]*)
8555       # On AIX/PPC, the GNU linker is very broken
8556       if test "$host_cpu" != ia64; then
8557         ld_shlibs=no
8558         cat <<_LT_EOF 1>&2
8559
8560 *** Warning: the GNU linker, at least up to release 2.19, is reported
8561 *** to be unable to reliably create shared libraries on AIX.
8562 *** Therefore, libtool is disabling shared libraries support.  If you
8563 *** really care for shared libraries, you may want to install binutils
8564 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8565 *** You will then need to restart the configuration process.
8566
8567 _LT_EOF
8568       fi
8569       ;;
8570
8571     amigaos*)
8572       case $host_cpu in
8573       powerpc)
8574             # see comment about AmigaOS4 .so support
8575             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576             archive_expsym_cmds=''
8577         ;;
8578       m68k)
8579             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)'
8580             hardcode_libdir_flag_spec='-L$libdir'
8581             hardcode_minus_L=yes
8582         ;;
8583       esac
8584       ;;
8585
8586     beos*)
8587       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8588         allow_undefined_flag=unsupported
8589         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8590         # support --undefined.  This deserves some investigation.  FIXME
8591         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592       else
8593         ld_shlibs=no
8594       fi
8595       ;;
8596
8597     cygwin* | mingw* | pw32* | cegcc*)
8598       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8599       # as there is no search path for DLLs.
8600       hardcode_libdir_flag_spec='-L$libdir'
8601       export_dynamic_flag_spec='${wl}--export-all-symbols'
8602       allow_undefined_flag=unsupported
8603       always_export_symbols=no
8604       enable_shared_with_static_runtimes=yes
8605       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8606
8607       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8608         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8609         # If the export-symbols file already is a .def file (1st line
8610         # is EXPORTS), use it as is; otherwise, prepend...
8611         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8612           cp $export_symbols $output_objdir/$soname.def;
8613         else
8614           echo EXPORTS > $output_objdir/$soname.def;
8615           cat $export_symbols >> $output_objdir/$soname.def;
8616         fi~
8617         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8618       else
8619         ld_shlibs=no
8620       fi
8621       ;;
8622
8623     haiku*)
8624       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625       link_all_deplibs=yes
8626       ;;
8627
8628     interix[3-9]*)
8629       hardcode_direct=no
8630       hardcode_shlibpath_var=no
8631       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8632       export_dynamic_flag_spec='${wl}-E'
8633       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8634       # Instead, shared libraries are loaded at an image base (0x10000000 by
8635       # default) and relocated if they conflict, which is a slow very memory
8636       # consuming and fragmenting process.  To avoid this, we pick a random,
8637       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8638       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8639       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8640       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'
8641       ;;
8642
8643     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8644       tmp_diet=no
8645       if test "$host_os" = linux-dietlibc; then
8646         case $cc_basename in
8647           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8648         esac
8649       fi
8650       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8651          && test "$tmp_diet" = no
8652       then
8653         tmp_addflag=
8654         tmp_sharedflag='-shared'
8655         case $cc_basename,$host_cpu in
8656         pgcc*)                          # Portland Group C compiler
8657           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'
8658           tmp_addflag=' $pic_flag'
8659           ;;
8660         pgf77* | pgf90* | pgf95* | pgfortran*)
8661                                         # Portland Group f77 and f90 compilers
8662           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'
8663           tmp_addflag=' $pic_flag -Mnomain' ;;
8664         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8665           tmp_addflag=' -i_dynamic' ;;
8666         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8667           tmp_addflag=' -i_dynamic -nofor_main' ;;
8668         ifc* | ifort*)                  # Intel Fortran compiler
8669           tmp_addflag=' -nofor_main' ;;
8670         lf95*)                          # Lahey Fortran 8.1
8671           whole_archive_flag_spec=
8672           tmp_sharedflag='--shared' ;;
8673         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8674           tmp_sharedflag='-qmkshrobj'
8675           tmp_addflag= ;;
8676         nvcc*)  # Cuda Compiler Driver 2.2
8677           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'
8678           compiler_needs_object=yes
8679           ;;
8680         esac
8681         case `$CC -V 2>&1 | sed 5q` in
8682         *Sun\ C*)                       # Sun C 5.9
8683           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'
8684           compiler_needs_object=yes
8685           tmp_sharedflag='-G' ;;
8686         *Sun\ F*)                       # Sun Fortran 8.3
8687           tmp_sharedflag='-G' ;;
8688         esac
8689         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690
8691         if test "x$supports_anon_versioning" = xyes; then
8692           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8693             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8694             echo "local: *; };" >> $output_objdir/$libname.ver~
8695             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8696         fi
8697
8698         case $cc_basename in
8699         xlf* | bgf* | bgxlf* | mpixlf*)
8700           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8701           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8702           hardcode_libdir_flag_spec=
8703           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8704           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8705           if test "x$supports_anon_versioning" = xyes; then
8706             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8707               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8708               echo "local: *; };" >> $output_objdir/$libname.ver~
8709               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8710           fi
8711           ;;
8712         esac
8713       else
8714         ld_shlibs=no
8715       fi
8716       ;;
8717
8718     netbsd*)
8719       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8720         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8721         wlarc=
8722       else
8723         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8724         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8725       fi
8726       ;;
8727
8728     solaris*)
8729       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8730         ld_shlibs=no
8731         cat <<_LT_EOF 1>&2
8732
8733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8734 *** create shared libraries on Solaris systems.  Therefore, libtool
8735 *** is disabling shared libraries support.  We urge you to upgrade GNU
8736 *** binutils to release 2.9.1 or newer.  Another option is to modify
8737 *** your PATH or compiler configuration so that the native linker is
8738 *** used, and then restart.
8739
8740 _LT_EOF
8741       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8742         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744       else
8745         ld_shlibs=no
8746       fi
8747       ;;
8748
8749     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8750       case `$LD -v 2>&1` in
8751         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8752         ld_shlibs=no
8753         cat <<_LT_EOF 1>&2
8754
8755 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8756 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8757 *** is disabling shared libraries support.  We urge you to upgrade GNU
8758 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8759 *** your PATH or compiler configuration so that the native linker is
8760 *** used, and then restart.
8761
8762 _LT_EOF
8763         ;;
8764         *)
8765           # For security reasons, it is highly recommended that you always
8766           # use absolute paths for naming shared libraries, and exclude the
8767           # DT_RUNPATH tag from executables and libraries.  But doing so
8768           # requires that you compile everything twice, which is a pain.
8769           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8770             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773           else
8774             ld_shlibs=no
8775           fi
8776         ;;
8777       esac
8778       ;;
8779
8780     sunos4*)
8781       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782       wlarc=
8783       hardcode_direct=yes
8784       hardcode_shlibpath_var=no
8785       ;;
8786
8787     *)
8788       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8789         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8791       else
8792         ld_shlibs=no
8793       fi
8794       ;;
8795     esac
8796
8797     if test "$ld_shlibs" = no; then
8798       runpath_var=
8799       hardcode_libdir_flag_spec=
8800       export_dynamic_flag_spec=
8801       whole_archive_flag_spec=
8802     fi
8803   else
8804     # PORTME fill in a description of your system's linker (not GNU ld)
8805     case $host_os in
8806     aix3*)
8807       allow_undefined_flag=unsupported
8808       always_export_symbols=yes
8809       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'
8810       # Note: this linker hardcodes the directories in LIBPATH if there
8811       # are no directories specified by -L.
8812       hardcode_minus_L=yes
8813       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8814         # Neither direct hardcoding nor static linking is supported with a
8815         # broken collect2.
8816         hardcode_direct=unsupported
8817       fi
8818       ;;
8819
8820     aix[4-9]*)
8821       if test "$host_cpu" = ia64; then
8822         # On IA64, the linker does run time linking by default, so we don't
8823         # have to do anything special.
8824         aix_use_runtimelinking=no
8825         exp_sym_flag='-Bexport'
8826         no_entry_flag=""
8827       else
8828         # If we're using GNU nm, then we don't want the "-C" option.
8829         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8830         # Also, AIX nm treats weak defined symbols like other global
8831         # defined symbols, whereas GNU nm marks them as "W".
8832         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8833           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'
8834         else
8835           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'
8836         fi
8837         aix_use_runtimelinking=no
8838
8839         # Test if we are trying to use run time linking or normal
8840         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8841         # need to do runtime linking.
8842         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8843           for ld_flag in $LDFLAGS; do
8844           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8845             aix_use_runtimelinking=yes
8846             break
8847           fi
8848           done
8849           ;;
8850         esac
8851
8852         exp_sym_flag='-bexport'
8853         no_entry_flag='-bnoentry'
8854       fi
8855
8856       # When large executables or shared objects are built, AIX ld can
8857       # have problems creating the table of contents.  If linking a library
8858       # or program results in "error TOC overflow" add -mminimal-toc to
8859       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8860       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8861
8862       archive_cmds=''
8863       hardcode_direct=yes
8864       hardcode_direct_absolute=yes
8865       hardcode_libdir_separator=':'
8866       link_all_deplibs=yes
8867       file_list_spec='${wl}-f,'
8868
8869       if test "$GCC" = yes; then
8870         case $host_os in aix4.[012]|aix4.[012].*)
8871         # We only want to do this on AIX 4.2 and lower, the check
8872         # below for broken collect2 doesn't work under 4.3+
8873           collect2name=`${CC} -print-prog-name=collect2`
8874           if test -f "$collect2name" &&
8875            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8876           then
8877           # We have reworked collect2
8878           :
8879           else
8880           # We have old collect2
8881           hardcode_direct=unsupported
8882           # It fails to find uninstalled libraries when the uninstalled
8883           # path is not listed in the libpath.  Setting hardcode_minus_L
8884           # to unsupported forces relinking
8885           hardcode_minus_L=yes
8886           hardcode_libdir_flag_spec='-L$libdir'
8887           hardcode_libdir_separator=
8888           fi
8889           ;;
8890         esac
8891         shared_flag='-shared'
8892         if test "$aix_use_runtimelinking" = yes; then
8893           shared_flag="$shared_flag "'${wl}-G'
8894         fi
8895       else
8896         # not using gcc
8897         if test "$host_cpu" = ia64; then
8898         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8899         # chokes on -Wl,-G. The following line is correct:
8900           shared_flag='-G'
8901         else
8902           if test "$aix_use_runtimelinking" = yes; then
8903             shared_flag='${wl}-G'
8904           else
8905             shared_flag='${wl}-bM:SRE'
8906           fi
8907         fi
8908       fi
8909
8910       export_dynamic_flag_spec='${wl}-bexpall'
8911       # It seems that -bexpall does not export symbols beginning with
8912       # underscore (_), so it is better to generate a list of symbols to export.
8913       always_export_symbols=yes
8914       if test "$aix_use_runtimelinking" = yes; then
8915         # Warning - without using the other runtime loading flags (-brtl),
8916         # -berok will link without error, but may produce a broken library.
8917         allow_undefined_flag='-berok'
8918         # Determine the default libpath from the value encoded in an
8919         # empty executable.
8920         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h.  */
8922
8923 int
8924 main ()
8925 {
8926
8927   ;
8928   return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_link "$LINENO"; then :
8932
8933 lt_aix_libpath_sed='
8934     /Import File Strings/,/^$/ {
8935         /^0/ {
8936             s/^0  *\(.*\)$/\1/
8937             p
8938         }
8939     }'
8940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 # Check for a 64-bit object if we didn't find anything.
8942 if test -z "$aix_libpath"; then
8943   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8944 fi
8945 fi
8946 rm -f core conftest.err conftest.$ac_objext \
8947     conftest$ac_exeext conftest.$ac_ext
8948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949
8950         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951         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"
8952       else
8953         if test "$host_cpu" = ia64; then
8954           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955           allow_undefined_flag="-z nodefs"
8956           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"
8957         else
8958          # Determine the default libpath from the value encoded in an
8959          # empty executable.
8960          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962
8963 int
8964 main ()
8965 {
8966
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972
8973 lt_aix_libpath_sed='
8974     /Import File Strings/,/^$/ {
8975         /^0/ {
8976             s/^0  *\(.*\)$/\1/
8977             p
8978         }
8979     }'
8980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981 # Check for a 64-bit object if we didn't find anything.
8982 if test -z "$aix_libpath"; then
8983   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984 fi
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext \
8987     conftest$ac_exeext conftest.$ac_ext
8988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8989
8990          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8991           # Warning - without using the other run time loading flags,
8992           # -berok will link without error, but may produce a broken library.
8993           no_undefined_flag=' ${wl}-bernotok'
8994           allow_undefined_flag=' ${wl}-berok'
8995           if test "$with_gnu_ld" = yes; then
8996             # We only use this code for GNU lds that support --whole-archive.
8997             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8998           else
8999             # Exported symbols can be pulled into shared objects from archives
9000             whole_archive_flag_spec='$convenience'
9001           fi
9002           archive_cmds_need_lc=yes
9003           # This is similar to how AIX traditionally builds its shared libraries.
9004           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'
9005         fi
9006       fi
9007       ;;
9008
9009     amigaos*)
9010       case $host_cpu in
9011       powerpc)
9012             # see comment about AmigaOS4 .so support
9013             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9014             archive_expsym_cmds=''
9015         ;;
9016       m68k)
9017             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)'
9018             hardcode_libdir_flag_spec='-L$libdir'
9019             hardcode_minus_L=yes
9020         ;;
9021       esac
9022       ;;
9023
9024     bsdi[45]*)
9025       export_dynamic_flag_spec=-rdynamic
9026       ;;
9027
9028     cygwin* | mingw* | pw32* | cegcc*)
9029       # When not using gcc, we currently assume that we are using
9030       # Microsoft Visual C++.
9031       # hardcode_libdir_flag_spec is actually meaningless, as there is
9032       # no search path for DLLs.
9033       hardcode_libdir_flag_spec=' '
9034       allow_undefined_flag=unsupported
9035       # Tell ltmain to make .lib files, not .a files.
9036       libext=lib
9037       # Tell ltmain to make .dll files, not .so files.
9038       shrext_cmds=".dll"
9039       # FIXME: Setting linknames here is a bad hack.
9040       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9041       # The linker will automatically build a .lib file if we build a DLL.
9042       old_archive_from_new_cmds='true'
9043       # FIXME: Should let the user specify the lib program.
9044       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9045       fix_srcfile_path='`cygpath -w "$srcfile"`'
9046       enable_shared_with_static_runtimes=yes
9047       ;;
9048
9049     darwin* | rhapsody*)
9050
9051
9052   archive_cmds_need_lc=no
9053   hardcode_direct=no
9054   hardcode_automatic=yes
9055   hardcode_shlibpath_var=unsupported
9056   if test "$lt_cv_ld_force_load" = "yes"; then
9057     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\"`'
9058   else
9059     whole_archive_flag_spec=''
9060   fi
9061   link_all_deplibs=yes
9062   allow_undefined_flag="$_lt_dar_allow_undefined"
9063   case $cc_basename in
9064      ifort*) _lt_dar_can_shared=yes ;;
9065      *) _lt_dar_can_shared=$GCC ;;
9066   esac
9067   if test "$_lt_dar_can_shared" = "yes"; then
9068     output_verbose_link_cmd=func_echo_all
9069     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9070     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9071     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}"
9072     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}"
9073
9074   else
9075   ld_shlibs=no
9076   fi
9077
9078       ;;
9079
9080     dgux*)
9081       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082       hardcode_libdir_flag_spec='-L$libdir'
9083       hardcode_shlibpath_var=no
9084       ;;
9085
9086     freebsd1*)
9087       ld_shlibs=no
9088       ;;
9089
9090     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9091     # support.  Future versions do this automatically, but an explicit c++rt0.o
9092     # does not break anything, and helps significantly (at the cost of a little
9093     # extra space).
9094     freebsd2.2*)
9095       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9096       hardcode_libdir_flag_spec='-R$libdir'
9097       hardcode_direct=yes
9098       hardcode_shlibpath_var=no
9099       ;;
9100
9101     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9102     freebsd2*)
9103       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9104       hardcode_direct=yes
9105       hardcode_minus_L=yes
9106       hardcode_shlibpath_var=no
9107       ;;
9108
9109     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9110     freebsd* | dragonfly*)
9111       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9112       hardcode_libdir_flag_spec='-R$libdir'
9113       hardcode_direct=yes
9114       hardcode_shlibpath_var=no
9115       ;;
9116
9117     hpux9*)
9118       if test "$GCC" = yes; then
9119         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'
9120       else
9121         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'
9122       fi
9123       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124       hardcode_libdir_separator=:
9125       hardcode_direct=yes
9126
9127       # hardcode_minus_L: Not really in the search PATH,
9128       # but as the default location of the library.
9129       hardcode_minus_L=yes
9130       export_dynamic_flag_spec='${wl}-E'
9131       ;;
9132
9133     hpux10*)
9134       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9135         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9136       else
9137         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9138       fi
9139       if test "$with_gnu_ld" = no; then
9140         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141         hardcode_libdir_flag_spec_ld='+b $libdir'
9142         hardcode_libdir_separator=:
9143         hardcode_direct=yes
9144         hardcode_direct_absolute=yes
9145         export_dynamic_flag_spec='${wl}-E'
9146         # hardcode_minus_L: Not really in the search PATH,
9147         # but as the default location of the library.
9148         hardcode_minus_L=yes
9149       fi
9150       ;;
9151
9152     hpux11*)
9153       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9154         case $host_cpu in
9155         hppa*64*)
9156           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157           ;;
9158         ia64*)
9159           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9160           ;;
9161         *)
9162           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163           ;;
9164         esac
9165       else
9166         case $host_cpu in
9167         hppa*64*)
9168           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9169           ;;
9170         ia64*)
9171           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9172           ;;
9173         *)
9174
9175           # Older versions of the 11.00 compiler do not understand -b yet
9176           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9177           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9178 $as_echo_n "checking if $CC understands -b... " >&6; }
9179 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9180   $as_echo_n "(cached) " >&6
9181 else
9182   lt_cv_prog_compiler__b=no
9183    save_LDFLAGS="$LDFLAGS"
9184    LDFLAGS="$LDFLAGS -b"
9185    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9186    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9187      # The linker can only warn and ignore the option if not recognized
9188      # So say no if there are warnings
9189      if test -s conftest.err; then
9190        # Append any errors to the config.log.
9191        cat conftest.err 1>&5
9192        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9193        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9194        if diff conftest.exp conftest.er2 >/dev/null; then
9195          lt_cv_prog_compiler__b=yes
9196        fi
9197      else
9198        lt_cv_prog_compiler__b=yes
9199      fi
9200    fi
9201    $RM -r conftest*
9202    LDFLAGS="$save_LDFLAGS"
9203
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9206 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9207
9208 if test x"$lt_cv_prog_compiler__b" = xyes; then
9209     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210 else
9211     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9212 fi
9213
9214           ;;
9215         esac
9216       fi
9217       if test "$with_gnu_ld" = no; then
9218         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9219         hardcode_libdir_separator=:
9220
9221         case $host_cpu in
9222         hppa*64*|ia64*)
9223           hardcode_direct=no
9224           hardcode_shlibpath_var=no
9225           ;;
9226         *)
9227           hardcode_direct=yes
9228           hardcode_direct_absolute=yes
9229           export_dynamic_flag_spec='${wl}-E'
9230
9231           # hardcode_minus_L: Not really in the search PATH,
9232           # but as the default location of the library.
9233           hardcode_minus_L=yes
9234           ;;
9235         esac
9236       fi
9237       ;;
9238
9239     irix5* | irix6* | nonstopux*)
9240       if test "$GCC" = yes; then
9241         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'
9242         # Try to use the -exported_symbol ld option, if it does not
9243         # work, assume that -exports_file does not work either and
9244         # implicitly export all symbols.
9245         save_LDFLAGS="$LDFLAGS"
9246         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9247         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h.  */
9249 int foo(void) {}
9250 _ACEOF
9251 if ac_fn_c_try_link "$LINENO"; then :
9252   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'
9253
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext \
9256     conftest$ac_exeext conftest.$ac_ext
9257         LDFLAGS="$save_LDFLAGS"
9258       else
9259         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'
9260         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'
9261       fi
9262       archive_cmds_need_lc='no'
9263       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264       hardcode_libdir_separator=:
9265       inherit_rpath=yes
9266       link_all_deplibs=yes
9267       ;;
9268
9269     netbsd*)
9270       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9271         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9272       else
9273         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9274       fi
9275       hardcode_libdir_flag_spec='-R$libdir'
9276       hardcode_direct=yes
9277       hardcode_shlibpath_var=no
9278       ;;
9279
9280     newsos6)
9281       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282       hardcode_direct=yes
9283       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284       hardcode_libdir_separator=:
9285       hardcode_shlibpath_var=no
9286       ;;
9287
9288     *nto* | *qnx*)
9289       ;;
9290
9291     openbsd*)
9292       if test -f /usr/libexec/ld.so; then
9293         hardcode_direct=yes
9294         hardcode_shlibpath_var=no
9295         hardcode_direct_absolute=yes
9296         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9297           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9298           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9299           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9300           export_dynamic_flag_spec='${wl}-E'
9301         else
9302           case $host_os in
9303            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9304              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9305              hardcode_libdir_flag_spec='-R$libdir'
9306              ;;
9307            *)
9308              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9309              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310              ;;
9311           esac
9312         fi
9313       else
9314         ld_shlibs=no
9315       fi
9316       ;;
9317
9318     os2*)
9319       hardcode_libdir_flag_spec='-L$libdir'
9320       hardcode_minus_L=yes
9321       allow_undefined_flag=unsupported
9322       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'
9323       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9324       ;;
9325
9326     osf3*)
9327       if test "$GCC" = yes; then
9328         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9329         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'
9330       else
9331         allow_undefined_flag=' -expect_unresolved \*'
9332         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'
9333       fi
9334       archive_cmds_need_lc='no'
9335       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336       hardcode_libdir_separator=:
9337       ;;
9338
9339     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9340       if test "$GCC" = yes; then
9341         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9342         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'
9343         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344       else
9345         allow_undefined_flag=' -expect_unresolved \*'
9346         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'
9347         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~
9348         $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'
9349
9350         # Both c and cxx compiler support -rpath directly
9351         hardcode_libdir_flag_spec='-rpath $libdir'
9352       fi
9353       archive_cmds_need_lc='no'
9354       hardcode_libdir_separator=:
9355       ;;
9356
9357     solaris*)
9358       no_undefined_flag=' -z defs'
9359       if test "$GCC" = yes; then
9360         wlarc='${wl}'
9361         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9362         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9363           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9364       else
9365         case `$CC -V 2>&1` in
9366         *"Compilers 5.0"*)
9367           wlarc=''
9368           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9370           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9371           ;;
9372         *)
9373           wlarc='${wl}'
9374           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9375           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9376           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9377           ;;
9378         esac
9379       fi
9380       hardcode_libdir_flag_spec='-R$libdir'
9381       hardcode_shlibpath_var=no
9382       case $host_os in
9383       solaris2.[0-5] | solaris2.[0-5].*) ;;
9384       *)
9385         # The compiler driver will combine and reorder linker options,
9386         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9387         # but is careful enough not to reorder.
9388         # Supported since Solaris 2.6 (maybe 2.5.1?)
9389         if test "$GCC" = yes; then
9390           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9391         else
9392           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9393         fi
9394         ;;
9395       esac
9396       link_all_deplibs=yes
9397       ;;
9398
9399     sunos4*)
9400       if test "x$host_vendor" = xsequent; then
9401         # Use $CC to link under sequent, because it throws in some extra .o
9402         # files that make .init and .fini sections work.
9403         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9404       else
9405         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9406       fi
9407       hardcode_libdir_flag_spec='-L$libdir'
9408       hardcode_direct=yes
9409       hardcode_minus_L=yes
9410       hardcode_shlibpath_var=no
9411       ;;
9412
9413     sysv4)
9414       case $host_vendor in
9415         sni)
9416           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417           hardcode_direct=yes # is this really true???
9418         ;;
9419         siemens)
9420           ## LD is ld it makes a PLAMLIB
9421           ## CC just makes a GrossModule.
9422           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9423           reload_cmds='$CC -r -o $output$reload_objs'
9424           hardcode_direct=no
9425         ;;
9426         motorola)
9427           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9429         ;;
9430       esac
9431       runpath_var='LD_RUN_PATH'
9432       hardcode_shlibpath_var=no
9433       ;;
9434
9435     sysv4.3*)
9436       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437       hardcode_shlibpath_var=no
9438       export_dynamic_flag_spec='-Bexport'
9439       ;;
9440
9441     sysv4*MP*)
9442       if test -d /usr/nec; then
9443         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444         hardcode_shlibpath_var=no
9445         runpath_var=LD_RUN_PATH
9446         hardcode_runpath_var=yes
9447         ld_shlibs=yes
9448       fi
9449       ;;
9450
9451     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9452       no_undefined_flag='${wl}-z,text'
9453       archive_cmds_need_lc=no
9454       hardcode_shlibpath_var=no
9455       runpath_var='LD_RUN_PATH'
9456
9457       if test "$GCC" = yes; then
9458         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460       else
9461         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463       fi
9464       ;;
9465
9466     sysv5* | sco3.2v5* | sco5v6*)
9467       # Note: We can NOT use -z defs as we might desire, because we do not
9468       # link with -lc, and that would cause any symbols used from libc to
9469       # always be unresolved, which means just about no library would
9470       # ever link correctly.  If we're not using GNU ld we use -z text
9471       # though, which does catch some bad symbols but isn't as heavy-handed
9472       # as -z defs.
9473       no_undefined_flag='${wl}-z,text'
9474       allow_undefined_flag='${wl}-z,nodefs'
9475       archive_cmds_need_lc=no
9476       hardcode_shlibpath_var=no
9477       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9478       hardcode_libdir_separator=':'
9479       link_all_deplibs=yes
9480       export_dynamic_flag_spec='${wl}-Bexport'
9481       runpath_var='LD_RUN_PATH'
9482
9483       if test "$GCC" = yes; then
9484         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486       else
9487         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489       fi
9490       ;;
9491
9492     uts4*)
9493       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494       hardcode_libdir_flag_spec='-L$libdir'
9495       hardcode_shlibpath_var=no
9496       ;;
9497
9498     *)
9499       ld_shlibs=no
9500       ;;
9501     esac
9502
9503     if test x$host_vendor = xsni; then
9504       case $host in
9505       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9506         export_dynamic_flag_spec='${wl}-Blargedynsym'
9507         ;;
9508       esac
9509     fi
9510   fi
9511
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9513 $as_echo "$ld_shlibs" >&6; }
9514 test "$ld_shlibs" = no && can_build_shared=no
9515
9516 with_gnu_ld=$with_gnu_ld
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532 #
9533 # Do we need to explicitly link libc?
9534 #
9535 case "x$archive_cmds_need_lc" in
9536 x|xyes)
9537   # Assume -lc should be added
9538   archive_cmds_need_lc=yes
9539
9540   if test "$enable_shared" = yes && test "$GCC" = yes; then
9541     case $archive_cmds in
9542     *'~'*)
9543       # FIXME: we may have to deal with multi-command sequences.
9544       ;;
9545     '$CC '*)
9546       # Test whether the compiler implicitly links with -lc since on some
9547       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9548       # to ld, don't add -lc before -lgcc.
9549       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9550 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9551 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9552   $as_echo_n "(cached) " >&6
9553 else
9554   $RM conftest*
9555         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9556
9557         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9558   (eval $ac_compile) 2>&5
9559   ac_status=$?
9560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9561   test $ac_status = 0; } 2>conftest.err; then
9562           soname=conftest
9563           lib=conftest
9564           libobjs=conftest.$ac_objext
9565           deplibs=
9566           wl=$lt_prog_compiler_wl
9567           pic_flag=$lt_prog_compiler_pic
9568           compiler_flags=-v
9569           linker_flags=-v
9570           verstring=
9571           output_objdir=.
9572           libname=conftest
9573           lt_save_allow_undefined_flag=$allow_undefined_flag
9574           allow_undefined_flag=
9575           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9576   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9577   ac_status=$?
9578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9579   test $ac_status = 0; }
9580           then
9581             lt_cv_archive_cmds_need_lc=no
9582           else
9583             lt_cv_archive_cmds_need_lc=yes
9584           fi
9585           allow_undefined_flag=$lt_save_allow_undefined_flag
9586         else
9587           cat conftest.err 1>&5
9588         fi
9589         $RM conftest*
9590
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9593 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9594       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9595       ;;
9596     esac
9597   fi
9598   ;;
9599 esac
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9759
9760 if test "$GCC" = yes; then
9761   case $host_os in
9762     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9763     *) lt_awk_arg="/^libraries:/" ;;
9764   esac
9765   case $host_os in
9766     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9767     *) lt_sed_strip_eq="s,=/,/,g" ;;
9768   esac
9769   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9770   case $lt_search_path_spec in
9771   *\;*)
9772     # if the path contains ";" then we assume it to be the separator
9773     # otherwise default to the standard path separator (i.e. ":") - it is
9774     # assumed that no part of a normal pathname contains ";" but that should
9775     # okay in the real world where ";" in dirpaths is itself problematic.
9776     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9777     ;;
9778   *)
9779     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9780     ;;
9781   esac
9782   # Ok, now we have the path, separated by spaces, we can step through it
9783   # and add multilib dir if necessary.
9784   lt_tmp_lt_search_path_spec=
9785   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9786   for lt_sys_path in $lt_search_path_spec; do
9787     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9788       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9789     else
9790       test -d "$lt_sys_path" && \
9791         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9792     fi
9793   done
9794   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9795 BEGIN {RS=" "; FS="/|\n";} {
9796   lt_foo="";
9797   lt_count=0;
9798   for (lt_i = NF; lt_i > 0; lt_i--) {
9799     if ($lt_i != "" && $lt_i != ".") {
9800       if ($lt_i == "..") {
9801         lt_count++;
9802       } else {
9803         if (lt_count == 0) {
9804           lt_foo="/" $lt_i lt_foo;
9805         } else {
9806           lt_count--;
9807         }
9808       }
9809     }
9810   }
9811   if (lt_foo != "") { lt_freq[lt_foo]++; }
9812   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9813 }'`
9814   # AWK program above erroneously prepends '/' to C:/dos/paths
9815   # for these hosts.
9816   case $host_os in
9817     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9818       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9819   esac
9820   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9821 else
9822   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9823 fi
9824 library_names_spec=
9825 libname_spec='lib$name'
9826 soname_spec=
9827 shrext_cmds=".so"
9828 postinstall_cmds=
9829 postuninstall_cmds=
9830 finish_cmds=
9831 finish_eval=
9832 shlibpath_var=
9833 shlibpath_overrides_runpath=unknown
9834 version_type=none
9835 dynamic_linker="$host_os ld.so"
9836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9837 need_lib_prefix=unknown
9838 hardcode_into_libs=no
9839
9840 # when you set need_version to no, make sure it does not cause -set_version
9841 # flags to be left without arguments
9842 need_version=unknown
9843
9844 case $host_os in
9845 aix3*)
9846   version_type=linux
9847   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9848   shlibpath_var=LIBPATH
9849
9850   # AIX 3 has no versioning support, so we append a major version to the name.
9851   soname_spec='${libname}${release}${shared_ext}$major'
9852   ;;
9853
9854 aix[4-9]*)
9855   version_type=linux
9856   need_lib_prefix=no
9857   need_version=no
9858   hardcode_into_libs=yes
9859   if test "$host_cpu" = ia64; then
9860     # AIX 5 supports IA64
9861     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9862     shlibpath_var=LD_LIBRARY_PATH
9863   else
9864     # With GCC up to 2.95.x, collect2 would create an import file
9865     # for dependence libraries.  The import file would start with
9866     # the line `#! .'.  This would cause the generated library to
9867     # depend on `.', always an invalid library.  This was fixed in
9868     # development snapshots of GCC prior to 3.0.
9869     case $host_os in
9870       aix4 | aix4.[01] | aix4.[01].*)
9871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9872            echo ' yes '
9873            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9874         :
9875       else
9876         can_build_shared=no
9877       fi
9878       ;;
9879     esac
9880     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9881     # soname into executable. Probably we can add versioning support to
9882     # collect2, so additional links can be useful in future.
9883     if test "$aix_use_runtimelinking" = yes; then
9884       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9885       # instead of lib<name>.a to let people know that these are not
9886       # typical AIX shared libraries.
9887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888     else
9889       # We preserve .a as extension for shared libraries through AIX4.2
9890       # and later when we are not doing run time linking.
9891       library_names_spec='${libname}${release}.a $libname.a'
9892       soname_spec='${libname}${release}${shared_ext}$major'
9893     fi
9894     shlibpath_var=LIBPATH
9895   fi
9896   ;;
9897
9898 amigaos*)
9899   case $host_cpu in
9900   powerpc)
9901     # Since July 2007 AmigaOS4 officially supports .so libraries.
9902     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904     ;;
9905   m68k)
9906     library_names_spec='$libname.ixlibrary $libname.a'
9907     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9908     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'
9909     ;;
9910   esac
9911   ;;
9912
9913 beos*)
9914   library_names_spec='${libname}${shared_ext}'
9915   dynamic_linker="$host_os ld.so"
9916   shlibpath_var=LIBRARY_PATH
9917   ;;
9918
9919 bsdi[45]*)
9920   version_type=linux
9921   need_version=no
9922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923   soname_spec='${libname}${release}${shared_ext}$major'
9924   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9925   shlibpath_var=LD_LIBRARY_PATH
9926   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9927   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9928   # the default ld.so.conf also contains /usr/contrib/lib and
9929   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9930   # libtool to hard-code these into programs
9931   ;;
9932
9933 cygwin* | mingw* | pw32* | cegcc*)
9934   version_type=windows
9935   shrext_cmds=".dll"
9936   need_version=no
9937   need_lib_prefix=no
9938
9939   case $GCC,$host_os in
9940   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9941     library_names_spec='$libname.dll.a'
9942     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9943     postinstall_cmds='base_file=`basename \${file}`~
9944       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9945       dldir=$destdir/`dirname \$dlpath`~
9946       test -d \$dldir || mkdir -p \$dldir~
9947       $install_prog $dir/$dlname \$dldir/$dlname~
9948       chmod a+x \$dldir/$dlname~
9949       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9950         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9951       fi'
9952     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9953       dlpath=$dir/\$dldll~
9954        $RM \$dlpath'
9955     shlibpath_overrides_runpath=yes
9956
9957     case $host_os in
9958     cygwin*)
9959       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9960       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9961
9962       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9963       ;;
9964     mingw* | cegcc*)
9965       # MinGW DLLs use traditional 'lib' prefix
9966       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9967       ;;
9968     pw32*)
9969       # pw32 DLLs use 'pw' prefix rather than 'lib'
9970       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9971       ;;
9972     esac
9973     ;;
9974
9975   *)
9976     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9977     ;;
9978   esac
9979   dynamic_linker='Win32 ld.exe'
9980   # FIXME: first we should search . and the directory the executable is in
9981   shlibpath_var=PATH
9982   ;;
9983
9984 darwin* | rhapsody*)
9985   dynamic_linker="$host_os dyld"
9986   version_type=darwin
9987   need_lib_prefix=no
9988   need_version=no
9989   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9990   soname_spec='${libname}${release}${major}$shared_ext'
9991   shlibpath_overrides_runpath=yes
9992   shlibpath_var=DYLD_LIBRARY_PATH
9993   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9994
9995   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9996   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9997   ;;
9998
9999 dgux*)
10000   version_type=linux
10001   need_lib_prefix=no
10002   need_version=no
10003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10004   soname_spec='${libname}${release}${shared_ext}$major'
10005   shlibpath_var=LD_LIBRARY_PATH
10006   ;;
10007
10008 freebsd1*)
10009   dynamic_linker=no
10010   ;;
10011
10012 freebsd* | dragonfly*)
10013   # DragonFly does not have aout.  When/if they implement a new
10014   # versioning mechanism, adjust this.
10015   if test -x /usr/bin/objformat; then
10016     objformat=`/usr/bin/objformat`
10017   else
10018     case $host_os in
10019     freebsd[123]*) objformat=aout ;;
10020     *) objformat=elf ;;
10021     esac
10022   fi
10023   version_type=freebsd-$objformat
10024   case $version_type in
10025     freebsd-elf*)
10026       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10027       need_version=no
10028       need_lib_prefix=no
10029       ;;
10030     freebsd-*)
10031       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10032       need_version=yes
10033       ;;
10034   esac
10035   shlibpath_var=LD_LIBRARY_PATH
10036   case $host_os in
10037   freebsd2*)
10038     shlibpath_overrides_runpath=yes
10039     ;;
10040   freebsd3.[01]* | freebsdelf3.[01]*)
10041     shlibpath_overrides_runpath=yes
10042     hardcode_into_libs=yes
10043     ;;
10044   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10045   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10046     shlibpath_overrides_runpath=no
10047     hardcode_into_libs=yes
10048     ;;
10049   *) # from 4.6 on, and DragonFly
10050     shlibpath_overrides_runpath=yes
10051     hardcode_into_libs=yes
10052     ;;
10053   esac
10054   ;;
10055
10056 gnu*)
10057   version_type=linux
10058   need_lib_prefix=no
10059   need_version=no
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10061   soname_spec='${libname}${release}${shared_ext}$major'
10062   shlibpath_var=LD_LIBRARY_PATH
10063   hardcode_into_libs=yes
10064   ;;
10065
10066 haiku*)
10067   version_type=linux
10068   need_lib_prefix=no
10069   need_version=no
10070   dynamic_linker="$host_os runtime_loader"
10071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10072   soname_spec='${libname}${release}${shared_ext}$major'
10073   shlibpath_var=LIBRARY_PATH
10074   shlibpath_overrides_runpath=yes
10075   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10076   hardcode_into_libs=yes
10077   ;;
10078
10079 hpux9* | hpux10* | hpux11*)
10080   # Give a soname corresponding to the major version so that dld.sl refuses to
10081   # link against other versions.
10082   version_type=sunos
10083   need_lib_prefix=no
10084   need_version=no
10085   case $host_cpu in
10086   ia64*)
10087     shrext_cmds='.so'
10088     hardcode_into_libs=yes
10089     dynamic_linker="$host_os dld.so"
10090     shlibpath_var=LD_LIBRARY_PATH
10091     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093     soname_spec='${libname}${release}${shared_ext}$major'
10094     if test "X$HPUX_IA64_MODE" = X32; then
10095       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10096     else
10097       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10098     fi
10099     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10100     ;;
10101   hppa*64*)
10102     shrext_cmds='.sl'
10103     hardcode_into_libs=yes
10104     dynamic_linker="$host_os dld.sl"
10105     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108     soname_spec='${libname}${release}${shared_ext}$major'
10109     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10110     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111     ;;
10112   *)
10113     shrext_cmds='.sl'
10114     dynamic_linker="$host_os dld.sl"
10115     shlibpath_var=SHLIB_PATH
10116     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118     soname_spec='${libname}${release}${shared_ext}$major'
10119     ;;
10120   esac
10121   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10122   postinstall_cmds='chmod 555 $lib'
10123   # or fails outright, so override atomically:
10124   install_override_mode=555
10125   ;;
10126
10127 interix[3-9]*)
10128   version_type=linux
10129   need_lib_prefix=no
10130   need_version=no
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10132   soname_spec='${libname}${release}${shared_ext}$major'
10133   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10134   shlibpath_var=LD_LIBRARY_PATH
10135   shlibpath_overrides_runpath=no
10136   hardcode_into_libs=yes
10137   ;;
10138
10139 irix5* | irix6* | nonstopux*)
10140   case $host_os in
10141     nonstopux*) version_type=nonstopux ;;
10142     *)
10143         if test "$lt_cv_prog_gnu_ld" = yes; then
10144                 version_type=linux
10145         else
10146                 version_type=irix
10147         fi ;;
10148   esac
10149   need_lib_prefix=no
10150   need_version=no
10151   soname_spec='${libname}${release}${shared_ext}$major'
10152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10153   case $host_os in
10154   irix5* | nonstopux*)
10155     libsuff= shlibsuff=
10156     ;;
10157   *)
10158     case $LD in # libtool.m4 will add one of these switches to LD
10159     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10160       libsuff= shlibsuff= libmagic=32-bit;;
10161     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10162       libsuff=32 shlibsuff=N32 libmagic=N32;;
10163     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10164       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10165     *) libsuff= shlibsuff= libmagic=never-match;;
10166     esac
10167     ;;
10168   esac
10169   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10170   shlibpath_overrides_runpath=no
10171   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10172   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10173   hardcode_into_libs=yes
10174   ;;
10175
10176 # No shared lib support for Linux oldld, aout, or coff.
10177 linux*oldld* | linux*aout* | linux*coff*)
10178   dynamic_linker=no
10179   ;;
10180
10181 # This must be Linux ELF.
10182 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10183   version_type=linux
10184   need_lib_prefix=no
10185   need_version=no
10186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187   soname_spec='${libname}${release}${shared_ext}$major'
10188   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10189   shlibpath_var=LD_LIBRARY_PATH
10190   shlibpath_overrides_runpath=no
10191
10192   # Some binutils ld are patched to set DT_RUNPATH
10193   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10194   $as_echo_n "(cached) " >&6
10195 else
10196   lt_cv_shlibpath_overrides_runpath=no
10197     save_LDFLAGS=$LDFLAGS
10198     save_libdir=$libdir
10199     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10200          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h.  */
10203
10204 int
10205 main ()
10206 {
10207
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 if ac_fn_c_try_link "$LINENO"; then :
10213   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10214   lt_cv_shlibpath_overrides_runpath=yes
10215 fi
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext \
10218     conftest$ac_exeext conftest.$ac_ext
10219     LDFLAGS=$save_LDFLAGS
10220     libdir=$save_libdir
10221
10222 fi
10223
10224   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10225
10226   # This implies no fast_install, which is unacceptable.
10227   # Some rework will be needed to allow for fast_install
10228   # before this can be enabled.
10229   hardcode_into_libs=yes
10230
10231   # Append ld.so.conf contents to the search path
10232   if test -f /etc/ld.so.conf; then
10233     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' ' '`
10234     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10235   fi
10236
10237   # We used to test for /lib/ld.so.1 and disable shared libraries on
10238   # powerpc, because MkLinux only supported shared libraries with the
10239   # GNU dynamic linker.  Since this was broken with cross compilers,
10240   # most powerpc-linux boxes support dynamic linking these days and
10241   # people can always --disable-shared, the test was removed, and we
10242   # assume the GNU/Linux dynamic linker is in use.
10243   dynamic_linker='GNU/Linux ld.so'
10244   ;;
10245
10246 netbsd*)
10247   version_type=sunos
10248   need_lib_prefix=no
10249   need_version=no
10250   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10253     dynamic_linker='NetBSD (a.out) ld.so'
10254   else
10255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10256     soname_spec='${libname}${release}${shared_ext}$major'
10257     dynamic_linker='NetBSD ld.elf_so'
10258   fi
10259   shlibpath_var=LD_LIBRARY_PATH
10260   shlibpath_overrides_runpath=yes
10261   hardcode_into_libs=yes
10262   ;;
10263
10264 newsos6)
10265   version_type=linux
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=yes
10269   ;;
10270
10271 *nto* | *qnx*)
10272   version_type=qnx
10273   need_lib_prefix=no
10274   need_version=no
10275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276   soname_spec='${libname}${release}${shared_ext}$major'
10277   shlibpath_var=LD_LIBRARY_PATH
10278   shlibpath_overrides_runpath=no
10279   hardcode_into_libs=yes
10280   dynamic_linker='ldqnx.so'
10281   ;;
10282
10283 openbsd*)
10284   version_type=sunos
10285   sys_lib_dlsearch_path_spec="/usr/lib"
10286   need_lib_prefix=no
10287   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10288   case $host_os in
10289     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10290     *)                          need_version=no  ;;
10291   esac
10292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10296     case $host_os in
10297       openbsd2.[89] | openbsd2.[89].*)
10298         shlibpath_overrides_runpath=no
10299         ;;
10300       *)
10301         shlibpath_overrides_runpath=yes
10302         ;;
10303       esac
10304   else
10305     shlibpath_overrides_runpath=yes
10306   fi
10307   ;;
10308
10309 os2*)
10310   libname_spec='$name'
10311   shrext_cmds=".dll"
10312   need_lib_prefix=no
10313   library_names_spec='$libname${shared_ext} $libname.a'
10314   dynamic_linker='OS/2 ld.exe'
10315   shlibpath_var=LIBPATH
10316   ;;
10317
10318 osf3* | osf4* | osf5*)
10319   version_type=osf
10320   need_lib_prefix=no
10321   need_version=no
10322   soname_spec='${libname}${release}${shared_ext}$major'
10323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10326   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10327   ;;
10328
10329 rdos*)
10330   dynamic_linker=no
10331   ;;
10332
10333 solaris*)
10334   version_type=linux
10335   need_lib_prefix=no
10336   need_version=no
10337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338   soname_spec='${libname}${release}${shared_ext}$major'
10339   shlibpath_var=LD_LIBRARY_PATH
10340   shlibpath_overrides_runpath=yes
10341   hardcode_into_libs=yes
10342   # ldd complains unless libraries are executable
10343   postinstall_cmds='chmod +x $lib'
10344   ;;
10345
10346 sunos4*)
10347   version_type=sunos
10348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10349   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   shlibpath_overrides_runpath=yes
10352   if test "$with_gnu_ld" = yes; then
10353     need_lib_prefix=no
10354   fi
10355   need_version=yes
10356   ;;
10357
10358 sysv4 | sysv4.3*)
10359   version_type=linux
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361   soname_spec='${libname}${release}${shared_ext}$major'
10362   shlibpath_var=LD_LIBRARY_PATH
10363   case $host_vendor in
10364     sni)
10365       shlibpath_overrides_runpath=no
10366       need_lib_prefix=no
10367       runpath_var=LD_RUN_PATH
10368       ;;
10369     siemens)
10370       need_lib_prefix=no
10371       ;;
10372     motorola)
10373       need_lib_prefix=no
10374       need_version=no
10375       shlibpath_overrides_runpath=no
10376       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10377       ;;
10378   esac
10379   ;;
10380
10381 sysv4*MP*)
10382   if test -d /usr/nec ;then
10383     version_type=linux
10384     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10385     soname_spec='$libname${shared_ext}.$major'
10386     shlibpath_var=LD_LIBRARY_PATH
10387   fi
10388   ;;
10389
10390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10391   version_type=freebsd-elf
10392   need_lib_prefix=no
10393   need_version=no
10394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10395   soname_spec='${libname}${release}${shared_ext}$major'
10396   shlibpath_var=LD_LIBRARY_PATH
10397   shlibpath_overrides_runpath=yes
10398   hardcode_into_libs=yes
10399   if test "$with_gnu_ld" = yes; then
10400     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10401   else
10402     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10403     case $host_os in
10404       sco3.2v5*)
10405         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10406         ;;
10407     esac
10408   fi
10409   sys_lib_dlsearch_path_spec='/usr/lib'
10410   ;;
10411
10412 tpf*)
10413   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10414   version_type=linux
10415   need_lib_prefix=no
10416   need_version=no
10417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418   shlibpath_var=LD_LIBRARY_PATH
10419   shlibpath_overrides_runpath=no
10420   hardcode_into_libs=yes
10421   ;;
10422
10423 uts4*)
10424   version_type=linux
10425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426   soname_spec='${libname}${release}${shared_ext}$major'
10427   shlibpath_var=LD_LIBRARY_PATH
10428   ;;
10429
10430 *)
10431   dynamic_linker=no
10432   ;;
10433 esac
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10435 $as_echo "$dynamic_linker" >&6; }
10436 test "$dynamic_linker" = no && can_build_shared=no
10437
10438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10439 if test "$GCC" = yes; then
10440   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10441 fi
10442
10443 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10444   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10445 fi
10446 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10447   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10448 fi
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10542 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10543 hardcode_action=
10544 if test -n "$hardcode_libdir_flag_spec" ||
10545    test -n "$runpath_var" ||
10546    test "X$hardcode_automatic" = "Xyes" ; then
10547
10548   # We can hardcode non-existent directories.
10549   if test "$hardcode_direct" != no &&
10550      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10551      # have to relink, otherwise we might link with an installed library
10552      # when we should be linking with a yet-to-be-installed one
10553      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10554      test "$hardcode_minus_L" != no; then
10555     # Linking always hardcodes the temporary library directory.
10556     hardcode_action=relink
10557   else
10558     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10559     hardcode_action=immediate
10560   fi
10561 else
10562   # We cannot hardcode anything, or else we can only hardcode existing
10563   # directories.
10564   hardcode_action=unsupported
10565 fi
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10567 $as_echo "$hardcode_action" >&6; }
10568
10569 if test "$hardcode_action" = relink ||
10570    test "$inherit_rpath" = yes; then
10571   # Fast installation is not supported
10572   enable_fast_install=no
10573 elif test "$shlibpath_overrides_runpath" = yes ||
10574      test "$enable_shared" = no; then
10575   # Fast installation is not necessary
10576   enable_fast_install=needless
10577 fi
10578
10579
10580
10581
10582
10583
10584   if test "x$enable_dlopen" != xyes; then
10585   enable_dlopen=unknown
10586   enable_dlopen_self=unknown
10587   enable_dlopen_self_static=unknown
10588 else
10589   lt_cv_dlopen=no
10590   lt_cv_dlopen_libs=
10591
10592   case $host_os in
10593   beos*)
10594     lt_cv_dlopen="load_add_on"
10595     lt_cv_dlopen_libs=
10596     lt_cv_dlopen_self=yes
10597     ;;
10598
10599   mingw* | pw32* | cegcc*)
10600     lt_cv_dlopen="LoadLibrary"
10601     lt_cv_dlopen_libs=
10602     ;;
10603
10604   cygwin*)
10605     lt_cv_dlopen="dlopen"
10606     lt_cv_dlopen_libs=
10607     ;;
10608
10609   darwin*)
10610   # if libdl is installed we need to link against it
10611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10612 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10613 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616   ac_check_lib_save_LIBS=$LIBS
10617 LIBS="-ldl  $LIBS"
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h.  */
10620
10621 /* Override any GCC internal prototype to avoid an error.
10622    Use char because int might match the return type of a GCC
10623    builtin and then its argument prototype would still apply.  */
10624 #ifdef __cplusplus
10625 extern "C"
10626 #endif
10627 char dlopen ();
10628 int
10629 main ()
10630 {
10631 return dlopen ();
10632   ;
10633   return 0;
10634 }
10635 _ACEOF
10636 if ac_fn_c_try_link "$LINENO"; then :
10637   ac_cv_lib_dl_dlopen=yes
10638 else
10639   ac_cv_lib_dl_dlopen=no
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext \
10642     conftest$ac_exeext conftest.$ac_ext
10643 LIBS=$ac_check_lib_save_LIBS
10644 fi
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10646 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10647 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10648   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10649 else
10650
10651     lt_cv_dlopen="dyld"
10652     lt_cv_dlopen_libs=
10653     lt_cv_dlopen_self=yes
10654
10655 fi
10656
10657     ;;
10658
10659   *)
10660     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10661 if test "x$ac_cv_func_shl_load" = x""yes; then :
10662   lt_cv_dlopen="shl_load"
10663 else
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10665 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10666 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669   ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-ldld  $LIBS"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h.  */
10673
10674 /* Override any GCC internal prototype to avoid an error.
10675    Use char because int might match the return type of a GCC
10676    builtin and then its argument prototype would still apply.  */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 char shl_load ();
10681 int
10682 main ()
10683 {
10684 return shl_load ();
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690   ac_cv_lib_dld_shl_load=yes
10691 else
10692   ac_cv_lib_dld_shl_load=no
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext \
10695     conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10697 fi
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10699 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10700 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10701   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10702 else
10703   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10704 if test "x$ac_cv_func_dlopen" = x""yes; then :
10705   lt_cv_dlopen="dlopen"
10706 else
10707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10709 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10710   $as_echo_n "(cached) " >&6
10711 else
10712   ac_check_lib_save_LIBS=$LIBS
10713 LIBS="-ldl  $LIBS"
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h.  */
10716
10717 /* Override any GCC internal prototype to avoid an error.
10718    Use char because int might match the return type of a GCC
10719    builtin and then its argument prototype would still apply.  */
10720 #ifdef __cplusplus
10721 extern "C"
10722 #endif
10723 char dlopen ();
10724 int
10725 main ()
10726 {
10727 return dlopen ();
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"; then :
10733   ac_cv_lib_dl_dlopen=yes
10734 else
10735   ac_cv_lib_dl_dlopen=no
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext \
10738     conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10740 fi
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10742 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10743 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10744   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10745 else
10746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10747 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10748 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   ac_check_lib_save_LIBS=$LIBS
10752 LIBS="-lsvld  $LIBS"
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h.  */
10755
10756 /* Override any GCC internal prototype to avoid an error.
10757    Use char because int might match the return type of a GCC
10758    builtin and then its argument prototype would still apply.  */
10759 #ifdef __cplusplus
10760 extern "C"
10761 #endif
10762 char dlopen ();
10763 int
10764 main ()
10765 {
10766 return dlopen ();
10767   ;
10768   return 0;
10769 }
10770 _ACEOF
10771 if ac_fn_c_try_link "$LINENO"; then :
10772   ac_cv_lib_svld_dlopen=yes
10773 else
10774   ac_cv_lib_svld_dlopen=no
10775 fi
10776 rm -f core conftest.err conftest.$ac_objext \
10777     conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10779 fi
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10781 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10782 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10783   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10784 else
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10786 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10787 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10788   $as_echo_n "(cached) " >&6
10789 else
10790   ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-ldld  $LIBS"
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h.  */
10794
10795 /* Override any GCC internal prototype to avoid an error.
10796    Use char because int might match the return type of a GCC
10797    builtin and then its argument prototype would still apply.  */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 char dld_link ();
10802 int
10803 main ()
10804 {
10805 return dld_link ();
10806   ;
10807   return 0;
10808 }
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811   ac_cv_lib_dld_dld_link=yes
10812 else
10813   ac_cv_lib_dld_dld_link=no
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext \
10816     conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10818 fi
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10820 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10821 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10822   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10823 fi
10824
10825
10826 fi
10827
10828
10829 fi
10830
10831
10832 fi
10833
10834
10835 fi
10836
10837
10838 fi
10839
10840     ;;
10841   esac
10842
10843   if test "x$lt_cv_dlopen" != xno; then
10844     enable_dlopen=yes
10845   else
10846     enable_dlopen=no
10847   fi
10848
10849   case $lt_cv_dlopen in
10850   dlopen)
10851     save_CPPFLAGS="$CPPFLAGS"
10852     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10853
10854     save_LDFLAGS="$LDFLAGS"
10855     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10856
10857     save_LIBS="$LIBS"
10858     LIBS="$lt_cv_dlopen_libs $LIBS"
10859
10860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10861 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10862 if test "${lt_cv_dlopen_self+set}" = set; then :
10863   $as_echo_n "(cached) " >&6
10864 else
10865           if test "$cross_compiling" = yes; then :
10866   lt_cv_dlopen_self=cross
10867 else
10868   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10869   lt_status=$lt_dlunknown
10870   cat > conftest.$ac_ext <<_LT_EOF
10871 #line 10871 "configure"
10872 #include "confdefs.h"
10873
10874 #if HAVE_DLFCN_H
10875 #include <dlfcn.h>
10876 #endif
10877
10878 #include <stdio.h>
10879
10880 #ifdef RTLD_GLOBAL
10881 #  define LT_DLGLOBAL           RTLD_GLOBAL
10882 #else
10883 #  ifdef DL_GLOBAL
10884 #    define LT_DLGLOBAL         DL_GLOBAL
10885 #  else
10886 #    define LT_DLGLOBAL         0
10887 #  endif
10888 #endif
10889
10890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10891    find out it does not work in some platform. */
10892 #ifndef LT_DLLAZY_OR_NOW
10893 #  ifdef RTLD_LAZY
10894 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10895 #  else
10896 #    ifdef DL_LAZY
10897 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10898 #    else
10899 #      ifdef RTLD_NOW
10900 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10901 #      else
10902 #        ifdef DL_NOW
10903 #          define LT_DLLAZY_OR_NOW      DL_NOW
10904 #        else
10905 #          define LT_DLLAZY_OR_NOW      0
10906 #        endif
10907 #      endif
10908 #    endif
10909 #  endif
10910 #endif
10911
10912 /* When -fvisbility=hidden is used, assume the code has been annotated
10913    correspondingly for the symbols needed.  */
10914 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10915 void fnord () __attribute__((visibility("default")));
10916 #endif
10917
10918 void fnord () { int i=42; }
10919 int main ()
10920 {
10921   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10922   int status = $lt_dlunknown;
10923
10924   if (self)
10925     {
10926       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10927       else
10928         {
10929           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10930           else puts (dlerror ());
10931         }
10932       /* dlclose (self); */
10933     }
10934   else
10935     puts (dlerror ());
10936
10937   return status;
10938 }
10939 _LT_EOF
10940   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10941   (eval $ac_link) 2>&5
10942   ac_status=$?
10943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10944   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10945     (./conftest; exit; ) >&5 2>/dev/null
10946     lt_status=$?
10947     case x$lt_status in
10948       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10949       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10950       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10951     esac
10952   else :
10953     # compilation failed
10954     lt_cv_dlopen_self=no
10955   fi
10956 fi
10957 rm -fr conftest*
10958
10959
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10962 $as_echo "$lt_cv_dlopen_self" >&6; }
10963
10964     if test "x$lt_cv_dlopen_self" = xyes; then
10965       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10967 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10968 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971           if test "$cross_compiling" = yes; then :
10972   lt_cv_dlopen_self_static=cross
10973 else
10974   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10975   lt_status=$lt_dlunknown
10976   cat > conftest.$ac_ext <<_LT_EOF
10977 #line 10977 "configure"
10978 #include "confdefs.h"
10979
10980 #if HAVE_DLFCN_H
10981 #include <dlfcn.h>
10982 #endif
10983
10984 #include <stdio.h>
10985
10986 #ifdef RTLD_GLOBAL
10987 #  define LT_DLGLOBAL           RTLD_GLOBAL
10988 #else
10989 #  ifdef DL_GLOBAL
10990 #    define LT_DLGLOBAL         DL_GLOBAL
10991 #  else
10992 #    define LT_DLGLOBAL         0
10993 #  endif
10994 #endif
10995
10996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10997    find out it does not work in some platform. */
10998 #ifndef LT_DLLAZY_OR_NOW
10999 #  ifdef RTLD_LAZY
11000 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11001 #  else
11002 #    ifdef DL_LAZY
11003 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11004 #    else
11005 #      ifdef RTLD_NOW
11006 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11007 #      else
11008 #        ifdef DL_NOW
11009 #          define LT_DLLAZY_OR_NOW      DL_NOW
11010 #        else
11011 #          define LT_DLLAZY_OR_NOW      0
11012 #        endif
11013 #      endif
11014 #    endif
11015 #  endif
11016 #endif
11017
11018 /* When -fvisbility=hidden is used, assume the code has been annotated
11019    correspondingly for the symbols needed.  */
11020 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11021 void fnord () __attribute__((visibility("default")));
11022 #endif
11023
11024 void fnord () { int i=42; }
11025 int main ()
11026 {
11027   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11028   int status = $lt_dlunknown;
11029
11030   if (self)
11031     {
11032       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11033       else
11034         {
11035           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11036           else puts (dlerror ());
11037         }
11038       /* dlclose (self); */
11039     }
11040   else
11041     puts (dlerror ());
11042
11043   return status;
11044 }
11045 _LT_EOF
11046   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11047   (eval $ac_link) 2>&5
11048   ac_status=$?
11049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11050   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11051     (./conftest; exit; ) >&5 2>/dev/null
11052     lt_status=$?
11053     case x$lt_status in
11054       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11055       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11056       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11057     esac
11058   else :
11059     # compilation failed
11060     lt_cv_dlopen_self_static=no
11061   fi
11062 fi
11063 rm -fr conftest*
11064
11065
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11068 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11069     fi
11070
11071     CPPFLAGS="$save_CPPFLAGS"
11072     LDFLAGS="$save_LDFLAGS"
11073     LIBS="$save_LIBS"
11074     ;;
11075   esac
11076
11077   case $lt_cv_dlopen_self in
11078   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11079   *) enable_dlopen_self=unknown ;;
11080   esac
11081
11082   case $lt_cv_dlopen_self_static in
11083   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11084   *) enable_dlopen_self_static=unknown ;;
11085   esac
11086 fi
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104 striplib=
11105 old_striplib=
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11107 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11108 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11109   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11110   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11112 $as_echo "yes" >&6; }
11113 else
11114 # FIXME - insert some real tests, host_os isn't really good enough
11115   case $host_os in
11116   darwin*)
11117     if test -n "$STRIP" ; then
11118       striplib="$STRIP -x"
11119       old_striplib="$STRIP -S"
11120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11121 $as_echo "yes" >&6; }
11122     else
11123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125     fi
11126     ;;
11127   *)
11128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130     ;;
11131   esac
11132 fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145   # Report which library types will actually be built
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11147 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11149 $as_echo "$can_build_shared" >&6; }
11150
11151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11152 $as_echo_n "checking whether to build shared libraries... " >&6; }
11153   test "$can_build_shared" = "no" && enable_shared=no
11154
11155   # On AIX, shared libraries and static libraries use the same namespace, and
11156   # are all built from PIC.
11157   case $host_os in
11158   aix3*)
11159     test "$enable_shared" = yes && enable_static=no
11160     if test -n "$RANLIB"; then
11161       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11162       postinstall_cmds='$RANLIB $lib'
11163     fi
11164     ;;
11165
11166   aix[4-9]*)
11167     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11168       test "$enable_shared" = yes && enable_static=no
11169     fi
11170     ;;
11171   esac
11172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11173 $as_echo "$enable_shared" >&6; }
11174
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11176 $as_echo_n "checking whether to build static libraries... " >&6; }
11177   # Make sure either enable_shared or enable_static is yes.
11178   test "$enable_shared" = yes || enable_static=yes
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11180 $as_echo "$enable_static" >&6; }
11181
11182
11183
11184
11185 fi
11186 ac_ext=c
11187 ac_cpp='$CPP $CPPFLAGS'
11188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11191
11192 CC="$lt_save_CC"
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206 # Source file extension for Go test sources.
11207 ac_ext=go
11208
11209 # Object file extension for compiled Go test sources.
11210 objext=o
11211 objext_GO=$objext
11212
11213 # Code to be used in simple compile tests
11214 lt_simple_compile_test_code="package main; func main() { }"
11215
11216 # Code to be used in simple link tests
11217 lt_simple_link_test_code='package main; func main() { }'
11218
11219 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11220
11221
11222
11223
11224
11225
11226 # If no C compiler was specified, use CC.
11227 LTCC=${LTCC-"$CC"}
11228
11229 # If no C compiler flags were specified, use CFLAGS.
11230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11231
11232 # Allow CC to be a program name with arguments.
11233 compiler=$CC
11234
11235
11236 # save warnings/boilerplate of simple test code
11237 ac_outfile=conftest.$ac_objext
11238 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11240 _lt_compiler_boilerplate=`cat conftest.err`
11241 $RM conftest*
11242
11243 ac_outfile=conftest.$ac_objext
11244 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11246 _lt_linker_boilerplate=`cat conftest.err`
11247 $RM -r conftest*
11248
11249
11250 # Allow CC to be a program name with arguments.
11251 lt_save_CC="$CC"
11252 lt_save_GCC="$GCC"
11253 GCC=yes
11254 CC=${GOC-"gccgo"}
11255 compiler=$CC
11256 compiler_GO=$CC
11257 LD_GO="$LD"
11258 for cc_temp in $compiler""; do
11259   case $cc_temp in
11260     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11261     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11262     \-*) ;;
11263     *) break;;
11264   esac
11265 done
11266 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11267
11268
11269 # Go did not exist at the time GCC didn't implicitly link libc in.
11270 archive_cmds_need_lc_GO=no
11271
11272 old_archive_cmds_GO=$old_archive_cmds
11273
11274 ## CAVEAT EMPTOR:
11275 ## There is no encapsulation within the following macros, do not change
11276 ## the running order or otherwise move them around unless you know exactly
11277 ## what you are doing...
11278 if test -n "$compiler"; then
11279
11280 lt_prog_compiler_no_builtin_flag_GO=
11281
11282 if test "$GCC" = yes; then
11283   case $cc_basename in
11284   nvcc*)
11285     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11286   *)
11287     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11288   esac
11289
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11291 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11292 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   lt_cv_prog_compiler_rtti_exceptions=no
11296    ac_outfile=conftest.$ac_objext
11297    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11298    lt_compiler_flag="-fno-rtti -fno-exceptions"
11299    # Insert the option either (1) after the last *FLAGS variable, or
11300    # (2) before a word containing "conftest.", or (3) at the end.
11301    # Note that $ac_compile itself does not contain backslashes and begins
11302    # with a dollar sign (not a hyphen), so the echo should work correctly.
11303    # The option is referenced via a variable to avoid confusing sed.
11304    lt_compile=`echo "$ac_compile" | $SED \
11305    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11307    -e 's:$: $lt_compiler_flag:'`
11308    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11309    (eval "$lt_compile" 2>conftest.err)
11310    ac_status=$?
11311    cat conftest.err >&5
11312    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313    if (exit $ac_status) && test -s "$ac_outfile"; then
11314      # The compiler can only warn and ignore the option if not recognized
11315      # So say no if there are warnings other than the usual output.
11316      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11317      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11318      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11319        lt_cv_prog_compiler_rtti_exceptions=yes
11320      fi
11321    fi
11322    $RM conftest*
11323
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11326 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11327
11328 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11329     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11330 else
11331     :
11332 fi
11333
11334 fi
11335
11336
11337
11338   lt_prog_compiler_wl_GO=
11339 lt_prog_compiler_pic_GO=
11340 lt_prog_compiler_static_GO=
11341
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11343 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11344
11345   if test "$GCC" = yes; then
11346     lt_prog_compiler_wl_GO='-Wl,'
11347     lt_prog_compiler_static_GO='-static'
11348
11349     case $host_os in
11350       aix*)
11351       # All AIX code is PIC.
11352       if test "$host_cpu" = ia64; then
11353         # AIX 5 now supports IA64 processor
11354         lt_prog_compiler_static_GO='-Bstatic'
11355       fi
11356       ;;
11357
11358     amigaos*)
11359       case $host_cpu in
11360       powerpc)
11361             # see comment about AmigaOS4 .so support
11362             lt_prog_compiler_pic_GO='-fPIC'
11363         ;;
11364       m68k)
11365             # FIXME: we need at least 68020 code to build shared libraries, but
11366             # adding the `-m68020' flag to GCC prevents building anything better,
11367             # like `-m68040'.
11368             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11369         ;;
11370       esac
11371       ;;
11372
11373     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11374       # PIC is the default for these OSes.
11375       ;;
11376
11377     mingw* | cygwin* | pw32* | os2* | cegcc*)
11378       # This hack is so that the source file can tell whether it is being
11379       # built for inclusion in a dll (and should export symbols for example).
11380       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11381       # (--disable-auto-import) libraries
11382       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11383       ;;
11384
11385     darwin* | rhapsody*)
11386       # PIC is the default on this platform
11387       # Common symbols not allowed in MH_DYLIB files
11388       lt_prog_compiler_pic_GO='-fno-common'
11389       ;;
11390
11391     haiku*)
11392       # PIC is the default for Haiku.
11393       # The "-static" flag exists, but is broken.
11394       lt_prog_compiler_static_GO=
11395       ;;
11396
11397     hpux*)
11398       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11399       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11400       # sets the default TLS model and affects inlining.
11401       case $host_cpu in
11402       hppa*64*)
11403         # +Z the default
11404         ;;
11405       *)
11406         lt_prog_compiler_pic_GO='-fPIC'
11407         ;;
11408       esac
11409       ;;
11410
11411     interix[3-9]*)
11412       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11413       # Instead, we relocate shared libraries at runtime.
11414       ;;
11415
11416     msdosdjgpp*)
11417       # Just because we use GCC doesn't mean we suddenly get shared libraries
11418       # on systems that don't support them.
11419       lt_prog_compiler_can_build_shared_GO=no
11420       enable_shared=no
11421       ;;
11422
11423     *nto* | *qnx*)
11424       # QNX uses GNU C++, but need to define -shared option too, otherwise
11425       # it will coredump.
11426       lt_prog_compiler_pic_GO='-fPIC -shared'
11427       ;;
11428
11429     sysv4*MP*)
11430       if test -d /usr/nec; then
11431         lt_prog_compiler_pic_GO=-Kconform_pic
11432       fi
11433       ;;
11434
11435     *)
11436       lt_prog_compiler_pic_GO='-fPIC'
11437       ;;
11438     esac
11439
11440     case $cc_basename in
11441     nvcc*) # Cuda Compiler Driver 2.2
11442       lt_prog_compiler_wl_GO='-Xlinker '
11443       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11444       ;;
11445     esac
11446   else
11447     # PORTME Check for flag to pass linker flags through the system compiler.
11448     case $host_os in
11449     aix*)
11450       lt_prog_compiler_wl_GO='-Wl,'
11451       if test "$host_cpu" = ia64; then
11452         # AIX 5 now supports IA64 processor
11453         lt_prog_compiler_static_GO='-Bstatic'
11454       else
11455         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11456       fi
11457       ;;
11458
11459     mingw* | cygwin* | pw32* | os2* | cegcc*)
11460       # This hack is so that the source file can tell whether it is being
11461       # built for inclusion in a dll (and should export symbols for example).
11462       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11463       ;;
11464
11465     hpux9* | hpux10* | hpux11*)
11466       lt_prog_compiler_wl_GO='-Wl,'
11467       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11468       # not for PA HP-UX.
11469       case $host_cpu in
11470       hppa*64*|ia64*)
11471         # +Z the default
11472         ;;
11473       *)
11474         lt_prog_compiler_pic_GO='+Z'
11475         ;;
11476       esac
11477       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11478       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11479       ;;
11480
11481     irix5* | irix6* | nonstopux*)
11482       lt_prog_compiler_wl_GO='-Wl,'
11483       # PIC (with -KPIC) is the default.
11484       lt_prog_compiler_static_GO='-non_shared'
11485       ;;
11486
11487     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11488       case $cc_basename in
11489       # old Intel for x86_64 which still supported -KPIC.
11490       ecc*)
11491         lt_prog_compiler_wl_GO='-Wl,'
11492         lt_prog_compiler_pic_GO='-KPIC'
11493         lt_prog_compiler_static_GO='-static'
11494         ;;
11495       # icc used to be incompatible with GCC.
11496       # ICC 10 doesn't accept -KPIC any more.
11497       icc* | ifort*)
11498         lt_prog_compiler_wl_GO='-Wl,'
11499         lt_prog_compiler_pic_GO='-fPIC'
11500         lt_prog_compiler_static_GO='-static'
11501         ;;
11502       # Lahey Fortran 8.1.
11503       lf95*)
11504         lt_prog_compiler_wl_GO='-Wl,'
11505         lt_prog_compiler_pic_GO='--shared'
11506         lt_prog_compiler_static_GO='--static'
11507         ;;
11508       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11509         # Portland Group compilers (*not* the Pentium gcc compiler,
11510         # which looks to be a dead project)
11511         lt_prog_compiler_wl_GO='-Wl,'
11512         lt_prog_compiler_pic_GO='-fpic'
11513         lt_prog_compiler_static_GO='-Bstatic'
11514         ;;
11515       ccc*)
11516         lt_prog_compiler_wl_GO='-Wl,'
11517         # All Alpha code is PIC.
11518         lt_prog_compiler_static_GO='-non_shared'
11519         ;;
11520       xl* | bgxl* | bgf* | mpixl*)
11521         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11522         lt_prog_compiler_wl_GO='-Wl,'
11523         lt_prog_compiler_pic_GO='-qpic'
11524         lt_prog_compiler_static_GO='-qstaticlink'
11525         ;;
11526       *)
11527         case `$CC -V 2>&1 | sed 5q` in
11528         *Sun\ F* | *Sun*Fortran*)
11529           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11530           lt_prog_compiler_pic_GO='-KPIC'
11531           lt_prog_compiler_static_GO='-Bstatic'
11532           lt_prog_compiler_wl_GO=''
11533           ;;
11534         *Sun\ C*)
11535           # Sun C 5.9
11536           lt_prog_compiler_pic_GO='-KPIC'
11537           lt_prog_compiler_static_GO='-Bstatic'
11538           lt_prog_compiler_wl_GO='-Wl,'
11539           ;;
11540         esac
11541         ;;
11542       esac
11543       ;;
11544
11545     newsos6)
11546       lt_prog_compiler_pic_GO='-KPIC'
11547       lt_prog_compiler_static_GO='-Bstatic'
11548       ;;
11549
11550     *nto* | *qnx*)
11551       # QNX uses GNU C++, but need to define -shared option too, otherwise
11552       # it will coredump.
11553       lt_prog_compiler_pic_GO='-fPIC -shared'
11554       ;;
11555
11556     osf3* | osf4* | osf5*)
11557       lt_prog_compiler_wl_GO='-Wl,'
11558       # All OSF/1 code is PIC.
11559       lt_prog_compiler_static_GO='-non_shared'
11560       ;;
11561
11562     rdos*)
11563       lt_prog_compiler_static_GO='-non_shared'
11564       ;;
11565
11566     solaris*)
11567       lt_prog_compiler_pic_GO='-KPIC'
11568       lt_prog_compiler_static_GO='-Bstatic'
11569       case $cc_basename in
11570       f77* | f90* | f95*)
11571         lt_prog_compiler_wl_GO='-Qoption ld ';;
11572       *)
11573         lt_prog_compiler_wl_GO='-Wl,';;
11574       esac
11575       ;;
11576
11577     sunos4*)
11578       lt_prog_compiler_wl_GO='-Qoption ld '
11579       lt_prog_compiler_pic_GO='-PIC'
11580       lt_prog_compiler_static_GO='-Bstatic'
11581       ;;
11582
11583     sysv4 | sysv4.2uw2* | sysv4.3*)
11584       lt_prog_compiler_wl_GO='-Wl,'
11585       lt_prog_compiler_pic_GO='-KPIC'
11586       lt_prog_compiler_static_GO='-Bstatic'
11587       ;;
11588
11589     sysv4*MP*)
11590       if test -d /usr/nec ;then
11591         lt_prog_compiler_pic_GO='-Kconform_pic'
11592         lt_prog_compiler_static_GO='-Bstatic'
11593       fi
11594       ;;
11595
11596     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11597       lt_prog_compiler_wl_GO='-Wl,'
11598       lt_prog_compiler_pic_GO='-KPIC'
11599       lt_prog_compiler_static_GO='-Bstatic'
11600       ;;
11601
11602     unicos*)
11603       lt_prog_compiler_wl_GO='-Wl,'
11604       lt_prog_compiler_can_build_shared_GO=no
11605       ;;
11606
11607     uts4*)
11608       lt_prog_compiler_pic_GO='-pic'
11609       lt_prog_compiler_static_GO='-Bstatic'
11610       ;;
11611
11612     *)
11613       lt_prog_compiler_can_build_shared_GO=no
11614       ;;
11615     esac
11616   fi
11617
11618 case $host_os in
11619   # For platforms which do not support PIC, -DPIC is meaningless:
11620   *djgpp*)
11621     lt_prog_compiler_pic_GO=
11622     ;;
11623   *)
11624     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11625     ;;
11626 esac
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11628 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11629
11630
11631
11632 #
11633 # Check to make sure the PIC flag actually works.
11634 #
11635 if test -n "$lt_prog_compiler_pic_GO"; then
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11637 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11638 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11639   $as_echo_n "(cached) " >&6
11640 else
11641   lt_cv_prog_compiler_pic_works_GO=no
11642    ac_outfile=conftest.$ac_objext
11643    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11644    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11645    # Insert the option either (1) after the last *FLAGS variable, or
11646    # (2) before a word containing "conftest.", or (3) at the end.
11647    # Note that $ac_compile itself does not contain backslashes and begins
11648    # with a dollar sign (not a hyphen), so the echo should work correctly.
11649    # The option is referenced via a variable to avoid confusing sed.
11650    lt_compile=`echo "$ac_compile" | $SED \
11651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11653    -e 's:$: $lt_compiler_flag:'`
11654    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11655    (eval "$lt_compile" 2>conftest.err)
11656    ac_status=$?
11657    cat conftest.err >&5
11658    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659    if (exit $ac_status) && test -s "$ac_outfile"; then
11660      # The compiler can only warn and ignore the option if not recognized
11661      # So say no if there are warnings other than the usual output.
11662      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11663      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11664      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11665        lt_cv_prog_compiler_pic_works_GO=yes
11666      fi
11667    fi
11668    $RM conftest*
11669
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11672 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11673
11674 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11675     case $lt_prog_compiler_pic_GO in
11676      "" | " "*) ;;
11677      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11678      esac
11679 else
11680     lt_prog_compiler_pic_GO=
11681      lt_prog_compiler_can_build_shared_GO=no
11682 fi
11683
11684 fi
11685
11686
11687
11688 #
11689 # Check to make sure the static flag actually works.
11690 #
11691 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11693 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11694 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11695   $as_echo_n "(cached) " >&6
11696 else
11697   lt_cv_prog_compiler_static_works_GO=no
11698    save_LDFLAGS="$LDFLAGS"
11699    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11700    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11701    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11702      # The linker can only warn and ignore the option if not recognized
11703      # So say no if there are warnings
11704      if test -s conftest.err; then
11705        # Append any errors to the config.log.
11706        cat conftest.err 1>&5
11707        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11708        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11709        if diff conftest.exp conftest.er2 >/dev/null; then
11710          lt_cv_prog_compiler_static_works_GO=yes
11711        fi
11712      else
11713        lt_cv_prog_compiler_static_works_GO=yes
11714      fi
11715    fi
11716    $RM -r conftest*
11717    LDFLAGS="$save_LDFLAGS"
11718
11719 fi
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11721 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11722
11723 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11724     :
11725 else
11726     lt_prog_compiler_static_GO=
11727 fi
11728
11729
11730
11731
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11734 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11735   $as_echo_n "(cached) " >&6
11736 else
11737   lt_cv_prog_compiler_c_o_GO=no
11738    $RM -r conftest 2>/dev/null
11739    mkdir conftest
11740    cd conftest
11741    mkdir out
11742    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11743
11744    lt_compiler_flag="-o out/conftest2.$ac_objext"
11745    # Insert the option either (1) after the last *FLAGS variable, or
11746    # (2) before a word containing "conftest.", or (3) at the end.
11747    # Note that $ac_compile itself does not contain backslashes and begins
11748    # with a dollar sign (not a hyphen), so the echo should work correctly.
11749    lt_compile=`echo "$ac_compile" | $SED \
11750    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11751    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11752    -e 's:$: $lt_compiler_flag:'`
11753    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11754    (eval "$lt_compile" 2>out/conftest.err)
11755    ac_status=$?
11756    cat out/conftest.err >&5
11757    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11759    then
11760      # The compiler can only warn and ignore the option if not recognized
11761      # So say no if there are warnings
11762      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11763      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11764      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11765        lt_cv_prog_compiler_c_o_GO=yes
11766      fi
11767    fi
11768    chmod u+w . 2>&5
11769    $RM conftest*
11770    # SGI C++ compiler will create directory out/ii_files/ for
11771    # template instantiation
11772    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11773    $RM out/* && rmdir out
11774    cd ..
11775    $RM -r conftest
11776    $RM conftest*
11777
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11780 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11781
11782
11783
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11786 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   lt_cv_prog_compiler_c_o_GO=no
11790    $RM -r conftest 2>/dev/null
11791    mkdir conftest
11792    cd conftest
11793    mkdir out
11794    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11795
11796    lt_compiler_flag="-o out/conftest2.$ac_objext"
11797    # Insert the option either (1) after the last *FLAGS variable, or
11798    # (2) before a word containing "conftest.", or (3) at the end.
11799    # Note that $ac_compile itself does not contain backslashes and begins
11800    # with a dollar sign (not a hyphen), so the echo should work correctly.
11801    lt_compile=`echo "$ac_compile" | $SED \
11802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11804    -e 's:$: $lt_compiler_flag:'`
11805    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11806    (eval "$lt_compile" 2>out/conftest.err)
11807    ac_status=$?
11808    cat out/conftest.err >&5
11809    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11811    then
11812      # The compiler can only warn and ignore the option if not recognized
11813      # So say no if there are warnings
11814      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11815      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11816      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11817        lt_cv_prog_compiler_c_o_GO=yes
11818      fi
11819    fi
11820    chmod u+w . 2>&5
11821    $RM conftest*
11822    # SGI C++ compiler will create directory out/ii_files/ for
11823    # template instantiation
11824    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11825    $RM out/* && rmdir out
11826    cd ..
11827    $RM -r conftest
11828    $RM conftest*
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11832 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11833
11834
11835
11836
11837 hard_links="nottested"
11838 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11839   # do not overwrite the value of need_locks provided by the user
11840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11841 $as_echo_n "checking if we can lock with hard links... " >&6; }
11842   hard_links=yes
11843   $RM conftest*
11844   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11845   touch conftest.a
11846   ln conftest.a conftest.b 2>&5 || hard_links=no
11847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11849 $as_echo "$hard_links" >&6; }
11850   if test "$hard_links" = no; then
11851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11852 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11853     need_locks=warn
11854   fi
11855 else
11856   need_locks=no
11857 fi
11858
11859
11860
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11862 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11863
11864   runpath_var=
11865   allow_undefined_flag_GO=
11866   always_export_symbols_GO=no
11867   archive_cmds_GO=
11868   archive_expsym_cmds_GO=
11869   compiler_needs_object_GO=no
11870   enable_shared_with_static_runtimes_GO=no
11871   export_dynamic_flag_spec_GO=
11872   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11873   hardcode_automatic_GO=no
11874   hardcode_direct_GO=no
11875   hardcode_direct_absolute_GO=no
11876   hardcode_libdir_flag_spec_GO=
11877   hardcode_libdir_flag_spec_ld_GO=
11878   hardcode_libdir_separator_GO=
11879   hardcode_minus_L_GO=no
11880   hardcode_shlibpath_var_GO=unsupported
11881   inherit_rpath_GO=no
11882   link_all_deplibs_GO=unknown
11883   module_cmds_GO=
11884   module_expsym_cmds_GO=
11885   old_archive_from_new_cmds_GO=
11886   old_archive_from_expsyms_cmds_GO=
11887   thread_safe_flag_spec_GO=
11888   whole_archive_flag_spec_GO=
11889   # include_expsyms should be a list of space-separated symbols to be *always*
11890   # included in the symbol list
11891   include_expsyms_GO=
11892   # exclude_expsyms can be an extended regexp of symbols to exclude
11893   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11894   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11895   # as well as any symbol that contains `d'.
11896   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11897   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11898   # platforms (ab)use it in PIC code, but their linkers get confused if
11899   # the symbol is explicitly referenced.  Since portable code cannot
11900   # rely on this symbol name, it's probably fine to never include it in
11901   # preloaded symbol tables.
11902   # Exclude shared library initialization/finalization symbols.
11903   extract_expsyms_cmds=
11904
11905   case $host_os in
11906   cygwin* | mingw* | pw32* | cegcc*)
11907     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11908     # When not using gcc, we currently assume that we are using
11909     # Microsoft Visual C++.
11910     if test "$GCC" != yes; then
11911       with_gnu_ld=no
11912     fi
11913     ;;
11914   interix*)
11915     # we just hope/assume this is gcc and not c89 (= MSVC++)
11916     with_gnu_ld=yes
11917     ;;
11918   openbsd*)
11919     with_gnu_ld=no
11920     ;;
11921   esac
11922
11923   ld_shlibs_GO=yes
11924
11925   # On some targets, GNU ld is compatible enough with the native linker
11926   # that we're better off using the native interface for both.
11927   lt_use_gnu_ld_interface=no
11928   if test "$with_gnu_ld" = yes; then
11929     case $host_os in
11930       aix*)
11931         # The AIX port of GNU ld has always aspired to compatibility
11932         # with the native linker.  However, as the warning in the GNU ld
11933         # block says, versions before 2.19.5* couldn't really create working
11934         # shared libraries, regardless of the interface used.
11935         case `$LD -v 2>&1` in
11936           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11937           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11938           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11939           *)
11940             lt_use_gnu_ld_interface=yes
11941             ;;
11942         esac
11943         ;;
11944       *)
11945         lt_use_gnu_ld_interface=yes
11946         ;;
11947     esac
11948   fi
11949
11950   if test "$lt_use_gnu_ld_interface" = yes; then
11951     # If archive_cmds runs LD, not CC, wlarc should be empty
11952     wlarc='${wl}'
11953
11954     # Set some defaults for GNU ld with shared library support. These
11955     # are reset later if shared libraries are not supported. Putting them
11956     # here allows them to be overridden if necessary.
11957     runpath_var=LD_RUN_PATH
11958     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11959     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11960     # ancient GNU ld didn't support --whole-archive et. al.
11961     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11962       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11963     else
11964       whole_archive_flag_spec_GO=
11965     fi
11966     supports_anon_versioning=no
11967     case `$LD -v 2>&1` in
11968       *GNU\ gold*) supports_anon_versioning=yes ;;
11969       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11970       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11971       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11972       *\ 2.11.*) ;; # other 2.11 versions
11973       *) supports_anon_versioning=yes ;;
11974     esac
11975
11976     # See if GNU ld supports shared libraries.
11977     case $host_os in
11978     aix[3-9]*)
11979       # On AIX/PPC, the GNU linker is very broken
11980       if test "$host_cpu" != ia64; then
11981         ld_shlibs_GO=no
11982         cat <<_LT_EOF 1>&2
11983
11984 *** Warning: the GNU linker, at least up to release 2.19, is reported
11985 *** to be unable to reliably create shared libraries on AIX.
11986 *** Therefore, libtool is disabling shared libraries support.  If you
11987 *** really care for shared libraries, you may want to install binutils
11988 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11989 *** You will then need to restart the configuration process.
11990
11991 _LT_EOF
11992       fi
11993       ;;
11994
11995     amigaos*)
11996       case $host_cpu in
11997       powerpc)
11998             # see comment about AmigaOS4 .so support
11999             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12000             archive_expsym_cmds_GO=''
12001         ;;
12002       m68k)
12003             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)'
12004             hardcode_libdir_flag_spec_GO='-L$libdir'
12005             hardcode_minus_L_GO=yes
12006         ;;
12007       esac
12008       ;;
12009
12010     beos*)
12011       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12012         allow_undefined_flag_GO=unsupported
12013         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12014         # support --undefined.  This deserves some investigation.  FIXME
12015         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016       else
12017         ld_shlibs_GO=no
12018       fi
12019       ;;
12020
12021     cygwin* | mingw* | pw32* | cegcc*)
12022       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12023       # as there is no search path for DLLs.
12024       hardcode_libdir_flag_spec_GO='-L$libdir'
12025       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12026       allow_undefined_flag_GO=unsupported
12027       always_export_symbols_GO=no
12028       enable_shared_with_static_runtimes_GO=yes
12029       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12030
12031       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12032         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12033         # If the export-symbols file already is a .def file (1st line
12034         # is EXPORTS), use it as is; otherwise, prepend...
12035         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12036           cp $export_symbols $output_objdir/$soname.def;
12037         else
12038           echo EXPORTS > $output_objdir/$soname.def;
12039           cat $export_symbols >> $output_objdir/$soname.def;
12040         fi~
12041         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12042       else
12043         ld_shlibs_GO=no
12044       fi
12045       ;;
12046
12047     haiku*)
12048       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12049       link_all_deplibs_GO=yes
12050       ;;
12051
12052     interix[3-9]*)
12053       hardcode_direct_GO=no
12054       hardcode_shlibpath_var_GO=no
12055       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12056       export_dynamic_flag_spec_GO='${wl}-E'
12057       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12058       # Instead, shared libraries are loaded at an image base (0x10000000 by
12059       # default) and relocated if they conflict, which is a slow very memory
12060       # consuming and fragmenting process.  To avoid this, we pick a random,
12061       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12062       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12063       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'
12064       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'
12065       ;;
12066
12067     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12068       tmp_diet=no
12069       if test "$host_os" = linux-dietlibc; then
12070         case $cc_basename in
12071           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12072         esac
12073       fi
12074       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12075          && test "$tmp_diet" = no
12076       then
12077         tmp_addflag=
12078         tmp_sharedflag='-shared'
12079         case $cc_basename,$host_cpu in
12080         pgcc*)                          # Portland Group C compiler
12081           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'
12082           tmp_addflag=' $pic_flag'
12083           ;;
12084         pgf77* | pgf90* | pgf95* | pgfortran*)
12085                                         # Portland Group f77 and f90 compilers
12086           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'
12087           tmp_addflag=' $pic_flag -Mnomain' ;;
12088         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12089           tmp_addflag=' -i_dynamic' ;;
12090         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12091           tmp_addflag=' -i_dynamic -nofor_main' ;;
12092         ifc* | ifort*)                  # Intel Fortran compiler
12093           tmp_addflag=' -nofor_main' ;;
12094         lf95*)                          # Lahey Fortran 8.1
12095           whole_archive_flag_spec_GO=
12096           tmp_sharedflag='--shared' ;;
12097         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12098           tmp_sharedflag='-qmkshrobj'
12099           tmp_addflag= ;;
12100         nvcc*)  # Cuda Compiler Driver 2.2
12101           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'
12102           compiler_needs_object_GO=yes
12103           ;;
12104         esac
12105         case `$CC -V 2>&1 | sed 5q` in
12106         *Sun\ C*)                       # Sun C 5.9
12107           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'
12108           compiler_needs_object_GO=yes
12109           tmp_sharedflag='-G' ;;
12110         *Sun\ F*)                       # Sun Fortran 8.3
12111           tmp_sharedflag='-G' ;;
12112         esac
12113         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12114
12115         if test "x$supports_anon_versioning" = xyes; then
12116           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12117             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12118             echo "local: *; };" >> $output_objdir/$libname.ver~
12119             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12120         fi
12121
12122         case $cc_basename in
12123         xlf* | bgf* | bgxlf* | mpixlf*)
12124           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12125           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12126           hardcode_libdir_flag_spec_GO=
12127           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12128           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12129           if test "x$supports_anon_versioning" = xyes; then
12130             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12131               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12132               echo "local: *; };" >> $output_objdir/$libname.ver~
12133               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12134           fi
12135           ;;
12136         esac
12137       else
12138         ld_shlibs_GO=no
12139       fi
12140       ;;
12141
12142     netbsd*)
12143       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12144         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12145         wlarc=
12146       else
12147         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12148         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12149       fi
12150       ;;
12151
12152     solaris*)
12153       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12154         ld_shlibs_GO=no
12155         cat <<_LT_EOF 1>&2
12156
12157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12158 *** create shared libraries on Solaris systems.  Therefore, libtool
12159 *** is disabling shared libraries support.  We urge you to upgrade GNU
12160 *** binutils to release 2.9.1 or newer.  Another option is to modify
12161 *** your PATH or compiler configuration so that the native linker is
12162 *** used, and then restart.
12163
12164 _LT_EOF
12165       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12166         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12167         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12168       else
12169         ld_shlibs_GO=no
12170       fi
12171       ;;
12172
12173     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12174       case `$LD -v 2>&1` in
12175         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12176         ld_shlibs_GO=no
12177         cat <<_LT_EOF 1>&2
12178
12179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12180 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12181 *** is disabling shared libraries support.  We urge you to upgrade GNU
12182 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12183 *** your PATH or compiler configuration so that the native linker is
12184 *** used, and then restart.
12185
12186 _LT_EOF
12187         ;;
12188         *)
12189           # For security reasons, it is highly recommended that you always
12190           # use absolute paths for naming shared libraries, and exclude the
12191           # DT_RUNPATH tag from executables and libraries.  But doing so
12192           # requires that you compile everything twice, which is a pain.
12193           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12194             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
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           else
12198             ld_shlibs_GO=no
12199           fi
12200         ;;
12201       esac
12202       ;;
12203
12204     sunos4*)
12205       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12206       wlarc=
12207       hardcode_direct_GO=yes
12208       hardcode_shlibpath_var_GO=no
12209       ;;
12210
12211     *)
12212       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12213         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12214         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12215       else
12216         ld_shlibs_GO=no
12217       fi
12218       ;;
12219     esac
12220
12221     if test "$ld_shlibs_GO" = no; then
12222       runpath_var=
12223       hardcode_libdir_flag_spec_GO=
12224       export_dynamic_flag_spec_GO=
12225       whole_archive_flag_spec_GO=
12226     fi
12227   else
12228     # PORTME fill in a description of your system's linker (not GNU ld)
12229     case $host_os in
12230     aix3*)
12231       allow_undefined_flag_GO=unsupported
12232       always_export_symbols_GO=yes
12233       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'
12234       # Note: this linker hardcodes the directories in LIBPATH if there
12235       # are no directories specified by -L.
12236       hardcode_minus_L_GO=yes
12237       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12238         # Neither direct hardcoding nor static linking is supported with a
12239         # broken collect2.
12240         hardcode_direct_GO=unsupported
12241       fi
12242       ;;
12243
12244     aix[4-9]*)
12245       if test "$host_cpu" = ia64; then
12246         # On IA64, the linker does run time linking by default, so we don't
12247         # have to do anything special.
12248         aix_use_runtimelinking=no
12249         exp_sym_flag='-Bexport'
12250         no_entry_flag=""
12251       else
12252         # If we're using GNU nm, then we don't want the "-C" option.
12253         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12254         # Also, AIX nm treats weak defined symbols like other global
12255         # defined symbols, whereas GNU nm marks them as "W".
12256         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12257           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'
12258         else
12259           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'
12260         fi
12261         aix_use_runtimelinking=no
12262
12263         # Test if we are trying to use run time linking or normal
12264         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12265         # need to do runtime linking.
12266         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12267           for ld_flag in $LDFLAGS; do
12268           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12269             aix_use_runtimelinking=yes
12270             break
12271           fi
12272           done
12273           ;;
12274         esac
12275
12276         exp_sym_flag='-bexport'
12277         no_entry_flag='-bnoentry'
12278       fi
12279
12280       # When large executables or shared objects are built, AIX ld can
12281       # have problems creating the table of contents.  If linking a library
12282       # or program results in "error TOC overflow" add -mminimal-toc to
12283       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12284       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12285
12286       archive_cmds_GO=''
12287       hardcode_direct_GO=yes
12288       hardcode_direct_absolute_GO=yes
12289       hardcode_libdir_separator_GO=':'
12290       link_all_deplibs_GO=yes
12291       file_list_spec_GO='${wl}-f,'
12292
12293       if test "$GCC" = yes; then
12294         case $host_os in aix4.[012]|aix4.[012].*)
12295         # We only want to do this on AIX 4.2 and lower, the check
12296         # below for broken collect2 doesn't work under 4.3+
12297           collect2name=`${CC} -print-prog-name=collect2`
12298           if test -f "$collect2name" &&
12299            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12300           then
12301           # We have reworked collect2
12302           :
12303           else
12304           # We have old collect2
12305           hardcode_direct_GO=unsupported
12306           # It fails to find uninstalled libraries when the uninstalled
12307           # path is not listed in the libpath.  Setting hardcode_minus_L
12308           # to unsupported forces relinking
12309           hardcode_minus_L_GO=yes
12310           hardcode_libdir_flag_spec_GO='-L$libdir'
12311           hardcode_libdir_separator_GO=
12312           fi
12313           ;;
12314         esac
12315         shared_flag='-shared'
12316         if test "$aix_use_runtimelinking" = yes; then
12317           shared_flag="$shared_flag "'${wl}-G'
12318         fi
12319       else
12320         # not using gcc
12321         if test "$host_cpu" = ia64; then
12322         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12323         # chokes on -Wl,-G. The following line is correct:
12324           shared_flag='-G'
12325         else
12326           if test "$aix_use_runtimelinking" = yes; then
12327             shared_flag='${wl}-G'
12328           else
12329             shared_flag='${wl}-bM:SRE'
12330           fi
12331         fi
12332       fi
12333
12334       export_dynamic_flag_spec_GO='${wl}-bexpall'
12335       # It seems that -bexpall does not export symbols beginning with
12336       # underscore (_), so it is better to generate a list of symbols to export.
12337       always_export_symbols_GO=yes
12338       if test "$aix_use_runtimelinking" = yes; then
12339         # Warning - without using the other runtime loading flags (-brtl),
12340         # -berok will link without error, but may produce a broken library.
12341         allow_undefined_flag_GO='-berok'
12342         # Determine the default libpath from the value encoded in an
12343         # empty executable.
12344         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h.  */
12346
12347 int
12348 main ()
12349 {
12350
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 if ac_fn_c_try_link "$LINENO"; then :
12356
12357 lt_aix_libpath_sed='
12358     /Import File Strings/,/^$/ {
12359         /^0/ {
12360             s/^0  *\(.*\)$/\1/
12361             p
12362         }
12363     }'
12364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12365 # Check for a 64-bit object if we didn't find anything.
12366 if test -z "$aix_libpath"; then
12367   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368 fi
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext \
12371     conftest$ac_exeext conftest.$ac_ext
12372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12373
12374         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12375         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"
12376       else
12377         if test "$host_cpu" = ia64; then
12378           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12379           allow_undefined_flag_GO="-z nodefs"
12380           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"
12381         else
12382          # Determine the default libpath from the value encoded in an
12383          # empty executable.
12384          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h.  */
12386
12387 int
12388 main ()
12389 {
12390
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_link "$LINENO"; then :
12396
12397 lt_aix_libpath_sed='
12398     /Import File Strings/,/^$/ {
12399         /^0/ {
12400             s/^0  *\(.*\)$/\1/
12401             p
12402         }
12403     }'
12404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12405 # Check for a 64-bit object if we didn't find anything.
12406 if test -z "$aix_libpath"; then
12407   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12408 fi
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext \
12411     conftest$ac_exeext conftest.$ac_ext
12412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12413
12414          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12415           # Warning - without using the other run time loading flags,
12416           # -berok will link without error, but may produce a broken library.
12417           no_undefined_flag_GO=' ${wl}-bernotok'
12418           allow_undefined_flag_GO=' ${wl}-berok'
12419           if test "$with_gnu_ld" = yes; then
12420             # We only use this code for GNU lds that support --whole-archive.
12421             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12422           else
12423             # Exported symbols can be pulled into shared objects from archives
12424             whole_archive_flag_spec_GO='$convenience'
12425           fi
12426           archive_cmds_need_lc_GO=yes
12427           # This is similar to how AIX traditionally builds its shared libraries.
12428           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'
12429         fi
12430       fi
12431       ;;
12432
12433     amigaos*)
12434       case $host_cpu in
12435       powerpc)
12436             # see comment about AmigaOS4 .so support
12437             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12438             archive_expsym_cmds_GO=''
12439         ;;
12440       m68k)
12441             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)'
12442             hardcode_libdir_flag_spec_GO='-L$libdir'
12443             hardcode_minus_L_GO=yes
12444         ;;
12445       esac
12446       ;;
12447
12448     bsdi[45]*)
12449       export_dynamic_flag_spec_GO=-rdynamic
12450       ;;
12451
12452     cygwin* | mingw* | pw32* | cegcc*)
12453       # When not using gcc, we currently assume that we are using
12454       # Microsoft Visual C++.
12455       # hardcode_libdir_flag_spec is actually meaningless, as there is
12456       # no search path for DLLs.
12457       hardcode_libdir_flag_spec_GO=' '
12458       allow_undefined_flag_GO=unsupported
12459       # Tell ltmain to make .lib files, not .a files.
12460       libext=lib
12461       # Tell ltmain to make .dll files, not .so files.
12462       shrext_cmds=".dll"
12463       # FIXME: Setting linknames here is a bad hack.
12464       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12465       # The linker will automatically build a .lib file if we build a DLL.
12466       old_archive_from_new_cmds_GO='true'
12467       # FIXME: Should let the user specify the lib program.
12468       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12469       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12470       enable_shared_with_static_runtimes_GO=yes
12471       ;;
12472
12473     darwin* | rhapsody*)
12474
12475
12476   archive_cmds_need_lc_GO=no
12477   hardcode_direct_GO=no
12478   hardcode_automatic_GO=yes
12479   hardcode_shlibpath_var_GO=unsupported
12480   if test "$lt_cv_ld_force_load" = "yes"; then
12481     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\"`'
12482   else
12483     whole_archive_flag_spec_GO=''
12484   fi
12485   link_all_deplibs_GO=yes
12486   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12487   case $cc_basename in
12488      ifort*) _lt_dar_can_shared=yes ;;
12489      *) _lt_dar_can_shared=$GCC ;;
12490   esac
12491   if test "$_lt_dar_can_shared" = "yes"; then
12492     output_verbose_link_cmd=func_echo_all
12493     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}"
12494     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12495     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}"
12496     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}"
12497
12498   else
12499   ld_shlibs_GO=no
12500   fi
12501
12502       ;;
12503
12504     dgux*)
12505       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12506       hardcode_libdir_flag_spec_GO='-L$libdir'
12507       hardcode_shlibpath_var_GO=no
12508       ;;
12509
12510     freebsd1*)
12511       ld_shlibs_GO=no
12512       ;;
12513
12514     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12515     # support.  Future versions do this automatically, but an explicit c++rt0.o
12516     # does not break anything, and helps significantly (at the cost of a little
12517     # extra space).
12518     freebsd2.2*)
12519       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12520       hardcode_libdir_flag_spec_GO='-R$libdir'
12521       hardcode_direct_GO=yes
12522       hardcode_shlibpath_var_GO=no
12523       ;;
12524
12525     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12526     freebsd2*)
12527       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12528       hardcode_direct_GO=yes
12529       hardcode_minus_L_GO=yes
12530       hardcode_shlibpath_var_GO=no
12531       ;;
12532
12533     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12534     freebsd* | dragonfly*)
12535       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12536       hardcode_libdir_flag_spec_GO='-R$libdir'
12537       hardcode_direct_GO=yes
12538       hardcode_shlibpath_var_GO=no
12539       ;;
12540
12541     hpux9*)
12542       if test "$GCC" = yes; then
12543         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'
12544       else
12545         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'
12546       fi
12547       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12548       hardcode_libdir_separator_GO=:
12549       hardcode_direct_GO=yes
12550
12551       # hardcode_minus_L: Not really in the search PATH,
12552       # but as the default location of the library.
12553       hardcode_minus_L_GO=yes
12554       export_dynamic_flag_spec_GO='${wl}-E'
12555       ;;
12556
12557     hpux10*)
12558       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12559         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12560       else
12561         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12562       fi
12563       if test "$with_gnu_ld" = no; then
12564         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12565         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12566         hardcode_libdir_separator_GO=:
12567         hardcode_direct_GO=yes
12568         hardcode_direct_absolute_GO=yes
12569         export_dynamic_flag_spec_GO='${wl}-E'
12570         # hardcode_minus_L: Not really in the search PATH,
12571         # but as the default location of the library.
12572         hardcode_minus_L_GO=yes
12573       fi
12574       ;;
12575
12576     hpux11*)
12577       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12578         case $host_cpu in
12579         hppa*64*)
12580           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12581           ;;
12582         ia64*)
12583           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12584           ;;
12585         *)
12586           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12587           ;;
12588         esac
12589       else
12590         case $host_cpu in
12591         hppa*64*)
12592           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12593           ;;
12594         ia64*)
12595           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12596           ;;
12597         *)
12598         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12599           ;;
12600         esac
12601       fi
12602       if test "$with_gnu_ld" = no; then
12603         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12604         hardcode_libdir_separator_GO=:
12605
12606         case $host_cpu in
12607         hppa*64*|ia64*)
12608           hardcode_direct_GO=no
12609           hardcode_shlibpath_var_GO=no
12610           ;;
12611         *)
12612           hardcode_direct_GO=yes
12613           hardcode_direct_absolute_GO=yes
12614           export_dynamic_flag_spec_GO='${wl}-E'
12615
12616           # hardcode_minus_L: Not really in the search PATH,
12617           # but as the default location of the library.
12618           hardcode_minus_L_GO=yes
12619           ;;
12620         esac
12621       fi
12622       ;;
12623
12624     irix5* | irix6* | nonstopux*)
12625       if test "$GCC" = yes; then
12626         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'
12627         # Try to use the -exported_symbol ld option, if it does not
12628         # work, assume that -exports_file does not work either and
12629         # implicitly export all symbols.
12630         save_LDFLAGS="$LDFLAGS"
12631         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12632         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h.  */
12634 int foo(void) {}
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"; then :
12637   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'
12638
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext \
12641     conftest$ac_exeext conftest.$ac_ext
12642         LDFLAGS="$save_LDFLAGS"
12643       else
12644         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'
12645         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'
12646       fi
12647       archive_cmds_need_lc_GO='no'
12648       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12649       hardcode_libdir_separator_GO=:
12650       inherit_rpath_GO=yes
12651       link_all_deplibs_GO=yes
12652       ;;
12653
12654     netbsd*)
12655       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12656         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12657       else
12658         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12659       fi
12660       hardcode_libdir_flag_spec_GO='-R$libdir'
12661       hardcode_direct_GO=yes
12662       hardcode_shlibpath_var_GO=no
12663       ;;
12664
12665     newsos6)
12666       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12667       hardcode_direct_GO=yes
12668       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12669       hardcode_libdir_separator_GO=:
12670       hardcode_shlibpath_var_GO=no
12671       ;;
12672
12673     *nto* | *qnx*)
12674       ;;
12675
12676     openbsd*)
12677       if test -f /usr/libexec/ld.so; then
12678         hardcode_direct_GO=yes
12679         hardcode_shlibpath_var_GO=no
12680         hardcode_direct_absolute_GO=yes
12681         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12682           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12683           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12684           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12685           export_dynamic_flag_spec_GO='${wl}-E'
12686         else
12687           case $host_os in
12688            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12689              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12690              hardcode_libdir_flag_spec_GO='-R$libdir'
12691              ;;
12692            *)
12693              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12694              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12695              ;;
12696           esac
12697         fi
12698       else
12699         ld_shlibs_GO=no
12700       fi
12701       ;;
12702
12703     os2*)
12704       hardcode_libdir_flag_spec_GO='-L$libdir'
12705       hardcode_minus_L_GO=yes
12706       allow_undefined_flag_GO=unsupported
12707       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'
12708       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12709       ;;
12710
12711     osf3*)
12712       if test "$GCC" = yes; then
12713         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12714         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'
12715       else
12716         allow_undefined_flag_GO=' -expect_unresolved \*'
12717         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'
12718       fi
12719       archive_cmds_need_lc_GO='no'
12720       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12721       hardcode_libdir_separator_GO=:
12722       ;;
12723
12724     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12725       if test "$GCC" = yes; then
12726         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12727         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'
12728         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12729       else
12730         allow_undefined_flag_GO=' -expect_unresolved \*'
12731         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'
12732         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~
12733         $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'
12734
12735         # Both c and cxx compiler support -rpath directly
12736         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12737       fi
12738       archive_cmds_need_lc_GO='no'
12739       hardcode_libdir_separator_GO=:
12740       ;;
12741
12742     solaris*)
12743       no_undefined_flag_GO=' -z defs'
12744       if test "$GCC" = yes; then
12745         wlarc='${wl}'
12746         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12747         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12748           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12749       else
12750         case `$CC -V 2>&1` in
12751         *"Compilers 5.0"*)
12752           wlarc=''
12753           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12754           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12755           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12756           ;;
12757         *)
12758           wlarc='${wl}'
12759           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12760           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12761           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12762           ;;
12763         esac
12764       fi
12765       hardcode_libdir_flag_spec_GO='-R$libdir'
12766       hardcode_shlibpath_var_GO=no
12767       case $host_os in
12768       solaris2.[0-5] | solaris2.[0-5].*) ;;
12769       *)
12770         # The compiler driver will combine and reorder linker options,
12771         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12772         # but is careful enough not to reorder.
12773         # Supported since Solaris 2.6 (maybe 2.5.1?)
12774         if test "$GCC" = yes; then
12775           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12776         else
12777           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12778         fi
12779         ;;
12780       esac
12781       link_all_deplibs_GO=yes
12782       ;;
12783
12784     sunos4*)
12785       if test "x$host_vendor" = xsequent; then
12786         # Use $CC to link under sequent, because it throws in some extra .o
12787         # files that make .init and .fini sections work.
12788         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12789       else
12790         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12791       fi
12792       hardcode_libdir_flag_spec_GO='-L$libdir'
12793       hardcode_direct_GO=yes
12794       hardcode_minus_L_GO=yes
12795       hardcode_shlibpath_var_GO=no
12796       ;;
12797
12798     sysv4)
12799       case $host_vendor in
12800         sni)
12801           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12802           hardcode_direct_GO=yes # is this really true???
12803         ;;
12804         siemens)
12805           ## LD is ld it makes a PLAMLIB
12806           ## CC just makes a GrossModule.
12807           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12808           reload_cmds_GO='$CC -r -o $output$reload_objs'
12809           hardcode_direct_GO=no
12810         ;;
12811         motorola)
12812           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12813           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12814         ;;
12815       esac
12816       runpath_var='LD_RUN_PATH'
12817       hardcode_shlibpath_var_GO=no
12818       ;;
12819
12820     sysv4.3*)
12821       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12822       hardcode_shlibpath_var_GO=no
12823       export_dynamic_flag_spec_GO='-Bexport'
12824       ;;
12825
12826     sysv4*MP*)
12827       if test -d /usr/nec; then
12828         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12829         hardcode_shlibpath_var_GO=no
12830         runpath_var=LD_RUN_PATH
12831         hardcode_runpath_var=yes
12832         ld_shlibs_GO=yes
12833       fi
12834       ;;
12835
12836     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12837       no_undefined_flag_GO='${wl}-z,text'
12838       archive_cmds_need_lc_GO=no
12839       hardcode_shlibpath_var_GO=no
12840       runpath_var='LD_RUN_PATH'
12841
12842       if test "$GCC" = yes; then
12843         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12844         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12845       else
12846         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12847         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12848       fi
12849       ;;
12850
12851     sysv5* | sco3.2v5* | sco5v6*)
12852       # Note: We can NOT use -z defs as we might desire, because we do not
12853       # link with -lc, and that would cause any symbols used from libc to
12854       # always be unresolved, which means just about no library would
12855       # ever link correctly.  If we're not using GNU ld we use -z text
12856       # though, which does catch some bad symbols but isn't as heavy-handed
12857       # as -z defs.
12858       no_undefined_flag_GO='${wl}-z,text'
12859       allow_undefined_flag_GO='${wl}-z,nodefs'
12860       archive_cmds_need_lc_GO=no
12861       hardcode_shlibpath_var_GO=no
12862       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12863       hardcode_libdir_separator_GO=':'
12864       link_all_deplibs_GO=yes
12865       export_dynamic_flag_spec_GO='${wl}-Bexport'
12866       runpath_var='LD_RUN_PATH'
12867
12868       if test "$GCC" = yes; then
12869         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12870         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12871       else
12872         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12873         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12874       fi
12875       ;;
12876
12877     uts4*)
12878       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12879       hardcode_libdir_flag_spec_GO='-L$libdir'
12880       hardcode_shlibpath_var_GO=no
12881       ;;
12882
12883     *)
12884       ld_shlibs_GO=no
12885       ;;
12886     esac
12887
12888     if test x$host_vendor = xsni; then
12889       case $host in
12890       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12891         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12892         ;;
12893       esac
12894     fi
12895   fi
12896
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12898 $as_echo "$ld_shlibs_GO" >&6; }
12899 test "$ld_shlibs_GO" = no && can_build_shared=no
12900
12901 with_gnu_ld_GO=$with_gnu_ld
12902
12903
12904
12905
12906
12907
12908 #
12909 # Do we need to explicitly link libc?
12910 #
12911 case "x$archive_cmds_need_lc_GO" in
12912 x|xyes)
12913   # Assume -lc should be added
12914   archive_cmds_need_lc_GO=yes
12915
12916   if test "$enable_shared" = yes && test "$GCC" = yes; then
12917     case $archive_cmds_GO in
12918     *'~'*)
12919       # FIXME: we may have to deal with multi-command sequences.
12920       ;;
12921     '$CC '*)
12922       # Test whether the compiler implicitly links with -lc since on some
12923       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12924       # to ld, don't add -lc before -lgcc.
12925       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12926 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12927 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12928   $as_echo_n "(cached) " >&6
12929 else
12930   $RM conftest*
12931         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12932
12933         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12934   (eval $ac_compile) 2>&5
12935   ac_status=$?
12936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937   test $ac_status = 0; } 2>conftest.err; then
12938           soname=conftest
12939           lib=conftest
12940           libobjs=conftest.$ac_objext
12941           deplibs=
12942           wl=$lt_prog_compiler_wl_GO
12943           pic_flag=$lt_prog_compiler_pic_GO
12944           compiler_flags=-v
12945           linker_flags=-v
12946           verstring=
12947           output_objdir=.
12948           libname=conftest
12949           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12950           allow_undefined_flag_GO=
12951           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12952   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12953   ac_status=$?
12954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12955   test $ac_status = 0; }
12956           then
12957             lt_cv_archive_cmds_need_lc_GO=no
12958           else
12959             lt_cv_archive_cmds_need_lc_GO=yes
12960           fi
12961           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12962         else
12963           cat conftest.err 1>&5
12964         fi
12965         $RM conftest*
12966
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12969 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12970       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12971       ;;
12972     esac
12973   fi
12974   ;;
12975 esac
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13041 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13042 hardcode_action_GO=
13043 if test -n "$hardcode_libdir_flag_spec_GO" ||
13044    test -n "$runpath_var_GO" ||
13045    test "X$hardcode_automatic_GO" = "Xyes" ; then
13046
13047   # We can hardcode non-existent directories.
13048   if test "$hardcode_direct_GO" != no &&
13049      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13050      # have to relink, otherwise we might link with an installed library
13051      # when we should be linking with a yet-to-be-installed one
13052      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13053      test "$hardcode_minus_L_GO" != no; then
13054     # Linking always hardcodes the temporary library directory.
13055     hardcode_action_GO=relink
13056   else
13057     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13058     hardcode_action_GO=immediate
13059   fi
13060 else
13061   # We cannot hardcode anything, or else we can only hardcode existing
13062   # directories.
13063   hardcode_action_GO=unsupported
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13066 $as_echo "$hardcode_action_GO" >&6; }
13067
13068 if test "$hardcode_action_GO" = relink ||
13069    test "$inherit_rpath_GO" = yes; then
13070   # Fast installation is not supported
13071   enable_fast_install=no
13072 elif test "$shlibpath_overrides_runpath" = yes ||
13073      test "$enable_shared" = no; then
13074   # Fast installation is not necessary
13075   enable_fast_install=needless
13076 fi
13077
13078
13079
13080
13081
13082
13083
13084 fi
13085
13086 ac_ext=c
13087 ac_cpp='$CPP $CPPFLAGS'
13088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13091
13092
13093 GCC=$lt_save_GCC
13094 CC="$lt_save_CC"
13095
13096
13097
13098
13099         ac_config_commands="$ac_config_commands libtool"
13100
13101
13102
13103
13104 # Only expand once:
13105
13106
13107
13108
13109
13110 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13111
13112
13113 WERROR="-Werror"
13114
13115
13116 glibgo_toolexecdir=no
13117 glibgo_toolexeclibdir=no
13118 glibgo_prefixdir=$prefix
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13121 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13122 # Check whether --enable-version-specific-runtime-libs was given.
13123 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13124   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13125     yes) version_specific_libs=yes ;;
13126     no)  version_specific_libs=no ;;
13127     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13128    esac
13129 else
13130   version_specific_libs=no
13131 fi
13132
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13134 $as_echo "$version_specific_libs" >&6; }
13135
13136 # Version-specific runtime libs processing.
13137 if test $version_specific_libs = yes; then
13138   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13139   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13140 fi
13141
13142 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13143 # Install a library built with a cross compiler in tooldir, not libdir.
13144 if test x"$glibgo_toolexecdir" = x"no"; then
13145   if test -n "$with_cross_host" &&
13146      test x"$with_cross_host" != x"no"; then
13147     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13148     glibgo_toolexeclibdir='${toolexecdir}/lib'
13149   else
13150     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13151     glibgo_toolexeclibdir='${libdir}'
13152   fi
13153   multi_os_directory=`$CC -print-multi-os-directory`
13154   case $multi_os_directory in
13155     .) ;; # Avoid trailing /.
13156     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13157   esac
13158 fi
13159
13160
13161
13162
13163
13164 # See if the user wants to configure without libffi.  Some
13165 # architectures don't support it.  FIXME: We should set a default
13166 # based on the host.
13167
13168 # Check whether --with-libffi was given.
13169 if test "${with_libffi+set}" = set; then :
13170   withval=$with_libffi; :
13171 else
13172   with_libffi=${with_libffi_default-yes}
13173 fi
13174
13175
13176 LIBFFI=
13177 LIBFFIINCS=
13178 if test "$with_libffi" != no; then
13179
13180 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13181
13182    LIBFFI=../libffi/libffi_convenience.la
13183    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13184 fi
13185
13186
13187
13188 is_darwin=no
13189 is_freebsd=no
13190 is_linux=no
13191 is_rtems=no
13192 case ${host} in
13193   *-*-darwin*) is_darwin=yes ;;
13194   *-*-freebsd*) is_freebsd=yes ;;
13195   *-*-linux*)  is_linux=yes  ;;
13196   *-*-rtems*)  is_rtems=yes  ;;
13197 esac
13198  if test $is_darwin = yes; then
13199   LIBGO_IS_DARWIN_TRUE=
13200   LIBGO_IS_DARWIN_FALSE='#'
13201 else
13202   LIBGO_IS_DARWIN_TRUE='#'
13203   LIBGO_IS_DARWIN_FALSE=
13204 fi
13205
13206  if test $is_freebsd = yes; then
13207   LIBGO_IS_FREEBSD_TRUE=
13208   LIBGO_IS_FREEBSD_FALSE='#'
13209 else
13210   LIBGO_IS_FREEBSD_TRUE='#'
13211   LIBGO_IS_FREEBSD_FALSE=
13212 fi
13213
13214  if test $is_linux = yes; then
13215   LIBGO_IS_LINUX_TRUE=
13216   LIBGO_IS_LINUX_FALSE='#'
13217 else
13218   LIBGO_IS_LINUX_TRUE='#'
13219   LIBGO_IS_LINUX_FALSE=
13220 fi
13221
13222  if test $is_rtems = yes; then
13223   LIBGO_IS_RTEMS_TRUE=
13224   LIBGO_IS_RTEMS_FALSE='#'
13225 else
13226   LIBGO_IS_RTEMS_TRUE='#'
13227   LIBGO_IS_RTEMS_FALSE=
13228 fi
13229
13230
13231 is_386=no
13232 is_x86_64=no
13233 is_arm=no
13234 case ${host} in
13235   i[34567]86-*-*)
13236     is_386=yes
13237     ;;
13238   x86_64-*-*)
13239     if test "$with_multisubdir" = "32"; then
13240       is_386=yes
13241     else
13242       is_x86_64=yes
13243     fi
13244     ;;
13245   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13246     is_arm=yes
13247     ;;
13248 esac
13249  if test $is_386 = yes; then
13250   LIBGO_IS_386_TRUE=
13251   LIBGO_IS_386_FALSE='#'
13252 else
13253   LIBGO_IS_386_TRUE='#'
13254   LIBGO_IS_386_FALSE=
13255 fi
13256
13257  if test $is_x86_64 = yes; then
13258   LIBGO_IS_X86_64_TRUE=
13259   LIBGO_IS_X86_64_FALSE='#'
13260 else
13261   LIBGO_IS_X86_64_TRUE='#'
13262   LIBGO_IS_X86_64_FALSE=
13263 fi
13264
13265  if test $is_arm = yes; then
13266   LIBGO_IS_ARM_TRUE=
13267   LIBGO_IS_ARM_FALSE='#'
13268 else
13269   LIBGO_IS_ARM_TRUE='#'
13270   LIBGO_IS_ARM_FALSE=
13271 fi
13272
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13275 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13276 if test "${ac_cv_libgo_split_stack_supported+set}" = set; then :
13277   $as_echo_n "(cached) " >&6
13278 else
13279   CFLAGS_hold=$CFLAGS
13280 CFLAGS="$CFLAGS -fsplit-stack"
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h.  */
13283 int i;
13284 _ACEOF
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286   ac_cv_libgo_split_stack_supported=yes
13287 else
13288   ac_cv_libgo_split_stack_supported=no
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 CFLAGS=$CFLAGS_hold
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_split_stack_supported" >&5
13294 $as_echo "$ac_cv_libgo_split_stack_supported" >&6; }
13295 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13296   SPLIT_STACK=-fsplit-stack
13297
13298 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13299
13300 else
13301   SPLIT_STACK=
13302 fi
13303
13304  if test "$ac_cv_libgo_split_stack_supported" = yes; then
13305   USING_SPLIT_STACK_TRUE=
13306   USING_SPLIT_STACK_FALSE='#'
13307 else
13308   USING_SPLIT_STACK_TRUE='#'
13309   USING_SPLIT_STACK_FALSE=
13310 fi
13311
13312
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13314 $as_echo_n "checking whether linker supports split stack... " >&6; }
13315 if test "${ac_cv_libgo_linker_supports_split_stack+set}" = set; then :
13316   $as_echo_n "(cached) " >&6
13317 else
13318   ac_cv_libgo_linker_supports_split_stack=no
13319 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13320   ac_cv_libgo_linker_supports_split_stack=yes
13321 fi
13322 fi
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_linker_supports_split_stack" >&5
13324 $as_echo "$ac_cv_libgo_linker_supports_split_stack" >&6; }
13325 if test "$ac_cv_libgo_linker_supports_split_stack" = yes; then
13326
13327 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13328
13329 fi
13330
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13332 $as_echo_n "checking whether -pthread is supported... " >&6; }
13333 if test "${ac_cv_libgo_pthread_supported+set}" = set; then :
13334   $as_echo_n "(cached) " >&6
13335 else
13336   CFLAGS_hold=$CFLAGS
13337 CFLAGS="$CFLAGS -pthread"
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h.  */
13340 int i;
13341 _ACEOF
13342 if ac_fn_c_try_compile "$LINENO"; then :
13343   ac_cv_libgo_pthread_supported=yes
13344 else
13345   ac_cv_libgo_pthread_supported=no
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 CFLAGS=$CFLAGS_hold
13349 fi
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_pthread_supported" >&5
13351 $as_echo "$ac_cv_libgo_pthread_supported" >&6; }
13352 PTHREAD_CFLAGS=
13353 if test "$ac_cv_libgo_pthread_supported" = yes; then
13354   PTHREAD_CFLAGS=-pthread
13355 fi
13356
13357
13358 PTHREAD_LIBS=
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13360 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13361 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   ac_check_lib_save_LIBS=$LIBS
13365 LIBS="-lpthread  $LIBS"
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h.  */
13368
13369 /* Override any GCC internal prototype to avoid an error.
13370    Use char because int might match the return type of a GCC
13371    builtin and then its argument prototype would still apply.  */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 char pthread_create ();
13376 int
13377 main ()
13378 {
13379 return pthread_create ();
13380   ;
13381   return 0;
13382 }
13383 _ACEOF
13384 if ac_fn_c_try_link "$LINENO"; then :
13385   ac_cv_lib_pthread_pthread_create=yes
13386 else
13387   ac_cv_lib_pthread_pthread_create=no
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext \
13390     conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13394 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13395 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13396   PTHREAD_LIBS=-lpthread
13397 fi
13398
13399
13400
13401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13402 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13403 if test "${ac_cv_c_bigendian+set}" = set; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406   ac_cv_c_bigendian=unknown
13407     # See if we're dealing with a universal compiler.
13408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h.  */
13410 #ifndef __APPLE_CC__
13411                not a universal capable compiler
13412              #endif
13413              typedef int dummy;
13414
13415 _ACEOF
13416 if ac_fn_c_try_compile "$LINENO"; then :
13417
13418         # Check for potential -arch flags.  It is not universal unless
13419         # there are at least two -arch flags with different values.
13420         ac_arch=
13421         ac_prev=
13422         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13423          if test -n "$ac_prev"; then
13424            case $ac_word in
13425              i?86 | x86_64 | ppc | ppc64)
13426                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13427                  ac_arch=$ac_word
13428                else
13429                  ac_cv_c_bigendian=universal
13430                  break
13431                fi
13432                ;;
13433            esac
13434            ac_prev=
13435          elif test "x$ac_word" = "x-arch"; then
13436            ac_prev=arch
13437          fi
13438        done
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441     if test $ac_cv_c_bigendian = unknown; then
13442       # See if sys/param.h defines the BYTE_ORDER macro.
13443       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h.  */
13445 #include <sys/types.h>
13446              #include <sys/param.h>
13447
13448 int
13449 main ()
13450 {
13451 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13452                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13453                      && LITTLE_ENDIAN)
13454               bogus endian macros
13455              #endif
13456
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_compile "$LINENO"; then :
13462   # It does; now see whether it defined to BIG_ENDIAN or not.
13463          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h.  */
13465 #include <sys/types.h>
13466                 #include <sys/param.h>
13467
13468 int
13469 main ()
13470 {
13471 #if BYTE_ORDER != BIG_ENDIAN
13472                  not big endian
13473                 #endif
13474
13475   ;
13476   return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_compile "$LINENO"; then :
13480   ac_cv_c_bigendian=yes
13481 else
13482   ac_cv_c_bigendian=no
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 fi
13486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487     fi
13488     if test $ac_cv_c_bigendian = unknown; then
13489       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h.  */
13492 #include <limits.h>
13493
13494 int
13495 main ()
13496 {
13497 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13498               bogus endian macros
13499              #endif
13500
13501   ;
13502   return 0;
13503 }
13504 _ACEOF
13505 if ac_fn_c_try_compile "$LINENO"; then :
13506   # It does; now see whether it defined to _BIG_ENDIAN or not.
13507          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h.  */
13509 #include <limits.h>
13510
13511 int
13512 main ()
13513 {
13514 #ifndef _BIG_ENDIAN
13515                  not big endian
13516                 #endif
13517
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"; then :
13523   ac_cv_c_bigendian=yes
13524 else
13525   ac_cv_c_bigendian=no
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530     fi
13531     if test $ac_cv_c_bigendian = unknown; then
13532       # Compile a test program.
13533       if test "$cross_compiling" = yes; then :
13534   # Try to guess by grepping values from an object file.
13535          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h.  */
13537 short int ascii_mm[] =
13538                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13539                 short int ascii_ii[] =
13540                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13541                 int use_ascii (int i) {
13542                   return ascii_mm[i] + ascii_ii[i];
13543                 }
13544                 short int ebcdic_ii[] =
13545                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13546                 short int ebcdic_mm[] =
13547                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13548                 int use_ebcdic (int i) {
13549                   return ebcdic_mm[i] + ebcdic_ii[i];
13550                 }
13551                 extern int foo;
13552
13553 int
13554 main ()
13555 {
13556 return use_ascii (foo) == use_ebcdic (foo);
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 if ac_fn_c_try_compile "$LINENO"; then :
13562   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13563               ac_cv_c_bigendian=yes
13564             fi
13565             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13566               if test "$ac_cv_c_bigendian" = unknown; then
13567                 ac_cv_c_bigendian=no
13568               else
13569                 # finding both strings is unlikely to happen, but who knows?
13570                 ac_cv_c_bigendian=unknown
13571               fi
13572             fi
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 else
13576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h.  */
13578 $ac_includes_default
13579 int
13580 main ()
13581 {
13582
13583              /* Are we little or big endian?  From Harbison&Steele.  */
13584              union
13585              {
13586                long int l;
13587                char c[sizeof (long int)];
13588              } u;
13589              u.l = 1;
13590              return u.c[sizeof (long int) - 1] == 1;
13591
13592   ;
13593   return 0;
13594 }
13595 _ACEOF
13596 if ac_fn_c_try_run "$LINENO"; then :
13597   ac_cv_c_bigendian=no
13598 else
13599   ac_cv_c_bigendian=yes
13600 fi
13601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13602   conftest.$ac_objext conftest.beam conftest.$ac_ext
13603 fi
13604
13605     fi
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13608 $as_echo "$ac_cv_c_bigendian" >&6; }
13609  case $ac_cv_c_bigendian in #(
13610    yes)
13611      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13612 ;; #(
13613    no)
13614       ;; #(
13615    universal)
13616
13617 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13618
13619      ;; #(
13620    *)
13621      as_fn_error "unknown endianness
13622  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13623  esac
13624
13625
13626
13627
13628 # Check whether --with-system-libunwind was given.
13629 if test "${with_system_libunwind+set}" = set; then :
13630   withval=$with_system_libunwind;
13631 fi
13632
13633   # If system-libunwind was not specifically set, pick a default setting.
13634   if test x$with_system_libunwind = x; then
13635     case ${target} in
13636       ia64-*-hpux*) with_system_libunwind=yes ;;
13637       *) with_system_libunwind=no ;;
13638     esac
13639   fi
13640   # Based on system-libunwind and target, do we have ipinfo?
13641   if  test x$with_system_libunwind = xyes; then
13642     case ${target} in
13643       ia64-*-*) have_unwind_getipinfo=no ;;
13644       *) have_unwind_getipinfo=yes ;;
13645     esac
13646   else
13647     # Darwin before version 9 does not have _Unwind_GetIPInfo.
13648
13649     case ${target} in
13650       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13651       *) have_unwind_getipinfo=yes ;;
13652     esac
13653
13654   fi
13655
13656   if test x$have_unwind_getipinfo = xyes; then
13657
13658 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13659
13660   fi
13661
13662
13663 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13664 do :
13665   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13666 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13667 eval as_val=\$$as_ac_Header
13668    if test "x$as_val" = x""yes; then :
13669   cat >>confdefs.h <<_ACEOF
13670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13671 _ACEOF
13672
13673 fi
13674
13675 done
13676
13677  if test "$ac_cv_header_sys_mman_h" = yes; then
13678   HAVE_SYS_MMAN_H_TRUE=
13679   HAVE_SYS_MMAN_H_FALSE='#'
13680 else
13681   HAVE_SYS_MMAN_H_TRUE='#'
13682   HAVE_SYS_MMAN_H_FALSE=
13683 fi
13684
13685 for ac_func in srandom random strsignal
13686 do :
13687   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13689 eval as_val=\$$as_ac_var
13690    if test "x$as_val" = x""yes; then :
13691   cat >>confdefs.h <<_ACEOF
13692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13693 _ACEOF
13694
13695 fi
13696 done
13697
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13700 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13701 if test "${ac_cv_libgo_compiler_supports_inline_all_stringops+set}" = set; then :
13702   $as_echo_n "(cached) " >&6
13703 else
13704   CFLAGS_hold=$CFLAGS
13705 CFLAGS="$CFLAGS -minline-all-stringops"
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h.  */
13708 int i;
13709 _ACEOF
13710 if ac_fn_c_try_compile "$LINENO"; then :
13711   ac_cv_libgo_compiler_supports_inline_all_stringops=yes
13712 else
13713   ac_cv_libgo_compiler_supports_inline_all_stringops=no
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 CFLAGS=$CFLAGS_hold
13717 fi
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_compiler_supports_inline_all_stringops" >&5
13719 $as_echo "$ac_cv_libgo_compiler_supports_inline_all_stringops" >&6; }
13720 STRINGOPS_FLAG=
13721 if test "$ac_cv_libgo_compiler_supports_inline_all_stringops" = yes; then
13722   STRINGOPS_FLAG=-minline-all-stringops
13723 fi
13724
13725
13726 CFLAGS_hold=$CFLAGS
13727 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
13728 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
13729 if test "x$ac_cv_type_off64_t" = x""yes; then :
13730
13731 cat >>confdefs.h <<_ACEOF
13732 #define HAVE_OFF64_T 1
13733 _ACEOF
13734
13735
13736 fi
13737
13738 CFLAGS=$CFLAGS_hold
13739
13740 cat >confcache <<\_ACEOF
13741 # This file is a shell script that caches the results of configure
13742 # tests run on this system so they can be shared between configure
13743 # scripts and configure runs, see configure's option --config-cache.
13744 # It is not useful on other systems.  If it contains results you don't
13745 # want to keep, you may remove or edit it.
13746 #
13747 # config.status only pays attention to the cache file if you give it
13748 # the --recheck option to rerun configure.
13749 #
13750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13752 # following values.
13753
13754 _ACEOF
13755
13756 # The following way of writing the cache mishandles newlines in values,
13757 # but we know of no workaround that is simple, portable, and efficient.
13758 # So, we kill variables containing newlines.
13759 # Ultrix sh set writes to stderr and can't be redirected directly,
13760 # and sets the high bit in the cache file unless we assign to the vars.
13761 (
13762   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13763     eval ac_val=\$$ac_var
13764     case $ac_val in #(
13765     *${as_nl}*)
13766       case $ac_var in #(
13767       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13769       esac
13770       case $ac_var in #(
13771       _ | IFS | as_nl) ;; #(
13772       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13773       *) { eval $ac_var=; unset $ac_var;} ;;
13774       esac ;;
13775     esac
13776   done
13777
13778   (set) 2>&1 |
13779     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13780     *${as_nl}ac_space=\ *)
13781       # `set' does not quote correctly, so add quotes: double-quote
13782       # substitution turns \\\\ into \\, and sed turns \\ into \.
13783       sed -n \
13784         "s/'/'\\\\''/g;
13785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13786       ;; #(
13787     *)
13788       # `set' quotes correctly as required by POSIX, so do not add quotes.
13789       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13790       ;;
13791     esac |
13792     sort
13793 ) |
13794   sed '
13795      /^ac_cv_env_/b end
13796      t clear
13797      :clear
13798      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13799      t end
13800      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13801      :end' >>confcache
13802 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13803   if test -w "$cache_file"; then
13804     test "x$cache_file" != "x/dev/null" &&
13805       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13806 $as_echo "$as_me: updating cache $cache_file" >&6;}
13807     cat confcache >$cache_file
13808   else
13809     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13810 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13811   fi
13812 fi
13813 rm -f confcache
13814
13815 if test ${multilib} = yes; then
13816   multilib_arg="--enable-multilib"
13817 else
13818   multilib_arg=
13819 fi
13820
13821 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
13822
13823
13824 ac_config_commands="$ac_config_commands default"
13825
13826
13827 cat >confcache <<\_ACEOF
13828 # This file is a shell script that caches the results of configure
13829 # tests run on this system so they can be shared between configure
13830 # scripts and configure runs, see configure's option --config-cache.
13831 # It is not useful on other systems.  If it contains results you don't
13832 # want to keep, you may remove or edit it.
13833 #
13834 # config.status only pays attention to the cache file if you give it
13835 # the --recheck option to rerun configure.
13836 #
13837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13839 # following values.
13840
13841 _ACEOF
13842
13843 # The following way of writing the cache mishandles newlines in values,
13844 # but we know of no workaround that is simple, portable, and efficient.
13845 # So, we kill variables containing newlines.
13846 # Ultrix sh set writes to stderr and can't be redirected directly,
13847 # and sets the high bit in the cache file unless we assign to the vars.
13848 (
13849   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13850     eval ac_val=\$$ac_var
13851     case $ac_val in #(
13852     *${as_nl}*)
13853       case $ac_var in #(
13854       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13856       esac
13857       case $ac_var in #(
13858       _ | IFS | as_nl) ;; #(
13859       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13860       *) { eval $ac_var=; unset $ac_var;} ;;
13861       esac ;;
13862     esac
13863   done
13864
13865   (set) 2>&1 |
13866     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13867     *${as_nl}ac_space=\ *)
13868       # `set' does not quote correctly, so add quotes: double-quote
13869       # substitution turns \\\\ into \\, and sed turns \\ into \.
13870       sed -n \
13871         "s/'/'\\\\''/g;
13872           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13873       ;; #(
13874     *)
13875       # `set' quotes correctly as required by POSIX, so do not add quotes.
13876       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13877       ;;
13878     esac |
13879     sort
13880 ) |
13881   sed '
13882      /^ac_cv_env_/b end
13883      t clear
13884      :clear
13885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13886      t end
13887      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13888      :end' >>confcache
13889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13890   if test -w "$cache_file"; then
13891     test "x$cache_file" != "x/dev/null" &&
13892       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13893 $as_echo "$as_me: updating cache $cache_file" >&6;}
13894     cat confcache >$cache_file
13895   else
13896     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13897 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13898   fi
13899 fi
13900 rm -f confcache
13901
13902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13903 # Let make expand exec_prefix.
13904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13905
13906 DEFS=-DHAVE_CONFIG_H
13907
13908 ac_libobjs=
13909 ac_ltlibobjs=
13910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13911   # 1. Remove the extension, and $U if already installed.
13912   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13913   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13914   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13915   #    will be set to the directory where LIBOBJS objects are built.
13916   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13917   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13918 done
13919 LIBOBJS=$ac_libobjs
13920
13921 LTLIBOBJS=$ac_ltlibobjs
13922
13923
13924  if test -n "$EXEEXT"; then
13925   am__EXEEXT_TRUE=
13926   am__EXEEXT_FALSE='#'
13927 else
13928   am__EXEEXT_TRUE='#'
13929   am__EXEEXT_FALSE=
13930 fi
13931
13932 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13933   as_fn_error "conditional \"AMDEP\" was never defined.
13934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13935 fi
13936 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13937   as_fn_error "conditional \"am__fastdepCC\" was never defined.
13938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13939 fi
13940 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13941   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13943 fi
13944 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
13945   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
13946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13947 fi
13948 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
13949   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
13950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13951 fi
13952 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
13953   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
13954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13955 fi
13956 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
13957   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
13958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13959 fi
13960 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
13961   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
13962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13963 fi
13964 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
13965   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
13966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13967 fi
13968 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
13969   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
13970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13971 fi
13972 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
13973   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
13974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13975 fi
13976
13977 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
13978   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
13979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13980 fi
13981
13982 : ${CONFIG_STATUS=./config.status}
13983 ac_write_fail=0
13984 ac_clean_files_save=$ac_clean_files
13985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13987 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13988 as_write_fail=0
13989 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13990 #! $SHELL
13991 # Generated by $as_me.
13992 # Run this file to recreate the current configuration.
13993 # Compiler output produced by configure, useful for debugging
13994 # configure, is in config.log if it exists.
13995
13996 debug=false
13997 ac_cs_recheck=false
13998 ac_cs_silent=false
13999
14000 SHELL=\${CONFIG_SHELL-$SHELL}
14001 export SHELL
14002 _ASEOF
14003 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14004 ## -------------------- ##
14005 ## M4sh Initialization. ##
14006 ## -------------------- ##
14007
14008 # Be more Bourne compatible
14009 DUALCASE=1; export DUALCASE # for MKS sh
14010 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14011   emulate sh
14012   NULLCMD=:
14013   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14014   # is contrary to our usage.  Disable this feature.
14015   alias -g '${1+"$@"}'='"$@"'
14016   setopt NO_GLOB_SUBST
14017 else
14018   case `(set -o) 2>/dev/null` in #(
14019   *posix*) :
14020     set -o posix ;; #(
14021   *) :
14022      ;;
14023 esac
14024 fi
14025
14026
14027 as_nl='
14028 '
14029 export as_nl
14030 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14031 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14033 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14034 # Prefer a ksh shell builtin over an external printf program on Solaris,
14035 # but without wasting forks for bash or zsh.
14036 if test -z "$BASH_VERSION$ZSH_VERSION" \
14037     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14038   as_echo='print -r --'
14039   as_echo_n='print -rn --'
14040 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14041   as_echo='printf %s\n'
14042   as_echo_n='printf %s'
14043 else
14044   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14045     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14046     as_echo_n='/usr/ucb/echo -n'
14047   else
14048     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14049     as_echo_n_body='eval
14050       arg=$1;
14051       case $arg in #(
14052       *"$as_nl"*)
14053         expr "X$arg" : "X\\(.*\\)$as_nl";
14054         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14055       esac;
14056       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14057     '
14058     export as_echo_n_body
14059     as_echo_n='sh -c $as_echo_n_body as_echo'
14060   fi
14061   export as_echo_body
14062   as_echo='sh -c $as_echo_body as_echo'
14063 fi
14064
14065 # The user is always right.
14066 if test "${PATH_SEPARATOR+set}" != set; then
14067   PATH_SEPARATOR=:
14068   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14069     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14070       PATH_SEPARATOR=';'
14071   }
14072 fi
14073
14074
14075 # IFS
14076 # We need space, tab and new line, in precisely that order.  Quoting is
14077 # there to prevent editors from complaining about space-tab.
14078 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14079 # splitting by setting IFS to empty value.)
14080 IFS=" ""        $as_nl"
14081
14082 # Find who we are.  Look in the path if we contain no directory separator.
14083 case $0 in #((
14084   *[\\/]* ) as_myself=$0 ;;
14085   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14087 do
14088   IFS=$as_save_IFS
14089   test -z "$as_dir" && as_dir=.
14090     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14091   done
14092 IFS=$as_save_IFS
14093
14094      ;;
14095 esac
14096 # We did not find ourselves, most probably we were run as `sh COMMAND'
14097 # in which case we are not to be found in the path.
14098 if test "x$as_myself" = x; then
14099   as_myself=$0
14100 fi
14101 if test ! -f "$as_myself"; then
14102   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14103   exit 1
14104 fi
14105
14106 # Unset variables that we do not need and which cause bugs (e.g. in
14107 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14108 # suppresses any "Segmentation fault" message there.  '((' could
14109 # trigger a bug in pdksh 5.2.14.
14110 for as_var in BASH_ENV ENV MAIL MAILPATH
14111 do eval test x\${$as_var+set} = xset \
14112   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14113 done
14114 PS1='$ '
14115 PS2='> '
14116 PS4='+ '
14117
14118 # NLS nuisances.
14119 LC_ALL=C
14120 export LC_ALL
14121 LANGUAGE=C
14122 export LANGUAGE
14123
14124 # CDPATH.
14125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14126
14127
14128 # as_fn_error ERROR [LINENO LOG_FD]
14129 # ---------------------------------
14130 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14131 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14132 # script with status $?, using 1 if that was 0.
14133 as_fn_error ()
14134 {
14135   as_status=$?; test $as_status -eq 0 && as_status=1
14136   if test "$3"; then
14137     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14138     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14139   fi
14140   $as_echo "$as_me: error: $1" >&2
14141   as_fn_exit $as_status
14142 } # as_fn_error
14143
14144
14145 # as_fn_set_status STATUS
14146 # -----------------------
14147 # Set $? to STATUS, without forking.
14148 as_fn_set_status ()
14149 {
14150   return $1
14151 } # as_fn_set_status
14152
14153 # as_fn_exit STATUS
14154 # -----------------
14155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14156 as_fn_exit ()
14157 {
14158   set +e
14159   as_fn_set_status $1
14160   exit $1
14161 } # as_fn_exit
14162
14163 # as_fn_unset VAR
14164 # ---------------
14165 # Portably unset VAR.
14166 as_fn_unset ()
14167 {
14168   { eval $1=; unset $1;}
14169 }
14170 as_unset=as_fn_unset
14171 # as_fn_append VAR VALUE
14172 # ----------------------
14173 # Append the text in VALUE to the end of the definition contained in VAR. Take
14174 # advantage of any shell optimizations that allow amortized linear growth over
14175 # repeated appends, instead of the typical quadratic growth present in naive
14176 # implementations.
14177 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14178   eval 'as_fn_append ()
14179   {
14180     eval $1+=\$2
14181   }'
14182 else
14183   as_fn_append ()
14184   {
14185     eval $1=\$$1\$2
14186   }
14187 fi # as_fn_append
14188
14189 # as_fn_arith ARG...
14190 # ------------------
14191 # Perform arithmetic evaluation on the ARGs, and store the result in the
14192 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14193 # must be portable across $(()) and expr.
14194 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14195   eval 'as_fn_arith ()
14196   {
14197     as_val=$(( $* ))
14198   }'
14199 else
14200   as_fn_arith ()
14201   {
14202     as_val=`expr "$@" || test $? -eq 1`
14203   }
14204 fi # as_fn_arith
14205
14206
14207 if expr a : '\(a\)' >/dev/null 2>&1 &&
14208    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14209   as_expr=expr
14210 else
14211   as_expr=false
14212 fi
14213
14214 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14215   as_basename=basename
14216 else
14217   as_basename=false
14218 fi
14219
14220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14221   as_dirname=dirname
14222 else
14223   as_dirname=false
14224 fi
14225
14226 as_me=`$as_basename -- "$0" ||
14227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14228          X"$0" : 'X\(//\)$' \| \
14229          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14230 $as_echo X/"$0" |
14231     sed '/^.*\/\([^/][^/]*\)\/*$/{
14232             s//\1/
14233             q
14234           }
14235           /^X\/\(\/\/\)$/{
14236             s//\1/
14237             q
14238           }
14239           /^X\/\(\/\).*/{
14240             s//\1/
14241             q
14242           }
14243           s/.*/./; q'`
14244
14245 # Avoid depending upon Character Ranges.
14246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14249 as_cr_digits='0123456789'
14250 as_cr_alnum=$as_cr_Letters$as_cr_digits
14251
14252 ECHO_C= ECHO_N= ECHO_T=
14253 case `echo -n x` in #(((((
14254 -n*)
14255   case `echo 'xy\c'` in
14256   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14257   xy)  ECHO_C='\c';;
14258   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14259        ECHO_T=' ';;
14260   esac;;
14261 *)
14262   ECHO_N='-n';;
14263 esac
14264
14265 rm -f conf$$ conf$$.exe conf$$.file
14266 if test -d conf$$.dir; then
14267   rm -f conf$$.dir/conf$$.file
14268 else
14269   rm -f conf$$.dir
14270   mkdir conf$$.dir 2>/dev/null
14271 fi
14272 if (echo >conf$$.file) 2>/dev/null; then
14273   if ln -s conf$$.file conf$$ 2>/dev/null; then
14274     as_ln_s='ln -s'
14275     # ... but there are two gotchas:
14276     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14277     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14278     # In both cases, we have to default to `cp -p'.
14279     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14280       as_ln_s='cp -p'
14281   elif ln conf$$.file conf$$ 2>/dev/null; then
14282     as_ln_s=ln
14283   else
14284     as_ln_s='cp -p'
14285   fi
14286 else
14287   as_ln_s='cp -p'
14288 fi
14289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14290 rmdir conf$$.dir 2>/dev/null
14291
14292
14293 # as_fn_mkdir_p
14294 # -------------
14295 # Create "$as_dir" as a directory, including parents if necessary.
14296 as_fn_mkdir_p ()
14297 {
14298
14299   case $as_dir in #(
14300   -*) as_dir=./$as_dir;;
14301   esac
14302   test -d "$as_dir" || eval $as_mkdir_p || {
14303     as_dirs=
14304     while :; do
14305       case $as_dir in #(
14306       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14307       *) as_qdir=$as_dir;;
14308       esac
14309       as_dirs="'$as_qdir' $as_dirs"
14310       as_dir=`$as_dirname -- "$as_dir" ||
14311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14312          X"$as_dir" : 'X\(//\)[^/]' \| \
14313          X"$as_dir" : 'X\(//\)$' \| \
14314          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14315 $as_echo X"$as_dir" |
14316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14317             s//\1/
14318             q
14319           }
14320           /^X\(\/\/\)[^/].*/{
14321             s//\1/
14322             q
14323           }
14324           /^X\(\/\/\)$/{
14325             s//\1/
14326             q
14327           }
14328           /^X\(\/\).*/{
14329             s//\1/
14330             q
14331           }
14332           s/.*/./; q'`
14333       test -d "$as_dir" && break
14334     done
14335     test -z "$as_dirs" || eval "mkdir $as_dirs"
14336   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14337
14338
14339 } # as_fn_mkdir_p
14340 if mkdir -p . 2>/dev/null; then
14341   as_mkdir_p='mkdir -p "$as_dir"'
14342 else
14343   test -d ./-p && rmdir ./-p
14344   as_mkdir_p=false
14345 fi
14346
14347 if test -x / >/dev/null 2>&1; then
14348   as_test_x='test -x'
14349 else
14350   if ls -dL / >/dev/null 2>&1; then
14351     as_ls_L_option=L
14352   else
14353     as_ls_L_option=
14354   fi
14355   as_test_x='
14356     eval sh -c '\''
14357       if test -d "$1"; then
14358         test -d "$1/.";
14359       else
14360         case $1 in #(
14361         -*)set "./$1";;
14362         esac;
14363         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14364         ???[sx]*):;;*)false;;esac;fi
14365     '\'' sh
14366   '
14367 fi
14368 as_executable_p=$as_test_x
14369
14370 # Sed expression to map a string onto a valid CPP name.
14371 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14372
14373 # Sed expression to map a string onto a valid variable name.
14374 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14375
14376
14377 exec 6>&1
14378 ## ----------------------------------- ##
14379 ## Main body of $CONFIG_STATUS script. ##
14380 ## ----------------------------------- ##
14381 _ASEOF
14382 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14383
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385 # Save the log message, to keep $0 and so on meaningful, and to
14386 # report actual input values of CONFIG_FILES etc. instead of their
14387 # values after options handling.
14388 ac_log="
14389 This file was extended by package-unused $as_me version-unused, which was
14390 generated by GNU Autoconf 2.64.  Invocation command line was
14391
14392   CONFIG_FILES    = $CONFIG_FILES
14393   CONFIG_HEADERS  = $CONFIG_HEADERS
14394   CONFIG_LINKS    = $CONFIG_LINKS
14395   CONFIG_COMMANDS = $CONFIG_COMMANDS
14396   $ $0 $@
14397
14398 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14399 "
14400
14401 _ACEOF
14402
14403 case $ac_config_files in *"
14404 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14405 esac
14406
14407 case $ac_config_headers in *"
14408 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14409 esac
14410
14411
14412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413 # Files that config.status was made for.
14414 config_files="$ac_config_files"
14415 config_headers="$ac_config_headers"
14416 config_commands="$ac_config_commands"
14417
14418 _ACEOF
14419
14420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14421 ac_cs_usage="\
14422 \`$as_me' instantiates files and other configuration actions
14423 from templates according to the current configuration.  Unless the files
14424 and actions are specified as TAGs, all are instantiated by default.
14425
14426 Usage: $0 [OPTION]... [TAG]...
14427
14428   -h, --help       print this help, then exit
14429   -V, --version    print version number and configuration settings, then exit
14430   -q, --quiet, --silent
14431                    do not print progress messages
14432   -d, --debug      don't remove temporary files
14433       --recheck    update $as_me by reconfiguring in the same conditions
14434       --file=FILE[:TEMPLATE]
14435                    instantiate the configuration file FILE
14436       --header=FILE[:TEMPLATE]
14437                    instantiate the configuration header FILE
14438
14439 Configuration files:
14440 $config_files
14441
14442 Configuration headers:
14443 $config_headers
14444
14445 Configuration commands:
14446 $config_commands
14447
14448 Report bugs to the package provider."
14449
14450 _ACEOF
14451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14452 ac_cs_version="\\
14453 package-unused config.status version-unused
14454 configured by $0, generated by GNU Autoconf 2.64,
14455   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14456
14457 Copyright (C) 2009 Free Software Foundation, Inc.
14458 This config.status script is free software; the Free Software Foundation
14459 gives unlimited permission to copy, distribute and modify it."
14460
14461 ac_pwd='$ac_pwd'
14462 srcdir='$srcdir'
14463 INSTALL='$INSTALL'
14464 MKDIR_P='$MKDIR_P'
14465 AWK='$AWK'
14466 test -n "\$AWK" || AWK=awk
14467 _ACEOF
14468
14469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14470 # The default lists apply if the user does not specify any file.
14471 ac_need_defaults=:
14472 while test $# != 0
14473 do
14474   case $1 in
14475   --*=*)
14476     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14477     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14478     ac_shift=:
14479     ;;
14480   *)
14481     ac_option=$1
14482     ac_optarg=$2
14483     ac_shift=shift
14484     ;;
14485   esac
14486
14487   case $ac_option in
14488   # Handling of the options.
14489   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14490     ac_cs_recheck=: ;;
14491   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14492     $as_echo "$ac_cs_version"; exit ;;
14493   --debug | --debu | --deb | --de | --d | -d )
14494     debug=: ;;
14495   --file | --fil | --fi | --f )
14496     $ac_shift
14497     case $ac_optarg in
14498     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14499     esac
14500     as_fn_append CONFIG_FILES " '$ac_optarg'"
14501     ac_need_defaults=false;;
14502   --header | --heade | --head | --hea )
14503     $ac_shift
14504     case $ac_optarg in
14505     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14506     esac
14507     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14508     ac_need_defaults=false;;
14509   --he | --h)
14510     # Conflict between --help and --header
14511     as_fn_error "ambiguous option: \`$1'
14512 Try \`$0 --help' for more information.";;
14513   --help | --hel | -h )
14514     $as_echo "$ac_cs_usage"; exit ;;
14515   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14516   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14517     ac_cs_silent=: ;;
14518
14519   # This is an error.
14520   -*) as_fn_error "unrecognized option: \`$1'
14521 Try \`$0 --help' for more information." ;;
14522
14523   *) as_fn_append ac_config_targets " $1"
14524      ac_need_defaults=false ;;
14525
14526   esac
14527   shift
14528 done
14529
14530 ac_configure_extra_args=
14531
14532 if $ac_cs_silent; then
14533   exec 6>/dev/null
14534   ac_configure_extra_args="$ac_configure_extra_args --silent"
14535 fi
14536
14537 _ACEOF
14538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14539 if \$ac_cs_recheck; then
14540   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14541   shift
14542   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14543   CONFIG_SHELL='$SHELL'
14544   export CONFIG_SHELL
14545   exec "\$@"
14546 fi
14547
14548 _ACEOF
14549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14550 exec 5>>config.log
14551 {
14552   echo
14553   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14554 ## Running $as_me. ##
14555 _ASBOX
14556   $as_echo "$ac_log"
14557 } >&5
14558
14559 _ACEOF
14560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14561 #
14562 # INIT-COMMANDS
14563 #
14564
14565 srcdir="$srcdir"
14566 host="$host"
14567 target="$target"
14568 with_multisubdir="$with_multisubdir"
14569 with_multisrctop="$with_multisrctop"
14570 with_target_subdir="$with_target_subdir"
14571 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14572 multi_basedir="$multi_basedir"
14573 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14574 CC="$CC"
14575 CXX="$CXX"
14576 GFORTRAN="$GFORTRAN"
14577 GCJ="$GCJ"
14578 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14579
14580
14581 # The HP-UX ksh and POSIX shell print the target directory to stdout
14582 # if CDPATH is set.
14583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14584
14585 sed_quote_subst='$sed_quote_subst'
14586 double_quote_subst='$double_quote_subst'
14587 delay_variable_subst='$delay_variable_subst'
14588 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14589 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14590 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14591 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14592 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14593 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14594 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14595 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14596 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14597 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14598 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14599 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14600 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14601 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14602 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14603 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14604 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14605 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14606 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14607 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14608 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14609 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14610 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14611 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14612 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14613 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14614 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14615 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14616 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14617 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14618 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14619 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14620 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14621 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14622 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14623 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14624 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14625 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14626 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14627 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14628 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14629 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14630 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14631 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14632 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14633 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14635 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14636 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"`'
14637 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14638 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14639 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14640 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14641 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14642 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14643 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14644 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14645 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14646 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14647 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14648 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14649 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14650 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14651 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14652 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14653 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14654 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14655 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14656 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14657 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14658 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14659 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14660 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14661 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14662 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14663 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14664 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14665 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14666 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14667 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14668 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14669 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14670 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14671 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14672 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14673 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14674 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14675 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14676 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14677 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14678 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14679 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14680 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14681 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14682 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14683 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14684 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14685 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14686 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14687 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14688 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14689 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14690 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14691 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14692 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14693 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14694 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14695 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14696 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14697 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14698 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14699 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14700 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14701 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14702 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14703 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14704 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14705 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14706 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14707 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14708 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
14709 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
14710 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
14711 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14712 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
14713 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
14714 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
14715 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
14716 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
14717 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
14718 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
14719 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
14720 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
14721 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14722 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14723 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
14724 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
14725 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
14726 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14727 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14728 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
14729 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14730 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
14731 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14732 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14733 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14734 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
14735 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
14736 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
14737 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
14738 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
14739 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
14740 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
14741 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
14742 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
14743 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
14744 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
14745 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
14746 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14747 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14748 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
14749 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
14750 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
14751
14752 LTCC='$LTCC'
14753 LTCFLAGS='$LTCFLAGS'
14754 compiler='$compiler_DEFAULT'
14755
14756 # A function that is used when there is no print builtin or printf.
14757 func_fallback_echo ()
14758 {
14759   eval 'cat <<_LTECHO_EOF
14760 \$1
14761 _LTECHO_EOF'
14762 }
14763
14764 # Quote evaled strings.
14765 for var in SED \
14766 GREP \
14767 EGREP \
14768 FGREP \
14769 SHELL \
14770 ECHO \
14771 LD \
14772 NM \
14773 LN_S \
14774 lt_SP2NL \
14775 lt_NL2SP \
14776 reload_flag \
14777 OBJDUMP \
14778 deplibs_check_method \
14779 file_magic_cmd \
14780 AR \
14781 AR_FLAGS \
14782 STRIP \
14783 RANLIB \
14784 CC \
14785 CFLAGS \
14786 compiler \
14787 lt_cv_sys_global_symbol_pipe \
14788 lt_cv_sys_global_symbol_to_cdecl \
14789 lt_cv_sys_global_symbol_to_c_name_address \
14790 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14791 lt_prog_compiler_no_builtin_flag \
14792 lt_prog_compiler_wl \
14793 lt_prog_compiler_pic \
14794 lt_prog_compiler_static \
14795 lt_cv_prog_compiler_c_o \
14796 need_locks \
14797 DSYMUTIL \
14798 NMEDIT \
14799 LIPO \
14800 OTOOL \
14801 OTOOL64 \
14802 shrext_cmds \
14803 export_dynamic_flag_spec \
14804 whole_archive_flag_spec \
14805 compiler_needs_object \
14806 with_gnu_ld \
14807 allow_undefined_flag \
14808 no_undefined_flag \
14809 hardcode_libdir_flag_spec \
14810 hardcode_libdir_flag_spec_ld \
14811 hardcode_libdir_separator \
14812 fix_srcfile_path \
14813 exclude_expsyms \
14814 include_expsyms \
14815 file_list_spec \
14816 variables_saved_for_relink \
14817 libname_spec \
14818 library_names_spec \
14819 soname_spec \
14820 install_override_mode \
14821 finish_eval \
14822 old_striplib \
14823 striplib \
14824 LD_GO \
14825 reload_flag_GO \
14826 compiler_GO \
14827 lt_prog_compiler_no_builtin_flag_GO \
14828 lt_prog_compiler_wl_GO \
14829 lt_prog_compiler_pic_GO \
14830 lt_prog_compiler_static_GO \
14831 lt_cv_prog_compiler_c_o_GO \
14832 export_dynamic_flag_spec_GO \
14833 whole_archive_flag_spec_GO \
14834 compiler_needs_object_GO \
14835 with_gnu_ld_GO \
14836 allow_undefined_flag_GO \
14837 no_undefined_flag_GO \
14838 hardcode_libdir_flag_spec_GO \
14839 hardcode_libdir_flag_spec_ld_GO \
14840 hardcode_libdir_separator_GO \
14841 fix_srcfile_path_GO \
14842 exclude_expsyms_GO \
14843 include_expsyms_GO \
14844 file_list_spec_GO; do
14845     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14846     *[\\\\\\\`\\"\\\$]*)
14847       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14848       ;;
14849     *)
14850       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14851       ;;
14852     esac
14853 done
14854
14855 # Double-quote double-evaled strings.
14856 for var in reload_cmds \
14857 old_postinstall_cmds \
14858 old_postuninstall_cmds \
14859 old_archive_cmds \
14860 extract_expsyms_cmds \
14861 old_archive_from_new_cmds \
14862 old_archive_from_expsyms_cmds \
14863 archive_cmds \
14864 archive_expsym_cmds \
14865 module_cmds \
14866 module_expsym_cmds \
14867 export_symbols_cmds \
14868 prelink_cmds \
14869 postinstall_cmds \
14870 postuninstall_cmds \
14871 finish_cmds \
14872 sys_lib_search_path_spec \
14873 sys_lib_dlsearch_path_spec \
14874 reload_cmds_GO \
14875 old_archive_cmds_GO \
14876 old_archive_from_new_cmds_GO \
14877 old_archive_from_expsyms_cmds_GO \
14878 archive_cmds_GO \
14879 archive_expsym_cmds_GO \
14880 module_cmds_GO \
14881 module_expsym_cmds_GO \
14882 export_symbols_cmds_GO \
14883 prelink_cmds_GO; do
14884     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14885     *[\\\\\\\`\\"\\\$]*)
14886       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14887       ;;
14888     *)
14889       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14890       ;;
14891     esac
14892 done
14893
14894 ac_aux_dir='$ac_aux_dir'
14895 xsi_shell='$xsi_shell'
14896 lt_shell_append='$lt_shell_append'
14897
14898 # See if we are running on zsh, and set the options which allow our
14899 # commands through without removal of \ escapes INIT.
14900 if test -n "\${ZSH_VERSION+set}" ; then
14901    setopt NO_GLOB_SUBST
14902 fi
14903
14904
14905     PACKAGE='$PACKAGE'
14906     VERSION='$VERSION'
14907     TIMESTAMP='$TIMESTAMP'
14908     RM='$RM'
14909     ofile='$ofile'
14910
14911
14912
14913
14914
14915
14916 # Variables needed in config.status (file generation) which aren't already
14917 # passed by autoconf.
14918 SUBDIRS="$SUBDIRS"
14919
14920
14921 _ACEOF
14922
14923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924
14925 # Handling of arguments.
14926 for ac_config_target in $ac_config_targets
14927 do
14928   case $ac_config_target in
14929     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14930     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14931     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14932     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14933     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14934     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14935     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14936
14937   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14938   esac
14939 done
14940
14941
14942 # If the user did not use the arguments to specify the items to instantiate,
14943 # then the envvar interface is used.  Set only those that are not.
14944 # We use the long form for the default assignment because of an extremely
14945 # bizarre bug on SunOS 4.1.3.
14946 if $ac_need_defaults; then
14947   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14948   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14949   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14950 fi
14951
14952 # Have a temporary directory for convenience.  Make it in the build tree
14953 # simply because there is no reason against having it here, and in addition,
14954 # creating and moving files from /tmp can sometimes cause problems.
14955 # Hook for its removal unless debugging.
14956 # Note that there is a small window in which the directory will not be cleaned:
14957 # after its creation but before its name has been assigned to `$tmp'.
14958 $debug ||
14959 {
14960   tmp=
14961   trap 'exit_status=$?
14962   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14963 ' 0
14964   trap 'as_fn_exit 1' 1 2 13 15
14965 }
14966 # Create a (secure) tmp directory for tmp files.
14967
14968 {
14969   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14970   test -n "$tmp" && test -d "$tmp"
14971 }  ||
14972 {
14973   tmp=./conf$$-$RANDOM
14974   (umask 077 && mkdir "$tmp")
14975 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14976
14977 # Set up the scripts for CONFIG_FILES section.
14978 # No need to generate them if there are no CONFIG_FILES.
14979 # This happens for instance with `./config.status config.h'.
14980 if test -n "$CONFIG_FILES"; then
14981
14982
14983 ac_cr=`echo X | tr X '\015'`
14984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14985 # But we know of no other shell where ac_cr would be empty at this
14986 # point, so we can use a bashism as a fallback.
14987 if test "x$ac_cr" = x; then
14988   eval ac_cr=\$\'\\r\'
14989 fi
14990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14992   ac_cs_awk_cr='\r'
14993 else
14994   ac_cs_awk_cr=$ac_cr
14995 fi
14996
14997 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14998 _ACEOF
14999
15000
15001 {
15002   echo "cat >conf$$subs.awk <<_ACEOF" &&
15003   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15004   echo "_ACEOF"
15005 } >conf$$subs.sh ||
15006   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15008 ac_delim='%!_!# '
15009 for ac_last_try in false false false false false :; do
15010   . ./conf$$subs.sh ||
15011     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15012
15013   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15014   if test $ac_delim_n = $ac_delim_num; then
15015     break
15016   elif $ac_last_try; then
15017     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15018   else
15019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15020   fi
15021 done
15022 rm -f conf$$subs.sh
15023
15024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15025 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15026 _ACEOF
15027 sed -n '
15028 h
15029 s/^/S["/; s/!.*/"]=/
15030 p
15031 g
15032 s/^[^!]*!//
15033 :repl
15034 t repl
15035 s/'"$ac_delim"'$//
15036 t delim
15037 :nl
15038 h
15039 s/\(.\{148\}\).*/\1/
15040 t more1
15041 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15042 p
15043 n
15044 b repl
15045 :more1
15046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15047 p
15048 g
15049 s/.\{148\}//
15050 t nl
15051 :delim
15052 h
15053 s/\(.\{148\}\).*/\1/
15054 t more2
15055 s/["\\]/\\&/g; s/^/"/; s/$/"/
15056 p
15057 b
15058 :more2
15059 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15060 p
15061 g
15062 s/.\{148\}//
15063 t delim
15064 ' <conf$$subs.awk | sed '
15065 /^[^""]/{
15066   N
15067   s/\n//
15068 }
15069 ' >>$CONFIG_STATUS || ac_write_fail=1
15070 rm -f conf$$subs.awk
15071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15072 _ACAWK
15073 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15074   for (key in S) S_is_set[key] = 1
15075   FS = "\a"
15076
15077 }
15078 {
15079   line = $ 0
15080   nfields = split(line, field, "@")
15081   substed = 0
15082   len = length(field[1])
15083   for (i = 2; i < nfields; i++) {
15084     key = field[i]
15085     keylen = length(key)
15086     if (S_is_set[key]) {
15087       value = S[key]
15088       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15089       len += length(value) + length(field[++i])
15090       substed = 1
15091     } else
15092       len += 1 + keylen
15093   }
15094
15095   print line
15096 }
15097
15098 _ACAWK
15099 _ACEOF
15100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15102   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15103 else
15104   cat
15105 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15106   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15107 _ACEOF
15108
15109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15111 # trailing colons and then remove the whole line if VPATH becomes empty
15112 # (actually we leave an empty line to preserve line numbers).
15113 if test "x$srcdir" = x.; then
15114   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15115 s/:*\$(srcdir):*/:/
15116 s/:*\${srcdir}:*/:/
15117 s/:*@srcdir@:*/:/
15118 s/^\([^=]*=[     ]*\):*/\1/
15119 s/:*$//
15120 s/^[^=]*=[       ]*$//
15121 }'
15122 fi
15123
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 fi # test -n "$CONFIG_FILES"
15126
15127 # Set up the scripts for CONFIG_HEADERS section.
15128 # No need to generate them if there are no CONFIG_HEADERS.
15129 # This happens for instance with `./config.status Makefile'.
15130 if test -n "$CONFIG_HEADERS"; then
15131 cat >"$tmp/defines.awk" <<\_ACAWK ||
15132 BEGIN {
15133 _ACEOF
15134
15135 # Transform confdefs.h into an awk script `defines.awk', embedded as
15136 # here-document in config.status, that substitutes the proper values into
15137 # config.h.in to produce config.h.
15138
15139 # Create a delimiter string that does not exist in confdefs.h, to ease
15140 # handling of long lines.
15141 ac_delim='%!_!# '
15142 for ac_last_try in false false :; do
15143   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15144   if test -z "$ac_t"; then
15145     break
15146   elif $ac_last_try; then
15147     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15148   else
15149     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15150   fi
15151 done
15152
15153 # For the awk script, D is an array of macro values keyed by name,
15154 # likewise P contains macro parameters if any.  Preserve backslash
15155 # newline sequences.
15156
15157 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15158 sed -n '
15159 s/.\{148\}/&'"$ac_delim"'/g
15160 t rset
15161 :rset
15162 s/^[     ]*#[    ]*define[       ][      ]*/ /
15163 t def
15164 d
15165 :def
15166 s/\\$//
15167 t bsnl
15168 s/["\\]/\\&/g
15169 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15170 D["\1"]=" \3"/p
15171 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15172 d
15173 :bsnl
15174 s/["\\]/\\&/g
15175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15176 D["\1"]=" \3\\\\\\n"\\/p
15177 t cont
15178 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15179 t cont
15180 d
15181 :cont
15182 n
15183 s/.\{148\}/&'"$ac_delim"'/g
15184 t clear
15185 :clear
15186 s/\\$//
15187 t bsnlc
15188 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15189 d
15190 :bsnlc
15191 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15192 b cont
15193 ' <confdefs.h | sed '
15194 s/'"$ac_delim"'/"\\\
15195 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15196
15197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15198   for (key in D) D_is_set[key] = 1
15199   FS = "\a"
15200 }
15201 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15202   line = \$ 0
15203   split(line, arg, " ")
15204   if (arg[1] == "#") {
15205     defundef = arg[2]
15206     mac1 = arg[3]
15207   } else {
15208     defundef = substr(arg[1], 2)
15209     mac1 = arg[2]
15210   }
15211   split(mac1, mac2, "(") #)
15212   macro = mac2[1]
15213   prefix = substr(line, 1, index(line, defundef) - 1)
15214   if (D_is_set[macro]) {
15215     # Preserve the white space surrounding the "#".
15216     print prefix "define", macro P[macro] D[macro]
15217     next
15218   } else {
15219     # Replace #undef with comments.  This is necessary, for example,
15220     # in the case of _POSIX_SOURCE, which is predefined and required
15221     # on some systems where configure will not decide to define it.
15222     if (defundef == "undef") {
15223       print "/*", prefix defundef, macro, "*/"
15224       next
15225     }
15226   }
15227 }
15228 { print }
15229 _ACAWK
15230 _ACEOF
15231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15233 fi # test -n "$CONFIG_HEADERS"
15234
15235
15236 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15237 shift
15238 for ac_tag
15239 do
15240   case $ac_tag in
15241   :[FHLC]) ac_mode=$ac_tag; continue;;
15242   esac
15243   case $ac_mode$ac_tag in
15244   :[FHL]*:*);;
15245   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15246   :[FH]-) ac_tag=-:-;;
15247   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15248   esac
15249   ac_save_IFS=$IFS
15250   IFS=:
15251   set x $ac_tag
15252   IFS=$ac_save_IFS
15253   shift
15254   ac_file=$1
15255   shift
15256
15257   case $ac_mode in
15258   :L) ac_source=$1;;
15259   :[FH])
15260     ac_file_inputs=
15261     for ac_f
15262     do
15263       case $ac_f in
15264       -) ac_f="$tmp/stdin";;
15265       *) # Look for the file first in the build tree, then in the source tree
15266          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15267          # because $ac_f cannot contain `:'.
15268          test -f "$ac_f" ||
15269            case $ac_f in
15270            [\\/$]*) false;;
15271            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15272            esac ||
15273            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15274       esac
15275       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15276       as_fn_append ac_file_inputs " '$ac_f'"
15277     done
15278
15279     # Let's still pretend it is `configure' which instantiates (i.e., don't
15280     # use $as_me), people would be surprised to read:
15281     #    /* config.h.  Generated by config.status.  */
15282     configure_input='Generated from '`
15283           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15284         `' by configure.'
15285     if test x"$ac_file" != x-; then
15286       configure_input="$ac_file.  $configure_input"
15287       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15288 $as_echo "$as_me: creating $ac_file" >&6;}
15289     fi
15290     # Neutralize special characters interpreted by sed in replacement strings.
15291     case $configure_input in #(
15292     *\&* | *\|* | *\\* )
15293        ac_sed_conf_input=`$as_echo "$configure_input" |
15294        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15295     *) ac_sed_conf_input=$configure_input;;
15296     esac
15297
15298     case $ac_tag in
15299     *:-:* | *:-) cat >"$tmp/stdin" \
15300       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15301     esac
15302     ;;
15303   esac
15304
15305   ac_dir=`$as_dirname -- "$ac_file" ||
15306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15307          X"$ac_file" : 'X\(//\)[^/]' \| \
15308          X"$ac_file" : 'X\(//\)$' \| \
15309          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15310 $as_echo X"$ac_file" |
15311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15312             s//\1/
15313             q
15314           }
15315           /^X\(\/\/\)[^/].*/{
15316             s//\1/
15317             q
15318           }
15319           /^X\(\/\/\)$/{
15320             s//\1/
15321             q
15322           }
15323           /^X\(\/\).*/{
15324             s//\1/
15325             q
15326           }
15327           s/.*/./; q'`
15328   as_dir="$ac_dir"; as_fn_mkdir_p
15329   ac_builddir=.
15330
15331 case "$ac_dir" in
15332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15333 *)
15334   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15335   # A ".." for each directory in $ac_dir_suffix.
15336   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15337   case $ac_top_builddir_sub in
15338   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15339   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15340   esac ;;
15341 esac
15342 ac_abs_top_builddir=$ac_pwd
15343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15344 # for backward compatibility:
15345 ac_top_builddir=$ac_top_build_prefix
15346
15347 case $srcdir in
15348   .)  # We are building in place.
15349     ac_srcdir=.
15350     ac_top_srcdir=$ac_top_builddir_sub
15351     ac_abs_top_srcdir=$ac_pwd ;;
15352   [\\/]* | ?:[\\/]* )  # Absolute name.
15353     ac_srcdir=$srcdir$ac_dir_suffix;
15354     ac_top_srcdir=$srcdir
15355     ac_abs_top_srcdir=$srcdir ;;
15356   *) # Relative name.
15357     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15358     ac_top_srcdir=$ac_top_build_prefix$srcdir
15359     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15360 esac
15361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15362
15363
15364   case $ac_mode in
15365   :F)
15366   #
15367   # CONFIG_FILE
15368   #
15369
15370   case $INSTALL in
15371   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15372   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15373   esac
15374   ac_MKDIR_P=$MKDIR_P
15375   case $MKDIR_P in
15376   [\\/$]* | ?:[\\/]* ) ;;
15377   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15378   esac
15379 _ACEOF
15380
15381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15382 # If the template does not know about datarootdir, expand it.
15383 # FIXME: This hack should be removed a few years after 2.60.
15384 ac_datarootdir_hack=; ac_datarootdir_seen=
15385 ac_sed_dataroot='
15386 /datarootdir/ {
15387   p
15388   q
15389 }
15390 /@datadir@/p
15391 /@docdir@/p
15392 /@infodir@/p
15393 /@localedir@/p
15394 /@mandir@/p'
15395 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15396 *datarootdir*) ac_datarootdir_seen=yes;;
15397 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15398   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15399 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15400 _ACEOF
15401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15402   ac_datarootdir_hack='
15403   s&@datadir@&$datadir&g
15404   s&@docdir@&$docdir&g
15405   s&@infodir@&$infodir&g
15406   s&@localedir@&$localedir&g
15407   s&@mandir@&$mandir&g
15408   s&\\\${datarootdir}&$datarootdir&g' ;;
15409 esac
15410 _ACEOF
15411
15412 # Neutralize VPATH when `$srcdir' = `.'.
15413 # Shell code in configure.ac might set extrasub.
15414 # FIXME: do we really want to maintain this feature?
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 ac_sed_extra="$ac_vpsub
15417 $extrasub
15418 _ACEOF
15419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15420 :t
15421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15422 s|@configure_input@|$ac_sed_conf_input|;t t
15423 s&@top_builddir@&$ac_top_builddir_sub&;t t
15424 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15425 s&@srcdir@&$ac_srcdir&;t t
15426 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15427 s&@top_srcdir@&$ac_top_srcdir&;t t
15428 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15429 s&@builddir@&$ac_builddir&;t t
15430 s&@abs_builddir@&$ac_abs_builddir&;t t
15431 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15432 s&@INSTALL@&$ac_INSTALL&;t t
15433 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15434 $ac_datarootdir_hack
15435 "
15436 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15437   || as_fn_error "could not create $ac_file" "$LINENO" 5
15438
15439 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15440   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15441   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15442   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15443 which seems to be undefined.  Please make sure it is defined." >&5
15444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15445 which seems to be undefined.  Please make sure it is defined." >&2;}
15446
15447   rm -f "$tmp/stdin"
15448   case $ac_file in
15449   -) cat "$tmp/out" && rm -f "$tmp/out";;
15450   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15451   esac \
15452   || as_fn_error "could not create $ac_file" "$LINENO" 5
15453  ;;
15454   :H)
15455   #
15456   # CONFIG_HEADER
15457   #
15458   if test x"$ac_file" != x-; then
15459     {
15460       $as_echo "/* $configure_input  */" \
15461       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15462     } >"$tmp/config.h" \
15463       || as_fn_error "could not create $ac_file" "$LINENO" 5
15464     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15465       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15466 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15467     else
15468       rm -f "$ac_file"
15469       mv "$tmp/config.h" "$ac_file" \
15470         || as_fn_error "could not create $ac_file" "$LINENO" 5
15471     fi
15472   else
15473     $as_echo "/* $configure_input  */" \
15474       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15475       || as_fn_error "could not create -" "$LINENO" 5
15476   fi
15477 # Compute "$ac_file"'s index in $config_headers.
15478 _am_arg="$ac_file"
15479 _am_stamp_count=1
15480 for _am_header in $config_headers :; do
15481   case $_am_header in
15482     $_am_arg | $_am_arg:* )
15483       break ;;
15484     * )
15485       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15486   esac
15487 done
15488 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15489 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490          X"$_am_arg" : 'X\(//\)[^/]' \| \
15491          X"$_am_arg" : 'X\(//\)$' \| \
15492          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15493 $as_echo X"$_am_arg" |
15494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15495             s//\1/
15496             q
15497           }
15498           /^X\(\/\/\)[^/].*/{
15499             s//\1/
15500             q
15501           }
15502           /^X\(\/\/\)$/{
15503             s//\1/
15504             q
15505           }
15506           /^X\(\/\).*/{
15507             s//\1/
15508             q
15509           }
15510           s/.*/./; q'`/stamp-h$_am_stamp_count
15511  ;;
15512
15513   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15514 $as_echo "$as_me: executing $ac_file commands" >&6;}
15515  ;;
15516   esac
15517
15518
15519   case $ac_file$ac_mode in
15520     "default-1":C)
15521 # Only add multilib support code if we just rebuilt the top-level
15522 # Makefile.
15523 case " $CONFIG_FILES " in
15524  *" Makefile "*)
15525    ac_file=Makefile . ${multi_basedir}/config-ml.in
15526    ;;
15527 esac ;;
15528     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15529   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15530   # are listed without --file.  Let's play safe and only enable the eval
15531   # if we detect the quoting.
15532   case $CONFIG_FILES in
15533   *\'*) eval set x "$CONFIG_FILES" ;;
15534   *)   set x $CONFIG_FILES ;;
15535   esac
15536   shift
15537   for mf
15538   do
15539     # Strip MF so we end up with the name of the file.
15540     mf=`echo "$mf" | sed -e 's/:.*$//'`
15541     # Check whether this is an Automake generated Makefile or not.
15542     # We used to match only the files named `Makefile.in', but
15543     # some people rename them; so instead we look at the file content.
15544     # Grep'ing the first line is not enough: some people post-process
15545     # each Makefile.in and add a new line on top of each file to say so.
15546     # Grep'ing the whole file is not good either: AIX grep has a line
15547     # limit of 2048, but all sed's we know have understand at least 4000.
15548     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15549       dirpart=`$as_dirname -- "$mf" ||
15550 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15551          X"$mf" : 'X\(//\)[^/]' \| \
15552          X"$mf" : 'X\(//\)$' \| \
15553          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15554 $as_echo X"$mf" |
15555     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15556             s//\1/
15557             q
15558           }
15559           /^X\(\/\/\)[^/].*/{
15560             s//\1/
15561             q
15562           }
15563           /^X\(\/\/\)$/{
15564             s//\1/
15565             q
15566           }
15567           /^X\(\/\).*/{
15568             s//\1/
15569             q
15570           }
15571           s/.*/./; q'`
15572     else
15573       continue
15574     fi
15575     # Extract the definition of DEPDIR, am__include, and am__quote
15576     # from the Makefile without running `make'.
15577     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15578     test -z "$DEPDIR" && continue
15579     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15580     test -z "am__include" && continue
15581     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15582     # When using ansi2knr, U may be empty or an underscore; expand it
15583     U=`sed -n 's/^U = //p' < "$mf"`
15584     # Find all dependency output files, they are included files with
15585     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15586     # simplest approach to changing $(DEPDIR) to its actual value in the
15587     # expansion.
15588     for file in `sed -n "
15589       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15590          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15591       # Make sure the directory exists.
15592       test -f "$dirpart/$file" && continue
15593       fdir=`$as_dirname -- "$file" ||
15594 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15595          X"$file" : 'X\(//\)[^/]' \| \
15596          X"$file" : 'X\(//\)$' \| \
15597          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15598 $as_echo X"$file" |
15599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15600             s//\1/
15601             q
15602           }
15603           /^X\(\/\/\)[^/].*/{
15604             s//\1/
15605             q
15606           }
15607           /^X\(\/\/\)$/{
15608             s//\1/
15609             q
15610           }
15611           /^X\(\/\).*/{
15612             s//\1/
15613             q
15614           }
15615           s/.*/./; q'`
15616       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15617       # echo "creating $dirpart/$file"
15618       echo '# dummy' > "$dirpart/$file"
15619     done
15620   done
15621 }
15622  ;;
15623     "libtool":C)
15624
15625     # See if we are running on zsh, and set the options which allow our
15626     # commands through without removal of \ escapes.
15627     if test -n "${ZSH_VERSION+set}" ; then
15628       setopt NO_GLOB_SUBST
15629     fi
15630
15631     cfgfile="${ofile}T"
15632     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15633     $RM "$cfgfile"
15634
15635     cat <<_LT_EOF >> "$cfgfile"
15636 #! $SHELL
15637
15638 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15639 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15640 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15641 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15642 #
15643 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15644 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15645 #   Written by Gordon Matzigkeit, 1996
15646 #
15647 #   This file is part of GNU Libtool.
15648 #
15649 # GNU Libtool is free software; you can redistribute it and/or
15650 # modify it under the terms of the GNU General Public License as
15651 # published by the Free Software Foundation; either version 2 of
15652 # the License, or (at your option) any later version.
15653 #
15654 # As a special exception to the GNU General Public License,
15655 # if you distribute this file as part of a program or library that
15656 # is built using GNU Libtool, you may include this file under the
15657 # same distribution terms that you use for the rest of that program.
15658 #
15659 # GNU Libtool is distributed in the hope that it will be useful,
15660 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15661 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15662 # GNU General Public License for more details.
15663 #
15664 # You should have received a copy of the GNU General Public License
15665 # along with GNU Libtool; see the file COPYING.  If not, a copy
15666 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15667 # obtained by writing to the Free Software Foundation, Inc.,
15668 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15669
15670
15671 # The names of the tagged configurations supported by this script.
15672 available_tags="GO "
15673
15674 # ### BEGIN LIBTOOL CONFIG
15675
15676 # A sed program that does not truncate output.
15677 SED=$lt_SED
15678
15679 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15680 Xsed="\$SED -e 1s/^X//"
15681
15682 # A grep program that handles long lines.
15683 GREP=$lt_GREP
15684
15685 # An ERE matcher.
15686 EGREP=$lt_EGREP
15687
15688 # A literal string matcher.
15689 FGREP=$lt_FGREP
15690
15691 # Shell to use when invoking shell scripts.
15692 SHELL=$lt_SHELL
15693
15694 # An echo program that protects backslashes.
15695 ECHO=$lt_ECHO
15696
15697 # Which release of libtool.m4 was used?
15698 macro_version=$macro_version
15699 macro_revision=$macro_revision
15700
15701 # Whether or not to build shared libraries.
15702 build_libtool_libs=$enable_shared
15703
15704 # Whether or not to build static libraries.
15705 build_old_libs=$enable_static
15706
15707 # What type of objects to build.
15708 pic_mode=$pic_mode
15709
15710 # Whether or not to optimize for fast installation.
15711 fast_install=$enable_fast_install
15712
15713 # The host system.
15714 host_alias=$host_alias
15715 host=$host
15716 host_os=$host_os
15717
15718 # The build system.
15719 build_alias=$build_alias
15720 build=$build
15721 build_os=$build_os
15722
15723 # A BSD- or MS-compatible name lister.
15724 NM=$lt_NM
15725
15726 # Whether we need soft or hard links.
15727 LN_S=$lt_LN_S
15728
15729 # What is the maximum length of a command?
15730 max_cmd_len=$max_cmd_len
15731
15732 # Object file suffix (normally "o").
15733 objext=$ac_objext
15734
15735 # Executable file suffix (normally "").
15736 exeext=$exeext
15737
15738 # whether the shell understands "unset".
15739 lt_unset=$lt_unset
15740
15741 # turn spaces into newlines.
15742 SP2NL=$lt_lt_SP2NL
15743
15744 # turn newlines into spaces.
15745 NL2SP=$lt_lt_NL2SP
15746
15747 # An object symbol dumper.
15748 OBJDUMP=$lt_OBJDUMP
15749
15750 # Method to check whether dependent libraries are shared objects.
15751 deplibs_check_method=$lt_deplibs_check_method
15752
15753 # Command to use when deplibs_check_method == "file_magic".
15754 file_magic_cmd=$lt_file_magic_cmd
15755
15756 # The archiver.
15757 AR=$lt_AR
15758 AR_FLAGS=$lt_AR_FLAGS
15759
15760 # A symbol stripping program.
15761 STRIP=$lt_STRIP
15762
15763 # Commands used to install an old-style archive.
15764 RANLIB=$lt_RANLIB
15765 old_postinstall_cmds=$lt_old_postinstall_cmds
15766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15767
15768 # Whether to use a lock for old archive extraction.
15769 lock_old_archive_extraction=$lock_old_archive_extraction
15770
15771 # A C compiler.
15772 LTCC=$lt_CC
15773
15774 # LTCC compiler flags.
15775 LTCFLAGS=$lt_CFLAGS
15776
15777 # Take the output of nm and produce a listing of raw symbols and C names.
15778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15779
15780 # Transform the output of nm in a proper C declaration.
15781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15782
15783 # Transform the output of nm in a C name address pair.
15784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15785
15786 # Transform the output of nm in a C name address pair when lib prefix is needed.
15787 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15788
15789 # The name of the directory that contains temporary libtool files.
15790 objdir=$objdir
15791
15792 # Used to examine libraries when file_magic_cmd begins with "file".
15793 MAGIC_CMD=$MAGIC_CMD
15794
15795 # Must we lock files when doing compilation?
15796 need_locks=$lt_need_locks
15797
15798 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15799 DSYMUTIL=$lt_DSYMUTIL
15800
15801 # Tool to change global to local symbols on Mac OS X.
15802 NMEDIT=$lt_NMEDIT
15803
15804 # Tool to manipulate fat objects and archives on Mac OS X.
15805 LIPO=$lt_LIPO
15806
15807 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15808 OTOOL=$lt_OTOOL
15809
15810 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15811 OTOOL64=$lt_OTOOL64
15812
15813 # Old archive suffix (normally "a").
15814 libext=$libext
15815
15816 # Shared library suffix (normally ".so").
15817 shrext_cmds=$lt_shrext_cmds
15818
15819 # The commands to extract the exported symbol list from a shared archive.
15820 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15821
15822 # Variables whose values should be saved in libtool wrapper scripts and
15823 # restored at link time.
15824 variables_saved_for_relink=$lt_variables_saved_for_relink
15825
15826 # Do we need the "lib" prefix for modules?
15827 need_lib_prefix=$need_lib_prefix
15828
15829 # Do we need a version for libraries?
15830 need_version=$need_version
15831
15832 # Library versioning type.
15833 version_type=$version_type
15834
15835 # Shared library runtime path variable.
15836 runpath_var=$runpath_var
15837
15838 # Shared library path variable.
15839 shlibpath_var=$shlibpath_var
15840
15841 # Is shlibpath searched before the hard-coded library search path?
15842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15843
15844 # Format of library name prefix.
15845 libname_spec=$lt_libname_spec
15846
15847 # List of archive names.  First name is the real one, the rest are links.
15848 # The last name is the one that the linker finds with -lNAME
15849 library_names_spec=$lt_library_names_spec
15850
15851 # The coded name of the library, if different from the real name.
15852 soname_spec=$lt_soname_spec
15853
15854 # Permission mode override for installation of shared libraries.
15855 install_override_mode=$lt_install_override_mode
15856
15857 # Command to use after installation of a shared archive.
15858 postinstall_cmds=$lt_postinstall_cmds
15859
15860 # Command to use after uninstallation of a shared archive.
15861 postuninstall_cmds=$lt_postuninstall_cmds
15862
15863 # Commands used to finish a libtool library installation in a directory.
15864 finish_cmds=$lt_finish_cmds
15865
15866 # As "finish_cmds", except a single script fragment to be evaled but
15867 # not shown.
15868 finish_eval=$lt_finish_eval
15869
15870 # Whether we should hardcode library paths into libraries.
15871 hardcode_into_libs=$hardcode_into_libs
15872
15873 # Compile-time system search path for libraries.
15874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15875
15876 # Run-time system search path for libraries.
15877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15878
15879 # Whether dlopen is supported.
15880 dlopen_support=$enable_dlopen
15881
15882 # Whether dlopen of programs is supported.
15883 dlopen_self=$enable_dlopen_self
15884
15885 # Whether dlopen of statically linked programs is supported.
15886 dlopen_self_static=$enable_dlopen_self_static
15887
15888 # Commands to strip libraries.
15889 old_striplib=$lt_old_striplib
15890 striplib=$lt_striplib
15891
15892
15893 # The linker used to build libraries.
15894 LD=$lt_LD
15895
15896 # How to create reloadable object files.
15897 reload_flag=$lt_reload_flag
15898 reload_cmds=$lt_reload_cmds
15899
15900 # Commands used to build an old-style archive.
15901 old_archive_cmds=$lt_old_archive_cmds
15902
15903 # A language specific compiler.
15904 CC=$lt_compiler
15905
15906 # Is the compiler the GNU compiler?
15907 with_gcc=$GCC
15908
15909 # Compiler flag to turn off builtin functions.
15910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15911
15912 # How to pass a linker flag through the compiler.
15913 wl=$lt_lt_prog_compiler_wl
15914
15915 # Additional compiler flags for building library objects.
15916 pic_flag=$lt_lt_prog_compiler_pic
15917
15918 # Compiler flag to prevent dynamic linking.
15919 link_static_flag=$lt_lt_prog_compiler_static
15920
15921 # Does compiler simultaneously support -c and -o options?
15922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15923
15924 # Whether or not to add -lc for building shared libraries.
15925 build_libtool_need_lc=$archive_cmds_need_lc
15926
15927 # Whether or not to disallow shared libs when runtime libs are static.
15928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15929
15930 # Compiler flag to allow reflexive dlopens.
15931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15932
15933 # Compiler flag to generate shared objects directly from archives.
15934 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15935
15936 # Whether the compiler copes with passing no objects directly.
15937 compiler_needs_object=$lt_compiler_needs_object
15938
15939 # Create an old-style archive from a shared archive.
15940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15941
15942 # Create a temporary old-style archive to link instead of a shared archive.
15943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15944
15945 # Commands used to build a shared archive.
15946 archive_cmds=$lt_archive_cmds
15947 archive_expsym_cmds=$lt_archive_expsym_cmds
15948
15949 # Commands used to build a loadable module if different from building
15950 # a shared archive.
15951 module_cmds=$lt_module_cmds
15952 module_expsym_cmds=$lt_module_expsym_cmds
15953
15954 # Whether we are building with GNU ld or not.
15955 with_gnu_ld=$lt_with_gnu_ld
15956
15957 # Flag that allows shared libraries with undefined symbols to be built.
15958 allow_undefined_flag=$lt_allow_undefined_flag
15959
15960 # Flag that enforces no undefined symbols.
15961 no_undefined_flag=$lt_no_undefined_flag
15962
15963 # Flag to hardcode \$libdir into a binary during linking.
15964 # This must work even if \$libdir does not exist
15965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15966
15967 # If ld is used when linking, flag to hardcode \$libdir into a binary
15968 # during linking.  This must work even if \$libdir does not exist.
15969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15970
15971 # Whether we need a single "-rpath" flag with a separated argument.
15972 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15973
15974 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15975 # DIR into the resulting binary.
15976 hardcode_direct=$hardcode_direct
15977
15978 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15979 # DIR into the resulting binary and the resulting library dependency is
15980 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15981 # library is relocated.
15982 hardcode_direct_absolute=$hardcode_direct_absolute
15983
15984 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15985 # into the resulting binary.
15986 hardcode_minus_L=$hardcode_minus_L
15987
15988 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15989 # into the resulting binary.
15990 hardcode_shlibpath_var=$hardcode_shlibpath_var
15991
15992 # Set to "yes" if building a shared library automatically hardcodes DIR
15993 # into the library and all subsequent libraries and executables linked
15994 # against it.
15995 hardcode_automatic=$hardcode_automatic
15996
15997 # Set to yes if linker adds runtime paths of dependent libraries
15998 # to runtime path list.
15999 inherit_rpath=$inherit_rpath
16000
16001 # Whether libtool must link a program against all its dependency libraries.
16002 link_all_deplibs=$link_all_deplibs
16003
16004 # Fix the shell variable \$srcfile for the compiler.
16005 fix_srcfile_path=$lt_fix_srcfile_path
16006
16007 # Set to "yes" if exported symbols are required.
16008 always_export_symbols=$always_export_symbols
16009
16010 # The commands to list exported symbols.
16011 export_symbols_cmds=$lt_export_symbols_cmds
16012
16013 # Symbols that should not be listed in the preloaded symbols.
16014 exclude_expsyms=$lt_exclude_expsyms
16015
16016 # Symbols that must always be exported.
16017 include_expsyms=$lt_include_expsyms
16018
16019 # Commands necessary for linking programs (against libraries) with templates.
16020 prelink_cmds=$lt_prelink_cmds
16021
16022 # Specify filename containing input files.
16023 file_list_spec=$lt_file_list_spec
16024
16025 # How to hardcode a shared library path into an executable.
16026 hardcode_action=$hardcode_action
16027
16028 # ### END LIBTOOL CONFIG
16029
16030 _LT_EOF
16031
16032   case $host_os in
16033   aix3*)
16034     cat <<\_LT_EOF >> "$cfgfile"
16035 # AIX sometimes has problems with the GCC collect2 program.  For some
16036 # reason, if we set the COLLECT_NAMES environment variable, the problems
16037 # vanish in a puff of smoke.
16038 if test "X${COLLECT_NAMES+set}" != Xset; then
16039   COLLECT_NAMES=
16040   export COLLECT_NAMES
16041 fi
16042 _LT_EOF
16043     ;;
16044   esac
16045
16046
16047 ltmain="$ac_aux_dir/ltmain.sh"
16048
16049
16050   # We use sed instead of cat because bash on DJGPP gets confused if
16051   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16052   # text mode, it properly converts lines to CR/LF.  This bash problem
16053   # is reportedly fixed, but why not run on old versions too?
16054   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16055     || (rm -f "$cfgfile"; exit 1)
16056
16057   case $xsi_shell in
16058   yes)
16059     cat << \_LT_EOF >> "$cfgfile"
16060
16061 # func_dirname file append nondir_replacement
16062 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16063 # otherwise set result to NONDIR_REPLACEMENT.
16064 func_dirname ()
16065 {
16066   case ${1} in
16067     */*) func_dirname_result="${1%/*}${2}" ;;
16068     *  ) func_dirname_result="${3}" ;;
16069   esac
16070 }
16071
16072 # func_basename file
16073 func_basename ()
16074 {
16075   func_basename_result="${1##*/}"
16076 }
16077
16078 # func_dirname_and_basename file append nondir_replacement
16079 # perform func_basename and func_dirname in a single function
16080 # call:
16081 #   dirname:  Compute the dirname of FILE.  If nonempty,
16082 #             add APPEND to the result, otherwise set result
16083 #             to NONDIR_REPLACEMENT.
16084 #             value returned in "$func_dirname_result"
16085 #   basename: Compute filename of FILE.
16086 #             value retuned in "$func_basename_result"
16087 # Implementation must be kept synchronized with func_dirname
16088 # and func_basename. For efficiency, we do not delegate to
16089 # those functions but instead duplicate the functionality here.
16090 func_dirname_and_basename ()
16091 {
16092   case ${1} in
16093     */*) func_dirname_result="${1%/*}${2}" ;;
16094     *  ) func_dirname_result="${3}" ;;
16095   esac
16096   func_basename_result="${1##*/}"
16097 }
16098
16099 # func_stripname prefix suffix name
16100 # strip PREFIX and SUFFIX off of NAME.
16101 # PREFIX and SUFFIX must not contain globbing or regex special
16102 # characters, hashes, percent signs, but SUFFIX may contain a leading
16103 # dot (in which case that matches only a dot).
16104 func_stripname ()
16105 {
16106   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16107   # positional parameters, so assign one to ordinary parameter first.
16108   func_stripname_result=${3}
16109   func_stripname_result=${func_stripname_result#"${1}"}
16110   func_stripname_result=${func_stripname_result%"${2}"}
16111 }
16112
16113 # func_opt_split
16114 func_opt_split ()
16115 {
16116   func_opt_split_opt=${1%%=*}
16117   func_opt_split_arg=${1#*=}
16118 }
16119
16120 # func_lo2o object
16121 func_lo2o ()
16122 {
16123   case ${1} in
16124     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16125     *)    func_lo2o_result=${1} ;;
16126   esac
16127 }
16128
16129 # func_xform libobj-or-source
16130 func_xform ()
16131 {
16132   func_xform_result=${1%.*}.lo
16133 }
16134
16135 # func_arith arithmetic-term...
16136 func_arith ()
16137 {
16138   func_arith_result=$(( $* ))
16139 }
16140
16141 # func_len string
16142 # STRING may not start with a hyphen.
16143 func_len ()
16144 {
16145   func_len_result=${#1}
16146 }
16147
16148 _LT_EOF
16149     ;;
16150   *) # Bourne compatible functions.
16151     cat << \_LT_EOF >> "$cfgfile"
16152
16153 # func_dirname file append nondir_replacement
16154 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16155 # otherwise set result to NONDIR_REPLACEMENT.
16156 func_dirname ()
16157 {
16158   # Extract subdirectory from the argument.
16159   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16160   if test "X$func_dirname_result" = "X${1}"; then
16161     func_dirname_result="${3}"
16162   else
16163     func_dirname_result="$func_dirname_result${2}"
16164   fi
16165 }
16166
16167 # func_basename file
16168 func_basename ()
16169 {
16170   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16171 }
16172
16173
16174 # func_stripname prefix suffix name
16175 # strip PREFIX and SUFFIX off of NAME.
16176 # PREFIX and SUFFIX must not contain globbing or regex special
16177 # characters, hashes, percent signs, but SUFFIX may contain a leading
16178 # dot (in which case that matches only a dot).
16179 # func_strip_suffix prefix name
16180 func_stripname ()
16181 {
16182   case ${2} in
16183     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16184     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16185   esac
16186 }
16187
16188 # sed scripts:
16189 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16190 my_sed_long_arg='1s/^-[^=]*=//'
16191
16192 # func_opt_split
16193 func_opt_split ()
16194 {
16195   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16196   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16197 }
16198
16199 # func_lo2o object
16200 func_lo2o ()
16201 {
16202   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16203 }
16204
16205 # func_xform libobj-or-source
16206 func_xform ()
16207 {
16208   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16209 }
16210
16211 # func_arith arithmetic-term...
16212 func_arith ()
16213 {
16214   func_arith_result=`expr "$@"`
16215 }
16216
16217 # func_len string
16218 # STRING may not start with a hyphen.
16219 func_len ()
16220 {
16221   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16222 }
16223
16224 _LT_EOF
16225 esac
16226
16227 case $lt_shell_append in
16228   yes)
16229     cat << \_LT_EOF >> "$cfgfile"
16230
16231 # func_append var value
16232 # Append VALUE to the end of shell variable VAR.
16233 func_append ()
16234 {
16235   eval "$1+=\$2"
16236 }
16237 _LT_EOF
16238     ;;
16239   *)
16240     cat << \_LT_EOF >> "$cfgfile"
16241
16242 # func_append var value
16243 # Append VALUE to the end of shell variable VAR.
16244 func_append ()
16245 {
16246   eval "$1=\$$1\$2"
16247 }
16248
16249 _LT_EOF
16250     ;;
16251   esac
16252
16253
16254   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16255     || (rm -f "$cfgfile"; exit 1)
16256
16257   mv -f "$cfgfile" "$ofile" ||
16258     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16259   chmod +x "$ofile"
16260
16261
16262     cat <<_LT_EOF >> "$ofile"
16263
16264 # ### BEGIN LIBTOOL TAG CONFIG: GO
16265
16266 # The linker used to build libraries.
16267 LD=$lt_LD_GO
16268
16269 # How to create reloadable object files.
16270 reload_flag=$lt_reload_flag_GO
16271 reload_cmds=$lt_reload_cmds_GO
16272
16273 # Commands used to build an old-style archive.
16274 old_archive_cmds=$lt_old_archive_cmds_GO
16275
16276 # A language specific compiler.
16277 CC=$lt_compiler_GO
16278
16279 # Is the compiler the GNU compiler?
16280 with_gcc=$GCC_GO
16281
16282 # Compiler flag to turn off builtin functions.
16283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16284
16285 # How to pass a linker flag through the compiler.
16286 wl=$lt_lt_prog_compiler_wl_GO
16287
16288 # Additional compiler flags for building library objects.
16289 pic_flag=$lt_lt_prog_compiler_pic_GO
16290
16291 # Compiler flag to prevent dynamic linking.
16292 link_static_flag=$lt_lt_prog_compiler_static_GO
16293
16294 # Does compiler simultaneously support -c and -o options?
16295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16296
16297 # Whether or not to add -lc for building shared libraries.
16298 build_libtool_need_lc=$archive_cmds_need_lc_GO
16299
16300 # Whether or not to disallow shared libs when runtime libs are static.
16301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16302
16303 # Compiler flag to allow reflexive dlopens.
16304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16305
16306 # Compiler flag to generate shared objects directly from archives.
16307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16308
16309 # Whether the compiler copes with passing no objects directly.
16310 compiler_needs_object=$lt_compiler_needs_object_GO
16311
16312 # Create an old-style archive from a shared archive.
16313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16314
16315 # Create a temporary old-style archive to link instead of a shared archive.
16316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16317
16318 # Commands used to build a shared archive.
16319 archive_cmds=$lt_archive_cmds_GO
16320 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16321
16322 # Commands used to build a loadable module if different from building
16323 # a shared archive.
16324 module_cmds=$lt_module_cmds_GO
16325 module_expsym_cmds=$lt_module_expsym_cmds_GO
16326
16327 # Whether we are building with GNU ld or not.
16328 with_gnu_ld=$lt_with_gnu_ld_GO
16329
16330 # Flag that allows shared libraries with undefined symbols to be built.
16331 allow_undefined_flag=$lt_allow_undefined_flag_GO
16332
16333 # Flag that enforces no undefined symbols.
16334 no_undefined_flag=$lt_no_undefined_flag_GO
16335
16336 # Flag to hardcode \$libdir into a binary during linking.
16337 # This must work even if \$libdir does not exist
16338 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16339
16340 # If ld is used when linking, flag to hardcode \$libdir into a binary
16341 # during linking.  This must work even if \$libdir does not exist.
16342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16343
16344 # Whether we need a single "-rpath" flag with a separated argument.
16345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16346
16347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16348 # DIR into the resulting binary.
16349 hardcode_direct=$hardcode_direct_GO
16350
16351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16352 # DIR into the resulting binary and the resulting library dependency is
16353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16354 # library is relocated.
16355 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16356
16357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16358 # into the resulting binary.
16359 hardcode_minus_L=$hardcode_minus_L_GO
16360
16361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16362 # into the resulting binary.
16363 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16364
16365 # Set to "yes" if building a shared library automatically hardcodes DIR
16366 # into the library and all subsequent libraries and executables linked
16367 # against it.
16368 hardcode_automatic=$hardcode_automatic_GO
16369
16370 # Set to yes if linker adds runtime paths of dependent libraries
16371 # to runtime path list.
16372 inherit_rpath=$inherit_rpath_GO
16373
16374 # Whether libtool must link a program against all its dependency libraries.
16375 link_all_deplibs=$link_all_deplibs_GO
16376
16377 # Fix the shell variable \$srcfile for the compiler.
16378 fix_srcfile_path=$lt_fix_srcfile_path_GO
16379
16380 # Set to "yes" if exported symbols are required.
16381 always_export_symbols=$always_export_symbols_GO
16382
16383 # The commands to list exported symbols.
16384 export_symbols_cmds=$lt_export_symbols_cmds_GO
16385
16386 # Symbols that should not be listed in the preloaded symbols.
16387 exclude_expsyms=$lt_exclude_expsyms_GO
16388
16389 # Symbols that must always be exported.
16390 include_expsyms=$lt_include_expsyms_GO
16391
16392 # Commands necessary for linking programs (against libraries) with templates.
16393 prelink_cmds=$lt_prelink_cmds_GO
16394
16395 # Specify filename containing input files.
16396 file_list_spec=$lt_file_list_spec_GO
16397
16398 # How to hardcode a shared library path into an executable.
16399 hardcode_action=$hardcode_action_GO
16400
16401 # ### END LIBTOOL TAG CONFIG: GO
16402 _LT_EOF
16403
16404  ;;
16405     "default":C) if test -n "$CONFIG_FILES"; then
16406    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16407    # that multilib installs will end up installed in the correct place.
16408    # The testsuite needs it for multilib-aware ABI baseline files.
16409    # To work around this not being passed down from config-ml.in ->
16410    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16411    # append it here.  Only modify Makefiles that have just been created.
16412    #
16413    # Also, get rid of this simulated-VPATH thing that automake does.
16414    cat > vpsed << \_EOF
16415 s!`test -f '$<' || echo '$(srcdir)/'`!!
16416 _EOF
16417    for i in $SUBDIRS; do
16418     case $CONFIG_FILES in
16419      *${i}/Makefile*)
16420        #echo "Adding MULTISUBDIR to $i/Makefile"
16421        sed -f vpsed $i/Makefile > tmp
16422        grep '^MULTISUBDIR =' Makefile >> tmp
16423        mv tmp $i/Makefile
16424        ;;
16425     esac
16426    done
16427    rm vpsed
16428  fi
16429  ;;
16430
16431   esac
16432 done # for ac_tag
16433
16434
16435 as_fn_exit 0
16436 _ACEOF
16437 ac_clean_files=$ac_clean_files_save
16438
16439 test $ac_write_fail = 0 ||
16440   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16441
16442
16443 # configure is writing to config.log, and then calls config.status.
16444 # config.status does its own redirection, appending to config.log.
16445 # Unfortunately, on DOS this fails, as config.log is still kept open
16446 # by configure, so config.status won't be able to write to it; its
16447 # output is simply discarded.  So we exec the FD to /dev/null,
16448 # effectively closing config.log, so it can be properly (re)opened and
16449 # appended to by config.status.  When coming back to configure, we
16450 # need to make the FD available again.
16451 if test "$no_create" != yes; then
16452   ac_cs_success=:
16453   ac_config_status_args=
16454   test "$silent" = yes &&
16455     ac_config_status_args="$ac_config_status_args --quiet"
16456   exec 5>/dev/null
16457   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16458   exec 5>>config.log
16459   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16460   # would make configure fail if this is the last instruction.
16461   $ac_cs_success || as_fn_exit $?
16462 fi
16463 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16464   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16465 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16466 fi
16467