Add missing translations to ALL_LINGUAS
[external/binutils.git] / ld / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for ld 2.30.51.
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='ld'
558 PACKAGE_TARNAME='ld'
559 PACKAGE_VERSION='2.30.51'
560 PACKAGE_STRING='ld 2.30.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="ldmain.c"
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 TESTBFDLIB
606 EMULATION_LIBPATH
607 LIB_PATH
608 EMUL_EXTRA_OFILES
609 EMULATION_OFILES
610 EMUL
611 elf_plt_unwind_list_options
612 elf_shlib_list_options
613 elf_list_options
614 STRINGIFY
615 enable_initfini_array
616 ENABLE_PLUGINS_FALSE
617 ENABLE_PLUGINS_TRUE
618 NATIVE_LIB_DIRS
619 HDEFINES
620 do_compare
621 GENINSRC_NEVER_FALSE
622 GENINSRC_NEVER_TRUE
623 LEXLIB
624 LEX_OUTPUT_ROOT
625 LEX
626 YFLAGS
627 YACC
628 MSGMERGE
629 MSGFMT
630 MKINSTALLDIRS
631 CATOBJEXT
632 GENCAT
633 INSTOBJEXT
634 DATADIRNAME
635 CATALOGS
636 POSUB
637 GMSGFMT
638 XGETTEXT
639 INCINTL
640 LIBINTL_DEP
641 LIBINTL
642 USE_NLS
643 WARN_WRITE_STRINGS
644 NO_WERROR
645 WARN_CFLAGS_FOR_BUILD
646 WARN_CFLAGS
647 installed_linker
648 install_as_default
649 TARGET_SYSTEM_ROOT_DEFINE
650 TARGET_SYSTEM_ROOT
651 use_sysroot
652 CXXCPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 RANLIB
659 AR
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 SED
668 LIBTOOL
669 EGREP
670 CPP
671 GREP
672 am__fastdepCXX_FALSE
673 am__fastdepCXX_TRUE
674 CXXDEPMODE
675 ac_ct_CXX
676 CXXFLAGS
677 CXX
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 target_os
722 target_vendor
723 target_cpu
724 target
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files='TDIRS'
772 ac_user_opts='
773 enable_option_checking
774 enable_dependency_tracking
775 enable_maintainer_mode
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 enable_libtool_lock
782 enable_plugins
783 enable_largefile
784 with_lib_path
785 enable_targets
786 enable_64_bit_bfd
787 with_sysroot
788 enable_gold
789 enable_got
790 enable_compressed_debug_sections
791 enable_new_dtags
792 enable_relro
793 enable_separate_code
794 enable_default_hash_style
795 enable_werror
796 enable_build_warnings
797 enable_nls
798 enable_initfini_array
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 CPP
812 CXXCPP
813 YACC
814 YFLAGS'
815
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923       as_fn_error "invalid feature name: $ac_useropt"
924     ac_useropt_orig=$ac_useropt
925     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926     case $ac_user_opts in
927       *"
928 "enable_$ac_useropt"
929 "*) ;;
930       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931          ac_unrecognized_sep=', ';;
932     esac
933     eval enable_$ac_useropt=no ;;
934
935   -docdir | --docdir | --docdi | --doc | --do)
936     ac_prev=docdir ;;
937   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938     docdir=$ac_optarg ;;
939
940   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941     ac_prev=dvidir ;;
942   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943     dvidir=$ac_optarg ;;
944
945   -enable-* | --enable-*)
946     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947     # Reject names that are not valid shell variable names.
948     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949       as_fn_error "invalid feature name: $ac_useropt"
950     ac_useropt_orig=$ac_useropt
951     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952     case $ac_user_opts in
953       *"
954 "enable_$ac_useropt"
955 "*) ;;
956       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957          ac_unrecognized_sep=', ';;
958     esac
959     eval enable_$ac_useropt=\$ac_optarg ;;
960
961   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963   | --exec | --exe | --ex)
964     ac_prev=exec_prefix ;;
965   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967   | --exec=* | --exe=* | --ex=*)
968     exec_prefix=$ac_optarg ;;
969
970   -gas | --gas | --ga | --g)
971     # Obsolete; use --with-gas.
972     with_gas=yes ;;
973
974   -help | --help | --hel | --he | -h)
975     ac_init_help=long ;;
976   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977     ac_init_help=recursive ;;
978   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979     ac_init_help=short ;;
980
981   -host | --host | --hos | --ho)
982     ac_prev=host_alias ;;
983   -host=* | --host=* | --hos=* | --ho=*)
984     host_alias=$ac_optarg ;;
985
986   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987     ac_prev=htmldir ;;
988   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989   | --ht=*)
990     htmldir=$ac_optarg ;;
991
992   -includedir | --includedir | --includedi | --included | --include \
993   | --includ | --inclu | --incl | --inc)
994     ac_prev=includedir ;;
995   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996   | --includ=* | --inclu=* | --incl=* | --inc=*)
997     includedir=$ac_optarg ;;
998
999   -infodir | --infodir | --infodi | --infod | --info | --inf)
1000     ac_prev=infodir ;;
1001   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002     infodir=$ac_optarg ;;
1003
1004   -libdir | --libdir | --libdi | --libd)
1005     ac_prev=libdir ;;
1006   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007     libdir=$ac_optarg ;;
1008
1009   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010   | --libexe | --libex | --libe)
1011     ac_prev=libexecdir ;;
1012   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013   | --libexe=* | --libex=* | --libe=*)
1014     libexecdir=$ac_optarg ;;
1015
1016   -localedir | --localedir | --localedi | --localed | --locale)
1017     ac_prev=localedir ;;
1018   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019     localedir=$ac_optarg ;;
1020
1021   -localstatedir | --localstatedir | --localstatedi | --localstated \
1022   | --localstate | --localstat | --localsta | --localst | --locals)
1023     ac_prev=localstatedir ;;
1024   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026     localstatedir=$ac_optarg ;;
1027
1028   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029     ac_prev=mandir ;;
1030   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031     mandir=$ac_optarg ;;
1032
1033   -nfp | --nfp | --nf)
1034     # Obsolete; use --without-fp.
1035     with_fp=no ;;
1036
1037   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038   | --no-cr | --no-c | -n)
1039     no_create=yes ;;
1040
1041   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043     no_recursion=yes ;;
1044
1045   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047   | --oldin | --oldi | --old | --ol | --o)
1048     ac_prev=oldincludedir ;;
1049   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052     oldincludedir=$ac_optarg ;;
1053
1054   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055     ac_prev=prefix ;;
1056   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057     prefix=$ac_optarg ;;
1058
1059   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060   | --program-pre | --program-pr | --program-p)
1061     ac_prev=program_prefix ;;
1062   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064     program_prefix=$ac_optarg ;;
1065
1066   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067   | --program-suf | --program-su | --program-s)
1068     ac_prev=program_suffix ;;
1069   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071     program_suffix=$ac_optarg ;;
1072
1073   -program-transform-name | --program-transform-name \
1074   | --program-transform-nam | --program-transform-na \
1075   | --program-transform-n | --program-transform- \
1076   | --program-transform | --program-transfor \
1077   | --program-transfo | --program-transf \
1078   | --program-trans | --program-tran \
1079   | --progr-tra | --program-tr | --program-t)
1080     ac_prev=program_transform_name ;;
1081   -program-transform-name=* | --program-transform-name=* \
1082   | --program-transform-nam=* | --program-transform-na=* \
1083   | --program-transform-n=* | --program-transform-=* \
1084   | --program-transform=* | --program-transfor=* \
1085   | --program-transfo=* | --program-transf=* \
1086   | --program-trans=* | --program-tran=* \
1087   | --progr-tra=* | --program-tr=* | --program-t=*)
1088     program_transform_name=$ac_optarg ;;
1089
1090   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091     ac_prev=pdfdir ;;
1092   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093     pdfdir=$ac_optarg ;;
1094
1095   -psdir | --psdir | --psdi | --psd | --ps)
1096     ac_prev=psdir ;;
1097   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098     psdir=$ac_optarg ;;
1099
1100   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101   | -silent | --silent | --silen | --sile | --sil)
1102     silent=yes ;;
1103
1104   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105     ac_prev=sbindir ;;
1106   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107   | --sbi=* | --sb=*)
1108     sbindir=$ac_optarg ;;
1109
1110   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112   | --sharedst | --shareds | --shared | --share | --shar \
1113   | --sha | --sh)
1114     ac_prev=sharedstatedir ;;
1115   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118   | --sha=* | --sh=*)
1119     sharedstatedir=$ac_optarg ;;
1120
1121   -site | --site | --sit)
1122     ac_prev=site ;;
1123   -site=* | --site=* | --sit=*)
1124     site=$ac_optarg ;;
1125
1126   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127     ac_prev=srcdir ;;
1128   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129     srcdir=$ac_optarg ;;
1130
1131   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132   | --syscon | --sysco | --sysc | --sys | --sy)
1133     ac_prev=sysconfdir ;;
1134   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136     sysconfdir=$ac_optarg ;;
1137
1138   -target | --target | --targe | --targ | --tar | --ta | --t)
1139     ac_prev=target_alias ;;
1140   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141     target_alias=$ac_optarg ;;
1142
1143   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144     verbose=yes ;;
1145
1146   -version | --version | --versio | --versi | --vers | -V)
1147     ac_init_version=: ;;
1148
1149   -with-* | --with-*)
1150     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153       as_fn_error "invalid package name: $ac_useropt"
1154     ac_useropt_orig=$ac_useropt
1155     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156     case $ac_user_opts in
1157       *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161          ac_unrecognized_sep=', ';;
1162     esac
1163     eval with_$ac_useropt=\$ac_optarg ;;
1164
1165   -without-* | --without-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error "invalid package name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=no ;;
1180
1181   --x)
1182     # Obsolete; use --with-x.
1183     with_x=yes ;;
1184
1185   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186   | --x-incl | --x-inc | --x-in | --x-i)
1187     ac_prev=x_includes ;;
1188   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190     x_includes=$ac_optarg ;;
1191
1192   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194     ac_prev=x_libraries ;;
1195   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197     x_libraries=$ac_optarg ;;
1198
1199   -*) as_fn_error "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information."
1201     ;;
1202
1203   *=*)
1204     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205     # Reject names that are not valid shell variable names.
1206     case $ac_envvar in #(
1207       '' | [0-9]* | *[!_$as_cr_alnum]* )
1208       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209     esac
1210     eval $ac_envvar=\$ac_optarg
1211     export $ac_envvar ;;
1212
1213   *)
1214     # FIXME: should be removed in autoconf 3.0.
1215     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219     ;;
1220
1221   esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226   as_fn_error "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230   case $enable_option_checking in
1231     no) ;;
1232     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234   esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239                 datadir sysconfdir sharedstatedir localstatedir includedir \
1240                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241                 libdir localedir mandir
1242 do
1243   eval ac_val=\$$ac_var
1244   # Remove trailing slashes.
1245   case $ac_val in
1246     */ )
1247       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248       eval $ac_var=\$ac_val;;
1249   esac
1250   # Be sure to have absolute directory names.
1251   case $ac_val in
1252     [\\/$]* | ?:[\\/]* )  continue;;
1253     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254   esac
1255   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267   if test "x$build_alias" = x; then
1268     cross_compiling=maybe
1269     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270     If a cross compiler is detected then cross compile mode will be used." >&2
1271   elif test "x$build_alias" != "x$host_alias"; then
1272     cross_compiling=yes
1273   fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285   as_fn_error "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287   as_fn_error "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292   ac_srcdir_defaulted=yes
1293   # Try the directory containing this script, then the parent directory.
1294   ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296          X"$as_myself" : 'X\(//\)[^/]' \| \
1297          X"$as_myself" : 'X\(//\)$' \| \
1298          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)[^/].*/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)$/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\).*/{
1313             s//\1/
1314             q
1315           }
1316           s/.*/./; q'`
1317   srcdir=$ac_confdir
1318   if test ! -r "$srcdir/$ac_unique_file"; then
1319     srcdir=..
1320   fi
1321 else
1322   ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331         pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334   srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_env_${ac_var}_value=\$${ac_var}
1345   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353   # Omit some internal or obsolete options to make the list less imposing.
1354   # This message is too long to be a string in the A/UX 3.1 sh.
1355   cat <<_ACEOF
1356 \`configure' configures ld 2.30.51 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366   -h, --help              display this help and exit
1367       --help=short        display options specific to this package
1368       --help=recursive    display the short help of all the included packages
1369   -V, --version           display version information and exit
1370   -q, --quiet, --silent   do not print \`checking...' messages
1371       --cache-file=FILE   cache test results in FILE [disabled]
1372   -C, --config-cache      alias for \`--cache-file=config.cache'
1373   -n, --no-create         do not create output files
1374       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377   --prefix=PREFIX         install architecture-independent files in PREFIX
1378                           [$ac_default_prefix]
1379   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                           [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390   --bindir=DIR            user executables [EPREFIX/bin]
1391   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392   --libexecdir=DIR        program executables [EPREFIX/libexec]
1393   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396   --libdir=DIR            object code libraries [EPREFIX/lib]
1397   --includedir=DIR        C header files [PREFIX/include]
1398   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401   --infodir=DIR           info documentation [DATAROOTDIR/info]
1402   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403   --mandir=DIR            man documentation [DATAROOTDIR/man]
1404   --docdir=DIR            documentation root [DATAROOTDIR/doc/ld]
1405   --htmldir=DIR           html documentation [DOCDIR]
1406   --dvidir=DIR            dvi documentation [DOCDIR]
1407   --pdfdir=DIR            pdf documentation [DOCDIR]
1408   --psdir=DIR             ps documentation [DOCDIR]
1409 _ACEOF
1410
1411   cat <<\_ACEOF
1412
1413 Program names:
1414   --program-prefix=PREFIX            prepend PREFIX to installed program names
1415   --program-suffix=SUFFIX            append SUFFIX to installed program names
1416   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418 System types:
1419   --build=BUILD     configure for building on BUILD [guessed]
1420   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421   --target=TARGET   configure for building compilers for TARGET [HOST]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426   case $ac_init_help in
1427      short | recursive ) echo "Configuration of ld 2.30.51:";;
1428    esac
1429   cat <<\_ACEOF
1430
1431 Optional Features:
1432   --disable-option-checking  ignore unrecognized --enable/--with options
1433   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435   --disable-dependency-tracking  speeds up one-time build
1436   --enable-dependency-tracking   do not reject slow dependency extractors
1437   --enable-maintainer-mode  enable make rules and dependencies not useful
1438                           (and sometimes confusing) to the casual installer
1439   --enable-shared[=PKGS]  build shared libraries [default=yes]
1440   --enable-static[=PKGS]  build static libraries [default=yes]
1441   --enable-fast-install[=PKGS]
1442                           optimize for fast installation [default=yes]
1443   --disable-libtool-lock  avoid locking (might break parallel builds)
1444   --enable-plugins        Enable support for plugins
1445   --disable-largefile     omit support for large files
1446   --enable-targets        alternative target configurations
1447   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1448   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1449   --enable-got=<type>     GOT handling scheme (target, single, negative,
1450                           multigot)
1451   --enable-compressed-debug-sections={all,ld,none}
1452                           compress debug sections by default]
1453   --enable-new-dtags      set DT_RUNPATH instead of DT_RPATH by default]
1454   --enable-relro          enable -z relro in ELF linker by default
1455   --enable-separate-code  enable -z separate-code in ELF linker by default
1456   --enable-default-hash-style={sysv,gnu,both}
1457                           use this default hash style
1458   --enable-werror         treat compile warnings as errors
1459   --enable-build-warnings enable build-time compiler warnings
1460   --disable-nls           do not use Native Language Support
1461   --disable-initfini-array do not use .init_array/.fini_array sections
1462
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --with-pic              try to use only PIC/non-PIC objects [default=use
1467                           both]
1468   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1469   --with-lib-path=dir1:dir2...  set default LIB_PATH
1470   --with-sysroot=DIR Search for usr/lib et al within DIR.
1471
1472 Some influential environment variables:
1473   CC          C compiler command
1474   CFLAGS      C compiler flags
1475   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476               nonstandard directory <lib dir>
1477   LIBS        libraries to pass to the linker, e.g. -l<library>
1478   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479               you have headers in a nonstandard directory <include dir>
1480   CXX         C++ compiler command
1481   CXXFLAGS    C++ compiler flags
1482   CPP         C preprocessor
1483   CXXCPP      C++ preprocessor
1484   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1485               the first program found out of: `bison -y', `byacc', `yacc'.
1486   YFLAGS      The list of arguments that will be passed by default to $YACC.
1487               This script will default YFLAGS to the empty string to avoid a
1488               default value of `-d' given by some make applications.
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to the package provider.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499   # If there are subdirs, report their specific --help.
1500   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501     test -d "$ac_dir" ||
1502       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503       continue
1504     ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 ld configure 2.30.51
1557 generated by GNU Autoconf 2.64
1558
1559 Copyright (C) 2009 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563   exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576   rm -f conftest.$ac_objext
1577   if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580   *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584   (eval "$ac_compile") 2>conftest.err
1585   ac_status=$?
1586   if test -s conftest.err; then
1587     grep -v '^ *+' conftest.err >conftest.er1
1588     cat conftest.er1 >&5
1589     mv -f conftest.er1 conftest.err
1590   fi
1591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592   test $ac_status = 0; } && {
1593          test -z "$ac_c_werror_flag" ||
1594          test ! -s conftest.err
1595        } && test -s conftest.$ac_objext; then :
1596   ac_retval=0
1597 else
1598   $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601         ac_retval=1
1602 fi
1603   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604   return $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   rm -f conftest.$ac_objext conftest$ac_exeext
1615   if { { ac_try="$ac_link"
1616 case "(($ac_try" in
1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618   *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622   (eval "$ac_link") 2>conftest.err
1623   ac_status=$?
1624   if test -s conftest.err; then
1625     grep -v '^ *+' conftest.err >conftest.er1
1626     cat conftest.er1 >&5
1627     mv -f conftest.er1 conftest.err
1628   fi
1629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630   test $ac_status = 0; } && {
1631          test -z "$ac_c_werror_flag" ||
1632          test ! -s conftest.err
1633        } && test -s conftest$ac_exeext && {
1634          test "$cross_compiling" = yes ||
1635          $as_test_x conftest$ac_exeext
1636        }; then :
1637   ac_retval=0
1638 else
1639   $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642         ac_retval=1
1643 fi
1644   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646   # interfere with the next link command; also delete a directory that is
1647   # left behind by Apple's compiler.  We do this before executing the actions.
1648   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650   return $ac_retval
1651
1652 } # ac_fn_c_try_link
1653
1654 # ac_fn_cxx_try_compile LINENO
1655 # ----------------------------
1656 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_cxx_try_compile ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   rm -f conftest.$ac_objext
1661   if { { ac_try="$ac_compile"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_compile") 2>conftest.err
1669   ac_status=$?
1670   if test -s conftest.err; then
1671     grep -v '^ *+' conftest.err >conftest.er1
1672     cat conftest.er1 >&5
1673     mv -f conftest.er1 conftest.err
1674   fi
1675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676   test $ac_status = 0; } && {
1677          test -z "$ac_cxx_werror_flag" ||
1678          test ! -s conftest.err
1679        } && test -s conftest.$ac_objext; then :
1680   ac_retval=0
1681 else
1682   $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685         ac_retval=1
1686 fi
1687   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688   return $ac_retval
1689
1690 } # ac_fn_cxx_try_compile
1691
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } >/dev/null && {
1714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715          test ! -s conftest.err
1716        }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722     ac_retval=1
1723 fi
1724   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725   return $ac_retval
1726
1727 } # ac_fn_c_try_cpp
1728
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_header_mongrel ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741   $as_echo_n "(cached) " >&6
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 else
1747   # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h.  */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756   ac_header_compiler=yes
1757 else
1758   ac_header_compiler=no
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1763
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772   ac_header_preproc=yes
1773 else
1774   ac_header_preproc=no
1775 fi
1776 rm -f conftest.err conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1779
1780 # So?  What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782   yes:no: )
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787     ;;
1788   no:yes:* )
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799     ;;
1800 esac
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804   $as_echo_n "(cached) " >&6
1805 else
1806   eval "$3=\$ac_header_compiler"
1807 fi
1808 eval ac_res=\$$3
1809                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 fi
1812   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814 } # ac_fn_c_check_header_mongrel
1815
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1820 ac_fn_c_try_run ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_link") 2>&5
1831   ac_status=$?
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834   { { case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_try") 2>&5
1841   ac_status=$?
1842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843   test $ac_status = 0; }; }; then :
1844   ac_retval=0
1845 else
1846   $as_echo "$as_me: program exited with status $ac_status" >&5
1847        $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850        ac_retval=$ac_status
1851 fi
1852   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854   return $ac_retval
1855
1856 } # ac_fn_c_try_run
1857
1858 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists and can be compiled using the include files in
1861 # INCLUDES, setting the cache variable VAR accordingly.
1862 ac_fn_c_check_header_compile ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868   $as_echo_n "(cached) " >&6
1869 else
1870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h.  */
1872 $4
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876   eval "$3=yes"
1877 else
1878   eval "$3=no"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 fi
1882 eval ac_res=\$$3
1883                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886
1887 } # ac_fn_c_check_header_compile
1888
1889 # ac_fn_c_check_func LINENO FUNC VAR
1890 # ----------------------------------
1891 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1892 ac_fn_c_check_func ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898   $as_echo_n "(cached) " >&6
1899 else
1900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1904 #define $2 innocuous_$2
1905
1906 /* System header to define __stub macros and hopefully few prototypes,
1907     which can conflict with char $2 (); below.
1908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909     <limits.h> exists even on freestanding compilers.  */
1910
1911 #ifdef __STDC__
1912 # include <limits.h>
1913 #else
1914 # include <assert.h>
1915 #endif
1916
1917 #undef $2
1918
1919 /* Override any GCC internal prototype to avoid an error.
1920    Use char because int might match the return type of a GCC
1921    builtin and then its argument prototype would still apply.  */
1922 #ifdef __cplusplus
1923 extern "C"
1924 #endif
1925 char $2 ();
1926 /* The GNU C library defines this for functions which it implements
1927     to always fail with ENOSYS.  Some functions are actually named
1928     something starting with __ and the normal name is an alias.  */
1929 #if defined __stub_$2 || defined __stub___$2
1930 choke me
1931 #endif
1932
1933 int
1934 main ()
1935 {
1936 return $2 ();
1937   ;
1938   return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_link "$LINENO"; then :
1942   eval "$3=yes"
1943 else
1944   eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext \
1947     conftest$ac_exeext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
1954 } # ac_fn_c_check_func
1955
1956 # ac_fn_cxx_try_cpp LINENO
1957 # ------------------------
1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_cpp ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   if { { ac_try="$ac_cpp conftest.$ac_ext"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970   ac_status=$?
1971   if test -s conftest.err; then
1972     grep -v '^ *+' conftest.err >conftest.er1
1973     cat conftest.er1 >&5
1974     mv -f conftest.er1 conftest.err
1975   fi
1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } >/dev/null && {
1978          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1979          test ! -s conftest.err
1980        }; then :
1981   ac_retval=0
1982 else
1983   $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986     ac_retval=1
1987 fi
1988   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989   return $ac_retval
1990
1991 } # ac_fn_cxx_try_cpp
1992
1993 # ac_fn_cxx_try_link LINENO
1994 # -------------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_cxx_try_link ()
1997 {
1998   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999   rm -f conftest.$ac_objext conftest$ac_exeext
2000   if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003   *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007   (eval "$ac_link") 2>conftest.err
2008   ac_status=$?
2009   if test -s conftest.err; then
2010     grep -v '^ *+' conftest.err >conftest.er1
2011     cat conftest.er1 >&5
2012     mv -f conftest.er1 conftest.err
2013   fi
2014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015   test $ac_status = 0; } && {
2016          test -z "$ac_cxx_werror_flag" ||
2017          test ! -s conftest.err
2018        } && test -s conftest$ac_exeext && {
2019          test "$cross_compiling" = yes ||
2020          $as_test_x conftest$ac_exeext
2021        }; then :
2022   ac_retval=0
2023 else
2024   $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027         ac_retval=1
2028 fi
2029   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031   # interfere with the next link command; also delete a directory that is
2032   # left behind by Apple's compiler.  We do this before executing the actions.
2033   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035   return $ac_retval
2036
2037 } # ac_fn_cxx_try_link
2038
2039 # ac_fn_c_check_decl LINENO SYMBOL VAR
2040 # ------------------------------------
2041 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2042 ac_fn_c_check_decl ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   as_decl_name=`echo $2|sed 's/ *(.*//'`
2046   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2048 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050   $as_echo_n "(cached) " >&6
2051 else
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 #ifndef $as_decl_name
2059 #ifdef __cplusplus
2060   (void) $as_decl_use;
2061 #else
2062   (void) $as_decl_name;
2063 #endif
2064 #endif
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   eval "$3=yes"
2072 else
2073   eval "$3=no"
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 eval ac_res=\$$3
2078                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
2082 } # ac_fn_c_check_decl
2083
2084 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085 # --------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2088 # computed
2089 ac_fn_c_compute_int ()
2090 {
2091   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092   if test "$cross_compiling" = yes; then
2093     # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2101 test_array [0] = 0
2102
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   ac_lo=0 ac_mid=0
2109   while :; do
2110     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 $4
2113 int
2114 main ()
2115 {
2116 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2117 test_array [0] = 0
2118
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124   ac_hi=$ac_mid; break
2125 else
2126   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2127                         if test $ac_lo -le $ac_mid; then
2128                           ac_lo= ac_hi=
2129                           break
2130                         fi
2131                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134   done
2135 else
2136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h.  */
2138 $4
2139 int
2140 main ()
2141 {
2142 static int test_array [1 - 2 * !(($2) < 0)];
2143 test_array [0] = 0
2144
2145   ;
2146   return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150   ac_hi=-1 ac_mid=-1
2151   while :; do
2152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h.  */
2154 $4
2155 int
2156 main ()
2157 {
2158 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2159 test_array [0] = 0
2160
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166   ac_lo=$ac_mid; break
2167 else
2168   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169                         if test $ac_mid -le $ac_hi; then
2170                           ac_lo= ac_hi=
2171                           break
2172                         fi
2173                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176   done
2177 else
2178   ac_lo= ac_hi=
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 # Binary search between lo and hi bounds.
2184 while test "x$ac_lo" != "x$ac_hi"; do
2185   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h.  */
2188 $4
2189 int
2190 main ()
2191 {
2192 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 test_array [0] = 0
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200   ac_hi=$ac_mid
2201 else
2202   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 case $ac_lo in #((
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208 '') ac_retval=1 ;;
2209 esac
2210   else
2211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h.  */
2213 $4
2214 static long int longval () { return $2; }
2215 static unsigned long int ulongval () { return $2; }
2216 #include <stdio.h>
2217 #include <stdlib.h>
2218 int
2219 main ()
2220 {
2221
2222   FILE *f = fopen ("conftest.val", "w");
2223   if (! f)
2224     return 1;
2225   if (($2) < 0)
2226     {
2227       long int i = longval ();
2228       if (i != ($2))
2229         return 1;
2230       fprintf (f, "%ld", i);
2231     }
2232   else
2233     {
2234       unsigned long int i = ulongval ();
2235       if (i != ($2))
2236         return 1;
2237       fprintf (f, "%lu", i);
2238     }
2239   /* Do not output a trailing newline, as this causes \r\n confusion
2240      on some platforms.  */
2241   return ferror (f) || fclose (f) != 0;
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_run "$LINENO"; then :
2248   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249 else
2250   ac_retval=1
2251 fi
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253   conftest.$ac_objext conftest.beam conftest.$ac_ext
2254 rm -f conftest.val
2255
2256   fi
2257   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258   return $ac_retval
2259
2260 } # ac_fn_c_compute_int
2261 cat >config.log <<_ACEOF
2262 This file contains any messages produced by compilers while
2263 running configure, to aid debugging if configure makes a mistake.
2264
2265 It was created by ld $as_me 2.30.51, which was
2266 generated by GNU Autoconf 2.64.  Invocation command line was
2267
2268   $ $0 $@
2269
2270 _ACEOF
2271 exec 5>>config.log
2272 {
2273 cat <<_ASUNAME
2274 ## --------- ##
2275 ## Platform. ##
2276 ## --------- ##
2277
2278 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283
2284 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2286
2287 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2288 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2289 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2291 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2292 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2293 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2294
2295 _ASUNAME
2296
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302     $as_echo "PATH: $as_dir"
2303   done
2304 IFS=$as_save_IFS
2305
2306 } >&5
2307
2308 cat >&5 <<_ACEOF
2309
2310
2311 ## ----------- ##
2312 ## Core tests. ##
2313 ## ----------- ##
2314
2315 _ACEOF
2316
2317
2318 # Keep a trace of the command line.
2319 # Strip out --no-create and --no-recursion so they do not pile up.
2320 # Strip out --silent because we don't want to record it for future runs.
2321 # Also quote any args containing shell meta-characters.
2322 # Make two passes to allow for proper duplicate-argument suppression.
2323 ac_configure_args=
2324 ac_configure_args0=
2325 ac_configure_args1=
2326 ac_must_keep_next=false
2327 for ac_pass in 1 2
2328 do
2329   for ac_arg
2330   do
2331     case $ac_arg in
2332     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2333     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2334     | -silent | --silent | --silen | --sile | --sil)
2335       continue ;;
2336     *\'*)
2337       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2338     esac
2339     case $ac_pass in
2340     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2341     2)
2342       as_fn_append ac_configure_args1 " '$ac_arg'"
2343       if test $ac_must_keep_next = true; then
2344         ac_must_keep_next=false # Got value, back to normal.
2345       else
2346         case $ac_arg in
2347           *=* | --config-cache | -C | -disable-* | --disable-* \
2348           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2349           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2350           | -with-* | --with-* | -without-* | --without-* | --x)
2351             case "$ac_configure_args0 " in
2352               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2353             esac
2354             ;;
2355           -* ) ac_must_keep_next=true ;;
2356         esac
2357       fi
2358       as_fn_append ac_configure_args " '$ac_arg'"
2359       ;;
2360     esac
2361   done
2362 done
2363 { ac_configure_args0=; unset ac_configure_args0;}
2364 { ac_configure_args1=; unset ac_configure_args1;}
2365
2366 # When interrupted or exit'd, cleanup temporary files, and complete
2367 # config.log.  We remove comments because anyway the quotes in there
2368 # would cause problems or look ugly.
2369 # WARNING: Use '\'' to represent an apostrophe within the trap.
2370 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2371 trap 'exit_status=$?
2372   # Save into config.log some information that might help in debugging.
2373   {
2374     echo
2375
2376     cat <<\_ASBOX
2377 ## ---------------- ##
2378 ## Cache variables. ##
2379 ## ---------------- ##
2380 _ASBOX
2381     echo
2382     # The following way of writing the cache mishandles newlines in values,
2383 (
2384   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385     eval ac_val=\$$ac_var
2386     case $ac_val in #(
2387     *${as_nl}*)
2388       case $ac_var in #(
2389       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391       esac
2392       case $ac_var in #(
2393       _ | IFS | as_nl) ;; #(
2394       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395       *) { eval $ac_var=; unset $ac_var;} ;;
2396       esac ;;
2397     esac
2398   done
2399   (set) 2>&1 |
2400     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401     *${as_nl}ac_space=\ *)
2402       sed -n \
2403         "s/'\''/'\''\\\\'\'''\''/g;
2404           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405       ;; #(
2406     *)
2407       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408       ;;
2409     esac |
2410     sort
2411 )
2412     echo
2413
2414     cat <<\_ASBOX
2415 ## ----------------- ##
2416 ## Output variables. ##
2417 ## ----------------- ##
2418 _ASBOX
2419     echo
2420     for ac_var in $ac_subst_vars
2421     do
2422       eval ac_val=\$$ac_var
2423       case $ac_val in
2424       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425       esac
2426       $as_echo "$ac_var='\''$ac_val'\''"
2427     done | sort
2428     echo
2429
2430     if test -n "$ac_subst_files"; then
2431       cat <<\_ASBOX
2432 ## ------------------- ##
2433 ## File substitutions. ##
2434 ## ------------------- ##
2435 _ASBOX
2436       echo
2437       for ac_var in $ac_subst_files
2438       do
2439         eval ac_val=\$$ac_var
2440         case $ac_val in
2441         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442         esac
2443         $as_echo "$ac_var='\''$ac_val'\''"
2444       done | sort
2445       echo
2446     fi
2447
2448     if test -s confdefs.h; then
2449       cat <<\_ASBOX
2450 ## ----------- ##
2451 ## confdefs.h. ##
2452 ## ----------- ##
2453 _ASBOX
2454       echo
2455       cat confdefs.h
2456       echo
2457     fi
2458     test "$ac_signal" != 0 &&
2459       $as_echo "$as_me: caught signal $ac_signal"
2460     $as_echo "$as_me: exit $exit_status"
2461   } >&5
2462   rm -f core *.core core.conftest.* &&
2463     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2464     exit $exit_status
2465 ' 0
2466 for ac_signal in 1 2 13 15; do
2467   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2468 done
2469 ac_signal=0
2470
2471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2472 rm -f -r conftest* confdefs.h
2473
2474 $as_echo "/* confdefs.h */" > confdefs.h
2475
2476 # Predefined preprocessor variables.
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_NAME "$PACKAGE_NAME"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2488 _ACEOF
2489
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_STRING "$PACKAGE_STRING"
2492 _ACEOF
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2496 _ACEOF
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_URL "$PACKAGE_URL"
2500 _ACEOF
2501
2502
2503 # Let the site file select an alternate cache file if it wants to.
2504 # Prefer an explicitly selected file to automatically selected ones.
2505 ac_site_file1=NONE
2506 ac_site_file2=NONE
2507 if test -n "$CONFIG_SITE"; then
2508   ac_site_file1=$CONFIG_SITE
2509 elif test "x$prefix" != xNONE; then
2510   ac_site_file1=$prefix/share/config.site
2511   ac_site_file2=$prefix/etc/config.site
2512 else
2513   ac_site_file1=$ac_default_prefix/share/config.site
2514   ac_site_file2=$ac_default_prefix/etc/config.site
2515 fi
2516 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2517 do
2518   test "x$ac_site_file" = xNONE && continue
2519   if test -r "$ac_site_file"; then
2520     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2521 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2522     sed 's/^/| /' "$ac_site_file" >&5
2523     . "$ac_site_file"
2524   fi
2525 done
2526
2527 if test -r "$cache_file"; then
2528   # Some versions of bash will fail to source /dev/null (special
2529   # files actually), so we avoid doing that.
2530   if test -f "$cache_file"; then
2531     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532 $as_echo "$as_me: loading cache $cache_file" >&6;}
2533     case $cache_file in
2534       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535       *)                      . "./$cache_file";;
2536     esac
2537   fi
2538 else
2539   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540 $as_echo "$as_me: creating cache $cache_file" >&6;}
2541   >$cache_file
2542 fi
2543
2544 # Check that the precious variables saved in the cache have kept the same
2545 # value.
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549   eval ac_new_set=\$ac_env_${ac_var}_set
2550   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551   eval ac_new_val=\$ac_env_${ac_var}_value
2552   case $ac_old_set,$ac_new_set in
2553     set,)
2554       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556       ac_cache_corrupted=: ;;
2557     ,set)
2558       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560       ac_cache_corrupted=: ;;
2561     ,);;
2562     *)
2563       if test "x$ac_old_val" != "x$ac_new_val"; then
2564         # differences in whitespace do not lead to failure.
2565         ac_old_val_w=`echo x $ac_old_val`
2566         ac_new_val_w=`echo x $ac_new_val`
2567         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570           ac_cache_corrupted=:
2571         else
2572           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574           eval $ac_var=\$ac_old_val
2575         fi
2576         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2577 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2578         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2580       fi;;
2581   esac
2582   # Pass precious variables to config.status.
2583   if test "$ac_new_set" = set; then
2584     case $ac_new_val in
2585     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586     *) ac_arg=$ac_var=$ac_new_val ;;
2587     esac
2588     case " $ac_configure_args " in
2589       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2590       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591     esac
2592   fi
2593 done
2594 if $ac_cache_corrupted; then
2595   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2600 fi
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2604
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610
2611
2612
2613
2614
2615
2616
2617 ac_aux_dir=
2618 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2619   for ac_t in install-sh install.sh shtool; do
2620     if test -f "$ac_dir/$ac_t"; then
2621       ac_aux_dir=$ac_dir
2622       ac_install_sh="$ac_aux_dir/$ac_t -c"
2623       break 2
2624     fi
2625   done
2626 done
2627 if test -z "$ac_aux_dir"; then
2628   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2629 fi
2630
2631 # These three variables are undocumented and unsupported,
2632 # and are intended to be withdrawn in a future Autoconf release.
2633 # They can cause serious problems if a builder's source tree is in a directory
2634 # whose full name contains unusual characters.
2635 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2636 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2637 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2638
2639
2640 # Make sure we can run config.sub.
2641 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2642   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2645 $as_echo_n "checking build system type... " >&6; }
2646 if test "${ac_cv_build+set}" = set; then :
2647   $as_echo_n "(cached) " >&6
2648 else
2649   ac_build_alias=$build_alias
2650 test "x$ac_build_alias" = x &&
2651   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2652 test "x$ac_build_alias" = x &&
2653   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2654 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2656
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2661 *-*-*) ;;
2662 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2663 esac
2664 build=$ac_cv_build
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_build
2667 shift
2668 build_cpu=$1
2669 build_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 build_os=$*
2674 IFS=$ac_save_IFS
2675 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2676
2677
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2679 $as_echo_n "checking host system type... " >&6; }
2680 if test "${ac_cv_host+set}" = set; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   if test "x$host_alias" = x; then
2684   ac_cv_host=$ac_cv_build
2685 else
2686   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2687     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2688 fi
2689
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2692 $as_echo "$ac_cv_host" >&6; }
2693 case $ac_cv_host in
2694 *-*-*) ;;
2695 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2696 esac
2697 host=$ac_cv_host
2698 ac_save_IFS=$IFS; IFS='-'
2699 set x $ac_cv_host
2700 shift
2701 host_cpu=$1
2702 host_vendor=$2
2703 shift; shift
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2706 host_os=$*
2707 IFS=$ac_save_IFS
2708 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2709
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2712 $as_echo_n "checking target system type... " >&6; }
2713 if test "${ac_cv_target+set}" = set; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   if test "x$target_alias" = x; then
2717   ac_cv_target=$ac_cv_host
2718 else
2719   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2720     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2721 fi
2722
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2725 $as_echo "$ac_cv_target" >&6; }
2726 case $ac_cv_target in
2727 *-*-*) ;;
2728 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2729 esac
2730 target=$ac_cv_target
2731 ac_save_IFS=$IFS; IFS='-'
2732 set x $ac_cv_target
2733 shift
2734 target_cpu=$1
2735 target_vendor=$2
2736 shift; shift
2737 # Remember, the first character of IFS is used to create $*,
2738 # except with old shells:
2739 target_os=$*
2740 IFS=$ac_save_IFS
2741 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2742
2743
2744 # The aliases save the names the user supplied, while $host etc.
2745 # will get canonicalized.
2746 test -n "$target_alias" &&
2747   test "$program_prefix$program_suffix$program_transform_name" = \
2748     NONENONEs,x,x, &&
2749   program_prefix=${target_alias}-
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 if test -n "$ac_tool_prefix"; then
2757   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if test "${ac_cv_prog_CC+set}" = set; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   if test -n "$CC"; then
2765   ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772     for ac_exec_ext in '' $ac_executable_extensions; do
2773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779   done
2780 IFS=$as_save_IFS
2781
2782 fi
2783 fi
2784 CC=$ac_cv_prog_CC
2785 if test -n "$CC"; then
2786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2788 else
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793
2794 fi
2795 if test -z "$ac_cv_prog_CC"; then
2796   ac_ct_CC=$CC
2797   # Extract the first word of "gcc", so it can be a program name with args.
2798 set dummy gcc; ac_word=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2802   $as_echo_n "(cached) " >&6
2803 else
2804   if test -n "$ac_ct_CC"; then
2805   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812     for ac_exec_ext in '' $ac_executable_extensions; do
2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814     ac_cv_prog_ac_ct_CC="gcc"
2815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816     break 2
2817   fi
2818 done
2819   done
2820 IFS=$as_save_IFS
2821
2822 fi
2823 fi
2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825 if test -n "$ac_ct_CC"; then
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2827 $as_echo "$ac_ct_CC" >&6; }
2828 else
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 fi
2832
2833   if test "x$ac_ct_CC" = x; then
2834     CC=""
2835   else
2836     case $cross_compiling:$ac_tool_warned in
2837 yes:)
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840 ac_tool_warned=yes ;;
2841 esac
2842     CC=$ac_ct_CC
2843   fi
2844 else
2845   CC="$ac_cv_prog_CC"
2846 fi
2847
2848 if test -z "$CC"; then
2849           if test -n "$ac_tool_prefix"; then
2850     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}cc; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if test "${ac_cv_prog_CC+set}" = set; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   if test -n "$CC"; then
2858   ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     for ac_exec_ext in '' $ac_executable_extensions; do
2866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867     ac_cv_prog_CC="${ac_tool_prefix}cc"
2868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872   done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 CC=$ac_cv_prog_CC
2878 if test -n "$CC"; then
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886
2887   fi
2888 fi
2889 if test -z "$CC"; then
2890   # Extract the first word of "cc", so it can be a program name with args.
2891 set dummy cc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if test "${ac_cv_prog_CC+set}" = set; then :
2895   $as_echo_n "(cached) " >&6
2896 else
2897   if test -n "$CC"; then
2898   ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900   ac_prog_rejected=no
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906     for ac_exec_ext in '' $ac_executable_extensions; do
2907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2909        ac_prog_rejected=yes
2910        continue
2911      fi
2912     ac_cv_prog_CC="cc"
2913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917   done
2918 IFS=$as_save_IFS
2919
2920 if test $ac_prog_rejected = yes; then
2921   # We found a bogon in the path, so make sure we never use it.
2922   set dummy $ac_cv_prog_CC
2923   shift
2924   if test $# != 0; then
2925     # We chose a different compiler from the bogus one.
2926     # However, it has the same basename, so the bogon will be chosen
2927     # first if we set CC to just the basename; use the full file name.
2928     shift
2929     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2930   fi
2931 fi
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2938 else
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 fi
2945 if test -z "$CC"; then
2946   if test -n "$ac_tool_prefix"; then
2947   for ac_prog in cl.exe
2948   do
2949     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954   $as_echo_n "(cached) " >&6
2955 else
2956   if test -n "$CC"; then
2957   ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964     for ac_exec_ext in '' $ac_executable_extensions; do
2965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968     break 2
2969   fi
2970 done
2971   done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986     test -n "$CC" && break
2987   done
2988 fi
2989 if test -z "$CC"; then
2990   ac_ct_CC=$CC
2991   for ac_prog in cl.exe
2992 do
2993   # Extract the first word of "$ac_prog", so it can be a program name with args.
2994 set dummy $ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   if test -n "$ac_ct_CC"; then
3001   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010     ac_cv_prog_ac_ct_CC="$ac_prog"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023 $as_echo "$ac_ct_CC" >&6; }
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030   test -n "$ac_ct_CC" && break
3031 done
3032
3033   if test "x$ac_ct_CC" = x; then
3034     CC=""
3035   else
3036     case $cross_compiling:$ac_tool_warned in
3037 yes:)
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040 ac_tool_warned=yes ;;
3041 esac
3042     CC=$ac_ct_CC
3043   fi
3044 fi
3045
3046 fi
3047
3048
3049 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error "no acceptable C compiler found in \$PATH
3052 See \`config.log' for more details." "$LINENO" 5; }
3053
3054 # Provide some information about the compiler.
3055 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3056 set X $ac_compile
3057 ac_compiler=$2
3058 for ac_option in --version -v -V -qversion; do
3059   { { ac_try="$ac_compiler $ac_option >&5"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3067   ac_status=$?
3068   if test -s conftest.err; then
3069     sed '10a\
3070 ... rest of stderr output deleted ...
3071          10q' conftest.err >conftest.er1
3072     cat conftest.er1 >&5
3073     rm -f conftest.er1 conftest.err
3074   fi
3075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076   test $ac_status = 0; }
3077 done
3078
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 ac_clean_files_save=$ac_clean_files
3091 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3092 # Try to create an executable without -o first, disregard a.out.
3093 # It will help us diagnose broken compilers, and finding out an intuition
3094 # of exeext.
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096 $as_echo_n "checking for C compiler default output file name... " >&6; }
3097 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3098
3099 # The possible output files:
3100 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3101
3102 ac_rmfiles=
3103 for ac_file in $ac_files
3104 do
3105   case $ac_file in
3106     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3108   esac
3109 done
3110 rm -f $ac_rmfiles
3111
3112 if { { ac_try="$ac_link_default"
3113 case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119   (eval "$ac_link_default") 2>&5
3120   ac_status=$?
3121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122   test $ac_status = 0; }; then :
3123   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3124 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3125 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3126 # so that the user can short-circuit this test for compilers unknown to
3127 # Autoconf.
3128 for ac_file in $ac_files ''
3129 do
3130   test -f "$ac_file" || continue
3131   case $ac_file in
3132     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3133         ;;
3134     [ab].out )
3135         # We found the default executable, but exeext='' is most
3136         # certainly right.
3137         break;;
3138     *.* )
3139         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3140         then :; else
3141            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142         fi
3143         # We set ac_cv_exeext here because the later test for it is not
3144         # safe: cross compilers may not add the suffix if given an `-o'
3145         # argument, so we may need to know it at that point already.
3146         # Even if this section looks crufty: it has the advantage of
3147         # actually working.
3148         break;;
3149     * )
3150         break;;
3151   esac
3152 done
3153 test "$ac_cv_exeext" = no && ac_cv_exeext=
3154
3155 else
3156   ac_file=''
3157 fi
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3159 $as_echo "$ac_file" >&6; }
3160 if test -z "$ac_file"; then :
3161   $as_echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 { as_fn_set_status 77
3167 as_fn_error "C compiler cannot create executables
3168 See \`config.log' for more details." "$LINENO" 5; }; }
3169 fi
3170 ac_exeext=$ac_cv_exeext
3171
3172 # Check that the compiler produces executables we can run.  If not, either
3173 # the compiler is broken, or we cross compile.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3175 $as_echo_n "checking whether the C compiler works... " >&6; }
3176 # If not cross compiling, check that we can run a simple program.
3177 if test "$cross_compiling" != yes; then
3178   if { ac_try='./$ac_file'
3179   { { case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188   test $ac_status = 0; }; }; then
3189     cross_compiling=no
3190   else
3191     if test "$cross_compiling" = maybe; then
3192         cross_compiling=yes
3193     else
3194         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error "cannot run C compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \`config.log' for more details." "$LINENO" 5; }
3199     fi
3200   fi
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204
3205 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3206 ac_clean_files=$ac_clean_files_save
3207 # Check that the compiler produces executables we can run.  If not, either
3208 # the compiler is broken, or we cross compile.
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3210 $as_echo_n "checking whether we are cross compiling... " >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3212 $as_echo "$cross_compiling" >&6; }
3213
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3215 $as_echo_n "checking for suffix of executables... " >&6; }
3216 if { { ac_try="$ac_link"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223   (eval "$ac_link") 2>&5
3224   ac_status=$?
3225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226   test $ac_status = 0; }; then :
3227   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3229 # work properly (i.e., refer to `conftest.exe'), while it won't with
3230 # `rm'.
3231 for ac_file in conftest.exe conftest conftest.*; do
3232   test -f "$ac_file" || continue
3233   case $ac_file in
3234     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236           break;;
3237     * ) break;;
3238   esac
3239 done
3240 else
3241   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error "cannot compute suffix of executables: cannot compile and link
3244 See \`config.log' for more details." "$LINENO" 5; }
3245 fi
3246 rm -f conftest$ac_cv_exeext
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3248 $as_echo "$ac_cv_exeext" >&6; }
3249
3250 rm -f conftest.$ac_ext
3251 EXEEXT=$ac_cv_exeext
3252 ac_exeext=$EXEEXT
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254 $as_echo_n "checking for suffix of object files... " >&6; }
3255 if test "${ac_cv_objext+set}" = set; then :
3256   $as_echo_n "(cached) " >&6
3257 else
3258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h.  */
3260
3261 int
3262 main ()
3263 {
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { { ac_try="$ac_compile"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277   (eval "$ac_compile") 2>&5
3278   ac_status=$?
3279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280   test $ac_status = 0; }; then :
3281   for ac_file in conftest.o conftest.obj conftest.*; do
3282   test -f "$ac_file" || continue;
3283   case $ac_file in
3284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286        break;;
3287   esac
3288 done
3289 else
3290   $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error "cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details." "$LINENO" 5; }
3297 fi
3298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3301 $as_echo "$ac_cv_objext" >&6; }
3302 OBJEXT=$ac_cv_objext
3303 ac_objext=$OBJEXT
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3305 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3306 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h.  */
3311
3312 int
3313 main ()
3314 {
3315 #ifndef __GNUC__
3316        choke me
3317 #endif
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324   ac_compiler_gnu=yes
3325 else
3326   ac_compiler_gnu=no
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3333 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3334 if test $ac_compiler_gnu = yes; then
3335   GCC=yes
3336 else
3337   GCC=
3338 fi
3339 ac_test_CFLAGS=${CFLAGS+set}
3340 ac_save_CFLAGS=$CFLAGS
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3342 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3343 if test "${ac_cv_prog_cc_g+set}" = set; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   ac_save_c_werror_flag=$ac_c_werror_flag
3347    ac_c_werror_flag=yes
3348    ac_cv_prog_cc_g=no
3349    CFLAGS="-g"
3350    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h.  */
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362   ac_cv_prog_cc_g=yes
3363 else
3364   CFLAGS=""
3365       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367
3368 int
3369 main ()
3370 {
3371
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377
3378 else
3379   ac_c_werror_flag=$ac_save_c_werror_flag
3380          CFLAGS="-g"
3381          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393   ac_cv_prog_cc_g=yes
3394 fi
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 fi
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400    ac_c_werror_flag=$ac_save_c_werror_flag
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3403 $as_echo "$ac_cv_prog_cc_g" >&6; }
3404 if test "$ac_test_CFLAGS" = set; then
3405   CFLAGS=$ac_save_CFLAGS
3406 elif test $ac_cv_prog_cc_g = yes; then
3407   if test "$GCC" = yes; then
3408     CFLAGS="-g -O2"
3409   else
3410     CFLAGS="-g"
3411   fi
3412 else
3413   if test "$GCC" = yes; then
3414     CFLAGS="-O2"
3415   else
3416     CFLAGS=
3417   fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3420 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3421 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3422   $as_echo_n "(cached) " >&6
3423 else
3424   ac_cv_prog_cc_c89=no
3425 ac_save_CC=$CC
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h.  */
3428 #include <stdarg.h>
3429 #include <stdio.h>
3430 #include <sys/types.h>
3431 #include <sys/stat.h>
3432 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3433 struct buf { int x; };
3434 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3435 static char *e (p, i)
3436      char **p;
3437      int i;
3438 {
3439   return p[i];
3440 }
3441 static char *f (char * (*g) (char **, int), char **p, ...)
3442 {
3443   char *s;
3444   va_list v;
3445   va_start (v,p);
3446   s = g (p, va_arg (v,int));
3447   va_end (v);
3448   return s;
3449 }
3450
3451 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3452    function prototypes and stuff, but not '\xHH' hex character constants.
3453    These don't provoke an error unfortunately, instead are silently treated
3454    as 'x'.  The following induces an error, until -std is added to get
3455    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3456    array size at least.  It's necessary to write '\x00'==0 to get something
3457    that's true only with -std.  */
3458 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3459
3460 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3461    inside strings and character constants.  */
3462 #define FOO(x) 'x'
3463 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3464
3465 int test (int i, double x);
3466 struct s1 {int (*f) (int a);};
3467 struct s2 {int (*f) (double a);};
3468 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3469 int argc;
3470 char **argv;
3471 int
3472 main ()
3473 {
3474 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3480         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3481 do
3482   CC="$ac_save_CC $ac_arg"
3483   if ac_fn_c_try_compile "$LINENO"; then :
3484   ac_cv_prog_cc_c89=$ac_arg
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext
3487   test "x$ac_cv_prog_cc_c89" != "xno" && break
3488 done
3489 rm -f conftest.$ac_ext
3490 CC=$ac_save_CC
3491
3492 fi
3493 # AC_CACHE_VAL
3494 case "x$ac_cv_prog_cc_c89" in
3495   x)
3496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3497 $as_echo "none needed" >&6; } ;;
3498   xno)
3499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3500 $as_echo "unsupported" >&6; } ;;
3501   *)
3502     CC="$CC $ac_cv_prog_cc_c89"
3503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3504 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3505 esac
3506 if test "x$ac_cv_prog_cc_c89" != xno; then :
3507
3508 fi
3509
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3518 $as_echo_n "checking for library containing strerror... " >&6; }
3519 if test "${ac_cv_search_strerror+set}" = set; then :
3520   $as_echo_n "(cached) " >&6
3521 else
3522   ac_func_search_save_LIBS=$LIBS
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525
3526 /* Override any GCC internal prototype to avoid an error.
3527    Use char because int might match the return type of a GCC
3528    builtin and then its argument prototype would still apply.  */
3529 #ifdef __cplusplus
3530 extern "C"
3531 #endif
3532 char strerror ();
3533 int
3534 main ()
3535 {
3536 return strerror ();
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 for ac_lib in '' cposix; do
3542   if test -z "$ac_lib"; then
3543     ac_res="none required"
3544   else
3545     ac_res=-l$ac_lib
3546     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3547   fi
3548   if ac_fn_c_try_link "$LINENO"; then :
3549   ac_cv_search_strerror=$ac_res
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext \
3552     conftest$ac_exeext
3553   if test "${ac_cv_search_strerror+set}" = set; then :
3554   break
3555 fi
3556 done
3557 if test "${ac_cv_search_strerror+set}" = set; then :
3558
3559 else
3560   ac_cv_search_strerror=no
3561 fi
3562 rm conftest.$ac_ext
3563 LIBS=$ac_func_search_save_LIBS
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3566 $as_echo "$ac_cv_search_strerror" >&6; }
3567 ac_res=$ac_cv_search_strerror
3568 if test "$ac_res" != no; then :
3569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3570
3571 fi
3572
3573
3574 am__api_version='1.11'
3575
3576 # Find a good install program.  We prefer a C program (faster),
3577 # so one script is as good as another.  But avoid the broken or
3578 # incompatible versions:
3579 # SysV /etc/install, /usr/sbin/install
3580 # SunOS /usr/etc/install
3581 # IRIX /sbin/install
3582 # AIX /bin/install
3583 # AmigaOS /C/install, which installs bootblocks on floppy discs
3584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3587 # OS/2's system install, which has a completely different semantic
3588 # ./install, which can be erroneously created by make from ./install.sh.
3589 # Reject install programs that cannot install multiple files.
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3591 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3592 if test -z "$INSTALL"; then
3593 if test "${ac_cv_path_install+set}" = set; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601     # Account for people who put trailing slashes in PATH elements.
3602 case $as_dir/ in #((
3603   ./ | .// | /[cC]/* | \
3604   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3605   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3606   /usr/ucb/* ) ;;
3607   *)
3608     # OSF1 and SCO ODT 3.0 have their own names for install.
3609     # Don't use installbsd from OSF since it installs stuff as root
3610     # by default.
3611     for ac_prog in ginstall scoinst install; do
3612       for ac_exec_ext in '' $ac_executable_extensions; do
3613         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3614           if test $ac_prog = install &&
3615             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616             # AIX install.  It has an incompatible calling convention.
3617             :
3618           elif test $ac_prog = install &&
3619             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3620             # program-specific install script used by HP pwplus--don't use.
3621             :
3622           else
3623             rm -rf conftest.one conftest.two conftest.dir
3624             echo one > conftest.one
3625             echo two > conftest.two
3626             mkdir conftest.dir
3627             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3628               test -s conftest.one && test -s conftest.two &&
3629               test -s conftest.dir/conftest.one &&
3630               test -s conftest.dir/conftest.two
3631             then
3632               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3633               break 3
3634             fi
3635           fi
3636         fi
3637       done
3638     done
3639     ;;
3640 esac
3641
3642   done
3643 IFS=$as_save_IFS
3644
3645 rm -rf conftest.one conftest.two conftest.dir
3646
3647 fi
3648   if test "${ac_cv_path_install+set}" = set; then
3649     INSTALL=$ac_cv_path_install
3650   else
3651     # As a last resort, use the slow shell script.  Don't cache a
3652     # value for INSTALL within a source directory, because that will
3653     # break other packages using the cache if that directory is
3654     # removed, or if the value is a relative name.
3655     INSTALL=$ac_install_sh
3656   fi
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3659 $as_echo "$INSTALL" >&6; }
3660
3661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3662 # It thinks the first close brace ends the variable substitution.
3663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3664
3665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3666
3667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3668
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3670 $as_echo_n "checking whether build environment is sane... " >&6; }
3671 # Just in case
3672 sleep 1
3673 echo timestamp > conftest.file
3674 # Reject unsafe characters in $srcdir or the absolute working directory
3675 # name.  Accept space and tab only in the latter.
3676 am_lf='
3677 '
3678 case `pwd` in
3679   *[\\\"\#\$\&\'\`$am_lf]*)
3680     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3681 esac
3682 case $srcdir in
3683   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3684     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3685 esac
3686
3687 # Do `set' in a subshell so we don't clobber the current shell's
3688 # arguments.  Must try -L first in case configure is actually a
3689 # symlink; some systems play weird games with the mod time of symlinks
3690 # (eg FreeBSD returns the mod time of the symlink's containing
3691 # directory).
3692 if (
3693    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3694    if test "$*" = "X"; then
3695       # -L didn't work.
3696       set X `ls -t "$srcdir/configure" conftest.file`
3697    fi
3698    rm -f conftest.file
3699    if test "$*" != "X $srcdir/configure conftest.file" \
3700       && test "$*" != "X conftest.file $srcdir/configure"; then
3701
3702       # If neither matched, then we have a broken ls.  This can happen
3703       # if, for instance, CONFIG_SHELL is bash and it inherits a
3704       # broken ls alias from the environment.  This has actually
3705       # happened.  Such a system could not be considered "sane".
3706       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3707 alias in your environment" "$LINENO" 5
3708    fi
3709
3710    test "$2" = conftest.file
3711    )
3712 then
3713    # Ok.
3714    :
3715 else
3716    as_fn_error "newly created file is older than distributed files!
3717 Check your system clock" "$LINENO" 5
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3721 test "$program_prefix" != NONE &&
3722   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3723 # Use a double $ so make ignores it.
3724 test "$program_suffix" != NONE &&
3725   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3726 # Double any \ or $.
3727 # By default was `s,x,x', remove it if useless.
3728 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3729 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3730
3731 # expand $ac_aux_dir to an absolute path
3732 am_aux_dir=`cd $ac_aux_dir && pwd`
3733
3734 if test x"${MISSING+set}" != xset; then
3735   case $am_aux_dir in
3736   *\ * | *\     *)
3737     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3738   *)
3739     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3740   esac
3741 fi
3742 # Use eval to expand $SHELL
3743 if eval "$MISSING --run true"; then
3744   am_missing_run="$MISSING --run "
3745 else
3746   am_missing_run=
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3748 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3749 fi
3750
3751 if test x"${install_sh}" != xset; then
3752   case $am_aux_dir in
3753   *\ * | *\     *)
3754     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3755   *)
3756     install_sh="\${SHELL} $am_aux_dir/install-sh"
3757   esac
3758 fi
3759
3760 # Installed binaries are usually stripped using `strip' when the user
3761 # run `make install-strip'.  However `strip' might not be the right
3762 # tool to use in cross-compilation environments, therefore Automake
3763 # will honor the `STRIP' environment variable to overrule this program.
3764 if test "$cross_compiling" != no; then
3765   if test -n "$ac_tool_prefix"; then
3766   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3767 set dummy ${ac_tool_prefix}strip; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if test "${ac_cv_prog_STRIP+set}" = set; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   if test -n "$STRIP"; then
3774   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781     for ac_exec_ext in '' $ac_executable_extensions; do
3782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785     break 2
3786   fi
3787 done
3788   done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 STRIP=$ac_cv_prog_STRIP
3794 if test -n "$STRIP"; then
3795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3796 $as_echo "$STRIP" >&6; }
3797 else
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803 fi
3804 if test -z "$ac_cv_prog_STRIP"; then
3805   ac_ct_STRIP=$STRIP
3806   # Extract the first word of "strip", so it can be a program name with args.
3807 set dummy strip; ac_word=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3811   $as_echo_n "(cached) " >&6
3812 else
3813   if test -n "$ac_ct_STRIP"; then
3814   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819   IFS=$as_save_IFS
3820   test -z "$as_dir" && as_dir=.
3821     for ac_exec_ext in '' $ac_executable_extensions; do
3822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823     ac_cv_prog_ac_ct_STRIP="strip"
3824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825     break 2
3826   fi
3827 done
3828   done
3829 IFS=$as_save_IFS
3830
3831 fi
3832 fi
3833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3834 if test -n "$ac_ct_STRIP"; then
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3836 $as_echo "$ac_ct_STRIP" >&6; }
3837 else
3838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3840 fi
3841
3842   if test "x$ac_ct_STRIP" = x; then
3843     STRIP=":"
3844   else
3845     case $cross_compiling:$ac_tool_warned in
3846 yes:)
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849 ac_tool_warned=yes ;;
3850 esac
3851     STRIP=$ac_ct_STRIP
3852   fi
3853 else
3854   STRIP="$ac_cv_prog_STRIP"
3855 fi
3856
3857 fi
3858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3861 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3862 if test -z "$MKDIR_P"; then
3863   if test "${ac_cv_path_mkdir+set}" = set; then :
3864   $as_echo_n "(cached) " >&6
3865 else
3866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3868 do
3869   IFS=$as_save_IFS
3870   test -z "$as_dir" && as_dir=.
3871     for ac_prog in mkdir gmkdir; do
3872          for ac_exec_ext in '' $ac_executable_extensions; do
3873            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3874            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3875              'mkdir (GNU coreutils) '* | \
3876              'mkdir (coreutils) '* | \
3877              'mkdir (fileutils) '4.1*)
3878                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3879                break 3;;
3880            esac
3881          done
3882        done
3883   done
3884 IFS=$as_save_IFS
3885
3886 fi
3887
3888   if test "${ac_cv_path_mkdir+set}" = set; then
3889     MKDIR_P="$ac_cv_path_mkdir -p"
3890   else
3891     # As a last resort, use the slow shell script.  Don't cache a
3892     # value for MKDIR_P within a source directory, because that will
3893     # break other packages using the cache if that directory is
3894     # removed, or if the value is a relative name.
3895     test -d ./--version && rmdir ./--version
3896     MKDIR_P="$ac_install_sh -d"
3897   fi
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3900 $as_echo "$MKDIR_P" >&6; }
3901
3902 mkdir_p="$MKDIR_P"
3903 case $mkdir_p in
3904   [\\/$]* | ?:[\\/]*) ;;
3905   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3906 esac
3907
3908 for ac_prog in gawk mawk nawk awk
3909 do
3910   # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if test "${ac_cv_prog_AWK+set}" = set; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   if test -n "$AWK"; then
3918   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927     ac_cv_prog_AWK="$ac_prog"
3928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932   done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 AWK=$ac_cv_prog_AWK
3938 if test -n "$AWK"; then
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3940 $as_echo "$AWK" >&6; }
3941 else
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946
3947   test -n "$AWK" && break
3948 done
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3951 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3952 set x ${MAKE-make}
3953 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3954 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   cat >conftest.make <<\_ACEOF
3958 SHELL = /bin/sh
3959 all:
3960         @echo '@@@%%%=$(MAKE)=@@@%%%'
3961 _ACEOF
3962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3964   *@@@%%%=?*=@@@%%%*)
3965     eval ac_cv_prog_make_${ac_make}_set=yes;;
3966   *)
3967     eval ac_cv_prog_make_${ac_make}_set=no;;
3968 esac
3969 rm -f conftest.make
3970 fi
3971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3974   SET_MAKE=
3975 else
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978   SET_MAKE="MAKE=${MAKE-make}"
3979 fi
3980
3981 rm -rf .tst 2>/dev/null
3982 mkdir .tst 2>/dev/null
3983 if test -d .tst; then
3984   am__leading_dot=.
3985 else
3986   am__leading_dot=_
3987 fi
3988 rmdir .tst 2>/dev/null
3989
3990 DEPDIR="${am__leading_dot}deps"
3991
3992 ac_config_commands="$ac_config_commands depfiles"
3993
3994
3995 am_make=${MAKE-make}
3996 cat > confinc << 'END'
3997 am__doit:
3998         @echo this is the am__doit target
3999 .PHONY: am__doit
4000 END
4001 # If we don't find an include directive, just comment out the code.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4004 am__include="#"
4005 am__quote=
4006 _am_result=none
4007 # First try GNU make style include.
4008 echo "include confinc" > confmf
4009 # Ignore all kinds of additional output from `make'.
4010 case `$am_make -s -f confmf 2> /dev/null` in #(
4011 *the\ am__doit\ target*)
4012   am__include=include
4013   am__quote=
4014   _am_result=GNU
4015   ;;
4016 esac
4017 # Now try BSD make style include.
4018 if test "$am__include" = "#"; then
4019    echo '.include "confinc"' > confmf
4020    case `$am_make -s -f confmf 2> /dev/null` in #(
4021    *the\ am__doit\ target*)
4022      am__include=.include
4023      am__quote="\""
4024      _am_result=BSD
4025      ;;
4026    esac
4027 fi
4028
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4031 $as_echo "$_am_result" >&6; }
4032 rm -f confinc confmf
4033
4034 # Check whether --enable-dependency-tracking was given.
4035 if test "${enable_dependency_tracking+set}" = set; then :
4036   enableval=$enable_dependency_tracking;
4037 fi
4038
4039 if test "x$enable_dependency_tracking" != xno; then
4040   am_depcomp="$ac_aux_dir/depcomp"
4041   AMDEPBACKSLASH='\'
4042   am__nodep='_no'
4043 fi
4044  if test "x$enable_dependency_tracking" != xno; then
4045   AMDEP_TRUE=
4046   AMDEP_FALSE='#'
4047 else
4048   AMDEP_TRUE='#'
4049   AMDEP_FALSE=
4050 fi
4051
4052
4053 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4054   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4055   # is not polluted with repeated "-I."
4056   am__isrc=' -I$(srcdir)'
4057   # test to see if srcdir already configured
4058   if test -f $srcdir/config.status; then
4059     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4060   fi
4061 fi
4062
4063 # test whether we have cygpath
4064 if test -z "$CYGPATH_W"; then
4065   if (cygpath --version) >/dev/null 2>/dev/null; then
4066     CYGPATH_W='cygpath -w'
4067   else
4068     CYGPATH_W=echo
4069   fi
4070 fi
4071
4072
4073 # Define the identity of the package.
4074  PACKAGE='ld'
4075  VERSION='2.30.51'
4076
4077
4078 cat >>confdefs.h <<_ACEOF
4079 #define PACKAGE "$PACKAGE"
4080 _ACEOF
4081
4082
4083 cat >>confdefs.h <<_ACEOF
4084 #define VERSION "$VERSION"
4085 _ACEOF
4086
4087 # Some tools Automake needs.
4088
4089 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4090
4091
4092 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4093
4094
4095 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4096
4097
4098 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4099
4100
4101 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4102
4103 # We need awk for the "check" target.  The system "awk" is bad on
4104 # some platforms.
4105 # Always define AMTAR for backward compatibility.  Yes, it's still used
4106 # in the wild :-(  We should find a proper way to deprecate it ...
4107 AMTAR='$${TAR-tar}'
4108
4109 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4110
4111
4112
4113
4114 depcc="$CC"   am_compiler_list=
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4117 $as_echo_n "checking dependency style of $depcc... " >&6; }
4118 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4122   # We make a subdir and do the tests there.  Otherwise we can end up
4123   # making bogus files that we don't know about and never remove.  For
4124   # instance it was reported that on HP-UX the gcc test will end up
4125   # making a dummy file named `D' -- because `-MD' means `put the output
4126   # in D'.
4127   rm -rf conftest.dir
4128   mkdir conftest.dir
4129   # Copy depcomp to subdir because otherwise we won't find it if we're
4130   # using a relative directory.
4131   cp "$am_depcomp" conftest.dir
4132   cd conftest.dir
4133   # We will build objects and dependencies in a subdirectory because
4134   # it helps to detect inapplicable dependency modes.  For instance
4135   # both Tru64's cc and ICC support -MD to output dependencies as a
4136   # side effect of compilation, but ICC will put the dependencies in
4137   # the current directory while Tru64 will put them in the object
4138   # directory.
4139   mkdir sub
4140
4141   am_cv_CC_dependencies_compiler_type=none
4142   if test "$am_compiler_list" = ""; then
4143      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4144   fi
4145   am__universal=false
4146   case " $depcc " in #(
4147      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4148      esac
4149
4150   for depmode in $am_compiler_list; do
4151     # Setup a source with many dependencies, because some compilers
4152     # like to wrap large dependency lists on column 80 (with \), and
4153     # we should not choose a depcomp mode which is confused by this.
4154     #
4155     # We need to recreate these files for each test, as the compiler may
4156     # overwrite some of them when testing with obscure command lines.
4157     # This happens at least with the AIX C compiler.
4158     : > sub/conftest.c
4159     for i in 1 2 3 4 5 6; do
4160       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4161       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4162       # Solaris 8's {/usr,}/bin/sh.
4163       touch sub/conftst$i.h
4164     done
4165     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4166
4167     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4168     # mode.  It turns out that the SunPro C++ compiler does not properly
4169     # handle `-M -o', and we need to detect this.  Also, some Intel
4170     # versions had trouble with output in subdirs
4171     am__obj=sub/conftest.${OBJEXT-o}
4172     am__minus_obj="-o $am__obj"
4173     case $depmode in
4174     gcc)
4175       # This depmode causes a compiler race in universal mode.
4176       test "$am__universal" = false || continue
4177       ;;
4178     nosideeffect)
4179       # after this tag, mechanisms are not by side-effect, so they'll
4180       # only be used when explicitly requested
4181       if test "x$enable_dependency_tracking" = xyes; then
4182         continue
4183       else
4184         break
4185       fi
4186       ;;
4187     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4188       # This compiler won't grok `-c -o', but also, the minuso test has
4189       # not run yet.  These depmodes are late enough in the game, and
4190       # so weak that their functioning should not be impacted.
4191       am__obj=conftest.${OBJEXT-o}
4192       am__minus_obj=
4193       ;;
4194     none) break ;;
4195     esac
4196     if depmode=$depmode \
4197        source=sub/conftest.c object=$am__obj \
4198        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4199        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4200          >/dev/null 2>conftest.err &&
4201        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4202        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4203        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4204        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4205       # icc doesn't choke on unknown options, it will just issue warnings
4206       # or remarks (even with -Werror).  So we grep stderr for any message
4207       # that says an option was ignored or not supported.
4208       # When given -MP, icc 7.0 and 7.1 complain thusly:
4209       #   icc: Command line warning: ignoring option '-M'; no argument required
4210       # The diagnosis changed in icc 8.0:
4211       #   icc: Command line remark: option '-MP' not supported
4212       if (grep 'ignoring option' conftest.err ||
4213           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4214         am_cv_CC_dependencies_compiler_type=$depmode
4215         break
4216       fi
4217     fi
4218   done
4219
4220   cd ..
4221   rm -rf conftest.dir
4222 else
4223   am_cv_CC_dependencies_compiler_type=none
4224 fi
4225
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4228 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4229 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4230
4231  if
4232   test "x$enable_dependency_tracking" != xno \
4233   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4234   am__fastdepCC_TRUE=
4235   am__fastdepCC_FALSE='#'
4236 else
4237   am__fastdepCC_TRUE='#'
4238   am__fastdepCC_FALSE=
4239 fi
4240
4241
4242
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4245 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4246     # Check whether --enable-maintainer-mode was given.
4247 if test "${enable_maintainer_mode+set}" = set; then :
4248   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4249 else
4250   USE_MAINTAINER_MODE=no
4251 fi
4252
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4254 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4255    if test $USE_MAINTAINER_MODE = yes; then
4256   MAINTAINER_MODE_TRUE=
4257   MAINTAINER_MODE_FALSE='#'
4258 else
4259   MAINTAINER_MODE_TRUE='#'
4260   MAINTAINER_MODE_FALSE=
4261 fi
4262
4263   MAINT=$MAINTAINER_MODE_TRUE
4264
4265
4266
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 if test -n "$ac_tool_prefix"; then
4273   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if test "${ac_cv_prog_CC+set}" = set; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -n "$CC"; then
4281   ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295   done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 CC=$ac_cv_prog_CC
4301 if test -n "$CC"; then
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303 $as_echo "$CC" >&6; }
4304 else
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310 fi
4311 if test -z "$ac_cv_prog_CC"; then
4312   ac_ct_CC=$CC
4313   # Extract the first word of "gcc", so it can be a program name with args.
4314 set dummy gcc; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -n "$ac_ct_CC"; then
4321   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328     for ac_exec_ext in '' $ac_executable_extensions; do
4329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330     ac_cv_prog_ac_ct_CC="gcc"
4331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332     break 2
4333   fi
4334 done
4335   done
4336 IFS=$as_save_IFS
4337
4338 fi
4339 fi
4340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4341 if test -n "$ac_ct_CC"; then
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4343 $as_echo "$ac_ct_CC" >&6; }
4344 else
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4347 fi
4348
4349   if test "x$ac_ct_CC" = x; then
4350     CC=""
4351   else
4352     case $cross_compiling:$ac_tool_warned in
4353 yes:)
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4356 ac_tool_warned=yes ;;
4357 esac
4358     CC=$ac_ct_CC
4359   fi
4360 else
4361   CC="$ac_cv_prog_CC"
4362 fi
4363
4364 if test -z "$CC"; then
4365           if test -n "$ac_tool_prefix"; then
4366     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4367 set dummy ${ac_tool_prefix}cc; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if test "${ac_cv_prog_CC+set}" = set; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if test -n "$CC"; then
4374   ac_cv_prog_CC="$CC" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381     for ac_exec_ext in '' $ac_executable_extensions; do
4382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383     ac_cv_prog_CC="${ac_tool_prefix}cc"
4384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388   done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 CC=$ac_cv_prog_CC
4394 if test -n "$CC"; then
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396 $as_echo "$CC" >&6; }
4397 else
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403   fi
4404 fi
4405 if test -z "$CC"; then
4406   # Extract the first word of "cc", so it can be a program name with args.
4407 set dummy cc; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if test "${ac_cv_prog_CC+set}" = set; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   if test -n "$CC"; then
4414   ac_cv_prog_CC="$CC" # Let the user override the test.
4415 else
4416   ac_prog_rejected=no
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422     for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4425        ac_prog_rejected=yes
4426        continue
4427      fi
4428     ac_cv_prog_CC="cc"
4429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433   done
4434 IFS=$as_save_IFS
4435
4436 if test $ac_prog_rejected = yes; then
4437   # We found a bogon in the path, so make sure we never use it.
4438   set dummy $ac_cv_prog_CC
4439   shift
4440   if test $# != 0; then
4441     # We chose a different compiler from the bogus one.
4442     # However, it has the same basename, so the bogon will be chosen
4443     # first if we set CC to just the basename; use the full file name.
4444     shift
4445     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4446   fi
4447 fi
4448 fi
4449 fi
4450 CC=$ac_cv_prog_CC
4451 if test -n "$CC"; then
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4453 $as_echo "$CC" >&6; }
4454 else
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459
4460 fi
4461 if test -z "$CC"; then
4462   if test -n "$ac_tool_prefix"; then
4463   for ac_prog in cl.exe
4464   do
4465     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if test "${ac_cv_prog_CC+set}" = set; then :
4470   $as_echo_n "(cached) " >&6
4471 else
4472   if test -n "$CC"; then
4473   ac_cv_prog_CC="$CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480     for ac_exec_ext in '' $ac_executable_extensions; do
4481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487   done
4488 IFS=$as_save_IFS
4489
4490 fi
4491 fi
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495 $as_echo "$CC" >&6; }
4496 else
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4499 fi
4500
4501
4502     test -n "$CC" && break
4503   done
4504 fi
4505 if test -z "$CC"; then
4506   ac_ct_CC=$CC
4507   for ac_prog in cl.exe
4508 do
4509   # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   if test -n "$ac_ct_CC"; then
4517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524     for ac_exec_ext in '' $ac_executable_extensions; do
4525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526     ac_cv_prog_ac_ct_CC="$ac_prog"
4527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531   done
4532 IFS=$as_save_IFS
4533
4534 fi
4535 fi
4536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4537 if test -n "$ac_ct_CC"; then
4538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4539 $as_echo "$ac_ct_CC" >&6; }
4540 else
4541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545
4546   test -n "$ac_ct_CC" && break
4547 done
4548
4549   if test "x$ac_ct_CC" = x; then
4550     CC=""
4551   else
4552     case $cross_compiling:$ac_tool_warned in
4553 yes:)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned=yes ;;
4557 esac
4558     CC=$ac_ct_CC
4559   fi
4560 fi
4561
4562 fi
4563
4564
4565 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4567 as_fn_error "no acceptable C compiler found in \$PATH
4568 See \`config.log' for more details." "$LINENO" 5; }
4569
4570 # Provide some information about the compiler.
4571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4572 set X $ac_compile
4573 ac_compiler=$2
4574 for ac_option in --version -v -V -qversion; do
4575   { { ac_try="$ac_compiler $ac_option >&5"
4576 case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4583   ac_status=$?
4584   if test -s conftest.err; then
4585     sed '10a\
4586 ... rest of stderr output deleted ...
4587          10q' conftest.err >conftest.er1
4588     cat conftest.er1 >&5
4589     rm -f conftest.er1 conftest.err
4590   fi
4591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592   test $ac_status = 0; }
4593 done
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4596 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4597 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602
4603 int
4604 main ()
4605 {
4606 #ifndef __GNUC__
4607        choke me
4608 #endif
4609
4610   ;
4611   return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615   ac_compiler_gnu=yes
4616 else
4617   ac_compiler_gnu=no
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4624 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4626   GCC=yes
4627 else
4628   GCC=
4629 fi
4630 ac_test_CFLAGS=${CFLAGS+set}
4631 ac_save_CFLAGS=$CFLAGS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4634 if test "${ac_cv_prog_cc_g+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   ac_save_c_werror_flag=$ac_c_werror_flag
4638    ac_c_werror_flag=yes
4639    ac_cv_prog_cc_g=no
4640    CFLAGS="-g"
4641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h.  */
4643
4644 int
4645 main ()
4646 {
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653   ac_cv_prog_cc_g=yes
4654 else
4655   CFLAGS=""
4656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658
4659 int
4660 main ()
4661 {
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668
4669 else
4670   ac_c_werror_flag=$ac_save_c_werror_flag
4671          CFLAGS="-g"
4672          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h.  */
4674
4675 int
4676 main ()
4677 {
4678
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684   ac_cv_prog_cc_g=yes
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691    ac_c_werror_flag=$ac_save_c_werror_flag
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4694 $as_echo "$ac_cv_prog_cc_g" >&6; }
4695 if test "$ac_test_CFLAGS" = set; then
4696   CFLAGS=$ac_save_CFLAGS
4697 elif test $ac_cv_prog_cc_g = yes; then
4698   if test "$GCC" = yes; then
4699     CFLAGS="-g -O2"
4700   else
4701     CFLAGS="-g"
4702   fi
4703 else
4704   if test "$GCC" = yes; then
4705     CFLAGS="-O2"
4706   else
4707     CFLAGS=
4708   fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4711 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4712 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   ac_cv_prog_cc_c89=no
4716 ac_save_CC=$CC
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h.  */
4719 #include <stdarg.h>
4720 #include <stdio.h>
4721 #include <sys/types.h>
4722 #include <sys/stat.h>
4723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4724 struct buf { int x; };
4725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4726 static char *e (p, i)
4727      char **p;
4728      int i;
4729 {
4730   return p[i];
4731 }
4732 static char *f (char * (*g) (char **, int), char **p, ...)
4733 {
4734   char *s;
4735   va_list v;
4736   va_start (v,p);
4737   s = g (p, va_arg (v,int));
4738   va_end (v);
4739   return s;
4740 }
4741
4742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4743    function prototypes and stuff, but not '\xHH' hex character constants.
4744    These don't provoke an error unfortunately, instead are silently treated
4745    as 'x'.  The following induces an error, until -std is added to get
4746    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4747    array size at least.  It's necessary to write '\x00'==0 to get something
4748    that's true only with -std.  */
4749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4750
4751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4752    inside strings and character constants.  */
4753 #define FOO(x) 'x'
4754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4755
4756 int test (int i, double x);
4757 struct s1 {int (*f) (int a);};
4758 struct s2 {int (*f) (double a);};
4759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4760 int argc;
4761 char **argv;
4762 int
4763 main ()
4764 {
4765 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4771         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4772 do
4773   CC="$ac_save_CC $ac_arg"
4774   if ac_fn_c_try_compile "$LINENO"; then :
4775   ac_cv_prog_cc_c89=$ac_arg
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext
4778   test "x$ac_cv_prog_cc_c89" != "xno" && break
4779 done
4780 rm -f conftest.$ac_ext
4781 CC=$ac_save_CC
4782
4783 fi
4784 # AC_CACHE_VAL
4785 case "x$ac_cv_prog_cc_c89" in
4786   x)
4787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4788 $as_echo "none needed" >&6; } ;;
4789   xno)
4790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4791 $as_echo "unsupported" >&6; } ;;
4792   *)
4793     CC="$CC $ac_cv_prog_cc_c89"
4794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4796 esac
4797 if test "x$ac_cv_prog_cc_c89" != xno; then :
4798
4799 fi
4800
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807 ac_ext=cpp
4808 ac_cpp='$CXXCPP $CPPFLAGS'
4809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4812 if test -z "$CXX"; then
4813   if test -n "$CCC"; then
4814     CXX=$CCC
4815   else
4816     if test -n "$ac_tool_prefix"; then
4817   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4818   do
4819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_CXX+set}" = set; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   if test -n "$CXX"; then
4827   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834     for ac_exec_ext in '' $ac_executable_extensions; do
4835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841   done
4842 IFS=$as_save_IFS
4843
4844 fi
4845 fi
4846 CXX=$ac_cv_prog_CXX
4847 if test -n "$CXX"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4849 $as_echo "$CXX" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854
4855
4856     test -n "$CXX" && break
4857   done
4858 fi
4859 if test -z "$CXX"; then
4860   ac_ct_CXX=$CXX
4861   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4862 do
4863   # Extract the first word of "$ac_prog", so it can be a program name with args.
4864 set dummy $ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   if test -n "$ac_ct_CXX"; then
4871   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878     for ac_exec_ext in '' $ac_executable_extensions; do
4879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880     ac_cv_prog_ac_ct_CXX="$ac_prog"
4881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885   done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4891 if test -n "$ac_ct_CXX"; then
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4893 $as_echo "$ac_ct_CXX" >&6; }
4894 else
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899
4900   test -n "$ac_ct_CXX" && break
4901 done
4902
4903   if test "x$ac_ct_CXX" = x; then
4904     CXX="g++"
4905   else
4906     case $cross_compiling:$ac_tool_warned in
4907 yes:)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910 ac_tool_warned=yes ;;
4911 esac
4912     CXX=$ac_ct_CXX
4913   fi
4914 fi
4915
4916   fi
4917 fi
4918 # Provide some information about the compiler.
4919 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4920 set X $ac_compile
4921 ac_compiler=$2
4922 for ac_option in --version -v -V -qversion; do
4923   { { ac_try="$ac_compiler $ac_option >&5"
4924 case "(($ac_try" in
4925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926   *) ac_try_echo=$ac_try;;
4927 esac
4928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4929 $as_echo "$ac_try_echo"; } >&5
4930   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4931   ac_status=$?
4932   if test -s conftest.err; then
4933     sed '10a\
4934 ... rest of stderr output deleted ...
4935          10q' conftest.err >conftest.er1
4936     cat conftest.er1 >&5
4937     rm -f conftest.er1 conftest.err
4938   fi
4939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940   test $ac_status = 0; }
4941 done
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4944 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4945 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h.  */
4950
4951 int
4952 main ()
4953 {
4954 #ifndef __GNUC__
4955        choke me
4956 #endif
4957
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 if ac_fn_cxx_try_compile "$LINENO"; then :
4963   ac_compiler_gnu=yes
4964 else
4965   ac_compiler_gnu=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4969
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4972 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4973 if test $ac_compiler_gnu = yes; then
4974   GXX=yes
4975 else
4976   GXX=
4977 fi
4978 ac_test_CXXFLAGS=${CXXFLAGS+set}
4979 ac_save_CXXFLAGS=$CXXFLAGS
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4981 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4982 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4986    ac_cxx_werror_flag=yes
4987    ac_cv_prog_cxx_g=no
4988    CXXFLAGS="-g"
4989    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h.  */
4991
4992 int
4993 main ()
4994 {
4995
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 if ac_fn_cxx_try_compile "$LINENO"; then :
5001   ac_cv_prog_cxx_g=yes
5002 else
5003   CXXFLAGS=""
5004       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h.  */
5006
5007 int
5008 main ()
5009 {
5010
5011   ;
5012   return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_cxx_try_compile "$LINENO"; then :
5016
5017 else
5018   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019          CXXFLAGS="-g"
5020          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h.  */
5022
5023 int
5024 main ()
5025 {
5026
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 if ac_fn_cxx_try_compile "$LINENO"; then :
5032   ac_cv_prog_cxx_g=yes
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5042 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5043 if test "$ac_test_CXXFLAGS" = set; then
5044   CXXFLAGS=$ac_save_CXXFLAGS
5045 elif test $ac_cv_prog_cxx_g = yes; then
5046   if test "$GXX" = yes; then
5047     CXXFLAGS="-g -O2"
5048   else
5049     CXXFLAGS="-g"
5050   fi
5051 else
5052   if test "$GXX" = yes; then
5053     CXXFLAGS="-O2"
5054   else
5055     CXXFLAGS=
5056   fi
5057 fi
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063
5064 depcc="$CXX"  am_compiler_list=
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5067 $as_echo_n "checking dependency style of $depcc... " >&6; }
5068 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072   # We make a subdir and do the tests there.  Otherwise we can end up
5073   # making bogus files that we don't know about and never remove.  For
5074   # instance it was reported that on HP-UX the gcc test will end up
5075   # making a dummy file named `D' -- because `-MD' means `put the output
5076   # in D'.
5077   rm -rf conftest.dir
5078   mkdir conftest.dir
5079   # Copy depcomp to subdir because otherwise we won't find it if we're
5080   # using a relative directory.
5081   cp "$am_depcomp" conftest.dir
5082   cd conftest.dir
5083   # We will build objects and dependencies in a subdirectory because
5084   # it helps to detect inapplicable dependency modes.  For instance
5085   # both Tru64's cc and ICC support -MD to output dependencies as a
5086   # side effect of compilation, but ICC will put the dependencies in
5087   # the current directory while Tru64 will put them in the object
5088   # directory.
5089   mkdir sub
5090
5091   am_cv_CXX_dependencies_compiler_type=none
5092   if test "$am_compiler_list" = ""; then
5093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5094   fi
5095   am__universal=false
5096   case " $depcc " in #(
5097      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5098      esac
5099
5100   for depmode in $am_compiler_list; do
5101     # Setup a source with many dependencies, because some compilers
5102     # like to wrap large dependency lists on column 80 (with \), and
5103     # we should not choose a depcomp mode which is confused by this.
5104     #
5105     # We need to recreate these files for each test, as the compiler may
5106     # overwrite some of them when testing with obscure command lines.
5107     # This happens at least with the AIX C compiler.
5108     : > sub/conftest.c
5109     for i in 1 2 3 4 5 6; do
5110       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5111       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5112       # Solaris 8's {/usr,}/bin/sh.
5113       touch sub/conftst$i.h
5114     done
5115     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5116
5117     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5118     # mode.  It turns out that the SunPro C++ compiler does not properly
5119     # handle `-M -o', and we need to detect this.  Also, some Intel
5120     # versions had trouble with output in subdirs
5121     am__obj=sub/conftest.${OBJEXT-o}
5122     am__minus_obj="-o $am__obj"
5123     case $depmode in
5124     gcc)
5125       # This depmode causes a compiler race in universal mode.
5126       test "$am__universal" = false || continue
5127       ;;
5128     nosideeffect)
5129       # after this tag, mechanisms are not by side-effect, so they'll
5130       # only be used when explicitly requested
5131       if test "x$enable_dependency_tracking" = xyes; then
5132         continue
5133       else
5134         break
5135       fi
5136       ;;
5137     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5138       # This compiler won't grok `-c -o', but also, the minuso test has
5139       # not run yet.  These depmodes are late enough in the game, and
5140       # so weak that their functioning should not be impacted.
5141       am__obj=conftest.${OBJEXT-o}
5142       am__minus_obj=
5143       ;;
5144     none) break ;;
5145     esac
5146     if depmode=$depmode \
5147        source=sub/conftest.c object=$am__obj \
5148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5149        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5150          >/dev/null 2>conftest.err &&
5151        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5152        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5153        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5154        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5155       # icc doesn't choke on unknown options, it will just issue warnings
5156       # or remarks (even with -Werror).  So we grep stderr for any message
5157       # that says an option was ignored or not supported.
5158       # When given -MP, icc 7.0 and 7.1 complain thusly:
5159       #   icc: Command line warning: ignoring option '-M'; no argument required
5160       # The diagnosis changed in icc 8.0:
5161       #   icc: Command line remark: option '-MP' not supported
5162       if (grep 'ignoring option' conftest.err ||
5163           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5164         am_cv_CXX_dependencies_compiler_type=$depmode
5165         break
5166       fi
5167     fi
5168   done
5169
5170   cd ..
5171   rm -rf conftest.dir
5172 else
5173   am_cv_CXX_dependencies_compiler_type=none
5174 fi
5175
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5178 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5179 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5180
5181  if
5182   test "x$enable_dependency_tracking" != xno \
5183   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5184   am__fastdepCXX_TRUE=
5185   am__fastdepCXX_FALSE='#'
5186 else
5187   am__fastdepCXX_TRUE='#'
5188   am__fastdepCXX_FALSE=
5189 fi
5190
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5193 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5194 if test "${ac_cv_path_GREP+set}" = set; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   if test -z "$GREP"; then
5198   ac_path_GREP_found=false
5199   # Loop through the user's path and test for each of PROGNAME-LIST
5200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5202 do
5203   IFS=$as_save_IFS
5204   test -z "$as_dir" && as_dir=.
5205     for ac_prog in grep ggrep; do
5206     for ac_exec_ext in '' $ac_executable_extensions; do
5207       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5208       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5209 # Check for GNU ac_path_GREP and select it if it is found.
5210   # Check for GNU $ac_path_GREP
5211 case `"$ac_path_GREP" --version 2>&1` in
5212 *GNU*)
5213   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5214 *)
5215   ac_count=0
5216   $as_echo_n 0123456789 >"conftest.in"
5217   while :
5218   do
5219     cat "conftest.in" "conftest.in" >"conftest.tmp"
5220     mv "conftest.tmp" "conftest.in"
5221     cp "conftest.in" "conftest.nl"
5222     $as_echo 'GREP' >> "conftest.nl"
5223     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5224     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5225     as_fn_arith $ac_count + 1 && ac_count=$as_val
5226     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5227       # Best one so far, save it but keep looking for a better one
5228       ac_cv_path_GREP="$ac_path_GREP"
5229       ac_path_GREP_max=$ac_count
5230     fi
5231     # 10*(2^10) chars as input seems more than enough
5232     test $ac_count -gt 10 && break
5233   done
5234   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235 esac
5236
5237       $ac_path_GREP_found && break 3
5238     done
5239   done
5240   done
5241 IFS=$as_save_IFS
5242   if test -z "$ac_cv_path_GREP"; then
5243     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5244   fi
5245 else
5246   ac_cv_path_GREP=$GREP
5247 fi
5248
5249 fi
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5251 $as_echo "$ac_cv_path_GREP" >&6; }
5252  GREP="$ac_cv_path_GREP"
5253
5254
5255 ac_ext=c
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5261 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5262 # On Suns, sometimes $CPP names a directory.
5263 if test -n "$CPP" && test -d "$CPP"; then
5264   CPP=
5265 fi
5266 if test -z "$CPP"; then
5267   if test "${ac_cv_prog_CPP+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270       # Double quotes because CPP needs to be expanded
5271     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5272     do
5273       ac_preproc_ok=false
5274 for ac_c_preproc_warn_flag in '' yes
5275 do
5276   # Use a header file that comes with gcc, so configuring glibc
5277   # with a fresh cross-compiler works.
5278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279   # <limits.h> exists even on freestanding compilers.
5280   # On the NeXT, cc -E runs the code through the compiler's parser,
5281   # not just through cpp. "Syntax error" is here to catch this case.
5282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h.  */
5284 #ifdef __STDC__
5285 # include <limits.h>
5286 #else
5287 # include <assert.h>
5288 #endif
5289                      Syntax error
5290 _ACEOF
5291 if ac_fn_c_try_cpp "$LINENO"; then :
5292
5293 else
5294   # Broken: fails on valid input.
5295 continue
5296 fi
5297 rm -f conftest.err conftest.$ac_ext
5298
5299   # OK, works on sane cases.  Now check whether nonexistent headers
5300   # can be detected and how.
5301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h.  */
5303 #include <ac_nonexistent.h>
5304 _ACEOF
5305 if ac_fn_c_try_cpp "$LINENO"; then :
5306   # Broken: success on invalid input.
5307 continue
5308 else
5309   # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5312 fi
5313 rm -f conftest.err conftest.$ac_ext
5314
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then :
5319   break
5320 fi
5321
5322     done
5323     ac_cv_prog_CPP=$CPP
5324
5325 fi
5326   CPP=$ac_cv_prog_CPP
5327 else
5328   ac_cv_prog_CPP=$CPP
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5331 $as_echo "$CPP" >&6; }
5332 ac_preproc_ok=false
5333 for ac_c_preproc_warn_flag in '' yes
5334 do
5335   # Use a header file that comes with gcc, so configuring glibc
5336   # with a fresh cross-compiler works.
5337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338   # <limits.h> exists even on freestanding compilers.
5339   # On the NeXT, cc -E runs the code through the compiler's parser,
5340   # not just through cpp. "Syntax error" is here to catch this case.
5341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h.  */
5343 #ifdef __STDC__
5344 # include <limits.h>
5345 #else
5346 # include <assert.h>
5347 #endif
5348                      Syntax error
5349 _ACEOF
5350 if ac_fn_c_try_cpp "$LINENO"; then :
5351
5352 else
5353   # Broken: fails on valid input.
5354 continue
5355 fi
5356 rm -f conftest.err conftest.$ac_ext
5357
5358   # OK, works on sane cases.  Now check whether nonexistent headers
5359   # can be detected and how.
5360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h.  */
5362 #include <ac_nonexistent.h>
5363 _ACEOF
5364 if ac_fn_c_try_cpp "$LINENO"; then :
5365   # Broken: success on invalid input.
5366 continue
5367 else
5368   # Passes both tests.
5369 ac_preproc_ok=:
5370 break
5371 fi
5372 rm -f conftest.err conftest.$ac_ext
5373
5374 done
5375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5376 rm -f conftest.err conftest.$ac_ext
5377 if $ac_preproc_ok; then :
5378
5379 else
5380   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5382 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5383 See \`config.log' for more details." "$LINENO" 5; }
5384 fi
5385
5386 ac_ext=c
5387 ac_cpp='$CPP $CPPFLAGS'
5388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5394 $as_echo_n "checking for egrep... " >&6; }
5395 if test "${ac_cv_path_EGREP+set}" = set; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5399    then ac_cv_path_EGREP="$GREP -E"
5400    else
5401      if test -z "$EGREP"; then
5402   ac_path_EGREP_found=false
5403   # Loop through the user's path and test for each of PROGNAME-LIST
5404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_prog in egrep; do
5410     for ac_exec_ext in '' $ac_executable_extensions; do
5411       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5412       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5413 # Check for GNU ac_path_EGREP and select it if it is found.
5414   # Check for GNU $ac_path_EGREP
5415 case `"$ac_path_EGREP" --version 2>&1` in
5416 *GNU*)
5417   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5418 *)
5419   ac_count=0
5420   $as_echo_n 0123456789 >"conftest.in"
5421   while :
5422   do
5423     cat "conftest.in" "conftest.in" >"conftest.tmp"
5424     mv "conftest.tmp" "conftest.in"
5425     cp "conftest.in" "conftest.nl"
5426     $as_echo 'EGREP' >> "conftest.nl"
5427     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5429     as_fn_arith $ac_count + 1 && ac_count=$as_val
5430     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5431       # Best one so far, save it but keep looking for a better one
5432       ac_cv_path_EGREP="$ac_path_EGREP"
5433       ac_path_EGREP_max=$ac_count
5434     fi
5435     # 10*(2^10) chars as input seems more than enough
5436     test $ac_count -gt 10 && break
5437   done
5438   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439 esac
5440
5441       $ac_path_EGREP_found && break 3
5442     done
5443   done
5444   done
5445 IFS=$as_save_IFS
5446   if test -z "$ac_cv_path_EGREP"; then
5447     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448   fi
5449 else
5450   ac_cv_path_EGREP=$EGREP
5451 fi
5452
5453    fi
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5456 $as_echo "$ac_cv_path_EGREP" >&6; }
5457  EGREP="$ac_cv_path_EGREP"
5458
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5461 $as_echo_n "checking for ANSI C header files... " >&6; }
5462 if test "${ac_cv_header_stdc+set}" = set; then :
5463   $as_echo_n "(cached) " >&6
5464 else
5465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h.  */
5467 #include <stdlib.h>
5468 #include <stdarg.h>
5469 #include <string.h>
5470 #include <float.h>
5471
5472 int
5473 main ()
5474 {
5475
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481   ac_cv_header_stdc=yes
5482 else
5483   ac_cv_header_stdc=no
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486
5487 if test $ac_cv_header_stdc = yes; then
5488   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h.  */
5491 #include <string.h>
5492
5493 _ACEOF
5494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5495   $EGREP "memchr" >/dev/null 2>&1; then :
5496
5497 else
5498   ac_cv_header_stdc=no
5499 fi
5500 rm -f conftest*
5501
5502 fi
5503
5504 if test $ac_cv_header_stdc = yes; then
5505   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h.  */
5508 #include <stdlib.h>
5509
5510 _ACEOF
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512   $EGREP "free" >/dev/null 2>&1; then :
5513
5514 else
5515   ac_cv_header_stdc=no
5516 fi
5517 rm -f conftest*
5518
5519 fi
5520
5521 if test $ac_cv_header_stdc = yes; then
5522   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5523   if test "$cross_compiling" = yes; then :
5524   :
5525 else
5526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h.  */
5528 #include <ctype.h>
5529 #include <stdlib.h>
5530 #if ((' ' & 0x0FF) == 0x020)
5531 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5532 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5533 #else
5534 # define ISLOWER(c) \
5535                    (('a' <= (c) && (c) <= 'i') \
5536                      || ('j' <= (c) && (c) <= 'r') \
5537                      || ('s' <= (c) && (c) <= 'z'))
5538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5539 #endif
5540
5541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5542 int
5543 main ()
5544 {
5545   int i;
5546   for (i = 0; i < 256; i++)
5547     if (XOR (islower (i), ISLOWER (i))
5548         || toupper (i) != TOUPPER (i))
5549       return 2;
5550   return 0;
5551 }
5552 _ACEOF
5553 if ac_fn_c_try_run "$LINENO"; then :
5554
5555 else
5556   ac_cv_header_stdc=no
5557 fi
5558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5559   conftest.$ac_objext conftest.beam conftest.$ac_ext
5560 fi
5561
5562 fi
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5565 $as_echo "$ac_cv_header_stdc" >&6; }
5566 if test $ac_cv_header_stdc = yes; then
5567
5568 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5569
5570 fi
5571
5572 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5573 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5574                   inttypes.h stdint.h unistd.h
5575 do :
5576   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5577 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5578 "
5579 eval as_val=\$$as_ac_Header
5580    if test "x$as_val" = x""yes; then :
5581   cat >>confdefs.h <<_ACEOF
5582 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583 _ACEOF
5584
5585 fi
5586
5587 done
5588
5589
5590
5591   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5592 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5593   MINIX=yes
5594 else
5595   MINIX=
5596 fi
5597
5598
5599   if test "$MINIX" = yes; then
5600
5601 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5602
5603
5604 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5605
5606
5607 $as_echo "#define _MINIX 1" >>confdefs.h
5608
5609   fi
5610
5611
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5613 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5614 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h.  */
5619
5620 #         define __EXTENSIONS__ 1
5621           $ac_includes_default
5622 int
5623 main ()
5624 {
5625
5626   ;
5627   return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_compile "$LINENO"; then :
5631   ac_cv_safe_to_define___extensions__=yes
5632 else
5633   ac_cv_safe_to_define___extensions__=no
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 fi
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5638 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5639   test $ac_cv_safe_to_define___extensions__ = yes &&
5640     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5641
5642   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5643
5644   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5645
5646   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5647
5648   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5649
5650
5651
5652
5653
5654
5655 case `pwd` in
5656   *\ * | *\     *)
5657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5658 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5659 esac
5660
5661
5662
5663 macro_version='2.2.7a'
5664 macro_revision='1.3134'
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 ltmain="$ac_aux_dir/ltmain.sh"
5679
5680 # Backslashify metacharacters that are still active within
5681 # double-quoted strings.
5682 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5683
5684 # Same as above, but do not quote variable references.
5685 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5686
5687 # Sed substitution to delay expansion of an escaped shell variable in a
5688 # double_quote_subst'ed string.
5689 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5690
5691 # Sed substitution to delay expansion of an escaped single quote.
5692 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5693
5694 # Sed substitution to avoid accidental globbing in evaled expressions
5695 no_glob_subst='s/\*/\\\*/g'
5696
5697 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5698 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5699 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5702 $as_echo_n "checking how to print strings... " >&6; }
5703 # Test print first, because it will be a builtin if present.
5704 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5705    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5706   ECHO='print -r --'
5707 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5708   ECHO='printf %s\n'
5709 else
5710   # Use this function as a fallback that always works.
5711   func_fallback_echo ()
5712   {
5713     eval 'cat <<_LTECHO_EOF
5714 $1
5715 _LTECHO_EOF'
5716   }
5717   ECHO='func_fallback_echo'
5718 fi
5719
5720 # func_echo_all arg...
5721 # Invoke $ECHO with all args, space-separated.
5722 func_echo_all ()
5723 {
5724     $ECHO ""
5725 }
5726
5727 case "$ECHO" in
5728   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5729 $as_echo "printf" >&6; } ;;
5730   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5731 $as_echo "print -r" >&6; } ;;
5732   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5733 $as_echo "cat" >&6; } ;;
5734 esac
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5750 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5751 if test "${ac_cv_path_SED+set}" = set; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5755      for ac_i in 1 2 3 4 5 6 7; do
5756        ac_script="$ac_script$as_nl$ac_script"
5757      done
5758      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5759      { ac_script=; unset ac_script;}
5760      if test -z "$SED"; then
5761   ac_path_SED_found=false
5762   # Loop through the user's path and test for each of PROGNAME-LIST
5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768     for ac_prog in sed gsed; do
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5771       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5772 # Check for GNU ac_path_SED and select it if it is found.
5773   # Check for GNU $ac_path_SED
5774 case `"$ac_path_SED" --version 2>&1` in
5775 *GNU*)
5776   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5777 *)
5778   ac_count=0
5779   $as_echo_n 0123456789 >"conftest.in"
5780   while :
5781   do
5782     cat "conftest.in" "conftest.in" >"conftest.tmp"
5783     mv "conftest.tmp" "conftest.in"
5784     cp "conftest.in" "conftest.nl"
5785     $as_echo '' >> "conftest.nl"
5786     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5788     as_fn_arith $ac_count + 1 && ac_count=$as_val
5789     if test $ac_count -gt ${ac_path_SED_max-0}; then
5790       # Best one so far, save it but keep looking for a better one
5791       ac_cv_path_SED="$ac_path_SED"
5792       ac_path_SED_max=$ac_count
5793     fi
5794     # 10*(2^10) chars as input seems more than enough
5795     test $ac_count -gt 10 && break
5796   done
5797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5798 esac
5799
5800       $ac_path_SED_found && break 3
5801     done
5802   done
5803   done
5804 IFS=$as_save_IFS
5805   if test -z "$ac_cv_path_SED"; then
5806     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5807   fi
5808 else
5809   ac_cv_path_SED=$SED
5810 fi
5811
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5814 $as_echo "$ac_cv_path_SED" >&6; }
5815  SED="$ac_cv_path_SED"
5816   rm -f conftest.sed
5817
5818 test -z "$SED" && SED=sed
5819 Xsed="$SED -e 1s/^X//"
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5832 $as_echo_n "checking for fgrep... " >&6; }
5833 if test "${ac_cv_path_FGREP+set}" = set; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5837    then ac_cv_path_FGREP="$GREP -F"
5838    else
5839      if test -z "$FGREP"; then
5840   ac_path_FGREP_found=false
5841   # Loop through the user's path and test for each of PROGNAME-LIST
5842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847     for ac_prog in fgrep; do
5848     for ac_exec_ext in '' $ac_executable_extensions; do
5849       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5850       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5851 # Check for GNU ac_path_FGREP and select it if it is found.
5852   # Check for GNU $ac_path_FGREP
5853 case `"$ac_path_FGREP" --version 2>&1` in
5854 *GNU*)
5855   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5856 *)
5857   ac_count=0
5858   $as_echo_n 0123456789 >"conftest.in"
5859   while :
5860   do
5861     cat "conftest.in" "conftest.in" >"conftest.tmp"
5862     mv "conftest.tmp" "conftest.in"
5863     cp "conftest.in" "conftest.nl"
5864     $as_echo 'FGREP' >> "conftest.nl"
5865     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5866     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5867     as_fn_arith $ac_count + 1 && ac_count=$as_val
5868     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5869       # Best one so far, save it but keep looking for a better one
5870       ac_cv_path_FGREP="$ac_path_FGREP"
5871       ac_path_FGREP_max=$ac_count
5872     fi
5873     # 10*(2^10) chars as input seems more than enough
5874     test $ac_count -gt 10 && break
5875   done
5876   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5877 esac
5878
5879       $ac_path_FGREP_found && break 3
5880     done
5881   done
5882   done
5883 IFS=$as_save_IFS
5884   if test -z "$ac_cv_path_FGREP"; then
5885     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5886   fi
5887 else
5888   ac_cv_path_FGREP=$FGREP
5889 fi
5890
5891    fi
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5894 $as_echo "$ac_cv_path_FGREP" >&6; }
5895  FGREP="$ac_cv_path_FGREP"
5896
5897
5898 test -z "$GREP" && GREP=grep
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 # Check whether --with-gnu-ld was given.
5919 if test "${with_gnu_ld+set}" = set; then :
5920   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5921 else
5922   with_gnu_ld=no
5923 fi
5924
5925 ac_prog=ld
5926 if test "$GCC" = yes; then
5927   # Check if gcc -print-prog-name=ld gives a path.
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5929 $as_echo_n "checking for ld used by $CC... " >&6; }
5930   case $host in
5931   *-*-mingw*)
5932     # gcc leaves a trailing carriage return which upsets mingw
5933     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5934   *)
5935     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5936   esac
5937   case $ac_prog in
5938     # Accept absolute paths.
5939     [\\/]* | ?:[\\/]*)
5940       re_direlt='/[^/][^/]*/\.\./'
5941       # Canonicalize the pathname of ld
5942       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5943       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5944         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5945       done
5946       test -z "$LD" && LD="$ac_prog"
5947       ;;
5948   "")
5949     # If it fails, then pretend we aren't using GCC.
5950     ac_prog=ld
5951     ;;
5952   *)
5953     # If it is relative, then search for the first ld in PATH.
5954     with_gnu_ld=unknown
5955     ;;
5956   esac
5957 elif test "$with_gnu_ld" = yes; then
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5959 $as_echo_n "checking for GNU ld... " >&6; }
5960 else
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5962 $as_echo_n "checking for non-GNU ld... " >&6; }
5963 fi
5964 if test "${lt_cv_path_LD+set}" = set; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -z "$LD"; then
5968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5969   for ac_dir in $PATH; do
5970     IFS="$lt_save_ifs"
5971     test -z "$ac_dir" && ac_dir=.
5972     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5973       lt_cv_path_LD="$ac_dir/$ac_prog"
5974       # Check to see if the program is GNU ld.  I'd rather use --version,
5975       # but apparently some variants of GNU ld only accept -v.
5976       # Break only if it was the GNU/non-GNU ld that we prefer.
5977       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5978       *GNU* | *'with BFD'*)
5979         test "$with_gnu_ld" != no && break
5980         ;;
5981       *)
5982         test "$with_gnu_ld" != yes && break
5983         ;;
5984       esac
5985     fi
5986   done
5987   IFS="$lt_save_ifs"
5988 else
5989   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5990 fi
5991 fi
5992
5993 LD="$lt_cv_path_LD"
5994 if test -n "$LD"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5996 $as_echo "$LD" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6003 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6004 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6008 case `$LD -v 2>&1 </dev/null` in
6009 *GNU* | *'with BFD'*)
6010   lt_cv_prog_gnu_ld=yes
6011   ;;
6012 *)
6013   lt_cv_prog_gnu_ld=no
6014   ;;
6015 esac
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6018 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6019 with_gnu_ld=$lt_cv_prog_gnu_ld
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6030 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6031 if test "${lt_cv_path_NM+set}" = set; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   if test -n "$NM"; then
6035   # Let the user override the test.
6036   lt_cv_path_NM="$NM"
6037 else
6038   lt_nm_to_check="${ac_tool_prefix}nm"
6039   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6040     lt_nm_to_check="$lt_nm_to_check nm"
6041   fi
6042   for lt_tmp_nm in $lt_nm_to_check; do
6043     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6044     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6045       IFS="$lt_save_ifs"
6046       test -z "$ac_dir" && ac_dir=.
6047       tmp_nm="$ac_dir/$lt_tmp_nm"
6048       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6049         # Check to see if the nm accepts a BSD-compat flag.
6050         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6051         #   nm: unknown option "B" ignored
6052         # Tru64's nm complains that /dev/null is an invalid object file
6053         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6054         */dev/null* | *'Invalid file or object type'*)
6055           lt_cv_path_NM="$tmp_nm -B"
6056           break
6057           ;;
6058         *)
6059           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6060           */dev/null*)
6061             lt_cv_path_NM="$tmp_nm -p"
6062             break
6063             ;;
6064           *)
6065             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6066             continue # so that we can try to find one that supports BSD flags
6067             ;;
6068           esac
6069           ;;
6070         esac
6071       fi
6072     done
6073     IFS="$lt_save_ifs"
6074   done
6075   : ${lt_cv_path_NM=no}
6076 fi
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6079 $as_echo "$lt_cv_path_NM" >&6; }
6080 if test "$lt_cv_path_NM" != "no"; then
6081   NM="$lt_cv_path_NM"
6082 else
6083   # Didn't find any BSD compatible name lister, look for dumpbin.
6084   if test -n "$DUMPBIN"; then :
6085     # Let the user override the test.
6086   else
6087     if test -n "$ac_tool_prefix"; then
6088   for ac_prog in dumpbin "link -dump"
6089   do
6090     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   if test -n "$DUMPBIN"; then
6098   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105     for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112   done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 DUMPBIN=$ac_cv_prog_DUMPBIN
6118 if test -n "$DUMPBIN"; then
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6120 $as_echo "$DUMPBIN" >&6; }
6121 else
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126
6127     test -n "$DUMPBIN" && break
6128   done
6129 fi
6130 if test -z "$DUMPBIN"; then
6131   ac_ct_DUMPBIN=$DUMPBIN
6132   for ac_prog in dumpbin "link -dump"
6133 do
6134   # Extract the first word of "$ac_prog", so it can be a program name with args.
6135 set dummy $ac_prog; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   if test -n "$ac_ct_DUMPBIN"; then
6142   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149     for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156   done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6162 if test -n "$ac_ct_DUMPBIN"; then
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6164 $as_echo "$ac_ct_DUMPBIN" >&6; }
6165 else
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170
6171   test -n "$ac_ct_DUMPBIN" && break
6172 done
6173
6174   if test "x$ac_ct_DUMPBIN" = x; then
6175     DUMPBIN=":"
6176   else
6177     case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     DUMPBIN=$ac_ct_DUMPBIN
6184   fi
6185 fi
6186
6187     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6188     *COFF*)
6189       DUMPBIN="$DUMPBIN -symbols"
6190       ;;
6191     *)
6192       DUMPBIN=:
6193       ;;
6194     esac
6195   fi
6196
6197   if test "$DUMPBIN" != ":"; then
6198     NM="$DUMPBIN"
6199   fi
6200 fi
6201 test -z "$NM" && NM=nm
6202
6203
6204
6205
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6209 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6210 if test "${lt_cv_nm_interface+set}" = set; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   lt_cv_nm_interface="BSD nm"
6214   echo "int some_variable = 0;" > conftest.$ac_ext
6215   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6216   (eval "$ac_compile" 2>conftest.err)
6217   cat conftest.err >&5
6218   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6219   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6220   cat conftest.err >&5
6221   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6222   cat conftest.out >&5
6223   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6224     lt_cv_nm_interface="MS dumpbin"
6225   fi
6226   rm -f conftest*
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6229 $as_echo "$lt_cv_nm_interface" >&6; }
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6232 $as_echo_n "checking whether ln -s works... " >&6; }
6233 LN_S=$as_ln_s
6234 if test "$LN_S" = "ln -s"; then
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6236 $as_echo "yes" >&6; }
6237 else
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6239 $as_echo "no, using $LN_S" >&6; }
6240 fi
6241
6242 # find the maximum length of command line arguments
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6244 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6245 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248     i=0
6249   teststring="ABCD"
6250
6251   case $build_os in
6252   msdosdjgpp*)
6253     # On DJGPP, this test can blow up pretty badly due to problems in libc
6254     # (any single argument exceeding 2000 bytes causes a buffer overrun
6255     # during glob expansion).  Even if it were fixed, the result of this
6256     # check would be larger than it should be.
6257     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6258     ;;
6259
6260   gnu*)
6261     # Under GNU Hurd, this test is not required because there is
6262     # no limit to the length of command line arguments.
6263     # Libtool will interpret -1 as no limit whatsoever
6264     lt_cv_sys_max_cmd_len=-1;
6265     ;;
6266
6267   cygwin* | mingw* | cegcc*)
6268     # On Win9x/ME, this test blows up -- it succeeds, but takes
6269     # about 5 minutes as the teststring grows exponentially.
6270     # Worse, since 9x/ME are not pre-emptively multitasking,
6271     # you end up with a "frozen" computer, even though with patience
6272     # the test eventually succeeds (with a max line length of 256k).
6273     # Instead, let's just punt: use the minimum linelength reported by
6274     # all of the supported platforms: 8192 (on NT/2K/XP).
6275     lt_cv_sys_max_cmd_len=8192;
6276     ;;
6277
6278   mint*)
6279     # On MiNT this can take a long time and run out of memory.
6280     lt_cv_sys_max_cmd_len=8192;
6281     ;;
6282
6283   amigaos*)
6284     # On AmigaOS with pdksh, this test takes hours, literally.
6285     # So we just punt and use a minimum line length of 8192.
6286     lt_cv_sys_max_cmd_len=8192;
6287     ;;
6288
6289   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6290     # This has been around since 386BSD, at least.  Likely further.
6291     if test -x /sbin/sysctl; then
6292       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6293     elif test -x /usr/sbin/sysctl; then
6294       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6295     else
6296       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6297     fi
6298     # And add a safety zone
6299     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6300     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6301     ;;
6302
6303   interix*)
6304     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6305     lt_cv_sys_max_cmd_len=196608
6306     ;;
6307
6308   osf*)
6309     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6310     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6311     # nice to cause kernel panics so lets avoid the loop below.
6312     # First set a reasonable default.
6313     lt_cv_sys_max_cmd_len=16384
6314     #
6315     if test -x /sbin/sysconfig; then
6316       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6317         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6318       esac
6319     fi
6320     ;;
6321   sco3.2v5*)
6322     lt_cv_sys_max_cmd_len=102400
6323     ;;
6324   sysv5* | sco5v6* | sysv4.2uw2*)
6325     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6326     if test -n "$kargmax"; then
6327       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6328     else
6329       lt_cv_sys_max_cmd_len=32768
6330     fi
6331     ;;
6332   *)
6333     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6334     if test -n "$lt_cv_sys_max_cmd_len"; then
6335       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6336       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6337     else
6338       # Make teststring a little bigger before we do anything with it.
6339       # a 1K string should be a reasonable start.
6340       for i in 1 2 3 4 5 6 7 8 ; do
6341         teststring=$teststring$teststring
6342       done
6343       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6344       # If test is not a shell built-in, we'll probably end up computing a
6345       # maximum length that is only half of the actual maximum length, but
6346       # we can't tell.
6347       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6348                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6349               test $i != 17 # 1/2 MB should be enough
6350       do
6351         i=`expr $i + 1`
6352         teststring=$teststring$teststring
6353       done
6354       # Only check the string length outside the loop.
6355       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6356       teststring=
6357       # Add a significant safety factor because C++ compilers can tack on
6358       # massive amounts of additional arguments before passing them to the
6359       # linker.  It appears as though 1/2 is a usable value.
6360       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6361     fi
6362     ;;
6363   esac
6364
6365 fi
6366
6367 if test -n $lt_cv_sys_max_cmd_len ; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6369 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6372 $as_echo "none" >&6; }
6373 fi
6374 max_cmd_len=$lt_cv_sys_max_cmd_len
6375
6376
6377
6378
6379
6380
6381 : ${CP="cp -f"}
6382 : ${MV="mv -f"}
6383 : ${RM="rm -f"}
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6386 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6387 # Try some XSI features
6388 xsi_shell=no
6389 ( _lt_dummy="a/b/c"
6390   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6391       = c,a/b,, \
6392     && eval 'test $(( 1 + 1 )) -eq 2 \
6393     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6394   && xsi_shell=yes
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6396 $as_echo "$xsi_shell" >&6; }
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6400 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6401 lt_shell_append=no
6402 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6403     >/dev/null 2>&1 \
6404   && lt_shell_append=yes
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6406 $as_echo "$lt_shell_append" >&6; }
6407
6408
6409 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6410   lt_unset=unset
6411 else
6412   lt_unset=false
6413 fi
6414
6415
6416
6417
6418
6419 # test EBCDIC or ASCII
6420 case `echo X|tr X '\101'` in
6421  A) # ASCII based system
6422     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6423   lt_SP2NL='tr \040 \012'
6424   lt_NL2SP='tr \015\012 \040\040'
6425   ;;
6426  *) # EBCDIC based system
6427   lt_SP2NL='tr \100 \n'
6428   lt_NL2SP='tr \r\n \100\100'
6429   ;;
6430 esac
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6441 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6442 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   lt_cv_ld_reload_flag='-r'
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6448 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6449 reload_flag=$lt_cv_ld_reload_flag
6450 case $reload_flag in
6451 "" | " "*) ;;
6452 *) reload_flag=" $reload_flag" ;;
6453 esac
6454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6455 case $host_os in
6456   darwin*)
6457     if test "$GCC" = yes; then
6458       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6459     else
6460       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6461     fi
6462     ;;
6463 esac
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473 if test -n "$ac_tool_prefix"; then
6474   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$OBJDUMP"; then
6482   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 OBJDUMP=$ac_cv_prog_OBJDUMP
6502 if test -n "$OBJDUMP"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6504 $as_echo "$OBJDUMP" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511 fi
6512 if test -z "$ac_cv_prog_OBJDUMP"; then
6513   ac_ct_OBJDUMP=$OBJDUMP
6514   # Extract the first word of "objdump", so it can be a program name with args.
6515 set dummy objdump; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   if test -n "$ac_ct_OBJDUMP"; then
6522   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536   done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6542 if test -n "$ac_ct_OBJDUMP"; then
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6544 $as_echo "$ac_ct_OBJDUMP" >&6; }
6545 else
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550   if test "x$ac_ct_OBJDUMP" = x; then
6551     OBJDUMP="false"
6552   else
6553     case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6558 esac
6559     OBJDUMP=$ac_ct_OBJDUMP
6560   fi
6561 else
6562   OBJDUMP="$ac_cv_prog_OBJDUMP"
6563 fi
6564
6565 test -z "$OBJDUMP" && OBJDUMP=objdump
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6576 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6577 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   lt_cv_file_magic_cmd='$MAGIC_CMD'
6581 lt_cv_file_magic_test_file=
6582 lt_cv_deplibs_check_method='unknown'
6583 # Need to set the preceding variable on all platforms that support
6584 # interlibrary dependencies.
6585 # 'none' -- dependencies not supported.
6586 # `unknown' -- same as none, but documents that we really don't know.
6587 # 'pass_all' -- all dependencies passed with no checks.
6588 # 'test_compile' -- check by making test program.
6589 # 'file_magic [[regex]]' -- check by looking for files in library path
6590 # which responds to the $file_magic_cmd with a given extended regex.
6591 # If you have `file' or equivalent on your system and you're not sure
6592 # whether `pass_all' will *always* work, you probably want this one.
6593
6594 case $host_os in
6595 aix[4-9]*)
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 beos*)
6600   lt_cv_deplibs_check_method=pass_all
6601   ;;
6602
6603 bsdi[45]*)
6604   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6605   lt_cv_file_magic_cmd='/usr/bin/file -L'
6606   lt_cv_file_magic_test_file=/shlib/libc.so
6607   ;;
6608
6609 cygwin*)
6610   # func_win32_libid is a shell function defined in ltmain.sh
6611   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6612   lt_cv_file_magic_cmd='func_win32_libid'
6613   ;;
6614
6615 mingw* | pw32*)
6616   # Base MSYS/MinGW do not provide the 'file' command needed by
6617   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6618   # unless we find 'file', for example because we are cross-compiling.
6619   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6620   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6621     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6622     lt_cv_file_magic_cmd='func_win32_libid'
6623   else
6624     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6625     lt_cv_file_magic_cmd='$OBJDUMP -f'
6626   fi
6627   ;;
6628
6629 cegcc*)
6630   # use the weaker test based on 'objdump'. See mingw*.
6631   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6632   lt_cv_file_magic_cmd='$OBJDUMP -f'
6633   ;;
6634
6635 darwin* | rhapsody*)
6636   lt_cv_deplibs_check_method=pass_all
6637   ;;
6638
6639 freebsd* | dragonfly*)
6640   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6641     case $host_cpu in
6642     i*86 )
6643       # Not sure whether the presence of OpenBSD here was a mistake.
6644       # Let's accept both of them until this is cleared up.
6645       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6646       lt_cv_file_magic_cmd=/usr/bin/file
6647       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6648       ;;
6649     esac
6650   else
6651     lt_cv_deplibs_check_method=pass_all
6652   fi
6653   ;;
6654
6655 gnu*)
6656   lt_cv_deplibs_check_method=pass_all
6657   ;;
6658
6659 haiku*)
6660   lt_cv_deplibs_check_method=pass_all
6661   ;;
6662
6663 hpux10.20* | hpux11*)
6664   lt_cv_file_magic_cmd=/usr/bin/file
6665   case $host_cpu in
6666   ia64*)
6667     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6668     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6669     ;;
6670   hppa*64*)
6671     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]'
6672     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6673     ;;
6674   *)
6675     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6676     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6677     ;;
6678   esac
6679   ;;
6680
6681 interix[3-9]*)
6682   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6683   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6684   ;;
6685
6686 irix5* | irix6* | nonstopux*)
6687   case $LD in
6688   *-32|*"-32 ") libmagic=32-bit;;
6689   *-n32|*"-n32 ") libmagic=N32;;
6690   *-64|*"-64 ") libmagic=64-bit;;
6691   *) libmagic=never-match;;
6692   esac
6693   lt_cv_deplibs_check_method=pass_all
6694   ;;
6695
6696 # This must be Linux ELF.
6697 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6698   lt_cv_deplibs_check_method=pass_all
6699   ;;
6700
6701 netbsd*)
6702   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6703     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6704   else
6705     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6706   fi
6707   ;;
6708
6709 newos6*)
6710   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6711   lt_cv_file_magic_cmd=/usr/bin/file
6712   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6713   ;;
6714
6715 *nto* | *qnx*)
6716   lt_cv_deplibs_check_method=pass_all
6717   ;;
6718
6719 openbsd*)
6720   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6721     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6722   else
6723     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6724   fi
6725   ;;
6726
6727 osf3* | osf4* | osf5*)
6728   lt_cv_deplibs_check_method=pass_all
6729   ;;
6730
6731 rdos*)
6732   lt_cv_deplibs_check_method=pass_all
6733   ;;
6734
6735 solaris*)
6736   lt_cv_deplibs_check_method=pass_all
6737   ;;
6738
6739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6740   lt_cv_deplibs_check_method=pass_all
6741   ;;
6742
6743 sysv4 | sysv4.3*)
6744   case $host_vendor in
6745   motorola)
6746     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]'
6747     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6748     ;;
6749   ncr)
6750     lt_cv_deplibs_check_method=pass_all
6751     ;;
6752   sequent)
6753     lt_cv_file_magic_cmd='/bin/file'
6754     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6755     ;;
6756   sni)
6757     lt_cv_file_magic_cmd='/bin/file'
6758     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6759     lt_cv_file_magic_test_file=/lib/libc.so
6760     ;;
6761   siemens)
6762     lt_cv_deplibs_check_method=pass_all
6763     ;;
6764   pc)
6765     lt_cv_deplibs_check_method=pass_all
6766     ;;
6767   esac
6768   ;;
6769
6770 tpf*)
6771   lt_cv_deplibs_check_method=pass_all
6772   ;;
6773 esac
6774
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6777 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6778 file_magic_cmd=$lt_cv_file_magic_cmd
6779 deplibs_check_method=$lt_cv_deplibs_check_method
6780 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793 if test -n "$ac_tool_prefix"; then
6794   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}ar; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if test "${ac_cv_prog_AR+set}" = set; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   if test -n "$AR"; then
6802   ac_cv_prog_AR="$AR" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809     for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_prog_AR="${ac_tool_prefix}ar"
6812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816   done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 AR=$ac_cv_prog_AR
6822 if test -n "$AR"; then
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6824 $as_echo "$AR" >&6; }
6825 else
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_AR"; then
6833   ac_ct_AR=$AR
6834   # Extract the first word of "ar", so it can be a program name with args.
6835 set dummy ar; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$ac_ct_AR"; then
6842   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851     ac_cv_prog_ac_ct_AR="ar"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6862 if test -n "$ac_ct_AR"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6864 $as_echo "$ac_ct_AR" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870   if test "x$ac_ct_AR" = x; then
6871     AR="false"
6872   else
6873     case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879     AR=$ac_ct_AR
6880   fi
6881 else
6882   AR="$ac_cv_prog_AR"
6883 fi
6884
6885 test -z "$AR" && AR=ar
6886 test -z "$AR_FLAGS" && AR_FLAGS=cru
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898 if test -n "$ac_tool_prefix"; then
6899   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}strip; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_STRIP+set}" = set; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   if test -n "$STRIP"; then
6907   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921   done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 STRIP=$ac_cv_prog_STRIP
6927 if test -n "$STRIP"; then
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6929 $as_echo "$STRIP" >&6; }
6930 else
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935
6936 fi
6937 if test -z "$ac_cv_prog_STRIP"; then
6938   ac_ct_STRIP=$STRIP
6939   # Extract the first word of "strip", so it can be a program name with args.
6940 set dummy strip; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6944   $as_echo_n "(cached) " >&6
6945 else
6946   if test -n "$ac_ct_STRIP"; then
6947   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954     for ac_exec_ext in '' $ac_executable_extensions; do
6955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956     ac_cv_prog_ac_ct_STRIP="strip"
6957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961   done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6967 if test -n "$ac_ct_STRIP"; then
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6969 $as_echo "$ac_ct_STRIP" >&6; }
6970 else
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975   if test "x$ac_ct_STRIP" = x; then
6976     STRIP=":"
6977   else
6978     case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984     STRIP=$ac_ct_STRIP
6985   fi
6986 else
6987   STRIP="$ac_cv_prog_STRIP"
6988 fi
6989
6990 test -z "$STRIP" && STRIP=:
6991
6992
6993
6994
6995
6996
6997 if test -n "$ac_tool_prefix"; then
6998   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   if test -n "$RANLIB"; then
7006   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013     for ac_exec_ext in '' $ac_executable_extensions; do
7014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020   done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 RANLIB=$ac_cv_prog_RANLIB
7026 if test -n "$RANLIB"; then
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7028 $as_echo "$RANLIB" >&6; }
7029 else
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033
7034
7035 fi
7036 if test -z "$ac_cv_prog_RANLIB"; then
7037   ac_ct_RANLIB=$RANLIB
7038   # Extract the first word of "ranlib", so it can be a program name with args.
7039 set dummy ranlib; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   if test -n "$ac_ct_RANLIB"; then
7046   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053     for ac_exec_ext in '' $ac_executable_extensions; do
7054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055     ac_cv_prog_ac_ct_RANLIB="ranlib"
7056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060   done
7061 IFS=$as_save_IFS
7062
7063 fi
7064 fi
7065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7066 if test -n "$ac_ct_RANLIB"; then
7067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7068 $as_echo "$ac_ct_RANLIB" >&6; }
7069 else
7070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7072 fi
7073
7074   if test "x$ac_ct_RANLIB" = x; then
7075     RANLIB=":"
7076   else
7077     case $cross_compiling:$ac_tool_warned in
7078 yes:)
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081 ac_tool_warned=yes ;;
7082 esac
7083     RANLIB=$ac_ct_RANLIB
7084   fi
7085 else
7086   RANLIB="$ac_cv_prog_RANLIB"
7087 fi
7088
7089 test -z "$RANLIB" && RANLIB=:
7090
7091
7092
7093
7094
7095
7096 # Determine commands to create old-style static archives.
7097 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7098 old_postinstall_cmds='chmod 644 $oldlib'
7099 old_postuninstall_cmds=
7100
7101 if test -n "$RANLIB"; then
7102   case $host_os in
7103   openbsd*)
7104     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7105     ;;
7106   *)
7107     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7108     ;;
7109   esac
7110   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7111 fi
7112
7113 case $host_os in
7114   darwin*)
7115     lock_old_archive_extraction=yes ;;
7116   *)
7117     lock_old_archive_extraction=no ;;
7118 esac
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 # If no C compiler was specified, use CC.
7159 LTCC=${LTCC-"$CC"}
7160
7161 # If no C compiler flags were specified, use CFLAGS.
7162 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7163
7164 # Allow CC to be a program name with arguments.
7165 compiler=$CC
7166
7167
7168 # Check for command to grab the raw symbol name followed by C symbol from nm.
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7170 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7171 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174
7175 # These are sane defaults that work on at least a few old systems.
7176 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7177
7178 # Character class describing NM global symbol codes.
7179 symcode='[BCDEGRST]'
7180
7181 # Regexp to match symbols that can be accessed directly from C.
7182 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7183
7184 # Define system-specific variables.
7185 case $host_os in
7186 aix*)
7187   symcode='[BCDT]'
7188   ;;
7189 cygwin* | mingw* | pw32* | cegcc*)
7190   symcode='[ABCDGISTW]'
7191   ;;
7192 hpux*)
7193   if test "$host_cpu" = ia64; then
7194     symcode='[ABCDEGRST]'
7195   fi
7196   ;;
7197 irix* | nonstopux*)
7198   symcode='[BCDEGRST]'
7199   ;;
7200 osf*)
7201   symcode='[BCDEGQRST]'
7202   ;;
7203 solaris*)
7204   symcode='[BDRT]'
7205   ;;
7206 sco3.2v5*)
7207   symcode='[DT]'
7208   ;;
7209 sysv4.2uw2*)
7210   symcode='[DT]'
7211   ;;
7212 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7213   symcode='[ABDT]'
7214   ;;
7215 sysv4)
7216   symcode='[DFNSTU]'
7217   ;;
7218 esac
7219
7220 # If we're using GNU nm, then use its standard symbol codes.
7221 case `$NM -V 2>&1` in
7222 *GNU* | *'with BFD'*)
7223   symcode='[ABCDGIRSTW]' ;;
7224 esac
7225
7226 # Transform an extracted symbol line into a proper C declaration.
7227 # Some systems (esp. on ia64) link data and code symbols differently,
7228 # so use this general approach.
7229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7230
7231 # Transform an extracted symbol line into symbol name and symbol address
7232 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7233 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'"
7234
7235 # Handle CRLF in mingw tool chain
7236 opt_cr=
7237 case $build_os in
7238 mingw*)
7239   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7240   ;;
7241 esac
7242
7243 # Try without a prefix underscore, then with it.
7244 for ac_symprfx in "" "_"; do
7245
7246   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7247   symxfrm="\\1 $ac_symprfx\\2 \\2"
7248
7249   # Write the raw and C identifiers.
7250   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7251     # Fake it for dumpbin and say T for any non-static function
7252     # and D for any global variable.
7253     # Also find C++ and __fastcall symbols from MSVC++,
7254     # which start with @ or ?.
7255     lt_cv_sys_global_symbol_pipe="$AWK '"\
7256 "     {last_section=section; section=\$ 3};"\
7257 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7258 "     \$ 0!~/External *\|/{next};"\
7259 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7260 "     {if(hide[section]) next};"\
7261 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7262 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7263 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7264 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7265 "     ' prfx=^$ac_symprfx"
7266   else
7267     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7268   fi
7269
7270   # Check to see that the pipe works correctly.
7271   pipe_works=no
7272
7273   rm -f conftest*
7274   cat > conftest.$ac_ext <<_LT_EOF
7275 #ifdef __cplusplus
7276 extern "C" {
7277 #endif
7278 char nm_test_var;
7279 void nm_test_func(void);
7280 void nm_test_func(void){}
7281 #ifdef __cplusplus
7282 }
7283 #endif
7284 int main(){nm_test_var='a';nm_test_func();return(0);}
7285 _LT_EOF
7286
7287   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288   (eval $ac_compile) 2>&5
7289   ac_status=$?
7290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291   test $ac_status = 0; }; then
7292     # Now try to grab the symbols.
7293     nlist=conftest.nm
7294     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7295   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7296   ac_status=$?
7297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298   test $ac_status = 0; } && test -s "$nlist"; then
7299       # Try sorting and uniquifying the output.
7300       if sort "$nlist" | uniq > "$nlist"T; then
7301         mv -f "$nlist"T "$nlist"
7302       else
7303         rm -f "$nlist"T
7304       fi
7305
7306       # Make sure that we snagged all the symbols we need.
7307       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7308         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7309           cat <<_LT_EOF > conftest.$ac_ext
7310 #ifdef __cplusplus
7311 extern "C" {
7312 #endif
7313
7314 _LT_EOF
7315           # Now generate the symbol file.
7316           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7317
7318           cat <<_LT_EOF >> conftest.$ac_ext
7319
7320 /* The mapping between symbol names and symbols.  */
7321 const struct {
7322   const char *name;
7323   void       *address;
7324 }
7325 lt__PROGRAM__LTX_preloaded_symbols[] =
7326 {
7327   { "@PROGRAM@", (void *) 0 },
7328 _LT_EOF
7329           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7330           cat <<\_LT_EOF >> conftest.$ac_ext
7331   {0, (void *) 0}
7332 };
7333
7334 /* This works around a problem in FreeBSD linker */
7335 #ifdef FREEBSD_WORKAROUND
7336 static const void *lt_preloaded_setup() {
7337   return lt__PROGRAM__LTX_preloaded_symbols;
7338 }
7339 #endif
7340
7341 #ifdef __cplusplus
7342 }
7343 #endif
7344 _LT_EOF
7345           # Now try linking the two files.
7346           mv conftest.$ac_objext conftstm.$ac_objext
7347           lt_save_LIBS="$LIBS"
7348           lt_save_CFLAGS="$CFLAGS"
7349           LIBS="conftstm.$ac_objext"
7350           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7351           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7352   (eval $ac_link) 2>&5
7353   ac_status=$?
7354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7356             pipe_works=yes
7357           fi
7358           LIBS="$lt_save_LIBS"
7359           CFLAGS="$lt_save_CFLAGS"
7360         else
7361           echo "cannot find nm_test_func in $nlist" >&5
7362         fi
7363       else
7364         echo "cannot find nm_test_var in $nlist" >&5
7365       fi
7366     else
7367       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7368     fi
7369   else
7370     echo "$progname: failed program was:" >&5
7371     cat conftest.$ac_ext >&5
7372   fi
7373   rm -rf conftest* conftst*
7374
7375   # Do not use the global_symbol_pipe unless it works.
7376   if test "$pipe_works" = yes; then
7377     break
7378   else
7379     lt_cv_sys_global_symbol_pipe=
7380   fi
7381 done
7382
7383 fi
7384
7385 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7386   lt_cv_sys_global_symbol_to_cdecl=
7387 fi
7388 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7390 $as_echo "failed" >&6; }
7391 else
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7393 $as_echo "ok" >&6; }
7394 fi
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 # Check whether --enable-libtool-lock was given.
7418 if test "${enable_libtool_lock+set}" = set; then :
7419   enableval=$enable_libtool_lock;
7420 fi
7421
7422 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7423
7424 # Some flags need to be propagated to the compiler or linker for good
7425 # libtool support.
7426 case $host in
7427 ia64-*-hpux*)
7428   # Find out which ABI we are using.
7429   echo 'int i;' > conftest.$ac_ext
7430   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7431   (eval $ac_compile) 2>&5
7432   ac_status=$?
7433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434   test $ac_status = 0; }; then
7435     case `/usr/bin/file conftest.$ac_objext` in
7436       *ELF-32*)
7437         HPUX_IA64_MODE="32"
7438         ;;
7439       *ELF-64*)
7440         HPUX_IA64_MODE="64"
7441         ;;
7442     esac
7443   fi
7444   rm -rf conftest*
7445   ;;
7446 *-*-irix6*)
7447   # Find out which ABI we are using.
7448   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7449   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7450   (eval $ac_compile) 2>&5
7451   ac_status=$?
7452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453   test $ac_status = 0; }; then
7454     if test "$lt_cv_prog_gnu_ld" = yes; then
7455       case `/usr/bin/file conftest.$ac_objext` in
7456         *32-bit*)
7457           LD="${LD-ld} -melf32bsmip"
7458           ;;
7459         *N32*)
7460           LD="${LD-ld} -melf32bmipn32"
7461           ;;
7462         *64-bit*)
7463           LD="${LD-ld} -melf64bmip"
7464         ;;
7465       esac
7466     else
7467       case `/usr/bin/file conftest.$ac_objext` in
7468         *32-bit*)
7469           LD="${LD-ld} -32"
7470           ;;
7471         *N32*)
7472           LD="${LD-ld} -n32"
7473           ;;
7474         *64-bit*)
7475           LD="${LD-ld} -64"
7476           ;;
7477       esac
7478     fi
7479   fi
7480   rm -rf conftest*
7481   ;;
7482
7483 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7484 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7485   # Find out which ABI we are using.
7486   echo 'int i;' > conftest.$ac_ext
7487   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7488   (eval $ac_compile) 2>&5
7489   ac_status=$?
7490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7491   test $ac_status = 0; }; then
7492     case `/usr/bin/file conftest.o` in
7493       *32-bit*)
7494         case $host in
7495           x86_64-*kfreebsd*-gnu)
7496             LD="${LD-ld} -m elf_i386_fbsd"
7497             ;;
7498           x86_64-*linux*)
7499             case `/usr/bin/file conftest.o` in
7500               *x86-64*)
7501                 LD="${LD-ld} -m elf32_x86_64"
7502                 ;;
7503               *)
7504                 LD="${LD-ld} -m elf_i386"
7505                 ;;
7506             esac
7507             ;;
7508           powerpc64le-*linux*)
7509             LD="${LD-ld} -m elf32lppclinux"
7510             ;;
7511           powerpc64-*linux*)
7512             LD="${LD-ld} -m elf32ppclinux"
7513             ;;
7514           s390x-*linux*)
7515             LD="${LD-ld} -m elf_s390"
7516             ;;
7517           sparc64-*linux*)
7518             LD="${LD-ld} -m elf32_sparc"
7519             ;;
7520         esac
7521         ;;
7522       *64-bit*)
7523         case $host in
7524           x86_64-*kfreebsd*-gnu)
7525             LD="${LD-ld} -m elf_x86_64_fbsd"
7526             ;;
7527           x86_64-*linux*)
7528             LD="${LD-ld} -m elf_x86_64"
7529             ;;
7530           powerpcle-*linux*)
7531             LD="${LD-ld} -m elf64lppc"
7532             ;;
7533           powerpc-*linux*)
7534             LD="${LD-ld} -m elf64ppc"
7535             ;;
7536           s390*-*linux*|s390*-*tpf*)
7537             LD="${LD-ld} -m elf64_s390"
7538             ;;
7539           sparc*-*linux*)
7540             LD="${LD-ld} -m elf64_sparc"
7541             ;;
7542         esac
7543         ;;
7544     esac
7545   fi
7546   rm -rf conftest*
7547   ;;
7548
7549 *-*-sco3.2v5*)
7550   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7551   SAVE_CFLAGS="$CFLAGS"
7552   CFLAGS="$CFLAGS -belf"
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7554 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7555 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563
7564      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h.  */
7566
7567 int
7568 main ()
7569 {
7570
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 if ac_fn_c_try_link "$LINENO"; then :
7576   lt_cv_cc_needs_belf=yes
7577 else
7578   lt_cv_cc_needs_belf=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext \
7581     conftest$ac_exeext conftest.$ac_ext
7582      ac_ext=c
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7590 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7591   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7592     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7593     CFLAGS="$SAVE_CFLAGS"
7594   fi
7595   ;;
7596 sparc*-*solaris*)
7597   # Find out which ABI we are using.
7598   echo 'int i;' > conftest.$ac_ext
7599   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7600   (eval $ac_compile) 2>&5
7601   ac_status=$?
7602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603   test $ac_status = 0; }; then
7604     case `/usr/bin/file conftest.o` in
7605     *64-bit*)
7606       case $lt_cv_prog_gnu_ld in
7607       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7608       *)
7609         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7610           LD="${LD-ld} -64"
7611         fi
7612         ;;
7613       esac
7614       ;;
7615     esac
7616   fi
7617   rm -rf conftest*
7618   ;;
7619 esac
7620
7621 need_locks="$enable_libtool_lock"
7622
7623
7624   case $host_os in
7625     rhapsody* | darwin*)
7626     if test -n "$ac_tool_prefix"; then
7627   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7628 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   if test -n "$DSYMUTIL"; then
7635   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642     for ac_exec_ext in '' $ac_executable_extensions; do
7643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649   done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7655 if test -n "$DSYMUTIL"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7657 $as_echo "$DSYMUTIL" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663
7664 fi
7665 if test -z "$ac_cv_prog_DSYMUTIL"; then
7666   ac_ct_DSYMUTIL=$DSYMUTIL
7667   # Extract the first word of "dsymutil", so it can be a program name with args.
7668 set dummy dsymutil; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7672   $as_echo_n "(cached) " >&6
7673 else
7674   if test -n "$ac_ct_DSYMUTIL"; then
7675   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682     for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689   done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7695 if test -n "$ac_ct_DSYMUTIL"; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7697 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703   if test "x$ac_ct_DSYMUTIL" = x; then
7704     DSYMUTIL=":"
7705   else
7706     case $cross_compiling:$ac_tool_warned in
7707 yes:)
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710 ac_tool_warned=yes ;;
7711 esac
7712     DSYMUTIL=$ac_ct_DSYMUTIL
7713   fi
7714 else
7715   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7716 fi
7717
7718     if test -n "$ac_tool_prefix"; then
7719   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   if test -n "$NMEDIT"; then
7727   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734     for ac_exec_ext in '' $ac_executable_extensions; do
7735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741   done
7742 IFS=$as_save_IFS
7743
7744 fi
7745 fi
7746 NMEDIT=$ac_cv_prog_NMEDIT
7747 if test -n "$NMEDIT"; then
7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7749 $as_echo "$NMEDIT" >&6; }
7750 else
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7753 fi
7754
7755
7756 fi
7757 if test -z "$ac_cv_prog_NMEDIT"; then
7758   ac_ct_NMEDIT=$NMEDIT
7759   # Extract the first word of "nmedit", so it can be a program name with args.
7760 set dummy nmedit; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766   if test -n "$ac_ct_NMEDIT"; then
7767   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774     for ac_exec_ext in '' $ac_executable_extensions; do
7775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781   done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7787 if test -n "$ac_ct_NMEDIT"; then
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7789 $as_echo "$ac_ct_NMEDIT" >&6; }
7790 else
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795   if test "x$ac_ct_NMEDIT" = x; then
7796     NMEDIT=":"
7797   else
7798     case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804     NMEDIT=$ac_ct_NMEDIT
7805   fi
7806 else
7807   NMEDIT="$ac_cv_prog_NMEDIT"
7808 fi
7809
7810     if test -n "$ac_tool_prefix"; then
7811   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7812 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_LIPO+set}" = set; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   if test -n "$LIPO"; then
7819   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826     for ac_exec_ext in '' $ac_executable_extensions; do
7827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833   done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 LIPO=$ac_cv_prog_LIPO
7839 if test -n "$LIPO"; then
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7841 $as_echo "$LIPO" >&6; }
7842 else
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847
7848 fi
7849 if test -z "$ac_cv_prog_LIPO"; then
7850   ac_ct_LIPO=$LIPO
7851   # Extract the first word of "lipo", so it can be a program name with args.
7852 set dummy lipo; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   if test -n "$ac_ct_LIPO"; then
7859   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866     for ac_exec_ext in '' $ac_executable_extensions; do
7867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868     ac_cv_prog_ac_ct_LIPO="lipo"
7869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870     break 2
7871   fi
7872 done
7873   done
7874 IFS=$as_save_IFS
7875
7876 fi
7877 fi
7878 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7879 if test -n "$ac_ct_LIPO"; then
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7881 $as_echo "$ac_ct_LIPO" >&6; }
7882 else
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887   if test "x$ac_ct_LIPO" = x; then
7888     LIPO=":"
7889   else
7890     case $cross_compiling:$ac_tool_warned in
7891 yes:)
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894 ac_tool_warned=yes ;;
7895 esac
7896     LIPO=$ac_ct_LIPO
7897   fi
7898 else
7899   LIPO="$ac_cv_prog_LIPO"
7900 fi
7901
7902     if test -n "$ac_tool_prefix"; then
7903   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}otool; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   if test -n "$OTOOL"; then
7911   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916   IFS=$as_save_IFS
7917   test -z "$as_dir" && as_dir=.
7918     for ac_exec_ext in '' $ac_executable_extensions; do
7919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925   done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 OTOOL=$ac_cv_prog_OTOOL
7931 if test -n "$OTOOL"; then
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7933 $as_echo "$OTOOL" >&6; }
7934 else
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939
7940 fi
7941 if test -z "$ac_cv_prog_OTOOL"; then
7942   ac_ct_OTOOL=$OTOOL
7943   # Extract the first word of "otool", so it can be a program name with args.
7944 set dummy otool; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$ac_ct_OTOOL"; then
7951   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960     ac_cv_prog_ac_ct_OTOOL="otool"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7971 if test -n "$ac_ct_OTOOL"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7973 $as_echo "$ac_ct_OTOOL" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979   if test "x$ac_ct_OTOOL" = x; then
7980     OTOOL=":"
7981   else
7982     case $cross_compiling:$ac_tool_warned in
7983 yes:)
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7987 esac
7988     OTOOL=$ac_ct_OTOOL
7989   fi
7990 else
7991   OTOOL="$ac_cv_prog_OTOOL"
7992 fi
7993
7994     if test -n "$ac_tool_prefix"; then
7995   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7996 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   if test -n "$OTOOL64"; then
8003   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010     for ac_exec_ext in '' $ac_executable_extensions; do
8011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017   done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 OTOOL64=$ac_cv_prog_OTOOL64
8023 if test -n "$OTOOL64"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8025 $as_echo "$OTOOL64" >&6; }
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032 fi
8033 if test -z "$ac_cv_prog_OTOOL64"; then
8034   ac_ct_OTOOL64=$OTOOL64
8035   # Extract the first word of "otool64", so it can be a program name with args.
8036 set dummy otool64; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   if test -n "$ac_ct_OTOOL64"; then
8043   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052     ac_cv_prog_ac_ct_OTOOL64="otool64"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8063 if test -n "$ac_ct_OTOOL64"; then
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8065 $as_echo "$ac_ct_OTOOL64" >&6; }
8066 else
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070
8071   if test "x$ac_ct_OTOOL64" = x; then
8072     OTOOL64=":"
8073   else
8074     case $cross_compiling:$ac_tool_warned in
8075 yes:)
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078 ac_tool_warned=yes ;;
8079 esac
8080     OTOOL64=$ac_ct_OTOOL64
8081   fi
8082 else
8083   OTOOL64="$ac_cv_prog_OTOOL64"
8084 fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8113 $as_echo_n "checking for -single_module linker flag... " >&6; }
8114 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   lt_cv_apple_cc_single_mod=no
8118       if test -z "${LT_MULTI_MODULE}"; then
8119         # By default we will add the -single_module flag. You can override
8120         # by either setting the environment variable LT_MULTI_MODULE
8121         # non-empty at configure time, or by adding -multi_module to the
8122         # link flags.
8123         rm -rf libconftest.dylib*
8124         echo "int foo(void){return 1;}" > conftest.c
8125         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8126 -dynamiclib -Wl,-single_module conftest.c" >&5
8127         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8128           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8129         _lt_result=$?
8130         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8131           lt_cv_apple_cc_single_mod=yes
8132         else
8133           cat conftest.err >&5
8134         fi
8135         rm -rf libconftest.dylib*
8136         rm -f conftest.*
8137       fi
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8140 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8142 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8143 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146   lt_cv_ld_exported_symbols_list=no
8147       save_LDFLAGS=$LDFLAGS
8148       echo "_main" > conftest.sym
8149       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h.  */
8152
8153 int
8154 main ()
8155 {
8156
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162   lt_cv_ld_exported_symbols_list=yes
8163 else
8164   lt_cv_ld_exported_symbols_list=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext \
8167     conftest$ac_exeext conftest.$ac_ext
8168         LDFLAGS="$save_LDFLAGS"
8169
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8172 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8174 $as_echo_n "checking for -force_load linker flag... " >&6; }
8175 if test "${lt_cv_ld_force_load+set}" = set; then :
8176   $as_echo_n "(cached) " >&6
8177 else
8178   lt_cv_ld_force_load=no
8179       cat > conftest.c << _LT_EOF
8180 int forced_loaded() { return 2;}
8181 _LT_EOF
8182       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8183       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8184       echo "$AR cru libconftest.a conftest.o" >&5
8185       $AR cru libconftest.a conftest.o 2>&5
8186       cat > conftest.c << _LT_EOF
8187 int main() { return 0;}
8188 _LT_EOF
8189       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8190       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8191       _lt_result=$?
8192       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8193         lt_cv_ld_force_load=yes
8194       else
8195         cat conftest.err >&5
8196       fi
8197         rm -f conftest.err libconftest.a conftest conftest.c
8198         rm -rf conftest.dSYM
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8202 $as_echo "$lt_cv_ld_force_load" >&6; }
8203     case $host_os in
8204     rhapsody* | darwin1.[012])
8205       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8206     darwin1.*)
8207       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8208     darwin*) # darwin 5.x on
8209       # if running on 10.5 or later, the deployment target defaults
8210       # to the OS version, if on x86, and 10.4, the deployment
8211       # target defaults to 10.4. Don't you love it?
8212       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8213         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8214           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8215         10.[012][,.]*)
8216           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8217         10.*)
8218           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8219       esac
8220     ;;
8221   esac
8222     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8223       _lt_dar_single_mod='$single_module'
8224     fi
8225     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8226       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8227     else
8228       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8229     fi
8230     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8231       _lt_dsymutil='~$DSYMUTIL $lib || :'
8232     else
8233       _lt_dsymutil=
8234     fi
8235     ;;
8236   esac
8237
8238 for ac_header in dlfcn.h
8239 do :
8240   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8241 "
8242 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8243   cat >>confdefs.h <<_ACEOF
8244 #define HAVE_DLFCN_H 1
8245 _ACEOF
8246
8247 fi
8248
8249 done
8250
8251
8252
8253
8254
8255
8256 # Set options
8257
8258
8259
8260         enable_dlopen=no
8261
8262
8263   enable_win32_dll=no
8264
8265
8266             # Check whether --enable-shared was given.
8267 if test "${enable_shared+set}" = set; then :
8268   enableval=$enable_shared; p=${PACKAGE-default}
8269     case $enableval in
8270     yes) enable_shared=yes ;;
8271     no) enable_shared=no ;;
8272     *)
8273       enable_shared=no
8274       # Look at the argument we got.  We use all the common list separators.
8275       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276       for pkg in $enableval; do
8277         IFS="$lt_save_ifs"
8278         if test "X$pkg" = "X$p"; then
8279           enable_shared=yes
8280         fi
8281       done
8282       IFS="$lt_save_ifs"
8283       ;;
8284     esac
8285 else
8286   enable_shared=yes
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297   # Check whether --enable-static was given.
8298 if test "${enable_static+set}" = set; then :
8299   enableval=$enable_static; p=${PACKAGE-default}
8300     case $enableval in
8301     yes) enable_static=yes ;;
8302     no) enable_static=no ;;
8303     *)
8304      enable_static=no
8305       # Look at the argument we got.  We use all the common list separators.
8306       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307       for pkg in $enableval; do
8308         IFS="$lt_save_ifs"
8309         if test "X$pkg" = "X$p"; then
8310           enable_static=yes
8311         fi
8312       done
8313       IFS="$lt_save_ifs"
8314       ;;
8315     esac
8316 else
8317   enable_static=yes
8318 fi
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329 # Check whether --with-pic was given.
8330 if test "${with_pic+set}" = set; then :
8331   withval=$with_pic; pic_mode="$withval"
8332 else
8333   pic_mode=default
8334 fi
8335
8336
8337 test -z "$pic_mode" && pic_mode=default
8338
8339
8340
8341
8342
8343
8344
8345   # Check whether --enable-fast-install was given.
8346 if test "${enable_fast_install+set}" = set; then :
8347   enableval=$enable_fast_install; p=${PACKAGE-default}
8348     case $enableval in
8349     yes) enable_fast_install=yes ;;
8350     no) enable_fast_install=no ;;
8351     *)
8352       enable_fast_install=no
8353       # Look at the argument we got.  We use all the common list separators.
8354       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8355       for pkg in $enableval; do
8356         IFS="$lt_save_ifs"
8357         if test "X$pkg" = "X$p"; then
8358           enable_fast_install=yes
8359         fi
8360       done
8361       IFS="$lt_save_ifs"
8362       ;;
8363     esac
8364 else
8365   enable_fast_install=yes
8366 fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 # This can be used to rebuild libtool when needed
8379 LIBTOOL_DEPS="$ltmain"
8380
8381 # Always use our own libtool.
8382 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409 test -z "$LN_S" && LN_S="ln -s"
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 if test -n "${ZSH_VERSION+set}" ; then
8425    setopt NO_GLOB_SUBST
8426 fi
8427
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8429 $as_echo_n "checking for objdir... " >&6; }
8430 if test "${lt_cv_objdir+set}" = set; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   rm -f .libs 2>/dev/null
8434 mkdir .libs 2>/dev/null
8435 if test -d .libs; then
8436   lt_cv_objdir=.libs
8437 else
8438   # MS-DOS does not allow filenames that begin with a dot.
8439   lt_cv_objdir=_libs
8440 fi
8441 rmdir .libs 2>/dev/null
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8444 $as_echo "$lt_cv_objdir" >&6; }
8445 objdir=$lt_cv_objdir
8446
8447
8448
8449
8450
8451 cat >>confdefs.h <<_ACEOF
8452 #define LT_OBJDIR "$lt_cv_objdir/"
8453 _ACEOF
8454
8455
8456
8457
8458 case $host_os in
8459 aix3*)
8460   # AIX sometimes has problems with the GCC collect2 program.  For some
8461   # reason, if we set the COLLECT_NAMES environment variable, the problems
8462   # vanish in a puff of smoke.
8463   if test "X${COLLECT_NAMES+set}" != Xset; then
8464     COLLECT_NAMES=
8465     export COLLECT_NAMES
8466   fi
8467   ;;
8468 esac
8469
8470 # Global variables:
8471 ofile=libtool
8472 can_build_shared=yes
8473
8474 # All known linkers require a `.a' archive for static linking (except MSVC,
8475 # which needs '.lib').
8476 libext=a
8477
8478 with_gnu_ld="$lt_cv_prog_gnu_ld"
8479
8480 old_CC="$CC"
8481 old_CFLAGS="$CFLAGS"
8482
8483 # Set sane defaults for various variables
8484 test -z "$CC" && CC=cc
8485 test -z "$LTCC" && LTCC=$CC
8486 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8487 test -z "$LD" && LD=ld
8488 test -z "$ac_objext" && ac_objext=o
8489
8490 for cc_temp in $compiler""; do
8491   case $cc_temp in
8492     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8493     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8494     \-*) ;;
8495     *) break;;
8496   esac
8497 done
8498 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8499
8500
8501 # Only perform the check for file, if the check method requires it
8502 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8503 case $deplibs_check_method in
8504 file_magic*)
8505   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8507 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   case $MAGIC_CMD in
8512 [\\/*] |  ?:[\\/]*)
8513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8514   ;;
8515 *)
8516   lt_save_MAGIC_CMD="$MAGIC_CMD"
8517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8518   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8519   for ac_dir in $ac_dummy; do
8520     IFS="$lt_save_ifs"
8521     test -z "$ac_dir" && ac_dir=.
8522     if test -f $ac_dir/${ac_tool_prefix}file; then
8523       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8524       if test -n "$file_magic_test_file"; then
8525         case $deplibs_check_method in
8526         "file_magic "*)
8527           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8528           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8529           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8530             $EGREP "$file_magic_regex" > /dev/null; then
8531             :
8532           else
8533             cat <<_LT_EOF 1>&2
8534
8535 *** Warning: the command libtool uses to detect shared libraries,
8536 *** $file_magic_cmd, produces output that libtool cannot recognize.
8537 *** The result is that libtool may fail to recognize shared libraries
8538 *** as such.  This will affect the creation of libtool libraries that
8539 *** depend on shared libraries, but programs linked with such libtool
8540 *** libraries will work regardless of this problem.  Nevertheless, you
8541 *** may want to report the problem to your system manager and/or to
8542 *** bug-libtool@gnu.org
8543
8544 _LT_EOF
8545           fi ;;
8546         esac
8547       fi
8548       break
8549     fi
8550   done
8551   IFS="$lt_save_ifs"
8552   MAGIC_CMD="$lt_save_MAGIC_CMD"
8553   ;;
8554 esac
8555 fi
8556
8557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558 if test -n "$MAGIC_CMD"; then
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8560 $as_echo "$MAGIC_CMD" >&6; }
8561 else
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8564 fi
8565
8566
8567
8568
8569
8570 if test -z "$lt_cv_path_MAGIC_CMD"; then
8571   if test -n "$ac_tool_prefix"; then
8572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8573 $as_echo_n "checking for file... " >&6; }
8574 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   case $MAGIC_CMD in
8578 [\\/*] |  ?:[\\/]*)
8579   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8580   ;;
8581 *)
8582   lt_save_MAGIC_CMD="$MAGIC_CMD"
8583   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8584   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8585   for ac_dir in $ac_dummy; do
8586     IFS="$lt_save_ifs"
8587     test -z "$ac_dir" && ac_dir=.
8588     if test -f $ac_dir/file; then
8589       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8590       if test -n "$file_magic_test_file"; then
8591         case $deplibs_check_method in
8592         "file_magic "*)
8593           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8594           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8595           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8596             $EGREP "$file_magic_regex" > /dev/null; then
8597             :
8598           else
8599             cat <<_LT_EOF 1>&2
8600
8601 *** Warning: the command libtool uses to detect shared libraries,
8602 *** $file_magic_cmd, produces output that libtool cannot recognize.
8603 *** The result is that libtool may fail to recognize shared libraries
8604 *** as such.  This will affect the creation of libtool libraries that
8605 *** depend on shared libraries, but programs linked with such libtool
8606 *** libraries will work regardless of this problem.  Nevertheless, you
8607 *** may want to report the problem to your system manager and/or to
8608 *** bug-libtool@gnu.org
8609
8610 _LT_EOF
8611           fi ;;
8612         esac
8613       fi
8614       break
8615     fi
8616   done
8617   IFS="$lt_save_ifs"
8618   MAGIC_CMD="$lt_save_MAGIC_CMD"
8619   ;;
8620 esac
8621 fi
8622
8623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8624 if test -n "$MAGIC_CMD"; then
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8626 $as_echo "$MAGIC_CMD" >&6; }
8627 else
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632
8633   else
8634     MAGIC_CMD=:
8635   fi
8636 fi
8637
8638   fi
8639   ;;
8640 esac
8641
8642 # Use C for the default configuration in the libtool script
8643
8644 lt_save_CC="$CC"
8645 ac_ext=c
8646 ac_cpp='$CPP $CPPFLAGS'
8647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8650
8651
8652 # Source file extension for C test sources.
8653 ac_ext=c
8654
8655 # Object file extension for compiled C test sources.
8656 objext=o
8657 objext=$objext
8658
8659 # Code to be used in simple compile tests
8660 lt_simple_compile_test_code="int some_variable = 0;"
8661
8662 # Code to be used in simple link tests
8663 lt_simple_link_test_code='int main(){return(0);}'
8664
8665
8666
8667
8668
8669
8670
8671 # If no C compiler was specified, use CC.
8672 LTCC=${LTCC-"$CC"}
8673
8674 # If no C compiler flags were specified, use CFLAGS.
8675 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8676
8677 # Allow CC to be a program name with arguments.
8678 compiler=$CC
8679
8680 # Save the default compiler, since it gets overwritten when the other
8681 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8682 compiler_DEFAULT=$CC
8683
8684 # save warnings/boilerplate of simple test code
8685 ac_outfile=conftest.$ac_objext
8686 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8687 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8688 _lt_compiler_boilerplate=`cat conftest.err`
8689 $RM conftest*
8690
8691 ac_outfile=conftest.$ac_objext
8692 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8693 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694 _lt_linker_boilerplate=`cat conftest.err`
8695 $RM -r conftest*
8696
8697
8698 ## CAVEAT EMPTOR:
8699 ## There is no encapsulation within the following macros, do not change
8700 ## the running order or otherwise move them around unless you know exactly
8701 ## what you are doing...
8702 if test -n "$compiler"; then
8703
8704 lt_prog_compiler_no_builtin_flag=
8705
8706 if test "$GCC" = yes; then
8707   case $cc_basename in
8708   nvcc*)
8709     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8710   *)
8711     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8712   esac
8713
8714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8715 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8716 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   lt_cv_prog_compiler_rtti_exceptions=no
8720    ac_outfile=conftest.$ac_objext
8721    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8722    lt_compiler_flag="-fno-rtti -fno-exceptions"
8723    # Insert the option either (1) after the last *FLAGS variable, or
8724    # (2) before a word containing "conftest.", or (3) at the end.
8725    # Note that $ac_compile itself does not contain backslashes and begins
8726    # with a dollar sign (not a hyphen), so the echo should work correctly.
8727    # The option is referenced via a variable to avoid confusing sed.
8728    lt_compile=`echo "$ac_compile" | $SED \
8729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8731    -e 's:$: $lt_compiler_flag:'`
8732    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8733    (eval "$lt_compile" 2>conftest.err)
8734    ac_status=$?
8735    cat conftest.err >&5
8736    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737    if (exit $ac_status) && test -s "$ac_outfile"; then
8738      # The compiler can only warn and ignore the option if not recognized
8739      # So say no if there are warnings other than the usual output.
8740      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8741      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8742      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8743        lt_cv_prog_compiler_rtti_exceptions=yes
8744      fi
8745    fi
8746    $RM conftest*
8747
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8750 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8751
8752 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8753     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8754 else
8755     :
8756 fi
8757
8758 fi
8759
8760
8761
8762
8763
8764
8765   lt_prog_compiler_wl=
8766 lt_prog_compiler_pic=
8767 lt_prog_compiler_static=
8768
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8770 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8771
8772   if test "$GCC" = yes; then
8773     lt_prog_compiler_wl='-Wl,'
8774     lt_prog_compiler_static='-static'
8775
8776     case $host_os in
8777       aix*)
8778       # All AIX code is PIC.
8779       if test "$host_cpu" = ia64; then
8780         # AIX 5 now supports IA64 processor
8781         lt_prog_compiler_static='-Bstatic'
8782       fi
8783       lt_prog_compiler_pic='-fPIC'
8784       ;;
8785
8786     amigaos*)
8787       case $host_cpu in
8788       powerpc)
8789             # see comment about AmigaOS4 .so support
8790             lt_prog_compiler_pic='-fPIC'
8791         ;;
8792       m68k)
8793             # FIXME: we need at least 68020 code to build shared libraries, but
8794             # adding the `-m68020' flag to GCC prevents building anything better,
8795             # like `-m68040'.
8796             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8797         ;;
8798       esac
8799       ;;
8800
8801     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8802       # PIC is the default for these OSes.
8803       ;;
8804
8805     mingw* | cygwin* | pw32* | os2* | cegcc*)
8806       # This hack is so that the source file can tell whether it is being
8807       # built for inclusion in a dll (and should export symbols for example).
8808       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8809       # (--disable-auto-import) libraries
8810       lt_prog_compiler_pic='-DDLL_EXPORT'
8811       ;;
8812
8813     darwin* | rhapsody*)
8814       # PIC is the default on this platform
8815       # Common symbols not allowed in MH_DYLIB files
8816       lt_prog_compiler_pic='-fno-common'
8817       ;;
8818
8819     haiku*)
8820       # PIC is the default for Haiku.
8821       # The "-static" flag exists, but is broken.
8822       lt_prog_compiler_static=
8823       ;;
8824
8825     hpux*)
8826       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8827       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8828       # sets the default TLS model and affects inlining.
8829       case $host_cpu in
8830       hppa*64*)
8831         # +Z the default
8832         ;;
8833       *)
8834         lt_prog_compiler_pic='-fPIC'
8835         ;;
8836       esac
8837       ;;
8838
8839     interix[3-9]*)
8840       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8841       # Instead, we relocate shared libraries at runtime.
8842       ;;
8843
8844     msdosdjgpp*)
8845       # Just because we use GCC doesn't mean we suddenly get shared libraries
8846       # on systems that don't support them.
8847       lt_prog_compiler_can_build_shared=no
8848       enable_shared=no
8849       ;;
8850
8851     *nto* | *qnx*)
8852       # QNX uses GNU C++, but need to define -shared option too, otherwise
8853       # it will coredump.
8854       lt_prog_compiler_pic='-fPIC -shared'
8855       ;;
8856
8857     sysv4*MP*)
8858       if test -d /usr/nec; then
8859         lt_prog_compiler_pic=-Kconform_pic
8860       fi
8861       ;;
8862
8863     *)
8864       lt_prog_compiler_pic='-fPIC'
8865       ;;
8866     esac
8867
8868     case $cc_basename in
8869     nvcc*) # Cuda Compiler Driver 2.2
8870       lt_prog_compiler_wl='-Xlinker '
8871       lt_prog_compiler_pic='-Xcompiler -fPIC'
8872       ;;
8873     esac
8874   else
8875     # PORTME Check for flag to pass linker flags through the system compiler.
8876     case $host_os in
8877     aix*)
8878       lt_prog_compiler_wl='-Wl,'
8879       if test "$host_cpu" = ia64; then
8880         # AIX 5 now supports IA64 processor
8881         lt_prog_compiler_static='-Bstatic'
8882       else
8883         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8884       fi
8885       ;;
8886
8887     mingw* | cygwin* | pw32* | os2* | cegcc*)
8888       # This hack is so that the source file can tell whether it is being
8889       # built for inclusion in a dll (and should export symbols for example).
8890       lt_prog_compiler_pic='-DDLL_EXPORT'
8891       ;;
8892
8893     hpux9* | hpux10* | hpux11*)
8894       lt_prog_compiler_wl='-Wl,'
8895       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8896       # not for PA HP-UX.
8897       case $host_cpu in
8898       hppa*64*|ia64*)
8899         # +Z the default
8900         ;;
8901       *)
8902         lt_prog_compiler_pic='+Z'
8903         ;;
8904       esac
8905       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8906       lt_prog_compiler_static='${wl}-a ${wl}archive'
8907       ;;
8908
8909     irix5* | irix6* | nonstopux*)
8910       lt_prog_compiler_wl='-Wl,'
8911       # PIC (with -KPIC) is the default.
8912       lt_prog_compiler_static='-non_shared'
8913       ;;
8914
8915     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8916       case $cc_basename in
8917       # old Intel for x86_64 which still supported -KPIC.
8918       ecc*)
8919         lt_prog_compiler_wl='-Wl,'
8920         lt_prog_compiler_pic='-KPIC'
8921         lt_prog_compiler_static='-static'
8922         ;;
8923       # icc used to be incompatible with GCC.
8924       # ICC 10 doesn't accept -KPIC any more.
8925       icc* | ifort*)
8926         lt_prog_compiler_wl='-Wl,'
8927         lt_prog_compiler_pic='-fPIC'
8928         lt_prog_compiler_static='-static'
8929         ;;
8930       # Lahey Fortran 8.1.
8931       lf95*)
8932         lt_prog_compiler_wl='-Wl,'
8933         lt_prog_compiler_pic='--shared'
8934         lt_prog_compiler_static='--static'
8935         ;;
8936       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8937         # Portland Group compilers (*not* the Pentium gcc compiler,
8938         # which looks to be a dead project)
8939         lt_prog_compiler_wl='-Wl,'
8940         lt_prog_compiler_pic='-fpic'
8941         lt_prog_compiler_static='-Bstatic'
8942         ;;
8943       ccc*)
8944         lt_prog_compiler_wl='-Wl,'
8945         # All Alpha code is PIC.
8946         lt_prog_compiler_static='-non_shared'
8947         ;;
8948       xl* | bgxl* | bgf* | mpixl*)
8949         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8950         lt_prog_compiler_wl='-Wl,'
8951         lt_prog_compiler_pic='-qpic'
8952         lt_prog_compiler_static='-qstaticlink'
8953         ;;
8954       *)
8955         case `$CC -V 2>&1 | sed 5q` in
8956         *Sun\ F* | *Sun*Fortran*)
8957           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958           lt_prog_compiler_pic='-KPIC'
8959           lt_prog_compiler_static='-Bstatic'
8960           lt_prog_compiler_wl=''
8961           ;;
8962         *Sun\ C*)
8963           # Sun C 5.9
8964           lt_prog_compiler_pic='-KPIC'
8965           lt_prog_compiler_static='-Bstatic'
8966           lt_prog_compiler_wl='-Wl,'
8967           ;;
8968         esac
8969         ;;
8970       esac
8971       ;;
8972
8973     newsos6)
8974       lt_prog_compiler_pic='-KPIC'
8975       lt_prog_compiler_static='-Bstatic'
8976       ;;
8977
8978     *nto* | *qnx*)
8979       # QNX uses GNU C++, but need to define -shared option too, otherwise
8980       # it will coredump.
8981       lt_prog_compiler_pic='-fPIC -shared'
8982       ;;
8983
8984     osf3* | osf4* | osf5*)
8985       lt_prog_compiler_wl='-Wl,'
8986       # All OSF/1 code is PIC.
8987       lt_prog_compiler_static='-non_shared'
8988       ;;
8989
8990     rdos*)
8991       lt_prog_compiler_static='-non_shared'
8992       ;;
8993
8994     solaris*)
8995       lt_prog_compiler_pic='-KPIC'
8996       lt_prog_compiler_static='-Bstatic'
8997       case $cc_basename in
8998       f77* | f90* | f95*)
8999         lt_prog_compiler_wl='-Qoption ld ';;
9000       *)
9001         lt_prog_compiler_wl='-Wl,';;
9002       esac
9003       ;;
9004
9005     sunos4*)
9006       lt_prog_compiler_wl='-Qoption ld '
9007       lt_prog_compiler_pic='-PIC'
9008       lt_prog_compiler_static='-Bstatic'
9009       ;;
9010
9011     sysv4 | sysv4.2uw2* | sysv4.3*)
9012       lt_prog_compiler_wl='-Wl,'
9013       lt_prog_compiler_pic='-KPIC'
9014       lt_prog_compiler_static='-Bstatic'
9015       ;;
9016
9017     sysv4*MP*)
9018       if test -d /usr/nec ;then
9019         lt_prog_compiler_pic='-Kconform_pic'
9020         lt_prog_compiler_static='-Bstatic'
9021       fi
9022       ;;
9023
9024     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9025       lt_prog_compiler_wl='-Wl,'
9026       lt_prog_compiler_pic='-KPIC'
9027       lt_prog_compiler_static='-Bstatic'
9028       ;;
9029
9030     unicos*)
9031       lt_prog_compiler_wl='-Wl,'
9032       lt_prog_compiler_can_build_shared=no
9033       ;;
9034
9035     uts4*)
9036       lt_prog_compiler_pic='-pic'
9037       lt_prog_compiler_static='-Bstatic'
9038       ;;
9039
9040     *)
9041       lt_prog_compiler_can_build_shared=no
9042       ;;
9043     esac
9044   fi
9045
9046 case $host_os in
9047   # For platforms which do not support PIC, -DPIC is meaningless:
9048   *djgpp*)
9049     lt_prog_compiler_pic=
9050     ;;
9051   *)
9052     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9053     ;;
9054 esac
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9056 $as_echo "$lt_prog_compiler_pic" >&6; }
9057
9058
9059
9060
9061
9062
9063 #
9064 # Check to make sure the PIC flag actually works.
9065 #
9066 if test -n "$lt_prog_compiler_pic"; then
9067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9068 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9069 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9070   $as_echo_n "(cached) " >&6
9071 else
9072   lt_cv_prog_compiler_pic_works=no
9073    ac_outfile=conftest.$ac_objext
9074    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9076    # Insert the option either (1) after the last *FLAGS variable, or
9077    # (2) before a word containing "conftest.", or (3) at the end.
9078    # Note that $ac_compile itself does not contain backslashes and begins
9079    # with a dollar sign (not a hyphen), so the echo should work correctly.
9080    # The option is referenced via a variable to avoid confusing sed.
9081    lt_compile=`echo "$ac_compile" | $SED \
9082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9084    -e 's:$: $lt_compiler_flag:'`
9085    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9086    (eval "$lt_compile" 2>conftest.err)
9087    ac_status=$?
9088    cat conftest.err >&5
9089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090    if (exit $ac_status) && test -s "$ac_outfile"; then
9091      # The compiler can only warn and ignore the option if not recognized
9092      # So say no if there are warnings other than the usual output.
9093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9094      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9095      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9096        lt_cv_prog_compiler_pic_works=yes
9097      fi
9098    fi
9099    $RM conftest*
9100
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9103 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9104
9105 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9106     case $lt_prog_compiler_pic in
9107      "" | " "*) ;;
9108      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9109      esac
9110 else
9111     lt_prog_compiler_pic=
9112      lt_prog_compiler_can_build_shared=no
9113 fi
9114
9115 fi
9116
9117
9118
9119
9120
9121
9122 #
9123 # Check to make sure the static flag actually works.
9124 #
9125 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9128 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9129   $as_echo_n "(cached) " >&6
9130 else
9131   lt_cv_prog_compiler_static_works=no
9132    save_LDFLAGS="$LDFLAGS"
9133    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9134    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9135    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9136      # The linker can only warn and ignore the option if not recognized
9137      # So say no if there are warnings
9138      if test -s conftest.err; then
9139        # Append any errors to the config.log.
9140        cat conftest.err 1>&5
9141        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9142        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9143        if diff conftest.exp conftest.er2 >/dev/null; then
9144          lt_cv_prog_compiler_static_works=yes
9145        fi
9146      else
9147        lt_cv_prog_compiler_static_works=yes
9148      fi
9149    fi
9150    $RM -r conftest*
9151    LDFLAGS="$save_LDFLAGS"
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9155 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9156
9157 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9158     :
9159 else
9160     lt_prog_compiler_static=
9161 fi
9162
9163
9164
9165
9166
9167
9168
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9171 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   lt_cv_prog_compiler_c_o=no
9175    $RM -r conftest 2>/dev/null
9176    mkdir conftest
9177    cd conftest
9178    mkdir out
9179    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9180
9181    lt_compiler_flag="-o out/conftest2.$ac_objext"
9182    # Insert the option either (1) after the last *FLAGS variable, or
9183    # (2) before a word containing "conftest.", or (3) at the end.
9184    # Note that $ac_compile itself does not contain backslashes and begins
9185    # with a dollar sign (not a hyphen), so the echo should work correctly.
9186    lt_compile=`echo "$ac_compile" | $SED \
9187    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9189    -e 's:$: $lt_compiler_flag:'`
9190    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9191    (eval "$lt_compile" 2>out/conftest.err)
9192    ac_status=$?
9193    cat out/conftest.err >&5
9194    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9196    then
9197      # The compiler can only warn and ignore the option if not recognized
9198      # So say no if there are warnings
9199      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9200      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9201      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9202        lt_cv_prog_compiler_c_o=yes
9203      fi
9204    fi
9205    chmod u+w . 2>&5
9206    $RM conftest*
9207    # SGI C++ compiler will create directory out/ii_files/ for
9208    # template instantiation
9209    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9210    $RM out/* && rmdir out
9211    cd ..
9212    $RM -r conftest
9213    $RM conftest*
9214
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9218
9219
9220
9221
9222
9223
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9226 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   lt_cv_prog_compiler_c_o=no
9230    $RM -r conftest 2>/dev/null
9231    mkdir conftest
9232    cd conftest
9233    mkdir out
9234    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9235
9236    lt_compiler_flag="-o out/conftest2.$ac_objext"
9237    # Insert the option either (1) after the last *FLAGS variable, or
9238    # (2) before a word containing "conftest.", or (3) at the end.
9239    # Note that $ac_compile itself does not contain backslashes and begins
9240    # with a dollar sign (not a hyphen), so the echo should work correctly.
9241    lt_compile=`echo "$ac_compile" | $SED \
9242    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9244    -e 's:$: $lt_compiler_flag:'`
9245    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9246    (eval "$lt_compile" 2>out/conftest.err)
9247    ac_status=$?
9248    cat out/conftest.err >&5
9249    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9251    then
9252      # The compiler can only warn and ignore the option if not recognized
9253      # So say no if there are warnings
9254      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9255      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9256      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9257        lt_cv_prog_compiler_c_o=yes
9258      fi
9259    fi
9260    chmod u+w . 2>&5
9261    $RM conftest*
9262    # SGI C++ compiler will create directory out/ii_files/ for
9263    # template instantiation
9264    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9265    $RM out/* && rmdir out
9266    cd ..
9267    $RM -r conftest
9268    $RM conftest*
9269
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9272 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9273
9274
9275
9276
9277 hard_links="nottested"
9278 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9279   # do not overwrite the value of need_locks provided by the user
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9281 $as_echo_n "checking if we can lock with hard links... " >&6; }
9282   hard_links=yes
9283   $RM conftest*
9284   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9285   touch conftest.a
9286   ln conftest.a conftest.b 2>&5 || hard_links=no
9287   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9289 $as_echo "$hard_links" >&6; }
9290   if test "$hard_links" = no; then
9291     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9292 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9293     need_locks=warn
9294   fi
9295 else
9296   need_locks=no
9297 fi
9298
9299
9300
9301
9302
9303
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9305 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9306
9307   runpath_var=
9308   allow_undefined_flag=
9309   always_export_symbols=no
9310   archive_cmds=
9311   archive_expsym_cmds=
9312   compiler_needs_object=no
9313   enable_shared_with_static_runtimes=no
9314   export_dynamic_flag_spec=
9315   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9316   hardcode_automatic=no
9317   hardcode_direct=no
9318   hardcode_direct_absolute=no
9319   hardcode_libdir_flag_spec=
9320   hardcode_libdir_flag_spec_ld=
9321   hardcode_libdir_separator=
9322   hardcode_minus_L=no
9323   hardcode_shlibpath_var=unsupported
9324   inherit_rpath=no
9325   link_all_deplibs=unknown
9326   module_cmds=
9327   module_expsym_cmds=
9328   old_archive_from_new_cmds=
9329   old_archive_from_expsyms_cmds=
9330   thread_safe_flag_spec=
9331   whole_archive_flag_spec=
9332   # include_expsyms should be a list of space-separated symbols to be *always*
9333   # included in the symbol list
9334   include_expsyms=
9335   # exclude_expsyms can be an extended regexp of symbols to exclude
9336   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9337   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9338   # as well as any symbol that contains `d'.
9339   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9340   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9341   # platforms (ab)use it in PIC code, but their linkers get confused if
9342   # the symbol is explicitly referenced.  Since portable code cannot
9343   # rely on this symbol name, it's probably fine to never include it in
9344   # preloaded symbol tables.
9345   # Exclude shared library initialization/finalization symbols.
9346   extract_expsyms_cmds=
9347
9348   case $host_os in
9349   cygwin* | mingw* | pw32* | cegcc*)
9350     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9351     # When not using gcc, we currently assume that we are using
9352     # Microsoft Visual C++.
9353     if test "$GCC" != yes; then
9354       with_gnu_ld=no
9355     fi
9356     ;;
9357   interix*)
9358     # we just hope/assume this is gcc and not c89 (= MSVC++)
9359     with_gnu_ld=yes
9360     ;;
9361   openbsd*)
9362     with_gnu_ld=no
9363     ;;
9364   esac
9365
9366   ld_shlibs=yes
9367
9368   # On some targets, GNU ld is compatible enough with the native linker
9369   # that we're better off using the native interface for both.
9370   lt_use_gnu_ld_interface=no
9371   if test "$with_gnu_ld" = yes; then
9372     case $host_os in
9373       aix*)
9374         # The AIX port of GNU ld has always aspired to compatibility
9375         # with the native linker.  However, as the warning in the GNU ld
9376         # block says, versions before 2.19.5* couldn't really create working
9377         # shared libraries, regardless of the interface used.
9378         case `$LD -v 2>&1` in
9379           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9380           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9381           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9382           *)
9383             lt_use_gnu_ld_interface=yes
9384             ;;
9385         esac
9386         ;;
9387       *)
9388         lt_use_gnu_ld_interface=yes
9389         ;;
9390     esac
9391   fi
9392
9393   if test "$lt_use_gnu_ld_interface" = yes; then
9394     # If archive_cmds runs LD, not CC, wlarc should be empty
9395     wlarc='${wl}'
9396
9397     # Set some defaults for GNU ld with shared library support. These
9398     # are reset later if shared libraries are not supported. Putting them
9399     # here allows them to be overridden if necessary.
9400     runpath_var=LD_RUN_PATH
9401     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402     export_dynamic_flag_spec='${wl}--export-dynamic'
9403     # ancient GNU ld didn't support --whole-archive et. al.
9404     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9405       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9406     else
9407       whole_archive_flag_spec=
9408     fi
9409     supports_anon_versioning=no
9410     case `$LD -v 2>&1` in
9411       *GNU\ gold*) supports_anon_versioning=yes ;;
9412       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9413       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9414       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9415       *\ 2.11.*) ;; # other 2.11 versions
9416       *) supports_anon_versioning=yes ;;
9417     esac
9418
9419     # See if GNU ld supports shared libraries.
9420     case $host_os in
9421     aix[3-9]*)
9422       # On AIX/PPC, the GNU linker is very broken
9423       if test "$host_cpu" != ia64; then
9424         ld_shlibs=no
9425         cat <<_LT_EOF 1>&2
9426
9427 *** Warning: the GNU linker, at least up to release 2.19, is reported
9428 *** to be unable to reliably create shared libraries on AIX.
9429 *** Therefore, libtool is disabling shared libraries support.  If you
9430 *** really care for shared libraries, you may want to install binutils
9431 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9432 *** You will then need to restart the configuration process.
9433
9434 _LT_EOF
9435       fi
9436       ;;
9437
9438     amigaos*)
9439       case $host_cpu in
9440       powerpc)
9441             # see comment about AmigaOS4 .so support
9442             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443             archive_expsym_cmds=''
9444         ;;
9445       m68k)
9446             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)'
9447             hardcode_libdir_flag_spec='-L$libdir'
9448             hardcode_minus_L=yes
9449         ;;
9450       esac
9451       ;;
9452
9453     beos*)
9454       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9455         allow_undefined_flag=unsupported
9456         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9457         # support --undefined.  This deserves some investigation.  FIXME
9458         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9459       else
9460         ld_shlibs=no
9461       fi
9462       ;;
9463
9464     cygwin* | mingw* | pw32* | cegcc*)
9465       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9466       # as there is no search path for DLLs.
9467       hardcode_libdir_flag_spec='-L$libdir'
9468       export_dynamic_flag_spec='${wl}--export-all-symbols'
9469       allow_undefined_flag=unsupported
9470       always_export_symbols=no
9471       enable_shared_with_static_runtimes=yes
9472       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9473
9474       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9475         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9476         # If the export-symbols file already is a .def file (1st line
9477         # is EXPORTS), use it as is; otherwise, prepend...
9478         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9479           cp $export_symbols $output_objdir/$soname.def;
9480         else
9481           echo EXPORTS > $output_objdir/$soname.def;
9482           cat $export_symbols >> $output_objdir/$soname.def;
9483         fi~
9484         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9485       else
9486         ld_shlibs=no
9487       fi
9488       ;;
9489
9490     haiku*)
9491       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492       link_all_deplibs=yes
9493       ;;
9494
9495     interix[3-9]*)
9496       hardcode_direct=no
9497       hardcode_shlibpath_var=no
9498       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9499       export_dynamic_flag_spec='${wl}-E'
9500       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9501       # Instead, shared libraries are loaded at an image base (0x10000000 by
9502       # default) and relocated if they conflict, which is a slow very memory
9503       # consuming and fragmenting process.  To avoid this, we pick a random,
9504       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9505       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9506       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9507       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'
9508       ;;
9509
9510     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9511       tmp_diet=no
9512       if test "$host_os" = linux-dietlibc; then
9513         case $cc_basename in
9514           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9515         esac
9516       fi
9517       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9518          && test "$tmp_diet" = no
9519       then
9520         tmp_addflag=' $pic_flag'
9521         tmp_sharedflag='-shared'
9522         case $cc_basename,$host_cpu in
9523         pgcc*)                          # Portland Group C compiler
9524           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'
9525           tmp_addflag=' $pic_flag'
9526           ;;
9527         pgf77* | pgf90* | pgf95* | pgfortran*)
9528                                         # Portland Group f77 and f90 compilers
9529           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'
9530           tmp_addflag=' $pic_flag -Mnomain' ;;
9531         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9532           tmp_addflag=' -i_dynamic' ;;
9533         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9534           tmp_addflag=' -i_dynamic -nofor_main' ;;
9535         ifc* | ifort*)                  # Intel Fortran compiler
9536           tmp_addflag=' -nofor_main' ;;
9537         lf95*)                          # Lahey Fortran 8.1
9538           whole_archive_flag_spec=
9539           tmp_sharedflag='--shared' ;;
9540         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9541           tmp_sharedflag='-qmkshrobj'
9542           tmp_addflag= ;;
9543         nvcc*)  # Cuda Compiler Driver 2.2
9544           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'
9545           compiler_needs_object=yes
9546           ;;
9547         esac
9548         case `$CC -V 2>&1 | sed 5q` in
9549         *Sun\ C*)                       # Sun C 5.9
9550           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'
9551           compiler_needs_object=yes
9552           tmp_sharedflag='-G' ;;
9553         *Sun\ F*)                       # Sun Fortran 8.3
9554           tmp_sharedflag='-G' ;;
9555         esac
9556         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557
9558         if test "x$supports_anon_versioning" = xyes; then
9559           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9560             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9561             echo "local: *; };" >> $output_objdir/$libname.ver~
9562             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9563         fi
9564
9565         case $cc_basename in
9566         xlf* | bgf* | bgxlf* | mpixlf*)
9567           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9568           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9569           hardcode_libdir_flag_spec=
9570           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9571           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9572           if test "x$supports_anon_versioning" = xyes; then
9573             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9574               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9575               echo "local: *; };" >> $output_objdir/$libname.ver~
9576               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9577           fi
9578           ;;
9579         esac
9580       else
9581         ld_shlibs=no
9582       fi
9583       ;;
9584
9585     netbsd*)
9586       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9587         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9588         wlarc=
9589       else
9590         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9592       fi
9593       ;;
9594
9595     solaris*)
9596       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9597         ld_shlibs=no
9598         cat <<_LT_EOF 1>&2
9599
9600 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9601 *** create shared libraries on Solaris systems.  Therefore, libtool
9602 *** is disabling shared libraries support.  We urge you to upgrade GNU
9603 *** binutils to release 2.9.1 or newer.  Another option is to modify
9604 *** your PATH or compiler configuration so that the native linker is
9605 *** used, and then restart.
9606
9607 _LT_EOF
9608       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9609         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9610         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9611       else
9612         ld_shlibs=no
9613       fi
9614       ;;
9615
9616     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9617       case `$LD -v 2>&1` in
9618         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9619         ld_shlibs=no
9620         cat <<_LT_EOF 1>&2
9621
9622 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9623 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9624 *** is disabling shared libraries support.  We urge you to upgrade GNU
9625 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9626 *** your PATH or compiler configuration so that the native linker is
9627 *** used, and then restart.
9628
9629 _LT_EOF
9630         ;;
9631         *)
9632           # For security reasons, it is highly recommended that you always
9633           # use absolute paths for naming shared libraries, and exclude the
9634           # DT_RUNPATH tag from executables and libraries.  But doing so
9635           # requires that you compile everything twice, which is a pain.
9636           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9640           else
9641             ld_shlibs=no
9642           fi
9643         ;;
9644       esac
9645       ;;
9646
9647     sunos4*)
9648       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9649       wlarc=
9650       hardcode_direct=yes
9651       hardcode_shlibpath_var=no
9652       ;;
9653
9654     *)
9655       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9656         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9658       else
9659         ld_shlibs=no
9660       fi
9661       ;;
9662     esac
9663
9664     if test "$ld_shlibs" = no; then
9665       runpath_var=
9666       hardcode_libdir_flag_spec=
9667       export_dynamic_flag_spec=
9668       whole_archive_flag_spec=
9669     fi
9670   else
9671     # PORTME fill in a description of your system's linker (not GNU ld)
9672     case $host_os in
9673     aix3*)
9674       allow_undefined_flag=unsupported
9675       always_export_symbols=yes
9676       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'
9677       # Note: this linker hardcodes the directories in LIBPATH if there
9678       # are no directories specified by -L.
9679       hardcode_minus_L=yes
9680       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9681         # Neither direct hardcoding nor static linking is supported with a
9682         # broken collect2.
9683         hardcode_direct=unsupported
9684       fi
9685       ;;
9686
9687     aix[4-9]*)
9688       if test "$host_cpu" = ia64; then
9689         # On IA64, the linker does run time linking by default, so we don't
9690         # have to do anything special.
9691         aix_use_runtimelinking=no
9692         exp_sym_flag='-Bexport'
9693         no_entry_flag=""
9694       else
9695         # If we're using GNU nm, then we don't want the "-C" option.
9696         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9697         # Also, AIX nm treats weak defined symbols like other global
9698         # defined symbols, whereas GNU nm marks them as "W".
9699         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9700           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'
9701         else
9702           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9703         fi
9704         aix_use_runtimelinking=no
9705
9706         # Test if we are trying to use run time linking or normal
9707         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9708         # need to do runtime linking.
9709         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9710           for ld_flag in $LDFLAGS; do
9711           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9712             aix_use_runtimelinking=yes
9713             break
9714           fi
9715           done
9716           ;;
9717         esac
9718
9719         exp_sym_flag='-bexport'
9720         no_entry_flag='-bnoentry'
9721       fi
9722
9723       # When large executables or shared objects are built, AIX ld can
9724       # have problems creating the table of contents.  If linking a library
9725       # or program results in "error TOC overflow" add -mminimal-toc to
9726       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9727       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9728
9729       archive_cmds=''
9730       hardcode_direct=yes
9731       hardcode_direct_absolute=yes
9732       hardcode_libdir_separator=':'
9733       link_all_deplibs=yes
9734       file_list_spec='${wl}-f,'
9735
9736       if test "$GCC" = yes; then
9737         case $host_os in aix4.[012]|aix4.[012].*)
9738         # We only want to do this on AIX 4.2 and lower, the check
9739         # below for broken collect2 doesn't work under 4.3+
9740           collect2name=`${CC} -print-prog-name=collect2`
9741           if test -f "$collect2name" &&
9742            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9743           then
9744           # We have reworked collect2
9745           :
9746           else
9747           # We have old collect2
9748           hardcode_direct=unsupported
9749           # It fails to find uninstalled libraries when the uninstalled
9750           # path is not listed in the libpath.  Setting hardcode_minus_L
9751           # to unsupported forces relinking
9752           hardcode_minus_L=yes
9753           hardcode_libdir_flag_spec='-L$libdir'
9754           hardcode_libdir_separator=
9755           fi
9756           ;;
9757         esac
9758         shared_flag='-shared'
9759         if test "$aix_use_runtimelinking" = yes; then
9760           shared_flag="$shared_flag "'${wl}-G'
9761         fi
9762       else
9763         # not using gcc
9764         if test "$host_cpu" = ia64; then
9765         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9766         # chokes on -Wl,-G. The following line is correct:
9767           shared_flag='-G'
9768         else
9769           if test "$aix_use_runtimelinking" = yes; then
9770             shared_flag='${wl}-G'
9771           else
9772             shared_flag='${wl}-bM:SRE'
9773           fi
9774         fi
9775       fi
9776
9777       export_dynamic_flag_spec='${wl}-bexpall'
9778       # It seems that -bexpall does not export symbols beginning with
9779       # underscore (_), so it is better to generate a list of symbols to export.
9780       always_export_symbols=yes
9781       if test "$aix_use_runtimelinking" = yes; then
9782         # Warning - without using the other runtime loading flags (-brtl),
9783         # -berok will link without error, but may produce a broken library.
9784         allow_undefined_flag='-berok'
9785         # Determine the default libpath from the value encoded in an
9786         # empty executable.
9787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h.  */
9789
9790 int
9791 main ()
9792 {
9793
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 if ac_fn_c_try_link "$LINENO"; then :
9799
9800 lt_aix_libpath_sed='
9801     /Import File Strings/,/^$/ {
9802         /^0/ {
9803             s/^0  *\(.*\)$/\1/
9804             p
9805         }
9806     }'
9807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9808 # Check for a 64-bit object if we didn't find anything.
9809 if test -z "$aix_libpath"; then
9810   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9811 fi
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext \
9814     conftest$ac_exeext conftest.$ac_ext
9815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9816
9817         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9818         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"
9819       else
9820         if test "$host_cpu" = ia64; then
9821           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9822           allow_undefined_flag="-z nodefs"
9823           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"
9824         else
9825          # Determine the default libpath from the value encoded in an
9826          # empty executable.
9827          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h.  */
9829
9830 int
9831 main ()
9832 {
9833
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839
9840 lt_aix_libpath_sed='
9841     /Import File Strings/,/^$/ {
9842         /^0/ {
9843             s/^0  *\(.*\)$/\1/
9844             p
9845         }
9846     }'
9847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9848 # Check for a 64-bit object if we didn't find anything.
9849 if test -z "$aix_libpath"; then
9850   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851 fi
9852 fi
9853 rm -f core conftest.err conftest.$ac_objext \
9854     conftest$ac_exeext conftest.$ac_ext
9855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9856
9857          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9858           # Warning - without using the other run time loading flags,
9859           # -berok will link without error, but may produce a broken library.
9860           no_undefined_flag=' ${wl}-bernotok'
9861           allow_undefined_flag=' ${wl}-berok'
9862           if test "$with_gnu_ld" = yes; then
9863             # We only use this code for GNU lds that support --whole-archive.
9864             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9865           else
9866             # Exported symbols can be pulled into shared objects from archives
9867             whole_archive_flag_spec='$convenience'
9868           fi
9869           archive_cmds_need_lc=yes
9870           # This is similar to how AIX traditionally builds its shared libraries.
9871           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'
9872         fi
9873       fi
9874       ;;
9875
9876     amigaos*)
9877       case $host_cpu in
9878       powerpc)
9879             # see comment about AmigaOS4 .so support
9880             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881             archive_expsym_cmds=''
9882         ;;
9883       m68k)
9884             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)'
9885             hardcode_libdir_flag_spec='-L$libdir'
9886             hardcode_minus_L=yes
9887         ;;
9888       esac
9889       ;;
9890
9891     bsdi[45]*)
9892       export_dynamic_flag_spec=-rdynamic
9893       ;;
9894
9895     cygwin* | mingw* | pw32* | cegcc*)
9896       # When not using gcc, we currently assume that we are using
9897       # Microsoft Visual C++.
9898       # hardcode_libdir_flag_spec is actually meaningless, as there is
9899       # no search path for DLLs.
9900       hardcode_libdir_flag_spec=' '
9901       allow_undefined_flag=unsupported
9902       # Tell ltmain to make .lib files, not .a files.
9903       libext=lib
9904       # Tell ltmain to make .dll files, not .so files.
9905       shrext_cmds=".dll"
9906       # FIXME: Setting linknames here is a bad hack.
9907       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9908       # The linker will automatically build a .lib file if we build a DLL.
9909       old_archive_from_new_cmds='true'
9910       # FIXME: Should let the user specify the lib program.
9911       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9912       fix_srcfile_path='`cygpath -w "$srcfile"`'
9913       enable_shared_with_static_runtimes=yes
9914       ;;
9915
9916     darwin* | rhapsody*)
9917
9918
9919   archive_cmds_need_lc=no
9920   hardcode_direct=no
9921   hardcode_automatic=yes
9922   hardcode_shlibpath_var=unsupported
9923   if test "$lt_cv_ld_force_load" = "yes"; then
9924     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\"`'
9925   else
9926     whole_archive_flag_spec=''
9927   fi
9928   link_all_deplibs=yes
9929   allow_undefined_flag="$_lt_dar_allow_undefined"
9930   case $cc_basename in
9931      ifort*) _lt_dar_can_shared=yes ;;
9932      *) _lt_dar_can_shared=$GCC ;;
9933   esac
9934   if test "$_lt_dar_can_shared" = "yes"; then
9935     output_verbose_link_cmd=func_echo_all
9936     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9937     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9938     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}"
9939     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}"
9940
9941   else
9942   ld_shlibs=no
9943   fi
9944
9945       ;;
9946
9947     dgux*)
9948       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949       hardcode_libdir_flag_spec='-L$libdir'
9950       hardcode_shlibpath_var=no
9951       ;;
9952
9953     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9954     # support.  Future versions do this automatically, but an explicit c++rt0.o
9955     # does not break anything, and helps significantly (at the cost of a little
9956     # extra space).
9957     freebsd2.2*)
9958       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9959       hardcode_libdir_flag_spec='-R$libdir'
9960       hardcode_direct=yes
9961       hardcode_shlibpath_var=no
9962       ;;
9963
9964     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9965     freebsd2.*)
9966       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9967       hardcode_direct=yes
9968       hardcode_minus_L=yes
9969       hardcode_shlibpath_var=no
9970       ;;
9971
9972     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9973     freebsd* | dragonfly*)
9974       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9975       hardcode_libdir_flag_spec='-R$libdir'
9976       hardcode_direct=yes
9977       hardcode_shlibpath_var=no
9978       ;;
9979
9980     hpux9*)
9981       if test "$GCC" = yes; then
9982         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'
9983       else
9984         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'
9985       fi
9986       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9987       hardcode_libdir_separator=:
9988       hardcode_direct=yes
9989
9990       # hardcode_minus_L: Not really in the search PATH,
9991       # but as the default location of the library.
9992       hardcode_minus_L=yes
9993       export_dynamic_flag_spec='${wl}-E'
9994       ;;
9995
9996     hpux10*)
9997       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9998         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9999       else
10000         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10001       fi
10002       if test "$with_gnu_ld" = no; then
10003         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10004         hardcode_libdir_flag_spec_ld='+b $libdir'
10005         hardcode_libdir_separator=:
10006         hardcode_direct=yes
10007         hardcode_direct_absolute=yes
10008         export_dynamic_flag_spec='${wl}-E'
10009         # hardcode_minus_L: Not really in the search PATH,
10010         # but as the default location of the library.
10011         hardcode_minus_L=yes
10012       fi
10013       ;;
10014
10015     hpux11*)
10016       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10017         case $host_cpu in
10018         hppa*64*)
10019           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020           ;;
10021         ia64*)
10022           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023           ;;
10024         *)
10025           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026           ;;
10027         esac
10028       else
10029         case $host_cpu in
10030         hppa*64*)
10031           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032           ;;
10033         ia64*)
10034           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10035           ;;
10036         *)
10037
10038           # Older versions of the 11.00 compiler do not understand -b yet
10039           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10040           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10041 $as_echo_n "checking if $CC understands -b... " >&6; }
10042 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   lt_cv_prog_compiler__b=no
10046    save_LDFLAGS="$LDFLAGS"
10047    LDFLAGS="$LDFLAGS -b"
10048    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10049    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10050      # The linker can only warn and ignore the option if not recognized
10051      # So say no if there are warnings
10052      if test -s conftest.err; then
10053        # Append any errors to the config.log.
10054        cat conftest.err 1>&5
10055        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10056        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057        if diff conftest.exp conftest.er2 >/dev/null; then
10058          lt_cv_prog_compiler__b=yes
10059        fi
10060      else
10061        lt_cv_prog_compiler__b=yes
10062      fi
10063    fi
10064    $RM -r conftest*
10065    LDFLAGS="$save_LDFLAGS"
10066
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10069 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10070
10071 if test x"$lt_cv_prog_compiler__b" = xyes; then
10072     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10073 else
10074     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10075 fi
10076
10077           ;;
10078         esac
10079       fi
10080       if test "$with_gnu_ld" = no; then
10081         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10082         hardcode_libdir_separator=:
10083
10084         case $host_cpu in
10085         hppa*64*|ia64*)
10086           hardcode_direct=no
10087           hardcode_shlibpath_var=no
10088           ;;
10089         *)
10090           hardcode_direct=yes
10091           hardcode_direct_absolute=yes
10092           export_dynamic_flag_spec='${wl}-E'
10093
10094           # hardcode_minus_L: Not really in the search PATH,
10095           # but as the default location of the library.
10096           hardcode_minus_L=yes
10097           ;;
10098         esac
10099       fi
10100       ;;
10101
10102     irix5* | irix6* | nonstopux*)
10103       if test "$GCC" = yes; then
10104         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'
10105         # Try to use the -exported_symbol ld option, if it does not
10106         # work, assume that -exports_file does not work either and
10107         # implicitly export all symbols.
10108         save_LDFLAGS="$LDFLAGS"
10109         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h.  */
10112 int foo(void) {}
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115   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'
10116
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext \
10119     conftest$ac_exeext conftest.$ac_ext
10120         LDFLAGS="$save_LDFLAGS"
10121       else
10122         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'
10123         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'
10124       fi
10125       archive_cmds_need_lc='no'
10126       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10127       hardcode_libdir_separator=:
10128       inherit_rpath=yes
10129       link_all_deplibs=yes
10130       ;;
10131
10132     netbsd*)
10133       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10134         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10135       else
10136         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10137       fi
10138       hardcode_libdir_flag_spec='-R$libdir'
10139       hardcode_direct=yes
10140       hardcode_shlibpath_var=no
10141       ;;
10142
10143     newsos6)
10144       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145       hardcode_direct=yes
10146       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147       hardcode_libdir_separator=:
10148       hardcode_shlibpath_var=no
10149       ;;
10150
10151     *nto* | *qnx*)
10152       ;;
10153
10154     openbsd*)
10155       if test -f /usr/libexec/ld.so; then
10156         hardcode_direct=yes
10157         hardcode_shlibpath_var=no
10158         hardcode_direct_absolute=yes
10159         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10160           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10162           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10163           export_dynamic_flag_spec='${wl}-E'
10164         else
10165           case $host_os in
10166            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10167              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10168              hardcode_libdir_flag_spec='-R$libdir'
10169              ;;
10170            *)
10171              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10172              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10173              ;;
10174           esac
10175         fi
10176       else
10177         ld_shlibs=no
10178       fi
10179       ;;
10180
10181     os2*)
10182       hardcode_libdir_flag_spec='-L$libdir'
10183       hardcode_minus_L=yes
10184       allow_undefined_flag=unsupported
10185       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'
10186       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10187       ;;
10188
10189     osf3*)
10190       if test "$GCC" = yes; then
10191         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10192         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'
10193       else
10194         allow_undefined_flag=' -expect_unresolved \*'
10195         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'
10196       fi
10197       archive_cmds_need_lc='no'
10198       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10199       hardcode_libdir_separator=:
10200       ;;
10201
10202     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10203       if test "$GCC" = yes; then
10204         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10205         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'
10206         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10207       else
10208         allow_undefined_flag=' -expect_unresolved \*'
10209         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'
10210         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~
10211         $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'
10212
10213         # Both c and cxx compiler support -rpath directly
10214         hardcode_libdir_flag_spec='-rpath $libdir'
10215       fi
10216       archive_cmds_need_lc='no'
10217       hardcode_libdir_separator=:
10218       ;;
10219
10220     solaris*)
10221       no_undefined_flag=' -z defs'
10222       if test "$GCC" = yes; then
10223         wlarc='${wl}'
10224         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10227       else
10228         case `$CC -V 2>&1` in
10229         *"Compilers 5.0"*)
10230           wlarc=''
10231           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10233           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10234           ;;
10235         *)
10236           wlarc='${wl}'
10237           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10238           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10240           ;;
10241         esac
10242       fi
10243       hardcode_libdir_flag_spec='-R$libdir'
10244       hardcode_shlibpath_var=no
10245       case $host_os in
10246       solaris2.[0-5] | solaris2.[0-5].*) ;;
10247       *)
10248         # The compiler driver will combine and reorder linker options,
10249         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10250         # but is careful enough not to reorder.
10251         # Supported since Solaris 2.6 (maybe 2.5.1?)
10252         if test "$GCC" = yes; then
10253           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10254         else
10255           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10256         fi
10257         ;;
10258       esac
10259       link_all_deplibs=yes
10260       ;;
10261
10262     sunos4*)
10263       if test "x$host_vendor" = xsequent; then
10264         # Use $CC to link under sequent, because it throws in some extra .o
10265         # files that make .init and .fini sections work.
10266         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10267       else
10268         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10269       fi
10270       hardcode_libdir_flag_spec='-L$libdir'
10271       hardcode_direct=yes
10272       hardcode_minus_L=yes
10273       hardcode_shlibpath_var=no
10274       ;;
10275
10276     sysv4)
10277       case $host_vendor in
10278         sni)
10279           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280           hardcode_direct=yes # is this really true???
10281         ;;
10282         siemens)
10283           ## LD is ld it makes a PLAMLIB
10284           ## CC just makes a GrossModule.
10285           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10286           reload_cmds='$CC -r -o $output$reload_objs'
10287           hardcode_direct=no
10288         ;;
10289         motorola)
10290           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10292         ;;
10293       esac
10294       runpath_var='LD_RUN_PATH'
10295       hardcode_shlibpath_var=no
10296       ;;
10297
10298     sysv4.3*)
10299       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300       hardcode_shlibpath_var=no
10301       export_dynamic_flag_spec='-Bexport'
10302       ;;
10303
10304     sysv4*MP*)
10305       if test -d /usr/nec; then
10306         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307         hardcode_shlibpath_var=no
10308         runpath_var=LD_RUN_PATH
10309         hardcode_runpath_var=yes
10310         ld_shlibs=yes
10311       fi
10312       ;;
10313
10314     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10315       no_undefined_flag='${wl}-z,text'
10316       archive_cmds_need_lc=no
10317       hardcode_shlibpath_var=no
10318       runpath_var='LD_RUN_PATH'
10319
10320       if test "$GCC" = yes; then
10321         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323       else
10324         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326       fi
10327       ;;
10328
10329     sysv5* | sco3.2v5* | sco5v6*)
10330       # Note: We can NOT use -z defs as we might desire, because we do not
10331       # link with -lc, and that would cause any symbols used from libc to
10332       # always be unresolved, which means just about no library would
10333       # ever link correctly.  If we're not using GNU ld we use -z text
10334       # though, which does catch some bad symbols but isn't as heavy-handed
10335       # as -z defs.
10336       no_undefined_flag='${wl}-z,text'
10337       allow_undefined_flag='${wl}-z,nodefs'
10338       archive_cmds_need_lc=no
10339       hardcode_shlibpath_var=no
10340       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10341       hardcode_libdir_separator=':'
10342       link_all_deplibs=yes
10343       export_dynamic_flag_spec='${wl}-Bexport'
10344       runpath_var='LD_RUN_PATH'
10345
10346       if test "$GCC" = yes; then
10347         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349       else
10350         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352       fi
10353       ;;
10354
10355     uts4*)
10356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357       hardcode_libdir_flag_spec='-L$libdir'
10358       hardcode_shlibpath_var=no
10359       ;;
10360
10361     *)
10362       ld_shlibs=no
10363       ;;
10364     esac
10365
10366     if test x$host_vendor = xsni; then
10367       case $host in
10368       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10369         export_dynamic_flag_spec='${wl}-Blargedynsym'
10370         ;;
10371       esac
10372     fi
10373   fi
10374
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10376 $as_echo "$ld_shlibs" >&6; }
10377 test "$ld_shlibs" = no && can_build_shared=no
10378
10379 with_gnu_ld=$with_gnu_ld
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395 #
10396 # Do we need to explicitly link libc?
10397 #
10398 case "x$archive_cmds_need_lc" in
10399 x|xyes)
10400   # Assume -lc should be added
10401   archive_cmds_need_lc=yes
10402
10403   if test "$enable_shared" = yes && test "$GCC" = yes; then
10404     case $archive_cmds in
10405     *'~'*)
10406       # FIXME: we may have to deal with multi-command sequences.
10407       ;;
10408     '$CC '*)
10409       # Test whether the compiler implicitly links with -lc since on some
10410       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10411       # to ld, don't add -lc before -lgcc.
10412       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10414 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417   $RM conftest*
10418         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10419
10420         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10421   (eval $ac_compile) 2>&5
10422   ac_status=$?
10423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10424   test $ac_status = 0; } 2>conftest.err; then
10425           soname=conftest
10426           lib=conftest
10427           libobjs=conftest.$ac_objext
10428           deplibs=
10429           wl=$lt_prog_compiler_wl
10430           pic_flag=$lt_prog_compiler_pic
10431           compiler_flags=-v
10432           linker_flags=-v
10433           verstring=
10434           output_objdir=.
10435           libname=conftest
10436           lt_save_allow_undefined_flag=$allow_undefined_flag
10437           allow_undefined_flag=
10438           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10439   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10440   ac_status=$?
10441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10442   test $ac_status = 0; }
10443           then
10444             lt_cv_archive_cmds_need_lc=no
10445           else
10446             lt_cv_archive_cmds_need_lc=yes
10447           fi
10448           allow_undefined_flag=$lt_save_allow_undefined_flag
10449         else
10450           cat conftest.err 1>&5
10451         fi
10452         $RM conftest*
10453
10454 fi
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10456 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10457       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10458       ;;
10459     esac
10460   fi
10461   ;;
10462 esac
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10621 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10622
10623 if test "$GCC" = yes; then
10624   case $host_os in
10625     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10626     *) lt_awk_arg="/^libraries:/" ;;
10627   esac
10628   case $host_os in
10629     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10630     *) lt_sed_strip_eq="s,=/,/,g" ;;
10631   esac
10632   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10633   case $lt_search_path_spec in
10634   *\;*)
10635     # if the path contains ";" then we assume it to be the separator
10636     # otherwise default to the standard path separator (i.e. ":") - it is
10637     # assumed that no part of a normal pathname contains ";" but that should
10638     # okay in the real world where ";" in dirpaths is itself problematic.
10639     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10640     ;;
10641   *)
10642     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10643     ;;
10644   esac
10645   # Ok, now we have the path, separated by spaces, we can step through it
10646   # and add multilib dir if necessary.
10647   lt_tmp_lt_search_path_spec=
10648   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10649   for lt_sys_path in $lt_search_path_spec; do
10650     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10651       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10652     else
10653       test -d "$lt_sys_path" && \
10654         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10655     fi
10656   done
10657   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10658 BEGIN {RS=" "; FS="/|\n";} {
10659   lt_foo="";
10660   lt_count=0;
10661   for (lt_i = NF; lt_i > 0; lt_i--) {
10662     if ($lt_i != "" && $lt_i != ".") {
10663       if ($lt_i == "..") {
10664         lt_count++;
10665       } else {
10666         if (lt_count == 0) {
10667           lt_foo="/" $lt_i lt_foo;
10668         } else {
10669           lt_count--;
10670         }
10671       }
10672     }
10673   }
10674   if (lt_foo != "") { lt_freq[lt_foo]++; }
10675   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10676 }'`
10677   # AWK program above erroneously prepends '/' to C:/dos/paths
10678   # for these hosts.
10679   case $host_os in
10680     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10681       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10682   esac
10683   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10684 else
10685   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10686 fi
10687 library_names_spec=
10688 libname_spec='lib$name'
10689 soname_spec=
10690 shrext_cmds=".so"
10691 postinstall_cmds=
10692 postuninstall_cmds=
10693 finish_cmds=
10694 finish_eval=
10695 shlibpath_var=
10696 shlibpath_overrides_runpath=unknown
10697 version_type=none
10698 dynamic_linker="$host_os ld.so"
10699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10700 need_lib_prefix=unknown
10701 hardcode_into_libs=no
10702
10703 # when you set need_version to no, make sure it does not cause -set_version
10704 # flags to be left without arguments
10705 need_version=unknown
10706
10707 case $host_os in
10708 aix3*)
10709   version_type=linux
10710   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10711   shlibpath_var=LIBPATH
10712
10713   # AIX 3 has no versioning support, so we append a major version to the name.
10714   soname_spec='${libname}${release}${shared_ext}$major'
10715   ;;
10716
10717 aix[4-9]*)
10718   version_type=linux
10719   need_lib_prefix=no
10720   need_version=no
10721   hardcode_into_libs=yes
10722   if test "$host_cpu" = ia64; then
10723     # AIX 5 supports IA64
10724     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10725     shlibpath_var=LD_LIBRARY_PATH
10726   else
10727     # With GCC up to 2.95.x, collect2 would create an import file
10728     # for dependence libraries.  The import file would start with
10729     # the line `#! .'.  This would cause the generated library to
10730     # depend on `.', always an invalid library.  This was fixed in
10731     # development snapshots of GCC prior to 3.0.
10732     case $host_os in
10733       aix4 | aix4.[01] | aix4.[01].*)
10734       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10735            echo ' yes '
10736            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10737         :
10738       else
10739         can_build_shared=no
10740       fi
10741       ;;
10742     esac
10743     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10744     # soname into executable. Probably we can add versioning support to
10745     # collect2, so additional links can be useful in future.
10746     if test "$aix_use_runtimelinking" = yes; then
10747       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10748       # instead of lib<name>.a to let people know that these are not
10749       # typical AIX shared libraries.
10750       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751     else
10752       # We preserve .a as extension for shared libraries through AIX4.2
10753       # and later when we are not doing run time linking.
10754       library_names_spec='${libname}${release}.a $libname.a'
10755       soname_spec='${libname}${release}${shared_ext}$major'
10756     fi
10757     shlibpath_var=LIBPATH
10758   fi
10759   ;;
10760
10761 amigaos*)
10762   case $host_cpu in
10763   powerpc)
10764     # Since July 2007 AmigaOS4 officially supports .so libraries.
10765     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767     ;;
10768   m68k)
10769     library_names_spec='$libname.ixlibrary $libname.a'
10770     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10771     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'
10772     ;;
10773   esac
10774   ;;
10775
10776 beos*)
10777   library_names_spec='${libname}${shared_ext}'
10778   dynamic_linker="$host_os ld.so"
10779   shlibpath_var=LIBRARY_PATH
10780   ;;
10781
10782 bsdi[45]*)
10783   version_type=linux
10784   need_version=no
10785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786   soname_spec='${libname}${release}${shared_ext}$major'
10787   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10788   shlibpath_var=LD_LIBRARY_PATH
10789   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10790   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10791   # the default ld.so.conf also contains /usr/contrib/lib and
10792   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10793   # libtool to hard-code these into programs
10794   ;;
10795
10796 cygwin* | mingw* | pw32* | cegcc*)
10797   version_type=windows
10798   shrext_cmds=".dll"
10799   need_version=no
10800   need_lib_prefix=no
10801
10802   case $GCC,$host_os in
10803   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10804     library_names_spec='$libname.dll.a'
10805     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10806     postinstall_cmds='base_file=`basename \${file}`~
10807       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10808       dldir=$destdir/`dirname \$dlpath`~
10809       test -d \$dldir || mkdir -p \$dldir~
10810       $install_prog $dir/$dlname \$dldir/$dlname~
10811       chmod a+x \$dldir/$dlname~
10812       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10813         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10814       fi'
10815     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10816       dlpath=$dir/\$dldll~
10817        $RM \$dlpath'
10818     shlibpath_overrides_runpath=yes
10819
10820     case $host_os in
10821     cygwin*)
10822       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10823       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10824
10825       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10826       ;;
10827     mingw* | cegcc*)
10828       # MinGW DLLs use traditional 'lib' prefix
10829       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830       ;;
10831     pw32*)
10832       # pw32 DLLs use 'pw' prefix rather than 'lib'
10833       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10834       ;;
10835     esac
10836     ;;
10837
10838   *)
10839     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10840     ;;
10841   esac
10842   dynamic_linker='Win32 ld.exe'
10843   # FIXME: first we should search . and the directory the executable is in
10844   shlibpath_var=PATH
10845   ;;
10846
10847 darwin* | rhapsody*)
10848   dynamic_linker="$host_os dyld"
10849   version_type=darwin
10850   need_lib_prefix=no
10851   need_version=no
10852   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10853   soname_spec='${libname}${release}${major}$shared_ext'
10854   shlibpath_overrides_runpath=yes
10855   shlibpath_var=DYLD_LIBRARY_PATH
10856   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10857
10858   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10859   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10860   ;;
10861
10862 dgux*)
10863   version_type=linux
10864   need_lib_prefix=no
10865   need_version=no
10866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10867   soname_spec='${libname}${release}${shared_ext}$major'
10868   shlibpath_var=LD_LIBRARY_PATH
10869   ;;
10870
10871 freebsd* | dragonfly*)
10872   # DragonFly does not have aout.  When/if they implement a new
10873   # versioning mechanism, adjust this.
10874   if test -x /usr/bin/objformat; then
10875     objformat=`/usr/bin/objformat`
10876   else
10877     case $host_os in
10878     freebsd[23].*) objformat=aout ;;
10879     *) objformat=elf ;;
10880     esac
10881   fi
10882   version_type=freebsd-$objformat
10883   case $version_type in
10884     freebsd-elf*)
10885       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10886       need_version=no
10887       need_lib_prefix=no
10888       ;;
10889     freebsd-*)
10890       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10891       need_version=yes
10892       ;;
10893   esac
10894   shlibpath_var=LD_LIBRARY_PATH
10895   case $host_os in
10896   freebsd2.*)
10897     shlibpath_overrides_runpath=yes
10898     ;;
10899   freebsd3.[01]* | freebsdelf3.[01]*)
10900     shlibpath_overrides_runpath=yes
10901     hardcode_into_libs=yes
10902     ;;
10903   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10904   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10905     shlibpath_overrides_runpath=no
10906     hardcode_into_libs=yes
10907     ;;
10908   *) # from 4.6 on, and DragonFly
10909     shlibpath_overrides_runpath=yes
10910     hardcode_into_libs=yes
10911     ;;
10912   esac
10913   ;;
10914
10915 gnu*)
10916   version_type=linux
10917   need_lib_prefix=no
10918   need_version=no
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920   soname_spec='${libname}${release}${shared_ext}$major'
10921   shlibpath_var=LD_LIBRARY_PATH
10922   hardcode_into_libs=yes
10923   ;;
10924
10925 haiku*)
10926   version_type=linux
10927   need_lib_prefix=no
10928   need_version=no
10929   dynamic_linker="$host_os runtime_loader"
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10931   soname_spec='${libname}${release}${shared_ext}$major'
10932   shlibpath_var=LIBRARY_PATH
10933   shlibpath_overrides_runpath=yes
10934   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10935   hardcode_into_libs=yes
10936   ;;
10937
10938 hpux9* | hpux10* | hpux11*)
10939   # Give a soname corresponding to the major version so that dld.sl refuses to
10940   # link against other versions.
10941   version_type=sunos
10942   need_lib_prefix=no
10943   need_version=no
10944   case $host_cpu in
10945   ia64*)
10946     shrext_cmds='.so'
10947     hardcode_into_libs=yes
10948     dynamic_linker="$host_os dld.so"
10949     shlibpath_var=LD_LIBRARY_PATH
10950     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952     soname_spec='${libname}${release}${shared_ext}$major'
10953     if test "X$HPUX_IA64_MODE" = X32; then
10954       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10955     else
10956       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10957     fi
10958     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10959     ;;
10960   hppa*64*)
10961     shrext_cmds='.sl'
10962     hardcode_into_libs=yes
10963     dynamic_linker="$host_os dld.sl"
10964     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10965     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967     soname_spec='${libname}${release}${shared_ext}$major'
10968     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10969     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10970     ;;
10971   *)
10972     shrext_cmds='.sl'
10973     dynamic_linker="$host_os dld.sl"
10974     shlibpath_var=SHLIB_PATH
10975     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977     soname_spec='${libname}${release}${shared_ext}$major'
10978     ;;
10979   esac
10980   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10981   postinstall_cmds='chmod 555 $lib'
10982   # or fails outright, so override atomically:
10983   install_override_mode=555
10984   ;;
10985
10986 interix[3-9]*)
10987   version_type=linux
10988   need_lib_prefix=no
10989   need_version=no
10990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10991   soname_spec='${libname}${release}${shared_ext}$major'
10992   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10993   shlibpath_var=LD_LIBRARY_PATH
10994   shlibpath_overrides_runpath=no
10995   hardcode_into_libs=yes
10996   ;;
10997
10998 irix5* | irix6* | nonstopux*)
10999   case $host_os in
11000     nonstopux*) version_type=nonstopux ;;
11001     *)
11002         if test "$lt_cv_prog_gnu_ld" = yes; then
11003                 version_type=linux
11004         else
11005                 version_type=irix
11006         fi ;;
11007   esac
11008   need_lib_prefix=no
11009   need_version=no
11010   soname_spec='${libname}${release}${shared_ext}$major'
11011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11012   case $host_os in
11013   irix5* | nonstopux*)
11014     libsuff= shlibsuff=
11015     ;;
11016   *)
11017     case $LD in # libtool.m4 will add one of these switches to LD
11018     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11019       libsuff= shlibsuff= libmagic=32-bit;;
11020     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11021       libsuff=32 shlibsuff=N32 libmagic=N32;;
11022     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11023       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11024     *) libsuff= shlibsuff= libmagic=never-match;;
11025     esac
11026     ;;
11027   esac
11028   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11029   shlibpath_overrides_runpath=no
11030   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11031   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11032   hardcode_into_libs=yes
11033   ;;
11034
11035 # No shared lib support for Linux oldld, aout, or coff.
11036 linux*oldld* | linux*aout* | linux*coff*)
11037   dynamic_linker=no
11038   ;;
11039
11040 # This must be Linux ELF.
11041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11042   version_type=linux
11043   need_lib_prefix=no
11044   need_version=no
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   shlibpath_overrides_runpath=no
11050
11051   # Some binutils ld are patched to set DT_RUNPATH
11052   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   lt_cv_shlibpath_overrides_runpath=no
11056     save_LDFLAGS=$LDFLAGS
11057     save_libdir=$libdir
11058     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11059          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h.  */
11062
11063 int
11064 main ()
11065 {
11066
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11073   lt_cv_shlibpath_overrides_runpath=yes
11074 fi
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext \
11077     conftest$ac_exeext conftest.$ac_ext
11078     LDFLAGS=$save_LDFLAGS
11079     libdir=$save_libdir
11080
11081 fi
11082
11083   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11084
11085   # This implies no fast_install, which is unacceptable.
11086   # Some rework will be needed to allow for fast_install
11087   # before this can be enabled.
11088   hardcode_into_libs=yes
11089
11090   # Append ld.so.conf contents to the search path
11091   if test -f /etc/ld.so.conf; then
11092     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' ' '`
11093     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11094   fi
11095
11096   # We used to test for /lib/ld.so.1 and disable shared libraries on
11097   # powerpc, because MkLinux only supported shared libraries with the
11098   # GNU dynamic linker.  Since this was broken with cross compilers,
11099   # most powerpc-linux boxes support dynamic linking these days and
11100   # people can always --disable-shared, the test was removed, and we
11101   # assume the GNU/Linux dynamic linker is in use.
11102   dynamic_linker='GNU/Linux ld.so'
11103   ;;
11104
11105 netbsd*)
11106   version_type=sunos
11107   need_lib_prefix=no
11108   need_version=no
11109   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11111     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11112     dynamic_linker='NetBSD (a.out) ld.so'
11113   else
11114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11115     soname_spec='${libname}${release}${shared_ext}$major'
11116     dynamic_linker='NetBSD ld.elf_so'
11117   fi
11118   shlibpath_var=LD_LIBRARY_PATH
11119   shlibpath_overrides_runpath=yes
11120   hardcode_into_libs=yes
11121   ;;
11122
11123 newsos6)
11124   version_type=linux
11125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126   shlibpath_var=LD_LIBRARY_PATH
11127   shlibpath_overrides_runpath=yes
11128   ;;
11129
11130 *nto* | *qnx*)
11131   version_type=qnx
11132   need_lib_prefix=no
11133   need_version=no
11134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135   soname_spec='${libname}${release}${shared_ext}$major'
11136   shlibpath_var=LD_LIBRARY_PATH
11137   shlibpath_overrides_runpath=no
11138   hardcode_into_libs=yes
11139   dynamic_linker='ldqnx.so'
11140   ;;
11141
11142 openbsd*)
11143   version_type=sunos
11144   sys_lib_dlsearch_path_spec="/usr/lib"
11145   need_lib_prefix=no
11146   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11147   case $host_os in
11148     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11149     *)                          need_version=no  ;;
11150   esac
11151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11152   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11155     case $host_os in
11156       openbsd2.[89] | openbsd2.[89].*)
11157         shlibpath_overrides_runpath=no
11158         ;;
11159       *)
11160         shlibpath_overrides_runpath=yes
11161         ;;
11162       esac
11163   else
11164     shlibpath_overrides_runpath=yes
11165   fi
11166   ;;
11167
11168 os2*)
11169   libname_spec='$name'
11170   shrext_cmds=".dll"
11171   need_lib_prefix=no
11172   library_names_spec='$libname${shared_ext} $libname.a'
11173   dynamic_linker='OS/2 ld.exe'
11174   shlibpath_var=LIBPATH
11175   ;;
11176
11177 osf3* | osf4* | osf5*)
11178   version_type=osf
11179   need_lib_prefix=no
11180   need_version=no
11181   soname_spec='${libname}${release}${shared_ext}$major'
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11185   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11186   ;;
11187
11188 rdos*)
11189   dynamic_linker=no
11190   ;;
11191
11192 solaris*)
11193   version_type=linux
11194   need_lib_prefix=no
11195   need_version=no
11196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197   soname_spec='${libname}${release}${shared_ext}$major'
11198   shlibpath_var=LD_LIBRARY_PATH
11199   shlibpath_overrides_runpath=yes
11200   hardcode_into_libs=yes
11201   # ldd complains unless libraries are executable
11202   postinstall_cmds='chmod +x $lib'
11203   ;;
11204
11205 sunos4*)
11206   version_type=sunos
11207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11209   shlibpath_var=LD_LIBRARY_PATH
11210   shlibpath_overrides_runpath=yes
11211   if test "$with_gnu_ld" = yes; then
11212     need_lib_prefix=no
11213   fi
11214   need_version=yes
11215   ;;
11216
11217 sysv4 | sysv4.3*)
11218   version_type=linux
11219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220   soname_spec='${libname}${release}${shared_ext}$major'
11221   shlibpath_var=LD_LIBRARY_PATH
11222   case $host_vendor in
11223     sni)
11224       shlibpath_overrides_runpath=no
11225       need_lib_prefix=no
11226       runpath_var=LD_RUN_PATH
11227       ;;
11228     siemens)
11229       need_lib_prefix=no
11230       ;;
11231     motorola)
11232       need_lib_prefix=no
11233       need_version=no
11234       shlibpath_overrides_runpath=no
11235       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11236       ;;
11237   esac
11238   ;;
11239
11240 sysv4*MP*)
11241   if test -d /usr/nec ;then
11242     version_type=linux
11243     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11244     soname_spec='$libname${shared_ext}.$major'
11245     shlibpath_var=LD_LIBRARY_PATH
11246   fi
11247   ;;
11248
11249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11250   version_type=freebsd-elf
11251   need_lib_prefix=no
11252   need_version=no
11253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11254   soname_spec='${libname}${release}${shared_ext}$major'
11255   shlibpath_var=LD_LIBRARY_PATH
11256   shlibpath_overrides_runpath=yes
11257   hardcode_into_libs=yes
11258   if test "$with_gnu_ld" = yes; then
11259     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11260   else
11261     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11262     case $host_os in
11263       sco3.2v5*)
11264         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11265         ;;
11266     esac
11267   fi
11268   sys_lib_dlsearch_path_spec='/usr/lib'
11269   ;;
11270
11271 tpf*)
11272   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11273   version_type=linux
11274   need_lib_prefix=no
11275   need_version=no
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=no
11279   hardcode_into_libs=yes
11280   ;;
11281
11282 uts4*)
11283   version_type=linux
11284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285   soname_spec='${libname}${release}${shared_ext}$major'
11286   shlibpath_var=LD_LIBRARY_PATH
11287   ;;
11288
11289 *)
11290   dynamic_linker=no
11291   ;;
11292 esac
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11294 $as_echo "$dynamic_linker" >&6; }
11295 test "$dynamic_linker" = no && can_build_shared=no
11296
11297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11298 if test "$GCC" = yes; then
11299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11300 fi
11301
11302 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11303   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11304 fi
11305 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11306   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11307 fi
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11402 hardcode_action=
11403 if test -n "$hardcode_libdir_flag_spec" ||
11404    test -n "$runpath_var" ||
11405    test "X$hardcode_automatic" = "Xyes" ; then
11406
11407   # We can hardcode non-existent directories.
11408   if test "$hardcode_direct" != no &&
11409      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11410      # have to relink, otherwise we might link with an installed library
11411      # when we should be linking with a yet-to-be-installed one
11412      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11413      test "$hardcode_minus_L" != no; then
11414     # Linking always hardcodes the temporary library directory.
11415     hardcode_action=relink
11416   else
11417     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11418     hardcode_action=immediate
11419   fi
11420 else
11421   # We cannot hardcode anything, or else we can only hardcode existing
11422   # directories.
11423   hardcode_action=unsupported
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11426 $as_echo "$hardcode_action" >&6; }
11427
11428 if test "$hardcode_action" = relink ||
11429    test "$inherit_rpath" = yes; then
11430   # Fast installation is not supported
11431   enable_fast_install=no
11432 elif test "$shlibpath_overrides_runpath" = yes ||
11433      test "$enable_shared" = no; then
11434   # Fast installation is not necessary
11435   enable_fast_install=needless
11436 fi
11437
11438
11439
11440
11441
11442
11443   if test "x$enable_dlopen" != xyes; then
11444   enable_dlopen=unknown
11445   enable_dlopen_self=unknown
11446   enable_dlopen_self_static=unknown
11447 else
11448   lt_cv_dlopen=no
11449   lt_cv_dlopen_libs=
11450
11451   case $host_os in
11452   beos*)
11453     lt_cv_dlopen="load_add_on"
11454     lt_cv_dlopen_libs=
11455     lt_cv_dlopen_self=yes
11456     ;;
11457
11458   mingw* | pw32* | cegcc*)
11459     lt_cv_dlopen="LoadLibrary"
11460     lt_cv_dlopen_libs=
11461     ;;
11462
11463   cygwin*)
11464     lt_cv_dlopen="dlopen"
11465     lt_cv_dlopen_libs=
11466     ;;
11467
11468   darwin*)
11469   # if libdl is installed we need to link against it
11470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11471 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11472 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   ac_check_lib_save_LIBS=$LIBS
11476 LIBS="-ldl  $LIBS"
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h.  */
11479
11480 /* Override any GCC internal prototype to avoid an error.
11481    Use char because int might match the return type of a GCC
11482    builtin and then its argument prototype would still apply.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char dlopen ();
11487 int
11488 main ()
11489 {
11490 return dlopen ();
11491   ;
11492   return 0;
11493 }
11494 _ACEOF
11495 if ac_fn_c_try_link "$LINENO"; then :
11496   ac_cv_lib_dl_dlopen=yes
11497 else
11498   ac_cv_lib_dl_dlopen=no
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext \
11501     conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_lib_save_LIBS
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11505 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11506 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11507   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11508 else
11509
11510     lt_cv_dlopen="dyld"
11511     lt_cv_dlopen_libs=
11512     lt_cv_dlopen_self=yes
11513
11514 fi
11515
11516     ;;
11517
11518   *)
11519     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11520 if test "x$ac_cv_func_shl_load" = x""yes; then :
11521   lt_cv_dlopen="shl_load"
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11524 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11525 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-ldld  $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534    Use char because int might match the return type of a GCC
11535    builtin and then its argument prototype would still apply.  */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char shl_load ();
11540 int
11541 main ()
11542 {
11543 return shl_load ();
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549   ac_cv_lib_dld_shl_load=yes
11550 else
11551   ac_cv_lib_dld_shl_load=no
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext \
11554     conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11556 fi
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11558 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11559 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11560   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11561 else
11562   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11563 if test "x$ac_cv_func_dlopen" = x""yes; then :
11564   lt_cv_dlopen="dlopen"
11565 else
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11569   $as_echo_n "(cached) " >&6
11570 else
11571   ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-ldl  $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h.  */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577    Use char because int might match the return type of a GCC
11578    builtin and then its argument prototype would still apply.  */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dlopen ();
11583 int
11584 main ()
11585 {
11586 return dlopen ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592   ac_cv_lib_dl_dlopen=yes
11593 else
11594   ac_cv_lib_dl_dlopen=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext \
11597     conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11602 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11603   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11604 else
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11606 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11607 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11608   $as_echo_n "(cached) " >&6
11609 else
11610   ac_check_lib_save_LIBS=$LIBS
11611 LIBS="-lsvld  $LIBS"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h.  */
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616    Use char because int might match the return type of a GCC
11617    builtin and then its argument prototype would still apply.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char dlopen ();
11622 int
11623 main ()
11624 {
11625 return dlopen ();
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631   ac_cv_lib_svld_dlopen=yes
11632 else
11633   ac_cv_lib_svld_dlopen=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636     conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11640 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11641 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11642   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11643 else
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11645 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11646 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-ldld  $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h.  */
11653
11654 /* Override any GCC internal prototype to avoid an error.
11655    Use char because int might match the return type of a GCC
11656    builtin and then its argument prototype would still apply.  */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char dld_link ();
11661 int
11662 main ()
11663 {
11664 return dld_link ();
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670   ac_cv_lib_dld_dld_link=yes
11671 else
11672   ac_cv_lib_dld_dld_link=no
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext \
11675     conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11679 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11680 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11681   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690
11691 fi
11692
11693
11694 fi
11695
11696
11697 fi
11698
11699     ;;
11700   esac
11701
11702   if test "x$lt_cv_dlopen" != xno; then
11703     enable_dlopen=yes
11704   else
11705     enable_dlopen=no
11706   fi
11707
11708   case $lt_cv_dlopen in
11709   dlopen)
11710     save_CPPFLAGS="$CPPFLAGS"
11711     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11712
11713     save_LDFLAGS="$LDFLAGS"
11714     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715
11716     save_LIBS="$LIBS"
11717     LIBS="$lt_cv_dlopen_libs $LIBS"
11718
11719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11720 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11721 if test "${lt_cv_dlopen_self+set}" = set; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724           if test "$cross_compiling" = yes; then :
11725   lt_cv_dlopen_self=cross
11726 else
11727   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11728   lt_status=$lt_dlunknown
11729   cat > conftest.$ac_ext <<_LT_EOF
11730 #line 11730 "configure"
11731 #include "confdefs.h"
11732
11733 #if HAVE_DLFCN_H
11734 #include <dlfcn.h>
11735 #endif
11736
11737 #include <stdio.h>
11738
11739 #ifdef RTLD_GLOBAL
11740 #  define LT_DLGLOBAL           RTLD_GLOBAL
11741 #else
11742 #  ifdef DL_GLOBAL
11743 #    define LT_DLGLOBAL         DL_GLOBAL
11744 #  else
11745 #    define LT_DLGLOBAL         0
11746 #  endif
11747 #endif
11748
11749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11750    find out it does not work in some platform. */
11751 #ifndef LT_DLLAZY_OR_NOW
11752 #  ifdef RTLD_LAZY
11753 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11754 #  else
11755 #    ifdef DL_LAZY
11756 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11757 #    else
11758 #      ifdef RTLD_NOW
11759 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11760 #      else
11761 #        ifdef DL_NOW
11762 #          define LT_DLLAZY_OR_NOW      DL_NOW
11763 #        else
11764 #          define LT_DLLAZY_OR_NOW      0
11765 #        endif
11766 #      endif
11767 #    endif
11768 #  endif
11769 #endif
11770
11771 /* When -fvisbility=hidden is used, assume the code has been annotated
11772    correspondingly for the symbols needed.  */
11773 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11774 void fnord () __attribute__((visibility("default")));
11775 #endif
11776
11777 void fnord () { int i=42; }
11778 int main ()
11779 {
11780   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11781   int status = $lt_dlunknown;
11782
11783   if (self)
11784     {
11785       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11786       else
11787         {
11788           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11789           else puts (dlerror ());
11790         }
11791       /* dlclose (self); */
11792     }
11793   else
11794     puts (dlerror ());
11795
11796   return status;
11797 }
11798 _LT_EOF
11799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11800   (eval $ac_link) 2>&5
11801   ac_status=$?
11802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11804     (./conftest; exit; ) >&5 2>/dev/null
11805     lt_status=$?
11806     case x$lt_status in
11807       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11808       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11809       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11810     esac
11811   else :
11812     # compilation failed
11813     lt_cv_dlopen_self=no
11814   fi
11815 fi
11816 rm -fr conftest*
11817
11818
11819 fi
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11821 $as_echo "$lt_cv_dlopen_self" >&6; }
11822
11823     if test "x$lt_cv_dlopen_self" = xyes; then
11824       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11825       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11826 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11827 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830           if test "$cross_compiling" = yes; then :
11831   lt_cv_dlopen_self_static=cross
11832 else
11833   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11834   lt_status=$lt_dlunknown
11835   cat > conftest.$ac_ext <<_LT_EOF
11836 #line 11836 "configure"
11837 #include "confdefs.h"
11838
11839 #if HAVE_DLFCN_H
11840 #include <dlfcn.h>
11841 #endif
11842
11843 #include <stdio.h>
11844
11845 #ifdef RTLD_GLOBAL
11846 #  define LT_DLGLOBAL           RTLD_GLOBAL
11847 #else
11848 #  ifdef DL_GLOBAL
11849 #    define LT_DLGLOBAL         DL_GLOBAL
11850 #  else
11851 #    define LT_DLGLOBAL         0
11852 #  endif
11853 #endif
11854
11855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11856    find out it does not work in some platform. */
11857 #ifndef LT_DLLAZY_OR_NOW
11858 #  ifdef RTLD_LAZY
11859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11860 #  else
11861 #    ifdef DL_LAZY
11862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11863 #    else
11864 #      ifdef RTLD_NOW
11865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11866 #      else
11867 #        ifdef DL_NOW
11868 #          define LT_DLLAZY_OR_NOW      DL_NOW
11869 #        else
11870 #          define LT_DLLAZY_OR_NOW      0
11871 #        endif
11872 #      endif
11873 #    endif
11874 #  endif
11875 #endif
11876
11877 /* When -fvisbility=hidden is used, assume the code has been annotated
11878    correspondingly for the symbols needed.  */
11879 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11880 void fnord () __attribute__((visibility("default")));
11881 #endif
11882
11883 void fnord () { int i=42; }
11884 int main ()
11885 {
11886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887   int status = $lt_dlunknown;
11888
11889   if (self)
11890     {
11891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11892       else
11893         {
11894           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11895           else puts (dlerror ());
11896         }
11897       /* dlclose (self); */
11898     }
11899   else
11900     puts (dlerror ());
11901
11902   return status;
11903 }
11904 _LT_EOF
11905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11906   (eval $ac_link) 2>&5
11907   ac_status=$?
11908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11910     (./conftest; exit; ) >&5 2>/dev/null
11911     lt_status=$?
11912     case x$lt_status in
11913       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916     esac
11917   else :
11918     # compilation failed
11919     lt_cv_dlopen_self_static=no
11920   fi
11921 fi
11922 rm -fr conftest*
11923
11924
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11927 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11928     fi
11929
11930     CPPFLAGS="$save_CPPFLAGS"
11931     LDFLAGS="$save_LDFLAGS"
11932     LIBS="$save_LIBS"
11933     ;;
11934   esac
11935
11936   case $lt_cv_dlopen_self in
11937   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938   *) enable_dlopen_self=unknown ;;
11939   esac
11940
11941   case $lt_cv_dlopen_self_static in
11942   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943   *) enable_dlopen_self_static=unknown ;;
11944   esac
11945 fi
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 striplib=
11964 old_striplib=
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11966 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11967 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11968   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11969   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971 $as_echo "yes" >&6; }
11972 else
11973 # FIXME - insert some real tests, host_os isn't really good enough
11974   case $host_os in
11975   darwin*)
11976     if test -n "$STRIP" ; then
11977       striplib="$STRIP -x"
11978       old_striplib="$STRIP -S"
11979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11981     else
11982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984     fi
11985     ;;
11986   *)
11987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989     ;;
11990   esac
11991 fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004   # Report which library types will actually be built
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12006 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12008 $as_echo "$can_build_shared" >&6; }
12009
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12011 $as_echo_n "checking whether to build shared libraries... " >&6; }
12012   test "$can_build_shared" = "no" && enable_shared=no
12013
12014   # On AIX, shared libraries and static libraries use the same namespace, and
12015   # are all built from PIC.
12016   case $host_os in
12017   aix3*)
12018     test "$enable_shared" = yes && enable_static=no
12019     if test -n "$RANLIB"; then
12020       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12021       postinstall_cmds='$RANLIB $lib'
12022     fi
12023     ;;
12024
12025   aix[4-9]*)
12026     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12027       test "$enable_shared" = yes && enable_static=no
12028     fi
12029     ;;
12030   esac
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12032 $as_echo "$enable_shared" >&6; }
12033
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12035 $as_echo_n "checking whether to build static libraries... " >&6; }
12036   # Make sure either enable_shared or enable_static is yes.
12037   test "$enable_shared" = yes || enable_static=yes
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12039 $as_echo "$enable_static" >&6; }
12040
12041
12042
12043
12044 fi
12045 ac_ext=c
12046 ac_cpp='$CPP $CPPFLAGS'
12047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12050
12051 CC="$lt_save_CC"
12052
12053       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12054     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12055     (test "X$CXX" != "Xg++"))) ; then
12056   ac_ext=cpp
12057 ac_cpp='$CXXCPP $CPPFLAGS'
12058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12062 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12063 if test -z "$CXXCPP"; then
12064   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12065   $as_echo_n "(cached) " >&6
12066 else
12067       # Double quotes because CXXCPP needs to be expanded
12068     for CXXCPP in "$CXX -E" "/lib/cpp"
12069     do
12070       ac_preproc_ok=false
12071 for ac_cxx_preproc_warn_flag in '' yes
12072 do
12073   # Use a header file that comes with gcc, so configuring glibc
12074   # with a fresh cross-compiler works.
12075   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12076   # <limits.h> exists even on freestanding compilers.
12077   # On the NeXT, cc -E runs the code through the compiler's parser,
12078   # not just through cpp. "Syntax error" is here to catch this case.
12079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h.  */
12081 #ifdef __STDC__
12082 # include <limits.h>
12083 #else
12084 # include <assert.h>
12085 #endif
12086                      Syntax error
12087 _ACEOF
12088 if ac_fn_cxx_try_cpp "$LINENO"; then :
12089
12090 else
12091   # Broken: fails on valid input.
12092 continue
12093 fi
12094 rm -f conftest.err conftest.$ac_ext
12095
12096   # OK, works on sane cases.  Now check whether nonexistent headers
12097   # can be detected and how.
12098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h.  */
12100 #include <ac_nonexistent.h>
12101 _ACEOF
12102 if ac_fn_cxx_try_cpp "$LINENO"; then :
12103   # Broken: success on invalid input.
12104 continue
12105 else
12106   # Passes both tests.
12107 ac_preproc_ok=:
12108 break
12109 fi
12110 rm -f conftest.err conftest.$ac_ext
12111
12112 done
12113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12114 rm -f conftest.err conftest.$ac_ext
12115 if $ac_preproc_ok; then :
12116   break
12117 fi
12118
12119     done
12120     ac_cv_prog_CXXCPP=$CXXCPP
12121
12122 fi
12123   CXXCPP=$ac_cv_prog_CXXCPP
12124 else
12125   ac_cv_prog_CXXCPP=$CXXCPP
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12128 $as_echo "$CXXCPP" >&6; }
12129 ac_preproc_ok=false
12130 for ac_cxx_preproc_warn_flag in '' yes
12131 do
12132   # Use a header file that comes with gcc, so configuring glibc
12133   # with a fresh cross-compiler works.
12134   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12135   # <limits.h> exists even on freestanding compilers.
12136   # On the NeXT, cc -E runs the code through the compiler's parser,
12137   # not just through cpp. "Syntax error" is here to catch this case.
12138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h.  */
12140 #ifdef __STDC__
12141 # include <limits.h>
12142 #else
12143 # include <assert.h>
12144 #endif
12145                      Syntax error
12146 _ACEOF
12147 if ac_fn_cxx_try_cpp "$LINENO"; then :
12148
12149 else
12150   # Broken: fails on valid input.
12151 continue
12152 fi
12153 rm -f conftest.err conftest.$ac_ext
12154
12155   # OK, works on sane cases.  Now check whether nonexistent headers
12156   # can be detected and how.
12157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h.  */
12159 #include <ac_nonexistent.h>
12160 _ACEOF
12161 if ac_fn_cxx_try_cpp "$LINENO"; then :
12162   # Broken: success on invalid input.
12163 continue
12164 else
12165   # Passes both tests.
12166 ac_preproc_ok=:
12167 break
12168 fi
12169 rm -f conftest.err conftest.$ac_ext
12170
12171 done
12172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12173 rm -f conftest.err conftest.$ac_ext
12174 if $ac_preproc_ok; then :
12175
12176 else
12177   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12179 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12180 See \`config.log' for more details." "$LINENO" 5; }
12181 fi
12182
12183 ac_ext=c
12184 ac_cpp='$CPP $CPPFLAGS'
12185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12188
12189 else
12190   _lt_caught_CXX_error=yes
12191 fi
12192
12193 ac_ext=cpp
12194 ac_cpp='$CXXCPP $CPPFLAGS'
12195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12198
12199 archive_cmds_need_lc_CXX=no
12200 allow_undefined_flag_CXX=
12201 always_export_symbols_CXX=no
12202 archive_expsym_cmds_CXX=
12203 compiler_needs_object_CXX=no
12204 export_dynamic_flag_spec_CXX=
12205 hardcode_direct_CXX=no
12206 hardcode_direct_absolute_CXX=no
12207 hardcode_libdir_flag_spec_CXX=
12208 hardcode_libdir_flag_spec_ld_CXX=
12209 hardcode_libdir_separator_CXX=
12210 hardcode_minus_L_CXX=no
12211 hardcode_shlibpath_var_CXX=unsupported
12212 hardcode_automatic_CXX=no
12213 inherit_rpath_CXX=no
12214 module_cmds_CXX=
12215 module_expsym_cmds_CXX=
12216 link_all_deplibs_CXX=unknown
12217 old_archive_cmds_CXX=$old_archive_cmds
12218 reload_flag_CXX=$reload_flag
12219 reload_cmds_CXX=$reload_cmds
12220 no_undefined_flag_CXX=
12221 whole_archive_flag_spec_CXX=
12222 enable_shared_with_static_runtimes_CXX=no
12223
12224 # Source file extension for C++ test sources.
12225 ac_ext=cpp
12226
12227 # Object file extension for compiled C++ test sources.
12228 objext=o
12229 objext_CXX=$objext
12230
12231 # No sense in running all these tests if we already determined that
12232 # the CXX compiler isn't working.  Some variables (like enable_shared)
12233 # are currently assumed to apply to all compilers on this platform,
12234 # and will be corrupted by setting them based on a non-working compiler.
12235 if test "$_lt_caught_CXX_error" != yes; then
12236   # Code to be used in simple compile tests
12237   lt_simple_compile_test_code="int some_variable = 0;"
12238
12239   # Code to be used in simple link tests
12240   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12241
12242   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12243
12244
12245
12246
12247
12248
12249 # If no C compiler was specified, use CC.
12250 LTCC=${LTCC-"$CC"}
12251
12252 # If no C compiler flags were specified, use CFLAGS.
12253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12254
12255 # Allow CC to be a program name with arguments.
12256 compiler=$CC
12257
12258
12259   # save warnings/boilerplate of simple test code
12260   ac_outfile=conftest.$ac_objext
12261 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12262 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12263 _lt_compiler_boilerplate=`cat conftest.err`
12264 $RM conftest*
12265
12266   ac_outfile=conftest.$ac_objext
12267 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12268 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12269 _lt_linker_boilerplate=`cat conftest.err`
12270 $RM -r conftest*
12271
12272
12273   # Allow CC to be a program name with arguments.
12274   lt_save_CC=$CC
12275   lt_save_LD=$LD
12276   lt_save_GCC=$GCC
12277   GCC=$GXX
12278   lt_save_with_gnu_ld=$with_gnu_ld
12279   lt_save_path_LD=$lt_cv_path_LD
12280   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12281     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12282   else
12283     $as_unset lt_cv_prog_gnu_ld
12284   fi
12285   if test -n "${lt_cv_path_LDCXX+set}"; then
12286     lt_cv_path_LD=$lt_cv_path_LDCXX
12287   else
12288     $as_unset lt_cv_path_LD
12289   fi
12290   test -z "${LDCXX+set}" || LD=$LDCXX
12291   CC=${CXX-"c++"}
12292   compiler=$CC
12293   compiler_CXX=$CC
12294   for cc_temp in $compiler""; do
12295   case $cc_temp in
12296     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12297     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12298     \-*) ;;
12299     *) break;;
12300   esac
12301 done
12302 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12303
12304
12305   if test -n "$compiler"; then
12306     # We don't want -fno-exception when compiling C++ code, so set the
12307     # no_builtin_flag separately
12308     if test "$GXX" = yes; then
12309       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12310     else
12311       lt_prog_compiler_no_builtin_flag_CXX=
12312     fi
12313
12314     if test "$GXX" = yes; then
12315       # Set up default GNU C++ configuration
12316
12317
12318
12319 # Check whether --with-gnu-ld was given.
12320 if test "${with_gnu_ld+set}" = set; then :
12321   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12322 else
12323   with_gnu_ld=no
12324 fi
12325
12326 ac_prog=ld
12327 if test "$GCC" = yes; then
12328   # Check if gcc -print-prog-name=ld gives a path.
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12330 $as_echo_n "checking for ld used by $CC... " >&6; }
12331   case $host in
12332   *-*-mingw*)
12333     # gcc leaves a trailing carriage return which upsets mingw
12334     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12335   *)
12336     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12337   esac
12338   case $ac_prog in
12339     # Accept absolute paths.
12340     [\\/]* | ?:[\\/]*)
12341       re_direlt='/[^/][^/]*/\.\./'
12342       # Canonicalize the pathname of ld
12343       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12344       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12345         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12346       done
12347       test -z "$LD" && LD="$ac_prog"
12348       ;;
12349   "")
12350     # If it fails, then pretend we aren't using GCC.
12351     ac_prog=ld
12352     ;;
12353   *)
12354     # If it is relative, then search for the first ld in PATH.
12355     with_gnu_ld=unknown
12356     ;;
12357   esac
12358 elif test "$with_gnu_ld" = yes; then
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12360 $as_echo_n "checking for GNU ld... " >&6; }
12361 else
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12363 $as_echo_n "checking for non-GNU ld... " >&6; }
12364 fi
12365 if test "${lt_cv_path_LD+set}" = set; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368   if test -z "$LD"; then
12369   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12370   for ac_dir in $PATH; do
12371     IFS="$lt_save_ifs"
12372     test -z "$ac_dir" && ac_dir=.
12373     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12374       lt_cv_path_LD="$ac_dir/$ac_prog"
12375       # Check to see if the program is GNU ld.  I'd rather use --version,
12376       # but apparently some variants of GNU ld only accept -v.
12377       # Break only if it was the GNU/non-GNU ld that we prefer.
12378       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12379       *GNU* | *'with BFD'*)
12380         test "$with_gnu_ld" != no && break
12381         ;;
12382       *)
12383         test "$with_gnu_ld" != yes && break
12384         ;;
12385       esac
12386     fi
12387   done
12388   IFS="$lt_save_ifs"
12389 else
12390   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12391 fi
12392 fi
12393
12394 LD="$lt_cv_path_LD"
12395 if test -n "$LD"; then
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12397 $as_echo "$LD" >&6; }
12398 else
12399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12401 fi
12402 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12404 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12405 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12406   $as_echo_n "(cached) " >&6
12407 else
12408   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12409 case `$LD -v 2>&1 </dev/null` in
12410 *GNU* | *'with BFD'*)
12411   lt_cv_prog_gnu_ld=yes
12412   ;;
12413 *)
12414   lt_cv_prog_gnu_ld=no
12415   ;;
12416 esac
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12419 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12420 with_gnu_ld=$lt_cv_prog_gnu_ld
12421
12422
12423
12424
12425
12426
12427
12428       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12429       # archiving commands below assume that GNU ld is being used.
12430       if test "$with_gnu_ld" = yes; then
12431         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12432         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12433
12434         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12435         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12436
12437         # If archive_cmds runs LD, not CC, wlarc should be empty
12438         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12439         #     investigate it a little bit more. (MM)
12440         wlarc='${wl}'
12441
12442         # ancient GNU ld didn't support --whole-archive et. al.
12443         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12444           $GREP 'no-whole-archive' > /dev/null; then
12445           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12446         else
12447           whole_archive_flag_spec_CXX=
12448         fi
12449       else
12450         with_gnu_ld=no
12451         wlarc=
12452
12453         # A generic and very simple default shared library creation
12454         # command for GNU C++ for the case where it uses the native
12455         # linker, instead of GNU ld.  If possible, this setting should
12456         # overridden to take advantage of the native linker features on
12457         # the platform it is being used on.
12458         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12459       fi
12460
12461       # Commands to make compiler produce verbose output that lists
12462       # what "hidden" libraries, object files and flags are used when
12463       # linking a shared library.
12464       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12465
12466     else
12467       GXX=no
12468       with_gnu_ld=no
12469       wlarc=
12470     fi
12471
12472     # PORTME: fill in a description of your system's C++ link characteristics
12473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12474 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12475     ld_shlibs_CXX=yes
12476     case $host_os in
12477       aix3*)
12478         # FIXME: insert proper C++ library support
12479         ld_shlibs_CXX=no
12480         ;;
12481       aix[4-9]*)
12482         if test "$host_cpu" = ia64; then
12483           # On IA64, the linker does run time linking by default, so we don't
12484           # have to do anything special.
12485           aix_use_runtimelinking=no
12486           exp_sym_flag='-Bexport'
12487           no_entry_flag=""
12488         else
12489           aix_use_runtimelinking=no
12490
12491           # Test if we are trying to use run time linking or normal
12492           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12493           # need to do runtime linking.
12494           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12495             for ld_flag in $LDFLAGS; do
12496               case $ld_flag in
12497               *-brtl*)
12498                 aix_use_runtimelinking=yes
12499                 break
12500                 ;;
12501               esac
12502             done
12503             ;;
12504           esac
12505
12506           exp_sym_flag='-bexport'
12507           no_entry_flag='-bnoentry'
12508         fi
12509
12510         # When large executables or shared objects are built, AIX ld can
12511         # have problems creating the table of contents.  If linking a library
12512         # or program results in "error TOC overflow" add -mminimal-toc to
12513         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12514         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12515
12516         archive_cmds_CXX=''
12517         hardcode_direct_CXX=yes
12518         hardcode_direct_absolute_CXX=yes
12519         hardcode_libdir_separator_CXX=':'
12520         link_all_deplibs_CXX=yes
12521         file_list_spec_CXX='${wl}-f,'
12522
12523         if test "$GXX" = yes; then
12524           case $host_os in aix4.[012]|aix4.[012].*)
12525           # We only want to do this on AIX 4.2 and lower, the check
12526           # below for broken collect2 doesn't work under 4.3+
12527           collect2name=`${CC} -print-prog-name=collect2`
12528           if test -f "$collect2name" &&
12529              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12530           then
12531             # We have reworked collect2
12532             :
12533           else
12534             # We have old collect2
12535             hardcode_direct_CXX=unsupported
12536             # It fails to find uninstalled libraries when the uninstalled
12537             # path is not listed in the libpath.  Setting hardcode_minus_L
12538             # to unsupported forces relinking
12539             hardcode_minus_L_CXX=yes
12540             hardcode_libdir_flag_spec_CXX='-L$libdir'
12541             hardcode_libdir_separator_CXX=
12542           fi
12543           esac
12544           shared_flag='-shared'
12545           if test "$aix_use_runtimelinking" = yes; then
12546             shared_flag="$shared_flag "'${wl}-G'
12547           fi
12548         else
12549           # not using gcc
12550           if test "$host_cpu" = ia64; then
12551           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12552           # chokes on -Wl,-G. The following line is correct:
12553           shared_flag='-G'
12554           else
12555             if test "$aix_use_runtimelinking" = yes; then
12556               shared_flag='${wl}-G'
12557             else
12558               shared_flag='${wl}-bM:SRE'
12559             fi
12560           fi
12561         fi
12562
12563         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12564         # It seems that -bexpall does not export symbols beginning with
12565         # underscore (_), so it is better to generate a list of symbols to
12566         # export.
12567         always_export_symbols_CXX=yes
12568         if test "$aix_use_runtimelinking" = yes; then
12569           # Warning - without using the other runtime loading flags (-brtl),
12570           # -berok will link without error, but may produce a broken library.
12571           allow_undefined_flag_CXX='-berok'
12572           # Determine the default libpath from the value encoded in an empty
12573           # executable.
12574           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h.  */
12576
12577 int
12578 main ()
12579 {
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 if ac_fn_cxx_try_link "$LINENO"; then :
12586
12587 lt_aix_libpath_sed='
12588     /Import File Strings/,/^$/ {
12589         /^0/ {
12590             s/^0  *\(.*\)$/\1/
12591             p
12592         }
12593     }'
12594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595 # Check for a 64-bit object if we didn't find anything.
12596 if test -z "$aix_libpath"; then
12597   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12598 fi
12599 fi
12600 rm -f core conftest.err conftest.$ac_objext \
12601     conftest$ac_exeext conftest.$ac_ext
12602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12603
12604           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12605
12606           archive_expsym_cmds_CXX='$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"
12607         else
12608           if test "$host_cpu" = ia64; then
12609             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12610             allow_undefined_flag_CXX="-z nodefs"
12611             archive_expsym_cmds_CXX="\$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"
12612           else
12613             # Determine the default libpath from the value encoded in an
12614             # empty executable.
12615             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h.  */
12617
12618 int
12619 main ()
12620 {
12621
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 if ac_fn_cxx_try_link "$LINENO"; then :
12627
12628 lt_aix_libpath_sed='
12629     /Import File Strings/,/^$/ {
12630         /^0/ {
12631             s/^0  *\(.*\)$/\1/
12632             p
12633         }
12634     }'
12635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12636 # Check for a 64-bit object if we didn't find anything.
12637 if test -z "$aix_libpath"; then
12638   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639 fi
12640 fi
12641 rm -f core conftest.err conftest.$ac_objext \
12642     conftest$ac_exeext conftest.$ac_ext
12643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12644
12645             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12646             # Warning - without using the other run time loading flags,
12647             # -berok will link without error, but may produce a broken library.
12648             no_undefined_flag_CXX=' ${wl}-bernotok'
12649             allow_undefined_flag_CXX=' ${wl}-berok'
12650             if test "$with_gnu_ld" = yes; then
12651               # We only use this code for GNU lds that support --whole-archive.
12652               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12653             else
12654               # Exported symbols can be pulled into shared objects from archives
12655               whole_archive_flag_spec_CXX='$convenience'
12656             fi
12657             archive_cmds_need_lc_CXX=yes
12658             # This is similar to how AIX traditionally builds its shared
12659             # libraries.
12660             archive_expsym_cmds_CXX="\$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'
12661           fi
12662         fi
12663         ;;
12664
12665       beos*)
12666         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12667           allow_undefined_flag_CXX=unsupported
12668           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12669           # support --undefined.  This deserves some investigation.  FIXME
12670           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671         else
12672           ld_shlibs_CXX=no
12673         fi
12674         ;;
12675
12676       chorus*)
12677         case $cc_basename in
12678           *)
12679           # FIXME: insert proper C++ library support
12680           ld_shlibs_CXX=no
12681           ;;
12682         esac
12683         ;;
12684
12685       cygwin* | mingw* | pw32* | cegcc*)
12686         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12687         # as there is no search path for DLLs.
12688         hardcode_libdir_flag_spec_CXX='-L$libdir'
12689         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12690         allow_undefined_flag_CXX=unsupported
12691         always_export_symbols_CXX=no
12692         enable_shared_with_static_runtimes_CXX=yes
12693
12694         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12695           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12696           # If the export-symbols file already is a .def file (1st line
12697           # is EXPORTS), use it as is; otherwise, prepend...
12698           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12699             cp $export_symbols $output_objdir/$soname.def;
12700           else
12701             echo EXPORTS > $output_objdir/$soname.def;
12702             cat $export_symbols >> $output_objdir/$soname.def;
12703           fi~
12704           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12705         else
12706           ld_shlibs_CXX=no
12707         fi
12708         ;;
12709       darwin* | rhapsody*)
12710
12711
12712   archive_cmds_need_lc_CXX=no
12713   hardcode_direct_CXX=no
12714   hardcode_automatic_CXX=yes
12715   hardcode_shlibpath_var_CXX=unsupported
12716   if test "$lt_cv_ld_force_load" = "yes"; then
12717     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12718   else
12719     whole_archive_flag_spec_CXX=''
12720   fi
12721   link_all_deplibs_CXX=yes
12722   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12723   case $cc_basename in
12724      ifort*) _lt_dar_can_shared=yes ;;
12725      *) _lt_dar_can_shared=$GCC ;;
12726   esac
12727   if test "$_lt_dar_can_shared" = "yes"; then
12728     output_verbose_link_cmd=func_echo_all
12729     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12730     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12731     archive_expsym_cmds_CXX="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}"
12732     module_expsym_cmds_CXX="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}"
12733        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12734       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12735       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12736     fi
12737
12738   else
12739   ld_shlibs_CXX=no
12740   fi
12741
12742         ;;
12743
12744       dgux*)
12745         case $cc_basename in
12746           ec++*)
12747             # FIXME: insert proper C++ library support
12748             ld_shlibs_CXX=no
12749             ;;
12750           ghcx*)
12751             # Green Hills C++ Compiler
12752             # FIXME: insert proper C++ library support
12753             ld_shlibs_CXX=no
12754             ;;
12755           *)
12756             # FIXME: insert proper C++ library support
12757             ld_shlibs_CXX=no
12758             ;;
12759         esac
12760         ;;
12761
12762       freebsd2.*)
12763         # C++ shared libraries reported to be fairly broken before
12764         # switch to ELF
12765         ld_shlibs_CXX=no
12766         ;;
12767
12768       freebsd-elf*)
12769         archive_cmds_need_lc_CXX=no
12770         ;;
12771
12772       freebsd* | dragonfly*)
12773         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12774         # conventions
12775         ld_shlibs_CXX=yes
12776         ;;
12777
12778       gnu*)
12779         ;;
12780
12781       haiku*)
12782         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783         link_all_deplibs_CXX=yes
12784         ;;
12785
12786       hpux9*)
12787         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12788         hardcode_libdir_separator_CXX=:
12789         export_dynamic_flag_spec_CXX='${wl}-E'
12790         hardcode_direct_CXX=yes
12791         hardcode_minus_L_CXX=yes # Not in the search PATH,
12792                                              # but as the default
12793                                              # location of the library.
12794
12795         case $cc_basename in
12796           CC*)
12797             # FIXME: insert proper C++ library support
12798             ld_shlibs_CXX=no
12799             ;;
12800           aCC*)
12801             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12802             # Commands to make compiler produce verbose output that lists
12803             # what "hidden" libraries, object files and flags are used when
12804             # linking a shared library.
12805             #
12806             # There doesn't appear to be a way to prevent this compiler from
12807             # explicitly linking system object files so we need to strip them
12808             # from the output so that they don't get included in the library
12809             # dependencies.
12810             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12811             ;;
12812           *)
12813             if test "$GXX" = yes; then
12814               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12815             else
12816               # FIXME: insert proper C++ library support
12817               ld_shlibs_CXX=no
12818             fi
12819             ;;
12820         esac
12821         ;;
12822
12823       hpux10*|hpux11*)
12824         if test $with_gnu_ld = no; then
12825           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12826           hardcode_libdir_separator_CXX=:
12827
12828           case $host_cpu in
12829             hppa*64*|ia64*)
12830               ;;
12831             *)
12832               export_dynamic_flag_spec_CXX='${wl}-E'
12833               ;;
12834           esac
12835         fi
12836         case $host_cpu in
12837           hppa*64*|ia64*)
12838             hardcode_direct_CXX=no
12839             hardcode_shlibpath_var_CXX=no
12840             ;;
12841           *)
12842             hardcode_direct_CXX=yes
12843             hardcode_direct_absolute_CXX=yes
12844             hardcode_minus_L_CXX=yes # Not in the search PATH,
12845                                                  # but as the default
12846                                                  # location of the library.
12847             ;;
12848         esac
12849
12850         case $cc_basename in
12851           CC*)
12852             # FIXME: insert proper C++ library support
12853             ld_shlibs_CXX=no
12854             ;;
12855           aCC*)
12856             case $host_cpu in
12857               hppa*64*)
12858                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12859                 ;;
12860               ia64*)
12861                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12862                 ;;
12863               *)
12864                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12865                 ;;
12866             esac
12867             # Commands to make compiler produce verbose output that lists
12868             # what "hidden" libraries, object files and flags are used when
12869             # linking a shared library.
12870             #
12871             # There doesn't appear to be a way to prevent this compiler from
12872             # explicitly linking system object files so we need to strip them
12873             # from the output so that they don't get included in the library
12874             # dependencies.
12875             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12876             ;;
12877           *)
12878             if test "$GXX" = yes; then
12879               if test $with_gnu_ld = no; then
12880                 case $host_cpu in
12881                   hppa*64*)
12882                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12883                     ;;
12884                   ia64*)
12885                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12886                     ;;
12887                   *)
12888                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12889                     ;;
12890                 esac
12891               fi
12892             else
12893               # FIXME: insert proper C++ library support
12894               ld_shlibs_CXX=no
12895             fi
12896             ;;
12897         esac
12898         ;;
12899
12900       interix[3-9]*)
12901         hardcode_direct_CXX=no
12902         hardcode_shlibpath_var_CXX=no
12903         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12904         export_dynamic_flag_spec_CXX='${wl}-E'
12905         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12906         # Instead, shared libraries are loaded at an image base (0x10000000 by
12907         # default) and relocated if they conflict, which is a slow very memory
12908         # consuming and fragmenting process.  To avoid this, we pick a random,
12909         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12910         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12911         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12912         archive_expsym_cmds_CXX='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'
12913         ;;
12914       irix5* | irix6*)
12915         case $cc_basename in
12916           CC*)
12917             # SGI C++
12918             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12919
12920             # Archives containing C++ object files must be created using
12921             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12922             # necessary to make sure instantiated templates are included
12923             # in the archive.
12924             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12925             ;;
12926           *)
12927             if test "$GXX" = yes; then
12928               if test "$with_gnu_ld" = no; then
12929                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12930               else
12931                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12932               fi
12933             fi
12934             link_all_deplibs_CXX=yes
12935             ;;
12936         esac
12937         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938         hardcode_libdir_separator_CXX=:
12939         inherit_rpath_CXX=yes
12940         ;;
12941
12942       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12943         case $cc_basename in
12944           KCC*)
12945             # Kuck and Associates, Inc. (KAI) C++ Compiler
12946
12947             # KCC will only create a shared library if the output file
12948             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12949             # to its proper name (with version) after linking.
12950             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12951             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12952             # Commands to make compiler produce verbose output that lists
12953             # what "hidden" libraries, object files and flags are used when
12954             # linking a shared library.
12955             #
12956             # There doesn't appear to be a way to prevent this compiler from
12957             # explicitly linking system object files so we need to strip them
12958             # from the output so that they don't get included in the library
12959             # dependencies.
12960             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12961
12962             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12963             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12964
12965             # Archives containing C++ object files must be created using
12966             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12967             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12968             ;;
12969           icpc* | ecpc* )
12970             # Intel C++
12971             with_gnu_ld=yes
12972             # version 8.0 and above of icpc choke on multiply defined symbols
12973             # if we add $predep_objects and $postdep_objects, however 7.1 and
12974             # earlier do not add the objects themselves.
12975             case `$CC -V 2>&1` in
12976               *"Version 7."*)
12977                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12978                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12979                 ;;
12980               *)  # Version 8.0 or newer
12981                 tmp_idyn=
12982                 case $host_cpu in
12983                   ia64*) tmp_idyn=' -i_dynamic';;
12984                 esac
12985                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12987                 ;;
12988             esac
12989             archive_cmds_need_lc_CXX=no
12990             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12991             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12992             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12993             ;;
12994           pgCC* | pgcpp*)
12995             # Portland Group C++ compiler
12996             case `$CC -V` in
12997             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12998               prelink_cmds_CXX='tpldir=Template.dir~
12999                 rm -rf $tpldir~
13000                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13001                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13002               old_archive_cmds_CXX='tpldir=Template.dir~
13003                 rm -rf $tpldir~
13004                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13005                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13006                 $RANLIB $oldlib'
13007               archive_cmds_CXX='tpldir=Template.dir~
13008                 rm -rf $tpldir~
13009                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13010                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13011               archive_expsym_cmds_CXX='tpldir=Template.dir~
13012                 rm -rf $tpldir~
13013                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13014                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13015               ;;
13016             *) # Version 6 and above use weak symbols
13017               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13018               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13019               ;;
13020             esac
13021
13022             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13023             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13024             whole_archive_flag_spec_CXX='${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'
13025             ;;
13026           cxx*)
13027             # Compaq C++
13028             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13030
13031             runpath_var=LD_RUN_PATH
13032             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13033             hardcode_libdir_separator_CXX=:
13034
13035             # Commands to make compiler produce verbose output that lists
13036             # what "hidden" libraries, object files and flags are used when
13037             # linking a shared library.
13038             #
13039             # There doesn't appear to be a way to prevent this compiler from
13040             # explicitly linking system object files so we need to strip them
13041             # from the output so that they don't get included in the library
13042             # dependencies.
13043             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13044             ;;
13045           xl* | mpixl* | bgxl*)
13046             # IBM XL 8.0 on PPC, with GNU ld
13047             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13048             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13049             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050             if test "x$supports_anon_versioning" = xyes; then
13051               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13052                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13053                 echo "local: *; };" >> $output_objdir/$libname.ver~
13054                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13055             fi
13056             ;;
13057           *)
13058             case `$CC -V 2>&1 | sed 5q` in
13059             *Sun\ C*)
13060               # Sun C++ 5.9
13061               no_undefined_flag_CXX=' -zdefs'
13062               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13063               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13064               hardcode_libdir_flag_spec_CXX='-R$libdir'
13065               whole_archive_flag_spec_CXX='${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'
13066               compiler_needs_object_CXX=yes
13067
13068               # Not sure whether something based on
13069               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13070               # would be better.
13071               output_verbose_link_cmd='func_echo_all'
13072
13073               # Archives containing C++ object files must be created using
13074               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13075               # necessary to make sure instantiated templates are included
13076               # in the archive.
13077               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13078               ;;
13079             esac
13080             ;;
13081         esac
13082         ;;
13083
13084       lynxos*)
13085         # FIXME: insert proper C++ library support
13086         ld_shlibs_CXX=no
13087         ;;
13088
13089       m88k*)
13090         # FIXME: insert proper C++ library support
13091         ld_shlibs_CXX=no
13092         ;;
13093
13094       mvs*)
13095         case $cc_basename in
13096           cxx*)
13097             # FIXME: insert proper C++ library support
13098             ld_shlibs_CXX=no
13099             ;;
13100           *)
13101             # FIXME: insert proper C++ library support
13102             ld_shlibs_CXX=no
13103             ;;
13104         esac
13105         ;;
13106
13107       netbsd*)
13108         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13109           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13110           wlarc=
13111           hardcode_libdir_flag_spec_CXX='-R$libdir'
13112           hardcode_direct_CXX=yes
13113           hardcode_shlibpath_var_CXX=no
13114         fi
13115         # Workaround some broken pre-1.5 toolchains
13116         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13117         ;;
13118
13119       *nto* | *qnx*)
13120         ld_shlibs_CXX=yes
13121         ;;
13122
13123       openbsd2*)
13124         # C++ shared libraries are fairly broken
13125         ld_shlibs_CXX=no
13126         ;;
13127
13128       openbsd*)
13129         if test -f /usr/libexec/ld.so; then
13130           hardcode_direct_CXX=yes
13131           hardcode_shlibpath_var_CXX=no
13132           hardcode_direct_absolute_CXX=yes
13133           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13134           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13135           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13136             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13137             export_dynamic_flag_spec_CXX='${wl}-E'
13138             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13139           fi
13140           output_verbose_link_cmd=func_echo_all
13141         else
13142           ld_shlibs_CXX=no
13143         fi
13144         ;;
13145
13146       osf3* | osf4* | osf5*)
13147         case $cc_basename in
13148           KCC*)
13149             # Kuck and Associates, Inc. (KAI) C++ Compiler
13150
13151             # KCC will only create a shared library if the output file
13152             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13153             # to its proper name (with version) after linking.
13154             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13155
13156             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13157             hardcode_libdir_separator_CXX=:
13158
13159             # Archives containing C++ object files must be created using
13160             # the KAI C++ compiler.
13161             case $host in
13162               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13163               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13164             esac
13165             ;;
13166           RCC*)
13167             # Rational C++ 2.4.1
13168             # FIXME: insert proper C++ library support
13169             ld_shlibs_CXX=no
13170             ;;
13171           cxx*)
13172             case $host in
13173               osf3*)
13174                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13176                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177                 ;;
13178               *)
13179                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13180                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13181                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13182                   echo "-hidden">> $lib.exp~
13183                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13184                   $RM $lib.exp'
13185                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13186                 ;;
13187             esac
13188
13189             hardcode_libdir_separator_CXX=:
13190
13191             # Commands to make compiler produce verbose output that lists
13192             # what "hidden" libraries, object files and flags are used when
13193             # linking a shared library.
13194             #
13195             # There doesn't appear to be a way to prevent this compiler from
13196             # explicitly linking system object files so we need to strip them
13197             # from the output so that they don't get included in the library
13198             # dependencies.
13199             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13200             ;;
13201           *)
13202             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13203               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13204               case $host in
13205                 osf3*)
13206                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13207                   ;;
13208                 *)
13209                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13210                   ;;
13211               esac
13212
13213               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13214               hardcode_libdir_separator_CXX=:
13215
13216               # Commands to make compiler produce verbose output that lists
13217               # what "hidden" libraries, object files and flags are used when
13218               # linking a shared library.
13219               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13220
13221             else
13222               # FIXME: insert proper C++ library support
13223               ld_shlibs_CXX=no
13224             fi
13225             ;;
13226         esac
13227         ;;
13228
13229       psos*)
13230         # FIXME: insert proper C++ library support
13231         ld_shlibs_CXX=no
13232         ;;
13233
13234       sunos4*)
13235         case $cc_basename in
13236           CC*)
13237             # Sun C++ 4.x
13238             # FIXME: insert proper C++ library support
13239             ld_shlibs_CXX=no
13240             ;;
13241           lcc*)
13242             # Lucid
13243             # FIXME: insert proper C++ library support
13244             ld_shlibs_CXX=no
13245             ;;
13246           *)
13247             # FIXME: insert proper C++ library support
13248             ld_shlibs_CXX=no
13249             ;;
13250         esac
13251         ;;
13252
13253       solaris*)
13254         case $cc_basename in
13255           CC*)
13256             # Sun C++ 4.2, 5.x and Centerline C++
13257             archive_cmds_need_lc_CXX=yes
13258             no_undefined_flag_CXX=' -zdefs'
13259             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13261               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13262
13263             hardcode_libdir_flag_spec_CXX='-R$libdir'
13264             hardcode_shlibpath_var_CXX=no
13265             case $host_os in
13266               solaris2.[0-5] | solaris2.[0-5].*) ;;
13267               *)
13268                 # The compiler driver will combine and reorder linker options,
13269                 # but understands `-z linker_flag'.
13270                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13271                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13272                 ;;
13273             esac
13274             link_all_deplibs_CXX=yes
13275
13276             output_verbose_link_cmd='func_echo_all'
13277
13278             # Archives containing C++ object files must be created using
13279             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13280             # necessary to make sure instantiated templates are included
13281             # in the archive.
13282             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13283             ;;
13284           gcx*)
13285             # Green Hills C++ Compiler
13286             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13287
13288             # The C++ compiler must be used to create the archive.
13289             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13290             ;;
13291           *)
13292             # GNU C++ compiler with Solaris linker
13293             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13294               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13295               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13296                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13297                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13298                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13299
13300                 # Commands to make compiler produce verbose output that lists
13301                 # what "hidden" libraries, object files and flags are used when
13302                 # linking a shared library.
13303                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13304               else
13305                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13306                 # platform.
13307                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13308                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13309                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13310
13311                 # Commands to make compiler produce verbose output that lists
13312                 # what "hidden" libraries, object files and flags are used when
13313                 # linking a shared library.
13314                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13315               fi
13316
13317               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13318               case $host_os in
13319                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13320                 *)
13321                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13322                   ;;
13323               esac
13324             fi
13325             ;;
13326         esac
13327         ;;
13328
13329     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13330       no_undefined_flag_CXX='${wl}-z,text'
13331       archive_cmds_need_lc_CXX=no
13332       hardcode_shlibpath_var_CXX=no
13333       runpath_var='LD_RUN_PATH'
13334
13335       case $cc_basename in
13336         CC*)
13337           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339           ;;
13340         *)
13341           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13342           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343           ;;
13344       esac
13345       ;;
13346
13347       sysv5* | sco3.2v5* | sco5v6*)
13348         # Note: We can NOT use -z defs as we might desire, because we do not
13349         # link with -lc, and that would cause any symbols used from libc to
13350         # always be unresolved, which means just about no library would
13351         # ever link correctly.  If we're not using GNU ld we use -z text
13352         # though, which does catch some bad symbols but isn't as heavy-handed
13353         # as -z defs.
13354         no_undefined_flag_CXX='${wl}-z,text'
13355         allow_undefined_flag_CXX='${wl}-z,nodefs'
13356         archive_cmds_need_lc_CXX=no
13357         hardcode_shlibpath_var_CXX=no
13358         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13359         hardcode_libdir_separator_CXX=':'
13360         link_all_deplibs_CXX=yes
13361         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13362         runpath_var='LD_RUN_PATH'
13363
13364         case $cc_basename in
13365           CC*)
13366             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13367             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13368             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13369               '"$old_archive_cmds_CXX"
13370             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13371               '"$reload_cmds_CXX"
13372             ;;
13373           *)
13374             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13375             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13376             ;;
13377         esac
13378       ;;
13379
13380       tandem*)
13381         case $cc_basename in
13382           NCC*)
13383             # NonStop-UX NCC 3.20
13384             # FIXME: insert proper C++ library support
13385             ld_shlibs_CXX=no
13386             ;;
13387           *)
13388             # FIXME: insert proper C++ library support
13389             ld_shlibs_CXX=no
13390             ;;
13391         esac
13392         ;;
13393
13394       vxworks*)
13395         # FIXME: insert proper C++ library support
13396         ld_shlibs_CXX=no
13397         ;;
13398
13399       *)
13400         # FIXME: insert proper C++ library support
13401         ld_shlibs_CXX=no
13402         ;;
13403     esac
13404
13405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13406 $as_echo "$ld_shlibs_CXX" >&6; }
13407     test "$ld_shlibs_CXX" = no && can_build_shared=no
13408
13409     GCC_CXX="$GXX"
13410     LD_CXX="$LD"
13411
13412     ## CAVEAT EMPTOR:
13413     ## There is no encapsulation within the following macros, do not change
13414     ## the running order or otherwise move them around unless you know exactly
13415     ## what you are doing...
13416     # Dependencies to place before and after the object being linked:
13417 predep_objects_CXX=
13418 postdep_objects_CXX=
13419 predeps_CXX=
13420 postdeps_CXX=
13421 compiler_lib_search_path_CXX=
13422
13423 cat > conftest.$ac_ext <<_LT_EOF
13424 class Foo
13425 {
13426 public:
13427   Foo (void) { a = 0; }
13428 private:
13429   int a;
13430 };
13431 _LT_EOF
13432
13433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13434   (eval $ac_compile) 2>&5
13435   ac_status=$?
13436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13437   test $ac_status = 0; }; then
13438   # Parse the compiler output and extract the necessary
13439   # objects, libraries and library flags.
13440
13441   # Sentinel used to keep track of whether or not we are before
13442   # the conftest object file.
13443   pre_test_object_deps_done=no
13444
13445   for p in `eval "$output_verbose_link_cmd"`; do
13446     case $p in
13447
13448     -L* | -R* | -l*)
13449        # Some compilers place space between "-{L,R}" and the path.
13450        # Remove the space.
13451        if test $p = "-L" ||
13452           test $p = "-R"; then
13453          prev=$p
13454          continue
13455        else
13456          prev=
13457        fi
13458
13459        if test "$pre_test_object_deps_done" = no; then
13460          case $p in
13461          -L* | -R*)
13462            # Internal compiler library paths should come after those
13463            # provided the user.  The postdeps already come after the
13464            # user supplied libs so there is no need to process them.
13465            if test -z "$compiler_lib_search_path_CXX"; then
13466              compiler_lib_search_path_CXX="${prev}${p}"
13467            else
13468              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13469            fi
13470            ;;
13471          # The "-l" case would never come before the object being
13472          # linked, so don't bother handling this case.
13473          esac
13474        else
13475          if test -z "$postdeps_CXX"; then
13476            postdeps_CXX="${prev}${p}"
13477          else
13478            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13479          fi
13480        fi
13481        ;;
13482
13483     *.$objext)
13484        # This assumes that the test object file only shows up
13485        # once in the compiler output.
13486        if test "$p" = "conftest.$objext"; then
13487          pre_test_object_deps_done=yes
13488          continue
13489        fi
13490
13491        if test "$pre_test_object_deps_done" = no; then
13492          if test -z "$predep_objects_CXX"; then
13493            predep_objects_CXX="$p"
13494          else
13495            predep_objects_CXX="$predep_objects_CXX $p"
13496          fi
13497        else
13498          if test -z "$postdep_objects_CXX"; then
13499            postdep_objects_CXX="$p"
13500          else
13501            postdep_objects_CXX="$postdep_objects_CXX $p"
13502          fi
13503        fi
13504        ;;
13505
13506     *) ;; # Ignore the rest.
13507
13508     esac
13509   done
13510
13511   # Clean up.
13512   rm -f a.out a.exe
13513 else
13514   echo "libtool.m4: error: problem compiling CXX test program"
13515 fi
13516
13517 $RM -f confest.$objext
13518
13519 # PORTME: override above test on systems where it is broken
13520 case $host_os in
13521 interix[3-9]*)
13522   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13523   # hack all around it, let's just trust "g++" to DTRT.
13524   predep_objects_CXX=
13525   postdep_objects_CXX=
13526   postdeps_CXX=
13527   ;;
13528
13529 linux*)
13530   case `$CC -V 2>&1 | sed 5q` in
13531   *Sun\ C*)
13532     # Sun C++ 5.9
13533
13534     # The more standards-conforming stlport4 library is
13535     # incompatible with the Cstd library. Avoid specifying
13536     # it if it's in CXXFLAGS. Ignore libCrun as
13537     # -library=stlport4 depends on it.
13538     case " $CXX $CXXFLAGS " in
13539     *" -library=stlport4 "*)
13540       solaris_use_stlport4=yes
13541       ;;
13542     esac
13543
13544     if test "$solaris_use_stlport4" != yes; then
13545       postdeps_CXX='-library=Cstd -library=Crun'
13546     fi
13547     ;;
13548   esac
13549   ;;
13550
13551 solaris*)
13552   case $cc_basename in
13553   CC*)
13554     # The more standards-conforming stlport4 library is
13555     # incompatible with the Cstd library. Avoid specifying
13556     # it if it's in CXXFLAGS. Ignore libCrun as
13557     # -library=stlport4 depends on it.
13558     case " $CXX $CXXFLAGS " in
13559     *" -library=stlport4 "*)
13560       solaris_use_stlport4=yes
13561       ;;
13562     esac
13563
13564     # Adding this requires a known-good setup of shared libraries for
13565     # Sun compiler versions before 5.6, else PIC objects from an old
13566     # archive will be linked into the output, leading to subtle bugs.
13567     if test "$solaris_use_stlport4" != yes; then
13568       postdeps_CXX='-library=Cstd -library=Crun'
13569     fi
13570     ;;
13571   esac
13572   ;;
13573 esac
13574
13575
13576 case " $postdeps_CXX " in
13577 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13578 esac
13579  compiler_lib_search_dirs_CXX=
13580 if test -n "${compiler_lib_search_path_CXX}"; then
13581  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13582 fi
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614     lt_prog_compiler_wl_CXX=
13615 lt_prog_compiler_pic_CXX=
13616 lt_prog_compiler_static_CXX=
13617
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13619 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13620
13621   # C++ specific cases for pic, static, wl, etc.
13622   if test "$GXX" = yes; then
13623     lt_prog_compiler_wl_CXX='-Wl,'
13624     lt_prog_compiler_static_CXX='-static'
13625
13626     case $host_os in
13627     aix*)
13628       # All AIX code is PIC.
13629       if test "$host_cpu" = ia64; then
13630         # AIX 5 now supports IA64 processor
13631         lt_prog_compiler_static_CXX='-Bstatic'
13632       fi
13633       lt_prog_compiler_pic_CXX='-fPIC'
13634       ;;
13635
13636     amigaos*)
13637       case $host_cpu in
13638       powerpc)
13639             # see comment about AmigaOS4 .so support
13640             lt_prog_compiler_pic_CXX='-fPIC'
13641         ;;
13642       m68k)
13643             # FIXME: we need at least 68020 code to build shared libraries, but
13644             # adding the `-m68020' flag to GCC prevents building anything better,
13645             # like `-m68040'.
13646             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13647         ;;
13648       esac
13649       ;;
13650
13651     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13652       # PIC is the default for these OSes.
13653       ;;
13654     mingw* | cygwin* | os2* | pw32* | cegcc*)
13655       # This hack is so that the source file can tell whether it is being
13656       # built for inclusion in a dll (and should export symbols for example).
13657       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13658       # (--disable-auto-import) libraries
13659       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13660       ;;
13661     darwin* | rhapsody*)
13662       # PIC is the default on this platform
13663       # Common symbols not allowed in MH_DYLIB files
13664       lt_prog_compiler_pic_CXX='-fno-common'
13665       ;;
13666     *djgpp*)
13667       # DJGPP does not support shared libraries at all
13668       lt_prog_compiler_pic_CXX=
13669       ;;
13670     haiku*)
13671       # PIC is the default for Haiku.
13672       # The "-static" flag exists, but is broken.
13673       lt_prog_compiler_static_CXX=
13674       ;;
13675     interix[3-9]*)
13676       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13677       # Instead, we relocate shared libraries at runtime.
13678       ;;
13679     sysv4*MP*)
13680       if test -d /usr/nec; then
13681         lt_prog_compiler_pic_CXX=-Kconform_pic
13682       fi
13683       ;;
13684     hpux*)
13685       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13686       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13687       # sets the default TLS model and affects inlining.
13688       case $host_cpu in
13689       hppa*64*)
13690         ;;
13691       *)
13692         lt_prog_compiler_pic_CXX='-fPIC'
13693         ;;
13694       esac
13695       ;;
13696     *qnx* | *nto*)
13697       # QNX uses GNU C++, but need to define -shared option too, otherwise
13698       # it will coredump.
13699       lt_prog_compiler_pic_CXX='-fPIC -shared'
13700       ;;
13701     *)
13702       lt_prog_compiler_pic_CXX='-fPIC'
13703       ;;
13704     esac
13705   else
13706     case $host_os in
13707       aix[4-9]*)
13708         # All AIX code is PIC.
13709         if test "$host_cpu" = ia64; then
13710           # AIX 5 now supports IA64 processor
13711           lt_prog_compiler_static_CXX='-Bstatic'
13712         else
13713           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13714         fi
13715         ;;
13716       chorus*)
13717         case $cc_basename in
13718         cxch68*)
13719           # Green Hills C++ Compiler
13720           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13721           ;;
13722         esac
13723         ;;
13724       dgux*)
13725         case $cc_basename in
13726           ec++*)
13727             lt_prog_compiler_pic_CXX='-KPIC'
13728             ;;
13729           ghcx*)
13730             # Green Hills C++ Compiler
13731             lt_prog_compiler_pic_CXX='-pic'
13732             ;;
13733           *)
13734             ;;
13735         esac
13736         ;;
13737       freebsd* | dragonfly*)
13738         # FreeBSD uses GNU C++
13739         ;;
13740       hpux9* | hpux10* | hpux11*)
13741         case $cc_basename in
13742           CC*)
13743             lt_prog_compiler_wl_CXX='-Wl,'
13744             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13745             if test "$host_cpu" != ia64; then
13746               lt_prog_compiler_pic_CXX='+Z'
13747             fi
13748             ;;
13749           aCC*)
13750             lt_prog_compiler_wl_CXX='-Wl,'
13751             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13752             case $host_cpu in
13753             hppa*64*|ia64*)
13754               # +Z the default
13755               ;;
13756             *)
13757               lt_prog_compiler_pic_CXX='+Z'
13758               ;;
13759             esac
13760             ;;
13761           *)
13762             ;;
13763         esac
13764         ;;
13765       interix*)
13766         # This is c89, which is MS Visual C++ (no shared libs)
13767         # Anyone wants to do a port?
13768         ;;
13769       irix5* | irix6* | nonstopux*)
13770         case $cc_basename in
13771           CC*)
13772             lt_prog_compiler_wl_CXX='-Wl,'
13773             lt_prog_compiler_static_CXX='-non_shared'
13774             # CC pic flag -KPIC is the default.
13775             ;;
13776           *)
13777             ;;
13778         esac
13779         ;;
13780       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13781         case $cc_basename in
13782           KCC*)
13783             # KAI C++ Compiler
13784             lt_prog_compiler_wl_CXX='--backend -Wl,'
13785             lt_prog_compiler_pic_CXX='-fPIC'
13786             ;;
13787           ecpc* )
13788             # old Intel C++ for x86_64 which still supported -KPIC.
13789             lt_prog_compiler_wl_CXX='-Wl,'
13790             lt_prog_compiler_pic_CXX='-KPIC'
13791             lt_prog_compiler_static_CXX='-static'
13792             ;;
13793           icpc* )
13794             # Intel C++, used to be incompatible with GCC.
13795             # ICC 10 doesn't accept -KPIC any more.
13796             lt_prog_compiler_wl_CXX='-Wl,'
13797             lt_prog_compiler_pic_CXX='-fPIC'
13798             lt_prog_compiler_static_CXX='-static'
13799             ;;
13800           pgCC* | pgcpp*)
13801             # Portland Group C++ compiler
13802             lt_prog_compiler_wl_CXX='-Wl,'
13803             lt_prog_compiler_pic_CXX='-fpic'
13804             lt_prog_compiler_static_CXX='-Bstatic'
13805             ;;
13806           cxx*)
13807             # Compaq C++
13808             # Make sure the PIC flag is empty.  It appears that all Alpha
13809             # Linux and Compaq Tru64 Unix objects are PIC.
13810             lt_prog_compiler_pic_CXX=
13811             lt_prog_compiler_static_CXX='-non_shared'
13812             ;;
13813           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13814             # IBM XL 8.0, 9.0 on PPC and BlueGene
13815             lt_prog_compiler_wl_CXX='-Wl,'
13816             lt_prog_compiler_pic_CXX='-qpic'
13817             lt_prog_compiler_static_CXX='-qstaticlink'
13818             ;;
13819           *)
13820             case `$CC -V 2>&1 | sed 5q` in
13821             *Sun\ C*)
13822               # Sun C++ 5.9
13823               lt_prog_compiler_pic_CXX='-KPIC'
13824               lt_prog_compiler_static_CXX='-Bstatic'
13825               lt_prog_compiler_wl_CXX='-Qoption ld '
13826               ;;
13827             esac
13828             ;;
13829         esac
13830         ;;
13831       lynxos*)
13832         ;;
13833       m88k*)
13834         ;;
13835       mvs*)
13836         case $cc_basename in
13837           cxx*)
13838             lt_prog_compiler_pic_CXX='-W c,exportall'
13839             ;;
13840           *)
13841             ;;
13842         esac
13843         ;;
13844       netbsd*)
13845         ;;
13846       *qnx* | *nto*)
13847         # QNX uses GNU C++, but need to define -shared option too, otherwise
13848         # it will coredump.
13849         lt_prog_compiler_pic_CXX='-fPIC -shared'
13850         ;;
13851       osf3* | osf4* | osf5*)
13852         case $cc_basename in
13853           KCC*)
13854             lt_prog_compiler_wl_CXX='--backend -Wl,'
13855             ;;
13856           RCC*)
13857             # Rational C++ 2.4.1
13858             lt_prog_compiler_pic_CXX='-pic'
13859             ;;
13860           cxx*)
13861             # Digital/Compaq C++
13862             lt_prog_compiler_wl_CXX='-Wl,'
13863             # Make sure the PIC flag is empty.  It appears that all Alpha
13864             # Linux and Compaq Tru64 Unix objects are PIC.
13865             lt_prog_compiler_pic_CXX=
13866             lt_prog_compiler_static_CXX='-non_shared'
13867             ;;
13868           *)
13869             ;;
13870         esac
13871         ;;
13872       psos*)
13873         ;;
13874       solaris*)
13875         case $cc_basename in
13876           CC*)
13877             # Sun C++ 4.2, 5.x and Centerline C++
13878             lt_prog_compiler_pic_CXX='-KPIC'
13879             lt_prog_compiler_static_CXX='-Bstatic'
13880             lt_prog_compiler_wl_CXX='-Qoption ld '
13881             ;;
13882           gcx*)
13883             # Green Hills C++ Compiler
13884             lt_prog_compiler_pic_CXX='-PIC'
13885             ;;
13886           *)
13887             ;;
13888         esac
13889         ;;
13890       sunos4*)
13891         case $cc_basename in
13892           CC*)
13893             # Sun C++ 4.x
13894             lt_prog_compiler_pic_CXX='-pic'
13895             lt_prog_compiler_static_CXX='-Bstatic'
13896             ;;
13897           lcc*)
13898             # Lucid
13899             lt_prog_compiler_pic_CXX='-pic'
13900             ;;
13901           *)
13902             ;;
13903         esac
13904         ;;
13905       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13906         case $cc_basename in
13907           CC*)
13908             lt_prog_compiler_wl_CXX='-Wl,'
13909             lt_prog_compiler_pic_CXX='-KPIC'
13910             lt_prog_compiler_static_CXX='-Bstatic'
13911             ;;
13912         esac
13913         ;;
13914       tandem*)
13915         case $cc_basename in
13916           NCC*)
13917             # NonStop-UX NCC 3.20
13918             lt_prog_compiler_pic_CXX='-KPIC'
13919             ;;
13920           *)
13921             ;;
13922         esac
13923         ;;
13924       vxworks*)
13925         ;;
13926       *)
13927         lt_prog_compiler_can_build_shared_CXX=no
13928         ;;
13929     esac
13930   fi
13931
13932 case $host_os in
13933   # For platforms which do not support PIC, -DPIC is meaningless:
13934   *djgpp*)
13935     lt_prog_compiler_pic_CXX=
13936     ;;
13937   *)
13938     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13939     ;;
13940 esac
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13942 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13943
13944
13945
13946 #
13947 # Check to make sure the PIC flag actually works.
13948 #
13949 if test -n "$lt_prog_compiler_pic_CXX"; then
13950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13951 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13952 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13953   $as_echo_n "(cached) " >&6
13954 else
13955   lt_cv_prog_compiler_pic_works_CXX=no
13956    ac_outfile=conftest.$ac_objext
13957    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13958    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13959    # Insert the option either (1) after the last *FLAGS variable, or
13960    # (2) before a word containing "conftest.", or (3) at the end.
13961    # Note that $ac_compile itself does not contain backslashes and begins
13962    # with a dollar sign (not a hyphen), so the echo should work correctly.
13963    # The option is referenced via a variable to avoid confusing sed.
13964    lt_compile=`echo "$ac_compile" | $SED \
13965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13967    -e 's:$: $lt_compiler_flag:'`
13968    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13969    (eval "$lt_compile" 2>conftest.err)
13970    ac_status=$?
13971    cat conftest.err >&5
13972    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973    if (exit $ac_status) && test -s "$ac_outfile"; then
13974      # The compiler can only warn and ignore the option if not recognized
13975      # So say no if there are warnings other than the usual output.
13976      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13977      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13979        lt_cv_prog_compiler_pic_works_CXX=yes
13980      fi
13981    fi
13982    $RM conftest*
13983
13984 fi
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13986 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13987
13988 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13989     case $lt_prog_compiler_pic_CXX in
13990      "" | " "*) ;;
13991      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13992      esac
13993 else
13994     lt_prog_compiler_pic_CXX=
13995      lt_prog_compiler_can_build_shared_CXX=no
13996 fi
13997
13998 fi
13999
14000
14001
14002 #
14003 # Check to make sure the static flag actually works.
14004 #
14005 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14007 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14008 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14009   $as_echo_n "(cached) " >&6
14010 else
14011   lt_cv_prog_compiler_static_works_CXX=no
14012    save_LDFLAGS="$LDFLAGS"
14013    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14014    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14015    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14016      # The linker can only warn and ignore the option if not recognized
14017      # So say no if there are warnings
14018      if test -s conftest.err; then
14019        # Append any errors to the config.log.
14020        cat conftest.err 1>&5
14021        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14022        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14023        if diff conftest.exp conftest.er2 >/dev/null; then
14024          lt_cv_prog_compiler_static_works_CXX=yes
14025        fi
14026      else
14027        lt_cv_prog_compiler_static_works_CXX=yes
14028      fi
14029    fi
14030    $RM -r conftest*
14031    LDFLAGS="$save_LDFLAGS"
14032
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14035 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14036
14037 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14038     :
14039 else
14040     lt_prog_compiler_static_CXX=
14041 fi
14042
14043
14044
14045
14046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14047 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14048 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14049   $as_echo_n "(cached) " >&6
14050 else
14051   lt_cv_prog_compiler_c_o_CXX=no
14052    $RM -r conftest 2>/dev/null
14053    mkdir conftest
14054    cd conftest
14055    mkdir out
14056    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14057
14058    lt_compiler_flag="-o out/conftest2.$ac_objext"
14059    # Insert the option either (1) after the last *FLAGS variable, or
14060    # (2) before a word containing "conftest.", or (3) at the end.
14061    # Note that $ac_compile itself does not contain backslashes and begins
14062    # with a dollar sign (not a hyphen), so the echo should work correctly.
14063    lt_compile=`echo "$ac_compile" | $SED \
14064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14066    -e 's:$: $lt_compiler_flag:'`
14067    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14068    (eval "$lt_compile" 2>out/conftest.err)
14069    ac_status=$?
14070    cat out/conftest.err >&5
14071    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14073    then
14074      # The compiler can only warn and ignore the option if not recognized
14075      # So say no if there are warnings
14076      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14077      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14078      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14079        lt_cv_prog_compiler_c_o_CXX=yes
14080      fi
14081    fi
14082    chmod u+w . 2>&5
14083    $RM conftest*
14084    # SGI C++ compiler will create directory out/ii_files/ for
14085    # template instantiation
14086    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14087    $RM out/* && rmdir out
14088    cd ..
14089    $RM -r conftest
14090    $RM conftest*
14091
14092 fi
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14094 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14095
14096
14097
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14099 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14100 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14101   $as_echo_n "(cached) " >&6
14102 else
14103   lt_cv_prog_compiler_c_o_CXX=no
14104    $RM -r conftest 2>/dev/null
14105    mkdir conftest
14106    cd conftest
14107    mkdir out
14108    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14109
14110    lt_compiler_flag="-o out/conftest2.$ac_objext"
14111    # Insert the option either (1) after the last *FLAGS variable, or
14112    # (2) before a word containing "conftest.", or (3) at the end.
14113    # Note that $ac_compile itself does not contain backslashes and begins
14114    # with a dollar sign (not a hyphen), so the echo should work correctly.
14115    lt_compile=`echo "$ac_compile" | $SED \
14116    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14117    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14118    -e 's:$: $lt_compiler_flag:'`
14119    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14120    (eval "$lt_compile" 2>out/conftest.err)
14121    ac_status=$?
14122    cat out/conftest.err >&5
14123    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14125    then
14126      # The compiler can only warn and ignore the option if not recognized
14127      # So say no if there are warnings
14128      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14129      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14130      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14131        lt_cv_prog_compiler_c_o_CXX=yes
14132      fi
14133    fi
14134    chmod u+w . 2>&5
14135    $RM conftest*
14136    # SGI C++ compiler will create directory out/ii_files/ for
14137    # template instantiation
14138    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14139    $RM out/* && rmdir out
14140    cd ..
14141    $RM -r conftest
14142    $RM conftest*
14143
14144 fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14146 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14147
14148
14149
14150
14151 hard_links="nottested"
14152 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14153   # do not overwrite the value of need_locks provided by the user
14154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14155 $as_echo_n "checking if we can lock with hard links... " >&6; }
14156   hard_links=yes
14157   $RM conftest*
14158   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14159   touch conftest.a
14160   ln conftest.a conftest.b 2>&5 || hard_links=no
14161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14163 $as_echo "$hard_links" >&6; }
14164   if test "$hard_links" = no; then
14165     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14166 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14167     need_locks=warn
14168   fi
14169 else
14170   need_locks=no
14171 fi
14172
14173
14174
14175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14176 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14177
14178   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14179   case $host_os in
14180   aix[4-9]*)
14181     # If we're using GNU nm, then we don't want the "-C" option.
14182     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14183     # Also, AIX nm treats weak defined symbols like other global defined
14184     # symbols, whereas GNU nm marks them as "W".
14185     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14186       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14187     else
14188       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14189     fi
14190     ;;
14191   pw32*)
14192     export_symbols_cmds_CXX="$ltdll_cmds"
14193   ;;
14194   cygwin* | mingw* | cegcc*)
14195     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14196   ;;
14197   *)
14198     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14199   ;;
14200   esac
14201   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14204 $as_echo "$ld_shlibs_CXX" >&6; }
14205 test "$ld_shlibs_CXX" = no && can_build_shared=no
14206
14207 with_gnu_ld_CXX=$with_gnu_ld
14208
14209
14210
14211
14212
14213
14214 #
14215 # Do we need to explicitly link libc?
14216 #
14217 case "x$archive_cmds_need_lc_CXX" in
14218 x|xyes)
14219   # Assume -lc should be added
14220   archive_cmds_need_lc_CXX=yes
14221
14222   if test "$enable_shared" = yes && test "$GCC" = yes; then
14223     case $archive_cmds_CXX in
14224     *'~'*)
14225       # FIXME: we may have to deal with multi-command sequences.
14226       ;;
14227     '$CC '*)
14228       # Test whether the compiler implicitly links with -lc since on some
14229       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14230       # to ld, don't add -lc before -lgcc.
14231       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14232 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14233 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14234   $as_echo_n "(cached) " >&6
14235 else
14236   $RM conftest*
14237         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238
14239         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14240   (eval $ac_compile) 2>&5
14241   ac_status=$?
14242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243   test $ac_status = 0; } 2>conftest.err; then
14244           soname=conftest
14245           lib=conftest
14246           libobjs=conftest.$ac_objext
14247           deplibs=
14248           wl=$lt_prog_compiler_wl_CXX
14249           pic_flag=$lt_prog_compiler_pic_CXX
14250           compiler_flags=-v
14251           linker_flags=-v
14252           verstring=
14253           output_objdir=.
14254           libname=conftest
14255           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14256           allow_undefined_flag_CXX=
14257           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14258   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14259   ac_status=$?
14260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14261   test $ac_status = 0; }
14262           then
14263             lt_cv_archive_cmds_need_lc_CXX=no
14264           else
14265             lt_cv_archive_cmds_need_lc_CXX=yes
14266           fi
14267           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14268         else
14269           cat conftest.err 1>&5
14270         fi
14271         $RM conftest*
14272
14273 fi
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14275 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14276       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14277       ;;
14278     esac
14279   fi
14280   ;;
14281 esac
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14347 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14348
14349 library_names_spec=
14350 libname_spec='lib$name'
14351 soname_spec=
14352 shrext_cmds=".so"
14353 postinstall_cmds=
14354 postuninstall_cmds=
14355 finish_cmds=
14356 finish_eval=
14357 shlibpath_var=
14358 shlibpath_overrides_runpath=unknown
14359 version_type=none
14360 dynamic_linker="$host_os ld.so"
14361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14362 need_lib_prefix=unknown
14363 hardcode_into_libs=no
14364
14365 # when you set need_version to no, make sure it does not cause -set_version
14366 # flags to be left without arguments
14367 need_version=unknown
14368
14369 case $host_os in
14370 aix3*)
14371   version_type=linux
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14373   shlibpath_var=LIBPATH
14374
14375   # AIX 3 has no versioning support, so we append a major version to the name.
14376   soname_spec='${libname}${release}${shared_ext}$major'
14377   ;;
14378
14379 aix[4-9]*)
14380   version_type=linux
14381   need_lib_prefix=no
14382   need_version=no
14383   hardcode_into_libs=yes
14384   if test "$host_cpu" = ia64; then
14385     # AIX 5 supports IA64
14386     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14387     shlibpath_var=LD_LIBRARY_PATH
14388   else
14389     # With GCC up to 2.95.x, collect2 would create an import file
14390     # for dependence libraries.  The import file would start with
14391     # the line `#! .'.  This would cause the generated library to
14392     # depend on `.', always an invalid library.  This was fixed in
14393     # development snapshots of GCC prior to 3.0.
14394     case $host_os in
14395       aix4 | aix4.[01] | aix4.[01].*)
14396       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14397            echo ' yes '
14398            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14399         :
14400       else
14401         can_build_shared=no
14402       fi
14403       ;;
14404     esac
14405     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14406     # soname into executable. Probably we can add versioning support to
14407     # collect2, so additional links can be useful in future.
14408     if test "$aix_use_runtimelinking" = yes; then
14409       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14410       # instead of lib<name>.a to let people know that these are not
14411       # typical AIX shared libraries.
14412       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413     else
14414       # We preserve .a as extension for shared libraries through AIX4.2
14415       # and later when we are not doing run time linking.
14416       library_names_spec='${libname}${release}.a $libname.a'
14417       soname_spec='${libname}${release}${shared_ext}$major'
14418     fi
14419     shlibpath_var=LIBPATH
14420   fi
14421   ;;
14422
14423 amigaos*)
14424   case $host_cpu in
14425   powerpc)
14426     # Since July 2007 AmigaOS4 officially supports .so libraries.
14427     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429     ;;
14430   m68k)
14431     library_names_spec='$libname.ixlibrary $libname.a'
14432     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14433     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'
14434     ;;
14435   esac
14436   ;;
14437
14438 beos*)
14439   library_names_spec='${libname}${shared_ext}'
14440   dynamic_linker="$host_os ld.so"
14441   shlibpath_var=LIBRARY_PATH
14442   ;;
14443
14444 bsdi[45]*)
14445   version_type=linux
14446   need_version=no
14447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448   soname_spec='${libname}${release}${shared_ext}$major'
14449   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14450   shlibpath_var=LD_LIBRARY_PATH
14451   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14452   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14453   # the default ld.so.conf also contains /usr/contrib/lib and
14454   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14455   # libtool to hard-code these into programs
14456   ;;
14457
14458 cygwin* | mingw* | pw32* | cegcc*)
14459   version_type=windows
14460   shrext_cmds=".dll"
14461   need_version=no
14462   need_lib_prefix=no
14463
14464   case $GCC,$host_os in
14465   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14466     library_names_spec='$libname.dll.a'
14467     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14468     postinstall_cmds='base_file=`basename \${file}`~
14469       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14470       dldir=$destdir/`dirname \$dlpath`~
14471       test -d \$dldir || mkdir -p \$dldir~
14472       $install_prog $dir/$dlname \$dldir/$dlname~
14473       chmod a+x \$dldir/$dlname~
14474       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14475         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14476       fi'
14477     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14478       dlpath=$dir/\$dldll~
14479        $RM \$dlpath'
14480     shlibpath_overrides_runpath=yes
14481
14482     case $host_os in
14483     cygwin*)
14484       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14485       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14486
14487       ;;
14488     mingw* | cegcc*)
14489       # MinGW DLLs use traditional 'lib' prefix
14490       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491       ;;
14492     pw32*)
14493       # pw32 DLLs use 'pw' prefix rather than 'lib'
14494       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495       ;;
14496     esac
14497     ;;
14498
14499   *)
14500     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14501     ;;
14502   esac
14503   dynamic_linker='Win32 ld.exe'
14504   # FIXME: first we should search . and the directory the executable is in
14505   shlibpath_var=PATH
14506   ;;
14507
14508 darwin* | rhapsody*)
14509   dynamic_linker="$host_os dyld"
14510   version_type=darwin
14511   need_lib_prefix=no
14512   need_version=no
14513   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14514   soname_spec='${libname}${release}${major}$shared_ext'
14515   shlibpath_overrides_runpath=yes
14516   shlibpath_var=DYLD_LIBRARY_PATH
14517   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14518
14519   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14520   ;;
14521
14522 dgux*)
14523   version_type=linux
14524   need_lib_prefix=no
14525   need_version=no
14526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14527   soname_spec='${libname}${release}${shared_ext}$major'
14528   shlibpath_var=LD_LIBRARY_PATH
14529   ;;
14530
14531 freebsd* | dragonfly*)
14532   # DragonFly does not have aout.  When/if they implement a new
14533   # versioning mechanism, adjust this.
14534   if test -x /usr/bin/objformat; then
14535     objformat=`/usr/bin/objformat`
14536   else
14537     case $host_os in
14538     freebsd[23].*) objformat=aout ;;
14539     *) objformat=elf ;;
14540     esac
14541   fi
14542   version_type=freebsd-$objformat
14543   case $version_type in
14544     freebsd-elf*)
14545       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14546       need_version=no
14547       need_lib_prefix=no
14548       ;;
14549     freebsd-*)
14550       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14551       need_version=yes
14552       ;;
14553   esac
14554   shlibpath_var=LD_LIBRARY_PATH
14555   case $host_os in
14556   freebsd2.*)
14557     shlibpath_overrides_runpath=yes
14558     ;;
14559   freebsd3.[01]* | freebsdelf3.[01]*)
14560     shlibpath_overrides_runpath=yes
14561     hardcode_into_libs=yes
14562     ;;
14563   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14564   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14565     shlibpath_overrides_runpath=no
14566     hardcode_into_libs=yes
14567     ;;
14568   *) # from 4.6 on, and DragonFly
14569     shlibpath_overrides_runpath=yes
14570     hardcode_into_libs=yes
14571     ;;
14572   esac
14573   ;;
14574
14575 gnu*)
14576   version_type=linux
14577   need_lib_prefix=no
14578   need_version=no
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14580   soname_spec='${libname}${release}${shared_ext}$major'
14581   shlibpath_var=LD_LIBRARY_PATH
14582   hardcode_into_libs=yes
14583   ;;
14584
14585 haiku*)
14586   version_type=linux
14587   need_lib_prefix=no
14588   need_version=no
14589   dynamic_linker="$host_os runtime_loader"
14590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14591   soname_spec='${libname}${release}${shared_ext}$major'
14592   shlibpath_var=LIBRARY_PATH
14593   shlibpath_overrides_runpath=yes
14594   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14595   hardcode_into_libs=yes
14596   ;;
14597
14598 hpux9* | hpux10* | hpux11*)
14599   # Give a soname corresponding to the major version so that dld.sl refuses to
14600   # link against other versions.
14601   version_type=sunos
14602   need_lib_prefix=no
14603   need_version=no
14604   case $host_cpu in
14605   ia64*)
14606     shrext_cmds='.so'
14607     hardcode_into_libs=yes
14608     dynamic_linker="$host_os dld.so"
14609     shlibpath_var=LD_LIBRARY_PATH
14610     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612     soname_spec='${libname}${release}${shared_ext}$major'
14613     if test "X$HPUX_IA64_MODE" = X32; then
14614       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14615     else
14616       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14617     fi
14618     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14619     ;;
14620   hppa*64*)
14621     shrext_cmds='.sl'
14622     hardcode_into_libs=yes
14623     dynamic_linker="$host_os dld.sl"
14624     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14625     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627     soname_spec='${libname}${release}${shared_ext}$major'
14628     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14629     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14630     ;;
14631   *)
14632     shrext_cmds='.sl'
14633     dynamic_linker="$host_os dld.sl"
14634     shlibpath_var=SHLIB_PATH
14635     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637     soname_spec='${libname}${release}${shared_ext}$major'
14638     ;;
14639   esac
14640   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14641   postinstall_cmds='chmod 555 $lib'
14642   # or fails outright, so override atomically:
14643   install_override_mode=555
14644   ;;
14645
14646 interix[3-9]*)
14647   version_type=linux
14648   need_lib_prefix=no
14649   need_version=no
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14651   soname_spec='${libname}${release}${shared_ext}$major'
14652   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14653   shlibpath_var=LD_LIBRARY_PATH
14654   shlibpath_overrides_runpath=no
14655   hardcode_into_libs=yes
14656   ;;
14657
14658 irix5* | irix6* | nonstopux*)
14659   case $host_os in
14660     nonstopux*) version_type=nonstopux ;;
14661     *)
14662         if test "$lt_cv_prog_gnu_ld" = yes; then
14663                 version_type=linux
14664         else
14665                 version_type=irix
14666         fi ;;
14667   esac
14668   need_lib_prefix=no
14669   need_version=no
14670   soname_spec='${libname}${release}${shared_ext}$major'
14671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14672   case $host_os in
14673   irix5* | nonstopux*)
14674     libsuff= shlibsuff=
14675     ;;
14676   *)
14677     case $LD in # libtool.m4 will add one of these switches to LD
14678     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14679       libsuff= shlibsuff= libmagic=32-bit;;
14680     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14681       libsuff=32 shlibsuff=N32 libmagic=N32;;
14682     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14683       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14684     *) libsuff= shlibsuff= libmagic=never-match;;
14685     esac
14686     ;;
14687   esac
14688   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14689   shlibpath_overrides_runpath=no
14690   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14691   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14692   hardcode_into_libs=yes
14693   ;;
14694
14695 # No shared lib support for Linux oldld, aout, or coff.
14696 linux*oldld* | linux*aout* | linux*coff*)
14697   dynamic_linker=no
14698   ;;
14699
14700 # This must be Linux ELF.
14701 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14702   version_type=linux
14703   need_lib_prefix=no
14704   need_version=no
14705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706   soname_spec='${libname}${release}${shared_ext}$major'
14707   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14708   shlibpath_var=LD_LIBRARY_PATH
14709   shlibpath_overrides_runpath=no
14710
14711   # Some binutils ld are patched to set DT_RUNPATH
14712   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14713   $as_echo_n "(cached) " >&6
14714 else
14715   lt_cv_shlibpath_overrides_runpath=no
14716     save_LDFLAGS=$LDFLAGS
14717     save_libdir=$libdir
14718     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14719          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h.  */
14722
14723 int
14724 main ()
14725 {
14726
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 if ac_fn_cxx_try_link "$LINENO"; then :
14732   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14733   lt_cv_shlibpath_overrides_runpath=yes
14734 fi
14735 fi
14736 rm -f core conftest.err conftest.$ac_objext \
14737     conftest$ac_exeext conftest.$ac_ext
14738     LDFLAGS=$save_LDFLAGS
14739     libdir=$save_libdir
14740
14741 fi
14742
14743   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14744
14745   # This implies no fast_install, which is unacceptable.
14746   # Some rework will be needed to allow for fast_install
14747   # before this can be enabled.
14748   hardcode_into_libs=yes
14749
14750   # Append ld.so.conf contents to the search path
14751   if test -f /etc/ld.so.conf; then
14752     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' ' '`
14753     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14754   fi
14755
14756   # We used to test for /lib/ld.so.1 and disable shared libraries on
14757   # powerpc, because MkLinux only supported shared libraries with the
14758   # GNU dynamic linker.  Since this was broken with cross compilers,
14759   # most powerpc-linux boxes support dynamic linking these days and
14760   # people can always --disable-shared, the test was removed, and we
14761   # assume the GNU/Linux dynamic linker is in use.
14762   dynamic_linker='GNU/Linux ld.so'
14763   ;;
14764
14765 netbsd*)
14766   version_type=sunos
14767   need_lib_prefix=no
14768   need_version=no
14769   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14771     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14772     dynamic_linker='NetBSD (a.out) ld.so'
14773   else
14774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14775     soname_spec='${libname}${release}${shared_ext}$major'
14776     dynamic_linker='NetBSD ld.elf_so'
14777   fi
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=yes
14780   hardcode_into_libs=yes
14781   ;;
14782
14783 newsos6)
14784   version_type=linux
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786   shlibpath_var=LD_LIBRARY_PATH
14787   shlibpath_overrides_runpath=yes
14788   ;;
14789
14790 *nto* | *qnx*)
14791   version_type=qnx
14792   need_lib_prefix=no
14793   need_version=no
14794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795   soname_spec='${libname}${release}${shared_ext}$major'
14796   shlibpath_var=LD_LIBRARY_PATH
14797   shlibpath_overrides_runpath=no
14798   hardcode_into_libs=yes
14799   dynamic_linker='ldqnx.so'
14800   ;;
14801
14802 openbsd*)
14803   version_type=sunos
14804   sys_lib_dlsearch_path_spec="/usr/lib"
14805   need_lib_prefix=no
14806   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14807   case $host_os in
14808     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14809     *)                          need_version=no  ;;
14810   esac
14811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14812   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14813   shlibpath_var=LD_LIBRARY_PATH
14814   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14815     case $host_os in
14816       openbsd2.[89] | openbsd2.[89].*)
14817         shlibpath_overrides_runpath=no
14818         ;;
14819       *)
14820         shlibpath_overrides_runpath=yes
14821         ;;
14822       esac
14823   else
14824     shlibpath_overrides_runpath=yes
14825   fi
14826   ;;
14827
14828 os2*)
14829   libname_spec='$name'
14830   shrext_cmds=".dll"
14831   need_lib_prefix=no
14832   library_names_spec='$libname${shared_ext} $libname.a'
14833   dynamic_linker='OS/2 ld.exe'
14834   shlibpath_var=LIBPATH
14835   ;;
14836
14837 osf3* | osf4* | osf5*)
14838   version_type=osf
14839   need_lib_prefix=no
14840   need_version=no
14841   soname_spec='${libname}${release}${shared_ext}$major'
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14845   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14846   ;;
14847
14848 rdos*)
14849   dynamic_linker=no
14850   ;;
14851
14852 solaris*)
14853   version_type=linux
14854   need_lib_prefix=no
14855   need_version=no
14856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857   soname_spec='${libname}${release}${shared_ext}$major'
14858   shlibpath_var=LD_LIBRARY_PATH
14859   shlibpath_overrides_runpath=yes
14860   hardcode_into_libs=yes
14861   # ldd complains unless libraries are executable
14862   postinstall_cmds='chmod +x $lib'
14863   ;;
14864
14865 sunos4*)
14866   version_type=sunos
14867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14868   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14869   shlibpath_var=LD_LIBRARY_PATH
14870   shlibpath_overrides_runpath=yes
14871   if test "$with_gnu_ld" = yes; then
14872     need_lib_prefix=no
14873   fi
14874   need_version=yes
14875   ;;
14876
14877 sysv4 | sysv4.3*)
14878   version_type=linux
14879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880   soname_spec='${libname}${release}${shared_ext}$major'
14881   shlibpath_var=LD_LIBRARY_PATH
14882   case $host_vendor in
14883     sni)
14884       shlibpath_overrides_runpath=no
14885       need_lib_prefix=no
14886       runpath_var=LD_RUN_PATH
14887       ;;
14888     siemens)
14889       need_lib_prefix=no
14890       ;;
14891     motorola)
14892       need_lib_prefix=no
14893       need_version=no
14894       shlibpath_overrides_runpath=no
14895       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14896       ;;
14897   esac
14898   ;;
14899
14900 sysv4*MP*)
14901   if test -d /usr/nec ;then
14902     version_type=linux
14903     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14904     soname_spec='$libname${shared_ext}.$major'
14905     shlibpath_var=LD_LIBRARY_PATH
14906   fi
14907   ;;
14908
14909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14910   version_type=freebsd-elf
14911   need_lib_prefix=no
14912   need_version=no
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   shlibpath_overrides_runpath=yes
14917   hardcode_into_libs=yes
14918   if test "$with_gnu_ld" = yes; then
14919     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14920   else
14921     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14922     case $host_os in
14923       sco3.2v5*)
14924         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14925         ;;
14926     esac
14927   fi
14928   sys_lib_dlsearch_path_spec='/usr/lib'
14929   ;;
14930
14931 tpf*)
14932   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14933   version_type=linux
14934   need_lib_prefix=no
14935   need_version=no
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   shlibpath_var=LD_LIBRARY_PATH
14938   shlibpath_overrides_runpath=no
14939   hardcode_into_libs=yes
14940   ;;
14941
14942 uts4*)
14943   version_type=linux
14944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945   soname_spec='${libname}${release}${shared_ext}$major'
14946   shlibpath_var=LD_LIBRARY_PATH
14947   ;;
14948
14949 *)
14950   dynamic_linker=no
14951   ;;
14952 esac
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14954 $as_echo "$dynamic_linker" >&6; }
14955 test "$dynamic_linker" = no && can_build_shared=no
14956
14957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14958 if test "$GCC" = yes; then
14959   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14960 fi
14961
14962 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14963   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14964 fi
14965 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14966   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14967 fi
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15007 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15008 hardcode_action_CXX=
15009 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15010    test -n "$runpath_var_CXX" ||
15011    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15012
15013   # We can hardcode non-existent directories.
15014   if test "$hardcode_direct_CXX" != no &&
15015      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15016      # have to relink, otherwise we might link with an installed library
15017      # when we should be linking with a yet-to-be-installed one
15018      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15019      test "$hardcode_minus_L_CXX" != no; then
15020     # Linking always hardcodes the temporary library directory.
15021     hardcode_action_CXX=relink
15022   else
15023     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15024     hardcode_action_CXX=immediate
15025   fi
15026 else
15027   # We cannot hardcode anything, or else we can only hardcode existing
15028   # directories.
15029   hardcode_action_CXX=unsupported
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15032 $as_echo "$hardcode_action_CXX" >&6; }
15033
15034 if test "$hardcode_action_CXX" = relink ||
15035    test "$inherit_rpath_CXX" = yes; then
15036   # Fast installation is not supported
15037   enable_fast_install=no
15038 elif test "$shlibpath_overrides_runpath" = yes ||
15039      test "$enable_shared" = no; then
15040   # Fast installation is not necessary
15041   enable_fast_install=needless
15042 fi
15043
15044
15045
15046
15047
15048
15049
15050   fi # test -n "$compiler"
15051
15052   CC=$lt_save_CC
15053   LDCXX=$LD
15054   LD=$lt_save_LD
15055   GCC=$lt_save_GCC
15056   with_gnu_ld=$lt_save_with_gnu_ld
15057   lt_cv_path_LDCXX=$lt_cv_path_LD
15058   lt_cv_path_LD=$lt_save_path_LD
15059   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15060   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15061 fi # test "$_lt_caught_CXX_error" != yes
15062
15063 ac_ext=c
15064 ac_cpp='$CPP $CPPFLAGS'
15065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081         ac_config_commands="$ac_config_commands libtool"
15082
15083
15084
15085
15086 # Only expand once:
15087
15088
15089
15090 # The tests for host and target for $enable_largefile require
15091 # canonical names.
15092
15093
15094
15095 # As the $enable_largefile decision depends on --enable-plugins we must set it
15096 # even in directories otherwise not depending on the $plugins option.
15097
15098
15099   maybe_plugins=no
15100   for ac_header in dlfcn.h
15101 do :
15102   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15103 "
15104 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15105   cat >>confdefs.h <<_ACEOF
15106 #define HAVE_DLFCN_H 1
15107 _ACEOF
15108  maybe_plugins=yes
15109 fi
15110
15111 done
15112
15113   for ac_header in windows.h
15114 do :
15115   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15116 "
15117 if test "x$ac_cv_header_windows_h" = x""yes; then :
15118   cat >>confdefs.h <<_ACEOF
15119 #define HAVE_WINDOWS_H 1
15120 _ACEOF
15121  maybe_plugins=yes
15122 fi
15123
15124 done
15125
15126
15127   # Check whether --enable-plugins was given.
15128 if test "${enable_plugins+set}" = set; then :
15129   enableval=$enable_plugins; case "${enableval}" in
15130       no) plugins=no ;;
15131       *) plugins=yes
15132          if test "$maybe_plugins" != "yes" ; then
15133            as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15134          fi ;;
15135      esac
15136 else
15137   plugins=$maybe_plugins
15138
15139 fi
15140
15141   if test "$plugins" = "yes"; then
15142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15143 $as_echo_n "checking for library containing dlopen... " >&6; }
15144 if test "${ac_cv_search_dlopen+set}" = set; then :
15145   $as_echo_n "(cached) " >&6
15146 else
15147   ac_func_search_save_LIBS=$LIBS
15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h.  */
15150
15151 /* Override any GCC internal prototype to avoid an error.
15152    Use char because int might match the return type of a GCC
15153    builtin and then its argument prototype would still apply.  */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 char dlopen ();
15158 int
15159 main ()
15160 {
15161 return dlopen ();
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 for ac_lib in '' dl; do
15167   if test -z "$ac_lib"; then
15168     ac_res="none required"
15169   else
15170     ac_res=-l$ac_lib
15171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15172   fi
15173   if ac_fn_c_try_link "$LINENO"; then :
15174   ac_cv_search_dlopen=$ac_res
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext \
15177     conftest$ac_exeext
15178   if test "${ac_cv_search_dlopen+set}" = set; then :
15179   break
15180 fi
15181 done
15182 if test "${ac_cv_search_dlopen+set}" = set; then :
15183
15184 else
15185   ac_cv_search_dlopen=no
15186 fi
15187 rm conftest.$ac_ext
15188 LIBS=$ac_func_search_save_LIBS
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15191 $as_echo "$ac_cv_search_dlopen" >&6; }
15192 ac_res=$ac_cv_search_dlopen
15193 if test "$ac_res" != no; then :
15194   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15195
15196 fi
15197
15198   fi
15199
15200
15201 case "${host}" in
15202   sparc-*-solaris*|i[3-7]86-*-solaris*)
15203     # On native 32bit sparc and ia32 solaris, large-file and procfs support
15204     # are mutually exclusive; and without procfs support, the bfd/ elf module
15205     # cannot provide certain routines such as elfcore_write_prpsinfo
15206     # or elfcore_write_prstatus.  So unless the user explicitly requested
15207     # large-file support through the --enable-largefile switch, disable
15208     # large-file support in favor of procfs support.
15209     test "${target}" = "${host}" -a "x$plugins" = xno \
15210       && : ${enable_largefile="no"}
15211     ;;
15212 esac
15213
15214 # Check whether --enable-largefile was given.
15215 if test "${enable_largefile+set}" = set; then :
15216   enableval=$enable_largefile;
15217 fi
15218
15219 if test "$enable_largefile" != no; then
15220
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15222 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15223 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15224   $as_echo_n "(cached) " >&6
15225 else
15226   ac_cv_sys_largefile_CC=no
15227      if test "$GCC" != yes; then
15228        ac_save_CC=$CC
15229        while :; do
15230          # IRIX 6.2 and later do not support large files by default,
15231          # so use the C compiler's -n32 option if that helps.
15232          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h.  */
15234 #include <sys/types.h>
15235  /* Check that off_t can represent 2**63 - 1 correctly.
15236     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15237     since some C++ compilers masquerading as C compilers
15238     incorrectly reject 9223372036854775807.  */
15239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15240   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15241                        && LARGE_OFF_T % 2147483647 == 1)
15242                       ? 1 : -1];
15243 int
15244 main ()
15245 {
15246
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251          if ac_fn_c_try_compile "$LINENO"; then :
15252   break
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext
15255          CC="$CC -n32"
15256          if ac_fn_c_try_compile "$LINENO"; then :
15257   ac_cv_sys_largefile_CC=' -n32'; break
15258 fi
15259 rm -f core conftest.err conftest.$ac_objext
15260          break
15261        done
15262        CC=$ac_save_CC
15263        rm -f conftest.$ac_ext
15264     fi
15265 fi
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15267 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15268   if test "$ac_cv_sys_largefile_CC" != no; then
15269     CC=$CC$ac_cv_sys_largefile_CC
15270   fi
15271
15272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15273 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15274 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15275   $as_echo_n "(cached) " >&6
15276 else
15277   while :; do
15278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h.  */
15280 #include <sys/types.h>
15281  /* Check that off_t can represent 2**63 - 1 correctly.
15282     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15283     since some C++ compilers masquerading as C compilers
15284     incorrectly reject 9223372036854775807.  */
15285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15286   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15287                        && LARGE_OFF_T % 2147483647 == 1)
15288                       ? 1 : -1];
15289 int
15290 main ()
15291 {
15292
15293   ;
15294   return 0;
15295 }
15296 _ACEOF
15297 if ac_fn_c_try_compile "$LINENO"; then :
15298   ac_cv_sys_file_offset_bits=no; break
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h.  */
15303 #define _FILE_OFFSET_BITS 64
15304 #include <sys/types.h>
15305  /* Check that off_t can represent 2**63 - 1 correctly.
15306     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15307     since some C++ compilers masquerading as C compilers
15308     incorrectly reject 9223372036854775807.  */
15309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15310   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15311                        && LARGE_OFF_T % 2147483647 == 1)
15312                       ? 1 : -1];
15313 int
15314 main ()
15315 {
15316
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 if ac_fn_c_try_compile "$LINENO"; then :
15322   ac_cv_sys_file_offset_bits=64; break
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325   ac_cv_sys_file_offset_bits=unknown
15326   break
15327 done
15328 fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15330 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15331 case $ac_cv_sys_file_offset_bits in #(
15332   no | unknown) ;;
15333   *)
15334 cat >>confdefs.h <<_ACEOF
15335 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15336 _ACEOF
15337 ;;
15338 esac
15339 rm -rf conftest*
15340   if test $ac_cv_sys_file_offset_bits = unknown; then
15341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15342 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15343 if test "${ac_cv_sys_large_files+set}" = set; then :
15344   $as_echo_n "(cached) " >&6
15345 else
15346   while :; do
15347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h.  */
15349 #include <sys/types.h>
15350  /* Check that off_t can represent 2**63 - 1 correctly.
15351     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15352     since some C++ compilers masquerading as C compilers
15353     incorrectly reject 9223372036854775807.  */
15354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15355   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15356                        && LARGE_OFF_T % 2147483647 == 1)
15357                       ? 1 : -1];
15358 int
15359 main ()
15360 {
15361
15362   ;
15363   return 0;
15364 }
15365 _ACEOF
15366 if ac_fn_c_try_compile "$LINENO"; then :
15367   ac_cv_sys_large_files=no; break
15368 fi
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h.  */
15372 #define _LARGE_FILES 1
15373 #include <sys/types.h>
15374  /* Check that off_t can represent 2**63 - 1 correctly.
15375     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15376     since some C++ compilers masquerading as C compilers
15377     incorrectly reject 9223372036854775807.  */
15378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15379   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15380                        && LARGE_OFF_T % 2147483647 == 1)
15381                       ? 1 : -1];
15382 int
15383 main ()
15384 {
15385
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 if ac_fn_c_try_compile "$LINENO"; then :
15391   ac_cv_sys_large_files=1; break
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394   ac_cv_sys_large_files=unknown
15395   break
15396 done
15397 fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15399 $as_echo "$ac_cv_sys_large_files" >&6; }
15400 case $ac_cv_sys_large_files in #(
15401   no | unknown) ;;
15402   *)
15403 cat >>confdefs.h <<_ACEOF
15404 #define _LARGE_FILES $ac_cv_sys_large_files
15405 _ACEOF
15406 ;;
15407 esac
15408 rm -rf conftest*
15409   fi
15410 fi
15411
15412
15413
15414
15415 # Check whether --with-lib-path was given.
15416 if test "${with_lib_path+set}" = set; then :
15417   withval=$with_lib_path; LIB_PATH=$withval
15418 fi
15419
15420 # Check whether --enable-targets was given.
15421 if test "${enable_targets+set}" = set; then :
15422   enableval=$enable_targets; case "${enableval}" in
15423   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15424             ;;
15425   no)       enable_targets= ;;
15426   *)        enable_targets=$enableval ;;
15427 esac
15428 fi
15429 # Check whether --enable-64-bit-bfd was given.
15430 if test "${enable_64_bit_bfd+set}" = set; then :
15431   enableval=$enable_64_bit_bfd; case "${enableval}" in
15432   yes)  want64=true  ;;
15433   no)   want64=false ;;
15434   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15435 esac
15436 else
15437   want64=false
15438 fi
15439
15440
15441 # Check whether --with-sysroot was given.
15442 if test "${with_sysroot+set}" = set; then :
15443   withval=$with_sysroot;
15444  case ${with_sysroot} in
15445  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15446  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15447  esac
15448
15449  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15450  use_sysroot=yes
15451
15452  if test "x$prefix" = xNONE; then
15453   test_prefix=/usr/local
15454  else
15455   test_prefix=$prefix
15456  fi
15457  if test "x$exec_prefix" = xNONE; then
15458   test_exec_prefix=$test_prefix
15459  else
15460   test_exec_prefix=$exec_prefix
15461  fi
15462  case ${TARGET_SYSTEM_ROOT} in
15463  "${test_prefix}"|"${test_prefix}/"*|\
15464  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15465  '${prefix}'|'${prefix}/'*|\
15466  '${exec_prefix}'|'${exec_prefix}/'*)
15467    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15468    TARGET_SYSTEM_ROOT_DEFINE="$t"
15469    ;;
15470  esac
15471
15472 else
15473
15474  use_sysroot=no
15475  TARGET_SYSTEM_ROOT=
15476  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15477
15478 fi
15479
15480
15481
15482
15483
15484 # Check whether --enable-gold was given.
15485 if test "${enable_gold+set}" = set; then :
15486   enableval=$enable_gold; case "${enableval}" in
15487  default)
15488    install_as_default=no
15489    installed_linker=ld.bfd
15490    ;;
15491  yes|no)
15492    install_as_default=yes
15493    installed_linker=ld.bfd
15494    ;;
15495  *)
15496    as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15497    ;;
15498  esac
15499 else
15500   install_as_default=yes
15501  installed_linker=ld.bfd
15502 fi
15503
15504
15505
15506
15507 # Check whether --enable-got was given.
15508 if test "${enable_got+set}" = set; then :
15509   enableval=$enable_got; case "${enableval}" in
15510   target | single | negative | multigot)  got_handling=$enableval ;;
15511   *)  as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15512 esac
15513 else
15514   got_handling=target
15515 fi
15516
15517
15518 case "${got_handling}" in
15519   target)
15520
15521 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15522  ;;
15523   single)
15524
15525 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15526  ;;
15527   negative)
15528
15529 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15530  ;;
15531   multigot)
15532
15533 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15534  ;;
15535   *)  as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15536 esac
15537
15538 # PR gas/19109
15539 # Decide the default method for compressing debug sections.
15540 ac_default_compressed_debug_sections=unset
15541 # Provide a configure time option to override our default.
15542 # Check whether --enable-compressed_debug_sections was given.
15543 if test "${enable_compressed_debug_sections+set}" = set; then :
15544   enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15545   ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15546   ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
15547 esac
15548 fi
15549
15550 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15551 ac_default_new_dtags=unset
15552 # Provide a configure time option to override our default.
15553 # Check whether --enable-new_dtags was given.
15554 if test "${enable_new_dtags+set}" = set; then :
15555   enableval=$enable_new_dtags; case "${enableval}" in
15556   yes) ac_default_new_dtags=1 ;;
15557   no) ac_default_new_dtags=0 ;;
15558 esac
15559 fi
15560
15561 # Decide if -z relro should be enabled in ELF linker by default.
15562 ac_default_ld_z_relro=unset
15563 # Provide a configure time option to override our default.
15564 # Check whether --enable-relro was given.
15565 if test "${enable_relro+set}" = set; then :
15566   enableval=$enable_relro; case "${enableval}" in
15567   yes)  ac_default_ld_z_relro=1 ;;
15568   no)  ac_default_ld_z_relro=0 ;;
15569 esac
15570 fi
15571
15572 # Decide if -z separate-code should be enabled in ELF linker by default.
15573 ac_default_ld_z_separate_code=unset
15574 # Check whether --enable-separate-code was given.
15575 if test "${enable_separate_code+set}" = set; then :
15576   enableval=$enable_separate_code; case "${enableval}" in
15577   yes) ac_default_ld_z_separate_code=1 ;;
15578   no) ac_default_ld_z_separate_code=0 ;;
15579 esac
15580 fi
15581
15582
15583 # Decide which "--hash-style" to use by default
15584 # Provide a configure time option to override our default.
15585 # Check whether --enable-default-hash-style was given.
15586 if test "${enable_default_hash_style+set}" = set; then :
15587   enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15588   sysv | gnu | both) ;;
15589   *) as_fn_error "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15590 esac
15591 else
15592   case "${target}" in
15593   # Enable gnu hash only on GNU targets, but not mips
15594   mips*-*-*) enable_default_hash_style=sysv ;;
15595   *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15596   *) enable_default_hash_style=sysv ;;
15597 esac
15598 fi
15599
15600
15601 case "${enable_default_hash_style}" in
15602   sysv | both) ac_default_emit_sysv_hash=1 ;;
15603   *) ac_default_emit_sysv_hash=0 ;;
15604 esac
15605
15606 case "${enable_default_hash_style}" in
15607   gnu | both) ac_default_emit_gnu_hash=1 ;;
15608   *) ac_default_emit_gnu_hash=0 ;;
15609 esac
15610
15611
15612 # Set the 'development' global.
15613 . $srcdir/../bfd/development.sh
15614
15615 # Set acp_cpp_for_build variable
15616 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15617
15618 # Default set of GCC warnings to enable.
15619 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15620 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15621
15622 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h.  */
15625 __GNUC__
15626 _ACEOF
15627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15628   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15629
15630 else
15631   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15632 fi
15633 rm -f conftest*
15634
15635
15636 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h.  */
15639 __GNUC__
15640 _ACEOF
15641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15642   $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15643
15644 else
15645   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15646 fi
15647 rm -f conftest*
15648
15649
15650 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15651 WARN_WRITE_STRINGS=""
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h.  */
15654 __GNUC__
15655 _ACEOF
15656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15657   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15658
15659 else
15660   WARN_WRITE_STRINGS="-Wwrite-strings"
15661 fi
15662 rm -f conftest*
15663
15664
15665 # Verify CC_FOR_BUILD to be compatible with warning flags
15666
15667 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h.  */
15670 __GNUC__
15671 _ACEOF
15672 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15673   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15674
15675 else
15676   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15677 fi
15678 rm -f conftest*
15679
15680
15681 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h.  */
15684 __GNUC__
15685 _ACEOF
15686 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15687   $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15688
15689 else
15690   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15691 fi
15692 rm -f conftest*
15693
15694
15695 # Check whether --enable-werror was given.
15696 if test "${enable_werror+set}" = set; then :
15697   enableval=$enable_werror; case "${enableval}" in
15698      yes | y) ERROR_ON_WARNING="yes" ;;
15699      no | n)  ERROR_ON_WARNING="no" ;;
15700      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15701    esac
15702 fi
15703
15704
15705 # Disable -Wformat by default when using gcc on mingw
15706 case "${host}" in
15707   *-*-mingw32*)
15708     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15709       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15710       GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
15711     fi
15712     ;;
15713   *) ;;
15714 esac
15715
15716 # Enable -Werror by default when using gcc.  Turn it off for releases.
15717 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15718     ERROR_ON_WARNING=yes
15719 fi
15720
15721 NO_WERROR=
15722 if test "${ERROR_ON_WARNING}" = yes ; then
15723     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15724     GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
15725     NO_WERROR="-Wno-error"
15726 fi
15727
15728 if test "${GCC}" = yes ; then
15729   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15730   WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
15731 fi
15732
15733 # Check whether --enable-build-warnings was given.
15734 if test "${enable_build_warnings+set}" = set; then :
15735   enableval=$enable_build_warnings; case "${enableval}" in
15736   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15737         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
15738   no)   if test "${GCC}" = yes ; then
15739           WARN_CFLAGS="-w"
15740       WARN_CFLAGS_FOR_BUILD="-w"
15741         fi;;
15742   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15743         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15744         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
15745   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15746         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15747         WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15748   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15749         WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15750 esac
15751 fi
15752
15753
15754 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15755   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15756 fi
15757
15758
15759
15760
15761
15762
15763
15764
15765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15766 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15767 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15768   $as_echo_n "(cached) " >&6
15769 else
15770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h.  */
15772 #include <locale.h>
15773 int
15774 main ()
15775 {
15776 return LC_MESSAGES
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 if ac_fn_c_try_link "$LINENO"; then :
15782   am_cv_val_LC_MESSAGES=yes
15783 else
15784   am_cv_val_LC_MESSAGES=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext \
15787     conftest$ac_exeext conftest.$ac_ext
15788 fi
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15790 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15791   if test $am_cv_val_LC_MESSAGES = yes; then
15792
15793 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15794
15795   fi
15796
15797
15798 ac_config_headers="$ac_config_headers config.h:config.in"
15799
15800
15801 # PR 14072
15802
15803
15804 if test -z "$target" ; then
15805     as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15806 fi
15807 if test -z "$host" ; then
15808     as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15809 fi
15810
15811 # host-specific stuff:
15812
15813 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
15814 # If we haven't got the data from the intl directory,
15815 # assume NLS is disabled.
15816 USE_NLS=no
15817 LIBINTL=
15818 LIBINTL_DEP=
15819 INCINTL=
15820 XGETTEXT=
15821 GMSGFMT=
15822 POSUB=
15823
15824 if test -f  ../intl/config.intl; then
15825   .  ../intl/config.intl
15826 fi
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15828 $as_echo_n "checking whether NLS is requested... " >&6; }
15829 if test x"$USE_NLS" != xyes; then
15830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15832 else
15833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15834 $as_echo "yes" >&6; }
15835
15836 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15837
15838
15839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15840 $as_echo_n "checking for catalogs to be installed... " >&6; }
15841   # Look for .po and .gmo files in the source directory.
15842   CATALOGS=
15843   XLINGUAS=
15844   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15845     # If there aren't any .gmo files the shell will give us the
15846     # literal string "../path/to/srcdir/po/*.gmo" which has to be
15847     # weeded out.
15848     case "$cat" in *\**)
15849       continue;;
15850     esac
15851     # The quadruple backslash is collapsed to a double backslash
15852     # by the backticks, then collapsed again by the double quotes,
15853     # leaving us with one backslash in the sed expression (right
15854     # before the dot that mustn't act as a wildcard).
15855     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15856     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15857     # The user is allowed to set LINGUAS to a list of languages to
15858     # install catalogs for.  If it's empty that means "all of them."
15859     if test "x$LINGUAS" = x; then
15860       CATALOGS="$CATALOGS $cat"
15861       XLINGUAS="$XLINGUAS $lang"
15862     else
15863       case "$LINGUAS" in *$lang*)
15864         CATALOGS="$CATALOGS $cat"
15865         XLINGUAS="$XLINGUAS $lang"
15866         ;;
15867       esac
15868     fi
15869   done
15870   LINGUAS="$XLINGUAS"
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15872 $as_echo "$LINGUAS" >&6; }
15873
15874
15875     DATADIRNAME=share
15876
15877   INSTOBJEXT=.mo
15878
15879   GENCAT=gencat
15880
15881   CATOBJEXT=.gmo
15882
15883 fi
15884
15885         MKINSTALLDIRS=
15886   if test -n "$ac_aux_dir"; then
15887     case "$ac_aux_dir" in
15888       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15889       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15890     esac
15891   fi
15892   if test -z "$MKINSTALLDIRS"; then
15893     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15894   fi
15895
15896
15897
15898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15899 $as_echo_n "checking whether NLS is requested... " >&6; }
15900     # Check whether --enable-nls was given.
15901 if test "${enable_nls+set}" = set; then :
15902   enableval=$enable_nls; USE_NLS=$enableval
15903 else
15904   USE_NLS=yes
15905 fi
15906
15907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15908 $as_echo "$USE_NLS" >&6; }
15909
15910
15911
15912
15913
15914
15915 # Prepare PATH_SEPARATOR.
15916 # The user is always right.
15917 if test "${PATH_SEPARATOR+set}" != set; then
15918   echo "#! /bin/sh" >conf$$.sh
15919   echo  "exit 0"   >>conf$$.sh
15920   chmod +x conf$$.sh
15921   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15922     PATH_SEPARATOR=';'
15923   else
15924     PATH_SEPARATOR=:
15925   fi
15926   rm -f conf$$.sh
15927 fi
15928
15929 # Find out how to test for executable files. Don't use a zero-byte file,
15930 # as systems may use methods other than mode bits to determine executability.
15931 cat >conf$$.file <<_ASEOF
15932 #! /bin/sh
15933 exit 0
15934 _ASEOF
15935 chmod +x conf$$.file
15936 if test -x conf$$.file >/dev/null 2>&1; then
15937   ac_executable_p="test -x"
15938 else
15939   ac_executable_p="test -f"
15940 fi
15941 rm -f conf$$.file
15942
15943 # Extract the first word of "msgfmt", so it can be a program name with args.
15944 set dummy msgfmt; ac_word=$2
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15946 $as_echo_n "checking for $ac_word... " >&6; }
15947 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15948   $as_echo_n "(cached) " >&6
15949 else
15950   case "$MSGFMT" in
15951   [\\/]* | ?:[\\/]*)
15952     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15953     ;;
15954   *)
15955     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15956     for ac_dir in $PATH; do
15957       IFS="$ac_save_IFS"
15958       test -z "$ac_dir" && ac_dir=.
15959       for ac_exec_ext in '' $ac_executable_extensions; do
15960         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15961           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15962      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15963             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15964             break 2
15965           fi
15966         fi
15967       done
15968     done
15969     IFS="$ac_save_IFS"
15970   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15971     ;;
15972 esac
15973 fi
15974 MSGFMT="$ac_cv_path_MSGFMT"
15975 if test "$MSGFMT" != ":"; then
15976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15977 $as_echo "$MSGFMT" >&6; }
15978 else
15979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15981 fi
15982
15983   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15984 set dummy gmsgfmt; ac_word=$2
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15986 $as_echo_n "checking for $ac_word... " >&6; }
15987 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15988   $as_echo_n "(cached) " >&6
15989 else
15990   case $GMSGFMT in
15991   [\\/]* | ?:[\\/]*)
15992   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15993   ;;
15994   *)
15995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15997 do
15998   IFS=$as_save_IFS
15999   test -z "$as_dir" && as_dir=.
16000     for ac_exec_ext in '' $ac_executable_extensions; do
16001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16002     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16004     break 2
16005   fi
16006 done
16007   done
16008 IFS=$as_save_IFS
16009
16010   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16011   ;;
16012 esac
16013 fi
16014 GMSGFMT=$ac_cv_path_GMSGFMT
16015 if test -n "$GMSGFMT"; then
16016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16017 $as_echo "$GMSGFMT" >&6; }
16018 else
16019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021 fi
16022
16023
16024
16025
16026 # Prepare PATH_SEPARATOR.
16027 # The user is always right.
16028 if test "${PATH_SEPARATOR+set}" != set; then
16029   echo "#! /bin/sh" >conf$$.sh
16030   echo  "exit 0"   >>conf$$.sh
16031   chmod +x conf$$.sh
16032   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16033     PATH_SEPARATOR=';'
16034   else
16035     PATH_SEPARATOR=:
16036   fi
16037   rm -f conf$$.sh
16038 fi
16039
16040 # Find out how to test for executable files. Don't use a zero-byte file,
16041 # as systems may use methods other than mode bits to determine executability.
16042 cat >conf$$.file <<_ASEOF
16043 #! /bin/sh
16044 exit 0
16045 _ASEOF
16046 chmod +x conf$$.file
16047 if test -x conf$$.file >/dev/null 2>&1; then
16048   ac_executable_p="test -x"
16049 else
16050   ac_executable_p="test -f"
16051 fi
16052 rm -f conf$$.file
16053
16054 # Extract the first word of "xgettext", so it can be a program name with args.
16055 set dummy xgettext; ac_word=$2
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16057 $as_echo_n "checking for $ac_word... " >&6; }
16058 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16059   $as_echo_n "(cached) " >&6
16060 else
16061   case "$XGETTEXT" in
16062   [\\/]* | ?:[\\/]*)
16063     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16064     ;;
16065   *)
16066     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16067     for ac_dir in $PATH; do
16068       IFS="$ac_save_IFS"
16069       test -z "$ac_dir" && ac_dir=.
16070       for ac_exec_ext in '' $ac_executable_extensions; do
16071         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16072           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16073      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16074             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16075             break 2
16076           fi
16077         fi
16078       done
16079     done
16080     IFS="$ac_save_IFS"
16081   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16082     ;;
16083 esac
16084 fi
16085 XGETTEXT="$ac_cv_path_XGETTEXT"
16086 if test "$XGETTEXT" != ":"; then
16087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16088 $as_echo "$XGETTEXT" >&6; }
16089 else
16090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16092 fi
16093
16094     rm -f messages.po
16095
16096
16097 # Prepare PATH_SEPARATOR.
16098 # The user is always right.
16099 if test "${PATH_SEPARATOR+set}" != set; then
16100   echo "#! /bin/sh" >conf$$.sh
16101   echo  "exit 0"   >>conf$$.sh
16102   chmod +x conf$$.sh
16103   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16104     PATH_SEPARATOR=';'
16105   else
16106     PATH_SEPARATOR=:
16107   fi
16108   rm -f conf$$.sh
16109 fi
16110
16111 # Find out how to test for executable files. Don't use a zero-byte file,
16112 # as systems may use methods other than mode bits to determine executability.
16113 cat >conf$$.file <<_ASEOF
16114 #! /bin/sh
16115 exit 0
16116 _ASEOF
16117 chmod +x conf$$.file
16118 if test -x conf$$.file >/dev/null 2>&1; then
16119   ac_executable_p="test -x"
16120 else
16121   ac_executable_p="test -f"
16122 fi
16123 rm -f conf$$.file
16124
16125 # Extract the first word of "msgmerge", so it can be a program name with args.
16126 set dummy msgmerge; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128 $as_echo_n "checking for $ac_word... " >&6; }
16129 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16130   $as_echo_n "(cached) " >&6
16131 else
16132   case "$MSGMERGE" in
16133   [\\/]* | ?:[\\/]*)
16134     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16135     ;;
16136   *)
16137     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16138     for ac_dir in $PATH; do
16139       IFS="$ac_save_IFS"
16140       test -z "$ac_dir" && ac_dir=.
16141       for ac_exec_ext in '' $ac_executable_extensions; do
16142         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16143           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16144             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16145             break 2
16146           fi
16147         fi
16148       done
16149     done
16150     IFS="$ac_save_IFS"
16151   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16152     ;;
16153 esac
16154 fi
16155 MSGMERGE="$ac_cv_path_MSGMERGE"
16156 if test "$MSGMERGE" != ":"; then
16157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16158 $as_echo "$MSGMERGE" >&6; }
16159 else
16160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 $as_echo "no" >&6; }
16162 fi
16163
16164
16165       if test "$GMSGFMT" != ":"; then
16166             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16167        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16168       : ;
16169     else
16170       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16172 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16173       GMSGFMT=":"
16174     fi
16175   fi
16176
16177       if test "$XGETTEXT" != ":"; then
16178             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16179        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16180       : ;
16181     else
16182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16183 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16184       XGETTEXT=":"
16185     fi
16186         rm -f messages.po
16187   fi
16188
16189   ac_config_commands="$ac_config_commands default-1"
16190
16191
16192
16193
16194
16195 for ac_prog in 'bison -y' byacc
16196 do
16197   # Extract the first word of "$ac_prog", so it can be a program name with args.
16198 set dummy $ac_prog; ac_word=$2
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16200 $as_echo_n "checking for $ac_word... " >&6; }
16201 if test "${ac_cv_prog_YACC+set}" = set; then :
16202   $as_echo_n "(cached) " >&6
16203 else
16204   if test -n "$YACC"; then
16205   ac_cv_prog_YACC="$YACC" # Let the user override the test.
16206 else
16207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208 for as_dir in $PATH
16209 do
16210   IFS=$as_save_IFS
16211   test -z "$as_dir" && as_dir=.
16212     for ac_exec_ext in '' $ac_executable_extensions; do
16213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16214     ac_cv_prog_YACC="$ac_prog"
16215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16216     break 2
16217   fi
16218 done
16219   done
16220 IFS=$as_save_IFS
16221
16222 fi
16223 fi
16224 YACC=$ac_cv_prog_YACC
16225 if test -n "$YACC"; then
16226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16227 $as_echo "$YACC" >&6; }
16228 else
16229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230 $as_echo "no" >&6; }
16231 fi
16232
16233
16234   test -n "$YACC" && break
16235 done
16236 test -n "$YACC" || YACC="yacc"
16237
16238 for ac_prog in flex lex
16239 do
16240   # Extract the first word of "$ac_prog", so it can be a program name with args.
16241 set dummy $ac_prog; ac_word=$2
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16243 $as_echo_n "checking for $ac_word... " >&6; }
16244 if test "${ac_cv_prog_LEX+set}" = set; then :
16245   $as_echo_n "(cached) " >&6
16246 else
16247   if test -n "$LEX"; then
16248   ac_cv_prog_LEX="$LEX" # Let the user override the test.
16249 else
16250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251 for as_dir in $PATH
16252 do
16253   IFS=$as_save_IFS
16254   test -z "$as_dir" && as_dir=.
16255     for ac_exec_ext in '' $ac_executable_extensions; do
16256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16257     ac_cv_prog_LEX="$ac_prog"
16258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16259     break 2
16260   fi
16261 done
16262   done
16263 IFS=$as_save_IFS
16264
16265 fi
16266 fi
16267 LEX=$ac_cv_prog_LEX
16268 if test -n "$LEX"; then
16269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16270 $as_echo "$LEX" >&6; }
16271 else
16272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16273 $as_echo "no" >&6; }
16274 fi
16275
16276
16277   test -n "$LEX" && break
16278 done
16279 test -n "$LEX" || LEX=":"
16280
16281 case "$LEX" in
16282   :|*"missing "*) ;;
16283   *) cat >conftest.l <<_ACEOF
16284 %%
16285 a { ECHO; }
16286 b { REJECT; }
16287 c { yymore (); }
16288 d { yyless (1); }
16289 e { yyless (input () != 0); }
16290 f { unput (yytext[0]); }
16291 . { BEGIN INITIAL; }
16292 %%
16293 #ifdef YYTEXT_POINTER
16294 extern char *yytext;
16295 #endif
16296 int
16297 main (void)
16298 {
16299   return ! yylex () + ! yywrap ();
16300 }
16301 _ACEOF
16302 { { ac_try="$LEX conftest.l"
16303 case "(($ac_try" in
16304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305   *) ac_try_echo=$ac_try;;
16306 esac
16307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16308 $as_echo "$ac_try_echo"; } >&5
16309   (eval "$LEX conftest.l") 2>&5
16310   ac_status=$?
16311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16312   test $ac_status = 0; }
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16314 $as_echo_n "checking lex output file root... " >&6; }
16315 if test "${ac_cv_prog_lex_root+set}" = set; then :
16316   $as_echo_n "(cached) " >&6
16317 else
16318
16319 if test -f lex.yy.c; then
16320   ac_cv_prog_lex_root=lex.yy
16321 elif test -f lexyy.c; then
16322   ac_cv_prog_lex_root=lexyy
16323 else
16324   as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16325 fi
16326 fi
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16328 $as_echo "$ac_cv_prog_lex_root" >&6; }
16329 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16330
16331 if test -z "${LEXLIB+set}"; then
16332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16333 $as_echo_n "checking lex library... " >&6; }
16334 if test "${ac_cv_lib_lex+set}" = set; then :
16335   $as_echo_n "(cached) " >&6
16336 else
16337
16338     ac_save_LIBS=$LIBS
16339     ac_cv_lib_lex='none needed'
16340     for ac_lib in '' -lfl -ll; do
16341       LIBS="$ac_lib $ac_save_LIBS"
16342       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h.  */
16344 `cat $LEX_OUTPUT_ROOT.c`
16345 _ACEOF
16346 if ac_fn_c_try_link "$LINENO"; then :
16347   ac_cv_lib_lex=$ac_lib
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext \
16350     conftest$ac_exeext conftest.$ac_ext
16351       test "$ac_cv_lib_lex" != 'none needed' && break
16352     done
16353     LIBS=$ac_save_LIBS
16354
16355 fi
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16357 $as_echo "$ac_cv_lib_lex" >&6; }
16358   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16359 fi
16360
16361
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16363 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16364 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16365   $as_echo_n "(cached) " >&6
16366 else
16367   # POSIX says lex can declare yytext either as a pointer or an array; the
16368 # default is implementation-dependent.  Figure out which it is, since
16369 # not all implementations provide the %pointer and %array declarations.
16370 ac_cv_prog_lex_yytext_pointer=no
16371 ac_save_LIBS=$LIBS
16372 LIBS="$LEXLIB $ac_save_LIBS"
16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h.  */
16375 #define YYTEXT_POINTER 1
16376 `cat $LEX_OUTPUT_ROOT.c`
16377 _ACEOF
16378 if ac_fn_c_try_link "$LINENO"; then :
16379   ac_cv_prog_lex_yytext_pointer=yes
16380 fi
16381 rm -f core conftest.err conftest.$ac_objext \
16382     conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_save_LIBS
16384
16385 fi
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16387 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16388 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16389
16390 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16391
16392 fi
16393 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16394  ;;
16395 esac
16396 if test "$LEX" = :; then
16397   LEX=${am_missing_run}flex
16398 fi
16399
16400
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16402 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16403     # Check whether --enable-maintainer-mode was given.
16404 if test "${enable_maintainer_mode+set}" = set; then :
16405   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16406 else
16407   USE_MAINTAINER_MODE=no
16408 fi
16409
16410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16411 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16412    if test $USE_MAINTAINER_MODE = yes; then
16413   MAINTAINER_MODE_TRUE=
16414   MAINTAINER_MODE_FALSE='#'
16415 else
16416   MAINTAINER_MODE_TRUE='#'
16417   MAINTAINER_MODE_FALSE=
16418 fi
16419
16420   MAINT=$MAINTAINER_MODE_TRUE
16421
16422
16423  if false; then
16424   GENINSRC_NEVER_TRUE=
16425   GENINSRC_NEVER_FALSE='#'
16426 else
16427   GENINSRC_NEVER_TRUE='#'
16428   GENINSRC_NEVER_FALSE=
16429 fi
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16432 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16433 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16434   $as_echo_n "(cached) " >&6
16435 else
16436    echo abfoo >t1
16437   echo cdfoo >t2
16438   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16439   if cmp t1 t2 2 2 > /dev/null 2>&1; then
16440     if cmp t1 t2 1 1 > /dev/null 2>&1; then
16441       :
16442     else
16443       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16444     fi
16445   fi
16446   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16447     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16448       :
16449     else
16450       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16451     fi
16452   fi
16453   rm t1 t2
16454
16455 fi
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16457 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16458 do_compare="$gcc_cv_prog_cmp_skip"
16459
16460
16461
16462 . ${srcdir}/configure.host
16463
16464
16465
16466
16467 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16468 do :
16469   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16470 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16471 eval as_val=\$$as_ac_Header
16472    if test "x$as_val" = x""yes; then :
16473   cat >>confdefs.h <<_ACEOF
16474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16475 _ACEOF
16476
16477 fi
16478
16479 done
16480
16481 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16482 do :
16483   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16484 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16485 eval as_val=\$$as_ac_Header
16486    if test "x$as_val" = x""yes; then :
16487   cat >>confdefs.h <<_ACEOF
16488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16489 _ACEOF
16490
16491 fi
16492
16493 done
16494
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16496 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16497 if test "${gcc_cv_header_string+set}" = set; then :
16498   $as_echo_n "(cached) " >&6
16499 else
16500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h.  */
16502 #include <string.h>
16503 #include <strings.h>
16504 int
16505 main ()
16506 {
16507
16508   ;
16509   return 0;
16510 }
16511 _ACEOF
16512 if ac_fn_c_try_compile "$LINENO"; then :
16513   gcc_cv_header_string=yes
16514 else
16515   gcc_cv_header_string=no
16516 fi
16517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518 fi
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16520 $as_echo "$gcc_cv_header_string" >&6; }
16521 if test $gcc_cv_header_string = yes; then
16522
16523 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16524
16525 fi
16526
16527 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16528 do :
16529   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16530 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16531 eval as_val=\$$as_ac_var
16532    if test "x$as_val" = x""yes; then :
16533   cat >>confdefs.h <<_ACEOF
16534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535 _ACEOF
16536
16537 fi
16538 done
16539
16540 for ac_func in open lseek close
16541 do :
16542   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16544 eval as_val=\$$as_ac_var
16545    if test "x$as_val" = x""yes; then :
16546   cat >>confdefs.h <<_ACEOF
16547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16548 _ACEOF
16549
16550 fi
16551 done
16552
16553 ac_header_dirent=no
16554 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16555   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16557 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16559   $as_echo_n "(cached) " >&6
16560 else
16561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h.  */
16563 #include <sys/types.h>
16564 #include <$ac_hdr>
16565
16566 int
16567 main ()
16568 {
16569 if ((DIR *) 0)
16570 return 0;
16571   ;
16572   return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"; then :
16576   eval "$as_ac_Header=yes"
16577 else
16578   eval "$as_ac_Header=no"
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 eval ac_res=\$$as_ac_Header
16583                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16584 $as_echo "$ac_res" >&6; }
16585 eval as_val=\$$as_ac_Header
16586    if test "x$as_val" = x""yes; then :
16587   cat >>confdefs.h <<_ACEOF
16588 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16589 _ACEOF
16590
16591 ac_header_dirent=$ac_hdr; break
16592 fi
16593
16594 done
16595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16596 if test $ac_header_dirent = dirent.h; then
16597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16598 $as_echo_n "checking for library containing opendir... " >&6; }
16599 if test "${ac_cv_search_opendir+set}" = set; then :
16600   $as_echo_n "(cached) " >&6
16601 else
16602   ac_func_search_save_LIBS=$LIBS
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604 /* end confdefs.h.  */
16605
16606 /* Override any GCC internal prototype to avoid an error.
16607    Use char because int might match the return type of a GCC
16608    builtin and then its argument prototype would still apply.  */
16609 #ifdef __cplusplus
16610 extern "C"
16611 #endif
16612 char opendir ();
16613 int
16614 main ()
16615 {
16616 return opendir ();
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 for ac_lib in '' dir; do
16622   if test -z "$ac_lib"; then
16623     ac_res="none required"
16624   else
16625     ac_res=-l$ac_lib
16626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16627   fi
16628   if ac_fn_c_try_link "$LINENO"; then :
16629   ac_cv_search_opendir=$ac_res
16630 fi
16631 rm -f core conftest.err conftest.$ac_objext \
16632     conftest$ac_exeext
16633   if test "${ac_cv_search_opendir+set}" = set; then :
16634   break
16635 fi
16636 done
16637 if test "${ac_cv_search_opendir+set}" = set; then :
16638
16639 else
16640   ac_cv_search_opendir=no
16641 fi
16642 rm conftest.$ac_ext
16643 LIBS=$ac_func_search_save_LIBS
16644 fi
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16646 $as_echo "$ac_cv_search_opendir" >&6; }
16647 ac_res=$ac_cv_search_opendir
16648 if test "$ac_res" != no; then :
16649   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16650
16651 fi
16652
16653 else
16654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16655 $as_echo_n "checking for library containing opendir... " >&6; }
16656 if test "${ac_cv_search_opendir+set}" = set; then :
16657   $as_echo_n "(cached) " >&6
16658 else
16659   ac_func_search_save_LIBS=$LIBS
16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h.  */
16662
16663 /* Override any GCC internal prototype to avoid an error.
16664    Use char because int might match the return type of a GCC
16665    builtin and then its argument prototype would still apply.  */
16666 #ifdef __cplusplus
16667 extern "C"
16668 #endif
16669 char opendir ();
16670 int
16671 main ()
16672 {
16673 return opendir ();
16674   ;
16675   return 0;
16676 }
16677 _ACEOF
16678 for ac_lib in '' x; do
16679   if test -z "$ac_lib"; then
16680     ac_res="none required"
16681   else
16682     ac_res=-l$ac_lib
16683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16684   fi
16685   if ac_fn_c_try_link "$LINENO"; then :
16686   ac_cv_search_opendir=$ac_res
16687 fi
16688 rm -f core conftest.err conftest.$ac_objext \
16689     conftest$ac_exeext
16690   if test "${ac_cv_search_opendir+set}" = set; then :
16691   break
16692 fi
16693 done
16694 if test "${ac_cv_search_opendir+set}" = set; then :
16695
16696 else
16697   ac_cv_search_opendir=no
16698 fi
16699 rm conftest.$ac_ext
16700 LIBS=$ac_func_search_save_LIBS
16701 fi
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16703 $as_echo "$ac_cv_search_opendir" >&6; }
16704 ac_res=$ac_cv_search_opendir
16705 if test "$ac_res" != no; then :
16706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16707
16708 fi
16709
16710 fi
16711
16712
16713 for ac_header in stdlib.h unistd.h
16714 do :
16715   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16716 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16717 eval as_val=\$$as_ac_Header
16718    if test "x$as_val" = x""yes; then :
16719   cat >>confdefs.h <<_ACEOF
16720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16721 _ACEOF
16722
16723 fi
16724
16725 done
16726
16727 for ac_func in getpagesize
16728 do :
16729   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16730 if test "x$ac_cv_func_getpagesize" = x""yes; then :
16731   cat >>confdefs.h <<_ACEOF
16732 #define HAVE_GETPAGESIZE 1
16733 _ACEOF
16734
16735 fi
16736 done
16737
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16739 $as_echo_n "checking for working mmap... " >&6; }
16740 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16741   $as_echo_n "(cached) " >&6
16742 else
16743   if test "$cross_compiling" = yes; then :
16744   ac_cv_func_mmap_fixed_mapped=no
16745 else
16746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h.  */
16748 $ac_includes_default
16749 /* malloc might have been renamed as rpl_malloc. */
16750 #undef malloc
16751
16752 /* Thanks to Mike Haertel and Jim Avera for this test.
16753    Here is a matrix of mmap possibilities:
16754         mmap private not fixed
16755         mmap private fixed at somewhere currently unmapped
16756         mmap private fixed at somewhere already mapped
16757         mmap shared not fixed
16758         mmap shared fixed at somewhere currently unmapped
16759         mmap shared fixed at somewhere already mapped
16760    For private mappings, we should verify that changes cannot be read()
16761    back from the file, nor mmap's back from the file at a different
16762    address.  (There have been systems where private was not correctly
16763    implemented like the infamous i386 svr4.0, and systems where the
16764    VM page cache was not coherent with the file system buffer cache
16765    like early versions of FreeBSD and possibly contemporary NetBSD.)
16766    For shared mappings, we should conversely verify that changes get
16767    propagated back to all the places they're supposed to be.
16768
16769    Grep wants private fixed already mapped.
16770    The main things grep needs to know about mmap are:
16771    * does it exist and is it safe to write into the mmap'd area
16772    * how to use it (BSD variants)  */
16773
16774 #include <fcntl.h>
16775 #include <sys/mman.h>
16776
16777 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16778 char *malloc ();
16779 #endif
16780
16781 /* This mess was copied from the GNU getpagesize.h.  */
16782 #ifndef HAVE_GETPAGESIZE
16783 /* Assume that all systems that can run configure have sys/param.h.  */
16784 # ifndef HAVE_SYS_PARAM_H
16785 #  define HAVE_SYS_PARAM_H 1
16786 # endif
16787
16788 # ifdef _SC_PAGESIZE
16789 #  define getpagesize() sysconf(_SC_PAGESIZE)
16790 # else /* no _SC_PAGESIZE */
16791 #  ifdef HAVE_SYS_PARAM_H
16792 #   include <sys/param.h>
16793 #   ifdef EXEC_PAGESIZE
16794 #    define getpagesize() EXEC_PAGESIZE
16795 #   else /* no EXEC_PAGESIZE */
16796 #    ifdef NBPG
16797 #     define getpagesize() NBPG * CLSIZE
16798 #     ifndef CLSIZE
16799 #      define CLSIZE 1
16800 #     endif /* no CLSIZE */
16801 #    else /* no NBPG */
16802 #     ifdef NBPC
16803 #      define getpagesize() NBPC
16804 #     else /* no NBPC */
16805 #      ifdef PAGESIZE
16806 #       define getpagesize() PAGESIZE
16807 #      endif /* PAGESIZE */
16808 #     endif /* no NBPC */
16809 #    endif /* no NBPG */
16810 #   endif /* no EXEC_PAGESIZE */
16811 #  else /* no HAVE_SYS_PARAM_H */
16812 #   define getpagesize() 8192   /* punt totally */
16813 #  endif /* no HAVE_SYS_PARAM_H */
16814 # endif /* no _SC_PAGESIZE */
16815
16816 #endif /* no HAVE_GETPAGESIZE */
16817
16818 int
16819 main ()
16820 {
16821   char *data, *data2, *data3;
16822   int i, pagesize;
16823   int fd;
16824
16825   pagesize = getpagesize ();
16826
16827   /* First, make a file with some known garbage in it. */
16828   data = (char *) malloc (pagesize);
16829   if (!data)
16830     return 1;
16831   for (i = 0; i < pagesize; ++i)
16832     *(data + i) = rand ();
16833   umask (0);
16834   fd = creat ("conftest.mmap", 0600);
16835   if (fd < 0)
16836     return 1;
16837   if (write (fd, data, pagesize) != pagesize)
16838     return 1;
16839   close (fd);
16840
16841   /* Next, try to mmap the file at a fixed address which already has
16842      something else allocated at it.  If we can, also make sure that
16843      we see the same garbage.  */
16844   fd = open ("conftest.mmap", O_RDWR);
16845   if (fd < 0)
16846     return 1;
16847   data2 = (char *) malloc (2 * pagesize);
16848   if (!data2)
16849     return 1;
16850   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16851   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16852                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16853     return 1;
16854   for (i = 0; i < pagesize; ++i)
16855     if (*(data + i) != *(data2 + i))
16856       return 1;
16857
16858   /* Finally, make sure that changes to the mapped area do not
16859      percolate back to the file as seen by read().  (This is a bug on
16860      some variants of i386 svr4.0.)  */
16861   for (i = 0; i < pagesize; ++i)
16862     *(data2 + i) = *(data2 + i) + 1;
16863   data3 = (char *) malloc (pagesize);
16864   if (!data3)
16865     return 1;
16866   if (read (fd, data3, pagesize) != pagesize)
16867     return 1;
16868   for (i = 0; i < pagesize; ++i)
16869     if (*(data + i) != *(data3 + i))
16870       return 1;
16871   close (fd);
16872   return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_run "$LINENO"; then :
16876   ac_cv_func_mmap_fixed_mapped=yes
16877 else
16878   ac_cv_func_mmap_fixed_mapped=no
16879 fi
16880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16881   conftest.$ac_objext conftest.beam conftest.$ac_ext
16882 fi
16883
16884 fi
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16886 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16887 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16888
16889 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16890
16891 fi
16892 rm -f conftest.mmap
16893
16894
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16896 $as_echo_n "checking for library containing dlopen... " >&6; }
16897 if test "${ac_cv_search_dlopen+set}" = set; then :
16898   $as_echo_n "(cached) " >&6
16899 else
16900   ac_func_search_save_LIBS=$LIBS
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h.  */
16903
16904 /* Override any GCC internal prototype to avoid an error.
16905    Use char because int might match the return type of a GCC
16906    builtin and then its argument prototype would still apply.  */
16907 #ifdef __cplusplus
16908 extern "C"
16909 #endif
16910 char dlopen ();
16911 int
16912 main ()
16913 {
16914 return dlopen ();
16915   ;
16916   return 0;
16917 }
16918 _ACEOF
16919 for ac_lib in '' dl; do
16920   if test -z "$ac_lib"; then
16921     ac_res="none required"
16922   else
16923     ac_res=-l$ac_lib
16924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16925   fi
16926   if ac_fn_c_try_link "$LINENO"; then :
16927   ac_cv_search_dlopen=$ac_res
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext \
16930     conftest$ac_exeext
16931   if test "${ac_cv_search_dlopen+set}" = set; then :
16932   break
16933 fi
16934 done
16935 if test "${ac_cv_search_dlopen+set}" = set; then :
16936
16937 else
16938   ac_cv_search_dlopen=no
16939 fi
16940 rm conftest.$ac_ext
16941 LIBS=$ac_func_search_save_LIBS
16942 fi
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16944 $as_echo "$ac_cv_search_dlopen" >&6; }
16945 ac_res=$ac_cv_search_dlopen
16946 if test "$ac_res" != no; then :
16947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16948
16949 fi
16950
16951  if test x$plugins = xyes; then
16952   ENABLE_PLUGINS_TRUE=
16953   ENABLE_PLUGINS_FALSE='#'
16954 else
16955   ENABLE_PLUGINS_TRUE='#'
16956   ENABLE_PLUGINS_FALSE=
16957 fi
16958
16959
16960 # Check whether --enable-initfini-array was given.
16961 if test "${enable_initfini_array+set}" = set; then :
16962   enableval=$enable_initfini_array; case "${enableval}" in
16963  yes|no) ;;
16964  *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16965  esac
16966 else
16967   enable_initfini_array=yes
16968 fi
16969
16970
16971 if test $enable_initfini_array = yes; then
16972
16973 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16974
16975 fi
16976
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16978 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16979 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16980   $as_echo_n "(cached) " >&6
16981 else
16982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h.  */
16984 #include <unistd.h>
16985 int
16986 main ()
16987 {
16988 extern int getopt (int, char *const*, const char *);
16989   ;
16990   return 0;
16991 }
16992 _ACEOF
16993 if ac_fn_c_try_compile "$LINENO"; then :
16994   ld_cv_decl_getopt_unistd_h=yes
16995 else
16996   ld_cv_decl_getopt_unistd_h=no
16997 fi
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999 fi
17000
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17002 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
17003 if test $ld_cv_decl_getopt_unistd_h = yes; then
17004
17005 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
17006
17007 fi
17008
17009
17010 case "${host}" in
17011 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
17012
17013 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
17014  ;;
17015 esac
17016
17017 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
17018 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
17019   ac_have_decl=1
17020 else
17021   ac_have_decl=0
17022 fi
17023
17024 cat >>confdefs.h <<_ACEOF
17025 #define HAVE_DECL_STRSTR $ac_have_decl
17026 _ACEOF
17027 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
17028 if test "x$ac_cv_have_decl_free" = x""yes; then :
17029   ac_have_decl=1
17030 else
17031   ac_have_decl=0
17032 fi
17033
17034 cat >>confdefs.h <<_ACEOF
17035 #define HAVE_DECL_FREE $ac_have_decl
17036 _ACEOF
17037 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
17038 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
17039   ac_have_decl=1
17040 else
17041   ac_have_decl=0
17042 fi
17043
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_DECL_SBRK $ac_have_decl
17046 _ACEOF
17047 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17048 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17049   ac_have_decl=1
17050 else
17051   ac_have_decl=0
17052 fi
17053
17054 cat >>confdefs.h <<_ACEOF
17055 #define HAVE_DECL_GETENV $ac_have_decl
17056 _ACEOF
17057 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
17058 if test "x$ac_cv_have_decl_environ" = x""yes; then :
17059   ac_have_decl=1
17060 else
17061   ac_have_decl=0
17062 fi
17063
17064 cat >>confdefs.h <<_ACEOF
17065 #define HAVE_DECL_ENVIRON $ac_have_decl
17066 _ACEOF
17067
17068
17069 # When converting linker scripts into strings for use in emulation
17070 # files, use astring.sed if the compiler supports ANSI string
17071 # concatenation, or ostring.sed otherwise.  This is to support the
17072 # broken Microsoft MSVC compiler, which limits the length of string
17073 # constants, while still supporting pre-ANSI compilers which do not
17074 # support string concatenation.
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17076 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17077 if test "${ld_cv_string_concatenation+set}" = set; then :
17078   $as_echo_n "(cached) " >&6
17079 else
17080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h.  */
17082
17083 int
17084 main ()
17085 {
17086 char *a = "a" "a";
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 if ac_fn_c_try_compile "$LINENO"; then :
17092   ld_cv_string_concatenation=yes
17093 else
17094   ld_cv_string_concatenation=no
17095 fi
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097 fi
17098
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17100 $as_echo "$ld_cv_string_concatenation" >&6; }
17101 if test "$ld_cv_string_concatenation" = "yes"; then
17102   STRINGIFY=astring.sed
17103 else
17104   STRINGIFY=ostring.sed
17105 fi
17106
17107
17108 # target-specific stuff:
17109
17110 all_targets=
17111 EMUL=
17112 all_emuls=
17113 all_emul_extras=
17114 all_libpath=
17115
17116 rm -f tdirs
17117
17118 # If the host is 64-bit, then we enable 64-bit targets by default.
17119 # This is consistent with what ../bfd/configure.ac does.
17120 if test x${want64} = xfalse; then
17121   # The cast to long int works around a bug in the HP C Compiler
17122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17124 # This bug is HP SR number 8606223364.
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17126 $as_echo_n "checking size of void *... " >&6; }
17127 if test "${ac_cv_sizeof_void_p+set}" = set; then :
17128   $as_echo_n "(cached) " >&6
17129 else
17130   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
17131
17132 else
17133   if test "$ac_cv_type_void_p" = yes; then
17134      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17136 { as_fn_set_status 77
17137 as_fn_error "cannot compute sizeof (void *)
17138 See \`config.log' for more details." "$LINENO" 5; }; }
17139    else
17140      ac_cv_sizeof_void_p=0
17141    fi
17142 fi
17143
17144 fi
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17146 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17147
17148
17149
17150 cat >>confdefs.h <<_ACEOF
17151 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17152 _ACEOF
17153
17154
17155   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17156     want64=true
17157   fi
17158 fi
17159
17160 elf_list_options=FALSE
17161 elf_shlib_list_options=FALSE
17162 elf_plt_unwind_list_options=FALSE
17163 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17164 do
17165   if test "$targ_alias" = "all"; then
17166     all_targets=true
17167     elf_list_options=TRUE
17168     elf_shlib_list_options=TRUE
17169     elf_plt_unwind_list_options=TRUE
17170   else
17171     # Canonicalize the secondary target names.
17172     result=`$ac_config_sub $targ_alias 2>/dev/null`
17173     if test -n "$result"; then
17174         targ=$result
17175     else
17176         targ=$targ_alias
17177     fi
17178
17179     . ${srcdir}/configure.tgt
17180
17181     if test "$targ" = "$target"; then
17182       EMUL=$targ_emul
17183     fi
17184
17185     if test x${want64} = xfalse; then
17186       . ${srcdir}/../bfd/config.bfd
17187     fi
17188
17189     if test x${want64} = xtrue; then
17190       targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17191       targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17192     fi
17193
17194     for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17195         case " $all_emuls " in
17196         *" e${i}.o "*) ;;
17197         *)
17198           all_emuls="$all_emuls e${i}.o"
17199           eval result=\$tdir_$i
17200           test -z "$result" && result=$targ_alias
17201           echo tdir_$i=$result >> tdirs
17202           case "${i}" in
17203           *elf*)
17204             elf_list_options=TRUE
17205             ;;
17206           *)
17207             if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17208               elf_list_options=TRUE
17209             fi
17210             ;;
17211           esac
17212           if test "$elf_list_options" = "TRUE"; then
17213             . ${srcdir}/emulparams/${i}.sh
17214             if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17215               elf_shlib_list_options=TRUE
17216             fi
17217             if test x${PLT_UNWIND} = xyes; then
17218               elf_plt_unwind_list_options=TRUE
17219             fi
17220           fi
17221           ;;
17222         esac
17223     done
17224
17225     for i in $targ_emul $targ_extra_libpath; do
17226         case " $all_libpath " in
17227         *" ${i} "*) ;;
17228         *)
17229           if test -z "$all_libpath"; then
17230             all_libpath=${i}
17231           else
17232             all_libpath="$all_libpath ${i}"
17233           fi
17234           ;;
17235         esac
17236     done
17237
17238     for i in $targ_extra_ofiles; do
17239         case " $all_emul_extras " in
17240         *" ${i} "*) ;;
17241         *)
17242           all_emul_extras="$all_emul_extras ${i}"
17243           ;;
17244         esac
17245     done
17246
17247   fi
17248 done
17249
17250 if test x$ac_default_compressed_debug_sections = xyes ; then
17251
17252 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17253
17254 fi
17255
17256 if test "${ac_default_new_dtags}" = unset; then
17257   ac_default_new_dtags=0
17258 fi
17259
17260 cat >>confdefs.h <<_ACEOF
17261 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17262 _ACEOF
17263
17264
17265 if test "${ac_default_ld_z_relro}" = unset; then
17266   ac_default_ld_z_relro=0
17267 fi
17268
17269 cat >>confdefs.h <<_ACEOF
17270 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17271 _ACEOF
17272
17273
17274 if test "${ac_default_ld_z_separate_code}" = unset; then
17275   ac_default_ld_z_separate_code=0
17276 fi
17277
17278 cat >>confdefs.h <<_ACEOF
17279 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17280 _ACEOF
17281
17282
17283
17284 cat >>confdefs.h <<_ACEOF
17285 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17286 _ACEOF
17287
17288
17289
17290 cat >>confdefs.h <<_ACEOF
17291 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17292 _ACEOF
17293
17294
17295
17296
17297
17298
17299
17300 TDIRS=tdirs
17301
17302
17303 if test x${all_targets} = xtrue; then
17304   if test x${want64} = xtrue; then
17305     EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17306     EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17307   else
17308     EMULATION_OFILES='$(ALL_EMULATIONS)'
17309     EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17310   fi
17311 else
17312   EMULATION_OFILES=$all_emuls
17313   EMUL_EXTRA_OFILES=$all_emul_extras
17314 fi
17315
17316
17317
17318
17319 EMULATION_LIBPATH=$all_libpath
17320
17321
17322 if test x${enable_static} = xno; then
17323   TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
17324 else
17325   TESTBFDLIB="../bfd/.libs/libbfd.a"
17326 fi
17327
17328
17329 target_vendor=${target_vendor=$host_vendor}
17330 case "$target_vendor" in
17331   hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17332   *)  EXTRA_SHLIB_EXTENSION= ;;
17333 esac
17334
17335 case "$target_os" in
17336   lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17337 esac
17338
17339 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17340
17341 cat >>confdefs.h <<_ACEOF
17342 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17343 _ACEOF
17344
17345 fi
17346
17347 ac_config_commands="$ac_config_commands default"
17348
17349
17350
17351
17352
17353
17354
17355 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17356
17357 cat >confcache <<\_ACEOF
17358 # This file is a shell script that caches the results of configure
17359 # tests run on this system so they can be shared between configure
17360 # scripts and configure runs, see configure's option --config-cache.
17361 # It is not useful on other systems.  If it contains results you don't
17362 # want to keep, you may remove or edit it.
17363 #
17364 # config.status only pays attention to the cache file if you give it
17365 # the --recheck option to rerun configure.
17366 #
17367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17369 # following values.
17370
17371 _ACEOF
17372
17373 # The following way of writing the cache mishandles newlines in values,
17374 # but we know of no workaround that is simple, portable, and efficient.
17375 # So, we kill variables containing newlines.
17376 # Ultrix sh set writes to stderr and can't be redirected directly,
17377 # and sets the high bit in the cache file unless we assign to the vars.
17378 (
17379   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17380     eval ac_val=\$$ac_var
17381     case $ac_val in #(
17382     *${as_nl}*)
17383       case $ac_var in #(
17384       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17386       esac
17387       case $ac_var in #(
17388       _ | IFS | as_nl) ;; #(
17389       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17390       *) { eval $ac_var=; unset $ac_var;} ;;
17391       esac ;;
17392     esac
17393   done
17394
17395   (set) 2>&1 |
17396     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17397     *${as_nl}ac_space=\ *)
17398       # `set' does not quote correctly, so add quotes: double-quote
17399       # substitution turns \\\\ into \\, and sed turns \\ into \.
17400       sed -n \
17401         "s/'/'\\\\''/g;
17402           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17403       ;; #(
17404     *)
17405       # `set' quotes correctly as required by POSIX, so do not add quotes.
17406       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17407       ;;
17408     esac |
17409     sort
17410 ) |
17411   sed '
17412      /^ac_cv_env_/b end
17413      t clear
17414      :clear
17415      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17416      t end
17417      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17418      :end' >>confcache
17419 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17420   if test -w "$cache_file"; then
17421     test "x$cache_file" != "x/dev/null" &&
17422       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17423 $as_echo "$as_me: updating cache $cache_file" >&6;}
17424     cat confcache >$cache_file
17425   else
17426     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17427 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17428   fi
17429 fi
17430 rm -f confcache
17431
17432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17433 # Let make expand exec_prefix.
17434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17435
17436 DEFS=-DHAVE_CONFIG_H
17437
17438 ac_libobjs=
17439 ac_ltlibobjs=
17440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17441   # 1. Remove the extension, and $U if already installed.
17442   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17443   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17444   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17445   #    will be set to the directory where LIBOBJS objects are built.
17446   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17447   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17448 done
17449 LIBOBJS=$ac_libobjs
17450
17451 LTLIBOBJS=$ac_ltlibobjs
17452
17453
17454 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17455   as_fn_error "conditional \"AMDEP\" was never defined.
17456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17457 fi
17458 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17459   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17461 fi
17462  if test -n "$EXEEXT"; then
17463   am__EXEEXT_TRUE=
17464   am__EXEEXT_FALSE='#'
17465 else
17466   am__EXEEXT_TRUE='#'
17467   am__EXEEXT_FALSE=
17468 fi
17469
17470 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17471   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17473 fi
17474 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17475   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17477 fi
17478 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17479   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17481 fi
17482 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17483   as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17485 fi
17486 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17487   as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17489 fi
17490
17491 : ${CONFIG_STATUS=./config.status}
17492 ac_write_fail=0
17493 ac_clean_files_save=$ac_clean_files
17494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17496 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17497 as_write_fail=0
17498 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17499 #! $SHELL
17500 # Generated by $as_me.
17501 # Run this file to recreate the current configuration.
17502 # Compiler output produced by configure, useful for debugging
17503 # configure, is in config.log if it exists.
17504
17505 debug=false
17506 ac_cs_recheck=false
17507 ac_cs_silent=false
17508
17509 SHELL=\${CONFIG_SHELL-$SHELL}
17510 export SHELL
17511 _ASEOF
17512 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17513 ## -------------------- ##
17514 ## M4sh Initialization. ##
17515 ## -------------------- ##
17516
17517 # Be more Bourne compatible
17518 DUALCASE=1; export DUALCASE # for MKS sh
17519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17520   emulate sh
17521   NULLCMD=:
17522   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17523   # is contrary to our usage.  Disable this feature.
17524   alias -g '${1+"$@"}'='"$@"'
17525   setopt NO_GLOB_SUBST
17526 else
17527   case `(set -o) 2>/dev/null` in #(
17528   *posix*) :
17529     set -o posix ;; #(
17530   *) :
17531      ;;
17532 esac
17533 fi
17534
17535
17536 as_nl='
17537 '
17538 export as_nl
17539 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17540 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17542 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17543 # Prefer a ksh shell builtin over an external printf program on Solaris,
17544 # but without wasting forks for bash or zsh.
17545 if test -z "$BASH_VERSION$ZSH_VERSION" \
17546     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17547   as_echo='print -r --'
17548   as_echo_n='print -rn --'
17549 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17550   as_echo='printf %s\n'
17551   as_echo_n='printf %s'
17552 else
17553   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17554     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17555     as_echo_n='/usr/ucb/echo -n'
17556   else
17557     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17558     as_echo_n_body='eval
17559       arg=$1;
17560       case $arg in #(
17561       *"$as_nl"*)
17562         expr "X$arg" : "X\\(.*\\)$as_nl";
17563         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17564       esac;
17565       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17566     '
17567     export as_echo_n_body
17568     as_echo_n='sh -c $as_echo_n_body as_echo'
17569   fi
17570   export as_echo_body
17571   as_echo='sh -c $as_echo_body as_echo'
17572 fi
17573
17574 # The user is always right.
17575 if test "${PATH_SEPARATOR+set}" != set; then
17576   PATH_SEPARATOR=:
17577   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17578     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17579       PATH_SEPARATOR=';'
17580   }
17581 fi
17582
17583
17584 # IFS
17585 # We need space, tab and new line, in precisely that order.  Quoting is
17586 # there to prevent editors from complaining about space-tab.
17587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17588 # splitting by setting IFS to empty value.)
17589 IFS=" ""        $as_nl"
17590
17591 # Find who we are.  Look in the path if we contain no directory separator.
17592 case $0 in #((
17593   *[\\/]* ) as_myself=$0 ;;
17594   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17595 for as_dir in $PATH
17596 do
17597   IFS=$as_save_IFS
17598   test -z "$as_dir" && as_dir=.
17599     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17600   done
17601 IFS=$as_save_IFS
17602
17603      ;;
17604 esac
17605 # We did not find ourselves, most probably we were run as `sh COMMAND'
17606 # in which case we are not to be found in the path.
17607 if test "x$as_myself" = x; then
17608   as_myself=$0
17609 fi
17610 if test ! -f "$as_myself"; then
17611   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17612   exit 1
17613 fi
17614
17615 # Unset variables that we do not need and which cause bugs (e.g. in
17616 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17617 # suppresses any "Segmentation fault" message there.  '((' could
17618 # trigger a bug in pdksh 5.2.14.
17619 for as_var in BASH_ENV ENV MAIL MAILPATH
17620 do eval test x\${$as_var+set} = xset \
17621   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17622 done
17623 PS1='$ '
17624 PS2='> '
17625 PS4='+ '
17626
17627 # NLS nuisances.
17628 LC_ALL=C
17629 export LC_ALL
17630 LANGUAGE=C
17631 export LANGUAGE
17632
17633 # CDPATH.
17634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17635
17636
17637 # as_fn_error ERROR [LINENO LOG_FD]
17638 # ---------------------------------
17639 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17640 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17641 # script with status $?, using 1 if that was 0.
17642 as_fn_error ()
17643 {
17644   as_status=$?; test $as_status -eq 0 && as_status=1
17645   if test "$3"; then
17646     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17647     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17648   fi
17649   $as_echo "$as_me: error: $1" >&2
17650   as_fn_exit $as_status
17651 } # as_fn_error
17652
17653
17654 # as_fn_set_status STATUS
17655 # -----------------------
17656 # Set $? to STATUS, without forking.
17657 as_fn_set_status ()
17658 {
17659   return $1
17660 } # as_fn_set_status
17661
17662 # as_fn_exit STATUS
17663 # -----------------
17664 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17665 as_fn_exit ()
17666 {
17667   set +e
17668   as_fn_set_status $1
17669   exit $1
17670 } # as_fn_exit
17671
17672 # as_fn_unset VAR
17673 # ---------------
17674 # Portably unset VAR.
17675 as_fn_unset ()
17676 {
17677   { eval $1=; unset $1;}
17678 }
17679 as_unset=as_fn_unset
17680 # as_fn_append VAR VALUE
17681 # ----------------------
17682 # Append the text in VALUE to the end of the definition contained in VAR. Take
17683 # advantage of any shell optimizations that allow amortized linear growth over
17684 # repeated appends, instead of the typical quadratic growth present in naive
17685 # implementations.
17686 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17687   eval 'as_fn_append ()
17688   {
17689     eval $1+=\$2
17690   }'
17691 else
17692   as_fn_append ()
17693   {
17694     eval $1=\$$1\$2
17695   }
17696 fi # as_fn_append
17697
17698 # as_fn_arith ARG...
17699 # ------------------
17700 # Perform arithmetic evaluation on the ARGs, and store the result in the
17701 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17702 # must be portable across $(()) and expr.
17703 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17704   eval 'as_fn_arith ()
17705   {
17706     as_val=$(( $* ))
17707   }'
17708 else
17709   as_fn_arith ()
17710   {
17711     as_val=`expr "$@" || test $? -eq 1`
17712   }
17713 fi # as_fn_arith
17714
17715
17716 if expr a : '\(a\)' >/dev/null 2>&1 &&
17717    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17718   as_expr=expr
17719 else
17720   as_expr=false
17721 fi
17722
17723 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17724   as_basename=basename
17725 else
17726   as_basename=false
17727 fi
17728
17729 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17730   as_dirname=dirname
17731 else
17732   as_dirname=false
17733 fi
17734
17735 as_me=`$as_basename -- "$0" ||
17736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17737          X"$0" : 'X\(//\)$' \| \
17738          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17739 $as_echo X/"$0" |
17740     sed '/^.*\/\([^/][^/]*\)\/*$/{
17741             s//\1/
17742             q
17743           }
17744           /^X\/\(\/\/\)$/{
17745             s//\1/
17746             q
17747           }
17748           /^X\/\(\/\).*/{
17749             s//\1/
17750             q
17751           }
17752           s/.*/./; q'`
17753
17754 # Avoid depending upon Character Ranges.
17755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17758 as_cr_digits='0123456789'
17759 as_cr_alnum=$as_cr_Letters$as_cr_digits
17760
17761 ECHO_C= ECHO_N= ECHO_T=
17762 case `echo -n x` in #(((((
17763 -n*)
17764   case `echo 'xy\c'` in
17765   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17766   xy)  ECHO_C='\c';;
17767   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17768        ECHO_T=' ';;
17769   esac;;
17770 *)
17771   ECHO_N='-n';;
17772 esac
17773
17774 rm -f conf$$ conf$$.exe conf$$.file
17775 if test -d conf$$.dir; then
17776   rm -f conf$$.dir/conf$$.file
17777 else
17778   rm -f conf$$.dir
17779   mkdir conf$$.dir 2>/dev/null
17780 fi
17781 if (echo >conf$$.file) 2>/dev/null; then
17782   if ln -s conf$$.file conf$$ 2>/dev/null; then
17783     as_ln_s='ln -s'
17784     # ... but there are two gotchas:
17785     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17786     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17787     # In both cases, we have to default to `cp -p'.
17788     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17789       as_ln_s='cp -p'
17790   elif ln conf$$.file conf$$ 2>/dev/null; then
17791     as_ln_s=ln
17792   else
17793     as_ln_s='cp -p'
17794   fi
17795 else
17796   as_ln_s='cp -p'
17797 fi
17798 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17799 rmdir conf$$.dir 2>/dev/null
17800
17801
17802 # as_fn_mkdir_p
17803 # -------------
17804 # Create "$as_dir" as a directory, including parents if necessary.
17805 as_fn_mkdir_p ()
17806 {
17807
17808   case $as_dir in #(
17809   -*) as_dir=./$as_dir;;
17810   esac
17811   test -d "$as_dir" || eval $as_mkdir_p || {
17812     as_dirs=
17813     while :; do
17814       case $as_dir in #(
17815       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17816       *) as_qdir=$as_dir;;
17817       esac
17818       as_dirs="'$as_qdir' $as_dirs"
17819       as_dir=`$as_dirname -- "$as_dir" ||
17820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821          X"$as_dir" : 'X\(//\)[^/]' \| \
17822          X"$as_dir" : 'X\(//\)$' \| \
17823          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17824 $as_echo X"$as_dir" |
17825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17826             s//\1/
17827             q
17828           }
17829           /^X\(\/\/\)[^/].*/{
17830             s//\1/
17831             q
17832           }
17833           /^X\(\/\/\)$/{
17834             s//\1/
17835             q
17836           }
17837           /^X\(\/\).*/{
17838             s//\1/
17839             q
17840           }
17841           s/.*/./; q'`
17842       test -d "$as_dir" && break
17843     done
17844     test -z "$as_dirs" || eval "mkdir $as_dirs"
17845   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17846
17847
17848 } # as_fn_mkdir_p
17849 if mkdir -p . 2>/dev/null; then
17850   as_mkdir_p='mkdir -p "$as_dir"'
17851 else
17852   test -d ./-p && rmdir ./-p
17853   as_mkdir_p=false
17854 fi
17855
17856 if test -x / >/dev/null 2>&1; then
17857   as_test_x='test -x'
17858 else
17859   if ls -dL / >/dev/null 2>&1; then
17860     as_ls_L_option=L
17861   else
17862     as_ls_L_option=
17863   fi
17864   as_test_x='
17865     eval sh -c '\''
17866       if test -d "$1"; then
17867         test -d "$1/.";
17868       else
17869         case $1 in #(
17870         -*)set "./$1";;
17871         esac;
17872         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17873         ???[sx]*):;;*)false;;esac;fi
17874     '\'' sh
17875   '
17876 fi
17877 as_executable_p=$as_test_x
17878
17879 # Sed expression to map a string onto a valid CPP name.
17880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17881
17882 # Sed expression to map a string onto a valid variable name.
17883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17884
17885
17886 exec 6>&1
17887 ## ----------------------------------- ##
17888 ## Main body of $CONFIG_STATUS script. ##
17889 ## ----------------------------------- ##
17890 _ASEOF
17891 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17892
17893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17894 # Save the log message, to keep $0 and so on meaningful, and to
17895 # report actual input values of CONFIG_FILES etc. instead of their
17896 # values after options handling.
17897 ac_log="
17898 This file was extended by ld $as_me 2.30.51, which was
17899 generated by GNU Autoconf 2.64.  Invocation command line was
17900
17901   CONFIG_FILES    = $CONFIG_FILES
17902   CONFIG_HEADERS  = $CONFIG_HEADERS
17903   CONFIG_LINKS    = $CONFIG_LINKS
17904   CONFIG_COMMANDS = $CONFIG_COMMANDS
17905   $ $0 $@
17906
17907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17908 "
17909
17910 _ACEOF
17911
17912 case $ac_config_files in *"
17913 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17914 esac
17915
17916 case $ac_config_headers in *"
17917 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17918 esac
17919
17920
17921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922 # Files that config.status was made for.
17923 config_files="$ac_config_files"
17924 config_headers="$ac_config_headers"
17925 config_commands="$ac_config_commands"
17926
17927 _ACEOF
17928
17929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17930 ac_cs_usage="\
17931 \`$as_me' instantiates files and other configuration actions
17932 from templates according to the current configuration.  Unless the files
17933 and actions are specified as TAGs, all are instantiated by default.
17934
17935 Usage: $0 [OPTION]... [TAG]...
17936
17937   -h, --help       print this help, then exit
17938   -V, --version    print version number and configuration settings, then exit
17939   -q, --quiet, --silent
17940                    do not print progress messages
17941   -d, --debug      don't remove temporary files
17942       --recheck    update $as_me by reconfiguring in the same conditions
17943       --file=FILE[:TEMPLATE]
17944                    instantiate the configuration file FILE
17945       --header=FILE[:TEMPLATE]
17946                    instantiate the configuration header FILE
17947
17948 Configuration files:
17949 $config_files
17950
17951 Configuration headers:
17952 $config_headers
17953
17954 Configuration commands:
17955 $config_commands
17956
17957 Report bugs to the package provider."
17958
17959 _ACEOF
17960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17961 ac_cs_version="\\
17962 ld config.status 2.30.51
17963 configured by $0, generated by GNU Autoconf 2.64,
17964   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17965
17966 Copyright (C) 2009 Free Software Foundation, Inc.
17967 This config.status script is free software; the Free Software Foundation
17968 gives unlimited permission to copy, distribute and modify it."
17969
17970 ac_pwd='$ac_pwd'
17971 srcdir='$srcdir'
17972 INSTALL='$INSTALL'
17973 MKDIR_P='$MKDIR_P'
17974 AWK='$AWK'
17975 test -n "\$AWK" || AWK=awk
17976 _ACEOF
17977
17978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17979 # The default lists apply if the user does not specify any file.
17980 ac_need_defaults=:
17981 while test $# != 0
17982 do
17983   case $1 in
17984   --*=*)
17985     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17986     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17987     ac_shift=:
17988     ;;
17989   *)
17990     ac_option=$1
17991     ac_optarg=$2
17992     ac_shift=shift
17993     ;;
17994   esac
17995
17996   case $ac_option in
17997   # Handling of the options.
17998   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17999     ac_cs_recheck=: ;;
18000   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18001     $as_echo "$ac_cs_version"; exit ;;
18002   --debug | --debu | --deb | --de | --d | -d )
18003     debug=: ;;
18004   --file | --fil | --fi | --f )
18005     $ac_shift
18006     case $ac_optarg in
18007     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18008     esac
18009     as_fn_append CONFIG_FILES " '$ac_optarg'"
18010     ac_need_defaults=false;;
18011   --header | --heade | --head | --hea )
18012     $ac_shift
18013     case $ac_optarg in
18014     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18015     esac
18016     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18017     ac_need_defaults=false;;
18018   --he | --h)
18019     # Conflict between --help and --header
18020     as_fn_error "ambiguous option: \`$1'
18021 Try \`$0 --help' for more information.";;
18022   --help | --hel | -h )
18023     $as_echo "$ac_cs_usage"; exit ;;
18024   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18025   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18026     ac_cs_silent=: ;;
18027
18028   # This is an error.
18029   -*) as_fn_error "unrecognized option: \`$1'
18030 Try \`$0 --help' for more information." ;;
18031
18032   *) as_fn_append ac_config_targets " $1"
18033      ac_need_defaults=false ;;
18034
18035   esac
18036   shift
18037 done
18038
18039 ac_configure_extra_args=
18040
18041 if $ac_cs_silent; then
18042   exec 6>/dev/null
18043   ac_configure_extra_args="$ac_configure_extra_args --silent"
18044 fi
18045
18046 _ACEOF
18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18048 if \$ac_cs_recheck; then
18049   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18050   shift
18051   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18052   CONFIG_SHELL='$SHELL'
18053   export CONFIG_SHELL
18054   exec "\$@"
18055 fi
18056
18057 _ACEOF
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 exec 5>>config.log
18060 {
18061   echo
18062   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18063 ## Running $as_me. ##
18064 _ASBOX
18065   $as_echo "$ac_log"
18066 } >&5
18067
18068 _ACEOF
18069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18070 #
18071 # INIT-COMMANDS
18072 #
18073 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18074
18075
18076 # The HP-UX ksh and POSIX shell print the target directory to stdout
18077 # if CDPATH is set.
18078 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18079
18080 sed_quote_subst='$sed_quote_subst'
18081 double_quote_subst='$double_quote_subst'
18082 delay_variable_subst='$delay_variable_subst'
18083 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18084 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18085 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18086 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18087 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18088 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18089 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18090 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18091 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18092 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18093 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18094 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18095 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18096 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18097 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18098 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18099 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18100 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18101 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18102 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18103 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18104 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18105 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18106 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18107 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18108 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18109 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18110 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18111 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18112 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18113 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18114 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18115 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18116 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18117 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18118 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18119 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18120 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18121 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18122 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18123 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18124 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18125 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18126 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18127 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18128 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18129 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18130 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18131 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"`'
18132 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18133 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18134 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18135 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18136 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18137 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18138 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18139 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18140 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18141 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18142 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18143 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18144 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18145 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18146 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18147 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18148 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18149 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18150 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18151 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18152 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18153 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18154 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18155 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18156 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18157 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18158 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18159 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18160 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18161 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18162 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18163 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18164 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18165 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18166 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18167 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18168 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18169 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18170 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18171 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18172 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18173 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18174 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18175 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18176 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18177 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18178 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18179 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18180 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18181 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18182 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18183 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18184 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18185 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18186 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18187 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18188 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18189 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18190 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18191 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18192 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18193 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18194 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18195 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18196 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18197 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18198 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18199 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18200 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18201 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18202 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18203 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18204 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18205 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18206 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18207 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18208 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18209 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18210 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18211 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18212 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18213 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18214 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18215 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18216 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18217 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18218 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18219 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18220 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18221 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18222 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18223 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18224 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18225 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18226 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18227 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18228 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18229 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18230 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18231 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18232 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18233 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18234 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18235 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18236 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18237 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18238 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18239 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18240 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18241 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18242 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18243 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18244 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18245 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18246 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18247 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18248 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18249 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18250 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18251 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18252 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18253 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18254 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18255 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18256 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18257 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18258
18259 LTCC='$LTCC'
18260 LTCFLAGS='$LTCFLAGS'
18261 compiler='$compiler_DEFAULT'
18262
18263 # A function that is used when there is no print builtin or printf.
18264 func_fallback_echo ()
18265 {
18266   eval 'cat <<_LTECHO_EOF
18267 \$1
18268 _LTECHO_EOF'
18269 }
18270
18271 # Quote evaled strings.
18272 for var in SHELL \
18273 ECHO \
18274 SED \
18275 GREP \
18276 EGREP \
18277 FGREP \
18278 LD \
18279 NM \
18280 LN_S \
18281 lt_SP2NL \
18282 lt_NL2SP \
18283 reload_flag \
18284 OBJDUMP \
18285 deplibs_check_method \
18286 file_magic_cmd \
18287 AR \
18288 AR_FLAGS \
18289 STRIP \
18290 RANLIB \
18291 CC \
18292 CFLAGS \
18293 compiler \
18294 lt_cv_sys_global_symbol_pipe \
18295 lt_cv_sys_global_symbol_to_cdecl \
18296 lt_cv_sys_global_symbol_to_c_name_address \
18297 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18298 lt_prog_compiler_no_builtin_flag \
18299 lt_prog_compiler_wl \
18300 lt_prog_compiler_pic \
18301 lt_prog_compiler_static \
18302 lt_cv_prog_compiler_c_o \
18303 need_locks \
18304 DSYMUTIL \
18305 NMEDIT \
18306 LIPO \
18307 OTOOL \
18308 OTOOL64 \
18309 shrext_cmds \
18310 export_dynamic_flag_spec \
18311 whole_archive_flag_spec \
18312 compiler_needs_object \
18313 with_gnu_ld \
18314 allow_undefined_flag \
18315 no_undefined_flag \
18316 hardcode_libdir_flag_spec \
18317 hardcode_libdir_flag_spec_ld \
18318 hardcode_libdir_separator \
18319 fix_srcfile_path \
18320 exclude_expsyms \
18321 include_expsyms \
18322 file_list_spec \
18323 variables_saved_for_relink \
18324 libname_spec \
18325 library_names_spec \
18326 soname_spec \
18327 install_override_mode \
18328 finish_eval \
18329 old_striplib \
18330 striplib \
18331 compiler_lib_search_dirs \
18332 predep_objects \
18333 postdep_objects \
18334 predeps \
18335 postdeps \
18336 compiler_lib_search_path \
18337 LD_CXX \
18338 reload_flag_CXX \
18339 compiler_CXX \
18340 lt_prog_compiler_no_builtin_flag_CXX \
18341 lt_prog_compiler_wl_CXX \
18342 lt_prog_compiler_pic_CXX \
18343 lt_prog_compiler_static_CXX \
18344 lt_cv_prog_compiler_c_o_CXX \
18345 export_dynamic_flag_spec_CXX \
18346 whole_archive_flag_spec_CXX \
18347 compiler_needs_object_CXX \
18348 with_gnu_ld_CXX \
18349 allow_undefined_flag_CXX \
18350 no_undefined_flag_CXX \
18351 hardcode_libdir_flag_spec_CXX \
18352 hardcode_libdir_flag_spec_ld_CXX \
18353 hardcode_libdir_separator_CXX \
18354 fix_srcfile_path_CXX \
18355 exclude_expsyms_CXX \
18356 include_expsyms_CXX \
18357 file_list_spec_CXX \
18358 compiler_lib_search_dirs_CXX \
18359 predep_objects_CXX \
18360 postdep_objects_CXX \
18361 predeps_CXX \
18362 postdeps_CXX \
18363 compiler_lib_search_path_CXX; do
18364     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18365     *[\\\\\\\`\\"\\\$]*)
18366       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18367       ;;
18368     *)
18369       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18370       ;;
18371     esac
18372 done
18373
18374 # Double-quote double-evaled strings.
18375 for var in reload_cmds \
18376 old_postinstall_cmds \
18377 old_postuninstall_cmds \
18378 old_archive_cmds \
18379 extract_expsyms_cmds \
18380 old_archive_from_new_cmds \
18381 old_archive_from_expsyms_cmds \
18382 archive_cmds \
18383 archive_expsym_cmds \
18384 module_cmds \
18385 module_expsym_cmds \
18386 export_symbols_cmds \
18387 prelink_cmds \
18388 postinstall_cmds \
18389 postuninstall_cmds \
18390 finish_cmds \
18391 sys_lib_search_path_spec \
18392 sys_lib_dlsearch_path_spec \
18393 reload_cmds_CXX \
18394 old_archive_cmds_CXX \
18395 old_archive_from_new_cmds_CXX \
18396 old_archive_from_expsyms_cmds_CXX \
18397 archive_cmds_CXX \
18398 archive_expsym_cmds_CXX \
18399 module_cmds_CXX \
18400 module_expsym_cmds_CXX \
18401 export_symbols_cmds_CXX \
18402 prelink_cmds_CXX; do
18403     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18404     *[\\\\\\\`\\"\\\$]*)
18405       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18406       ;;
18407     *)
18408       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18409       ;;
18410     esac
18411 done
18412
18413 ac_aux_dir='$ac_aux_dir'
18414 xsi_shell='$xsi_shell'
18415 lt_shell_append='$lt_shell_append'
18416
18417 # See if we are running on zsh, and set the options which allow our
18418 # commands through without removal of \ escapes INIT.
18419 if test -n "\${ZSH_VERSION+set}" ; then
18420    setopt NO_GLOB_SUBST
18421 fi
18422
18423
18424     PACKAGE='$PACKAGE'
18425     VERSION='$VERSION'
18426     TIMESTAMP='$TIMESTAMP'
18427     RM='$RM'
18428     ofile='$ofile'
18429
18430
18431
18432
18433
18434 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18435     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18436     # from automake.
18437     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18438     # Capture the value of LINGUAS because we need it to compute CATALOGS.
18439     LINGUAS="${LINGUAS-%UNSET%}"
18440
18441
18442
18443 _ACEOF
18444
18445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18446
18447 # Handling of arguments.
18448 for ac_config_target in $ac_config_targets
18449 do
18450   case $ac_config_target in
18451     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18452     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18453     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18454     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18455     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18456     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18457     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18458
18459   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18460   esac
18461 done
18462
18463
18464 # If the user did not use the arguments to specify the items to instantiate,
18465 # then the envvar interface is used.  Set only those that are not.
18466 # We use the long form for the default assignment because of an extremely
18467 # bizarre bug on SunOS 4.1.3.
18468 if $ac_need_defaults; then
18469   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18470   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18471   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18472 fi
18473
18474 # Have a temporary directory for convenience.  Make it in the build tree
18475 # simply because there is no reason against having it here, and in addition,
18476 # creating and moving files from /tmp can sometimes cause problems.
18477 # Hook for its removal unless debugging.
18478 # Note that there is a small window in which the directory will not be cleaned:
18479 # after its creation but before its name has been assigned to `$tmp'.
18480 $debug ||
18481 {
18482   tmp=
18483   trap 'exit_status=$?
18484   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18485 ' 0
18486   trap 'as_fn_exit 1' 1 2 13 15
18487 }
18488 # Create a (secure) tmp directory for tmp files.
18489
18490 {
18491   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18492   test -n "$tmp" && test -d "$tmp"
18493 }  ||
18494 {
18495   tmp=./conf$$-$RANDOM
18496   (umask 077 && mkdir "$tmp")
18497 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18498
18499 # Set up the scripts for CONFIG_FILES section.
18500 # No need to generate them if there are no CONFIG_FILES.
18501 # This happens for instance with `./config.status config.h'.
18502 if test -n "$CONFIG_FILES"; then
18503
18504 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18505   ac_cs_awk_getline=:
18506   ac_cs_awk_pipe_init=
18507   ac_cs_awk_read_file='
18508       while ((getline aline < (F[key])) > 0)
18509         print(aline)
18510       close(F[key])'
18511   ac_cs_awk_pipe_fini=
18512 else
18513   ac_cs_awk_getline=false
18514   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18515   ac_cs_awk_read_file='
18516       print "|#_!!_#|"
18517       print "cat " F[key] " &&"
18518       '$ac_cs_awk_pipe_init
18519   # The final `:' finishes the AND list.
18520   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18521 fi
18522 ac_cr=`echo X | tr X '\015'`
18523 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18524 # But we know of no other shell where ac_cr would be empty at this
18525 # point, so we can use a bashism as a fallback.
18526 if test "x$ac_cr" = x; then
18527   eval ac_cr=\$\'\\r\'
18528 fi
18529 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18530 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18531   ac_cs_awk_cr='\r'
18532 else
18533   ac_cs_awk_cr=$ac_cr
18534 fi
18535
18536 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18537 _ACEOF
18538
18539 # Create commands to substitute file output variables.
18540 {
18541   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18542   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18543   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18544   echo "_ACAWK" &&
18545   echo "_ACEOF"
18546 } >conf$$files.sh &&
18547 . ./conf$$files.sh ||
18548   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18549 rm -f conf$$files.sh
18550
18551 {
18552   echo "cat >conf$$subs.awk <<_ACEOF" &&
18553   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18554   echo "_ACEOF"
18555 } >conf$$subs.sh ||
18556   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18557 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18558 ac_delim='%!_!# '
18559 for ac_last_try in false false false false false :; do
18560   . ./conf$$subs.sh ||
18561     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18562
18563   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18564   if test $ac_delim_n = $ac_delim_num; then
18565     break
18566   elif $ac_last_try; then
18567     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18568   else
18569     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18570   fi
18571 done
18572 rm -f conf$$subs.sh
18573
18574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18575 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18576 _ACEOF
18577 sed -n '
18578 h
18579 s/^/S["/; s/!.*/"]=/
18580 p
18581 g
18582 s/^[^!]*!//
18583 :repl
18584 t repl
18585 s/'"$ac_delim"'$//
18586 t delim
18587 :nl
18588 h
18589 s/\(.\{148\}\).*/\1/
18590 t more1
18591 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18592 p
18593 n
18594 b repl
18595 :more1
18596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18597 p
18598 g
18599 s/.\{148\}//
18600 t nl
18601 :delim
18602 h
18603 s/\(.\{148\}\).*/\1/
18604 t more2
18605 s/["\\]/\\&/g; s/^/"/; s/$/"/
18606 p
18607 b
18608 :more2
18609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18610 p
18611 g
18612 s/.\{148\}//
18613 t delim
18614 ' <conf$$subs.awk | sed '
18615 /^[^""]/{
18616   N
18617   s/\n//
18618 }
18619 ' >>$CONFIG_STATUS || ac_write_fail=1
18620 rm -f conf$$subs.awk
18621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622 _ACAWK
18623 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18624   for (key in S) S_is_set[key] = 1
18625   FS = "\a"
18626   \$ac_cs_awk_pipe_init
18627 }
18628 {
18629   line = $ 0
18630   nfields = split(line, field, "@")
18631   substed = 0
18632   len = length(field[1])
18633   for (i = 2; i < nfields; i++) {
18634     key = field[i]
18635     keylen = length(key)
18636     if (S_is_set[key]) {
18637       value = S[key]
18638       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18639       len += length(value) + length(field[++i])
18640       substed = 1
18641     } else
18642       len += 1 + keylen
18643   }
18644   if (nfields == 3 && !substed) {
18645     key = field[2]
18646     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
18647       \$ac_cs_awk_read_file
18648       next
18649     }
18650   }
18651   print line
18652 }
18653 \$ac_cs_awk_pipe_fini
18654 _ACAWK
18655 _ACEOF
18656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18657 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18658   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18659 else
18660   cat
18661 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18662   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18663 _ACEOF
18664
18665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18667 # trailing colons and then remove the whole line if VPATH becomes empty
18668 # (actually we leave an empty line to preserve line numbers).
18669 if test "x$srcdir" = x.; then
18670   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18671 s/:*\$(srcdir):*/:/
18672 s/:*\${srcdir}:*/:/
18673 s/:*@srcdir@:*/:/
18674 s/^\([^=]*=[     ]*\):*/\1/
18675 s/:*$//
18676 s/^[^=]*=[       ]*$//
18677 }'
18678 fi
18679
18680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18681 fi # test -n "$CONFIG_FILES"
18682
18683 # Set up the scripts for CONFIG_HEADERS section.
18684 # No need to generate them if there are no CONFIG_HEADERS.
18685 # This happens for instance with `./config.status Makefile'.
18686 if test -n "$CONFIG_HEADERS"; then
18687 cat >"$tmp/defines.awk" <<\_ACAWK ||
18688 BEGIN {
18689 _ACEOF
18690
18691 # Transform confdefs.h into an awk script `defines.awk', embedded as
18692 # here-document in config.status, that substitutes the proper values into
18693 # config.h.in to produce config.h.
18694
18695 # Create a delimiter string that does not exist in confdefs.h, to ease
18696 # handling of long lines.
18697 ac_delim='%!_!# '
18698 for ac_last_try in false false :; do
18699   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18700   if test -z "$ac_t"; then
18701     break
18702   elif $ac_last_try; then
18703     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18704   else
18705     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18706   fi
18707 done
18708
18709 # For the awk script, D is an array of macro values keyed by name,
18710 # likewise P contains macro parameters if any.  Preserve backslash
18711 # newline sequences.
18712
18713 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18714 sed -n '
18715 s/.\{148\}/&'"$ac_delim"'/g
18716 t rset
18717 :rset
18718 s/^[     ]*#[    ]*define[       ][      ]*/ /
18719 t def
18720 d
18721 :def
18722 s/\\$//
18723 t bsnl
18724 s/["\\]/\\&/g
18725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18726 D["\1"]=" \3"/p
18727 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18728 d
18729 :bsnl
18730 s/["\\]/\\&/g
18731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18732 D["\1"]=" \3\\\\\\n"\\/p
18733 t cont
18734 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18735 t cont
18736 d
18737 :cont
18738 n
18739 s/.\{148\}/&'"$ac_delim"'/g
18740 t clear
18741 :clear
18742 s/\\$//
18743 t bsnlc
18744 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18745 d
18746 :bsnlc
18747 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18748 b cont
18749 ' <confdefs.h | sed '
18750 s/'"$ac_delim"'/"\\\
18751 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18752
18753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18754   for (key in D) D_is_set[key] = 1
18755   FS = "\a"
18756 }
18757 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18758   line = \$ 0
18759   split(line, arg, " ")
18760   if (arg[1] == "#") {
18761     defundef = arg[2]
18762     mac1 = arg[3]
18763   } else {
18764     defundef = substr(arg[1], 2)
18765     mac1 = arg[2]
18766   }
18767   split(mac1, mac2, "(") #)
18768   macro = mac2[1]
18769   prefix = substr(line, 1, index(line, defundef) - 1)
18770   if (D_is_set[macro]) {
18771     # Preserve the white space surrounding the "#".
18772     print prefix "define", macro P[macro] D[macro]
18773     next
18774   } else {
18775     # Replace #undef with comments.  This is necessary, for example,
18776     # in the case of _POSIX_SOURCE, which is predefined and required
18777     # on some systems where configure will not decide to define it.
18778     if (defundef == "undef") {
18779       print "/*", prefix defundef, macro, "*/"
18780       next
18781     }
18782   }
18783 }
18784 { print }
18785 _ACAWK
18786 _ACEOF
18787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18788   as_fn_error "could not setup config headers machinery" "$LINENO" 5
18789 fi # test -n "$CONFIG_HEADERS"
18790
18791
18792 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18793 shift
18794 for ac_tag
18795 do
18796   case $ac_tag in
18797   :[FHLC]) ac_mode=$ac_tag; continue;;
18798   esac
18799   case $ac_mode$ac_tag in
18800   :[FHL]*:*);;
18801   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18802   :[FH]-) ac_tag=-:-;;
18803   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18804   esac
18805   ac_save_IFS=$IFS
18806   IFS=:
18807   set x $ac_tag
18808   IFS=$ac_save_IFS
18809   shift
18810   ac_file=$1
18811   shift
18812
18813   case $ac_mode in
18814   :L) ac_source=$1;;
18815   :[FH])
18816     ac_file_inputs=
18817     for ac_f
18818     do
18819       case $ac_f in
18820       -) ac_f="$tmp/stdin";;
18821       *) # Look for the file first in the build tree, then in the source tree
18822          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18823          # because $ac_f cannot contain `:'.
18824          test -f "$ac_f" ||
18825            case $ac_f in
18826            [\\/$]*) false;;
18827            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18828            esac ||
18829            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18830       esac
18831       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18832       as_fn_append ac_file_inputs " '$ac_f'"
18833     done
18834
18835     # Let's still pretend it is `configure' which instantiates (i.e., don't
18836     # use $as_me), people would be surprised to read:
18837     #    /* config.h.  Generated by config.status.  */
18838     configure_input='Generated from '`
18839           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18840         `' by configure.'
18841     if test x"$ac_file" != x-; then
18842       configure_input="$ac_file.  $configure_input"
18843       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18844 $as_echo "$as_me: creating $ac_file" >&6;}
18845     fi
18846     # Neutralize special characters interpreted by sed in replacement strings.
18847     case $configure_input in #(
18848     *\&* | *\|* | *\\* )
18849        ac_sed_conf_input=`$as_echo "$configure_input" |
18850        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18851     *) ac_sed_conf_input=$configure_input;;
18852     esac
18853
18854     case $ac_tag in
18855     *:-:* | *:-) cat >"$tmp/stdin" \
18856       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18857     esac
18858     ;;
18859   esac
18860
18861   ac_dir=`$as_dirname -- "$ac_file" ||
18862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18863          X"$ac_file" : 'X\(//\)[^/]' \| \
18864          X"$ac_file" : 'X\(//\)$' \| \
18865          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18866 $as_echo X"$ac_file" |
18867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18868             s//\1/
18869             q
18870           }
18871           /^X\(\/\/\)[^/].*/{
18872             s//\1/
18873             q
18874           }
18875           /^X\(\/\/\)$/{
18876             s//\1/
18877             q
18878           }
18879           /^X\(\/\).*/{
18880             s//\1/
18881             q
18882           }
18883           s/.*/./; q'`
18884   as_dir="$ac_dir"; as_fn_mkdir_p
18885   ac_builddir=.
18886
18887 case "$ac_dir" in
18888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18889 *)
18890   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18891   # A ".." for each directory in $ac_dir_suffix.
18892   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18893   case $ac_top_builddir_sub in
18894   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18895   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18896   esac ;;
18897 esac
18898 ac_abs_top_builddir=$ac_pwd
18899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18900 # for backward compatibility:
18901 ac_top_builddir=$ac_top_build_prefix
18902
18903 case $srcdir in
18904   .)  # We are building in place.
18905     ac_srcdir=.
18906     ac_top_srcdir=$ac_top_builddir_sub
18907     ac_abs_top_srcdir=$ac_pwd ;;
18908   [\\/]* | ?:[\\/]* )  # Absolute name.
18909     ac_srcdir=$srcdir$ac_dir_suffix;
18910     ac_top_srcdir=$srcdir
18911     ac_abs_top_srcdir=$srcdir ;;
18912   *) # Relative name.
18913     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18914     ac_top_srcdir=$ac_top_build_prefix$srcdir
18915     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18916 esac
18917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18918
18919
18920   case $ac_mode in
18921   :F)
18922   #
18923   # CONFIG_FILE
18924   #
18925
18926   case $INSTALL in
18927   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18928   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18929   esac
18930   ac_MKDIR_P=$MKDIR_P
18931   case $MKDIR_P in
18932   [\\/$]* | ?:[\\/]* ) ;;
18933   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18934   esac
18935 _ACEOF
18936
18937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18938 # If the template does not know about datarootdir, expand it.
18939 # FIXME: This hack should be removed a few years after 2.60.
18940 ac_datarootdir_hack=; ac_datarootdir_seen=
18941 ac_sed_dataroot='
18942 /datarootdir/ {
18943   p
18944   q
18945 }
18946 /@datadir@/p
18947 /@docdir@/p
18948 /@infodir@/p
18949 /@localedir@/p
18950 /@mandir@/p'
18951 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18952 *datarootdir*) ac_datarootdir_seen=yes;;
18953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18955 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18956 _ACEOF
18957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958   ac_datarootdir_hack='
18959   s&@datadir@&$datadir&g
18960   s&@docdir@&$docdir&g
18961   s&@infodir@&$infodir&g
18962   s&@localedir@&$localedir&g
18963   s&@mandir@&$mandir&g
18964   s&\\\${datarootdir}&$datarootdir&g' ;;
18965 esac
18966 _ACEOF
18967
18968 # Neutralize VPATH when `$srcdir' = `.'.
18969 # Shell code in configure.ac might set extrasub.
18970 # FIXME: do we really want to maintain this feature?
18971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18972 ac_sed_extra="$ac_vpsub
18973 $extrasub
18974 _ACEOF
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 :t
18977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18978 s|@configure_input@|$ac_sed_conf_input|;t t
18979 s&@top_builddir@&$ac_top_builddir_sub&;t t
18980 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18981 s&@srcdir@&$ac_srcdir&;t t
18982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18983 s&@top_srcdir@&$ac_top_srcdir&;t t
18984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18985 s&@builddir@&$ac_builddir&;t t
18986 s&@abs_builddir@&$ac_abs_builddir&;t t
18987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18988 s&@INSTALL@&$ac_INSTALL&;t t
18989 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18990 $ac_datarootdir_hack
18991 "
18992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18993 if $ac_cs_awk_getline; then
18994   $AWK -f "$tmp/subs.awk"
18995 else
18996   $AWK -f "$tmp/subs.awk" | $SHELL
18997 fi >$tmp/out \
18998   || as_fn_error "could not create $ac_file" "$LINENO" 5
18999
19000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19001   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19002   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19003   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19004 which seems to be undefined.  Please make sure it is defined." >&5
19005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19006 which seems to be undefined.  Please make sure it is defined." >&2;}
19007
19008   rm -f "$tmp/stdin"
19009   case $ac_file in
19010   -) cat "$tmp/out" && rm -f "$tmp/out";;
19011   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19012   esac \
19013   || as_fn_error "could not create $ac_file" "$LINENO" 5
19014  ;;
19015   :H)
19016   #
19017   # CONFIG_HEADER
19018   #
19019   if test x"$ac_file" != x-; then
19020     {
19021       $as_echo "/* $configure_input  */" \
19022       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19023     } >"$tmp/config.h" \
19024       || as_fn_error "could not create $ac_file" "$LINENO" 5
19025     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19026       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19027 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19028     else
19029       rm -f "$ac_file"
19030       mv "$tmp/config.h" "$ac_file" \
19031         || as_fn_error "could not create $ac_file" "$LINENO" 5
19032     fi
19033   else
19034     $as_echo "/* $configure_input  */" \
19035       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19036       || as_fn_error "could not create -" "$LINENO" 5
19037   fi
19038 # Compute "$ac_file"'s index in $config_headers.
19039 _am_arg="$ac_file"
19040 _am_stamp_count=1
19041 for _am_header in $config_headers :; do
19042   case $_am_header in
19043     $_am_arg | $_am_arg:* )
19044       break ;;
19045     * )
19046       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19047   esac
19048 done
19049 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19050 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051          X"$_am_arg" : 'X\(//\)[^/]' \| \
19052          X"$_am_arg" : 'X\(//\)$' \| \
19053          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19054 $as_echo X"$_am_arg" |
19055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19056             s//\1/
19057             q
19058           }
19059           /^X\(\/\/\)[^/].*/{
19060             s//\1/
19061             q
19062           }
19063           /^X\(\/\/\)$/{
19064             s//\1/
19065             q
19066           }
19067           /^X\(\/\).*/{
19068             s//\1/
19069             q
19070           }
19071           s/.*/./; q'`/stamp-h$_am_stamp_count
19072  ;;
19073
19074   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19075 $as_echo "$as_me: executing $ac_file commands" >&6;}
19076  ;;
19077   esac
19078
19079
19080   case $ac_file$ac_mode in
19081     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19082   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19083   # are listed without --file.  Let's play safe and only enable the eval
19084   # if we detect the quoting.
19085   case $CONFIG_FILES in
19086   *\'*) eval set x "$CONFIG_FILES" ;;
19087   *)   set x $CONFIG_FILES ;;
19088   esac
19089   shift
19090   for mf
19091   do
19092     # Strip MF so we end up with the name of the file.
19093     mf=`echo "$mf" | sed -e 's/:.*$//'`
19094     # Check whether this is an Automake generated Makefile or not.
19095     # We used to match only the files named `Makefile.in', but
19096     # some people rename them; so instead we look at the file content.
19097     # Grep'ing the first line is not enough: some people post-process
19098     # each Makefile.in and add a new line on top of each file to say so.
19099     # Grep'ing the whole file is not good either: AIX grep has a line
19100     # limit of 2048, but all sed's we know have understand at least 4000.
19101     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19102       dirpart=`$as_dirname -- "$mf" ||
19103 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19104          X"$mf" : 'X\(//\)[^/]' \| \
19105          X"$mf" : 'X\(//\)$' \| \
19106          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19107 $as_echo X"$mf" |
19108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19109             s//\1/
19110             q
19111           }
19112           /^X\(\/\/\)[^/].*/{
19113             s//\1/
19114             q
19115           }
19116           /^X\(\/\/\)$/{
19117             s//\1/
19118             q
19119           }
19120           /^X\(\/\).*/{
19121             s//\1/
19122             q
19123           }
19124           s/.*/./; q'`
19125     else
19126       continue
19127     fi
19128     # Extract the definition of DEPDIR, am__include, and am__quote
19129     # from the Makefile without running `make'.
19130     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19131     test -z "$DEPDIR" && continue
19132     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19133     test -z "am__include" && continue
19134     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19135     # When using ansi2knr, U may be empty or an underscore; expand it
19136     U=`sed -n 's/^U = //p' < "$mf"`
19137     # Find all dependency output files, they are included files with
19138     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19139     # simplest approach to changing $(DEPDIR) to its actual value in the
19140     # expansion.
19141     for file in `sed -n "
19142       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19143          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19144       # Make sure the directory exists.
19145       test -f "$dirpart/$file" && continue
19146       fdir=`$as_dirname -- "$file" ||
19147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19148          X"$file" : 'X\(//\)[^/]' \| \
19149          X"$file" : 'X\(//\)$' \| \
19150          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19151 $as_echo X"$file" |
19152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19153             s//\1/
19154             q
19155           }
19156           /^X\(\/\/\)[^/].*/{
19157             s//\1/
19158             q
19159           }
19160           /^X\(\/\/\)$/{
19161             s//\1/
19162             q
19163           }
19164           /^X\(\/\).*/{
19165             s//\1/
19166             q
19167           }
19168           s/.*/./; q'`
19169       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19170       # echo "creating $dirpart/$file"
19171       echo '# dummy' > "$dirpart/$file"
19172     done
19173   done
19174 }
19175  ;;
19176     "libtool":C)
19177
19178     # See if we are running on zsh, and set the options which allow our
19179     # commands through without removal of \ escapes.
19180     if test -n "${ZSH_VERSION+set}" ; then
19181       setopt NO_GLOB_SUBST
19182     fi
19183
19184     cfgfile="${ofile}T"
19185     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19186     $RM "$cfgfile"
19187
19188     cat <<_LT_EOF >> "$cfgfile"
19189 #! $SHELL
19190
19191 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19192 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19194 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19195 #
19196 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19197 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19198 #   Written by Gordon Matzigkeit, 1996
19199 #
19200 #   This file is part of GNU Libtool.
19201 #
19202 # GNU Libtool is free software; you can redistribute it and/or
19203 # modify it under the terms of the GNU General Public License as
19204 # published by the Free Software Foundation; either version 2 of
19205 # the License, or (at your option) any later version.
19206 #
19207 # As a special exception to the GNU General Public License,
19208 # if you distribute this file as part of a program or library that
19209 # is built using GNU Libtool, you may include this file under the
19210 # same distribution terms that you use for the rest of that program.
19211 #
19212 # GNU Libtool is distributed in the hope that it will be useful,
19213 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19214 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19215 # GNU General Public License for more details.
19216 #
19217 # You should have received a copy of the GNU General Public License
19218 # along with GNU Libtool; see the file COPYING.  If not, a copy
19219 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19220 # obtained by writing to the Free Software Foundation, Inc.,
19221 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19222
19223
19224 # The names of the tagged configurations supported by this script.
19225 available_tags="CXX "
19226
19227 # ### BEGIN LIBTOOL CONFIG
19228
19229 # Which release of libtool.m4 was used?
19230 macro_version=$macro_version
19231 macro_revision=$macro_revision
19232
19233 # Whether or not to build shared libraries.
19234 build_libtool_libs=$enable_shared
19235
19236 # Whether or not to build static libraries.
19237 build_old_libs=$enable_static
19238
19239 # What type of objects to build.
19240 pic_mode=$pic_mode
19241
19242 # Whether or not to optimize for fast installation.
19243 fast_install=$enable_fast_install
19244
19245 # Shell to use when invoking shell scripts.
19246 SHELL=$lt_SHELL
19247
19248 # An echo program that protects backslashes.
19249 ECHO=$lt_ECHO
19250
19251 # The host system.
19252 host_alias=$host_alias
19253 host=$host
19254 host_os=$host_os
19255
19256 # The build system.
19257 build_alias=$build_alias
19258 build=$build
19259 build_os=$build_os
19260
19261 # A sed program that does not truncate output.
19262 SED=$lt_SED
19263
19264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19265 Xsed="\$SED -e 1s/^X//"
19266
19267 # A grep program that handles long lines.
19268 GREP=$lt_GREP
19269
19270 # An ERE matcher.
19271 EGREP=$lt_EGREP
19272
19273 # A literal string matcher.
19274 FGREP=$lt_FGREP
19275
19276 # A BSD- or MS-compatible name lister.
19277 NM=$lt_NM
19278
19279 # Whether we need soft or hard links.
19280 LN_S=$lt_LN_S
19281
19282 # What is the maximum length of a command?
19283 max_cmd_len=$max_cmd_len
19284
19285 # Object file suffix (normally "o").
19286 objext=$ac_objext
19287
19288 # Executable file suffix (normally "").
19289 exeext=$exeext
19290
19291 # whether the shell understands "unset".
19292 lt_unset=$lt_unset
19293
19294 # turn spaces into newlines.
19295 SP2NL=$lt_lt_SP2NL
19296
19297 # turn newlines into spaces.
19298 NL2SP=$lt_lt_NL2SP
19299
19300 # An object symbol dumper.
19301 OBJDUMP=$lt_OBJDUMP
19302
19303 # Method to check whether dependent libraries are shared objects.
19304 deplibs_check_method=$lt_deplibs_check_method
19305
19306 # Command to use when deplibs_check_method == "file_magic".
19307 file_magic_cmd=$lt_file_magic_cmd
19308
19309 # The archiver.
19310 AR=$lt_AR
19311 AR_FLAGS=$lt_AR_FLAGS
19312
19313 # A symbol stripping program.
19314 STRIP=$lt_STRIP
19315
19316 # Commands used to install an old-style archive.
19317 RANLIB=$lt_RANLIB
19318 old_postinstall_cmds=$lt_old_postinstall_cmds
19319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19320
19321 # Whether to use a lock for old archive extraction.
19322 lock_old_archive_extraction=$lock_old_archive_extraction
19323
19324 # A C compiler.
19325 LTCC=$lt_CC
19326
19327 # LTCC compiler flags.
19328 LTCFLAGS=$lt_CFLAGS
19329
19330 # Take the output of nm and produce a listing of raw symbols and C names.
19331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19332
19333 # Transform the output of nm in a proper C declaration.
19334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19335
19336 # Transform the output of nm in a C name address pair.
19337 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19338
19339 # Transform the output of nm in a C name address pair when lib prefix is needed.
19340 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19341
19342 # The name of the directory that contains temporary libtool files.
19343 objdir=$objdir
19344
19345 # Used to examine libraries when file_magic_cmd begins with "file".
19346 MAGIC_CMD=$MAGIC_CMD
19347
19348 # Must we lock files when doing compilation?
19349 need_locks=$lt_need_locks
19350
19351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19352 DSYMUTIL=$lt_DSYMUTIL
19353
19354 # Tool to change global to local symbols on Mac OS X.
19355 NMEDIT=$lt_NMEDIT
19356
19357 # Tool to manipulate fat objects and archives on Mac OS X.
19358 LIPO=$lt_LIPO
19359
19360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19361 OTOOL=$lt_OTOOL
19362
19363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19364 OTOOL64=$lt_OTOOL64
19365
19366 # Old archive suffix (normally "a").
19367 libext=$libext
19368
19369 # Shared library suffix (normally ".so").
19370 shrext_cmds=$lt_shrext_cmds
19371
19372 # The commands to extract the exported symbol list from a shared archive.
19373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19374
19375 # Variables whose values should be saved in libtool wrapper scripts and
19376 # restored at link time.
19377 variables_saved_for_relink=$lt_variables_saved_for_relink
19378
19379 # Do we need the "lib" prefix for modules?
19380 need_lib_prefix=$need_lib_prefix
19381
19382 # Do we need a version for libraries?
19383 need_version=$need_version
19384
19385 # Library versioning type.
19386 version_type=$version_type
19387
19388 # Shared library runtime path variable.
19389 runpath_var=$runpath_var
19390
19391 # Shared library path variable.
19392 shlibpath_var=$shlibpath_var
19393
19394 # Is shlibpath searched before the hard-coded library search path?
19395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19396
19397 # Format of library name prefix.
19398 libname_spec=$lt_libname_spec
19399
19400 # List of archive names.  First name is the real one, the rest are links.
19401 # The last name is the one that the linker finds with -lNAME
19402 library_names_spec=$lt_library_names_spec
19403
19404 # The coded name of the library, if different from the real name.
19405 soname_spec=$lt_soname_spec
19406
19407 # Permission mode override for installation of shared libraries.
19408 install_override_mode=$lt_install_override_mode
19409
19410 # Command to use after installation of a shared archive.
19411 postinstall_cmds=$lt_postinstall_cmds
19412
19413 # Command to use after uninstallation of a shared archive.
19414 postuninstall_cmds=$lt_postuninstall_cmds
19415
19416 # Commands used to finish a libtool library installation in a directory.
19417 finish_cmds=$lt_finish_cmds
19418
19419 # As "finish_cmds", except a single script fragment to be evaled but
19420 # not shown.
19421 finish_eval=$lt_finish_eval
19422
19423 # Whether we should hardcode library paths into libraries.
19424 hardcode_into_libs=$hardcode_into_libs
19425
19426 # Compile-time system search path for libraries.
19427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19428
19429 # Run-time system search path for libraries.
19430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19431
19432 # Whether dlopen is supported.
19433 dlopen_support=$enable_dlopen
19434
19435 # Whether dlopen of programs is supported.
19436 dlopen_self=$enable_dlopen_self
19437
19438 # Whether dlopen of statically linked programs is supported.
19439 dlopen_self_static=$enable_dlopen_self_static
19440
19441 # Commands to strip libraries.
19442 old_striplib=$lt_old_striplib
19443 striplib=$lt_striplib
19444
19445
19446 # The linker used to build libraries.
19447 LD=$lt_LD
19448
19449 # How to create reloadable object files.
19450 reload_flag=$lt_reload_flag
19451 reload_cmds=$lt_reload_cmds
19452
19453 # Commands used to build an old-style archive.
19454 old_archive_cmds=$lt_old_archive_cmds
19455
19456 # A language specific compiler.
19457 CC=$lt_compiler
19458
19459 # Is the compiler the GNU compiler?
19460 with_gcc=$GCC
19461
19462 # Compiler flag to turn off builtin functions.
19463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19464
19465 # How to pass a linker flag through the compiler.
19466 wl=$lt_lt_prog_compiler_wl
19467
19468 # Additional compiler flags for building library objects.
19469 pic_flag=$lt_lt_prog_compiler_pic
19470
19471 # Compiler flag to prevent dynamic linking.
19472 link_static_flag=$lt_lt_prog_compiler_static
19473
19474 # Does compiler simultaneously support -c and -o options?
19475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19476
19477 # Whether or not to add -lc for building shared libraries.
19478 build_libtool_need_lc=$archive_cmds_need_lc
19479
19480 # Whether or not to disallow shared libs when runtime libs are static.
19481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19482
19483 # Compiler flag to allow reflexive dlopens.
19484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19485
19486 # Compiler flag to generate shared objects directly from archives.
19487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19488
19489 # Whether the compiler copes with passing no objects directly.
19490 compiler_needs_object=$lt_compiler_needs_object
19491
19492 # Create an old-style archive from a shared archive.
19493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19494
19495 # Create a temporary old-style archive to link instead of a shared archive.
19496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19497
19498 # Commands used to build a shared archive.
19499 archive_cmds=$lt_archive_cmds
19500 archive_expsym_cmds=$lt_archive_expsym_cmds
19501
19502 # Commands used to build a loadable module if different from building
19503 # a shared archive.
19504 module_cmds=$lt_module_cmds
19505 module_expsym_cmds=$lt_module_expsym_cmds
19506
19507 # Whether we are building with GNU ld or not.
19508 with_gnu_ld=$lt_with_gnu_ld
19509
19510 # Flag that allows shared libraries with undefined symbols to be built.
19511 allow_undefined_flag=$lt_allow_undefined_flag
19512
19513 # Flag that enforces no undefined symbols.
19514 no_undefined_flag=$lt_no_undefined_flag
19515
19516 # Flag to hardcode \$libdir into a binary during linking.
19517 # This must work even if \$libdir does not exist
19518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19519
19520 # If ld is used when linking, flag to hardcode \$libdir into a binary
19521 # during linking.  This must work even if \$libdir does not exist.
19522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19523
19524 # Whether we need a single "-rpath" flag with a separated argument.
19525 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19526
19527 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19528 # DIR into the resulting binary.
19529 hardcode_direct=$hardcode_direct
19530
19531 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19532 # DIR into the resulting binary and the resulting library dependency is
19533 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19534 # library is relocated.
19535 hardcode_direct_absolute=$hardcode_direct_absolute
19536
19537 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19538 # into the resulting binary.
19539 hardcode_minus_L=$hardcode_minus_L
19540
19541 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19542 # into the resulting binary.
19543 hardcode_shlibpath_var=$hardcode_shlibpath_var
19544
19545 # Set to "yes" if building a shared library automatically hardcodes DIR
19546 # into the library and all subsequent libraries and executables linked
19547 # against it.
19548 hardcode_automatic=$hardcode_automatic
19549
19550 # Set to yes if linker adds runtime paths of dependent libraries
19551 # to runtime path list.
19552 inherit_rpath=$inherit_rpath
19553
19554 # Whether libtool must link a program against all its dependency libraries.
19555 link_all_deplibs=$link_all_deplibs
19556
19557 # Fix the shell variable \$srcfile for the compiler.
19558 fix_srcfile_path=$lt_fix_srcfile_path
19559
19560 # Set to "yes" if exported symbols are required.
19561 always_export_symbols=$always_export_symbols
19562
19563 # The commands to list exported symbols.
19564 export_symbols_cmds=$lt_export_symbols_cmds
19565
19566 # Symbols that should not be listed in the preloaded symbols.
19567 exclude_expsyms=$lt_exclude_expsyms
19568
19569 # Symbols that must always be exported.
19570 include_expsyms=$lt_include_expsyms
19571
19572 # Commands necessary for linking programs (against libraries) with templates.
19573 prelink_cmds=$lt_prelink_cmds
19574
19575 # Specify filename containing input files.
19576 file_list_spec=$lt_file_list_spec
19577
19578 # How to hardcode a shared library path into an executable.
19579 hardcode_action=$hardcode_action
19580
19581 # The directories searched by this compiler when creating a shared library.
19582 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19583
19584 # Dependencies to place before and after the objects being linked to
19585 # create a shared library.
19586 predep_objects=$lt_predep_objects
19587 postdep_objects=$lt_postdep_objects
19588 predeps=$lt_predeps
19589 postdeps=$lt_postdeps
19590
19591 # The library search path used internally by the compiler when linking
19592 # a shared library.
19593 compiler_lib_search_path=$lt_compiler_lib_search_path
19594
19595 # ### END LIBTOOL CONFIG
19596
19597 _LT_EOF
19598
19599   case $host_os in
19600   aix3*)
19601     cat <<\_LT_EOF >> "$cfgfile"
19602 # AIX sometimes has problems with the GCC collect2 program.  For some
19603 # reason, if we set the COLLECT_NAMES environment variable, the problems
19604 # vanish in a puff of smoke.
19605 if test "X${COLLECT_NAMES+set}" != Xset; then
19606   COLLECT_NAMES=
19607   export COLLECT_NAMES
19608 fi
19609 _LT_EOF
19610     ;;
19611   esac
19612
19613
19614 ltmain="$ac_aux_dir/ltmain.sh"
19615
19616
19617   # We use sed instead of cat because bash on DJGPP gets confused if
19618   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19619   # text mode, it properly converts lines to CR/LF.  This bash problem
19620   # is reportedly fixed, but why not run on old versions too?
19621   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19622     || (rm -f "$cfgfile"; exit 1)
19623
19624   case $xsi_shell in
19625   yes)
19626     cat << \_LT_EOF >> "$cfgfile"
19627
19628 # func_dirname file append nondir_replacement
19629 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19630 # otherwise set result to NONDIR_REPLACEMENT.
19631 func_dirname ()
19632 {
19633   case ${1} in
19634     */*) func_dirname_result="${1%/*}${2}" ;;
19635     *  ) func_dirname_result="${3}" ;;
19636   esac
19637 }
19638
19639 # func_basename file
19640 func_basename ()
19641 {
19642   func_basename_result="${1##*/}"
19643 }
19644
19645 # func_dirname_and_basename file append nondir_replacement
19646 # perform func_basename and func_dirname in a single function
19647 # call:
19648 #   dirname:  Compute the dirname of FILE.  If nonempty,
19649 #             add APPEND to the result, otherwise set result
19650 #             to NONDIR_REPLACEMENT.
19651 #             value returned in "$func_dirname_result"
19652 #   basename: Compute filename of FILE.
19653 #             value retuned in "$func_basename_result"
19654 # Implementation must be kept synchronized with func_dirname
19655 # and func_basename. For efficiency, we do not delegate to
19656 # those functions but instead duplicate the functionality here.
19657 func_dirname_and_basename ()
19658 {
19659   case ${1} in
19660     */*) func_dirname_result="${1%/*}${2}" ;;
19661     *  ) func_dirname_result="${3}" ;;
19662   esac
19663   func_basename_result="${1##*/}"
19664 }
19665
19666 # func_stripname prefix suffix name
19667 # strip PREFIX and SUFFIX off of NAME.
19668 # PREFIX and SUFFIX must not contain globbing or regex special
19669 # characters, hashes, percent signs, but SUFFIX may contain a leading
19670 # dot (in which case that matches only a dot).
19671 func_stripname ()
19672 {
19673   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19674   # positional parameters, so assign one to ordinary parameter first.
19675   func_stripname_result=${3}
19676   func_stripname_result=${func_stripname_result#"${1}"}
19677   func_stripname_result=${func_stripname_result%"${2}"}
19678 }
19679
19680 # func_opt_split
19681 func_opt_split ()
19682 {
19683   func_opt_split_opt=${1%%=*}
19684   func_opt_split_arg=${1#*=}
19685 }
19686
19687 # func_lo2o object
19688 func_lo2o ()
19689 {
19690   case ${1} in
19691     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19692     *)    func_lo2o_result=${1} ;;
19693   esac
19694 }
19695
19696 # func_xform libobj-or-source
19697 func_xform ()
19698 {
19699   func_xform_result=${1%.*}.lo
19700 }
19701
19702 # func_arith arithmetic-term...
19703 func_arith ()
19704 {
19705   func_arith_result=$(( $* ))
19706 }
19707
19708 # func_len string
19709 # STRING may not start with a hyphen.
19710 func_len ()
19711 {
19712   func_len_result=${#1}
19713 }
19714
19715 _LT_EOF
19716     ;;
19717   *) # Bourne compatible functions.
19718     cat << \_LT_EOF >> "$cfgfile"
19719
19720 # func_dirname file append nondir_replacement
19721 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19722 # otherwise set result to NONDIR_REPLACEMENT.
19723 func_dirname ()
19724 {
19725   # Extract subdirectory from the argument.
19726   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19727   if test "X$func_dirname_result" = "X${1}"; then
19728     func_dirname_result="${3}"
19729   else
19730     func_dirname_result="$func_dirname_result${2}"
19731   fi
19732 }
19733
19734 # func_basename file
19735 func_basename ()
19736 {
19737   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19738 }
19739
19740
19741 # func_stripname prefix suffix name
19742 # strip PREFIX and SUFFIX off of NAME.
19743 # PREFIX and SUFFIX must not contain globbing or regex special
19744 # characters, hashes, percent signs, but SUFFIX may contain a leading
19745 # dot (in which case that matches only a dot).
19746 # func_strip_suffix prefix name
19747 func_stripname ()
19748 {
19749   case ${2} in
19750     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19751     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19752   esac
19753 }
19754
19755 # sed scripts:
19756 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19757 my_sed_long_arg='1s/^-[^=]*=//'
19758
19759 # func_opt_split
19760 func_opt_split ()
19761 {
19762   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19763   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19764 }
19765
19766 # func_lo2o object
19767 func_lo2o ()
19768 {
19769   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19770 }
19771
19772 # func_xform libobj-or-source
19773 func_xform ()
19774 {
19775   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19776 }
19777
19778 # func_arith arithmetic-term...
19779 func_arith ()
19780 {
19781   func_arith_result=`expr "$@"`
19782 }
19783
19784 # func_len string
19785 # STRING may not start with a hyphen.
19786 func_len ()
19787 {
19788   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19789 }
19790
19791 _LT_EOF
19792 esac
19793
19794 case $lt_shell_append in
19795   yes)
19796     cat << \_LT_EOF >> "$cfgfile"
19797
19798 # func_append var value
19799 # Append VALUE to the end of shell variable VAR.
19800 func_append ()
19801 {
19802   eval "$1+=\$2"
19803 }
19804 _LT_EOF
19805     ;;
19806   *)
19807     cat << \_LT_EOF >> "$cfgfile"
19808
19809 # func_append var value
19810 # Append VALUE to the end of shell variable VAR.
19811 func_append ()
19812 {
19813   eval "$1=\$$1\$2"
19814 }
19815
19816 _LT_EOF
19817     ;;
19818   esac
19819
19820
19821   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19822     || (rm -f "$cfgfile"; exit 1)
19823
19824   mv -f "$cfgfile" "$ofile" ||
19825     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19826   chmod +x "$ofile"
19827
19828
19829     cat <<_LT_EOF >> "$ofile"
19830
19831 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19832
19833 # The linker used to build libraries.
19834 LD=$lt_LD_CXX
19835
19836 # How to create reloadable object files.
19837 reload_flag=$lt_reload_flag_CXX
19838 reload_cmds=$lt_reload_cmds_CXX
19839
19840 # Commands used to build an old-style archive.
19841 old_archive_cmds=$lt_old_archive_cmds_CXX
19842
19843 # A language specific compiler.
19844 CC=$lt_compiler_CXX
19845
19846 # Is the compiler the GNU compiler?
19847 with_gcc=$GCC_CXX
19848
19849 # Compiler flag to turn off builtin functions.
19850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19851
19852 # How to pass a linker flag through the compiler.
19853 wl=$lt_lt_prog_compiler_wl_CXX
19854
19855 # Additional compiler flags for building library objects.
19856 pic_flag=$lt_lt_prog_compiler_pic_CXX
19857
19858 # Compiler flag to prevent dynamic linking.
19859 link_static_flag=$lt_lt_prog_compiler_static_CXX
19860
19861 # Does compiler simultaneously support -c and -o options?
19862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19863
19864 # Whether or not to add -lc for building shared libraries.
19865 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19866
19867 # Whether or not to disallow shared libs when runtime libs are static.
19868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19869
19870 # Compiler flag to allow reflexive dlopens.
19871 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19872
19873 # Compiler flag to generate shared objects directly from archives.
19874 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19875
19876 # Whether the compiler copes with passing no objects directly.
19877 compiler_needs_object=$lt_compiler_needs_object_CXX
19878
19879 # Create an old-style archive from a shared archive.
19880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19881
19882 # Create a temporary old-style archive to link instead of a shared archive.
19883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19884
19885 # Commands used to build a shared archive.
19886 archive_cmds=$lt_archive_cmds_CXX
19887 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19888
19889 # Commands used to build a loadable module if different from building
19890 # a shared archive.
19891 module_cmds=$lt_module_cmds_CXX
19892 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19893
19894 # Whether we are building with GNU ld or not.
19895 with_gnu_ld=$lt_with_gnu_ld_CXX
19896
19897 # Flag that allows shared libraries with undefined symbols to be built.
19898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19899
19900 # Flag that enforces no undefined symbols.
19901 no_undefined_flag=$lt_no_undefined_flag_CXX
19902
19903 # Flag to hardcode \$libdir into a binary during linking.
19904 # This must work even if \$libdir does not exist
19905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19906
19907 # If ld is used when linking, flag to hardcode \$libdir into a binary
19908 # during linking.  This must work even if \$libdir does not exist.
19909 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19910
19911 # Whether we need a single "-rpath" flag with a separated argument.
19912 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19913
19914 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19915 # DIR into the resulting binary.
19916 hardcode_direct=$hardcode_direct_CXX
19917
19918 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19919 # DIR into the resulting binary and the resulting library dependency is
19920 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19921 # library is relocated.
19922 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19923
19924 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19925 # into the resulting binary.
19926 hardcode_minus_L=$hardcode_minus_L_CXX
19927
19928 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19929 # into the resulting binary.
19930 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19931
19932 # Set to "yes" if building a shared library automatically hardcodes DIR
19933 # into the library and all subsequent libraries and executables linked
19934 # against it.
19935 hardcode_automatic=$hardcode_automatic_CXX
19936
19937 # Set to yes if linker adds runtime paths of dependent libraries
19938 # to runtime path list.
19939 inherit_rpath=$inherit_rpath_CXX
19940
19941 # Whether libtool must link a program against all its dependency libraries.
19942 link_all_deplibs=$link_all_deplibs_CXX
19943
19944 # Fix the shell variable \$srcfile for the compiler.
19945 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19946
19947 # Set to "yes" if exported symbols are required.
19948 always_export_symbols=$always_export_symbols_CXX
19949
19950 # The commands to list exported symbols.
19951 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19952
19953 # Symbols that should not be listed in the preloaded symbols.
19954 exclude_expsyms=$lt_exclude_expsyms_CXX
19955
19956 # Symbols that must always be exported.
19957 include_expsyms=$lt_include_expsyms_CXX
19958
19959 # Commands necessary for linking programs (against libraries) with templates.
19960 prelink_cmds=$lt_prelink_cmds_CXX
19961
19962 # Specify filename containing input files.
19963 file_list_spec=$lt_file_list_spec_CXX
19964
19965 # How to hardcode a shared library path into an executable.
19966 hardcode_action=$hardcode_action_CXX
19967
19968 # The directories searched by this compiler when creating a shared library.
19969 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19970
19971 # Dependencies to place before and after the objects being linked to
19972 # create a shared library.
19973 predep_objects=$lt_predep_objects_CXX
19974 postdep_objects=$lt_postdep_objects_CXX
19975 predeps=$lt_predeps_CXX
19976 postdeps=$lt_postdeps_CXX
19977
19978 # The library search path used internally by the compiler when linking
19979 # a shared library.
19980 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19981
19982 # ### END LIBTOOL TAG CONFIG: CXX
19983 _LT_EOF
19984
19985  ;;
19986     "default-1":C)
19987     for ac_file in $CONFIG_FILES; do
19988       # Support "outfile[:infile[:infile...]]"
19989       case "$ac_file" in
19990         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19991       esac
19992       # PO directories have a Makefile.in generated from Makefile.in.in.
19993       case "$ac_file" in */Makefile.in)
19994         # Adjust a relative srcdir.
19995         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19996         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19997         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19998         # In autoconf-2.13 it is called $ac_given_srcdir.
19999         # In autoconf-2.50 it is called $srcdir.
20000         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20001         case "$ac_given_srcdir" in
20002           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20003           /*) top_srcdir="$ac_given_srcdir" ;;
20004           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
20005         esac
20006         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20007           rm -f "$ac_dir/POTFILES"
20008           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20009           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20010           POMAKEFILEDEPS="POTFILES.in"
20011           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20012           # on $ac_dir but don't depend on user-specified configuration
20013           # parameters.
20014           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20015             # The LINGUAS file contains the set of available languages.
20016             if test -n "$OBSOLETE_ALL_LINGUAS"; then
20017               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20018             fi
20019             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20020             # Hide the ALL_LINGUAS assigment from automake.
20021             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20022             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20023           else
20024             # The set of available languages was given in configure.ac.
20025             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20026           fi
20027           case "$ac_given_srcdir" in
20028             .) srcdirpre= ;;
20029             *) srcdirpre='$(srcdir)/' ;;
20030           esac
20031           POFILES=
20032           GMOFILES=
20033           UPDATEPOFILES=
20034           DUMMYPOFILES=
20035           for lang in $ALL_LINGUAS; do
20036             POFILES="$POFILES $srcdirpre$lang.po"
20037             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20038             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20039             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20040           done
20041           # CATALOGS depends on both $ac_dir and the user's LINGUAS
20042           # environment variable.
20043           INST_LINGUAS=
20044           if test -n "$ALL_LINGUAS"; then
20045             for presentlang in $ALL_LINGUAS; do
20046               useit=no
20047               if test "%UNSET%" != "$LINGUAS"; then
20048                 desiredlanguages="$LINGUAS"
20049               else
20050                 desiredlanguages="$ALL_LINGUAS"
20051               fi
20052               for desiredlang in $desiredlanguages; do
20053                 # Use the presentlang catalog if desiredlang is
20054                 #   a. equal to presentlang, or
20055                 #   b. a variant of presentlang (because in this case,
20056                 #      presentlang can be used as a fallback for messages
20057                 #      which are not translated in the desiredlang catalog).
20058                 case "$desiredlang" in
20059                   "$presentlang"*) useit=yes;;
20060                 esac
20061               done
20062               if test $useit = yes; then
20063                 INST_LINGUAS="$INST_LINGUAS $presentlang"
20064               fi
20065             done
20066           fi
20067           CATALOGS=
20068           if test -n "$INST_LINGUAS"; then
20069             for lang in $INST_LINGUAS; do
20070               CATALOGS="$CATALOGS $lang.gmo"
20071             done
20072           fi
20073           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20074           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20075           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20076             if test -f "$f"; then
20077               case "$f" in
20078                 *.orig | *.bak | *~) ;;
20079                 *) cat "$f" >> "$ac_dir/Makefile" ;;
20080               esac
20081             fi
20082           done
20083         fi
20084         ;;
20085       esac
20086     done ;;
20087     "default":C)
20088 case "$srcdir" in
20089   .) srcdirpre= ;;
20090   *) srcdirpre='$(srcdir)/' ;;
20091 esac
20092 POFILES=
20093 GMOFILES=
20094 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20095   if test $lang != dummy; then
20096     POFILES="$POFILES $srcdirpre$lang.po"
20097     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20098   fi
20099 done
20100 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20101     -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20102     -e "s,@POFILES@,$POFILES," \
20103     -e "s,@GMOFILES@,$GMOFILES," \
20104     po/Makefile.in > po/Makefile ;;
20105
20106   esac
20107 done # for ac_tag
20108
20109
20110 as_fn_exit 0
20111 _ACEOF
20112 ac_clean_files=$ac_clean_files_save
20113
20114 test $ac_write_fail = 0 ||
20115   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20116
20117
20118 # configure is writing to config.log, and then calls config.status.
20119 # config.status does its own redirection, appending to config.log.
20120 # Unfortunately, on DOS this fails, as config.log is still kept open
20121 # by configure, so config.status won't be able to write to it; its
20122 # output is simply discarded.  So we exec the FD to /dev/null,
20123 # effectively closing config.log, so it can be properly (re)opened and
20124 # appended to by config.status.  When coming back to configure, we
20125 # need to make the FD available again.
20126 if test "$no_create" != yes; then
20127   ac_cs_success=:
20128   ac_config_status_args=
20129   test "$silent" = yes &&
20130     ac_config_status_args="$ac_config_status_args --quiet"
20131   exec 5>/dev/null
20132   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20133   exec 5>>config.log
20134   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20135   # would make configure fail if this is the last instruction.
20136   $ac_cs_success || as_fn_exit $?
20137 fi
20138 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20139   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20140 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20141 fi
20142