Version 2.25
[platform/upstream/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.25.
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.25'
560 PACKAGE_STRING='ld 2.25'
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 STRINGIFY
612 enable_initfini_array
613 ENABLE_PLUGINS_FALSE
614 ENABLE_PLUGINS_TRUE
615 NATIVE_LIB_DIRS
616 HOSTING_SLIBS
617 HOSTING_LIBS
618 HOSTING_SCRT0
619 HOSTING_CRT0
620 HDEFINES
621 do_compare
622 GENINSRC_NEVER_FALSE
623 GENINSRC_NEVER_TRUE
624 LEXLIB
625 LEX_OUTPUT_ROOT
626 LEX
627 YFLAGS
628 YACC
629 MSGMERGE
630 MSGFMT
631 MKINSTALLDIRS
632 CATOBJEXT
633 GENCAT
634 INSTOBJEXT
635 DATADIRNAME
636 CATALOGS
637 POSUB
638 GMSGFMT
639 XGETTEXT
640 INCINTL
641 LIBINTL_DEP
642 LIBINTL
643 USE_NLS
644 NO_WERROR
645 WARN_CFLAGS
646 installed_linker
647 install_as_default
648 TARGET_SYSTEM_ROOT_DEFINE
649 TARGET_SYSTEM_ROOT
650 use_sysroot
651 CXXCPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 RANLIB
658 AR
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 SED
667 LIBTOOL
668 EGREP
669 GREP
670 CPP
671 am__fastdepCXX_FALSE
672 am__fastdepCXX_TRUE
673 CXXDEPMODE
674 ac_ct_CXX
675 CXXFLAGS
676 CXX
677 MAINT
678 MAINTAINER_MODE_FALSE
679 MAINTAINER_MODE_TRUE
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 target_os
720 target_vendor
721 target_cpu
722 target
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files='TDIRS'
770 ac_user_opts='
771 enable_option_checking
772 enable_dependency_tracking
773 enable_maintainer_mode
774 enable_shared
775 enable_static
776 with_pic
777 enable_fast_install
778 with_gnu_ld
779 enable_libtool_lock
780 enable_plugins
781 enable_largefile
782 with_lib_path
783 enable_targets
784 enable_64_bit_bfd
785 with_sysroot
786 enable_gold
787 enable_got
788 enable_werror
789 enable_build_warnings
790 enable_nls
791 enable_initfini_array
792 with_zlib
793 '
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 CPP
806 CXXCPP
807 YACC
808 YFLAGS'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863   # If the previous option needs an argument, assign it.
864   if test -n "$ac_prev"; then
865     eval $ac_prev=\$ac_option
866     ac_prev=
867     continue
868   fi
869
870   case $ac_option in
871   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       as_fn_error "invalid package name: $ac_useropt"
1164     ac_useropt_orig=$ac_useropt
1165     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166     case $ac_user_opts in
1167       *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171          ac_unrecognized_sep=', ';;
1172     esac
1173     eval with_$ac_useropt=no ;;
1174
1175   --x)
1176     # Obsolete; use --with-x.
1177     with_x=yes ;;
1178
1179   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180   | --x-incl | --x-inc | --x-in | --x-i)
1181     ac_prev=x_includes ;;
1182   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184     x_includes=$ac_optarg ;;
1185
1186   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188     ac_prev=x_libraries ;;
1189   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191     x_libraries=$ac_optarg ;;
1192
1193   -*) as_fn_error "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information."
1195     ;;
1196
1197   *=*)
1198     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199     # Reject names that are not valid shell variable names.
1200     case $ac_envvar in #(
1201       '' | [0-9]* | *[!_$as_cr_alnum]* )
1202       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203     esac
1204     eval $ac_envvar=\$ac_optarg
1205     export $ac_envvar ;;
1206
1207   *)
1208     # FIXME: should be removed in autoconf 3.0.
1209     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213     ;;
1214
1215   esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220   as_fn_error "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224   case $enable_option_checking in
1225     no) ;;
1226     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228   esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233                 datadir sysconfdir sharedstatedir localstatedir includedir \
1234                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235                 libdir localedir mandir
1236 do
1237   eval ac_val=\$$ac_var
1238   # Remove trailing slashes.
1239   case $ac_val in
1240     */ )
1241       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242       eval $ac_var=\$ac_val;;
1243   esac
1244   # Be sure to have absolute directory names.
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264     If a cross compiler is detected then cross compile mode will be used." >&2
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   as_fn_error "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281   as_fn_error "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286   ac_srcdir_defaulted=yes
1287   # Try the directory containing this script, then the parent directory.
1288   ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290          X"$as_myself" : 'X\(//\)[^/]' \| \
1291          X"$as_myself" : 'X\(//\)$' \| \
1292          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)[^/].*/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\).*/{
1307             s//\1/
1308             q
1309           }
1310           s/.*/./; q'`
1311   srcdir=$ac_confdir
1312   if test ! -r "$srcdir/$ac_unique_file"; then
1313     srcdir=..
1314   fi
1315 else
1316   ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325         pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328   srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_env_${ac_var}_value=\$${ac_var}
1339   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347   # Omit some internal or obsolete options to make the list less imposing.
1348   # This message is too long to be a string in the A/UX 3.1 sh.
1349   cat <<_ACEOF
1350 \`configure' configures ld 2.25 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360   -h, --help              display this help and exit
1361       --help=short        display options specific to this package
1362       --help=recursive    display the short help of all the included packages
1363   -V, --version           display version information and exit
1364   -q, --quiet, --silent   do not print \`checking...' messages
1365       --cache-file=FILE   cache test results in FILE [disabled]
1366   -C, --config-cache      alias for \`--cache-file=config.cache'
1367   -n, --no-create         do not create output files
1368       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371   --prefix=PREFIX         install architecture-independent files in PREFIX
1372                           [$ac_default_prefix]
1373   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                           [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384   --bindir=DIR            user executables [EPREFIX/bin]
1385   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386   --libexecdir=DIR        program executables [EPREFIX/libexec]
1387   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390   --libdir=DIR            object code libraries [EPREFIX/lib]
1391   --includedir=DIR        C header files [PREFIX/include]
1392   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1393   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1394   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1395   --infodir=DIR           info documentation [DATAROOTDIR/info]
1396   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1397   --mandir=DIR            man documentation [DATAROOTDIR/man]
1398   --docdir=DIR            documentation root [DATAROOTDIR/doc/ld]
1399   --htmldir=DIR           html documentation [DOCDIR]
1400   --dvidir=DIR            dvi documentation [DOCDIR]
1401   --pdfdir=DIR            pdf documentation [DOCDIR]
1402   --psdir=DIR             ps documentation [DOCDIR]
1403 _ACEOF
1404
1405   cat <<\_ACEOF
1406
1407 Program names:
1408   --program-prefix=PREFIX            prepend PREFIX to installed program names
1409   --program-suffix=SUFFIX            append SUFFIX to installed program names
1410   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1411
1412 System types:
1413   --build=BUILD     configure for building on BUILD [guessed]
1414   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415   --target=TARGET   configure for building compilers for TARGET [HOST]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420   case $ac_init_help in
1421      short | recursive ) echo "Configuration of ld 2.25:";;
1422    esac
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-option-checking  ignore unrecognized --enable/--with options
1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429   --disable-dependency-tracking  speeds up one-time build
1430   --enable-dependency-tracking   do not reject slow dependency extractors
1431   --enable-maintainer-mode  enable make rules and dependencies not useful
1432                           (and sometimes confusing) to the casual installer
1433   --enable-shared[=PKGS]  build shared libraries [default=yes]
1434   --enable-static[=PKGS]  build static libraries [default=yes]
1435   --enable-fast-install[=PKGS]
1436                           optimize for fast installation [default=yes]
1437   --disable-libtool-lock  avoid locking (might break parallel builds)
1438   --enable-plugins        Enable support for plugins
1439   --disable-largefile     omit support for large files
1440   --enable-targets        alternative target configurations
1441   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1442   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1443   --enable-got=<type>     GOT handling scheme (target, single, negative,
1444                           multigot)
1445   --enable-werror         treat compile warnings as errors
1446   --enable-build-warnings enable build-time compiler warnings
1447   --disable-nls           do not use Native Language Support
1448   --enable-initfini-array       use .init_array/.fini_array sections
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-pic              try to use only PIC/non-PIC objects [default=use
1454                           both]
1455   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1456   --with-lib-path=dir1:dir2...  set default LIB_PATH
1457   --with-sysroot=DIR Search for usr/lib et al within DIR.
1458   --with-zlib             include zlib support (auto/yes/no) default=auto
1459
1460 Some influential environment variables:
1461   CC          C compiler command
1462   CFLAGS      C compiler flags
1463   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464               nonstandard directory <lib dir>
1465   LIBS        libraries to pass to the linker, e.g. -l<library>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470   CPP         C preprocessor
1471   CXXCPP      C++ preprocessor
1472   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1473               the first program found out of: `bison -y', `byacc', `yacc'.
1474   YFLAGS      The list of arguments that will be passed by default to $YACC.
1475               This script will default YFLAGS to the empty string to avoid a
1476               default value of `-d' given by some make applications.
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to the package provider.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487   # If there are subdirs, report their specific --help.
1488   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489     test -d "$ac_dir" ||
1490       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491       continue
1492     ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498   # A ".." for each directory in $ac_dir_suffix.
1499   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500   case $ac_top_builddir_sub in
1501   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503   esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511   .)  # We are building in place.
1512     ac_srcdir=.
1513     ac_top_srcdir=$ac_top_builddir_sub
1514     ac_abs_top_srcdir=$ac_pwd ;;
1515   [\\/]* | ?:[\\/]* )  # Absolute name.
1516     ac_srcdir=$srcdir$ac_dir_suffix;
1517     ac_top_srcdir=$srcdir
1518     ac_abs_top_srcdir=$srcdir ;;
1519   *) # Relative name.
1520     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521     ac_top_srcdir=$ac_top_build_prefix$srcdir
1522     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526     cd "$ac_dir" || { ac_status=$?; continue; }
1527     # Check for guested configure.
1528     if test -f "$ac_srcdir/configure.gnu"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531     elif test -f "$ac_srcdir/configure"; then
1532       echo &&
1533       $SHELL "$ac_srcdir/configure" --help=recursive
1534     else
1535       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536     fi || ac_status=$?
1537     cd "$ac_pwd" || { ac_status=$?; break; }
1538   done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543   cat <<\_ACEOF
1544 ld configure 2.25
1545 generated by GNU Autoconf 2.64
1546
1547 Copyright (C) 2009 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551   exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564   rm -f conftest.$ac_objext
1565   if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568   *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572   (eval "$ac_compile") 2>conftest.err
1573   ac_status=$?
1574   if test -s conftest.err; then
1575     grep -v '^ *+' conftest.err >conftest.er1
1576     cat conftest.er1 >&5
1577     mv -f conftest.er1 conftest.err
1578   fi
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; } && {
1581          test -z "$ac_c_werror_flag" ||
1582          test ! -s conftest.err
1583        } && test -s conftest.$ac_objext; then :
1584   ac_retval=0
1585 else
1586   $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589         ac_retval=1
1590 fi
1591   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592   return $ac_retval
1593
1594 } # ac_fn_c_try_compile
1595
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_link ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext conftest$ac_exeext
1603   if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_link") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest$ac_exeext && {
1622          test "$cross_compiling" = yes ||
1623          $as_test_x conftest$ac_exeext
1624        }; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630         ac_retval=1
1631 fi
1632   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634   # interfere with the next link command; also delete a directory that is
1635   # left behind by Apple's compiler.  We do this before executing the actions.
1636   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638   return $ac_retval
1639
1640 } # ac_fn_c_try_link
1641
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext
1649   if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_compile") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_cxx_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest.$ac_objext; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673         ac_retval=1
1674 fi
1675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676   return $ac_retval
1677
1678 } # ac_fn_cxx_try_compile
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689   *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694   ac_status=$?
1695   if test -s conftest.err; then
1696     grep -v '^ *+' conftest.err >conftest.er1
1697     cat conftest.er1 >&5
1698     mv -f conftest.er1 conftest.err
1699   fi
1700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701   test $ac_status = 0; } >/dev/null && {
1702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703          test ! -s conftest.err
1704        }; then :
1705   ac_retval=0
1706 else
1707   $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710     ac_retval=1
1711 fi
1712   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713   return $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720 # the include files in INCLUDES and setting the cache variable VAR
1721 # accordingly.
1722 ac_fn_c_check_header_mongrel ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729   $as_echo_n "(cached) " >&6
1730 fi
1731 eval ac_res=\$$3
1732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 else
1735   # Is the header compilable?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737 $as_echo_n "checking $2 usability... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h.  */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744   ac_header_compiler=yes
1745 else
1746   ac_header_compiler=no
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750 $as_echo "$ac_header_compiler" >&6; }
1751
1752 # Is the header present?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754 $as_echo_n "checking $2 presence... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h.  */
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_cpp "$LINENO"; then :
1760   ac_header_preproc=yes
1761 else
1762   ac_header_preproc=no
1763 fi
1764 rm -f conftest.err conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766 $as_echo "$ac_header_preproc" >&6; }
1767
1768 # So?  What about this header?
1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1770   yes:no: )
1771     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1775     ;;
1776   no:yes:* )
1777     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1780 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1784 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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 esac
1789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792   $as_echo_n "(cached) " >&6
1793 else
1794   eval "$3=\$ac_header_compiler"
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 fi
1800   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802 } # ac_fn_c_check_header_mongrel
1803
1804 # ac_fn_c_try_run LINENO
1805 # ----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1807 # that executables *can* be run.
1808 ac_fn_c_try_run ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_link") 2>&5
1819   ac_status=$?
1820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1822   { { case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_try") 2>&5
1829   ac_status=$?
1830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831   test $ac_status = 0; }; }; then :
1832   ac_retval=0
1833 else
1834   $as_echo "$as_me: program exited with status $ac_status" >&5
1835        $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838        ac_retval=$ac_status
1839 fi
1840   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842   return $ac_retval
1843
1844 } # ac_fn_c_try_run
1845
1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists and can be compiled using the include files in
1849 # INCLUDES, setting the cache variable VAR accordingly.
1850 ac_fn_c_check_header_compile ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856   $as_echo_n "(cached) " >&6
1857 else
1858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h.  */
1860 $4
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864   eval "$3=yes"
1865 else
1866   eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875 } # ac_fn_c_check_header_compile
1876
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1892 #define $2 innocuous_$2
1893
1894 /* System header to define __stub macros and hopefully few prototypes,
1895     which can conflict with char $2 (); below.
1896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897     <limits.h> exists even on freestanding compilers.  */
1898
1899 #ifdef __STDC__
1900 # include <limits.h>
1901 #else
1902 # include <assert.h>
1903 #endif
1904
1905 #undef $2
1906
1907 /* Override any GCC internal prototype to avoid an error.
1908    Use char because int might match the return type of a GCC
1909    builtin and then its argument prototype would still apply.  */
1910 #ifdef __cplusplus
1911 extern "C"
1912 #endif
1913 char $2 ();
1914 /* The GNU C library defines this for functions which it implements
1915     to always fail with ENOSYS.  Some functions are actually named
1916     something starting with __ and the normal name is an alias.  */
1917 #if defined __stub_$2 || defined __stub___$2
1918 choke me
1919 #endif
1920
1921 int
1922 main ()
1923 {
1924 return $2 ();
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_link "$LINENO"; then :
1930   eval "$3=yes"
1931 else
1932   eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext \
1935     conftest$ac_exeext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
1942 } # ac_fn_c_check_func
1943
1944 # ac_fn_cxx_try_cpp LINENO
1945 # ------------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_cxx_try_cpp ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 case "(($ac_try" in
1952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953   *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958   ac_status=$?
1959   if test -s conftest.err; then
1960     grep -v '^ *+' conftest.err >conftest.er1
1961     cat conftest.er1 >&5
1962     mv -f conftest.er1 conftest.err
1963   fi
1964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965   test $ac_status = 0; } >/dev/null && {
1966          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1967          test ! -s conftest.err
1968        }; then :
1969   ac_retval=0
1970 else
1971   $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974     ac_retval=1
1975 fi
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977   return $ac_retval
1978
1979 } # ac_fn_cxx_try_cpp
1980
1981 # ac_fn_cxx_try_link LINENO
1982 # -------------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_link ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   rm -f conftest.$ac_objext conftest$ac_exeext
1988   if { { ac_try="$ac_link"
1989 case "(($ac_try" in
1990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991   *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995   (eval "$ac_link") 2>conftest.err
1996   ac_status=$?
1997   if test -s conftest.err; then
1998     grep -v '^ *+' conftest.err >conftest.er1
1999     cat conftest.er1 >&5
2000     mv -f conftest.er1 conftest.err
2001   fi
2002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003   test $ac_status = 0; } && {
2004          test -z "$ac_cxx_werror_flag" ||
2005          test ! -s conftest.err
2006        } && test -s conftest$ac_exeext && {
2007          test "$cross_compiling" = yes ||
2008          $as_test_x conftest$ac_exeext
2009        }; then :
2010   ac_retval=0
2011 else
2012   $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015         ac_retval=1
2016 fi
2017   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019   # interfere with the next link command; also delete a directory that is
2020   # left behind by Apple's compiler.  We do this before executing the actions.
2021   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023   return $ac_retval
2024
2025 } # ac_fn_cxx_try_link
2026
2027 # ac_fn_c_check_decl LINENO SYMBOL VAR
2028 # ------------------------------------
2029 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2030 ac_fn_c_check_decl ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   as_decl_name=`echo $2|sed 's/ *(.*//'`
2034   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2036 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2037 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038   $as_echo_n "(cached) " >&6
2039 else
2040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 #ifndef $as_decl_name
2047 #ifdef __cplusplus
2048   (void) $as_decl_use;
2049 #else
2050   (void) $as_decl_name;
2051 #endif
2052 #endif
2053
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059   eval "$3=yes"
2060 else
2061   eval "$3=no"
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070 } # ac_fn_c_check_decl
2071
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 # computed
2077 ac_fn_c_compute_int ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   if test "$cross_compiling" = yes; then
2081     # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2089 test_array [0] = 0
2090
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096   ac_lo=0 ac_mid=0
2097   while :; do
2098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112   ac_hi=$ac_mid; break
2113 else
2114   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115                         if test $ac_lo -le $ac_mid; then
2116                           ac_lo= ac_hi=
2117                           break
2118                         fi
2119                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122   done
2123 else
2124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) < 0)];
2131 test_array [0] = 0
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138   ac_hi=-1 ac_mid=-1
2139   while :; do
2140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h.  */
2142 $4
2143 int
2144 main ()
2145 {
2146 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2147 test_array [0] = 0
2148
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154   ac_lo=$ac_mid; break
2155 else
2156   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157                         if test $ac_mid -le $ac_hi; then
2158                           ac_lo= ac_hi=
2159                           break
2160                         fi
2161                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164   done
2165 else
2166   ac_lo= ac_hi=
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 # Binary search between lo and hi bounds.
2172 while test "x$ac_lo" != "x$ac_hi"; do
2173   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 test_array [0] = 0
2182
2183   ;
2184   return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188   ac_hi=$ac_mid
2189 else
2190   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194 case $ac_lo in #((
2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2196 '') ac_retval=1 ;;
2197 esac
2198   else
2199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 static long int longval () { return $2; }
2203 static unsigned long int ulongval () { return $2; }
2204 #include <stdio.h>
2205 #include <stdlib.h>
2206 int
2207 main ()
2208 {
2209
2210   FILE *f = fopen ("conftest.val", "w");
2211   if (! f)
2212     return 1;
2213   if (($2) < 0)
2214     {
2215       long int i = longval ();
2216       if (i != ($2))
2217         return 1;
2218       fprintf (f, "%ld", i);
2219     }
2220   else
2221     {
2222       unsigned long int i = ulongval ();
2223       if (i != ($2))
2224         return 1;
2225       fprintf (f, "%lu", i);
2226     }
2227   /* Do not output a trailing newline, as this causes \r\n confusion
2228      on some platforms.  */
2229   return ferror (f) || fclose (f) != 0;
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_run "$LINENO"; then :
2236   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2237 else
2238   ac_retval=1
2239 fi
2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241   conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 rm -f conftest.val
2243
2244   fi
2245   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246   return $ac_retval
2247
2248 } # ac_fn_c_compute_int
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2252
2253 It was created by ld $as_me 2.25, which was
2254 generated by GNU Autoconf 2.64.  Invocation command line was
2255
2256   $ $0 $@
2257
2258 _ACEOF
2259 exec 5>>config.log
2260 {
2261 cat <<_ASUNAME
2262 ## --------- ##
2263 ## Platform. ##
2264 ## --------- ##
2265
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2274
2275 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2276 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2279 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2280 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2281 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2282
2283 _ASUNAME
2284
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290     $as_echo "PATH: $as_dir"
2291   done
2292 IFS=$as_save_IFS
2293
2294 } >&5
2295
2296 cat >&5 <<_ACEOF
2297
2298
2299 ## ----------- ##
2300 ## Core tests. ##
2301 ## ----------- ##
2302
2303 _ACEOF
2304
2305
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_configure_args=
2312 ac_configure_args0=
2313 ac_configure_args1=
2314 ac_must_keep_next=false
2315 for ac_pass in 1 2
2316 do
2317   for ac_arg
2318   do
2319     case $ac_arg in
2320     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322     | -silent | --silent | --silen | --sile | --sil)
2323       continue ;;
2324     *\'*)
2325       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326     esac
2327     case $ac_pass in
2328     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329     2)
2330       as_fn_append ac_configure_args1 " '$ac_arg'"
2331       if test $ac_must_keep_next = true; then
2332         ac_must_keep_next=false # Got value, back to normal.
2333       else
2334         case $ac_arg in
2335           *=* | --config-cache | -C | -disable-* | --disable-* \
2336           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338           | -with-* | --with-* | -without-* | --without-* | --x)
2339             case "$ac_configure_args0 " in
2340               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341             esac
2342             ;;
2343           -* ) ac_must_keep_next=true ;;
2344         esac
2345       fi
2346       as_fn_append ac_configure_args " '$ac_arg'"
2347       ;;
2348     esac
2349   done
2350 done
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2353
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log.  We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360   # Save into config.log some information that might help in debugging.
2361   {
2362     echo
2363
2364     cat <<\_ASBOX
2365 ## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##
2368 _ASBOX
2369     echo
2370     # The following way of writing the cache mishandles newlines in values,
2371 (
2372   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373     eval ac_val=\$$ac_var
2374     case $ac_val in #(
2375     *${as_nl}*)
2376       case $ac_var in #(
2377       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2379       esac
2380       case $ac_var in #(
2381       _ | IFS | as_nl) ;; #(
2382       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383       *) { eval $ac_var=; unset $ac_var;} ;;
2384       esac ;;
2385     esac
2386   done
2387   (set) 2>&1 |
2388     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389     *${as_nl}ac_space=\ *)
2390       sed -n \
2391         "s/'\''/'\''\\\\'\'''\''/g;
2392           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393       ;; #(
2394     *)
2395       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2396       ;;
2397     esac |
2398     sort
2399 )
2400     echo
2401
2402     cat <<\_ASBOX
2403 ## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##
2406 _ASBOX
2407     echo
2408     for ac_var in $ac_subst_vars
2409     do
2410       eval ac_val=\$$ac_var
2411       case $ac_val in
2412       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413       esac
2414       $as_echo "$ac_var='\''$ac_val'\''"
2415     done | sort
2416     echo
2417
2418     if test -n "$ac_subst_files"; then
2419       cat <<\_ASBOX
2420 ## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##
2423 _ASBOX
2424       echo
2425       for ac_var in $ac_subst_files
2426       do
2427         eval ac_val=\$$ac_var
2428         case $ac_val in
2429         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430         esac
2431         $as_echo "$ac_var='\''$ac_val'\''"
2432       done | sort
2433       echo
2434     fi
2435
2436     if test -s confdefs.h; then
2437       cat <<\_ASBOX
2438 ## ----------- ##
2439 ## confdefs.h. ##
2440 ## ----------- ##
2441 _ASBOX
2442       echo
2443       cat confdefs.h
2444       echo
2445     fi
2446     test "$ac_signal" != 0 &&
2447       $as_echo "$as_me: caught signal $ac_signal"
2448     $as_echo "$as_me: exit $exit_status"
2449   } >&5
2450   rm -f core *.core core.conftest.* &&
2451     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452     exit $exit_status
2453 ' 0
2454 for ac_signal in 1 2 13 15; do
2455   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2458
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2461
2462 $as_echo "/* confdefs.h */" > confdefs.h
2463
2464 # Predefined preprocessor variables.
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2489
2490
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496   ac_site_file1=$CONFIG_SITE
2497 elif test "x$prefix" != xNONE; then
2498   ac_site_file1=$prefix/share/config.site
2499   ac_site_file2=$prefix/etc/config.site
2500 else
2501   ac_site_file1=$ac_default_prefix/share/config.site
2502   ac_site_file2=$ac_default_prefix/etc/config.site
2503 fi
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 do
2506   test "x$ac_site_file" = xNONE && continue
2507   if test -r "$ac_site_file"; then
2508     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510     sed 's/^/| /' "$ac_site_file" >&5
2511     . "$ac_site_file"
2512   fi
2513 done
2514
2515 if test -r "$cache_file"; then
2516   # Some versions of bash will fail to source /dev/null (special
2517   # files actually), so we avoid doing that.
2518   if test -f "$cache_file"; then
2519     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520 $as_echo "$as_me: loading cache $cache_file" >&6;}
2521     case $cache_file in
2522       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523       *)                      . "./$cache_file";;
2524     esac
2525   fi
2526 else
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528 $as_echo "$as_me: creating cache $cache_file" >&6;}
2529   >$cache_file
2530 fi
2531
2532 # Check that the precious variables saved in the cache have kept the same
2533 # value.
2534 ac_cache_corrupted=false
2535 for ac_var in $ac_precious_vars; do
2536   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537   eval ac_new_set=\$ac_env_${ac_var}_set
2538   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539   eval ac_new_val=\$ac_env_${ac_var}_value
2540   case $ac_old_set,$ac_new_set in
2541     set,)
2542       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544       ac_cache_corrupted=: ;;
2545     ,set)
2546       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548       ac_cache_corrupted=: ;;
2549     ,);;
2550     *)
2551       if test "x$ac_old_val" != "x$ac_new_val"; then
2552         # differences in whitespace do not lead to failure.
2553         ac_old_val_w=`echo x $ac_old_val`
2554         ac_new_val_w=`echo x $ac_new_val`
2555         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558           ac_cache_corrupted=:
2559         else
2560           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562           eval $ac_var=\$ac_old_val
2563         fi
2564         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2565 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2566         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2567 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2568       fi;;
2569   esac
2570   # Pass precious variables to config.status.
2571   if test "$ac_new_set" = set; then
2572     case $ac_new_val in
2573     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574     *) ac_arg=$ac_var=$ac_new_val ;;
2575     esac
2576     case " $ac_configure_args " in
2577       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2578       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579     esac
2580   fi
2581 done
2582 if $ac_cache_corrupted; then
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588 fi
2589 ## -------------------- ##
2590 ## Main body of script. ##
2591 ## -------------------- ##
2592
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598
2599
2600
2601
2602
2603
2604
2605 ac_aux_dir=
2606 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607   for ac_t in install-sh install.sh shtool; do
2608     if test -f "$ac_dir/$ac_t"; then
2609       ac_aux_dir=$ac_dir
2610       ac_install_sh="$ac_aux_dir/$ac_t -c"
2611       break 2
2612     fi
2613   done
2614 done
2615 if test -z "$ac_aux_dir"; then
2616   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2617 fi
2618
2619 # These three variables are undocumented and unsupported,
2620 # and are intended to be withdrawn in a future Autoconf release.
2621 # They can cause serious problems if a builder's source tree is in a directory
2622 # whose full name contains unusual characters.
2623 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2624 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2625 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2626
2627
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if test "${ac_cv_build+set}" = set; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2644
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2649 *-*-*) ;;
2650 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2651 esac
2652 build=$ac_cv_build
2653 ac_save_IFS=$IFS; IFS='-'
2654 set x $ac_cv_build
2655 shift
2656 build_cpu=$1
2657 build_vendor=$2
2658 shift; shift
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2661 build_os=$*
2662 IFS=$ac_save_IFS
2663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2664
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if test "${ac_cv_host+set}" = set; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   if test "x$host_alias" = x; then
2672   ac_cv_host=$ac_cv_build
2673 else
2674   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2676 fi
2677
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2681 case $ac_cv_host in
2682 *-*-*) ;;
2683 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2684 esac
2685 host=$ac_cv_host
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_host
2688 shift
2689 host_cpu=$1
2690 host_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 host_os=$*
2695 IFS=$ac_save_IFS
2696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2697
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700 $as_echo_n "checking target system type... " >&6; }
2701 if test "${ac_cv_target+set}" = set; then :
2702   $as_echo_n "(cached) " >&6
2703 else
2704   if test "x$target_alias" = x; then
2705   ac_cv_target=$ac_cv_host
2706 else
2707   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2709 fi
2710
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713 $as_echo "$ac_cv_target" >&6; }
2714 case $ac_cv_target in
2715 *-*-*) ;;
2716 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2717 esac
2718 target=$ac_cv_target
2719 ac_save_IFS=$IFS; IFS='-'
2720 set x $ac_cv_target
2721 shift
2722 target_cpu=$1
2723 target_vendor=$2
2724 shift; shift
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2727 target_os=$*
2728 IFS=$ac_save_IFS
2729 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2730
2731
2732 # The aliases save the names the user supplied, while $host etc.
2733 # will get canonicalized.
2734 test -n "$target_alias" &&
2735   test "$program_prefix$program_suffix$program_transform_name" = \
2736     NONENONEs,x,x, &&
2737   program_prefix=${target_alias}-
2738
2739 ac_ext=c
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 if test -n "$ac_tool_prefix"; then
2745   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if test "${ac_cv_prog_CC+set}" = set; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   if test -n "$CC"; then
2753   ac_cv_prog_CC="$CC" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758   IFS=$as_save_IFS
2759   test -z "$as_dir" && as_dir=.
2760     for ac_exec_ext in '' $ac_executable_extensions; do
2761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764     break 2
2765   fi
2766 done
2767   done
2768 IFS=$as_save_IFS
2769
2770 fi
2771 fi
2772 CC=$ac_cv_prog_CC
2773 if test -n "$CC"; then
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775 $as_echo "$CC" >&6; }
2776 else
2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 fi
2780
2781
2782 fi
2783 if test -z "$ac_cv_prog_CC"; then
2784   ac_ct_CC=$CC
2785   # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2790   $as_echo_n "(cached) " >&6
2791 else
2792   if test -n "$ac_ct_CC"; then
2793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800     for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_prog_ac_ct_CC="gcc"
2803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807   done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813 if test -n "$ac_ct_CC"; then
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2815 $as_echo "$ac_ct_CC" >&6; }
2816 else
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 fi
2820
2821   if test "x$ac_ct_CC" = x; then
2822     CC=""
2823   else
2824     case $cross_compiling:$ac_tool_warned in
2825 yes:)
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned=yes ;;
2829 esac
2830     CC=$ac_ct_CC
2831   fi
2832 else
2833   CC="$ac_cv_prog_CC"
2834 fi
2835
2836 if test -z "$CC"; then
2837           if test -n "$ac_tool_prefix"; then
2838     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}cc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test -n "$CC"; then
2846   ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853     for ac_exec_ext in '' $ac_executable_extensions; do
2854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855     ac_cv_prog_CC="${ac_tool_prefix}cc"
2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860   done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875   fi
2876 fi
2877 if test -z "$CC"; then
2878   # Extract the first word of "cc", so it can be a program name with args.
2879 set dummy cc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then :
2883   $as_echo_n "(cached) " >&6
2884 else
2885   if test -n "$CC"; then
2886   ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888   ac_prog_rejected=no
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894     for ac_exec_ext in '' $ac_executable_extensions; do
2895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2897        ac_prog_rejected=yes
2898        continue
2899      fi
2900     ac_cv_prog_CC="cc"
2901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902     break 2
2903   fi
2904 done
2905   done
2906 IFS=$as_save_IFS
2907
2908 if test $ac_prog_rejected = yes; then
2909   # We found a bogon in the path, so make sure we never use it.
2910   set dummy $ac_cv_prog_CC
2911   shift
2912   if test $# != 0; then
2913     # We chose a different compiler from the bogus one.
2914     # However, it has the same basename, so the bogon will be chosen
2915     # first if we set CC to just the basename; use the full file name.
2916     shift
2917     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918   fi
2919 fi
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$CC"; then
2934   if test -n "$ac_tool_prefix"; then
2935   for ac_prog in cl.exe
2936   do
2937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   if test -n "$CC"; then
2945   ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952     for ac_exec_ext in '' $ac_executable_extensions; do
2953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959   done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974     test -n "$CC" && break
2975   done
2976 fi
2977 if test -z "$CC"; then
2978   ac_ct_CC=$CC
2979   for ac_prog in cl.exe
2980 do
2981   # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2986   $as_echo_n "(cached) " >&6
2987 else
2988   if test -n "$ac_ct_CC"; then
2989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994   IFS=$as_save_IFS
2995   test -z "$as_dir" && as_dir=.
2996     for ac_exec_ext in '' $ac_executable_extensions; do
2997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998     ac_cv_prog_ac_ct_CC="$ac_prog"
2999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000     break 2
3001   fi
3002 done
3003   done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011 $as_echo "$ac_ct_CC" >&6; }
3012 else
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018   test -n "$ac_ct_CC" && break
3019 done
3020
3021   if test "x$ac_ct_CC" = x; then
3022     CC=""
3023   else
3024     case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030     CC=$ac_ct_CC
3031   fi
3032 fi
3033
3034 fi
3035
3036
3037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 as_fn_error "no acceptable C compiler found in \$PATH
3040 See \`config.log' for more details." "$LINENO" 5; }
3041
3042 # Provide some information about the compiler.
3043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3044 set X $ac_compile
3045 ac_compiler=$2
3046 for ac_option in --version -v -V -qversion; do
3047   { { ac_try="$ac_compiler $ac_option >&5"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3055   ac_status=$?
3056   if test -s conftest.err; then
3057     sed '10a\
3058 ... rest of stderr output deleted ...
3059          10q' conftest.err >conftest.er1
3060     cat conftest.er1 >&5
3061     rm -f conftest.er1 conftest.err
3062   fi
3063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064   test $ac_status = 0; }
3065 done
3066
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 ac_clean_files_save=$ac_clean_files
3079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3080 # Try to create an executable without -o first, disregard a.out.
3081 # It will help us diagnose broken compilers, and finding out an intuition
3082 # of exeext.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3084 $as_echo_n "checking for C compiler default output file name... " >&6; }
3085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3086
3087 # The possible output files:
3088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3089
3090 ac_rmfiles=
3091 for ac_file in $ac_files
3092 do
3093   case $ac_file in
3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3096   esac
3097 done
3098 rm -f $ac_rmfiles
3099
3100 if { { ac_try="$ac_link_default"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107   (eval "$ac_link_default") 2>&5
3108   ac_status=$?
3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110   test $ac_status = 0; }; then :
3111   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3113 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3114 # so that the user can short-circuit this test for compilers unknown to
3115 # Autoconf.
3116 for ac_file in $ac_files ''
3117 do
3118   test -f "$ac_file" || continue
3119   case $ac_file in
3120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3121         ;;
3122     [ab].out )
3123         # We found the default executable, but exeext='' is most
3124         # certainly right.
3125         break;;
3126     *.* )
3127         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3128         then :; else
3129            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130         fi
3131         # We set ac_cv_exeext here because the later test for it is not
3132         # safe: cross compilers may not add the suffix if given an `-o'
3133         # argument, so we may need to know it at that point already.
3134         # Even if this section looks crufty: it has the advantage of
3135         # actually working.
3136         break;;
3137     * )
3138         break;;
3139   esac
3140 done
3141 test "$ac_cv_exeext" = no && ac_cv_exeext=
3142
3143 else
3144   ac_file=''
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3147 $as_echo "$ac_file" >&6; }
3148 if test -z "$ac_file"; then :
3149   $as_echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { as_fn_set_status 77
3155 as_fn_error "C compiler cannot create executables
3156 See \`config.log' for more details." "$LINENO" 5; }; }
3157 fi
3158 ac_exeext=$ac_cv_exeext
3159
3160 # Check that the compiler produces executables we can run.  If not, either
3161 # the compiler is broken, or we cross compile.
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3163 $as_echo_n "checking whether the C compiler works... " >&6; }
3164 # If not cross compiling, check that we can run a simple program.
3165 if test "$cross_compiling" != yes; then
3166   if { ac_try='./$ac_file'
3167   { { case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173   (eval "$ac_try") 2>&5
3174   ac_status=$?
3175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176   test $ac_status = 0; }; }; then
3177     cross_compiling=no
3178   else
3179     if test "$cross_compiling" = maybe; then
3180         cross_compiling=yes
3181     else
3182         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error "cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." "$LINENO" 5; }
3187     fi
3188   fi
3189 fi
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192
3193 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3194 ac_clean_files=$ac_clean_files_save
3195 # Check that the compiler produces executables we can run.  If not, either
3196 # the compiler is broken, or we cross compile.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3198 $as_echo_n "checking whether we are cross compiling... " >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200 $as_echo "$cross_compiling" >&6; }
3201
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3203 $as_echo_n "checking for suffix of executables... " >&6; }
3204 if { { ac_try="$ac_link"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211   (eval "$ac_link") 2>&5
3212   ac_status=$?
3213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214   test $ac_status = 0; }; then :
3215   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3217 # work properly (i.e., refer to `conftest.exe'), while it won't with
3218 # `rm'.
3219 for ac_file in conftest.exe conftest conftest.*; do
3220   test -f "$ac_file" || continue
3221   case $ac_file in
3222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224           break;;
3225     * ) break;;
3226   esac
3227 done
3228 else
3229   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error "cannot compute suffix of executables: cannot compile and link
3232 See \`config.log' for more details." "$LINENO" 5; }
3233 fi
3234 rm -f conftest$ac_cv_exeext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3236 $as_echo "$ac_cv_exeext" >&6; }
3237
3238 rm -f conftest.$ac_ext
3239 EXEEXT=$ac_cv_exeext
3240 ac_exeext=$EXEEXT
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3242 $as_echo_n "checking for suffix of object files... " >&6; }
3243 if test "${ac_cv_objext+set}" = set; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h.  */
3248
3249 int
3250 main ()
3251 {
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.o conftest.obj
3258 if { { ac_try="$ac_compile"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_compile") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268   test $ac_status = 0; }; then :
3269   for ac_file in conftest.o conftest.obj conftest.*; do
3270   test -f "$ac_file" || continue;
3271   case $ac_file in
3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3273     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3274        break;;
3275   esac
3276 done
3277 else
3278   $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error "cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." "$LINENO" 5; }
3285 fi
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3289 $as_echo "$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3291 ac_objext=$OBJEXT
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3293 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h.  */
3299
3300 int
3301 main ()
3302 {
3303 #ifndef __GNUC__
3304        choke me
3305 #endif
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312   ac_compiler_gnu=yes
3313 else
3314   ac_compiler_gnu=no
3315 fi
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3318
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3321 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3322 if test $ac_compiler_gnu = yes; then
3323   GCC=yes
3324 else
3325   GCC=
3326 fi
3327 ac_test_CFLAGS=${CFLAGS+set}
3328 ac_save_CFLAGS=$CFLAGS
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3330 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3331 if test "${ac_cv_prog_cc_g+set}" = set; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   ac_save_c_werror_flag=$ac_c_werror_flag
3335    ac_c_werror_flag=yes
3336    ac_cv_prog_cc_g=no
3337    CFLAGS="-g"
3338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h.  */
3340
3341 int
3342 main ()
3343 {
3344
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350   ac_cv_prog_cc_g=yes
3351 else
3352   CFLAGS=""
3353       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355
3356 int
3357 main ()
3358 {
3359
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365
3366 else
3367   ac_c_werror_flag=$ac_save_c_werror_flag
3368          CFLAGS="-g"
3369          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h.  */
3371
3372 int
3373 main ()
3374 {
3375
3376   ;
3377   return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381   ac_cv_prog_cc_g=yes
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388    ac_c_werror_flag=$ac_save_c_werror_flag
3389 fi
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3391 $as_echo "$ac_cv_prog_cc_g" >&6; }
3392 if test "$ac_test_CFLAGS" = set; then
3393   CFLAGS=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395   if test "$GCC" = yes; then
3396     CFLAGS="-g -O2"
3397   else
3398     CFLAGS="-g"
3399   fi
3400 else
3401   if test "$GCC" = yes; then
3402     CFLAGS="-O2"
3403   else
3404     CFLAGS=
3405   fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3408 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3409 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   ac_cv_prog_cc_c89=no
3413 ac_save_CC=$CC
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416 #include <stdarg.h>
3417 #include <stdio.h>
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3424      char **p;
3425      int i;
3426 {
3427   return p[i];
3428 }
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3430 {
3431   char *s;
3432   va_list v;
3433   va_start (v,p);
3434   s = g (p, va_arg (v,int));
3435   va_end (v);
3436   return s;
3437 }
3438
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3440    function prototypes and stuff, but not '\xHH' hex character constants.
3441    These don't provoke an error unfortunately, instead are silently treated
3442    as 'x'.  The following induces an error, until -std is added to get
3443    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3444    array size at least.  It's necessary to write '\x00'==0 to get something
3445    that's true only with -std.  */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3447
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449    inside strings and character constants.  */
3450 #define FOO(x) 'x'
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3452
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457 int argc;
3458 char **argv;
3459 int
3460 main ()
3461 {
3462 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3469 do
3470   CC="$ac_save_CC $ac_arg"
3471   if ac_fn_c_try_compile "$LINENO"; then :
3472   ac_cv_prog_cc_c89=$ac_arg
3473 fi
3474 rm -f core conftest.err conftest.$ac_objext
3475   test "x$ac_cv_prog_cc_c89" != "xno" && break
3476 done
3477 rm -f conftest.$ac_ext
3478 CC=$ac_save_CC
3479
3480 fi
3481 # AC_CACHE_VAL
3482 case "x$ac_cv_prog_cc_c89" in
3483   x)
3484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3485 $as_echo "none needed" >&6; } ;;
3486   xno)
3487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3488 $as_echo "unsupported" >&6; } ;;
3489   *)
3490     CC="$CC $ac_cv_prog_cc_c89"
3491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3492 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3493 esac
3494 if test "x$ac_cv_prog_cc_c89" != xno; then :
3495
3496 fi
3497
3498 ac_ext=c
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503
3504
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3506 $as_echo_n "checking for library containing strerror... " >&6; }
3507 if test "${ac_cv_search_strerror+set}" = set; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   ac_func_search_save_LIBS=$LIBS
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513
3514 /* Override any GCC internal prototype to avoid an error.
3515    Use char because int might match the return type of a GCC
3516    builtin and then its argument prototype would still apply.  */
3517 #ifdef __cplusplus
3518 extern "C"
3519 #endif
3520 char strerror ();
3521 int
3522 main ()
3523 {
3524 return strerror ();
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 for ac_lib in '' cposix; do
3530   if test -z "$ac_lib"; then
3531     ac_res="none required"
3532   else
3533     ac_res=-l$ac_lib
3534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3535   fi
3536   if ac_fn_c_try_link "$LINENO"; then :
3537   ac_cv_search_strerror=$ac_res
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext \
3540     conftest$ac_exeext
3541   if test "${ac_cv_search_strerror+set}" = set; then :
3542   break
3543 fi
3544 done
3545 if test "${ac_cv_search_strerror+set}" = set; then :
3546
3547 else
3548   ac_cv_search_strerror=no
3549 fi
3550 rm conftest.$ac_ext
3551 LIBS=$ac_func_search_save_LIBS
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3554 $as_echo "$ac_cv_search_strerror" >&6; }
3555 ac_res=$ac_cv_search_strerror
3556 if test "$ac_res" != no; then :
3557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3558
3559 fi
3560
3561
3562 am__api_version='1.11'
3563
3564 # Find a good install program.  We prefer a C program (faster),
3565 # so one script is as good as another.  But avoid the broken or
3566 # incompatible versions:
3567 # SysV /etc/install, /usr/sbin/install
3568 # SunOS /usr/etc/install
3569 # IRIX /sbin/install
3570 # AIX /bin/install
3571 # AmigaOS /C/install, which installs bootblocks on floppy discs
3572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3575 # OS/2's system install, which has a completely different semantic
3576 # ./install, which can be erroneously created by make from ./install.sh.
3577 # Reject install programs that cannot install multiple files.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3579 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3580 if test -z "$INSTALL"; then
3581 if test "${ac_cv_path_install+set}" = set; then :
3582   $as_echo_n "(cached) " >&6
3583 else
3584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587   IFS=$as_save_IFS
3588   test -z "$as_dir" && as_dir=.
3589     # Account for people who put trailing slashes in PATH elements.
3590 case $as_dir/ in #((
3591   ./ | .// | /[cC]/* | \
3592   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3593   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3594   /usr/ucb/* ) ;;
3595   *)
3596     # OSF1 and SCO ODT 3.0 have their own names for install.
3597     # Don't use installbsd from OSF since it installs stuff as root
3598     # by default.
3599     for ac_prog in ginstall scoinst install; do
3600       for ac_exec_ext in '' $ac_executable_extensions; do
3601         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3602           if test $ac_prog = install &&
3603             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3604             # AIX install.  It has an incompatible calling convention.
3605             :
3606           elif test $ac_prog = install &&
3607             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3608             # program-specific install script used by HP pwplus--don't use.
3609             :
3610           else
3611             rm -rf conftest.one conftest.two conftest.dir
3612             echo one > conftest.one
3613             echo two > conftest.two
3614             mkdir conftest.dir
3615             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3616               test -s conftest.one && test -s conftest.two &&
3617               test -s conftest.dir/conftest.one &&
3618               test -s conftest.dir/conftest.two
3619             then
3620               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3621               break 3
3622             fi
3623           fi
3624         fi
3625       done
3626     done
3627     ;;
3628 esac
3629
3630   done
3631 IFS=$as_save_IFS
3632
3633 rm -rf conftest.one conftest.two conftest.dir
3634
3635 fi
3636   if test "${ac_cv_path_install+set}" = set; then
3637     INSTALL=$ac_cv_path_install
3638   else
3639     # As a last resort, use the slow shell script.  Don't cache a
3640     # value for INSTALL within a source directory, because that will
3641     # break other packages using the cache if that directory is
3642     # removed, or if the value is a relative name.
3643     INSTALL=$ac_install_sh
3644   fi
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3647 $as_echo "$INSTALL" >&6; }
3648
3649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3650 # It thinks the first close brace ends the variable substitution.
3651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3652
3653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3654
3655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3656
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3658 $as_echo_n "checking whether build environment is sane... " >&6; }
3659 # Just in case
3660 sleep 1
3661 echo timestamp > conftest.file
3662 # Reject unsafe characters in $srcdir or the absolute working directory
3663 # name.  Accept space and tab only in the latter.
3664 am_lf='
3665 '
3666 case `pwd` in
3667   *[\\\"\#\$\&\'\`$am_lf]*)
3668     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3669 esac
3670 case $srcdir in
3671   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3672     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3673 esac
3674
3675 # Do `set' in a subshell so we don't clobber the current shell's
3676 # arguments.  Must try -L first in case configure is actually a
3677 # symlink; some systems play weird games with the mod time of symlinks
3678 # (eg FreeBSD returns the mod time of the symlink's containing
3679 # directory).
3680 if (
3681    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3682    if test "$*" = "X"; then
3683       # -L didn't work.
3684       set X `ls -t "$srcdir/configure" conftest.file`
3685    fi
3686    rm -f conftest.file
3687    if test "$*" != "X $srcdir/configure conftest.file" \
3688       && test "$*" != "X conftest.file $srcdir/configure"; then
3689
3690       # If neither matched, then we have a broken ls.  This can happen
3691       # if, for instance, CONFIG_SHELL is bash and it inherits a
3692       # broken ls alias from the environment.  This has actually
3693       # happened.  Such a system could not be considered "sane".
3694       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3695 alias in your environment" "$LINENO" 5
3696    fi
3697
3698    test "$2" = conftest.file
3699    )
3700 then
3701    # Ok.
3702    :
3703 else
3704    as_fn_error "newly created file is older than distributed files!
3705 Check your system clock" "$LINENO" 5
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3709 test "$program_prefix" != NONE &&
3710   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3711 # Use a double $ so make ignores it.
3712 test "$program_suffix" != NONE &&
3713   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3714 # Double any \ or $.
3715 # By default was `s,x,x', remove it if useless.
3716 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3717 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3718
3719 # expand $ac_aux_dir to an absolute path
3720 am_aux_dir=`cd $ac_aux_dir && pwd`
3721
3722 if test x"${MISSING+set}" != xset; then
3723   case $am_aux_dir in
3724   *\ * | *\     *)
3725     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3726   *)
3727     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3728   esac
3729 fi
3730 # Use eval to expand $SHELL
3731 if eval "$MISSING --run true"; then
3732   am_missing_run="$MISSING --run "
3733 else
3734   am_missing_run=
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3736 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3737 fi
3738
3739 if test x"${install_sh}" != xset; then
3740   case $am_aux_dir in
3741   *\ * | *\     *)
3742     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3743   *)
3744     install_sh="\${SHELL} $am_aux_dir/install-sh"
3745   esac
3746 fi
3747
3748 # Installed binaries are usually stripped using `strip' when the user
3749 # run `make install-strip'.  However `strip' might not be the right
3750 # tool to use in cross-compilation environments, therefore Automake
3751 # will honor the `STRIP' environment variable to overrule this program.
3752 if test "$cross_compiling" != no; then
3753   if test -n "$ac_tool_prefix"; then
3754   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}strip; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_STRIP+set}" = set; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   if test -n "$STRIP"; then
3762   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769     for ac_exec_ext in '' $ac_executable_extensions; do
3770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773     break 2
3774   fi
3775 done
3776   done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 STRIP=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3784 $as_echo "$STRIP" >&6; }
3785 else
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791 fi
3792 if test -z "$ac_cv_prog_STRIP"; then
3793   ac_ct_STRIP=$STRIP
3794   # Extract the first word of "strip", so it can be a program name with args.
3795 set dummy strip; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   if test -n "$ac_ct_STRIP"; then
3802   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809     for ac_exec_ext in '' $ac_executable_extensions; do
3810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811     ac_cv_prog_ac_ct_STRIP="strip"
3812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816   done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822 if test -n "$ac_ct_STRIP"; then
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3824 $as_echo "$ac_ct_STRIP" >&6; }
3825 else
3826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830   if test "x$ac_ct_STRIP" = x; then
3831     STRIP=":"
3832   else
3833     case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839     STRIP=$ac_ct_STRIP
3840   fi
3841 else
3842   STRIP="$ac_cv_prog_STRIP"
3843 fi
3844
3845 fi
3846 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3849 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3850 if test -z "$MKDIR_P"; then
3851   if test "${ac_cv_path_mkdir+set}" = set; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3856 do
3857   IFS=$as_save_IFS
3858   test -z "$as_dir" && as_dir=.
3859     for ac_prog in mkdir gmkdir; do
3860          for ac_exec_ext in '' $ac_executable_extensions; do
3861            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3862            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3863              'mkdir (GNU coreutils) '* | \
3864              'mkdir (coreutils) '* | \
3865              'mkdir (fileutils) '4.1*)
3866                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3867                break 3;;
3868            esac
3869          done
3870        done
3871   done
3872 IFS=$as_save_IFS
3873
3874 fi
3875
3876   if test "${ac_cv_path_mkdir+set}" = set; then
3877     MKDIR_P="$ac_cv_path_mkdir -p"
3878   else
3879     # As a last resort, use the slow shell script.  Don't cache a
3880     # value for MKDIR_P within a source directory, because that will
3881     # break other packages using the cache if that directory is
3882     # removed, or if the value is a relative name.
3883     test -d ./--version && rmdir ./--version
3884     MKDIR_P="$ac_install_sh -d"
3885   fi
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3888 $as_echo "$MKDIR_P" >&6; }
3889
3890 mkdir_p="$MKDIR_P"
3891 case $mkdir_p in
3892   [\\/$]* | ?:[\\/]*) ;;
3893   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3894 esac
3895
3896 for ac_prog in gawk mawk nawk awk
3897 do
3898   # Extract the first word of "$ac_prog", so it can be a program name with args.
3899 set dummy $ac_prog; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if test "${ac_cv_prog_AWK+set}" = set; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if test -n "$AWK"; then
3906   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913     for ac_exec_ext in '' $ac_executable_extensions; do
3914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915     ac_cv_prog_AWK="$ac_prog"
3916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920   done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 AWK=$ac_cv_prog_AWK
3926 if test -n "$AWK"; then
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3928 $as_echo "$AWK" >&6; }
3929 else
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935   test -n "$AWK" && break
3936 done
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3939 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3940 set x ${MAKE-make}
3941 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3942 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   cat >conftest.make <<\_ACEOF
3946 SHELL = /bin/sh
3947 all:
3948         @echo '@@@%%%=$(MAKE)=@@@%%%'
3949 _ACEOF
3950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3951 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3952   *@@@%%%=?*=@@@%%%*)
3953     eval ac_cv_prog_make_${ac_make}_set=yes;;
3954   *)
3955     eval ac_cv_prog_make_${ac_make}_set=no;;
3956 esac
3957 rm -f conftest.make
3958 fi
3959 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3962   SET_MAKE=
3963 else
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966   SET_MAKE="MAKE=${MAKE-make}"
3967 fi
3968
3969 rm -rf .tst 2>/dev/null
3970 mkdir .tst 2>/dev/null
3971 if test -d .tst; then
3972   am__leading_dot=.
3973 else
3974   am__leading_dot=_
3975 fi
3976 rmdir .tst 2>/dev/null
3977
3978 DEPDIR="${am__leading_dot}deps"
3979
3980 ac_config_commands="$ac_config_commands depfiles"
3981
3982
3983 am_make=${MAKE-make}
3984 cat > confinc << 'END'
3985 am__doit:
3986         @echo this is the am__doit target
3987 .PHONY: am__doit
3988 END
3989 # If we don't find an include directive, just comment out the code.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3991 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3992 am__include="#"
3993 am__quote=
3994 _am_result=none
3995 # First try GNU make style include.
3996 echo "include confinc" > confmf
3997 # Ignore all kinds of additional output from `make'.
3998 case `$am_make -s -f confmf 2> /dev/null` in #(
3999 *the\ am__doit\ target*)
4000   am__include=include
4001   am__quote=
4002   _am_result=GNU
4003   ;;
4004 esac
4005 # Now try BSD make style include.
4006 if test "$am__include" = "#"; then
4007    echo '.include "confinc"' > confmf
4008    case `$am_make -s -f confmf 2> /dev/null` in #(
4009    *the\ am__doit\ target*)
4010      am__include=.include
4011      am__quote="\""
4012      _am_result=BSD
4013      ;;
4014    esac
4015 fi
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4019 $as_echo "$_am_result" >&6; }
4020 rm -f confinc confmf
4021
4022 # Check whether --enable-dependency-tracking was given.
4023 if test "${enable_dependency_tracking+set}" = set; then :
4024   enableval=$enable_dependency_tracking;
4025 fi
4026
4027 if test "x$enable_dependency_tracking" != xno; then
4028   am_depcomp="$ac_aux_dir/depcomp"
4029   AMDEPBACKSLASH='\'
4030 fi
4031  if test "x$enable_dependency_tracking" != xno; then
4032   AMDEP_TRUE=
4033   AMDEP_FALSE='#'
4034 else
4035   AMDEP_TRUE='#'
4036   AMDEP_FALSE=
4037 fi
4038
4039
4040 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4041   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4042   # is not polluted with repeated "-I."
4043   am__isrc=' -I$(srcdir)'
4044   # test to see if srcdir already configured
4045   if test -f $srcdir/config.status; then
4046     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4047   fi
4048 fi
4049
4050 # test whether we have cygpath
4051 if test -z "$CYGPATH_W"; then
4052   if (cygpath --version) >/dev/null 2>/dev/null; then
4053     CYGPATH_W='cygpath -w'
4054   else
4055     CYGPATH_W=echo
4056   fi
4057 fi
4058
4059
4060 # Define the identity of the package.
4061  PACKAGE='ld'
4062  VERSION='2.25'
4063
4064
4065 cat >>confdefs.h <<_ACEOF
4066 #define PACKAGE "$PACKAGE"
4067 _ACEOF
4068
4069
4070 cat >>confdefs.h <<_ACEOF
4071 #define VERSION "$VERSION"
4072 _ACEOF
4073
4074 # Some tools Automake needs.
4075
4076 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4077
4078
4079 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4080
4081
4082 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4083
4084
4085 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4086
4087
4088 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4089
4090 # We need awk for the "check" target.  The system "awk" is bad on
4091 # some platforms.
4092 # Always define AMTAR for backward compatibility.
4093
4094 AMTAR=${AMTAR-"${am_missing_run}tar"}
4095
4096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4097
4098
4099
4100
4101 depcc="$CC"   am_compiler_list=
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4104 $as_echo_n "checking dependency style of $depcc... " >&6; }
4105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4106   $as_echo_n "(cached) " >&6
4107 else
4108   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4109   # We make a subdir and do the tests there.  Otherwise we can end up
4110   # making bogus files that we don't know about and never remove.  For
4111   # instance it was reported that on HP-UX the gcc test will end up
4112   # making a dummy file named `D' -- because `-MD' means `put the output
4113   # in D'.
4114   mkdir conftest.dir
4115   # Copy depcomp to subdir because otherwise we won't find it if we're
4116   # using a relative directory.
4117   cp "$am_depcomp" conftest.dir
4118   cd conftest.dir
4119   # We will build objects and dependencies in a subdirectory because
4120   # it helps to detect inapplicable dependency modes.  For instance
4121   # both Tru64's cc and ICC support -MD to output dependencies as a
4122   # side effect of compilation, but ICC will put the dependencies in
4123   # the current directory while Tru64 will put them in the object
4124   # directory.
4125   mkdir sub
4126
4127   am_cv_CC_dependencies_compiler_type=none
4128   if test "$am_compiler_list" = ""; then
4129      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4130   fi
4131   am__universal=false
4132   case " $depcc " in #(
4133      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4134      esac
4135
4136   for depmode in $am_compiler_list; do
4137     # Setup a source with many dependencies, because some compilers
4138     # like to wrap large dependency lists on column 80 (with \), and
4139     # we should not choose a depcomp mode which is confused by this.
4140     #
4141     # We need to recreate these files for each test, as the compiler may
4142     # overwrite some of them when testing with obscure command lines.
4143     # This happens at least with the AIX C compiler.
4144     : > sub/conftest.c
4145     for i in 1 2 3 4 5 6; do
4146       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4147       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4148       # Solaris 8's {/usr,}/bin/sh.
4149       touch sub/conftst$i.h
4150     done
4151     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4152
4153     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4154     # mode.  It turns out that the SunPro C++ compiler does not properly
4155     # handle `-M -o', and we need to detect this.  Also, some Intel
4156     # versions had trouble with output in subdirs
4157     am__obj=sub/conftest.${OBJEXT-o}
4158     am__minus_obj="-o $am__obj"
4159     case $depmode in
4160     gcc)
4161       # This depmode causes a compiler race in universal mode.
4162       test "$am__universal" = false || continue
4163       ;;
4164     nosideeffect)
4165       # after this tag, mechanisms are not by side-effect, so they'll
4166       # only be used when explicitly requested
4167       if test "x$enable_dependency_tracking" = xyes; then
4168         continue
4169       else
4170         break
4171       fi
4172       ;;
4173     msvisualcpp | msvcmsys)
4174       # This compiler won't grok `-c -o', but also, the minuso test has
4175       # not run yet.  These depmodes are late enough in the game, and
4176       # so weak that their functioning should not be impacted.
4177       am__obj=conftest.${OBJEXT-o}
4178       am__minus_obj=
4179       ;;
4180     none) break ;;
4181     esac
4182     if depmode=$depmode \
4183        source=sub/conftest.c object=$am__obj \
4184        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4185        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4186          >/dev/null 2>conftest.err &&
4187        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4188        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4189        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4190        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4191       # icc doesn't choke on unknown options, it will just issue warnings
4192       # or remarks (even with -Werror).  So we grep stderr for any message
4193       # that says an option was ignored or not supported.
4194       # When given -MP, icc 7.0 and 7.1 complain thusly:
4195       #   icc: Command line warning: ignoring option '-M'; no argument required
4196       # The diagnosis changed in icc 8.0:
4197       #   icc: Command line remark: option '-MP' not supported
4198       if (grep 'ignoring option' conftest.err ||
4199           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4200         am_cv_CC_dependencies_compiler_type=$depmode
4201         break
4202       fi
4203     fi
4204   done
4205
4206   cd ..
4207   rm -rf conftest.dir
4208 else
4209   am_cv_CC_dependencies_compiler_type=none
4210 fi
4211
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4214 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4215 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4216
4217  if
4218   test "x$enable_dependency_tracking" != xno \
4219   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4220   am__fastdepCC_TRUE=
4221   am__fastdepCC_FALSE='#'
4222 else
4223   am__fastdepCC_TRUE='#'
4224   am__fastdepCC_FALSE=
4225 fi
4226
4227
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4231 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4232     # Check whether --enable-maintainer-mode was given.
4233 if test "${enable_maintainer_mode+set}" = set; then :
4234   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4235 else
4236   USE_MAINTAINER_MODE=no
4237 fi
4238
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4240 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4241    if test $USE_MAINTAINER_MODE = yes; then
4242   MAINTAINER_MODE_TRUE=
4243   MAINTAINER_MODE_FALSE='#'
4244 else
4245   MAINTAINER_MODE_TRUE='#'
4246   MAINTAINER_MODE_FALSE=
4247 fi
4248
4249   MAINT=$MAINTAINER_MODE_TRUE
4250
4251
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 if test -n "$ac_tool_prefix"; then
4259   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if test "${ac_cv_prog_CC+set}" = set; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -n "$CC"; then
4267   ac_cv_prog_CC="$CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281   done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 CC=$ac_cv_prog_CC
4287 if test -n "$CC"; then
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 $as_echo "$CC" >&6; }
4290 else
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296 fi
4297 if test -z "$ac_cv_prog_CC"; then
4298   ac_ct_CC=$CC
4299   # Extract the first word of "gcc", so it can be a program name with args.
4300 set dummy gcc; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   if test -n "$ac_ct_CC"; then
4307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316     ac_cv_prog_ac_ct_CC="gcc"
4317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321   done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329 $as_echo "$ac_ct_CC" >&6; }
4330 else
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4334
4335   if test "x$ac_ct_CC" = x; then
4336     CC=""
4337   else
4338     case $cross_compiling:$ac_tool_warned in
4339 yes:)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 ac_tool_warned=yes ;;
4343 esac
4344     CC=$ac_ct_CC
4345   fi
4346 else
4347   CC="$ac_cv_prog_CC"
4348 fi
4349
4350 if test -z "$CC"; then
4351           if test -n "$ac_tool_prefix"; then
4352     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353 set dummy ${ac_tool_prefix}cc; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_CC+set}" = set; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   if test -n "$CC"; then
4360   ac_cv_prog_CC="$CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367     for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_prog_CC="${ac_tool_prefix}cc"
4370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374   done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4383 else
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389   fi
4390 fi
4391 if test -z "$CC"; then
4392   # Extract the first word of "cc", so it can be a program name with args.
4393 set dummy cc; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if test "${ac_cv_prog_CC+set}" = set; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   if test -n "$CC"; then
4400   ac_cv_prog_CC="$CC" # Let the user override the test.
4401 else
4402   ac_prog_rejected=no
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408     for ac_exec_ext in '' $ac_executable_extensions; do
4409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4411        ac_prog_rejected=yes
4412        continue
4413      fi
4414     ac_cv_prog_CC="cc"
4415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416     break 2
4417   fi
4418 done
4419   done
4420 IFS=$as_save_IFS
4421
4422 if test $ac_prog_rejected = yes; then
4423   # We found a bogon in the path, so make sure we never use it.
4424   set dummy $ac_cv_prog_CC
4425   shift
4426   if test $# != 0; then
4427     # We chose a different compiler from the bogus one.
4428     # However, it has the same basename, so the bogon will be chosen
4429     # first if we set CC to just the basename; use the full file name.
4430     shift
4431     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4432   fi
4433 fi
4434 fi
4435 fi
4436 CC=$ac_cv_prog_CC
4437 if test -n "$CC"; then
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4439 $as_echo "$CC" >&6; }
4440 else
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4443 fi
4444
4445
4446 fi
4447 if test -z "$CC"; then
4448   if test -n "$ac_tool_prefix"; then
4449   for ac_prog in cl.exe
4450   do
4451     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if test "${ac_cv_prog_CC+set}" = set; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   if test -n "$CC"; then
4459   ac_cv_prog_CC="$CC" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 CC=$ac_cv_prog_CC
4479 if test -n "$CC"; then
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 $as_echo "$CC" >&6; }
4482 else
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487
4488     test -n "$CC" && break
4489   done
4490 fi
4491 if test -z "$CC"; then
4492   ac_ct_CC=$CC
4493   for ac_prog in cl.exe
4494 do
4495   # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   if test -n "$ac_ct_CC"; then
4503   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510     for ac_exec_ext in '' $ac_executable_extensions; do
4511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512     ac_cv_prog_ac_ct_CC="$ac_prog"
4513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517   done
4518 IFS=$as_save_IFS
4519
4520 fi
4521 fi
4522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4526 else
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531
4532   test -n "$ac_ct_CC" && break
4533 done
4534
4535   if test "x$ac_ct_CC" = x; then
4536     CC=""
4537   else
4538     case $cross_compiling:$ac_tool_warned in
4539 yes:)
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542 ac_tool_warned=yes ;;
4543 esac
4544     CC=$ac_ct_CC
4545   fi
4546 fi
4547
4548 fi
4549
4550
4551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error "no acceptable C compiler found in \$PATH
4554 See \`config.log' for more details." "$LINENO" 5; }
4555
4556 # Provide some information about the compiler.
4557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4558 set X $ac_compile
4559 ac_compiler=$2
4560 for ac_option in --version -v -V -qversion; do
4561   { { ac_try="$ac_compiler $ac_option >&5"
4562 case "(($ac_try" in
4563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564   *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4569   ac_status=$?
4570   if test -s conftest.err; then
4571     sed '10a\
4572 ... rest of stderr output deleted ...
4573          10q' conftest.err >conftest.er1
4574     cat conftest.er1 >&5
4575     rm -f conftest.er1 conftest.err
4576   fi
4577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578   test $ac_status = 0; }
4579 done
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4583 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588
4589 int
4590 main ()
4591 {
4592 #ifndef __GNUC__
4593        choke me
4594 #endif
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601   ac_compiler_gnu=yes
4602 else
4603   ac_compiler_gnu=no
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4607
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4611 if test $ac_compiler_gnu = yes; then
4612   GCC=yes
4613 else
4614   GCC=
4615 fi
4616 ac_test_CFLAGS=${CFLAGS+set}
4617 ac_save_CFLAGS=$CFLAGS
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4620 if test "${ac_cv_prog_cc_g+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   ac_save_c_werror_flag=$ac_c_werror_flag
4624    ac_c_werror_flag=yes
4625    ac_cv_prog_cc_g=no
4626    CFLAGS="-g"
4627    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629
4630 int
4631 main ()
4632 {
4633
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639   ac_cv_prog_cc_g=yes
4640 else
4641   CFLAGS=""
4642       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h.  */
4644
4645 int
4646 main ()
4647 {
4648
4649   ;
4650   return 0;
4651 }
4652 _ACEOF
4653 if ac_fn_c_try_compile "$LINENO"; then :
4654
4655 else
4656   ac_c_werror_flag=$ac_save_c_werror_flag
4657          CFLAGS="-g"
4658          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h.  */
4660
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670   ac_cv_prog_cc_g=yes
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677    ac_c_werror_flag=$ac_save_c_werror_flag
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4680 $as_echo "$ac_cv_prog_cc_g" >&6; }
4681 if test "$ac_test_CFLAGS" = set; then
4682   CFLAGS=$ac_save_CFLAGS
4683 elif test $ac_cv_prog_cc_g = yes; then
4684   if test "$GCC" = yes; then
4685     CFLAGS="-g -O2"
4686   else
4687     CFLAGS="-g"
4688   fi
4689 else
4690   if test "$GCC" = yes; then
4691     CFLAGS="-O2"
4692   else
4693     CFLAGS=
4694   fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4698 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   ac_cv_prog_cc_c89=no
4702 ac_save_CC=$CC
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705 #include <stdarg.h>
4706 #include <stdio.h>
4707 #include <sys/types.h>
4708 #include <sys/stat.h>
4709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4710 struct buf { int x; };
4711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4712 static char *e (p, i)
4713      char **p;
4714      int i;
4715 {
4716   return p[i];
4717 }
4718 static char *f (char * (*g) (char **, int), char **p, ...)
4719 {
4720   char *s;
4721   va_list v;
4722   va_start (v,p);
4723   s = g (p, va_arg (v,int));
4724   va_end (v);
4725   return s;
4726 }
4727
4728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4729    function prototypes and stuff, but not '\xHH' hex character constants.
4730    These don't provoke an error unfortunately, instead are silently treated
4731    as 'x'.  The following induces an error, until -std is added to get
4732    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4733    array size at least.  It's necessary to write '\x00'==0 to get something
4734    that's true only with -std.  */
4735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4736
4737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4738    inside strings and character constants.  */
4739 #define FOO(x) 'x'
4740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4741
4742 int test (int i, double x);
4743 struct s1 {int (*f) (int a);};
4744 struct s2 {int (*f) (double a);};
4745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4746 int argc;
4747 char **argv;
4748 int
4749 main ()
4750 {
4751 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4757         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4758 do
4759   CC="$ac_save_CC $ac_arg"
4760   if ac_fn_c_try_compile "$LINENO"; then :
4761   ac_cv_prog_cc_c89=$ac_arg
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext
4764   test "x$ac_cv_prog_cc_c89" != "xno" && break
4765 done
4766 rm -f conftest.$ac_ext
4767 CC=$ac_save_CC
4768
4769 fi
4770 # AC_CACHE_VAL
4771 case "x$ac_cv_prog_cc_c89" in
4772   x)
4773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4774 $as_echo "none needed" >&6; } ;;
4775   xno)
4776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4777 $as_echo "unsupported" >&6; } ;;
4778   *)
4779     CC="$CC $ac_cv_prog_cc_c89"
4780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4782 esac
4783 if test "x$ac_cv_prog_cc_c89" != xno; then :
4784
4785 fi
4786
4787 ac_ext=c
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792
4793 ac_ext=cpp
4794 ac_cpp='$CXXCPP $CPPFLAGS'
4795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798 if test -z "$CXX"; then
4799   if test -n "$CCC"; then
4800     CXX=$CCC
4801   else
4802     if test -n "$ac_tool_prefix"; then
4803   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4804   do
4805     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_CXX+set}" = set; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   if test -n "$CXX"; then
4813   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818   IFS=$as_save_IFS
4819   test -z "$as_dir" && as_dir=.
4820     for ac_exec_ext in '' $ac_executable_extensions; do
4821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824     break 2
4825   fi
4826 done
4827   done
4828 IFS=$as_save_IFS
4829
4830 fi
4831 fi
4832 CXX=$ac_cv_prog_CXX
4833 if test -n "$CXX"; then
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4835 $as_echo "$CXX" >&6; }
4836 else
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4839 fi
4840
4841
4842     test -n "$CXX" && break
4843   done
4844 fi
4845 if test -z "$CXX"; then
4846   ac_ct_CXX=$CXX
4847   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4848 do
4849   # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   if test -n "$ac_ct_CXX"; then
4857   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864     for ac_exec_ext in '' $ac_executable_extensions; do
4865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866     ac_cv_prog_ac_ct_CXX="$ac_prog"
4867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871   done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4877 if test -n "$ac_ct_CXX"; then
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4879 $as_echo "$ac_ct_CXX" >&6; }
4880 else
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886   test -n "$ac_ct_CXX" && break
4887 done
4888
4889   if test "x$ac_ct_CXX" = x; then
4890     CXX="g++"
4891   else
4892     case $cross_compiling:$ac_tool_warned in
4893 yes:)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898     CXX=$ac_ct_CXX
4899   fi
4900 fi
4901
4902   fi
4903 fi
4904 # Provide some information about the compiler.
4905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4906 set X $ac_compile
4907 ac_compiler=$2
4908 for ac_option in --version -v -V -qversion; do
4909   { { ac_try="$ac_compiler $ac_option >&5"
4910 case "(($ac_try" in
4911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912   *) ac_try_echo=$ac_try;;
4913 esac
4914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915 $as_echo "$ac_try_echo"; } >&5
4916   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4917   ac_status=$?
4918   if test -s conftest.err; then
4919     sed '10a\
4920 ... rest of stderr output deleted ...
4921          10q' conftest.err >conftest.er1
4922     cat conftest.er1 >&5
4923     rm -f conftest.er1 conftest.err
4924   fi
4925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926   test $ac_status = 0; }
4927 done
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4930 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h.  */
4936
4937 int
4938 main ()
4939 {
4940 #ifndef __GNUC__
4941        choke me
4942 #endif
4943
4944   ;
4945   return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949   ac_compiler_gnu=yes
4950 else
4951   ac_compiler_gnu=no
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4955
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4958 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4959 if test $ac_compiler_gnu = yes; then
4960   GXX=yes
4961 else
4962   GXX=
4963 fi
4964 ac_test_CXXFLAGS=${CXXFLAGS+set}
4965 ac_save_CXXFLAGS=$CXXFLAGS
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4967 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4968 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4972    ac_cxx_werror_flag=yes
4973    ac_cv_prog_cxx_g=no
4974    CXXFLAGS="-g"
4975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977
4978 int
4979 main ()
4980 {
4981
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 if ac_fn_cxx_try_compile "$LINENO"; then :
4987   ac_cv_prog_cxx_g=yes
4988 else
4989   CXXFLAGS=""
4990       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992
4993 int
4994 main ()
4995 {
4996
4997   ;
4998   return 0;
4999 }
5000 _ACEOF
5001 if ac_fn_cxx_try_compile "$LINENO"; then :
5002
5003 else
5004   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5005          CXXFLAGS="-g"
5006          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h.  */
5008
5009 int
5010 main ()
5011 {
5012
5013   ;
5014   return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_cxx_try_compile "$LINENO"; then :
5018   ac_cv_prog_cxx_g=yes
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5028 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5029 if test "$ac_test_CXXFLAGS" = set; then
5030   CXXFLAGS=$ac_save_CXXFLAGS
5031 elif test $ac_cv_prog_cxx_g = yes; then
5032   if test "$GXX" = yes; then
5033     CXXFLAGS="-g -O2"
5034   else
5035     CXXFLAGS="-g"
5036   fi
5037 else
5038   if test "$GXX" = yes; then
5039     CXXFLAGS="-O2"
5040   else
5041     CXXFLAGS=
5042   fi
5043 fi
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050 depcc="$CXX"  am_compiler_list=
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5053 $as_echo_n "checking dependency style of $depcc... " >&6; }
5054 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5058   # We make a subdir and do the tests there.  Otherwise we can end up
5059   # making bogus files that we don't know about and never remove.  For
5060   # instance it was reported that on HP-UX the gcc test will end up
5061   # making a dummy file named `D' -- because `-MD' means `put the output
5062   # in D'.
5063   mkdir conftest.dir
5064   # Copy depcomp to subdir because otherwise we won't find it if we're
5065   # using a relative directory.
5066   cp "$am_depcomp" conftest.dir
5067   cd conftest.dir
5068   # We will build objects and dependencies in a subdirectory because
5069   # it helps to detect inapplicable dependency modes.  For instance
5070   # both Tru64's cc and ICC support -MD to output dependencies as a
5071   # side effect of compilation, but ICC will put the dependencies in
5072   # the current directory while Tru64 will put them in the object
5073   # directory.
5074   mkdir sub
5075
5076   am_cv_CXX_dependencies_compiler_type=none
5077   if test "$am_compiler_list" = ""; then
5078      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5079   fi
5080   am__universal=false
5081   case " $depcc " in #(
5082      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5083      esac
5084
5085   for depmode in $am_compiler_list; do
5086     # Setup a source with many dependencies, because some compilers
5087     # like to wrap large dependency lists on column 80 (with \), and
5088     # we should not choose a depcomp mode which is confused by this.
5089     #
5090     # We need to recreate these files for each test, as the compiler may
5091     # overwrite some of them when testing with obscure command lines.
5092     # This happens at least with the AIX C compiler.
5093     : > sub/conftest.c
5094     for i in 1 2 3 4 5 6; do
5095       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097       # Solaris 8's {/usr,}/bin/sh.
5098       touch sub/conftst$i.h
5099     done
5100     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5101
5102     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5103     # mode.  It turns out that the SunPro C++ compiler does not properly
5104     # handle `-M -o', and we need to detect this.  Also, some Intel
5105     # versions had trouble with output in subdirs
5106     am__obj=sub/conftest.${OBJEXT-o}
5107     am__minus_obj="-o $am__obj"
5108     case $depmode in
5109     gcc)
5110       # This depmode causes a compiler race in universal mode.
5111       test "$am__universal" = false || continue
5112       ;;
5113     nosideeffect)
5114       # after this tag, mechanisms are not by side-effect, so they'll
5115       # only be used when explicitly requested
5116       if test "x$enable_dependency_tracking" = xyes; then
5117         continue
5118       else
5119         break
5120       fi
5121       ;;
5122     msvisualcpp | msvcmsys)
5123       # This compiler won't grok `-c -o', but also, the minuso test has
5124       # not run yet.  These depmodes are late enough in the game, and
5125       # so weak that their functioning should not be impacted.
5126       am__obj=conftest.${OBJEXT-o}
5127       am__minus_obj=
5128       ;;
5129     none) break ;;
5130     esac
5131     if depmode=$depmode \
5132        source=sub/conftest.c object=$am__obj \
5133        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5134        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5135          >/dev/null 2>conftest.err &&
5136        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5137        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5138        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5139        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5140       # icc doesn't choke on unknown options, it will just issue warnings
5141       # or remarks (even with -Werror).  So we grep stderr for any message
5142       # that says an option was ignored or not supported.
5143       # When given -MP, icc 7.0 and 7.1 complain thusly:
5144       #   icc: Command line warning: ignoring option '-M'; no argument required
5145       # The diagnosis changed in icc 8.0:
5146       #   icc: Command line remark: option '-MP' not supported
5147       if (grep 'ignoring option' conftest.err ||
5148           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5149         am_cv_CXX_dependencies_compiler_type=$depmode
5150         break
5151       fi
5152     fi
5153   done
5154
5155   cd ..
5156   rm -rf conftest.dir
5157 else
5158   am_cv_CXX_dependencies_compiler_type=none
5159 fi
5160
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5163 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5164 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5165
5166  if
5167   test "x$enable_dependency_tracking" != xno \
5168   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5169   am__fastdepCXX_TRUE=
5170   am__fastdepCXX_FALSE='#'
5171 else
5172   am__fastdepCXX_TRUE='#'
5173   am__fastdepCXX_FALSE=
5174 fi
5175
5176
5177 ac_ext=c
5178 ac_cpp='$CPP $CPPFLAGS'
5179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5183 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5184 # On Suns, sometimes $CPP names a directory.
5185 if test -n "$CPP" && test -d "$CPP"; then
5186   CPP=
5187 fi
5188 if test -z "$CPP"; then
5189   if test "${ac_cv_prog_CPP+set}" = set; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192       # Double quotes because CPP needs to be expanded
5193     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5194     do
5195       ac_preproc_ok=false
5196 for ac_c_preproc_warn_flag in '' yes
5197 do
5198   # Use a header file that comes with gcc, so configuring glibc
5199   # with a fresh cross-compiler works.
5200   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201   # <limits.h> exists even on freestanding compilers.
5202   # On the NeXT, cc -E runs the code through the compiler's parser,
5203   # not just through cpp. "Syntax error" is here to catch this case.
5204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h.  */
5206 #ifdef __STDC__
5207 # include <limits.h>
5208 #else
5209 # include <assert.h>
5210 #endif
5211                      Syntax error
5212 _ACEOF
5213 if ac_fn_c_try_cpp "$LINENO"; then :
5214
5215 else
5216   # Broken: fails on valid input.
5217 continue
5218 fi
5219 rm -f conftest.err conftest.$ac_ext
5220
5221   # OK, works on sane cases.  Now check whether nonexistent headers
5222   # can be detected and how.
5223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h.  */
5225 #include <ac_nonexistent.h>
5226 _ACEOF
5227 if ac_fn_c_try_cpp "$LINENO"; then :
5228   # Broken: success on invalid input.
5229 continue
5230 else
5231   # Passes both tests.
5232 ac_preproc_ok=:
5233 break
5234 fi
5235 rm -f conftest.err conftest.$ac_ext
5236
5237 done
5238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239 rm -f conftest.err conftest.$ac_ext
5240 if $ac_preproc_ok; then :
5241   break
5242 fi
5243
5244     done
5245     ac_cv_prog_CPP=$CPP
5246
5247 fi
5248   CPP=$ac_cv_prog_CPP
5249 else
5250   ac_cv_prog_CPP=$CPP
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5253 $as_echo "$CPP" >&6; }
5254 ac_preproc_ok=false
5255 for ac_c_preproc_warn_flag in '' yes
5256 do
5257   # Use a header file that comes with gcc, so configuring glibc
5258   # with a fresh cross-compiler works.
5259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5260   # <limits.h> exists even on freestanding compilers.
5261   # On the NeXT, cc -E runs the code through the compiler's parser,
5262   # not just through cpp. "Syntax error" is here to catch this case.
5263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h.  */
5265 #ifdef __STDC__
5266 # include <limits.h>
5267 #else
5268 # include <assert.h>
5269 #endif
5270                      Syntax error
5271 _ACEOF
5272 if ac_fn_c_try_cpp "$LINENO"; then :
5273
5274 else
5275   # Broken: fails on valid input.
5276 continue
5277 fi
5278 rm -f conftest.err conftest.$ac_ext
5279
5280   # OK, works on sane cases.  Now check whether nonexistent headers
5281   # can be detected and how.
5282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h.  */
5284 #include <ac_nonexistent.h>
5285 _ACEOF
5286 if ac_fn_c_try_cpp "$LINENO"; then :
5287   # Broken: success on invalid input.
5288 continue
5289 else
5290   # Passes both tests.
5291 ac_preproc_ok=:
5292 break
5293 fi
5294 rm -f conftest.err conftest.$ac_ext
5295
5296 done
5297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5298 rm -f conftest.err conftest.$ac_ext
5299 if $ac_preproc_ok; then :
5300
5301 else
5302   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5304 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5305 See \`config.log' for more details." "$LINENO" 5; }
5306 fi
5307
5308 ac_ext=c
5309 ac_cpp='$CPP $CPPFLAGS'
5310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5317 if test "${ac_cv_path_GREP+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -z "$GREP"; then
5321   ac_path_GREP_found=false
5322   # Loop through the user's path and test for each of PROGNAME-LIST
5323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328     for ac_prog in grep ggrep; do
5329     for ac_exec_ext in '' $ac_executable_extensions; do
5330       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5331       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5332 # Check for GNU ac_path_GREP and select it if it is found.
5333   # Check for GNU $ac_path_GREP
5334 case `"$ac_path_GREP" --version 2>&1` in
5335 *GNU*)
5336   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5337 *)
5338   ac_count=0
5339   $as_echo_n 0123456789 >"conftest.in"
5340   while :
5341   do
5342     cat "conftest.in" "conftest.in" >"conftest.tmp"
5343     mv "conftest.tmp" "conftest.in"
5344     cp "conftest.in" "conftest.nl"
5345     $as_echo 'GREP' >> "conftest.nl"
5346     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348     as_fn_arith $ac_count + 1 && ac_count=$as_val
5349     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5350       # Best one so far, save it but keep looking for a better one
5351       ac_cv_path_GREP="$ac_path_GREP"
5352       ac_path_GREP_max=$ac_count
5353     fi
5354     # 10*(2^10) chars as input seems more than enough
5355     test $ac_count -gt 10 && break
5356   done
5357   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5359
5360       $ac_path_GREP_found && break 3
5361     done
5362   done
5363   done
5364 IFS=$as_save_IFS
5365   if test -z "$ac_cv_path_GREP"; then
5366     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367   fi
5368 else
5369   ac_cv_path_GREP=$GREP
5370 fi
5371
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5374 $as_echo "$ac_cv_path_GREP" >&6; }
5375  GREP="$ac_cv_path_GREP"
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5379 $as_echo_n "checking for egrep... " >&6; }
5380 if test "${ac_cv_path_EGREP+set}" = set; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5384    then ac_cv_path_EGREP="$GREP -E"
5385    else
5386      if test -z "$EGREP"; then
5387   ac_path_EGREP_found=false
5388   # Loop through the user's path and test for each of PROGNAME-LIST
5389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394     for ac_prog in egrep; do
5395     for ac_exec_ext in '' $ac_executable_extensions; do
5396       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5397       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5398 # Check for GNU ac_path_EGREP and select it if it is found.
5399   # Check for GNU $ac_path_EGREP
5400 case `"$ac_path_EGREP" --version 2>&1` in
5401 *GNU*)
5402   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5403 *)
5404   ac_count=0
5405   $as_echo_n 0123456789 >"conftest.in"
5406   while :
5407   do
5408     cat "conftest.in" "conftest.in" >"conftest.tmp"
5409     mv "conftest.tmp" "conftest.in"
5410     cp "conftest.in" "conftest.nl"
5411     $as_echo 'EGREP' >> "conftest.nl"
5412     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414     as_fn_arith $ac_count + 1 && ac_count=$as_val
5415     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5416       # Best one so far, save it but keep looking for a better one
5417       ac_cv_path_EGREP="$ac_path_EGREP"
5418       ac_path_EGREP_max=$ac_count
5419     fi
5420     # 10*(2^10) chars as input seems more than enough
5421     test $ac_count -gt 10 && break
5422   done
5423   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5424 esac
5425
5426       $ac_path_EGREP_found && break 3
5427     done
5428   done
5429   done
5430 IFS=$as_save_IFS
5431   if test -z "$ac_cv_path_EGREP"; then
5432     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5433   fi
5434 else
5435   ac_cv_path_EGREP=$EGREP
5436 fi
5437
5438    fi
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5441 $as_echo "$ac_cv_path_EGREP" >&6; }
5442  EGREP="$ac_cv_path_EGREP"
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5446 $as_echo_n "checking for ANSI C header files... " >&6; }
5447 if test "${ac_cv_header_stdc+set}" = set; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h.  */
5452 #include <stdlib.h>
5453 #include <stdarg.h>
5454 #include <string.h>
5455 #include <float.h>
5456
5457 int
5458 main ()
5459 {
5460
5461   ;
5462   return 0;
5463 }
5464 _ACEOF
5465 if ac_fn_c_try_compile "$LINENO"; then :
5466   ac_cv_header_stdc=yes
5467 else
5468   ac_cv_header_stdc=no
5469 fi
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471
5472 if test $ac_cv_header_stdc = yes; then
5473   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h.  */
5476 #include <string.h>
5477
5478 _ACEOF
5479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480   $EGREP "memchr" >/dev/null 2>&1; then :
5481
5482 else
5483   ac_cv_header_stdc=no
5484 fi
5485 rm -f conftest*
5486
5487 fi
5488
5489 if test $ac_cv_header_stdc = yes; then
5490   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h.  */
5493 #include <stdlib.h>
5494
5495 _ACEOF
5496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497   $EGREP "free" >/dev/null 2>&1; then :
5498
5499 else
5500   ac_cv_header_stdc=no
5501 fi
5502 rm -f conftest*
5503
5504 fi
5505
5506 if test $ac_cv_header_stdc = yes; then
5507   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5508   if test "$cross_compiling" = yes; then :
5509   :
5510 else
5511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h.  */
5513 #include <ctype.h>
5514 #include <stdlib.h>
5515 #if ((' ' & 0x0FF) == 0x020)
5516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5518 #else
5519 # define ISLOWER(c) \
5520                    (('a' <= (c) && (c) <= 'i') \
5521                      || ('j' <= (c) && (c) <= 'r') \
5522                      || ('s' <= (c) && (c) <= 'z'))
5523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5524 #endif
5525
5526 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5527 int
5528 main ()
5529 {
5530   int i;
5531   for (i = 0; i < 256; i++)
5532     if (XOR (islower (i), ISLOWER (i))
5533         || toupper (i) != TOUPPER (i))
5534       return 2;
5535   return 0;
5536 }
5537 _ACEOF
5538 if ac_fn_c_try_run "$LINENO"; then :
5539
5540 else
5541   ac_cv_header_stdc=no
5542 fi
5543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5544   conftest.$ac_objext conftest.beam conftest.$ac_ext
5545 fi
5546
5547 fi
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5550 $as_echo "$ac_cv_header_stdc" >&6; }
5551 if test $ac_cv_header_stdc = yes; then
5552
5553 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5554
5555 fi
5556
5557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5559                   inttypes.h stdint.h unistd.h
5560 do :
5561   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5563 "
5564 eval as_val=\$$as_ac_Header
5565    if test "x$as_val" = x""yes; then :
5566   cat >>confdefs.h <<_ACEOF
5567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 _ACEOF
5569
5570 fi
5571
5572 done
5573
5574
5575
5576   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5577 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5578   MINIX=yes
5579 else
5580   MINIX=
5581 fi
5582
5583
5584   if test "$MINIX" = yes; then
5585
5586 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5587
5588
5589 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5590
5591
5592 $as_echo "#define _MINIX 1" >>confdefs.h
5593
5594   fi
5595
5596
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5598 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5599 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5600   $as_echo_n "(cached) " >&6
5601 else
5602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h.  */
5604
5605 #         define __EXTENSIONS__ 1
5606           $ac_includes_default
5607 int
5608 main ()
5609 {
5610
5611   ;
5612   return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616   ac_cv_safe_to_define___extensions__=yes
5617 else
5618   ac_cv_safe_to_define___extensions__=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5623 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5624   test $ac_cv_safe_to_define___extensions__ = yes &&
5625     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5626
5627   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5628
5629   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5630
5631   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5632
5633   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5634
5635
5636
5637
5638
5639
5640 case `pwd` in
5641   *\ * | *\     *)
5642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5643 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5644 esac
5645
5646
5647
5648 macro_version='2.2.7a'
5649 macro_revision='1.3134'
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 ltmain="$ac_aux_dir/ltmain.sh"
5664
5665 # Backslashify metacharacters that are still active within
5666 # double-quoted strings.
5667 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5668
5669 # Same as above, but do not quote variable references.
5670 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5671
5672 # Sed substitution to delay expansion of an escaped shell variable in a
5673 # double_quote_subst'ed string.
5674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5675
5676 # Sed substitution to delay expansion of an escaped single quote.
5677 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5678
5679 # Sed substitution to avoid accidental globbing in evaled expressions
5680 no_glob_subst='s/\*/\\\*/g'
5681
5682 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5683 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5687 $as_echo_n "checking how to print strings... " >&6; }
5688 # Test print first, because it will be a builtin if present.
5689 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5690    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5691   ECHO='print -r --'
5692 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5693   ECHO='printf %s\n'
5694 else
5695   # Use this function as a fallback that always works.
5696   func_fallback_echo ()
5697   {
5698     eval 'cat <<_LTECHO_EOF
5699 $1
5700 _LTECHO_EOF'
5701   }
5702   ECHO='func_fallback_echo'
5703 fi
5704
5705 # func_echo_all arg...
5706 # Invoke $ECHO with all args, space-separated.
5707 func_echo_all ()
5708 {
5709     $ECHO ""
5710 }
5711
5712 case "$ECHO" in
5713   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5714 $as_echo "printf" >&6; } ;;
5715   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5716 $as_echo "print -r" >&6; } ;;
5717   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5718 $as_echo "cat" >&6; } ;;
5719 esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5735 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5736 if test "${ac_cv_path_SED+set}" = set; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5740      for ac_i in 1 2 3 4 5 6 7; do
5741        ac_script="$ac_script$as_nl$ac_script"
5742      done
5743      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5744      { ac_script=; unset ac_script;}
5745      if test -z "$SED"; then
5746   ac_path_SED_found=false
5747   # Loop through the user's path and test for each of PROGNAME-LIST
5748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_prog in sed gsed; do
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5756       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5757 # Check for GNU ac_path_SED and select it if it is found.
5758   # Check for GNU $ac_path_SED
5759 case `"$ac_path_SED" --version 2>&1` in
5760 *GNU*)
5761   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5762 *)
5763   ac_count=0
5764   $as_echo_n 0123456789 >"conftest.in"
5765   while :
5766   do
5767     cat "conftest.in" "conftest.in" >"conftest.tmp"
5768     mv "conftest.tmp" "conftest.in"
5769     cp "conftest.in" "conftest.nl"
5770     $as_echo '' >> "conftest.nl"
5771     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5772     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5773     as_fn_arith $ac_count + 1 && ac_count=$as_val
5774     if test $ac_count -gt ${ac_path_SED_max-0}; then
5775       # Best one so far, save it but keep looking for a better one
5776       ac_cv_path_SED="$ac_path_SED"
5777       ac_path_SED_max=$ac_count
5778     fi
5779     # 10*(2^10) chars as input seems more than enough
5780     test $ac_count -gt 10 && break
5781   done
5782   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5783 esac
5784
5785       $ac_path_SED_found && break 3
5786     done
5787   done
5788   done
5789 IFS=$as_save_IFS
5790   if test -z "$ac_cv_path_SED"; then
5791     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5792   fi
5793 else
5794   ac_cv_path_SED=$SED
5795 fi
5796
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5799 $as_echo "$ac_cv_path_SED" >&6; }
5800  SED="$ac_cv_path_SED"
5801   rm -f conftest.sed
5802
5803 test -z "$SED" && SED=sed
5804 Xsed="$SED -e 1s/^X//"
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5817 $as_echo_n "checking for fgrep... " >&6; }
5818 if test "${ac_cv_path_FGREP+set}" = set; then :
5819   $as_echo_n "(cached) " >&6
5820 else
5821   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5822    then ac_cv_path_FGREP="$GREP -F"
5823    else
5824      if test -z "$FGREP"; then
5825   ac_path_FGREP_found=false
5826   # Loop through the user's path and test for each of PROGNAME-LIST
5827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832     for ac_prog in fgrep; do
5833     for ac_exec_ext in '' $ac_executable_extensions; do
5834       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5835       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5836 # Check for GNU ac_path_FGREP and select it if it is found.
5837   # Check for GNU $ac_path_FGREP
5838 case `"$ac_path_FGREP" --version 2>&1` in
5839 *GNU*)
5840   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5841 *)
5842   ac_count=0
5843   $as_echo_n 0123456789 >"conftest.in"
5844   while :
5845   do
5846     cat "conftest.in" "conftest.in" >"conftest.tmp"
5847     mv "conftest.tmp" "conftest.in"
5848     cp "conftest.in" "conftest.nl"
5849     $as_echo 'FGREP' >> "conftest.nl"
5850     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5851     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5852     as_fn_arith $ac_count + 1 && ac_count=$as_val
5853     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5854       # Best one so far, save it but keep looking for a better one
5855       ac_cv_path_FGREP="$ac_path_FGREP"
5856       ac_path_FGREP_max=$ac_count
5857     fi
5858     # 10*(2^10) chars as input seems more than enough
5859     test $ac_count -gt 10 && break
5860   done
5861   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5862 esac
5863
5864       $ac_path_FGREP_found && break 3
5865     done
5866   done
5867   done
5868 IFS=$as_save_IFS
5869   if test -z "$ac_cv_path_FGREP"; then
5870     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5871   fi
5872 else
5873   ac_cv_path_FGREP=$FGREP
5874 fi
5875
5876    fi
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5879 $as_echo "$ac_cv_path_FGREP" >&6; }
5880  FGREP="$ac_cv_path_FGREP"
5881
5882
5883 test -z "$GREP" && GREP=grep
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 # Check whether --with-gnu-ld was given.
5904 if test "${with_gnu_ld+set}" = set; then :
5905   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5906 else
5907   with_gnu_ld=no
5908 fi
5909
5910 ac_prog=ld
5911 if test "$GCC" = yes; then
5912   # Check if gcc -print-prog-name=ld gives a path.
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5914 $as_echo_n "checking for ld used by $CC... " >&6; }
5915   case $host in
5916   *-*-mingw*)
5917     # gcc leaves a trailing carriage return which upsets mingw
5918     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5919   *)
5920     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5921   esac
5922   case $ac_prog in
5923     # Accept absolute paths.
5924     [\\/]* | ?:[\\/]*)
5925       re_direlt='/[^/][^/]*/\.\./'
5926       # Canonicalize the pathname of ld
5927       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5928       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5929         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5930       done
5931       test -z "$LD" && LD="$ac_prog"
5932       ;;
5933   "")
5934     # If it fails, then pretend we aren't using GCC.
5935     ac_prog=ld
5936     ;;
5937   *)
5938     # If it is relative, then search for the first ld in PATH.
5939     with_gnu_ld=unknown
5940     ;;
5941   esac
5942 elif test "$with_gnu_ld" = yes; then
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5944 $as_echo_n "checking for GNU ld... " >&6; }
5945 else
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5947 $as_echo_n "checking for non-GNU ld... " >&6; }
5948 fi
5949 if test "${lt_cv_path_LD+set}" = set; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if test -z "$LD"; then
5953   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5954   for ac_dir in $PATH; do
5955     IFS="$lt_save_ifs"
5956     test -z "$ac_dir" && ac_dir=.
5957     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5958       lt_cv_path_LD="$ac_dir/$ac_prog"
5959       # Check to see if the program is GNU ld.  I'd rather use --version,
5960       # but apparently some variants of GNU ld only accept -v.
5961       # Break only if it was the GNU/non-GNU ld that we prefer.
5962       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5963       *GNU* | *'with BFD'*)
5964         test "$with_gnu_ld" != no && break
5965         ;;
5966       *)
5967         test "$with_gnu_ld" != yes && break
5968         ;;
5969       esac
5970     fi
5971   done
5972   IFS="$lt_save_ifs"
5973 else
5974   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5975 fi
5976 fi
5977
5978 LD="$lt_cv_path_LD"
5979 if test -n "$LD"; then
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5981 $as_echo "$LD" >&6; }
5982 else
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5988 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5989 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5990   $as_echo_n "(cached) " >&6
5991 else
5992   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5993 case `$LD -v 2>&1 </dev/null` in
5994 *GNU* | *'with BFD'*)
5995   lt_cv_prog_gnu_ld=yes
5996   ;;
5997 *)
5998   lt_cv_prog_gnu_ld=no
5999   ;;
6000 esac
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6003 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6004 with_gnu_ld=$lt_cv_prog_gnu_ld
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6015 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6016 if test "${lt_cv_path_NM+set}" = set; then :
6017   $as_echo_n "(cached) " >&6
6018 else
6019   if test -n "$NM"; then
6020   # Let the user override the test.
6021   lt_cv_path_NM="$NM"
6022 else
6023   lt_nm_to_check="${ac_tool_prefix}nm"
6024   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6025     lt_nm_to_check="$lt_nm_to_check nm"
6026   fi
6027   for lt_tmp_nm in $lt_nm_to_check; do
6028     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6029     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6030       IFS="$lt_save_ifs"
6031       test -z "$ac_dir" && ac_dir=.
6032       tmp_nm="$ac_dir/$lt_tmp_nm"
6033       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6034         # Check to see if the nm accepts a BSD-compat flag.
6035         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6036         #   nm: unknown option "B" ignored
6037         # Tru64's nm complains that /dev/null is an invalid object file
6038         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6039         */dev/null* | *'Invalid file or object type'*)
6040           lt_cv_path_NM="$tmp_nm -B"
6041           break
6042           ;;
6043         *)
6044           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6045           */dev/null*)
6046             lt_cv_path_NM="$tmp_nm -p"
6047             break
6048             ;;
6049           *)
6050             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6051             continue # so that we can try to find one that supports BSD flags
6052             ;;
6053           esac
6054           ;;
6055         esac
6056       fi
6057     done
6058     IFS="$lt_save_ifs"
6059   done
6060   : ${lt_cv_path_NM=no}
6061 fi
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6064 $as_echo "$lt_cv_path_NM" >&6; }
6065 if test "$lt_cv_path_NM" != "no"; then
6066   NM="$lt_cv_path_NM"
6067 else
6068   # Didn't find any BSD compatible name lister, look for dumpbin.
6069   if test -n "$DUMPBIN"; then :
6070     # Let the user override the test.
6071   else
6072     if test -n "$ac_tool_prefix"; then
6073   for ac_prog in dumpbin "link -dump"
6074   do
6075     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   if test -n "$DUMPBIN"; then
6083   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 DUMPBIN=$ac_cv_prog_DUMPBIN
6103 if test -n "$DUMPBIN"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6105 $as_echo "$DUMPBIN" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111
6112     test -n "$DUMPBIN" && break
6113   done
6114 fi
6115 if test -z "$DUMPBIN"; then
6116   ac_ct_DUMPBIN=$DUMPBIN
6117   for ac_prog in dumpbin "link -dump"
6118 do
6119   # Extract the first word of "$ac_prog", so it can be a program name with args.
6120 set dummy $ac_prog; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   if test -n "$ac_ct_DUMPBIN"; then
6127   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141   done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6147 if test -n "$ac_ct_DUMPBIN"; then
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6149 $as_echo "$ac_ct_DUMPBIN" >&6; }
6150 else
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6153 fi
6154
6155
6156   test -n "$ac_ct_DUMPBIN" && break
6157 done
6158
6159   if test "x$ac_ct_DUMPBIN" = x; then
6160     DUMPBIN=":"
6161   else
6162     case $cross_compiling:$ac_tool_warned in
6163 yes:)
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166 ac_tool_warned=yes ;;
6167 esac
6168     DUMPBIN=$ac_ct_DUMPBIN
6169   fi
6170 fi
6171
6172     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6173     *COFF*)
6174       DUMPBIN="$DUMPBIN -symbols"
6175       ;;
6176     *)
6177       DUMPBIN=:
6178       ;;
6179     esac
6180   fi
6181
6182   if test "$DUMPBIN" != ":"; then
6183     NM="$DUMPBIN"
6184   fi
6185 fi
6186 test -z "$NM" && NM=nm
6187
6188
6189
6190
6191
6192
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6194 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6195 if test "${lt_cv_nm_interface+set}" = set; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   lt_cv_nm_interface="BSD nm"
6199   echo "int some_variable = 0;" > conftest.$ac_ext
6200   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6201   (eval "$ac_compile" 2>conftest.err)
6202   cat conftest.err >&5
6203   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6204   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6205   cat conftest.err >&5
6206   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6207   cat conftest.out >&5
6208   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6209     lt_cv_nm_interface="MS dumpbin"
6210   fi
6211   rm -f conftest*
6212 fi
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6214 $as_echo "$lt_cv_nm_interface" >&6; }
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6217 $as_echo_n "checking whether ln -s works... " >&6; }
6218 LN_S=$as_ln_s
6219 if test "$LN_S" = "ln -s"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221 $as_echo "yes" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6224 $as_echo "no, using $LN_S" >&6; }
6225 fi
6226
6227 # find the maximum length of command line arguments
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6229 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6230 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233     i=0
6234   teststring="ABCD"
6235
6236   case $build_os in
6237   msdosdjgpp*)
6238     # On DJGPP, this test can blow up pretty badly due to problems in libc
6239     # (any single argument exceeding 2000 bytes causes a buffer overrun
6240     # during glob expansion).  Even if it were fixed, the result of this
6241     # check would be larger than it should be.
6242     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6243     ;;
6244
6245   gnu*)
6246     # Under GNU Hurd, this test is not required because there is
6247     # no limit to the length of command line arguments.
6248     # Libtool will interpret -1 as no limit whatsoever
6249     lt_cv_sys_max_cmd_len=-1;
6250     ;;
6251
6252   cygwin* | mingw* | cegcc*)
6253     # On Win9x/ME, this test blows up -- it succeeds, but takes
6254     # about 5 minutes as the teststring grows exponentially.
6255     # Worse, since 9x/ME are not pre-emptively multitasking,
6256     # you end up with a "frozen" computer, even though with patience
6257     # the test eventually succeeds (with a max line length of 256k).
6258     # Instead, let's just punt: use the minimum linelength reported by
6259     # all of the supported platforms: 8192 (on NT/2K/XP).
6260     lt_cv_sys_max_cmd_len=8192;
6261     ;;
6262
6263   mint*)
6264     # On MiNT this can take a long time and run out of memory.
6265     lt_cv_sys_max_cmd_len=8192;
6266     ;;
6267
6268   amigaos*)
6269     # On AmigaOS with pdksh, this test takes hours, literally.
6270     # So we just punt and use a minimum line length of 8192.
6271     lt_cv_sys_max_cmd_len=8192;
6272     ;;
6273
6274   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6275     # This has been around since 386BSD, at least.  Likely further.
6276     if test -x /sbin/sysctl; then
6277       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6278     elif test -x /usr/sbin/sysctl; then
6279       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6280     else
6281       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6282     fi
6283     # And add a safety zone
6284     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6285     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6286     ;;
6287
6288   interix*)
6289     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6290     lt_cv_sys_max_cmd_len=196608
6291     ;;
6292
6293   osf*)
6294     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6295     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6296     # nice to cause kernel panics so lets avoid the loop below.
6297     # First set a reasonable default.
6298     lt_cv_sys_max_cmd_len=16384
6299     #
6300     if test -x /sbin/sysconfig; then
6301       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6302         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6303       esac
6304     fi
6305     ;;
6306   sco3.2v5*)
6307     lt_cv_sys_max_cmd_len=102400
6308     ;;
6309   sysv5* | sco5v6* | sysv4.2uw2*)
6310     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6311     if test -n "$kargmax"; then
6312       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6313     else
6314       lt_cv_sys_max_cmd_len=32768
6315     fi
6316     ;;
6317   *)
6318     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6319     if test -n "$lt_cv_sys_max_cmd_len"; then
6320       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6321       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6322     else
6323       # Make teststring a little bigger before we do anything with it.
6324       # a 1K string should be a reasonable start.
6325       for i in 1 2 3 4 5 6 7 8 ; do
6326         teststring=$teststring$teststring
6327       done
6328       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6329       # If test is not a shell built-in, we'll probably end up computing a
6330       # maximum length that is only half of the actual maximum length, but
6331       # we can't tell.
6332       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6333                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6334               test $i != 17 # 1/2 MB should be enough
6335       do
6336         i=`expr $i + 1`
6337         teststring=$teststring$teststring
6338       done
6339       # Only check the string length outside the loop.
6340       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6341       teststring=
6342       # Add a significant safety factor because C++ compilers can tack on
6343       # massive amounts of additional arguments before passing them to the
6344       # linker.  It appears as though 1/2 is a usable value.
6345       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6346     fi
6347     ;;
6348   esac
6349
6350 fi
6351
6352 if test -n $lt_cv_sys_max_cmd_len ; then
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6354 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6355 else
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6357 $as_echo "none" >&6; }
6358 fi
6359 max_cmd_len=$lt_cv_sys_max_cmd_len
6360
6361
6362
6363
6364
6365
6366 : ${CP="cp -f"}
6367 : ${MV="mv -f"}
6368 : ${RM="rm -f"}
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6371 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6372 # Try some XSI features
6373 xsi_shell=no
6374 ( _lt_dummy="a/b/c"
6375   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6376       = c,a/b,, \
6377     && eval 'test $(( 1 + 1 )) -eq 2 \
6378     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6379   && xsi_shell=yes
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6381 $as_echo "$xsi_shell" >&6; }
6382
6383
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6385 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6386 lt_shell_append=no
6387 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6388     >/dev/null 2>&1 \
6389   && lt_shell_append=yes
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6391 $as_echo "$lt_shell_append" >&6; }
6392
6393
6394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6395   lt_unset=unset
6396 else
6397   lt_unset=false
6398 fi
6399
6400
6401
6402
6403
6404 # test EBCDIC or ASCII
6405 case `echo X|tr X '\101'` in
6406  A) # ASCII based system
6407     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6408   lt_SP2NL='tr \040 \012'
6409   lt_NL2SP='tr \015\012 \040\040'
6410   ;;
6411  *) # EBCDIC based system
6412   lt_SP2NL='tr \100 \n'
6413   lt_NL2SP='tr \r\n \100\100'
6414   ;;
6415 esac
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6426 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6427 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   lt_cv_ld_reload_flag='-r'
6431 fi
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6433 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6434 reload_flag=$lt_cv_ld_reload_flag
6435 case $reload_flag in
6436 "" | " "*) ;;
6437 *) reload_flag=" $reload_flag" ;;
6438 esac
6439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6440 case $host_os in
6441   darwin*)
6442     if test "$GCC" = yes; then
6443       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6444     else
6445       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6446     fi
6447     ;;
6448 esac
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458 if test -n "$ac_tool_prefix"; then
6459   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$OBJDUMP"; then
6467   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474     for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481   done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 OBJDUMP=$ac_cv_prog_OBJDUMP
6487 if test -n "$OBJDUMP"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6489 $as_echo "$OBJDUMP" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495
6496 fi
6497 if test -z "$ac_cv_prog_OBJDUMP"; then
6498   ac_ct_OBJDUMP=$OBJDUMP
6499   # Extract the first word of "objdump", so it can be a program name with args.
6500 set dummy objdump; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$ac_ct_OBJDUMP"; then
6507   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6527 if test -n "$ac_ct_OBJDUMP"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6529 $as_echo "$ac_ct_OBJDUMP" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535   if test "x$ac_ct_OBJDUMP" = x; then
6536     OBJDUMP="false"
6537   else
6538     case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544     OBJDUMP=$ac_ct_OBJDUMP
6545   fi
6546 else
6547   OBJDUMP="$ac_cv_prog_OBJDUMP"
6548 fi
6549
6550 test -z "$OBJDUMP" && OBJDUMP=objdump
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6561 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6562 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   lt_cv_file_magic_cmd='$MAGIC_CMD'
6566 lt_cv_file_magic_test_file=
6567 lt_cv_deplibs_check_method='unknown'
6568 # Need to set the preceding variable on all platforms that support
6569 # interlibrary dependencies.
6570 # 'none' -- dependencies not supported.
6571 # `unknown' -- same as none, but documents that we really don't know.
6572 # 'pass_all' -- all dependencies passed with no checks.
6573 # 'test_compile' -- check by making test program.
6574 # 'file_magic [[regex]]' -- check by looking for files in library path
6575 # which responds to the $file_magic_cmd with a given extended regex.
6576 # If you have `file' or equivalent on your system and you're not sure
6577 # whether `pass_all' will *always* work, you probably want this one.
6578
6579 case $host_os in
6580 aix[4-9]*)
6581   lt_cv_deplibs_check_method=pass_all
6582   ;;
6583
6584 beos*)
6585   lt_cv_deplibs_check_method=pass_all
6586   ;;
6587
6588 bsdi[45]*)
6589   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6590   lt_cv_file_magic_cmd='/usr/bin/file -L'
6591   lt_cv_file_magic_test_file=/shlib/libc.so
6592   ;;
6593
6594 cygwin*)
6595   # func_win32_libid is a shell function defined in ltmain.sh
6596   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6597   lt_cv_file_magic_cmd='func_win32_libid'
6598   ;;
6599
6600 mingw* | pw32*)
6601   # Base MSYS/MinGW do not provide the 'file' command needed by
6602   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6603   # unless we find 'file', for example because we are cross-compiling.
6604   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6605   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6606     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6607     lt_cv_file_magic_cmd='func_win32_libid'
6608   else
6609     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6610     lt_cv_file_magic_cmd='$OBJDUMP -f'
6611   fi
6612   ;;
6613
6614 cegcc*)
6615   # use the weaker test based on 'objdump'. See mingw*.
6616   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6617   lt_cv_file_magic_cmd='$OBJDUMP -f'
6618   ;;
6619
6620 darwin* | rhapsody*)
6621   lt_cv_deplibs_check_method=pass_all
6622   ;;
6623
6624 freebsd* | dragonfly*)
6625   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6626     case $host_cpu in
6627     i*86 )
6628       # Not sure whether the presence of OpenBSD here was a mistake.
6629       # Let's accept both of them until this is cleared up.
6630       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6631       lt_cv_file_magic_cmd=/usr/bin/file
6632       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6633       ;;
6634     esac
6635   else
6636     lt_cv_deplibs_check_method=pass_all
6637   fi
6638   ;;
6639
6640 gnu*)
6641   lt_cv_deplibs_check_method=pass_all
6642   ;;
6643
6644 haiku*)
6645   lt_cv_deplibs_check_method=pass_all
6646   ;;
6647
6648 hpux10.20* | hpux11*)
6649   lt_cv_file_magic_cmd=/usr/bin/file
6650   case $host_cpu in
6651   ia64*)
6652     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6653     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6654     ;;
6655   hppa*64*)
6656     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]'
6657     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6658     ;;
6659   *)
6660     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6661     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6662     ;;
6663   esac
6664   ;;
6665
6666 interix[3-9]*)
6667   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6668   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6669   ;;
6670
6671 irix5* | irix6* | nonstopux*)
6672   case $LD in
6673   *-32|*"-32 ") libmagic=32-bit;;
6674   *-n32|*"-n32 ") libmagic=N32;;
6675   *-64|*"-64 ") libmagic=64-bit;;
6676   *) libmagic=never-match;;
6677   esac
6678   lt_cv_deplibs_check_method=pass_all
6679   ;;
6680
6681 # This must be Linux ELF.
6682 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6683   lt_cv_deplibs_check_method=pass_all
6684   ;;
6685
6686 netbsd*)
6687   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6688     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6689   else
6690     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6691   fi
6692   ;;
6693
6694 newos6*)
6695   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6696   lt_cv_file_magic_cmd=/usr/bin/file
6697   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6698   ;;
6699
6700 *nto* | *qnx*)
6701   lt_cv_deplibs_check_method=pass_all
6702   ;;
6703
6704 openbsd*)
6705   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6706     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6707   else
6708     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6709   fi
6710   ;;
6711
6712 osf3* | osf4* | osf5*)
6713   lt_cv_deplibs_check_method=pass_all
6714   ;;
6715
6716 rdos*)
6717   lt_cv_deplibs_check_method=pass_all
6718   ;;
6719
6720 solaris*)
6721   lt_cv_deplibs_check_method=pass_all
6722   ;;
6723
6724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6725   lt_cv_deplibs_check_method=pass_all
6726   ;;
6727
6728 sysv4 | sysv4.3*)
6729   case $host_vendor in
6730   motorola)
6731     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]'
6732     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6733     ;;
6734   ncr)
6735     lt_cv_deplibs_check_method=pass_all
6736     ;;
6737   sequent)
6738     lt_cv_file_magic_cmd='/bin/file'
6739     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6740     ;;
6741   sni)
6742     lt_cv_file_magic_cmd='/bin/file'
6743     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6744     lt_cv_file_magic_test_file=/lib/libc.so
6745     ;;
6746   siemens)
6747     lt_cv_deplibs_check_method=pass_all
6748     ;;
6749   pc)
6750     lt_cv_deplibs_check_method=pass_all
6751     ;;
6752   esac
6753   ;;
6754
6755 tpf*)
6756   lt_cv_deplibs_check_method=pass_all
6757   ;;
6758 esac
6759
6760 fi
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6762 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6763 file_magic_cmd=$lt_cv_file_magic_cmd
6764 deplibs_check_method=$lt_cv_deplibs_check_method
6765 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778 if test -n "$ac_tool_prefix"; then
6779   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ar; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_AR+set}" = set; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$AR"; then
6787   ac_cv_prog_AR="$AR" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_prog_AR="${ac_tool_prefix}ar"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 AR=$ac_cv_prog_AR
6807 if test -n "$AR"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6809 $as_echo "$AR" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_AR"; then
6818   ac_ct_AR=$AR
6819   # Extract the first word of "ar", so it can be a program name with args.
6820 set dummy ar; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$ac_ct_AR"; then
6827   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_prog_ac_ct_AR="ar"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6847 if test -n "$ac_ct_AR"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6849 $as_echo "$ac_ct_AR" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855   if test "x$ac_ct_AR" = x; then
6856     AR="false"
6857   else
6858     case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864     AR=$ac_ct_AR
6865   fi
6866 else
6867   AR="$ac_cv_prog_AR"
6868 fi
6869
6870 test -z "$AR" && AR=ar
6871 test -z "$AR_FLAGS" && AR_FLAGS=cru
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 if test -n "$ac_tool_prefix"; then
6884   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}strip; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_prog_STRIP+set}" = set; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   if test -n "$STRIP"; then
6892   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899     for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906   done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 STRIP=$ac_cv_prog_STRIP
6912 if test -n "$STRIP"; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6914 $as_echo "$STRIP" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920
6921 fi
6922 if test -z "$ac_cv_prog_STRIP"; then
6923   ac_ct_STRIP=$STRIP
6924   # Extract the first word of "strip", so it can be a program name with args.
6925 set dummy strip; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6929   $as_echo_n "(cached) " >&6
6930 else
6931   if test -n "$ac_ct_STRIP"; then
6932   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939     for ac_exec_ext in '' $ac_executable_extensions; do
6940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941     ac_cv_prog_ac_ct_STRIP="strip"
6942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946   done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6952 if test -n "$ac_ct_STRIP"; then
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6954 $as_echo "$ac_ct_STRIP" >&6; }
6955 else
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959
6960   if test "x$ac_ct_STRIP" = x; then
6961     STRIP=":"
6962   else
6963     case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969     STRIP=$ac_ct_STRIP
6970   fi
6971 else
6972   STRIP="$ac_cv_prog_STRIP"
6973 fi
6974
6975 test -z "$STRIP" && STRIP=:
6976
6977
6978
6979
6980
6981
6982 if test -n "$ac_tool_prefix"; then
6983   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   if test -n "$RANLIB"; then
6991   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998     for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005   done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 RANLIB=$ac_cv_prog_RANLIB
7011 if test -n "$RANLIB"; then
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7013 $as_echo "$RANLIB" >&6; }
7014 else
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019
7020 fi
7021 if test -z "$ac_cv_prog_RANLIB"; then
7022   ac_ct_RANLIB=$RANLIB
7023   # Extract the first word of "ranlib", so it can be a program name with args.
7024 set dummy ranlib; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   if test -n "$ac_ct_RANLIB"; then
7031   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038     for ac_exec_ext in '' $ac_executable_extensions; do
7039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040     ac_cv_prog_ac_ct_RANLIB="ranlib"
7041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045   done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7051 if test -n "$ac_ct_RANLIB"; then
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7053 $as_echo "$ac_ct_RANLIB" >&6; }
7054 else
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059   if test "x$ac_ct_RANLIB" = x; then
7060     RANLIB=":"
7061   else
7062     case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068     RANLIB=$ac_ct_RANLIB
7069   fi
7070 else
7071   RANLIB="$ac_cv_prog_RANLIB"
7072 fi
7073
7074 test -z "$RANLIB" && RANLIB=:
7075
7076
7077
7078
7079
7080
7081 # Determine commands to create old-style static archives.
7082 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7083 old_postinstall_cmds='chmod 644 $oldlib'
7084 old_postuninstall_cmds=
7085
7086 if test -n "$RANLIB"; then
7087   case $host_os in
7088   openbsd*)
7089     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7090     ;;
7091   *)
7092     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7093     ;;
7094   esac
7095   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7096 fi
7097
7098 case $host_os in
7099   darwin*)
7100     lock_old_archive_extraction=yes ;;
7101   *)
7102     lock_old_archive_extraction=no ;;
7103 esac
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
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 # If no C compiler was specified, use CC.
7144 LTCC=${LTCC-"$CC"}
7145
7146 # If no C compiler flags were specified, use CFLAGS.
7147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7148
7149 # Allow CC to be a program name with arguments.
7150 compiler=$CC
7151
7152
7153 # Check for command to grab the raw symbol name followed by C symbol from nm.
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7155 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7156 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159
7160 # These are sane defaults that work on at least a few old systems.
7161 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7162
7163 # Character class describing NM global symbol codes.
7164 symcode='[BCDEGRST]'
7165
7166 # Regexp to match symbols that can be accessed directly from C.
7167 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7168
7169 # Define system-specific variables.
7170 case $host_os in
7171 aix*)
7172   symcode='[BCDT]'
7173   ;;
7174 cygwin* | mingw* | pw32* | cegcc*)
7175   symcode='[ABCDGISTW]'
7176   ;;
7177 hpux*)
7178   if test "$host_cpu" = ia64; then
7179     symcode='[ABCDEGRST]'
7180   fi
7181   ;;
7182 irix* | nonstopux*)
7183   symcode='[BCDEGRST]'
7184   ;;
7185 osf*)
7186   symcode='[BCDEGQRST]'
7187   ;;
7188 solaris*)
7189   symcode='[BDRT]'
7190   ;;
7191 sco3.2v5*)
7192   symcode='[DT]'
7193   ;;
7194 sysv4.2uw2*)
7195   symcode='[DT]'
7196   ;;
7197 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7198   symcode='[ABDT]'
7199   ;;
7200 sysv4)
7201   symcode='[DFNSTU]'
7202   ;;
7203 esac
7204
7205 # If we're using GNU nm, then use its standard symbol codes.
7206 case `$NM -V 2>&1` in
7207 *GNU* | *'with BFD'*)
7208   symcode='[ABCDGIRSTW]' ;;
7209 esac
7210
7211 # Transform an extracted symbol line into a proper C declaration.
7212 # Some systems (esp. on ia64) link data and code symbols differently,
7213 # so use this general approach.
7214 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7215
7216 # Transform an extracted symbol line into symbol name and symbol address
7217 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7218 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'"
7219
7220 # Handle CRLF in mingw tool chain
7221 opt_cr=
7222 case $build_os in
7223 mingw*)
7224   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7225   ;;
7226 esac
7227
7228 # Try without a prefix underscore, then with it.
7229 for ac_symprfx in "" "_"; do
7230
7231   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7232   symxfrm="\\1 $ac_symprfx\\2 \\2"
7233
7234   # Write the raw and C identifiers.
7235   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7236     # Fake it for dumpbin and say T for any non-static function
7237     # and D for any global variable.
7238     # Also find C++ and __fastcall symbols from MSVC++,
7239     # which start with @ or ?.
7240     lt_cv_sys_global_symbol_pipe="$AWK '"\
7241 "     {last_section=section; section=\$ 3};"\
7242 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7243 "     \$ 0!~/External *\|/{next};"\
7244 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7245 "     {if(hide[section]) next};"\
7246 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7247 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7248 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7249 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7250 "     ' prfx=^$ac_symprfx"
7251   else
7252     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7253   fi
7254
7255   # Check to see that the pipe works correctly.
7256   pipe_works=no
7257
7258   rm -f conftest*
7259   cat > conftest.$ac_ext <<_LT_EOF
7260 #ifdef __cplusplus
7261 extern "C" {
7262 #endif
7263 char nm_test_var;
7264 void nm_test_func(void);
7265 void nm_test_func(void){}
7266 #ifdef __cplusplus
7267 }
7268 #endif
7269 int main(){nm_test_var='a';nm_test_func();return(0);}
7270 _LT_EOF
7271
7272   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7273   (eval $ac_compile) 2>&5
7274   ac_status=$?
7275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276   test $ac_status = 0; }; then
7277     # Now try to grab the symbols.
7278     nlist=conftest.nm
7279     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7280   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7281   ac_status=$?
7282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283   test $ac_status = 0; } && test -s "$nlist"; then
7284       # Try sorting and uniquifying the output.
7285       if sort "$nlist" | uniq > "$nlist"T; then
7286         mv -f "$nlist"T "$nlist"
7287       else
7288         rm -f "$nlist"T
7289       fi
7290
7291       # Make sure that we snagged all the symbols we need.
7292       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7293         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7294           cat <<_LT_EOF > conftest.$ac_ext
7295 #ifdef __cplusplus
7296 extern "C" {
7297 #endif
7298
7299 _LT_EOF
7300           # Now generate the symbol file.
7301           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7302
7303           cat <<_LT_EOF >> conftest.$ac_ext
7304
7305 /* The mapping between symbol names and symbols.  */
7306 const struct {
7307   const char *name;
7308   void       *address;
7309 }
7310 lt__PROGRAM__LTX_preloaded_symbols[] =
7311 {
7312   { "@PROGRAM@", (void *) 0 },
7313 _LT_EOF
7314           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7315           cat <<\_LT_EOF >> conftest.$ac_ext
7316   {0, (void *) 0}
7317 };
7318
7319 /* This works around a problem in FreeBSD linker */
7320 #ifdef FREEBSD_WORKAROUND
7321 static const void *lt_preloaded_setup() {
7322   return lt__PROGRAM__LTX_preloaded_symbols;
7323 }
7324 #endif
7325
7326 #ifdef __cplusplus
7327 }
7328 #endif
7329 _LT_EOF
7330           # Now try linking the two files.
7331           mv conftest.$ac_objext conftstm.$ac_objext
7332           lt_save_LIBS="$LIBS"
7333           lt_save_CFLAGS="$CFLAGS"
7334           LIBS="conftstm.$ac_objext"
7335           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7336           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7337   (eval $ac_link) 2>&5
7338   ac_status=$?
7339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7341             pipe_works=yes
7342           fi
7343           LIBS="$lt_save_LIBS"
7344           CFLAGS="$lt_save_CFLAGS"
7345         else
7346           echo "cannot find nm_test_func in $nlist" >&5
7347         fi
7348       else
7349         echo "cannot find nm_test_var in $nlist" >&5
7350       fi
7351     else
7352       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7353     fi
7354   else
7355     echo "$progname: failed program was:" >&5
7356     cat conftest.$ac_ext >&5
7357   fi
7358   rm -rf conftest* conftst*
7359
7360   # Do not use the global_symbol_pipe unless it works.
7361   if test "$pipe_works" = yes; then
7362     break
7363   else
7364     lt_cv_sys_global_symbol_pipe=
7365   fi
7366 done
7367
7368 fi
7369
7370 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7371   lt_cv_sys_global_symbol_to_cdecl=
7372 fi
7373 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7375 $as_echo "failed" >&6; }
7376 else
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7378 $as_echo "ok" >&6; }
7379 fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 # Check whether --enable-libtool-lock was given.
7403 if test "${enable_libtool_lock+set}" = set; then :
7404   enableval=$enable_libtool_lock;
7405 fi
7406
7407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7408
7409 # Some flags need to be propagated to the compiler or linker for good
7410 # libtool support.
7411 case $host in
7412 ia64-*-hpux*)
7413   # Find out which ABI we are using.
7414   echo 'int i;' > conftest.$ac_ext
7415   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7416   (eval $ac_compile) 2>&5
7417   ac_status=$?
7418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419   test $ac_status = 0; }; then
7420     case `/usr/bin/file conftest.$ac_objext` in
7421       *ELF-32*)
7422         HPUX_IA64_MODE="32"
7423         ;;
7424       *ELF-64*)
7425         HPUX_IA64_MODE="64"
7426         ;;
7427     esac
7428   fi
7429   rm -rf conftest*
7430   ;;
7431 *-*-irix6*)
7432   # Find out which ABI we are using.
7433   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435   (eval $ac_compile) 2>&5
7436   ac_status=$?
7437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438   test $ac_status = 0; }; then
7439     if test "$lt_cv_prog_gnu_ld" = yes; then
7440       case `/usr/bin/file conftest.$ac_objext` in
7441         *32-bit*)
7442           LD="${LD-ld} -melf32bsmip"
7443           ;;
7444         *N32*)
7445           LD="${LD-ld} -melf32bmipn32"
7446           ;;
7447         *64-bit*)
7448           LD="${LD-ld} -melf64bmip"
7449         ;;
7450       esac
7451     else
7452       case `/usr/bin/file conftest.$ac_objext` in
7453         *32-bit*)
7454           LD="${LD-ld} -32"
7455           ;;
7456         *N32*)
7457           LD="${LD-ld} -n32"
7458           ;;
7459         *64-bit*)
7460           LD="${LD-ld} -64"
7461           ;;
7462       esac
7463     fi
7464   fi
7465   rm -rf conftest*
7466   ;;
7467
7468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7470   # Find out which ABI we are using.
7471   echo 'int i;' > conftest.$ac_ext
7472   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7473   (eval $ac_compile) 2>&5
7474   ac_status=$?
7475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476   test $ac_status = 0; }; then
7477     case `/usr/bin/file conftest.o` in
7478       *32-bit*)
7479         case $host in
7480           x86_64-*kfreebsd*-gnu)
7481             LD="${LD-ld} -m elf_i386_fbsd"
7482             ;;
7483           x86_64-*linux*)
7484             case `/usr/bin/file conftest.o` in
7485               *x86-64*)
7486                 LD="${LD-ld} -m elf32_x86_64"
7487                 ;;
7488               *)
7489                 LD="${LD-ld} -m elf_i386"
7490                 ;;
7491             esac
7492             ;;
7493           powerpc64le-*linux*)
7494             LD="${LD-ld} -m elf32lppclinux"
7495             ;;
7496           powerpc64-*linux*)
7497             LD="${LD-ld} -m elf32ppclinux"
7498             ;;
7499           s390x-*linux*)
7500             LD="${LD-ld} -m elf_s390"
7501             ;;
7502           sparc64-*linux*)
7503             LD="${LD-ld} -m elf32_sparc"
7504             ;;
7505         esac
7506         ;;
7507       *64-bit*)
7508         case $host in
7509           x86_64-*kfreebsd*-gnu)
7510             LD="${LD-ld} -m elf_x86_64_fbsd"
7511             ;;
7512           x86_64-*linux*)
7513             LD="${LD-ld} -m elf_x86_64"
7514             ;;
7515           powerpcle-*linux*)
7516             LD="${LD-ld} -m elf64lppc"
7517             ;;
7518           powerpc-*linux*)
7519             LD="${LD-ld} -m elf64ppc"
7520             ;;
7521           s390*-*linux*|s390*-*tpf*)
7522             LD="${LD-ld} -m elf64_s390"
7523             ;;
7524           sparc*-*linux*)
7525             LD="${LD-ld} -m elf64_sparc"
7526             ;;
7527         esac
7528         ;;
7529     esac
7530   fi
7531   rm -rf conftest*
7532   ;;
7533
7534 *-*-sco3.2v5*)
7535   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7536   SAVE_CFLAGS="$CFLAGS"
7537   CFLAGS="$CFLAGS -belf"
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7539 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7540 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   ac_ext=c
7544 ac_cpp='$CPP $CPPFLAGS'
7545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548
7549      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h.  */
7551
7552 int
7553 main ()
7554 {
7555
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561   lt_cv_cc_needs_belf=yes
7562 else
7563   lt_cv_cc_needs_belf=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext \
7566     conftest$ac_exeext conftest.$ac_ext
7567      ac_ext=c
7568 ac_cpp='$CPP $CPPFLAGS'
7569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7575 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7576   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7577     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7578     CFLAGS="$SAVE_CFLAGS"
7579   fi
7580   ;;
7581 sparc*-*solaris*)
7582   # Find out which ABI we are using.
7583   echo 'int i;' > conftest.$ac_ext
7584   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585   (eval $ac_compile) 2>&5
7586   ac_status=$?
7587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588   test $ac_status = 0; }; then
7589     case `/usr/bin/file conftest.o` in
7590     *64-bit*)
7591       case $lt_cv_prog_gnu_ld in
7592       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7593       *)
7594         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7595           LD="${LD-ld} -64"
7596         fi
7597         ;;
7598       esac
7599       ;;
7600     esac
7601   fi
7602   rm -rf conftest*
7603   ;;
7604 esac
7605
7606 need_locks="$enable_libtool_lock"
7607
7608
7609   case $host_os in
7610     rhapsody* | darwin*)
7611     if test -n "$ac_tool_prefix"; then
7612   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619   if test -n "$DSYMUTIL"; then
7620   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627     for ac_exec_ext in '' $ac_executable_extensions; do
7628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634   done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7640 if test -n "$DSYMUTIL"; then
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7642 $as_echo "$DSYMUTIL" >&6; }
7643 else
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648
7649 fi
7650 if test -z "$ac_cv_prog_DSYMUTIL"; then
7651   ac_ct_DSYMUTIL=$DSYMUTIL
7652   # Extract the first word of "dsymutil", so it can be a program name with args.
7653 set dummy dsymutil; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   if test -n "$ac_ct_DSYMUTIL"; then
7660   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667     for ac_exec_ext in '' $ac_executable_extensions; do
7668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671     break 2
7672   fi
7673 done
7674   done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7680 if test -n "$ac_ct_DSYMUTIL"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7682 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688   if test "x$ac_ct_DSYMUTIL" = x; then
7689     DSYMUTIL=":"
7690   else
7691     case $cross_compiling:$ac_tool_warned in
7692 yes:)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697     DSYMUTIL=$ac_ct_DSYMUTIL
7698   fi
7699 else
7700   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7701 fi
7702
7703     if test -n "$ac_tool_prefix"; then
7704   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   if test -n "$NMEDIT"; then
7712   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719     for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726   done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 NMEDIT=$ac_cv_prog_NMEDIT
7732 if test -n "$NMEDIT"; then
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7734 $as_echo "$NMEDIT" >&6; }
7735 else
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_NMEDIT"; then
7743   ac_ct_NMEDIT=$NMEDIT
7744   # Extract the first word of "nmedit", so it can be a program name with args.
7745 set dummy nmedit; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$ac_ct_NMEDIT"; then
7752   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759     for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766   done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7772 if test -n "$ac_ct_NMEDIT"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7774 $as_echo "$ac_ct_NMEDIT" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780   if test "x$ac_ct_NMEDIT" = x; then
7781     NMEDIT=":"
7782   else
7783     case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789     NMEDIT=$ac_ct_NMEDIT
7790   fi
7791 else
7792   NMEDIT="$ac_cv_prog_NMEDIT"
7793 fi
7794
7795     if test -n "$ac_tool_prefix"; then
7796   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_LIPO+set}" = set; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   if test -n "$LIPO"; then
7804   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 LIPO=$ac_cv_prog_LIPO
7824 if test -n "$LIPO"; then
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7826 $as_echo "$LIPO" >&6; }
7827 else
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832
7833 fi
7834 if test -z "$ac_cv_prog_LIPO"; then
7835   ac_ct_LIPO=$LIPO
7836   # Extract the first word of "lipo", so it can be a program name with args.
7837 set dummy lipo; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   if test -n "$ac_ct_LIPO"; then
7844   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851     for ac_exec_ext in '' $ac_executable_extensions; do
7852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853     ac_cv_prog_ac_ct_LIPO="lipo"
7854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858   done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7864 if test -n "$ac_ct_LIPO"; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7866 $as_echo "$ac_ct_LIPO" >&6; }
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872   if test "x$ac_ct_LIPO" = x; then
7873     LIPO=":"
7874   else
7875     case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881     LIPO=$ac_ct_LIPO
7882   fi
7883 else
7884   LIPO="$ac_cv_prog_LIPO"
7885 fi
7886
7887     if test -n "$ac_tool_prefix"; then
7888   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}otool; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   if test -n "$OTOOL"; then
7896   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903     for ac_exec_ext in '' $ac_executable_extensions; do
7904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910   done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 OTOOL=$ac_cv_prog_OTOOL
7916 if test -n "$OTOOL"; then
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7918 $as_echo "$OTOOL" >&6; }
7919 else
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924
7925 fi
7926 if test -z "$ac_cv_prog_OTOOL"; then
7927   ac_ct_OTOOL=$OTOOL
7928   # Extract the first word of "otool", so it can be a program name with args.
7929 set dummy otool; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   if test -n "$ac_ct_OTOOL"; then
7936   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941   IFS=$as_save_IFS
7942   test -z "$as_dir" && as_dir=.
7943     for ac_exec_ext in '' $ac_executable_extensions; do
7944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945     ac_cv_prog_ac_ct_OTOOL="otool"
7946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947     break 2
7948   fi
7949 done
7950   done
7951 IFS=$as_save_IFS
7952
7953 fi
7954 fi
7955 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7956 if test -n "$ac_ct_OTOOL"; then
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7958 $as_echo "$ac_ct_OTOOL" >&6; }
7959 else
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 fi
7963
7964   if test "x$ac_ct_OTOOL" = x; then
7965     OTOOL=":"
7966   else
7967     case $cross_compiling:$ac_tool_warned in
7968 yes:)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7972 esac
7973     OTOOL=$ac_ct_OTOOL
7974   fi
7975 else
7976   OTOOL="$ac_cv_prog_OTOOL"
7977 fi
7978
7979     if test -n "$ac_tool_prefix"; then
7980   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   if test -n "$OTOOL64"; then
7988   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993   IFS=$as_save_IFS
7994   test -z "$as_dir" && as_dir=.
7995     for ac_exec_ext in '' $ac_executable_extensions; do
7996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999     break 2
8000   fi
8001 done
8002   done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 OTOOL64=$ac_cv_prog_OTOOL64
8008 if test -n "$OTOOL64"; then
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8010 $as_echo "$OTOOL64" >&6; }
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016
8017 fi
8018 if test -z "$ac_cv_prog_OTOOL64"; then
8019   ac_ct_OTOOL64=$OTOOL64
8020   # Extract the first word of "otool64", so it can be a program name with args.
8021 set dummy otool64; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   if test -n "$ac_ct_OTOOL64"; then
8028   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037     ac_cv_prog_ac_ct_OTOOL64="otool64"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8048 if test -n "$ac_ct_OTOOL64"; then
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8050 $as_echo "$ac_ct_OTOOL64" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056   if test "x$ac_ct_OTOOL64" = x; then
8057     OTOOL64=":"
8058   else
8059     case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065     OTOOL64=$ac_ct_OTOOL64
8066   fi
8067 else
8068   OTOOL64="$ac_cv_prog_OTOOL64"
8069 fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8098 $as_echo_n "checking for -single_module linker flag... " >&6; }
8099 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8100   $as_echo_n "(cached) " >&6
8101 else
8102   lt_cv_apple_cc_single_mod=no
8103       if test -z "${LT_MULTI_MODULE}"; then
8104         # By default we will add the -single_module flag. You can override
8105         # by either setting the environment variable LT_MULTI_MODULE
8106         # non-empty at configure time, or by adding -multi_module to the
8107         # link flags.
8108         rm -rf libconftest.dylib*
8109         echo "int foo(void){return 1;}" > conftest.c
8110         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8111 -dynamiclib -Wl,-single_module conftest.c" >&5
8112         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8114         _lt_result=$?
8115         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8116           lt_cv_apple_cc_single_mod=yes
8117         else
8118           cat conftest.err >&5
8119         fi
8120         rm -rf libconftest.dylib*
8121         rm -f conftest.*
8122       fi
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8125 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8127 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8128 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   lt_cv_ld_exported_symbols_list=no
8132       save_LDFLAGS=$LDFLAGS
8133       echo "_main" > conftest.sym
8134       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8135       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h.  */
8137
8138 int
8139 main ()
8140 {
8141
8142   ;
8143   return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"; then :
8147   lt_cv_ld_exported_symbols_list=yes
8148 else
8149   lt_cv_ld_exported_symbols_list=no
8150 fi
8151 rm -f core conftest.err conftest.$ac_objext \
8152     conftest$ac_exeext conftest.$ac_ext
8153         LDFLAGS="$save_LDFLAGS"
8154
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8157 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8159 $as_echo_n "checking for -force_load linker flag... " >&6; }
8160 if test "${lt_cv_ld_force_load+set}" = set; then :
8161   $as_echo_n "(cached) " >&6
8162 else
8163   lt_cv_ld_force_load=no
8164       cat > conftest.c << _LT_EOF
8165 int forced_loaded() { return 2;}
8166 _LT_EOF
8167       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8168       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8169       echo "$AR cru libconftest.a conftest.o" >&5
8170       $AR cru libconftest.a conftest.o 2>&5
8171       cat > conftest.c << _LT_EOF
8172 int main() { return 0;}
8173 _LT_EOF
8174       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8175       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8176       _lt_result=$?
8177       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8178         lt_cv_ld_force_load=yes
8179       else
8180         cat conftest.err >&5
8181       fi
8182         rm -f conftest.err libconftest.a conftest conftest.c
8183         rm -rf conftest.dSYM
8184
8185 fi
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8187 $as_echo "$lt_cv_ld_force_load" >&6; }
8188     case $host_os in
8189     rhapsody* | darwin1.[012])
8190       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8191     darwin1.*)
8192       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8193     darwin*) # darwin 5.x on
8194       # if running on 10.5 or later, the deployment target defaults
8195       # to the OS version, if on x86, and 10.4, the deployment
8196       # target defaults to 10.4. Don't you love it?
8197       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8198         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8199           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8200         10.[012]*)
8201           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8202         10.*)
8203           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8204       esac
8205     ;;
8206   esac
8207     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8208       _lt_dar_single_mod='$single_module'
8209     fi
8210     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8211       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8212     else
8213       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8214     fi
8215     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8216       _lt_dsymutil='~$DSYMUTIL $lib || :'
8217     else
8218       _lt_dsymutil=
8219     fi
8220     ;;
8221   esac
8222
8223 for ac_header in dlfcn.h
8224 do :
8225   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8226 "
8227 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8228   cat >>confdefs.h <<_ACEOF
8229 #define HAVE_DLFCN_H 1
8230 _ACEOF
8231
8232 fi
8233
8234 done
8235
8236
8237
8238
8239
8240
8241 # Set options
8242
8243
8244
8245         enable_dlopen=no
8246
8247
8248   enable_win32_dll=no
8249
8250
8251             # Check whether --enable-shared was given.
8252 if test "${enable_shared+set}" = set; then :
8253   enableval=$enable_shared; p=${PACKAGE-default}
8254     case $enableval in
8255     yes) enable_shared=yes ;;
8256     no) enable_shared=no ;;
8257     *)
8258       enable_shared=no
8259       # Look at the argument we got.  We use all the common list separators.
8260       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8261       for pkg in $enableval; do
8262         IFS="$lt_save_ifs"
8263         if test "X$pkg" = "X$p"; then
8264           enable_shared=yes
8265         fi
8266       done
8267       IFS="$lt_save_ifs"
8268       ;;
8269     esac
8270 else
8271   enable_shared=yes
8272 fi
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282   # Check whether --enable-static was given.
8283 if test "${enable_static+set}" = set; then :
8284   enableval=$enable_static; p=${PACKAGE-default}
8285     case $enableval in
8286     yes) enable_static=yes ;;
8287     no) enable_static=no ;;
8288     *)
8289      enable_static=no
8290       # Look at the argument we got.  We use all the common list separators.
8291       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8292       for pkg in $enableval; do
8293         IFS="$lt_save_ifs"
8294         if test "X$pkg" = "X$p"; then
8295           enable_static=yes
8296         fi
8297       done
8298       IFS="$lt_save_ifs"
8299       ;;
8300     esac
8301 else
8302   enable_static=yes
8303 fi
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314 # Check whether --with-pic was given.
8315 if test "${with_pic+set}" = set; then :
8316   withval=$with_pic; pic_mode="$withval"
8317 else
8318   pic_mode=default
8319 fi
8320
8321
8322 test -z "$pic_mode" && pic_mode=default
8323
8324
8325
8326
8327
8328
8329
8330   # Check whether --enable-fast-install was given.
8331 if test "${enable_fast_install+set}" = set; then :
8332   enableval=$enable_fast_install; p=${PACKAGE-default}
8333     case $enableval in
8334     yes) enable_fast_install=yes ;;
8335     no) enable_fast_install=no ;;
8336     *)
8337       enable_fast_install=no
8338       # Look at the argument we got.  We use all the common list separators.
8339       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8340       for pkg in $enableval; do
8341         IFS="$lt_save_ifs"
8342         if test "X$pkg" = "X$p"; then
8343           enable_fast_install=yes
8344         fi
8345       done
8346       IFS="$lt_save_ifs"
8347       ;;
8348     esac
8349 else
8350   enable_fast_install=yes
8351 fi
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363 # This can be used to rebuild libtool when needed
8364 LIBTOOL_DEPS="$ltmain"
8365
8366 # Always use our own libtool.
8367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394 test -z "$LN_S" && LN_S="ln -s"
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409 if test -n "${ZSH_VERSION+set}" ; then
8410    setopt NO_GLOB_SUBST
8411 fi
8412
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8414 $as_echo_n "checking for objdir... " >&6; }
8415 if test "${lt_cv_objdir+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   rm -f .libs 2>/dev/null
8419 mkdir .libs 2>/dev/null
8420 if test -d .libs; then
8421   lt_cv_objdir=.libs
8422 else
8423   # MS-DOS does not allow filenames that begin with a dot.
8424   lt_cv_objdir=_libs
8425 fi
8426 rmdir .libs 2>/dev/null
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8429 $as_echo "$lt_cv_objdir" >&6; }
8430 objdir=$lt_cv_objdir
8431
8432
8433
8434
8435
8436 cat >>confdefs.h <<_ACEOF
8437 #define LT_OBJDIR "$lt_cv_objdir/"
8438 _ACEOF
8439
8440
8441
8442
8443 case $host_os in
8444 aix3*)
8445   # AIX sometimes has problems with the GCC collect2 program.  For some
8446   # reason, if we set the COLLECT_NAMES environment variable, the problems
8447   # vanish in a puff of smoke.
8448   if test "X${COLLECT_NAMES+set}" != Xset; then
8449     COLLECT_NAMES=
8450     export COLLECT_NAMES
8451   fi
8452   ;;
8453 esac
8454
8455 # Global variables:
8456 ofile=libtool
8457 can_build_shared=yes
8458
8459 # All known linkers require a `.a' archive for static linking (except MSVC,
8460 # which needs '.lib').
8461 libext=a
8462
8463 with_gnu_ld="$lt_cv_prog_gnu_ld"
8464
8465 old_CC="$CC"
8466 old_CFLAGS="$CFLAGS"
8467
8468 # Set sane defaults for various variables
8469 test -z "$CC" && CC=cc
8470 test -z "$LTCC" && LTCC=$CC
8471 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8472 test -z "$LD" && LD=ld
8473 test -z "$ac_objext" && ac_objext=o
8474
8475 for cc_temp in $compiler""; do
8476   case $cc_temp in
8477     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8478     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8479     \-*) ;;
8480     *) break;;
8481   esac
8482 done
8483 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8484
8485
8486 # Only perform the check for file, if the check method requires it
8487 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8488 case $deplibs_check_method in
8489 file_magic*)
8490   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8492 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8493 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   case $MAGIC_CMD in
8497 [\\/*] |  ?:[\\/]*)
8498   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8499   ;;
8500 *)
8501   lt_save_MAGIC_CMD="$MAGIC_CMD"
8502   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8503   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8504   for ac_dir in $ac_dummy; do
8505     IFS="$lt_save_ifs"
8506     test -z "$ac_dir" && ac_dir=.
8507     if test -f $ac_dir/${ac_tool_prefix}file; then
8508       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8509       if test -n "$file_magic_test_file"; then
8510         case $deplibs_check_method in
8511         "file_magic "*)
8512           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8513           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8515             $EGREP "$file_magic_regex" > /dev/null; then
8516             :
8517           else
8518             cat <<_LT_EOF 1>&2
8519
8520 *** Warning: the command libtool uses to detect shared libraries,
8521 *** $file_magic_cmd, produces output that libtool cannot recognize.
8522 *** The result is that libtool may fail to recognize shared libraries
8523 *** as such.  This will affect the creation of libtool libraries that
8524 *** depend on shared libraries, but programs linked with such libtool
8525 *** libraries will work regardless of this problem.  Nevertheless, you
8526 *** may want to report the problem to your system manager and/or to
8527 *** bug-libtool@gnu.org
8528
8529 _LT_EOF
8530           fi ;;
8531         esac
8532       fi
8533       break
8534     fi
8535   done
8536   IFS="$lt_save_ifs"
8537   MAGIC_CMD="$lt_save_MAGIC_CMD"
8538   ;;
8539 esac
8540 fi
8541
8542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8543 if test -n "$MAGIC_CMD"; then
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8545 $as_echo "$MAGIC_CMD" >&6; }
8546 else
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551
8552
8553
8554
8555 if test -z "$lt_cv_path_MAGIC_CMD"; then
8556   if test -n "$ac_tool_prefix"; then
8557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8558 $as_echo_n "checking for file... " >&6; }
8559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   case $MAGIC_CMD in
8563 [\\/*] |  ?:[\\/]*)
8564   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565   ;;
8566 *)
8567   lt_save_MAGIC_CMD="$MAGIC_CMD"
8568   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8569   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570   for ac_dir in $ac_dummy; do
8571     IFS="$lt_save_ifs"
8572     test -z "$ac_dir" && ac_dir=.
8573     if test -f $ac_dir/file; then
8574       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8575       if test -n "$file_magic_test_file"; then
8576         case $deplibs_check_method in
8577         "file_magic "*)
8578           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581             $EGREP "$file_magic_regex" > /dev/null; then
8582             :
8583           else
8584             cat <<_LT_EOF 1>&2
8585
8586 *** Warning: the command libtool uses to detect shared libraries,
8587 *** $file_magic_cmd, produces output that libtool cannot recognize.
8588 *** The result is that libtool may fail to recognize shared libraries
8589 *** as such.  This will affect the creation of libtool libraries that
8590 *** depend on shared libraries, but programs linked with such libtool
8591 *** libraries will work regardless of this problem.  Nevertheless, you
8592 *** may want to report the problem to your system manager and/or to
8593 *** bug-libtool@gnu.org
8594
8595 _LT_EOF
8596           fi ;;
8597         esac
8598       fi
8599       break
8600     fi
8601   done
8602   IFS="$lt_save_ifs"
8603   MAGIC_CMD="$lt_save_MAGIC_CMD"
8604   ;;
8605 esac
8606 fi
8607
8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 if test -n "$MAGIC_CMD"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8611 $as_echo "$MAGIC_CMD" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618   else
8619     MAGIC_CMD=:
8620   fi
8621 fi
8622
8623   fi
8624   ;;
8625 esac
8626
8627 # Use C for the default configuration in the libtool script
8628
8629 lt_save_CC="$CC"
8630 ac_ext=c
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8635
8636
8637 # Source file extension for C test sources.
8638 ac_ext=c
8639
8640 # Object file extension for compiled C test sources.
8641 objext=o
8642 objext=$objext
8643
8644 # Code to be used in simple compile tests
8645 lt_simple_compile_test_code="int some_variable = 0;"
8646
8647 # Code to be used in simple link tests
8648 lt_simple_link_test_code='int main(){return(0);}'
8649
8650
8651
8652
8653
8654
8655
8656 # If no C compiler was specified, use CC.
8657 LTCC=${LTCC-"$CC"}
8658
8659 # If no C compiler flags were specified, use CFLAGS.
8660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8661
8662 # Allow CC to be a program name with arguments.
8663 compiler=$CC
8664
8665 # Save the default compiler, since it gets overwritten when the other
8666 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8667 compiler_DEFAULT=$CC
8668
8669 # save warnings/boilerplate of simple test code
8670 ac_outfile=conftest.$ac_objext
8671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8673 _lt_compiler_boilerplate=`cat conftest.err`
8674 $RM conftest*
8675
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8679 _lt_linker_boilerplate=`cat conftest.err`
8680 $RM -r conftest*
8681
8682
8683 ## CAVEAT EMPTOR:
8684 ## There is no encapsulation within the following macros, do not change
8685 ## the running order or otherwise move them around unless you know exactly
8686 ## what you are doing...
8687 if test -n "$compiler"; then
8688
8689 lt_prog_compiler_no_builtin_flag=
8690
8691 if test "$GCC" = yes; then
8692   case $cc_basename in
8693   nvcc*)
8694     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8695   *)
8696     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8697   esac
8698
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8700 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8701 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8702   $as_echo_n "(cached) " >&6
8703 else
8704   lt_cv_prog_compiler_rtti_exceptions=no
8705    ac_outfile=conftest.$ac_objext
8706    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8707    lt_compiler_flag="-fno-rtti -fno-exceptions"
8708    # Insert the option either (1) after the last *FLAGS variable, or
8709    # (2) before a word containing "conftest.", or (3) at the end.
8710    # Note that $ac_compile itself does not contain backslashes and begins
8711    # with a dollar sign (not a hyphen), so the echo should work correctly.
8712    # The option is referenced via a variable to avoid confusing sed.
8713    lt_compile=`echo "$ac_compile" | $SED \
8714    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8715    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8716    -e 's:$: $lt_compiler_flag:'`
8717    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8718    (eval "$lt_compile" 2>conftest.err)
8719    ac_status=$?
8720    cat conftest.err >&5
8721    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722    if (exit $ac_status) && test -s "$ac_outfile"; then
8723      # The compiler can only warn and ignore the option if not recognized
8724      # So say no if there are warnings other than the usual output.
8725      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8726      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8727      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8728        lt_cv_prog_compiler_rtti_exceptions=yes
8729      fi
8730    fi
8731    $RM conftest*
8732
8733 fi
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8735 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8736
8737 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8738     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8739 else
8740     :
8741 fi
8742
8743 fi
8744
8745
8746
8747
8748
8749
8750   lt_prog_compiler_wl=
8751 lt_prog_compiler_pic=
8752 lt_prog_compiler_static=
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8755 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8756
8757   if test "$GCC" = yes; then
8758     lt_prog_compiler_wl='-Wl,'
8759     lt_prog_compiler_static='-static'
8760
8761     case $host_os in
8762       aix*)
8763       # All AIX code is PIC.
8764       if test "$host_cpu" = ia64; then
8765         # AIX 5 now supports IA64 processor
8766         lt_prog_compiler_static='-Bstatic'
8767       fi
8768       lt_prog_compiler_pic='-fPIC'
8769       ;;
8770
8771     amigaos*)
8772       case $host_cpu in
8773       powerpc)
8774             # see comment about AmigaOS4 .so support
8775             lt_prog_compiler_pic='-fPIC'
8776         ;;
8777       m68k)
8778             # FIXME: we need at least 68020 code to build shared libraries, but
8779             # adding the `-m68020' flag to GCC prevents building anything better,
8780             # like `-m68040'.
8781             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8782         ;;
8783       esac
8784       ;;
8785
8786     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8787       # PIC is the default for these OSes.
8788       ;;
8789
8790     mingw* | cygwin* | pw32* | os2* | cegcc*)
8791       # This hack is so that the source file can tell whether it is being
8792       # built for inclusion in a dll (and should export symbols for example).
8793       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8794       # (--disable-auto-import) libraries
8795       lt_prog_compiler_pic='-DDLL_EXPORT'
8796       ;;
8797
8798     darwin* | rhapsody*)
8799       # PIC is the default on this platform
8800       # Common symbols not allowed in MH_DYLIB files
8801       lt_prog_compiler_pic='-fno-common'
8802       ;;
8803
8804     haiku*)
8805       # PIC is the default for Haiku.
8806       # The "-static" flag exists, but is broken.
8807       lt_prog_compiler_static=
8808       ;;
8809
8810     hpux*)
8811       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8812       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8813       # sets the default TLS model and affects inlining.
8814       case $host_cpu in
8815       hppa*64*)
8816         # +Z the default
8817         ;;
8818       *)
8819         lt_prog_compiler_pic='-fPIC'
8820         ;;
8821       esac
8822       ;;
8823
8824     interix[3-9]*)
8825       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8826       # Instead, we relocate shared libraries at runtime.
8827       ;;
8828
8829     msdosdjgpp*)
8830       # Just because we use GCC doesn't mean we suddenly get shared libraries
8831       # on systems that don't support them.
8832       lt_prog_compiler_can_build_shared=no
8833       enable_shared=no
8834       ;;
8835
8836     *nto* | *qnx*)
8837       # QNX uses GNU C++, but need to define -shared option too, otherwise
8838       # it will coredump.
8839       lt_prog_compiler_pic='-fPIC -shared'
8840       ;;
8841
8842     sysv4*MP*)
8843       if test -d /usr/nec; then
8844         lt_prog_compiler_pic=-Kconform_pic
8845       fi
8846       ;;
8847
8848     *)
8849       lt_prog_compiler_pic='-fPIC'
8850       ;;
8851     esac
8852
8853     case $cc_basename in
8854     nvcc*) # Cuda Compiler Driver 2.2
8855       lt_prog_compiler_wl='-Xlinker '
8856       lt_prog_compiler_pic='-Xcompiler -fPIC'
8857       ;;
8858     esac
8859   else
8860     # PORTME Check for flag to pass linker flags through the system compiler.
8861     case $host_os in
8862     aix*)
8863       lt_prog_compiler_wl='-Wl,'
8864       if test "$host_cpu" = ia64; then
8865         # AIX 5 now supports IA64 processor
8866         lt_prog_compiler_static='-Bstatic'
8867       else
8868         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8869       fi
8870       ;;
8871
8872     mingw* | cygwin* | pw32* | os2* | cegcc*)
8873       # This hack is so that the source file can tell whether it is being
8874       # built for inclusion in a dll (and should export symbols for example).
8875       lt_prog_compiler_pic='-DDLL_EXPORT'
8876       ;;
8877
8878     hpux9* | hpux10* | hpux11*)
8879       lt_prog_compiler_wl='-Wl,'
8880       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8881       # not for PA HP-UX.
8882       case $host_cpu in
8883       hppa*64*|ia64*)
8884         # +Z the default
8885         ;;
8886       *)
8887         lt_prog_compiler_pic='+Z'
8888         ;;
8889       esac
8890       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8891       lt_prog_compiler_static='${wl}-a ${wl}archive'
8892       ;;
8893
8894     irix5* | irix6* | nonstopux*)
8895       lt_prog_compiler_wl='-Wl,'
8896       # PIC (with -KPIC) is the default.
8897       lt_prog_compiler_static='-non_shared'
8898       ;;
8899
8900     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8901       case $cc_basename in
8902       # old Intel for x86_64 which still supported -KPIC.
8903       ecc*)
8904         lt_prog_compiler_wl='-Wl,'
8905         lt_prog_compiler_pic='-KPIC'
8906         lt_prog_compiler_static='-static'
8907         ;;
8908       # icc used to be incompatible with GCC.
8909       # ICC 10 doesn't accept -KPIC any more.
8910       icc* | ifort*)
8911         lt_prog_compiler_wl='-Wl,'
8912         lt_prog_compiler_pic='-fPIC'
8913         lt_prog_compiler_static='-static'
8914         ;;
8915       # Lahey Fortran 8.1.
8916       lf95*)
8917         lt_prog_compiler_wl='-Wl,'
8918         lt_prog_compiler_pic='--shared'
8919         lt_prog_compiler_static='--static'
8920         ;;
8921       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8922         # Portland Group compilers (*not* the Pentium gcc compiler,
8923         # which looks to be a dead project)
8924         lt_prog_compiler_wl='-Wl,'
8925         lt_prog_compiler_pic='-fpic'
8926         lt_prog_compiler_static='-Bstatic'
8927         ;;
8928       ccc*)
8929         lt_prog_compiler_wl='-Wl,'
8930         # All Alpha code is PIC.
8931         lt_prog_compiler_static='-non_shared'
8932         ;;
8933       xl* | bgxl* | bgf* | mpixl*)
8934         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8935         lt_prog_compiler_wl='-Wl,'
8936         lt_prog_compiler_pic='-qpic'
8937         lt_prog_compiler_static='-qstaticlink'
8938         ;;
8939       *)
8940         case `$CC -V 2>&1 | sed 5q` in
8941         *Sun\ F* | *Sun*Fortran*)
8942           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8943           lt_prog_compiler_pic='-KPIC'
8944           lt_prog_compiler_static='-Bstatic'
8945           lt_prog_compiler_wl=''
8946           ;;
8947         *Sun\ C*)
8948           # Sun C 5.9
8949           lt_prog_compiler_pic='-KPIC'
8950           lt_prog_compiler_static='-Bstatic'
8951           lt_prog_compiler_wl='-Wl,'
8952           ;;
8953         esac
8954         ;;
8955       esac
8956       ;;
8957
8958     newsos6)
8959       lt_prog_compiler_pic='-KPIC'
8960       lt_prog_compiler_static='-Bstatic'
8961       ;;
8962
8963     *nto* | *qnx*)
8964       # QNX uses GNU C++, but need to define -shared option too, otherwise
8965       # it will coredump.
8966       lt_prog_compiler_pic='-fPIC -shared'
8967       ;;
8968
8969     osf3* | osf4* | osf5*)
8970       lt_prog_compiler_wl='-Wl,'
8971       # All OSF/1 code is PIC.
8972       lt_prog_compiler_static='-non_shared'
8973       ;;
8974
8975     rdos*)
8976       lt_prog_compiler_static='-non_shared'
8977       ;;
8978
8979     solaris*)
8980       lt_prog_compiler_pic='-KPIC'
8981       lt_prog_compiler_static='-Bstatic'
8982       case $cc_basename in
8983       f77* | f90* | f95*)
8984         lt_prog_compiler_wl='-Qoption ld ';;
8985       *)
8986         lt_prog_compiler_wl='-Wl,';;
8987       esac
8988       ;;
8989
8990     sunos4*)
8991       lt_prog_compiler_wl='-Qoption ld '
8992       lt_prog_compiler_pic='-PIC'
8993       lt_prog_compiler_static='-Bstatic'
8994       ;;
8995
8996     sysv4 | sysv4.2uw2* | sysv4.3*)
8997       lt_prog_compiler_wl='-Wl,'
8998       lt_prog_compiler_pic='-KPIC'
8999       lt_prog_compiler_static='-Bstatic'
9000       ;;
9001
9002     sysv4*MP*)
9003       if test -d /usr/nec ;then
9004         lt_prog_compiler_pic='-Kconform_pic'
9005         lt_prog_compiler_static='-Bstatic'
9006       fi
9007       ;;
9008
9009     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9010       lt_prog_compiler_wl='-Wl,'
9011       lt_prog_compiler_pic='-KPIC'
9012       lt_prog_compiler_static='-Bstatic'
9013       ;;
9014
9015     unicos*)
9016       lt_prog_compiler_wl='-Wl,'
9017       lt_prog_compiler_can_build_shared=no
9018       ;;
9019
9020     uts4*)
9021       lt_prog_compiler_pic='-pic'
9022       lt_prog_compiler_static='-Bstatic'
9023       ;;
9024
9025     *)
9026       lt_prog_compiler_can_build_shared=no
9027       ;;
9028     esac
9029   fi
9030
9031 case $host_os in
9032   # For platforms which do not support PIC, -DPIC is meaningless:
9033   *djgpp*)
9034     lt_prog_compiler_pic=
9035     ;;
9036   *)
9037     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9038     ;;
9039 esac
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9041 $as_echo "$lt_prog_compiler_pic" >&6; }
9042
9043
9044
9045
9046
9047
9048 #
9049 # Check to make sure the PIC flag actually works.
9050 #
9051 if test -n "$lt_prog_compiler_pic"; then
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9054 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9055   $as_echo_n "(cached) " >&6
9056 else
9057   lt_cv_prog_compiler_pic_works=no
9058    ac_outfile=conftest.$ac_objext
9059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9061    # Insert the option either (1) after the last *FLAGS variable, or
9062    # (2) before a word containing "conftest.", or (3) at the end.
9063    # Note that $ac_compile itself does not contain backslashes and begins
9064    # with a dollar sign (not a hyphen), so the echo should work correctly.
9065    # The option is referenced via a variable to avoid confusing sed.
9066    lt_compile=`echo "$ac_compile" | $SED \
9067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069    -e 's:$: $lt_compiler_flag:'`
9070    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071    (eval "$lt_compile" 2>conftest.err)
9072    ac_status=$?
9073    cat conftest.err >&5
9074    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075    if (exit $ac_status) && test -s "$ac_outfile"; then
9076      # The compiler can only warn and ignore the option if not recognized
9077      # So say no if there are warnings other than the usual output.
9078      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9081        lt_cv_prog_compiler_pic_works=yes
9082      fi
9083    fi
9084    $RM conftest*
9085
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9089
9090 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9091     case $lt_prog_compiler_pic in
9092      "" | " "*) ;;
9093      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9094      esac
9095 else
9096     lt_prog_compiler_pic=
9097      lt_prog_compiler_can_build_shared=no
9098 fi
9099
9100 fi
9101
9102
9103
9104
9105
9106
9107 #
9108 # Check to make sure the static flag actually works.
9109 #
9110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9114   $as_echo_n "(cached) " >&6
9115 else
9116   lt_cv_prog_compiler_static_works=no
9117    save_LDFLAGS="$LDFLAGS"
9118    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121      # The linker can only warn and ignore the option if not recognized
9122      # So say no if there are warnings
9123      if test -s conftest.err; then
9124        # Append any errors to the config.log.
9125        cat conftest.err 1>&5
9126        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128        if diff conftest.exp conftest.er2 >/dev/null; then
9129          lt_cv_prog_compiler_static_works=yes
9130        fi
9131      else
9132        lt_cv_prog_compiler_static_works=yes
9133      fi
9134    fi
9135    $RM -r conftest*
9136    LDFLAGS="$save_LDFLAGS"
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9141
9142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9143     :
9144 else
9145     lt_prog_compiler_static=
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   lt_cv_prog_compiler_c_o=no
9160    $RM -r conftest 2>/dev/null
9161    mkdir conftest
9162    cd conftest
9163    mkdir out
9164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165
9166    lt_compiler_flag="-o out/conftest2.$ac_objext"
9167    # Insert the option either (1) after the last *FLAGS variable, or
9168    # (2) before a word containing "conftest.", or (3) at the end.
9169    # Note that $ac_compile itself does not contain backslashes and begins
9170    # with a dollar sign (not a hyphen), so the echo should work correctly.
9171    lt_compile=`echo "$ac_compile" | $SED \
9172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174    -e 's:$: $lt_compiler_flag:'`
9175    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176    (eval "$lt_compile" 2>out/conftest.err)
9177    ac_status=$?
9178    cat out/conftest.err >&5
9179    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181    then
9182      # The compiler can only warn and ignore the option if not recognized
9183      # So say no if there are warnings
9184      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187        lt_cv_prog_compiler_c_o=yes
9188      fi
9189    fi
9190    chmod u+w . 2>&5
9191    $RM conftest*
9192    # SGI C++ compiler will create directory out/ii_files/ for
9193    # template instantiation
9194    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195    $RM out/* && rmdir out
9196    cd ..
9197    $RM -r conftest
9198    $RM conftest*
9199
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9203
9204
9205
9206
9207
9208
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   lt_cv_prog_compiler_c_o=no
9215    $RM -r conftest 2>/dev/null
9216    mkdir conftest
9217    cd conftest
9218    mkdir out
9219    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220
9221    lt_compiler_flag="-o out/conftest2.$ac_objext"
9222    # Insert the option either (1) after the last *FLAGS variable, or
9223    # (2) before a word containing "conftest.", or (3) at the end.
9224    # Note that $ac_compile itself does not contain backslashes and begins
9225    # with a dollar sign (not a hyphen), so the echo should work correctly.
9226    lt_compile=`echo "$ac_compile" | $SED \
9227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229    -e 's:$: $lt_compiler_flag:'`
9230    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231    (eval "$lt_compile" 2>out/conftest.err)
9232    ac_status=$?
9233    cat out/conftest.err >&5
9234    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236    then
9237      # The compiler can only warn and ignore the option if not recognized
9238      # So say no if there are warnings
9239      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242        lt_cv_prog_compiler_c_o=yes
9243      fi
9244    fi
9245    chmod u+w . 2>&5
9246    $RM conftest*
9247    # SGI C++ compiler will create directory out/ii_files/ for
9248    # template instantiation
9249    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250    $RM out/* && rmdir out
9251    cd ..
9252    $RM -r conftest
9253    $RM conftest*
9254
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9258
9259
9260
9261
9262 hard_links="nottested"
9263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264   # do not overwrite the value of need_locks provided by the user
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266 $as_echo_n "checking if we can lock with hard links... " >&6; }
9267   hard_links=yes
9268   $RM conftest*
9269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270   touch conftest.a
9271   ln conftest.a conftest.b 2>&5 || hard_links=no
9272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274 $as_echo "$hard_links" >&6; }
9275   if test "$hard_links" = no; then
9276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9278     need_locks=warn
9279   fi
9280 else
9281   need_locks=no
9282 fi
9283
9284
9285
9286
9287
9288
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9291
9292   runpath_var=
9293   allow_undefined_flag=
9294   always_export_symbols=no
9295   archive_cmds=
9296   archive_expsym_cmds=
9297   compiler_needs_object=no
9298   enable_shared_with_static_runtimes=no
9299   export_dynamic_flag_spec=
9300   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301   hardcode_automatic=no
9302   hardcode_direct=no
9303   hardcode_direct_absolute=no
9304   hardcode_libdir_flag_spec=
9305   hardcode_libdir_flag_spec_ld=
9306   hardcode_libdir_separator=
9307   hardcode_minus_L=no
9308   hardcode_shlibpath_var=unsupported
9309   inherit_rpath=no
9310   link_all_deplibs=unknown
9311   module_cmds=
9312   module_expsym_cmds=
9313   old_archive_from_new_cmds=
9314   old_archive_from_expsyms_cmds=
9315   thread_safe_flag_spec=
9316   whole_archive_flag_spec=
9317   # include_expsyms should be a list of space-separated symbols to be *always*
9318   # included in the symbol list
9319   include_expsyms=
9320   # exclude_expsyms can be an extended regexp of symbols to exclude
9321   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9322   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9323   # as well as any symbol that contains `d'.
9324   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9325   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9326   # platforms (ab)use it in PIC code, but their linkers get confused if
9327   # the symbol is explicitly referenced.  Since portable code cannot
9328   # rely on this symbol name, it's probably fine to never include it in
9329   # preloaded symbol tables.
9330   # Exclude shared library initialization/finalization symbols.
9331   extract_expsyms_cmds=
9332
9333   case $host_os in
9334   cygwin* | mingw* | pw32* | cegcc*)
9335     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9336     # When not using gcc, we currently assume that we are using
9337     # Microsoft Visual C++.
9338     if test "$GCC" != yes; then
9339       with_gnu_ld=no
9340     fi
9341     ;;
9342   interix*)
9343     # we just hope/assume this is gcc and not c89 (= MSVC++)
9344     with_gnu_ld=yes
9345     ;;
9346   openbsd*)
9347     with_gnu_ld=no
9348     ;;
9349   esac
9350
9351   ld_shlibs=yes
9352
9353   # On some targets, GNU ld is compatible enough with the native linker
9354   # that we're better off using the native interface for both.
9355   lt_use_gnu_ld_interface=no
9356   if test "$with_gnu_ld" = yes; then
9357     case $host_os in
9358       aix*)
9359         # The AIX port of GNU ld has always aspired to compatibility
9360         # with the native linker.  However, as the warning in the GNU ld
9361         # block says, versions before 2.19.5* couldn't really create working
9362         # shared libraries, regardless of the interface used.
9363         case `$LD -v 2>&1` in
9364           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9365           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9366           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9367           *)
9368             lt_use_gnu_ld_interface=yes
9369             ;;
9370         esac
9371         ;;
9372       *)
9373         lt_use_gnu_ld_interface=yes
9374         ;;
9375     esac
9376   fi
9377
9378   if test "$lt_use_gnu_ld_interface" = yes; then
9379     # If archive_cmds runs LD, not CC, wlarc should be empty
9380     wlarc='${wl}'
9381
9382     # Set some defaults for GNU ld with shared library support. These
9383     # are reset later if shared libraries are not supported. Putting them
9384     # here allows them to be overridden if necessary.
9385     runpath_var=LD_RUN_PATH
9386     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387     export_dynamic_flag_spec='${wl}--export-dynamic'
9388     # ancient GNU ld didn't support --whole-archive et. al.
9389     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9390       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9391     else
9392       whole_archive_flag_spec=
9393     fi
9394     supports_anon_versioning=no
9395     case `$LD -v 2>&1` in
9396       *GNU\ gold*) supports_anon_versioning=yes ;;
9397       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9398       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9399       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9400       *\ 2.11.*) ;; # other 2.11 versions
9401       *) supports_anon_versioning=yes ;;
9402     esac
9403
9404     # See if GNU ld supports shared libraries.
9405     case $host_os in
9406     aix[3-9]*)
9407       # On AIX/PPC, the GNU linker is very broken
9408       if test "$host_cpu" != ia64; then
9409         ld_shlibs=no
9410         cat <<_LT_EOF 1>&2
9411
9412 *** Warning: the GNU linker, at least up to release 2.19, is reported
9413 *** to be unable to reliably create shared libraries on AIX.
9414 *** Therefore, libtool is disabling shared libraries support.  If you
9415 *** really care for shared libraries, you may want to install binutils
9416 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9417 *** You will then need to restart the configuration process.
9418
9419 _LT_EOF
9420       fi
9421       ;;
9422
9423     amigaos*)
9424       case $host_cpu in
9425       powerpc)
9426             # see comment about AmigaOS4 .so support
9427             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428             archive_expsym_cmds=''
9429         ;;
9430       m68k)
9431             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)'
9432             hardcode_libdir_flag_spec='-L$libdir'
9433             hardcode_minus_L=yes
9434         ;;
9435       esac
9436       ;;
9437
9438     beos*)
9439       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440         allow_undefined_flag=unsupported
9441         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9442         # support --undefined.  This deserves some investigation.  FIXME
9443         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444       else
9445         ld_shlibs=no
9446       fi
9447       ;;
9448
9449     cygwin* | mingw* | pw32* | cegcc*)
9450       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9451       # as there is no search path for DLLs.
9452       hardcode_libdir_flag_spec='-L$libdir'
9453       export_dynamic_flag_spec='${wl}--export-all-symbols'
9454       allow_undefined_flag=unsupported
9455       always_export_symbols=no
9456       enable_shared_with_static_runtimes=yes
9457       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9458
9459       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9460         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9461         # If the export-symbols file already is a .def file (1st line
9462         # is EXPORTS), use it as is; otherwise, prepend...
9463         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464           cp $export_symbols $output_objdir/$soname.def;
9465         else
9466           echo EXPORTS > $output_objdir/$soname.def;
9467           cat $export_symbols >> $output_objdir/$soname.def;
9468         fi~
9469         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9470       else
9471         ld_shlibs=no
9472       fi
9473       ;;
9474
9475     haiku*)
9476       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477       link_all_deplibs=yes
9478       ;;
9479
9480     interix[3-9]*)
9481       hardcode_direct=no
9482       hardcode_shlibpath_var=no
9483       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9484       export_dynamic_flag_spec='${wl}-E'
9485       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9486       # Instead, shared libraries are loaded at an image base (0x10000000 by
9487       # default) and relocated if they conflict, which is a slow very memory
9488       # consuming and fragmenting process.  To avoid this, we pick a random,
9489       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9490       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9491       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9492       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'
9493       ;;
9494
9495     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9496       tmp_diet=no
9497       if test "$host_os" = linux-dietlibc; then
9498         case $cc_basename in
9499           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9500         esac
9501       fi
9502       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9503          && test "$tmp_diet" = no
9504       then
9505         tmp_addflag=
9506         tmp_sharedflag='-shared'
9507         case $cc_basename,$host_cpu in
9508         pgcc*)                          # Portland Group C compiler
9509           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'
9510           tmp_addflag=' $pic_flag'
9511           ;;
9512         pgf77* | pgf90* | pgf95* | pgfortran*)
9513                                         # Portland Group f77 and f90 compilers
9514           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'
9515           tmp_addflag=' $pic_flag -Mnomain' ;;
9516         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9517           tmp_addflag=' -i_dynamic' ;;
9518         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9519           tmp_addflag=' -i_dynamic -nofor_main' ;;
9520         ifc* | ifort*)                  # Intel Fortran compiler
9521           tmp_addflag=' -nofor_main' ;;
9522         lf95*)                          # Lahey Fortran 8.1
9523           whole_archive_flag_spec=
9524           tmp_sharedflag='--shared' ;;
9525         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9526           tmp_sharedflag='-qmkshrobj'
9527           tmp_addflag= ;;
9528         nvcc*)  # Cuda Compiler Driver 2.2
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           compiler_needs_object=yes
9531           ;;
9532         esac
9533         case `$CC -V 2>&1 | sed 5q` in
9534         *Sun\ C*)                       # Sun C 5.9
9535           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'
9536           compiler_needs_object=yes
9537           tmp_sharedflag='-G' ;;
9538         *Sun\ F*)                       # Sun Fortran 8.3
9539           tmp_sharedflag='-G' ;;
9540         esac
9541         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542
9543         if test "x$supports_anon_versioning" = xyes; then
9544           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9545             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9546             echo "local: *; };" >> $output_objdir/$libname.ver~
9547             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9548         fi
9549
9550         case $cc_basename in
9551         xlf* | bgf* | bgxlf* | mpixlf*)
9552           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9553           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9554           hardcode_libdir_flag_spec=
9555           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9556           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9557           if test "x$supports_anon_versioning" = xyes; then
9558             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9559               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9560               echo "local: *; };" >> $output_objdir/$libname.ver~
9561               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9562           fi
9563           ;;
9564         esac
9565       else
9566         ld_shlibs=no
9567       fi
9568       ;;
9569
9570     netbsd*)
9571       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9572         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9573         wlarc=
9574       else
9575         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577       fi
9578       ;;
9579
9580     solaris*)
9581       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9582         ld_shlibs=no
9583         cat <<_LT_EOF 1>&2
9584
9585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9586 *** create shared libraries on Solaris systems.  Therefore, libtool
9587 *** is disabling shared libraries support.  We urge you to upgrade GNU
9588 *** binutils to release 2.9.1 or newer.  Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9591
9592 _LT_EOF
9593       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9594         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9595         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9596       else
9597         ld_shlibs=no
9598       fi
9599       ;;
9600
9601     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9602       case `$LD -v 2>&1` in
9603         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9604         ld_shlibs=no
9605         cat <<_LT_EOF 1>&2
9606
9607 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9608 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9609 *** is disabling shared libraries support.  We urge you to upgrade GNU
9610 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9611 *** your PATH or compiler configuration so that the native linker is
9612 *** used, and then restart.
9613
9614 _LT_EOF
9615         ;;
9616         *)
9617           # For security reasons, it is highly recommended that you always
9618           # use absolute paths for naming shared libraries, and exclude the
9619           # DT_RUNPATH tag from executables and libraries.  But doing so
9620           # requires that you compile everything twice, which is a pain.
9621           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9625           else
9626             ld_shlibs=no
9627           fi
9628         ;;
9629       esac
9630       ;;
9631
9632     sunos4*)
9633       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9634       wlarc=
9635       hardcode_direct=yes
9636       hardcode_shlibpath_var=no
9637       ;;
9638
9639     *)
9640       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9643       else
9644         ld_shlibs=no
9645       fi
9646       ;;
9647     esac
9648
9649     if test "$ld_shlibs" = no; then
9650       runpath_var=
9651       hardcode_libdir_flag_spec=
9652       export_dynamic_flag_spec=
9653       whole_archive_flag_spec=
9654     fi
9655   else
9656     # PORTME fill in a description of your system's linker (not GNU ld)
9657     case $host_os in
9658     aix3*)
9659       allow_undefined_flag=unsupported
9660       always_export_symbols=yes
9661       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'
9662       # Note: this linker hardcodes the directories in LIBPATH if there
9663       # are no directories specified by -L.
9664       hardcode_minus_L=yes
9665       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9666         # Neither direct hardcoding nor static linking is supported with a
9667         # broken collect2.
9668         hardcode_direct=unsupported
9669       fi
9670       ;;
9671
9672     aix[4-9]*)
9673       if test "$host_cpu" = ia64; then
9674         # On IA64, the linker does run time linking by default, so we don't
9675         # have to do anything special.
9676         aix_use_runtimelinking=no
9677         exp_sym_flag='-Bexport'
9678         no_entry_flag=""
9679       else
9680         # If we're using GNU nm, then we don't want the "-C" option.
9681         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9682         # Also, AIX nm treats weak defined symbols like other global
9683         # defined symbols, whereas GNU nm marks them as "W".
9684         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9685           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'
9686         else
9687           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9688         fi
9689         aix_use_runtimelinking=no
9690
9691         # Test if we are trying to use run time linking or normal
9692         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9693         # need to do runtime linking.
9694         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9695           for ld_flag in $LDFLAGS; do
9696           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9697             aix_use_runtimelinking=yes
9698             break
9699           fi
9700           done
9701           ;;
9702         esac
9703
9704         exp_sym_flag='-bexport'
9705         no_entry_flag='-bnoentry'
9706       fi
9707
9708       # When large executables or shared objects are built, AIX ld can
9709       # have problems creating the table of contents.  If linking a library
9710       # or program results in "error TOC overflow" add -mminimal-toc to
9711       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9712       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9713
9714       archive_cmds=''
9715       hardcode_direct=yes
9716       hardcode_direct_absolute=yes
9717       hardcode_libdir_separator=':'
9718       link_all_deplibs=yes
9719       file_list_spec='${wl}-f,'
9720
9721       if test "$GCC" = yes; then
9722         case $host_os in aix4.[012]|aix4.[012].*)
9723         # We only want to do this on AIX 4.2 and lower, the check
9724         # below for broken collect2 doesn't work under 4.3+
9725           collect2name=`${CC} -print-prog-name=collect2`
9726           if test -f "$collect2name" &&
9727            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9728           then
9729           # We have reworked collect2
9730           :
9731           else
9732           # We have old collect2
9733           hardcode_direct=unsupported
9734           # It fails to find uninstalled libraries when the uninstalled
9735           # path is not listed in the libpath.  Setting hardcode_minus_L
9736           # to unsupported forces relinking
9737           hardcode_minus_L=yes
9738           hardcode_libdir_flag_spec='-L$libdir'
9739           hardcode_libdir_separator=
9740           fi
9741           ;;
9742         esac
9743         shared_flag='-shared'
9744         if test "$aix_use_runtimelinking" = yes; then
9745           shared_flag="$shared_flag "'${wl}-G'
9746         fi
9747       else
9748         # not using gcc
9749         if test "$host_cpu" = ia64; then
9750         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9751         # chokes on -Wl,-G. The following line is correct:
9752           shared_flag='-G'
9753         else
9754           if test "$aix_use_runtimelinking" = yes; then
9755             shared_flag='${wl}-G'
9756           else
9757             shared_flag='${wl}-bM:SRE'
9758           fi
9759         fi
9760       fi
9761
9762       export_dynamic_flag_spec='${wl}-bexpall'
9763       # It seems that -bexpall does not export symbols beginning with
9764       # underscore (_), so it is better to generate a list of symbols to export.
9765       always_export_symbols=yes
9766       if test "$aix_use_runtimelinking" = yes; then
9767         # Warning - without using the other runtime loading flags (-brtl),
9768         # -berok will link without error, but may produce a broken library.
9769         allow_undefined_flag='-berok'
9770         # Determine the default libpath from the value encoded in an
9771         # empty executable.
9772         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h.  */
9774
9775 int
9776 main ()
9777 {
9778
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784
9785 lt_aix_libpath_sed='
9786     /Import File Strings/,/^$/ {
9787         /^0/ {
9788             s/^0  *\(.*\)$/\1/
9789             p
9790         }
9791     }'
9792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793 # Check for a 64-bit object if we didn't find anything.
9794 if test -z "$aix_libpath"; then
9795   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796 fi
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext \
9799     conftest$ac_exeext conftest.$ac_ext
9800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9801
9802         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9803         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"
9804       else
9805         if test "$host_cpu" = ia64; then
9806           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9807           allow_undefined_flag="-z nodefs"
9808           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"
9809         else
9810          # Determine the default libpath from the value encoded in an
9811          # empty executable.
9812          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h.  */
9814
9815 int
9816 main ()
9817 {
9818
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 if ac_fn_c_try_link "$LINENO"; then :
9824
9825 lt_aix_libpath_sed='
9826     /Import File Strings/,/^$/ {
9827         /^0/ {
9828             s/^0  *\(.*\)$/\1/
9829             p
9830         }
9831     }'
9832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9833 # Check for a 64-bit object if we didn't find anything.
9834 if test -z "$aix_libpath"; then
9835   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9836 fi
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext \
9839     conftest$ac_exeext conftest.$ac_ext
9840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9841
9842          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9843           # Warning - without using the other run time loading flags,
9844           # -berok will link without error, but may produce a broken library.
9845           no_undefined_flag=' ${wl}-bernotok'
9846           allow_undefined_flag=' ${wl}-berok'
9847           if test "$with_gnu_ld" = yes; then
9848             # We only use this code for GNU lds that support --whole-archive.
9849             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9850           else
9851             # Exported symbols can be pulled into shared objects from archives
9852             whole_archive_flag_spec='$convenience'
9853           fi
9854           archive_cmds_need_lc=yes
9855           # This is similar to how AIX traditionally builds its shared libraries.
9856           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'
9857         fi
9858       fi
9859       ;;
9860
9861     amigaos*)
9862       case $host_cpu in
9863       powerpc)
9864             # see comment about AmigaOS4 .so support
9865             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866             archive_expsym_cmds=''
9867         ;;
9868       m68k)
9869             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)'
9870             hardcode_libdir_flag_spec='-L$libdir'
9871             hardcode_minus_L=yes
9872         ;;
9873       esac
9874       ;;
9875
9876     bsdi[45]*)
9877       export_dynamic_flag_spec=-rdynamic
9878       ;;
9879
9880     cygwin* | mingw* | pw32* | cegcc*)
9881       # When not using gcc, we currently assume that we are using
9882       # Microsoft Visual C++.
9883       # hardcode_libdir_flag_spec is actually meaningless, as there is
9884       # no search path for DLLs.
9885       hardcode_libdir_flag_spec=' '
9886       allow_undefined_flag=unsupported
9887       # Tell ltmain to make .lib files, not .a files.
9888       libext=lib
9889       # Tell ltmain to make .dll files, not .so files.
9890       shrext_cmds=".dll"
9891       # FIXME: Setting linknames here is a bad hack.
9892       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9893       # The linker will automatically build a .lib file if we build a DLL.
9894       old_archive_from_new_cmds='true'
9895       # FIXME: Should let the user specify the lib program.
9896       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9897       fix_srcfile_path='`cygpath -w "$srcfile"`'
9898       enable_shared_with_static_runtimes=yes
9899       ;;
9900
9901     darwin* | rhapsody*)
9902
9903
9904   archive_cmds_need_lc=no
9905   hardcode_direct=no
9906   hardcode_automatic=yes
9907   hardcode_shlibpath_var=unsupported
9908   if test "$lt_cv_ld_force_load" = "yes"; then
9909     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\"`'
9910   else
9911     whole_archive_flag_spec=''
9912   fi
9913   link_all_deplibs=yes
9914   allow_undefined_flag="$_lt_dar_allow_undefined"
9915   case $cc_basename in
9916      ifort*) _lt_dar_can_shared=yes ;;
9917      *) _lt_dar_can_shared=$GCC ;;
9918   esac
9919   if test "$_lt_dar_can_shared" = "yes"; then
9920     output_verbose_link_cmd=func_echo_all
9921     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9922     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9923     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}"
9924     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}"
9925
9926   else
9927   ld_shlibs=no
9928   fi
9929
9930       ;;
9931
9932     dgux*)
9933       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934       hardcode_libdir_flag_spec='-L$libdir'
9935       hardcode_shlibpath_var=no
9936       ;;
9937
9938     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9939     # support.  Future versions do this automatically, but an explicit c++rt0.o
9940     # does not break anything, and helps significantly (at the cost of a little
9941     # extra space).
9942     freebsd2.2*)
9943       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9944       hardcode_libdir_flag_spec='-R$libdir'
9945       hardcode_direct=yes
9946       hardcode_shlibpath_var=no
9947       ;;
9948
9949     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9950     freebsd2.*)
9951       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9952       hardcode_direct=yes
9953       hardcode_minus_L=yes
9954       hardcode_shlibpath_var=no
9955       ;;
9956
9957     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9958     freebsd* | dragonfly*)
9959       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9960       hardcode_libdir_flag_spec='-R$libdir'
9961       hardcode_direct=yes
9962       hardcode_shlibpath_var=no
9963       ;;
9964
9965     hpux9*)
9966       if test "$GCC" = yes; then
9967         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'
9968       else
9969         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'
9970       fi
9971       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9972       hardcode_libdir_separator=:
9973       hardcode_direct=yes
9974
9975       # hardcode_minus_L: Not really in the search PATH,
9976       # but as the default location of the library.
9977       hardcode_minus_L=yes
9978       export_dynamic_flag_spec='${wl}-E'
9979       ;;
9980
9981     hpux10*)
9982       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9983         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9984       else
9985         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9986       fi
9987       if test "$with_gnu_ld" = no; then
9988         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9989         hardcode_libdir_flag_spec_ld='+b $libdir'
9990         hardcode_libdir_separator=:
9991         hardcode_direct=yes
9992         hardcode_direct_absolute=yes
9993         export_dynamic_flag_spec='${wl}-E'
9994         # hardcode_minus_L: Not really in the search PATH,
9995         # but as the default location of the library.
9996         hardcode_minus_L=yes
9997       fi
9998       ;;
9999
10000     hpux11*)
10001       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10002         case $host_cpu in
10003         hppa*64*)
10004           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10005           ;;
10006         ia64*)
10007           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10008           ;;
10009         *)
10010           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011           ;;
10012         esac
10013       else
10014         case $host_cpu in
10015         hppa*64*)
10016           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10017           ;;
10018         ia64*)
10019           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10020           ;;
10021         *)
10022
10023           # Older versions of the 11.00 compiler do not understand -b yet
10024           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10025           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10026 $as_echo_n "checking if $CC understands -b... " >&6; }
10027 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   lt_cv_prog_compiler__b=no
10031    save_LDFLAGS="$LDFLAGS"
10032    LDFLAGS="$LDFLAGS -b"
10033    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10034    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10035      # The linker can only warn and ignore the option if not recognized
10036      # So say no if there are warnings
10037      if test -s conftest.err; then
10038        # Append any errors to the config.log.
10039        cat conftest.err 1>&5
10040        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10041        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10042        if diff conftest.exp conftest.er2 >/dev/null; then
10043          lt_cv_prog_compiler__b=yes
10044        fi
10045      else
10046        lt_cv_prog_compiler__b=yes
10047      fi
10048    fi
10049    $RM -r conftest*
10050    LDFLAGS="$save_LDFLAGS"
10051
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10054 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10055
10056 if test x"$lt_cv_prog_compiler__b" = xyes; then
10057     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060 fi
10061
10062           ;;
10063         esac
10064       fi
10065       if test "$with_gnu_ld" = no; then
10066         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10067         hardcode_libdir_separator=:
10068
10069         case $host_cpu in
10070         hppa*64*|ia64*)
10071           hardcode_direct=no
10072           hardcode_shlibpath_var=no
10073           ;;
10074         *)
10075           hardcode_direct=yes
10076           hardcode_direct_absolute=yes
10077           export_dynamic_flag_spec='${wl}-E'
10078
10079           # hardcode_minus_L: Not really in the search PATH,
10080           # but as the default location of the library.
10081           hardcode_minus_L=yes
10082           ;;
10083         esac
10084       fi
10085       ;;
10086
10087     irix5* | irix6* | nonstopux*)
10088       if test "$GCC" = yes; then
10089         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'
10090         # Try to use the -exported_symbol ld option, if it does not
10091         # work, assume that -exports_file does not work either and
10092         # implicitly export all symbols.
10093         save_LDFLAGS="$LDFLAGS"
10094         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10095         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h.  */
10097 int foo(void) {}
10098 _ACEOF
10099 if ac_fn_c_try_link "$LINENO"; then :
10100   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'
10101
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext \
10104     conftest$ac_exeext conftest.$ac_ext
10105         LDFLAGS="$save_LDFLAGS"
10106       else
10107         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'
10108         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'
10109       fi
10110       archive_cmds_need_lc='no'
10111       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112       hardcode_libdir_separator=:
10113       inherit_rpath=yes
10114       link_all_deplibs=yes
10115       ;;
10116
10117     netbsd*)
10118       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10119         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10120       else
10121         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10122       fi
10123       hardcode_libdir_flag_spec='-R$libdir'
10124       hardcode_direct=yes
10125       hardcode_shlibpath_var=no
10126       ;;
10127
10128     newsos6)
10129       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130       hardcode_direct=yes
10131       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132       hardcode_libdir_separator=:
10133       hardcode_shlibpath_var=no
10134       ;;
10135
10136     *nto* | *qnx*)
10137       ;;
10138
10139     openbsd*)
10140       if test -f /usr/libexec/ld.so; then
10141         hardcode_direct=yes
10142         hardcode_shlibpath_var=no
10143         hardcode_direct_absolute=yes
10144         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10145           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10147           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148           export_dynamic_flag_spec='${wl}-E'
10149         else
10150           case $host_os in
10151            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10152              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10153              hardcode_libdir_flag_spec='-R$libdir'
10154              ;;
10155            *)
10156              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10158              ;;
10159           esac
10160         fi
10161       else
10162         ld_shlibs=no
10163       fi
10164       ;;
10165
10166     os2*)
10167       hardcode_libdir_flag_spec='-L$libdir'
10168       hardcode_minus_L=yes
10169       allow_undefined_flag=unsupported
10170       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'
10171       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10172       ;;
10173
10174     osf3*)
10175       if test "$GCC" = yes; then
10176         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10177         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'
10178       else
10179         allow_undefined_flag=' -expect_unresolved \*'
10180         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'
10181       fi
10182       archive_cmds_need_lc='no'
10183       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10184       hardcode_libdir_separator=:
10185       ;;
10186
10187     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10188       if test "$GCC" = yes; then
10189         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10190         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'
10191         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192       else
10193         allow_undefined_flag=' -expect_unresolved \*'
10194         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'
10195         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~
10196         $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'
10197
10198         # Both c and cxx compiler support -rpath directly
10199         hardcode_libdir_flag_spec='-rpath $libdir'
10200       fi
10201       archive_cmds_need_lc='no'
10202       hardcode_libdir_separator=:
10203       ;;
10204
10205     solaris*)
10206       no_undefined_flag=' -z defs'
10207       if test "$GCC" = yes; then
10208         wlarc='${wl}'
10209         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10210         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10211           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10212       else
10213         case `$CC -V 2>&1` in
10214         *"Compilers 5.0"*)
10215           wlarc=''
10216           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10218           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10219           ;;
10220         *)
10221           wlarc='${wl}'
10222           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10223           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10224           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10225           ;;
10226         esac
10227       fi
10228       hardcode_libdir_flag_spec='-R$libdir'
10229       hardcode_shlibpath_var=no
10230       case $host_os in
10231       solaris2.[0-5] | solaris2.[0-5].*) ;;
10232       *)
10233         # The compiler driver will combine and reorder linker options,
10234         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10235         # but is careful enough not to reorder.
10236         # Supported since Solaris 2.6 (maybe 2.5.1?)
10237         if test "$GCC" = yes; then
10238           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10239         else
10240           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10241         fi
10242         ;;
10243       esac
10244       link_all_deplibs=yes
10245       ;;
10246
10247     sunos4*)
10248       if test "x$host_vendor" = xsequent; then
10249         # Use $CC to link under sequent, because it throws in some extra .o
10250         # files that make .init and .fini sections work.
10251         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10252       else
10253         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10254       fi
10255       hardcode_libdir_flag_spec='-L$libdir'
10256       hardcode_direct=yes
10257       hardcode_minus_L=yes
10258       hardcode_shlibpath_var=no
10259       ;;
10260
10261     sysv4)
10262       case $host_vendor in
10263         sni)
10264           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265           hardcode_direct=yes # is this really true???
10266         ;;
10267         siemens)
10268           ## LD is ld it makes a PLAMLIB
10269           ## CC just makes a GrossModule.
10270           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10271           reload_cmds='$CC -r -o $output$reload_objs'
10272           hardcode_direct=no
10273         ;;
10274         motorola)
10275           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10277         ;;
10278       esac
10279       runpath_var='LD_RUN_PATH'
10280       hardcode_shlibpath_var=no
10281       ;;
10282
10283     sysv4.3*)
10284       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285       hardcode_shlibpath_var=no
10286       export_dynamic_flag_spec='-Bexport'
10287       ;;
10288
10289     sysv4*MP*)
10290       if test -d /usr/nec; then
10291         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292         hardcode_shlibpath_var=no
10293         runpath_var=LD_RUN_PATH
10294         hardcode_runpath_var=yes
10295         ld_shlibs=yes
10296       fi
10297       ;;
10298
10299     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10300       no_undefined_flag='${wl}-z,text'
10301       archive_cmds_need_lc=no
10302       hardcode_shlibpath_var=no
10303       runpath_var='LD_RUN_PATH'
10304
10305       if test "$GCC" = yes; then
10306         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308       else
10309         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311       fi
10312       ;;
10313
10314     sysv5* | sco3.2v5* | sco5v6*)
10315       # Note: We can NOT use -z defs as we might desire, because we do not
10316       # link with -lc, and that would cause any symbols used from libc to
10317       # always be unresolved, which means just about no library would
10318       # ever link correctly.  If we're not using GNU ld we use -z text
10319       # though, which does catch some bad symbols but isn't as heavy-handed
10320       # as -z defs.
10321       no_undefined_flag='${wl}-z,text'
10322       allow_undefined_flag='${wl}-z,nodefs'
10323       archive_cmds_need_lc=no
10324       hardcode_shlibpath_var=no
10325       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10326       hardcode_libdir_separator=':'
10327       link_all_deplibs=yes
10328       export_dynamic_flag_spec='${wl}-Bexport'
10329       runpath_var='LD_RUN_PATH'
10330
10331       if test "$GCC" = yes; then
10332         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334       else
10335         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337       fi
10338       ;;
10339
10340     uts4*)
10341       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342       hardcode_libdir_flag_spec='-L$libdir'
10343       hardcode_shlibpath_var=no
10344       ;;
10345
10346     *)
10347       ld_shlibs=no
10348       ;;
10349     esac
10350
10351     if test x$host_vendor = xsni; then
10352       case $host in
10353       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10354         export_dynamic_flag_spec='${wl}-Blargedynsym'
10355         ;;
10356       esac
10357     fi
10358   fi
10359
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10361 $as_echo "$ld_shlibs" >&6; }
10362 test "$ld_shlibs" = no && can_build_shared=no
10363
10364 with_gnu_ld=$with_gnu_ld
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380 #
10381 # Do we need to explicitly link libc?
10382 #
10383 case "x$archive_cmds_need_lc" in
10384 x|xyes)
10385   # Assume -lc should be added
10386   archive_cmds_need_lc=yes
10387
10388   if test "$enable_shared" = yes && test "$GCC" = yes; then
10389     case $archive_cmds in
10390     *'~'*)
10391       # FIXME: we may have to deal with multi-command sequences.
10392       ;;
10393     '$CC '*)
10394       # Test whether the compiler implicitly links with -lc since on some
10395       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10396       # to ld, don't add -lc before -lgcc.
10397       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10398 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10399 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402   $RM conftest*
10403         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10404
10405         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10406   (eval $ac_compile) 2>&5
10407   ac_status=$?
10408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10409   test $ac_status = 0; } 2>conftest.err; then
10410           soname=conftest
10411           lib=conftest
10412           libobjs=conftest.$ac_objext
10413           deplibs=
10414           wl=$lt_prog_compiler_wl
10415           pic_flag=$lt_prog_compiler_pic
10416           compiler_flags=-v
10417           linker_flags=-v
10418           verstring=
10419           output_objdir=.
10420           libname=conftest
10421           lt_save_allow_undefined_flag=$allow_undefined_flag
10422           allow_undefined_flag=
10423           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10424   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10425   ac_status=$?
10426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10427   test $ac_status = 0; }
10428           then
10429             lt_cv_archive_cmds_need_lc=no
10430           else
10431             lt_cv_archive_cmds_need_lc=yes
10432           fi
10433           allow_undefined_flag=$lt_save_allow_undefined_flag
10434         else
10435           cat conftest.err 1>&5
10436         fi
10437         $RM conftest*
10438
10439 fi
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10441 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10442       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10443       ;;
10444     esac
10445   fi
10446   ;;
10447 esac
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10606 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10607
10608 if test "$GCC" = yes; then
10609   case $host_os in
10610     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10611     *) lt_awk_arg="/^libraries:/" ;;
10612   esac
10613   case $host_os in
10614     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10615     *) lt_sed_strip_eq="s,=/,/,g" ;;
10616   esac
10617   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10618   case $lt_search_path_spec in
10619   *\;*)
10620     # if the path contains ";" then we assume it to be the separator
10621     # otherwise default to the standard path separator (i.e. ":") - it is
10622     # assumed that no part of a normal pathname contains ";" but that should
10623     # okay in the real world where ";" in dirpaths is itself problematic.
10624     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10625     ;;
10626   *)
10627     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10628     ;;
10629   esac
10630   # Ok, now we have the path, separated by spaces, we can step through it
10631   # and add multilib dir if necessary.
10632   lt_tmp_lt_search_path_spec=
10633   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10634   for lt_sys_path in $lt_search_path_spec; do
10635     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10636       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10637     else
10638       test -d "$lt_sys_path" && \
10639         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10640     fi
10641   done
10642   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10643 BEGIN {RS=" "; FS="/|\n";} {
10644   lt_foo="";
10645   lt_count=0;
10646   for (lt_i = NF; lt_i > 0; lt_i--) {
10647     if ($lt_i != "" && $lt_i != ".") {
10648       if ($lt_i == "..") {
10649         lt_count++;
10650       } else {
10651         if (lt_count == 0) {
10652           lt_foo="/" $lt_i lt_foo;
10653         } else {
10654           lt_count--;
10655         }
10656       }
10657     }
10658   }
10659   if (lt_foo != "") { lt_freq[lt_foo]++; }
10660   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10661 }'`
10662   # AWK program above erroneously prepends '/' to C:/dos/paths
10663   # for these hosts.
10664   case $host_os in
10665     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10666       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10667   esac
10668   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10669 else
10670   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10671 fi
10672 library_names_spec=
10673 libname_spec='lib$name'
10674 soname_spec=
10675 shrext_cmds=".so"
10676 postinstall_cmds=
10677 postuninstall_cmds=
10678 finish_cmds=
10679 finish_eval=
10680 shlibpath_var=
10681 shlibpath_overrides_runpath=unknown
10682 version_type=none
10683 dynamic_linker="$host_os ld.so"
10684 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10685 need_lib_prefix=unknown
10686 hardcode_into_libs=no
10687
10688 # when you set need_version to no, make sure it does not cause -set_version
10689 # flags to be left without arguments
10690 need_version=unknown
10691
10692 case $host_os in
10693 aix3*)
10694   version_type=linux
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10696   shlibpath_var=LIBPATH
10697
10698   # AIX 3 has no versioning support, so we append a major version to the name.
10699   soname_spec='${libname}${release}${shared_ext}$major'
10700   ;;
10701
10702 aix[4-9]*)
10703   version_type=linux
10704   need_lib_prefix=no
10705   need_version=no
10706   hardcode_into_libs=yes
10707   if test "$host_cpu" = ia64; then
10708     # AIX 5 supports IA64
10709     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10710     shlibpath_var=LD_LIBRARY_PATH
10711   else
10712     # With GCC up to 2.95.x, collect2 would create an import file
10713     # for dependence libraries.  The import file would start with
10714     # the line `#! .'.  This would cause the generated library to
10715     # depend on `.', always an invalid library.  This was fixed in
10716     # development snapshots of GCC prior to 3.0.
10717     case $host_os in
10718       aix4 | aix4.[01] | aix4.[01].*)
10719       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10720            echo ' yes '
10721            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10722         :
10723       else
10724         can_build_shared=no
10725       fi
10726       ;;
10727     esac
10728     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10729     # soname into executable. Probably we can add versioning support to
10730     # collect2, so additional links can be useful in future.
10731     if test "$aix_use_runtimelinking" = yes; then
10732       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10733       # instead of lib<name>.a to let people know that these are not
10734       # typical AIX shared libraries.
10735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736     else
10737       # We preserve .a as extension for shared libraries through AIX4.2
10738       # and later when we are not doing run time linking.
10739       library_names_spec='${libname}${release}.a $libname.a'
10740       soname_spec='${libname}${release}${shared_ext}$major'
10741     fi
10742     shlibpath_var=LIBPATH
10743   fi
10744   ;;
10745
10746 amigaos*)
10747   case $host_cpu in
10748   powerpc)
10749     # Since July 2007 AmigaOS4 officially supports .so libraries.
10750     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10751     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752     ;;
10753   m68k)
10754     library_names_spec='$libname.ixlibrary $libname.a'
10755     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10756     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'
10757     ;;
10758   esac
10759   ;;
10760
10761 beos*)
10762   library_names_spec='${libname}${shared_ext}'
10763   dynamic_linker="$host_os ld.so"
10764   shlibpath_var=LIBRARY_PATH
10765   ;;
10766
10767 bsdi[45]*)
10768   version_type=linux
10769   need_version=no
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10773   shlibpath_var=LD_LIBRARY_PATH
10774   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10775   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10776   # the default ld.so.conf also contains /usr/contrib/lib and
10777   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10778   # libtool to hard-code these into programs
10779   ;;
10780
10781 cygwin* | mingw* | pw32* | cegcc*)
10782   version_type=windows
10783   shrext_cmds=".dll"
10784   need_version=no
10785   need_lib_prefix=no
10786
10787   case $GCC,$host_os in
10788   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10789     library_names_spec='$libname.dll.a'
10790     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10791     postinstall_cmds='base_file=`basename \${file}`~
10792       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10793       dldir=$destdir/`dirname \$dlpath`~
10794       test -d \$dldir || mkdir -p \$dldir~
10795       $install_prog $dir/$dlname \$dldir/$dlname~
10796       chmod a+x \$dldir/$dlname~
10797       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10798         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10799       fi'
10800     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10801       dlpath=$dir/\$dldll~
10802        $RM \$dlpath'
10803     shlibpath_overrides_runpath=yes
10804
10805     case $host_os in
10806     cygwin*)
10807       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10808       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10809
10810       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10811       ;;
10812     mingw* | cegcc*)
10813       # MinGW DLLs use traditional 'lib' prefix
10814       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10815       ;;
10816     pw32*)
10817       # pw32 DLLs use 'pw' prefix rather than 'lib'
10818       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10819       ;;
10820     esac
10821     ;;
10822
10823   *)
10824     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10825     ;;
10826   esac
10827   dynamic_linker='Win32 ld.exe'
10828   # FIXME: first we should search . and the directory the executable is in
10829   shlibpath_var=PATH
10830   ;;
10831
10832 darwin* | rhapsody*)
10833   dynamic_linker="$host_os dyld"
10834   version_type=darwin
10835   need_lib_prefix=no
10836   need_version=no
10837   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10838   soname_spec='${libname}${release}${major}$shared_ext'
10839   shlibpath_overrides_runpath=yes
10840   shlibpath_var=DYLD_LIBRARY_PATH
10841   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10842
10843   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10844   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10845   ;;
10846
10847 dgux*)
10848   version_type=linux
10849   need_lib_prefix=no
10850   need_version=no
10851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10852   soname_spec='${libname}${release}${shared_ext}$major'
10853   shlibpath_var=LD_LIBRARY_PATH
10854   ;;
10855
10856 freebsd* | dragonfly*)
10857   # DragonFly does not have aout.  When/if they implement a new
10858   # versioning mechanism, adjust this.
10859   if test -x /usr/bin/objformat; then
10860     objformat=`/usr/bin/objformat`
10861   else
10862     case $host_os in
10863     freebsd[23].*) objformat=aout ;;
10864     *) objformat=elf ;;
10865     esac
10866   fi
10867   version_type=freebsd-$objformat
10868   case $version_type in
10869     freebsd-elf*)
10870       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10871       need_version=no
10872       need_lib_prefix=no
10873       ;;
10874     freebsd-*)
10875       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10876       need_version=yes
10877       ;;
10878   esac
10879   shlibpath_var=LD_LIBRARY_PATH
10880   case $host_os in
10881   freebsd2.*)
10882     shlibpath_overrides_runpath=yes
10883     ;;
10884   freebsd3.[01]* | freebsdelf3.[01]*)
10885     shlibpath_overrides_runpath=yes
10886     hardcode_into_libs=yes
10887     ;;
10888   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10889   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10890     shlibpath_overrides_runpath=no
10891     hardcode_into_libs=yes
10892     ;;
10893   *) # from 4.6 on, and DragonFly
10894     shlibpath_overrides_runpath=yes
10895     hardcode_into_libs=yes
10896     ;;
10897   esac
10898   ;;
10899
10900 gnu*)
10901   version_type=linux
10902   need_lib_prefix=no
10903   need_version=no
10904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10905   soname_spec='${libname}${release}${shared_ext}$major'
10906   shlibpath_var=LD_LIBRARY_PATH
10907   hardcode_into_libs=yes
10908   ;;
10909
10910 haiku*)
10911   version_type=linux
10912   need_lib_prefix=no
10913   need_version=no
10914   dynamic_linker="$host_os runtime_loader"
10915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10916   soname_spec='${libname}${release}${shared_ext}$major'
10917   shlibpath_var=LIBRARY_PATH
10918   shlibpath_overrides_runpath=yes
10919   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10920   hardcode_into_libs=yes
10921   ;;
10922
10923 hpux9* | hpux10* | hpux11*)
10924   # Give a soname corresponding to the major version so that dld.sl refuses to
10925   # link against other versions.
10926   version_type=sunos
10927   need_lib_prefix=no
10928   need_version=no
10929   case $host_cpu in
10930   ia64*)
10931     shrext_cmds='.so'
10932     hardcode_into_libs=yes
10933     dynamic_linker="$host_os dld.so"
10934     shlibpath_var=LD_LIBRARY_PATH
10935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937     soname_spec='${libname}${release}${shared_ext}$major'
10938     if test "X$HPUX_IA64_MODE" = X32; then
10939       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10940     else
10941       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10942     fi
10943     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10944     ;;
10945   hppa*64*)
10946     shrext_cmds='.sl'
10947     hardcode_into_libs=yes
10948     dynamic_linker="$host_os dld.sl"
10949     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955     ;;
10956   *)
10957     shrext_cmds='.sl'
10958     dynamic_linker="$host_os dld.sl"
10959     shlibpath_var=SHLIB_PATH
10960     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962     soname_spec='${libname}${release}${shared_ext}$major'
10963     ;;
10964   esac
10965   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10966   postinstall_cmds='chmod 555 $lib'
10967   # or fails outright, so override atomically:
10968   install_override_mode=555
10969   ;;
10970
10971 interix[3-9]*)
10972   version_type=linux
10973   need_lib_prefix=no
10974   need_version=no
10975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10976   soname_spec='${libname}${release}${shared_ext}$major'
10977   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   shlibpath_overrides_runpath=no
10980   hardcode_into_libs=yes
10981   ;;
10982
10983 irix5* | irix6* | nonstopux*)
10984   case $host_os in
10985     nonstopux*) version_type=nonstopux ;;
10986     *)
10987         if test "$lt_cv_prog_gnu_ld" = yes; then
10988                 version_type=linux
10989         else
10990                 version_type=irix
10991         fi ;;
10992   esac
10993   need_lib_prefix=no
10994   need_version=no
10995   soname_spec='${libname}${release}${shared_ext}$major'
10996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10997   case $host_os in
10998   irix5* | nonstopux*)
10999     libsuff= shlibsuff=
11000     ;;
11001   *)
11002     case $LD in # libtool.m4 will add one of these switches to LD
11003     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11004       libsuff= shlibsuff= libmagic=32-bit;;
11005     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11006       libsuff=32 shlibsuff=N32 libmagic=N32;;
11007     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11008       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11009     *) libsuff= shlibsuff= libmagic=never-match;;
11010     esac
11011     ;;
11012   esac
11013   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11014   shlibpath_overrides_runpath=no
11015   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11016   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11017   hardcode_into_libs=yes
11018   ;;
11019
11020 # No shared lib support for Linux oldld, aout, or coff.
11021 linux*oldld* | linux*aout* | linux*coff*)
11022   dynamic_linker=no
11023   ;;
11024
11025 # This must be Linux ELF.
11026 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11027   version_type=linux
11028   need_lib_prefix=no
11029   need_version=no
11030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031   soname_spec='${libname}${release}${shared_ext}$major'
11032   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11033   shlibpath_var=LD_LIBRARY_PATH
11034   shlibpath_overrides_runpath=no
11035
11036   # Some binutils ld are patched to set DT_RUNPATH
11037   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11038   $as_echo_n "(cached) " >&6
11039 else
11040   lt_cv_shlibpath_overrides_runpath=no
11041     save_LDFLAGS=$LDFLAGS
11042     save_libdir=$libdir
11043     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11044          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h.  */
11047
11048 int
11049 main ()
11050 {
11051
11052   ;
11053   return 0;
11054 }
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"; then :
11057   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11058   lt_cv_shlibpath_overrides_runpath=yes
11059 fi
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext \
11062     conftest$ac_exeext conftest.$ac_ext
11063     LDFLAGS=$save_LDFLAGS
11064     libdir=$save_libdir
11065
11066 fi
11067
11068   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11069
11070   # This implies no fast_install, which is unacceptable.
11071   # Some rework will be needed to allow for fast_install
11072   # before this can be enabled.
11073   hardcode_into_libs=yes
11074
11075   # Append ld.so.conf contents to the search path
11076   if test -f /etc/ld.so.conf; then
11077     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' ' '`
11078     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11079   fi
11080
11081   # We used to test for /lib/ld.so.1 and disable shared libraries on
11082   # powerpc, because MkLinux only supported shared libraries with the
11083   # GNU dynamic linker.  Since this was broken with cross compilers,
11084   # most powerpc-linux boxes support dynamic linking these days and
11085   # people can always --disable-shared, the test was removed, and we
11086   # assume the GNU/Linux dynamic linker is in use.
11087   dynamic_linker='GNU/Linux ld.so'
11088   ;;
11089
11090 netbsd*)
11091   version_type=sunos
11092   need_lib_prefix=no
11093   need_version=no
11094   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097     dynamic_linker='NetBSD (a.out) ld.so'
11098   else
11099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100     soname_spec='${libname}${release}${shared_ext}$major'
11101     dynamic_linker='NetBSD ld.elf_so'
11102   fi
11103   shlibpath_var=LD_LIBRARY_PATH
11104   shlibpath_overrides_runpath=yes
11105   hardcode_into_libs=yes
11106   ;;
11107
11108 newsos6)
11109   version_type=linux
11110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111   shlibpath_var=LD_LIBRARY_PATH
11112   shlibpath_overrides_runpath=yes
11113   ;;
11114
11115 *nto* | *qnx*)
11116   version_type=qnx
11117   need_lib_prefix=no
11118   need_version=no
11119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120   soname_spec='${libname}${release}${shared_ext}$major'
11121   shlibpath_var=LD_LIBRARY_PATH
11122   shlibpath_overrides_runpath=no
11123   hardcode_into_libs=yes
11124   dynamic_linker='ldqnx.so'
11125   ;;
11126
11127 openbsd*)
11128   version_type=sunos
11129   sys_lib_dlsearch_path_spec="/usr/lib"
11130   need_lib_prefix=no
11131   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11132   case $host_os in
11133     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11134     *)                          need_version=no  ;;
11135   esac
11136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11137   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11138   shlibpath_var=LD_LIBRARY_PATH
11139   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11140     case $host_os in
11141       openbsd2.[89] | openbsd2.[89].*)
11142         shlibpath_overrides_runpath=no
11143         ;;
11144       *)
11145         shlibpath_overrides_runpath=yes
11146         ;;
11147       esac
11148   else
11149     shlibpath_overrides_runpath=yes
11150   fi
11151   ;;
11152
11153 os2*)
11154   libname_spec='$name'
11155   shrext_cmds=".dll"
11156   need_lib_prefix=no
11157   library_names_spec='$libname${shared_ext} $libname.a'
11158   dynamic_linker='OS/2 ld.exe'
11159   shlibpath_var=LIBPATH
11160   ;;
11161
11162 osf3* | osf4* | osf5*)
11163   version_type=osf
11164   need_lib_prefix=no
11165   need_version=no
11166   soname_spec='${libname}${release}${shared_ext}$major'
11167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168   shlibpath_var=LD_LIBRARY_PATH
11169   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11170   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11171   ;;
11172
11173 rdos*)
11174   dynamic_linker=no
11175   ;;
11176
11177 solaris*)
11178   version_type=linux
11179   need_lib_prefix=no
11180   need_version=no
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   shlibpath_overrides_runpath=yes
11185   hardcode_into_libs=yes
11186   # ldd complains unless libraries are executable
11187   postinstall_cmds='chmod +x $lib'
11188   ;;
11189
11190 sunos4*)
11191   version_type=sunos
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11194   shlibpath_var=LD_LIBRARY_PATH
11195   shlibpath_overrides_runpath=yes
11196   if test "$with_gnu_ld" = yes; then
11197     need_lib_prefix=no
11198   fi
11199   need_version=yes
11200   ;;
11201
11202 sysv4 | sysv4.3*)
11203   version_type=linux
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   soname_spec='${libname}${release}${shared_ext}$major'
11206   shlibpath_var=LD_LIBRARY_PATH
11207   case $host_vendor in
11208     sni)
11209       shlibpath_overrides_runpath=no
11210       need_lib_prefix=no
11211       runpath_var=LD_RUN_PATH
11212       ;;
11213     siemens)
11214       need_lib_prefix=no
11215       ;;
11216     motorola)
11217       need_lib_prefix=no
11218       need_version=no
11219       shlibpath_overrides_runpath=no
11220       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11221       ;;
11222   esac
11223   ;;
11224
11225 sysv4*MP*)
11226   if test -d /usr/nec ;then
11227     version_type=linux
11228     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11229     soname_spec='$libname${shared_ext}.$major'
11230     shlibpath_var=LD_LIBRARY_PATH
11231   fi
11232   ;;
11233
11234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235   version_type=freebsd-elf
11236   need_lib_prefix=no
11237   need_version=no
11238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11239   soname_spec='${libname}${release}${shared_ext}$major'
11240   shlibpath_var=LD_LIBRARY_PATH
11241   shlibpath_overrides_runpath=yes
11242   hardcode_into_libs=yes
11243   if test "$with_gnu_ld" = yes; then
11244     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11245   else
11246     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11247     case $host_os in
11248       sco3.2v5*)
11249         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11250         ;;
11251     esac
11252   fi
11253   sys_lib_dlsearch_path_spec='/usr/lib'
11254   ;;
11255
11256 tpf*)
11257   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11258   version_type=linux
11259   need_lib_prefix=no
11260   need_version=no
11261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262   shlibpath_var=LD_LIBRARY_PATH
11263   shlibpath_overrides_runpath=no
11264   hardcode_into_libs=yes
11265   ;;
11266
11267 uts4*)
11268   version_type=linux
11269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270   soname_spec='${libname}${release}${shared_ext}$major'
11271   shlibpath_var=LD_LIBRARY_PATH
11272   ;;
11273
11274 *)
11275   dynamic_linker=no
11276   ;;
11277 esac
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11279 $as_echo "$dynamic_linker" >&6; }
11280 test "$dynamic_linker" = no && can_build_shared=no
11281
11282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11283 if test "$GCC" = yes; then
11284   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11285 fi
11286
11287 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11288   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11289 fi
11290 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11291   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11292 fi
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11387 hardcode_action=
11388 if test -n "$hardcode_libdir_flag_spec" ||
11389    test -n "$runpath_var" ||
11390    test "X$hardcode_automatic" = "Xyes" ; then
11391
11392   # We can hardcode non-existent directories.
11393   if test "$hardcode_direct" != no &&
11394      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11395      # have to relink, otherwise we might link with an installed library
11396      # when we should be linking with a yet-to-be-installed one
11397      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11398      test "$hardcode_minus_L" != no; then
11399     # Linking always hardcodes the temporary library directory.
11400     hardcode_action=relink
11401   else
11402     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11403     hardcode_action=immediate
11404   fi
11405 else
11406   # We cannot hardcode anything, or else we can only hardcode existing
11407   # directories.
11408   hardcode_action=unsupported
11409 fi
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11411 $as_echo "$hardcode_action" >&6; }
11412
11413 if test "$hardcode_action" = relink ||
11414    test "$inherit_rpath" = yes; then
11415   # Fast installation is not supported
11416   enable_fast_install=no
11417 elif test "$shlibpath_overrides_runpath" = yes ||
11418      test "$enable_shared" = no; then
11419   # Fast installation is not necessary
11420   enable_fast_install=needless
11421 fi
11422
11423
11424
11425
11426
11427
11428   if test "x$enable_dlopen" != xyes; then
11429   enable_dlopen=unknown
11430   enable_dlopen_self=unknown
11431   enable_dlopen_self_static=unknown
11432 else
11433   lt_cv_dlopen=no
11434   lt_cv_dlopen_libs=
11435
11436   case $host_os in
11437   beos*)
11438     lt_cv_dlopen="load_add_on"
11439     lt_cv_dlopen_libs=
11440     lt_cv_dlopen_self=yes
11441     ;;
11442
11443   mingw* | pw32* | cegcc*)
11444     lt_cv_dlopen="LoadLibrary"
11445     lt_cv_dlopen_libs=
11446     ;;
11447
11448   cygwin*)
11449     lt_cv_dlopen="dlopen"
11450     lt_cv_dlopen_libs=
11451     ;;
11452
11453   darwin*)
11454   # if libdl is installed we need to link against it
11455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11456 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11458   $as_echo_n "(cached) " >&6
11459 else
11460   ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-ldl  $LIBS"
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h.  */
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466    Use char because int might match the return type of a GCC
11467    builtin and then its argument prototype would still apply.  */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char dlopen ();
11472 int
11473 main ()
11474 {
11475 return dlopen ();
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481   ac_cv_lib_dl_dlopen=yes
11482 else
11483   ac_cv_lib_dl_dlopen=no
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486     conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11488 fi
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11490 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11491 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11492   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11493 else
11494
11495     lt_cv_dlopen="dyld"
11496     lt_cv_dlopen_libs=
11497     lt_cv_dlopen_self=yes
11498
11499 fi
11500
11501     ;;
11502
11503   *)
11504     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11505 if test "x$ac_cv_func_shl_load" = x""yes; then :
11506   lt_cv_dlopen="shl_load"
11507 else
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11509 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11510 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11511   $as_echo_n "(cached) " >&6
11512 else
11513   ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ldld  $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h.  */
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519    Use char because int might match the return type of a GCC
11520    builtin and then its argument prototype would still apply.  */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char shl_load ();
11525 int
11526 main ()
11527 {
11528 return shl_load ();
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534   ac_cv_lib_dld_shl_load=yes
11535 else
11536   ac_cv_lib_dld_shl_load=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539     conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11543 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11544 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11545   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11546 else
11547   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11548 if test "x$ac_cv_func_dlopen" = x""yes; then :
11549   lt_cv_dlopen="dlopen"
11550 else
11551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11554   $as_echo_n "(cached) " >&6
11555 else
11556   ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-ldl  $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h.  */
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562    Use char because int might match the return type of a GCC
11563    builtin and then its argument prototype would still apply.  */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dlopen ();
11568 int
11569 main ()
11570 {
11571 return dlopen ();
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577   ac_cv_lib_dl_dlopen=yes
11578 else
11579   ac_cv_lib_dl_dlopen=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582     conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11588   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11589 else
11590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11591 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11592 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11593   $as_echo_n "(cached) " >&6
11594 else
11595   ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lsvld  $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h.  */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601    Use char because int might match the return type of a GCC
11602    builtin and then its argument prototype would still apply.  */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char dlopen ();
11607 int
11608 main ()
11609 {
11610 return dlopen ();
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616   ac_cv_lib_svld_dlopen=yes
11617 else
11618   ac_cv_lib_svld_dlopen=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621     conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11625 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11626 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11628 else
11629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11630 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11631 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11632   $as_echo_n "(cached) " >&6
11633 else
11634   ac_check_lib_save_LIBS=$LIBS
11635 LIBS="-ldld  $LIBS"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h.  */
11638
11639 /* Override any GCC internal prototype to avoid an error.
11640    Use char because int might match the return type of a GCC
11641    builtin and then its argument prototype would still apply.  */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 char dld_link ();
11646 int
11647 main ()
11648 {
11649 return dld_link ();
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655   ac_cv_lib_dld_dld_link=yes
11656 else
11657   ac_cv_lib_dld_dld_link=no
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext \
11660     conftest$ac_exeext conftest.$ac_ext
11661 LIBS=$ac_check_lib_save_LIBS
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11664 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11665 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11666   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11667 fi
11668
11669
11670 fi
11671
11672
11673 fi
11674
11675
11676 fi
11677
11678
11679 fi
11680
11681
11682 fi
11683
11684     ;;
11685   esac
11686
11687   if test "x$lt_cv_dlopen" != xno; then
11688     enable_dlopen=yes
11689   else
11690     enable_dlopen=no
11691   fi
11692
11693   case $lt_cv_dlopen in
11694   dlopen)
11695     save_CPPFLAGS="$CPPFLAGS"
11696     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11697
11698     save_LDFLAGS="$LDFLAGS"
11699     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11700
11701     save_LIBS="$LIBS"
11702     LIBS="$lt_cv_dlopen_libs $LIBS"
11703
11704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11705 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11706 if test "${lt_cv_dlopen_self+set}" = set; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709           if test "$cross_compiling" = yes; then :
11710   lt_cv_dlopen_self=cross
11711 else
11712   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11713   lt_status=$lt_dlunknown
11714   cat > conftest.$ac_ext <<_LT_EOF
11715 #line 11715 "configure"
11716 #include "confdefs.h"
11717
11718 #if HAVE_DLFCN_H
11719 #include <dlfcn.h>
11720 #endif
11721
11722 #include <stdio.h>
11723
11724 #ifdef RTLD_GLOBAL
11725 #  define LT_DLGLOBAL           RTLD_GLOBAL
11726 #else
11727 #  ifdef DL_GLOBAL
11728 #    define LT_DLGLOBAL         DL_GLOBAL
11729 #  else
11730 #    define LT_DLGLOBAL         0
11731 #  endif
11732 #endif
11733
11734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11735    find out it does not work in some platform. */
11736 #ifndef LT_DLLAZY_OR_NOW
11737 #  ifdef RTLD_LAZY
11738 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11739 #  else
11740 #    ifdef DL_LAZY
11741 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11742 #    else
11743 #      ifdef RTLD_NOW
11744 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11745 #      else
11746 #        ifdef DL_NOW
11747 #          define LT_DLLAZY_OR_NOW      DL_NOW
11748 #        else
11749 #          define LT_DLLAZY_OR_NOW      0
11750 #        endif
11751 #      endif
11752 #    endif
11753 #  endif
11754 #endif
11755
11756 /* When -fvisbility=hidden is used, assume the code has been annotated
11757    correspondingly for the symbols needed.  */
11758 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11759 void fnord () __attribute__((visibility("default")));
11760 #endif
11761
11762 void fnord () { int i=42; }
11763 int main ()
11764 {
11765   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11766   int status = $lt_dlunknown;
11767
11768   if (self)
11769     {
11770       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11771       else
11772         {
11773           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11774           else puts (dlerror ());
11775         }
11776       /* dlclose (self); */
11777     }
11778   else
11779     puts (dlerror ());
11780
11781   return status;
11782 }
11783 _LT_EOF
11784   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11785   (eval $ac_link) 2>&5
11786   ac_status=$?
11787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11789     (./conftest; exit; ) >&5 2>/dev/null
11790     lt_status=$?
11791     case x$lt_status in
11792       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11793       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11794       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11795     esac
11796   else :
11797     # compilation failed
11798     lt_cv_dlopen_self=no
11799   fi
11800 fi
11801 rm -fr conftest*
11802
11803
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11806 $as_echo "$lt_cv_dlopen_self" >&6; }
11807
11808     if test "x$lt_cv_dlopen_self" = xyes; then
11809       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11810       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11811 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11812 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815           if test "$cross_compiling" = yes; then :
11816   lt_cv_dlopen_self_static=cross
11817 else
11818   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11819   lt_status=$lt_dlunknown
11820   cat > conftest.$ac_ext <<_LT_EOF
11821 #line 11821 "configure"
11822 #include "confdefs.h"
11823
11824 #if HAVE_DLFCN_H
11825 #include <dlfcn.h>
11826 #endif
11827
11828 #include <stdio.h>
11829
11830 #ifdef RTLD_GLOBAL
11831 #  define LT_DLGLOBAL           RTLD_GLOBAL
11832 #else
11833 #  ifdef DL_GLOBAL
11834 #    define LT_DLGLOBAL         DL_GLOBAL
11835 #  else
11836 #    define LT_DLGLOBAL         0
11837 #  endif
11838 #endif
11839
11840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11841    find out it does not work in some platform. */
11842 #ifndef LT_DLLAZY_OR_NOW
11843 #  ifdef RTLD_LAZY
11844 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11845 #  else
11846 #    ifdef DL_LAZY
11847 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11848 #    else
11849 #      ifdef RTLD_NOW
11850 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11851 #      else
11852 #        ifdef DL_NOW
11853 #          define LT_DLLAZY_OR_NOW      DL_NOW
11854 #        else
11855 #          define LT_DLLAZY_OR_NOW      0
11856 #        endif
11857 #      endif
11858 #    endif
11859 #  endif
11860 #endif
11861
11862 /* When -fvisbility=hidden is used, assume the code has been annotated
11863    correspondingly for the symbols needed.  */
11864 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11865 void fnord () __attribute__((visibility("default")));
11866 #endif
11867
11868 void fnord () { int i=42; }
11869 int main ()
11870 {
11871   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11872   int status = $lt_dlunknown;
11873
11874   if (self)
11875     {
11876       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11877       else
11878         {
11879           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11880           else puts (dlerror ());
11881         }
11882       /* dlclose (self); */
11883     }
11884   else
11885     puts (dlerror ());
11886
11887   return status;
11888 }
11889 _LT_EOF
11890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891   (eval $ac_link) 2>&5
11892   ac_status=$?
11893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11895     (./conftest; exit; ) >&5 2>/dev/null
11896     lt_status=$?
11897     case x$lt_status in
11898       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11899       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11900       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11901     esac
11902   else :
11903     # compilation failed
11904     lt_cv_dlopen_self_static=no
11905   fi
11906 fi
11907 rm -fr conftest*
11908
11909
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11912 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11913     fi
11914
11915     CPPFLAGS="$save_CPPFLAGS"
11916     LDFLAGS="$save_LDFLAGS"
11917     LIBS="$save_LIBS"
11918     ;;
11919   esac
11920
11921   case $lt_cv_dlopen_self in
11922   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11923   *) enable_dlopen_self=unknown ;;
11924   esac
11925
11926   case $lt_cv_dlopen_self_static in
11927   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11928   *) enable_dlopen_self_static=unknown ;;
11929   esac
11930 fi
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948 striplib=
11949 old_striplib=
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11951 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11952 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11953   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11954   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11956 $as_echo "yes" >&6; }
11957 else
11958 # FIXME - insert some real tests, host_os isn't really good enough
11959   case $host_os in
11960   darwin*)
11961     if test -n "$STRIP" ; then
11962       striplib="$STRIP -x"
11963       old_striplib="$STRIP -S"
11964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11966     else
11967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969     fi
11970     ;;
11971   *)
11972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974     ;;
11975   esac
11976 fi
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989   # Report which library types will actually be built
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11991 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11993 $as_echo "$can_build_shared" >&6; }
11994
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11996 $as_echo_n "checking whether to build shared libraries... " >&6; }
11997   test "$can_build_shared" = "no" && enable_shared=no
11998
11999   # On AIX, shared libraries and static libraries use the same namespace, and
12000   # are all built from PIC.
12001   case $host_os in
12002   aix3*)
12003     test "$enable_shared" = yes && enable_static=no
12004     if test -n "$RANLIB"; then
12005       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12006       postinstall_cmds='$RANLIB $lib'
12007     fi
12008     ;;
12009
12010   aix[4-9]*)
12011     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12012       test "$enable_shared" = yes && enable_static=no
12013     fi
12014     ;;
12015   esac
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12017 $as_echo "$enable_shared" >&6; }
12018
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12020 $as_echo_n "checking whether to build static libraries... " >&6; }
12021   # Make sure either enable_shared or enable_static is yes.
12022   test "$enable_shared" = yes || enable_static=yes
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12024 $as_echo "$enable_static" >&6; }
12025
12026
12027
12028
12029 fi
12030 ac_ext=c
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035
12036 CC="$lt_save_CC"
12037
12038       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12039     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12040     (test "X$CXX" != "Xg++"))) ; then
12041   ac_ext=cpp
12042 ac_cpp='$CXXCPP $CPPFLAGS'
12043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12047 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12048 if test -z "$CXXCPP"; then
12049   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052       # Double quotes because CXXCPP needs to be expanded
12053     for CXXCPP in "$CXX -E" "/lib/cpp"
12054     do
12055       ac_preproc_ok=false
12056 for ac_cxx_preproc_warn_flag in '' yes
12057 do
12058   # Use a header file that comes with gcc, so configuring glibc
12059   # with a fresh cross-compiler works.
12060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061   # <limits.h> exists even on freestanding compilers.
12062   # On the NeXT, cc -E runs the code through the compiler's parser,
12063   # not just through cpp. "Syntax error" is here to catch this case.
12064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h.  */
12066 #ifdef __STDC__
12067 # include <limits.h>
12068 #else
12069 # include <assert.h>
12070 #endif
12071                      Syntax error
12072 _ACEOF
12073 if ac_fn_cxx_try_cpp "$LINENO"; then :
12074
12075 else
12076   # Broken: fails on valid input.
12077 continue
12078 fi
12079 rm -f conftest.err conftest.$ac_ext
12080
12081   # OK, works on sane cases.  Now check whether nonexistent headers
12082   # can be detected and how.
12083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h.  */
12085 #include <ac_nonexistent.h>
12086 _ACEOF
12087 if ac_fn_cxx_try_cpp "$LINENO"; then :
12088   # Broken: success on invalid input.
12089 continue
12090 else
12091   # Passes both tests.
12092 ac_preproc_ok=:
12093 break
12094 fi
12095 rm -f conftest.err conftest.$ac_ext
12096
12097 done
12098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12099 rm -f conftest.err conftest.$ac_ext
12100 if $ac_preproc_ok; then :
12101   break
12102 fi
12103
12104     done
12105     ac_cv_prog_CXXCPP=$CXXCPP
12106
12107 fi
12108   CXXCPP=$ac_cv_prog_CXXCPP
12109 else
12110   ac_cv_prog_CXXCPP=$CXXCPP
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12113 $as_echo "$CXXCPP" >&6; }
12114 ac_preproc_ok=false
12115 for ac_cxx_preproc_warn_flag in '' yes
12116 do
12117   # Use a header file that comes with gcc, so configuring glibc
12118   # with a fresh cross-compiler works.
12119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120   # <limits.h> exists even on freestanding compilers.
12121   # On the NeXT, cc -E runs the code through the compiler's parser,
12122   # not just through cpp. "Syntax error" is here to catch this case.
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125 #ifdef __STDC__
12126 # include <limits.h>
12127 #else
12128 # include <assert.h>
12129 #endif
12130                      Syntax error
12131 _ACEOF
12132 if ac_fn_cxx_try_cpp "$LINENO"; then :
12133
12134 else
12135   # Broken: fails on valid input.
12136 continue
12137 fi
12138 rm -f conftest.err conftest.$ac_ext
12139
12140   # OK, works on sane cases.  Now check whether nonexistent headers
12141   # can be detected and how.
12142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h.  */
12144 #include <ac_nonexistent.h>
12145 _ACEOF
12146 if ac_fn_cxx_try_cpp "$LINENO"; then :
12147   # Broken: success on invalid input.
12148 continue
12149 else
12150   # Passes both tests.
12151 ac_preproc_ok=:
12152 break
12153 fi
12154 rm -f conftest.err conftest.$ac_ext
12155
12156 done
12157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12158 rm -f conftest.err conftest.$ac_ext
12159 if $ac_preproc_ok; then :
12160
12161 else
12162   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12164 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12165 See \`config.log' for more details." "$LINENO" 5; }
12166 fi
12167
12168 ac_ext=c
12169 ac_cpp='$CPP $CPPFLAGS'
12170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12173
12174 else
12175   _lt_caught_CXX_error=yes
12176 fi
12177
12178 ac_ext=cpp
12179 ac_cpp='$CXXCPP $CPPFLAGS'
12180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12183
12184 archive_cmds_need_lc_CXX=no
12185 allow_undefined_flag_CXX=
12186 always_export_symbols_CXX=no
12187 archive_expsym_cmds_CXX=
12188 compiler_needs_object_CXX=no
12189 export_dynamic_flag_spec_CXX=
12190 hardcode_direct_CXX=no
12191 hardcode_direct_absolute_CXX=no
12192 hardcode_libdir_flag_spec_CXX=
12193 hardcode_libdir_flag_spec_ld_CXX=
12194 hardcode_libdir_separator_CXX=
12195 hardcode_minus_L_CXX=no
12196 hardcode_shlibpath_var_CXX=unsupported
12197 hardcode_automatic_CXX=no
12198 inherit_rpath_CXX=no
12199 module_cmds_CXX=
12200 module_expsym_cmds_CXX=
12201 link_all_deplibs_CXX=unknown
12202 old_archive_cmds_CXX=$old_archive_cmds
12203 reload_flag_CXX=$reload_flag
12204 reload_cmds_CXX=$reload_cmds
12205 no_undefined_flag_CXX=
12206 whole_archive_flag_spec_CXX=
12207 enable_shared_with_static_runtimes_CXX=no
12208
12209 # Source file extension for C++ test sources.
12210 ac_ext=cpp
12211
12212 # Object file extension for compiled C++ test sources.
12213 objext=o
12214 objext_CXX=$objext
12215
12216 # No sense in running all these tests if we already determined that
12217 # the CXX compiler isn't working.  Some variables (like enable_shared)
12218 # are currently assumed to apply to all compilers on this platform,
12219 # and will be corrupted by setting them based on a non-working compiler.
12220 if test "$_lt_caught_CXX_error" != yes; then
12221   # Code to be used in simple compile tests
12222   lt_simple_compile_test_code="int some_variable = 0;"
12223
12224   # Code to be used in simple link tests
12225   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12226
12227   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12228
12229
12230
12231
12232
12233
12234 # If no C compiler was specified, use CC.
12235 LTCC=${LTCC-"$CC"}
12236
12237 # If no C compiler flags were specified, use CFLAGS.
12238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12239
12240 # Allow CC to be a program name with arguments.
12241 compiler=$CC
12242
12243
12244   # save warnings/boilerplate of simple test code
12245   ac_outfile=conftest.$ac_objext
12246 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12248 _lt_compiler_boilerplate=`cat conftest.err`
12249 $RM conftest*
12250
12251   ac_outfile=conftest.$ac_objext
12252 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12254 _lt_linker_boilerplate=`cat conftest.err`
12255 $RM -r conftest*
12256
12257
12258   # Allow CC to be a program name with arguments.
12259   lt_save_CC=$CC
12260   lt_save_LD=$LD
12261   lt_save_GCC=$GCC
12262   GCC=$GXX
12263   lt_save_with_gnu_ld=$with_gnu_ld
12264   lt_save_path_LD=$lt_cv_path_LD
12265   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12266     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12267   else
12268     $as_unset lt_cv_prog_gnu_ld
12269   fi
12270   if test -n "${lt_cv_path_LDCXX+set}"; then
12271     lt_cv_path_LD=$lt_cv_path_LDCXX
12272   else
12273     $as_unset lt_cv_path_LD
12274   fi
12275   test -z "${LDCXX+set}" || LD=$LDCXX
12276   CC=${CXX-"c++"}
12277   compiler=$CC
12278   compiler_CXX=$CC
12279   for cc_temp in $compiler""; do
12280   case $cc_temp in
12281     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12282     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12283     \-*) ;;
12284     *) break;;
12285   esac
12286 done
12287 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12288
12289
12290   if test -n "$compiler"; then
12291     # We don't want -fno-exception when compiling C++ code, so set the
12292     # no_builtin_flag separately
12293     if test "$GXX" = yes; then
12294       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12295     else
12296       lt_prog_compiler_no_builtin_flag_CXX=
12297     fi
12298
12299     if test "$GXX" = yes; then
12300       # Set up default GNU C++ configuration
12301
12302
12303
12304 # Check whether --with-gnu-ld was given.
12305 if test "${with_gnu_ld+set}" = set; then :
12306   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12307 else
12308   with_gnu_ld=no
12309 fi
12310
12311 ac_prog=ld
12312 if test "$GCC" = yes; then
12313   # Check if gcc -print-prog-name=ld gives a path.
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12315 $as_echo_n "checking for ld used by $CC... " >&6; }
12316   case $host in
12317   *-*-mingw*)
12318     # gcc leaves a trailing carriage return which upsets mingw
12319     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12320   *)
12321     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12322   esac
12323   case $ac_prog in
12324     # Accept absolute paths.
12325     [\\/]* | ?:[\\/]*)
12326       re_direlt='/[^/][^/]*/\.\./'
12327       # Canonicalize the pathname of ld
12328       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12329       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12330         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12331       done
12332       test -z "$LD" && LD="$ac_prog"
12333       ;;
12334   "")
12335     # If it fails, then pretend we aren't using GCC.
12336     ac_prog=ld
12337     ;;
12338   *)
12339     # If it is relative, then search for the first ld in PATH.
12340     with_gnu_ld=unknown
12341     ;;
12342   esac
12343 elif test "$with_gnu_ld" = yes; then
12344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12345 $as_echo_n "checking for GNU ld... " >&6; }
12346 else
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12348 $as_echo_n "checking for non-GNU ld... " >&6; }
12349 fi
12350 if test "${lt_cv_path_LD+set}" = set; then :
12351   $as_echo_n "(cached) " >&6
12352 else
12353   if test -z "$LD"; then
12354   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12355   for ac_dir in $PATH; do
12356     IFS="$lt_save_ifs"
12357     test -z "$ac_dir" && ac_dir=.
12358     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12359       lt_cv_path_LD="$ac_dir/$ac_prog"
12360       # Check to see if the program is GNU ld.  I'd rather use --version,
12361       # but apparently some variants of GNU ld only accept -v.
12362       # Break only if it was the GNU/non-GNU ld that we prefer.
12363       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12364       *GNU* | *'with BFD'*)
12365         test "$with_gnu_ld" != no && break
12366         ;;
12367       *)
12368         test "$with_gnu_ld" != yes && break
12369         ;;
12370       esac
12371     fi
12372   done
12373   IFS="$lt_save_ifs"
12374 else
12375   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12376 fi
12377 fi
12378
12379 LD="$lt_cv_path_LD"
12380 if test -n "$LD"; then
12381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12382 $as_echo "$LD" >&6; }
12383 else
12384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12386 fi
12387 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12389 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12390 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12391   $as_echo_n "(cached) " >&6
12392 else
12393   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12394 case `$LD -v 2>&1 </dev/null` in
12395 *GNU* | *'with BFD'*)
12396   lt_cv_prog_gnu_ld=yes
12397   ;;
12398 *)
12399   lt_cv_prog_gnu_ld=no
12400   ;;
12401 esac
12402 fi
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12404 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12405 with_gnu_ld=$lt_cv_prog_gnu_ld
12406
12407
12408
12409
12410
12411
12412
12413       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12414       # archiving commands below assume that GNU ld is being used.
12415       if test "$with_gnu_ld" = yes; then
12416         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12418
12419         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12420         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12421
12422         # If archive_cmds runs LD, not CC, wlarc should be empty
12423         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12424         #     investigate it a little bit more. (MM)
12425         wlarc='${wl}'
12426
12427         # ancient GNU ld didn't support --whole-archive et. al.
12428         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12429           $GREP 'no-whole-archive' > /dev/null; then
12430           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12431         else
12432           whole_archive_flag_spec_CXX=
12433         fi
12434       else
12435         with_gnu_ld=no
12436         wlarc=
12437
12438         # A generic and very simple default shared library creation
12439         # command for GNU C++ for the case where it uses the native
12440         # linker, instead of GNU ld.  If possible, this setting should
12441         # overridden to take advantage of the native linker features on
12442         # the platform it is being used on.
12443         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12444       fi
12445
12446       # Commands to make compiler produce verbose output that lists
12447       # what "hidden" libraries, object files and flags are used when
12448       # linking a shared library.
12449       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12450
12451     else
12452       GXX=no
12453       with_gnu_ld=no
12454       wlarc=
12455     fi
12456
12457     # PORTME: fill in a description of your system's C++ link characteristics
12458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12459 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12460     ld_shlibs_CXX=yes
12461     case $host_os in
12462       aix3*)
12463         # FIXME: insert proper C++ library support
12464         ld_shlibs_CXX=no
12465         ;;
12466       aix[4-9]*)
12467         if test "$host_cpu" = ia64; then
12468           # On IA64, the linker does run time linking by default, so we don't
12469           # have to do anything special.
12470           aix_use_runtimelinking=no
12471           exp_sym_flag='-Bexport'
12472           no_entry_flag=""
12473         else
12474           aix_use_runtimelinking=no
12475
12476           # Test if we are trying to use run time linking or normal
12477           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12478           # need to do runtime linking.
12479           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12480             for ld_flag in $LDFLAGS; do
12481               case $ld_flag in
12482               *-brtl*)
12483                 aix_use_runtimelinking=yes
12484                 break
12485                 ;;
12486               esac
12487             done
12488             ;;
12489           esac
12490
12491           exp_sym_flag='-bexport'
12492           no_entry_flag='-bnoentry'
12493         fi
12494
12495         # When large executables or shared objects are built, AIX ld can
12496         # have problems creating the table of contents.  If linking a library
12497         # or program results in "error TOC overflow" add -mminimal-toc to
12498         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12499         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12500
12501         archive_cmds_CXX=''
12502         hardcode_direct_CXX=yes
12503         hardcode_direct_absolute_CXX=yes
12504         hardcode_libdir_separator_CXX=':'
12505         link_all_deplibs_CXX=yes
12506         file_list_spec_CXX='${wl}-f,'
12507
12508         if test "$GXX" = yes; then
12509           case $host_os in aix4.[012]|aix4.[012].*)
12510           # We only want to do this on AIX 4.2 and lower, the check
12511           # below for broken collect2 doesn't work under 4.3+
12512           collect2name=`${CC} -print-prog-name=collect2`
12513           if test -f "$collect2name" &&
12514              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12515           then
12516             # We have reworked collect2
12517             :
12518           else
12519             # We have old collect2
12520             hardcode_direct_CXX=unsupported
12521             # It fails to find uninstalled libraries when the uninstalled
12522             # path is not listed in the libpath.  Setting hardcode_minus_L
12523             # to unsupported forces relinking
12524             hardcode_minus_L_CXX=yes
12525             hardcode_libdir_flag_spec_CXX='-L$libdir'
12526             hardcode_libdir_separator_CXX=
12527           fi
12528           esac
12529           shared_flag='-shared'
12530           if test "$aix_use_runtimelinking" = yes; then
12531             shared_flag="$shared_flag "'${wl}-G'
12532           fi
12533         else
12534           # not using gcc
12535           if test "$host_cpu" = ia64; then
12536           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12537           # chokes on -Wl,-G. The following line is correct:
12538           shared_flag='-G'
12539           else
12540             if test "$aix_use_runtimelinking" = yes; then
12541               shared_flag='${wl}-G'
12542             else
12543               shared_flag='${wl}-bM:SRE'
12544             fi
12545           fi
12546         fi
12547
12548         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12549         # It seems that -bexpall does not export symbols beginning with
12550         # underscore (_), so it is better to generate a list of symbols to
12551         # export.
12552         always_export_symbols_CXX=yes
12553         if test "$aix_use_runtimelinking" = yes; then
12554           # Warning - without using the other runtime loading flags (-brtl),
12555           # -berok will link without error, but may produce a broken library.
12556           allow_undefined_flag_CXX='-berok'
12557           # Determine the default libpath from the value encoded in an empty
12558           # executable.
12559           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h.  */
12561
12562 int
12563 main ()
12564 {
12565
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_cxx_try_link "$LINENO"; then :
12571
12572 lt_aix_libpath_sed='
12573     /Import File Strings/,/^$/ {
12574         /^0/ {
12575             s/^0  *\(.*\)$/\1/
12576             p
12577         }
12578     }'
12579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580 # Check for a 64-bit object if we didn't find anything.
12581 if test -z "$aix_libpath"; then
12582   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12583 fi
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext \
12586     conftest$ac_exeext conftest.$ac_ext
12587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12588
12589           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12590
12591           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"
12592         else
12593           if test "$host_cpu" = ia64; then
12594             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12595             allow_undefined_flag_CXX="-z nodefs"
12596             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"
12597           else
12598             # Determine the default libpath from the value encoded in an
12599             # empty executable.
12600             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h.  */
12602
12603 int
12604 main ()
12605 {
12606
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 if ac_fn_cxx_try_link "$LINENO"; then :
12612
12613 lt_aix_libpath_sed='
12614     /Import File Strings/,/^$/ {
12615         /^0/ {
12616             s/^0  *\(.*\)$/\1/
12617             p
12618         }
12619     }'
12620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12621 # Check for a 64-bit object if we didn't find anything.
12622 if test -z "$aix_libpath"; then
12623   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624 fi
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext \
12627     conftest$ac_exeext conftest.$ac_ext
12628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12629
12630             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12631             # Warning - without using the other run time loading flags,
12632             # -berok will link without error, but may produce a broken library.
12633             no_undefined_flag_CXX=' ${wl}-bernotok'
12634             allow_undefined_flag_CXX=' ${wl}-berok'
12635             if test "$with_gnu_ld" = yes; then
12636               # We only use this code for GNU lds that support --whole-archive.
12637               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12638             else
12639               # Exported symbols can be pulled into shared objects from archives
12640               whole_archive_flag_spec_CXX='$convenience'
12641             fi
12642             archive_cmds_need_lc_CXX=yes
12643             # This is similar to how AIX traditionally builds its shared
12644             # libraries.
12645             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'
12646           fi
12647         fi
12648         ;;
12649
12650       beos*)
12651         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12652           allow_undefined_flag_CXX=unsupported
12653           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12654           # support --undefined.  This deserves some investigation.  FIXME
12655           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12656         else
12657           ld_shlibs_CXX=no
12658         fi
12659         ;;
12660
12661       chorus*)
12662         case $cc_basename in
12663           *)
12664           # FIXME: insert proper C++ library support
12665           ld_shlibs_CXX=no
12666           ;;
12667         esac
12668         ;;
12669
12670       cygwin* | mingw* | pw32* | cegcc*)
12671         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12672         # as there is no search path for DLLs.
12673         hardcode_libdir_flag_spec_CXX='-L$libdir'
12674         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12675         allow_undefined_flag_CXX=unsupported
12676         always_export_symbols_CXX=no
12677         enable_shared_with_static_runtimes_CXX=yes
12678
12679         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12680           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'
12681           # If the export-symbols file already is a .def file (1st line
12682           # is EXPORTS), use it as is; otherwise, prepend...
12683           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12684             cp $export_symbols $output_objdir/$soname.def;
12685           else
12686             echo EXPORTS > $output_objdir/$soname.def;
12687             cat $export_symbols >> $output_objdir/$soname.def;
12688           fi~
12689           $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'
12690         else
12691           ld_shlibs_CXX=no
12692         fi
12693         ;;
12694       darwin* | rhapsody*)
12695
12696
12697   archive_cmds_need_lc_CXX=no
12698   hardcode_direct_CXX=no
12699   hardcode_automatic_CXX=yes
12700   hardcode_shlibpath_var_CXX=unsupported
12701   if test "$lt_cv_ld_force_load" = "yes"; then
12702     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\"`'
12703   else
12704     whole_archive_flag_spec_CXX=''
12705   fi
12706   link_all_deplibs_CXX=yes
12707   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12708   case $cc_basename in
12709      ifort*) _lt_dar_can_shared=yes ;;
12710      *) _lt_dar_can_shared=$GCC ;;
12711   esac
12712   if test "$_lt_dar_can_shared" = "yes"; then
12713     output_verbose_link_cmd=func_echo_all
12714     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}"
12715     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12716     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}"
12717     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}"
12718        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12719       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}"
12720       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}"
12721     fi
12722
12723   else
12724   ld_shlibs_CXX=no
12725   fi
12726
12727         ;;
12728
12729       dgux*)
12730         case $cc_basename in
12731           ec++*)
12732             # FIXME: insert proper C++ library support
12733             ld_shlibs_CXX=no
12734             ;;
12735           ghcx*)
12736             # Green Hills C++ Compiler
12737             # FIXME: insert proper C++ library support
12738             ld_shlibs_CXX=no
12739             ;;
12740           *)
12741             # FIXME: insert proper C++ library support
12742             ld_shlibs_CXX=no
12743             ;;
12744         esac
12745         ;;
12746
12747       freebsd2.*)
12748         # C++ shared libraries reported to be fairly broken before
12749         # switch to ELF
12750         ld_shlibs_CXX=no
12751         ;;
12752
12753       freebsd-elf*)
12754         archive_cmds_need_lc_CXX=no
12755         ;;
12756
12757       freebsd* | dragonfly*)
12758         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12759         # conventions
12760         ld_shlibs_CXX=yes
12761         ;;
12762
12763       gnu*)
12764         ;;
12765
12766       haiku*)
12767         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12768         link_all_deplibs_CXX=yes
12769         ;;
12770
12771       hpux9*)
12772         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12773         hardcode_libdir_separator_CXX=:
12774         export_dynamic_flag_spec_CXX='${wl}-E'
12775         hardcode_direct_CXX=yes
12776         hardcode_minus_L_CXX=yes # Not in the search PATH,
12777                                              # but as the default
12778                                              # location of the library.
12779
12780         case $cc_basename in
12781           CC*)
12782             # FIXME: insert proper C++ library support
12783             ld_shlibs_CXX=no
12784             ;;
12785           aCC*)
12786             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'
12787             # Commands to make compiler produce verbose output that lists
12788             # what "hidden" libraries, object files and flags are used when
12789             # linking a shared library.
12790             #
12791             # There doesn't appear to be a way to prevent this compiler from
12792             # explicitly linking system object files so we need to strip them
12793             # from the output so that they don't get included in the library
12794             # dependencies.
12795             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"'
12796             ;;
12797           *)
12798             if test "$GXX" = yes; then
12799               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'
12800             else
12801               # FIXME: insert proper C++ library support
12802               ld_shlibs_CXX=no
12803             fi
12804             ;;
12805         esac
12806         ;;
12807
12808       hpux10*|hpux11*)
12809         if test $with_gnu_ld = no; then
12810           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12811           hardcode_libdir_separator_CXX=:
12812
12813           case $host_cpu in
12814             hppa*64*|ia64*)
12815               ;;
12816             *)
12817               export_dynamic_flag_spec_CXX='${wl}-E'
12818               ;;
12819           esac
12820         fi
12821         case $host_cpu in
12822           hppa*64*|ia64*)
12823             hardcode_direct_CXX=no
12824             hardcode_shlibpath_var_CXX=no
12825             ;;
12826           *)
12827             hardcode_direct_CXX=yes
12828             hardcode_direct_absolute_CXX=yes
12829             hardcode_minus_L_CXX=yes # Not in the search PATH,
12830                                                  # but as the default
12831                                                  # location of the library.
12832             ;;
12833         esac
12834
12835         case $cc_basename in
12836           CC*)
12837             # FIXME: insert proper C++ library support
12838             ld_shlibs_CXX=no
12839             ;;
12840           aCC*)
12841             case $host_cpu in
12842               hppa*64*)
12843                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844                 ;;
12845               ia64*)
12846                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847                 ;;
12848               *)
12849                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850                 ;;
12851             esac
12852             # Commands to make compiler produce verbose output that lists
12853             # what "hidden" libraries, object files and flags are used when
12854             # linking a shared library.
12855             #
12856             # There doesn't appear to be a way to prevent this compiler from
12857             # explicitly linking system object files so we need to strip them
12858             # from the output so that they don't get included in the library
12859             # dependencies.
12860             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"'
12861             ;;
12862           *)
12863             if test "$GXX" = yes; then
12864               if test $with_gnu_ld = no; then
12865                 case $host_cpu in
12866                   hppa*64*)
12867                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12868                     ;;
12869                   ia64*)
12870                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12871                     ;;
12872                   *)
12873                     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'
12874                     ;;
12875                 esac
12876               fi
12877             else
12878               # FIXME: insert proper C++ library support
12879               ld_shlibs_CXX=no
12880             fi
12881             ;;
12882         esac
12883         ;;
12884
12885       interix[3-9]*)
12886         hardcode_direct_CXX=no
12887         hardcode_shlibpath_var_CXX=no
12888         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12889         export_dynamic_flag_spec_CXX='${wl}-E'
12890         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12891         # Instead, shared libraries are loaded at an image base (0x10000000 by
12892         # default) and relocated if they conflict, which is a slow very memory
12893         # consuming and fragmenting process.  To avoid this, we pick a random,
12894         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12895         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12896         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'
12897         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'
12898         ;;
12899       irix5* | irix6*)
12900         case $cc_basename in
12901           CC*)
12902             # SGI C++
12903             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'
12904
12905             # Archives containing C++ object files must be created using
12906             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12907             # necessary to make sure instantiated templates are included
12908             # in the archive.
12909             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12910             ;;
12911           *)
12912             if test "$GXX" = yes; then
12913               if test "$with_gnu_ld" = no; then
12914                 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'
12915               else
12916                 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'
12917               fi
12918             fi
12919             link_all_deplibs_CXX=yes
12920             ;;
12921         esac
12922         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12923         hardcode_libdir_separator_CXX=:
12924         inherit_rpath_CXX=yes
12925         ;;
12926
12927       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12928         case $cc_basename in
12929           KCC*)
12930             # Kuck and Associates, Inc. (KAI) C++ Compiler
12931
12932             # KCC will only create a shared library if the output file
12933             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12934             # to its proper name (with version) after linking.
12935             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'
12936             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'
12937             # Commands to make compiler produce verbose output that lists
12938             # what "hidden" libraries, object files and flags are used when
12939             # linking a shared library.
12940             #
12941             # There doesn't appear to be a way to prevent this compiler from
12942             # explicitly linking system object files so we need to strip them
12943             # from the output so that they don't get included in the library
12944             # dependencies.
12945             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"'
12946
12947             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12948             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12949
12950             # Archives containing C++ object files must be created using
12951             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12952             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12953             ;;
12954           icpc* | ecpc* )
12955             # Intel C++
12956             with_gnu_ld=yes
12957             # version 8.0 and above of icpc choke on multiply defined symbols
12958             # if we add $predep_objects and $postdep_objects, however 7.1 and
12959             # earlier do not add the objects themselves.
12960             case `$CC -V 2>&1` in
12961               *"Version 7."*)
12962                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12963                 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'
12964                 ;;
12965               *)  # Version 8.0 or newer
12966                 tmp_idyn=
12967                 case $host_cpu in
12968                   ia64*) tmp_idyn=' -i_dynamic';;
12969                 esac
12970                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971                 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'
12972                 ;;
12973             esac
12974             archive_cmds_need_lc_CXX=no
12975             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12976             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12977             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12978             ;;
12979           pgCC* | pgcpp*)
12980             # Portland Group C++ compiler
12981             case `$CC -V` in
12982             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12983               prelink_cmds_CXX='tpldir=Template.dir~
12984                 rm -rf $tpldir~
12985                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12986                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12987               old_archive_cmds_CXX='tpldir=Template.dir~
12988                 rm -rf $tpldir~
12989                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12990                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12991                 $RANLIB $oldlib'
12992               archive_cmds_CXX='tpldir=Template.dir~
12993                 rm -rf $tpldir~
12994                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12995                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12996               archive_expsym_cmds_CXX='tpldir=Template.dir~
12997                 rm -rf $tpldir~
12998                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12999                 $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'
13000               ;;
13001             *) # Version 6 and above use weak symbols
13002               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13003               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'
13004               ;;
13005             esac
13006
13007             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13008             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13009             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'
13010             ;;
13011           cxx*)
13012             # Compaq C++
13013             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13014             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'
13015
13016             runpath_var=LD_RUN_PATH
13017             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13018             hardcode_libdir_separator_CXX=:
13019
13020             # Commands to make compiler produce verbose output that lists
13021             # what "hidden" libraries, object files and flags are used when
13022             # linking a shared library.
13023             #
13024             # There doesn't appear to be a way to prevent this compiler from
13025             # explicitly linking system object files so we need to strip them
13026             # from the output so that they don't get included in the library
13027             # dependencies.
13028             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'
13029             ;;
13030           xl* | mpixl* | bgxl*)
13031             # IBM XL 8.0 on PPC, with GNU ld
13032             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13033             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13034             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13035             if test "x$supports_anon_versioning" = xyes; then
13036               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13037                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13038                 echo "local: *; };" >> $output_objdir/$libname.ver~
13039                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13040             fi
13041             ;;
13042           *)
13043             case `$CC -V 2>&1 | sed 5q` in
13044             *Sun\ C*)
13045               # Sun C++ 5.9
13046               no_undefined_flag_CXX=' -zdefs'
13047               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13048               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'
13049               hardcode_libdir_flag_spec_CXX='-R$libdir'
13050               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'
13051               compiler_needs_object_CXX=yes
13052
13053               # Not sure whether something based on
13054               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13055               # would be better.
13056               output_verbose_link_cmd='func_echo_all'
13057
13058               # Archives containing C++ object files must be created using
13059               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13060               # necessary to make sure instantiated templates are included
13061               # in the archive.
13062               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13063               ;;
13064             esac
13065             ;;
13066         esac
13067         ;;
13068
13069       lynxos*)
13070         # FIXME: insert proper C++ library support
13071         ld_shlibs_CXX=no
13072         ;;
13073
13074       m88k*)
13075         # FIXME: insert proper C++ library support
13076         ld_shlibs_CXX=no
13077         ;;
13078
13079       mvs*)
13080         case $cc_basename in
13081           cxx*)
13082             # FIXME: insert proper C++ library support
13083             ld_shlibs_CXX=no
13084             ;;
13085           *)
13086             # FIXME: insert proper C++ library support
13087             ld_shlibs_CXX=no
13088             ;;
13089         esac
13090         ;;
13091
13092       netbsd*)
13093         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13094           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13095           wlarc=
13096           hardcode_libdir_flag_spec_CXX='-R$libdir'
13097           hardcode_direct_CXX=yes
13098           hardcode_shlibpath_var_CXX=no
13099         fi
13100         # Workaround some broken pre-1.5 toolchains
13101         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13102         ;;
13103
13104       *nto* | *qnx*)
13105         ld_shlibs_CXX=yes
13106         ;;
13107
13108       openbsd2*)
13109         # C++ shared libraries are fairly broken
13110         ld_shlibs_CXX=no
13111         ;;
13112
13113       openbsd*)
13114         if test -f /usr/libexec/ld.so; then
13115           hardcode_direct_CXX=yes
13116           hardcode_shlibpath_var_CXX=no
13117           hardcode_direct_absolute_CXX=yes
13118           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13119           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13121             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13122             export_dynamic_flag_spec_CXX='${wl}-E'
13123             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13124           fi
13125           output_verbose_link_cmd=func_echo_all
13126         else
13127           ld_shlibs_CXX=no
13128         fi
13129         ;;
13130
13131       osf3* | osf4* | osf5*)
13132         case $cc_basename in
13133           KCC*)
13134             # Kuck and Associates, Inc. (KAI) C++ Compiler
13135
13136             # KCC will only create a shared library if the output file
13137             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13138             # to its proper name (with version) after linking.
13139             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'
13140
13141             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13142             hardcode_libdir_separator_CXX=:
13143
13144             # Archives containing C++ object files must be created using
13145             # the KAI C++ compiler.
13146             case $host in
13147               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13148               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13149             esac
13150             ;;
13151           RCC*)
13152             # Rational C++ 2.4.1
13153             # FIXME: insert proper C++ library support
13154             ld_shlibs_CXX=no
13155             ;;
13156           cxx*)
13157             case $host in
13158               osf3*)
13159                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13160                 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'
13161                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13162                 ;;
13163               *)
13164                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13165                 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'
13166                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13167                   echo "-hidden">> $lib.exp~
13168                   $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~
13169                   $RM $lib.exp'
13170                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13171                 ;;
13172             esac
13173
13174             hardcode_libdir_separator_CXX=:
13175
13176             # Commands to make compiler produce verbose output that lists
13177             # what "hidden" libraries, object files and flags are used when
13178             # linking a shared library.
13179             #
13180             # There doesn't appear to be a way to prevent this compiler from
13181             # explicitly linking system object files so we need to strip them
13182             # from the output so that they don't get included in the library
13183             # dependencies.
13184             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"'
13185             ;;
13186           *)
13187             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13188               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13189               case $host in
13190                 osf3*)
13191                   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'
13192                   ;;
13193                 *)
13194                   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'
13195                   ;;
13196               esac
13197
13198               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13199               hardcode_libdir_separator_CXX=:
13200
13201               # Commands to make compiler produce verbose output that lists
13202               # what "hidden" libraries, object files and flags are used when
13203               # linking a shared library.
13204               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13205
13206             else
13207               # FIXME: insert proper C++ library support
13208               ld_shlibs_CXX=no
13209             fi
13210             ;;
13211         esac
13212         ;;
13213
13214       psos*)
13215         # FIXME: insert proper C++ library support
13216         ld_shlibs_CXX=no
13217         ;;
13218
13219       sunos4*)
13220         case $cc_basename in
13221           CC*)
13222             # Sun C++ 4.x
13223             # FIXME: insert proper C++ library support
13224             ld_shlibs_CXX=no
13225             ;;
13226           lcc*)
13227             # Lucid
13228             # FIXME: insert proper C++ library support
13229             ld_shlibs_CXX=no
13230             ;;
13231           *)
13232             # FIXME: insert proper C++ library support
13233             ld_shlibs_CXX=no
13234             ;;
13235         esac
13236         ;;
13237
13238       solaris*)
13239         case $cc_basename in
13240           CC*)
13241             # Sun C++ 4.2, 5.x and Centerline C++
13242             archive_cmds_need_lc_CXX=yes
13243             no_undefined_flag_CXX=' -zdefs'
13244             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13245             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13246               $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'
13247
13248             hardcode_libdir_flag_spec_CXX='-R$libdir'
13249             hardcode_shlibpath_var_CXX=no
13250             case $host_os in
13251               solaris2.[0-5] | solaris2.[0-5].*) ;;
13252               *)
13253                 # The compiler driver will combine and reorder linker options,
13254                 # but understands `-z linker_flag'.
13255                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13256                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13257                 ;;
13258             esac
13259             link_all_deplibs_CXX=yes
13260
13261             output_verbose_link_cmd='func_echo_all'
13262
13263             # Archives containing C++ object files must be created using
13264             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13265             # necessary to make sure instantiated templates are included
13266             # in the archive.
13267             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13268             ;;
13269           gcx*)
13270             # Green Hills C++ Compiler
13271             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13272
13273             # The C++ compiler must be used to create the archive.
13274             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13275             ;;
13276           *)
13277             # GNU C++ compiler with Solaris linker
13278             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13279               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13280               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13281                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13282                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13283                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13284
13285                 # Commands to make compiler produce verbose output that lists
13286                 # what "hidden" libraries, object files and flags are used when
13287                 # linking a shared library.
13288                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13289               else
13290                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13291                 # platform.
13292                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13293                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13294                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13295
13296                 # Commands to make compiler produce verbose output that lists
13297                 # what "hidden" libraries, object files and flags are used when
13298                 # linking a shared library.
13299                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13300               fi
13301
13302               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13303               case $host_os in
13304                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13305                 *)
13306                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13307                   ;;
13308               esac
13309             fi
13310             ;;
13311         esac
13312         ;;
13313
13314     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13315       no_undefined_flag_CXX='${wl}-z,text'
13316       archive_cmds_need_lc_CXX=no
13317       hardcode_shlibpath_var_CXX=no
13318       runpath_var='LD_RUN_PATH'
13319
13320       case $cc_basename in
13321         CC*)
13322           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324           ;;
13325         *)
13326           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328           ;;
13329       esac
13330       ;;
13331
13332       sysv5* | sco3.2v5* | sco5v6*)
13333         # Note: We can NOT use -z defs as we might desire, because we do not
13334         # link with -lc, and that would cause any symbols used from libc to
13335         # always be unresolved, which means just about no library would
13336         # ever link correctly.  If we're not using GNU ld we use -z text
13337         # though, which does catch some bad symbols but isn't as heavy-handed
13338         # as -z defs.
13339         no_undefined_flag_CXX='${wl}-z,text'
13340         allow_undefined_flag_CXX='${wl}-z,nodefs'
13341         archive_cmds_need_lc_CXX=no
13342         hardcode_shlibpath_var_CXX=no
13343         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13344         hardcode_libdir_separator_CXX=':'
13345         link_all_deplibs_CXX=yes
13346         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13347         runpath_var='LD_RUN_PATH'
13348
13349         case $cc_basename in
13350           CC*)
13351             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13352             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13354               '"$old_archive_cmds_CXX"
13355             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13356               '"$reload_cmds_CXX"
13357             ;;
13358           *)
13359             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361             ;;
13362         esac
13363       ;;
13364
13365       tandem*)
13366         case $cc_basename in
13367           NCC*)
13368             # NonStop-UX NCC 3.20
13369             # FIXME: insert proper C++ library support
13370             ld_shlibs_CXX=no
13371             ;;
13372           *)
13373             # FIXME: insert proper C++ library support
13374             ld_shlibs_CXX=no
13375             ;;
13376         esac
13377         ;;
13378
13379       vxworks*)
13380         # FIXME: insert proper C++ library support
13381         ld_shlibs_CXX=no
13382         ;;
13383
13384       *)
13385         # FIXME: insert proper C++ library support
13386         ld_shlibs_CXX=no
13387         ;;
13388     esac
13389
13390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13391 $as_echo "$ld_shlibs_CXX" >&6; }
13392     test "$ld_shlibs_CXX" = no && can_build_shared=no
13393
13394     GCC_CXX="$GXX"
13395     LD_CXX="$LD"
13396
13397     ## CAVEAT EMPTOR:
13398     ## There is no encapsulation within the following macros, do not change
13399     ## the running order or otherwise move them around unless you know exactly
13400     ## what you are doing...
13401     # Dependencies to place before and after the object being linked:
13402 predep_objects_CXX=
13403 postdep_objects_CXX=
13404 predeps_CXX=
13405 postdeps_CXX=
13406 compiler_lib_search_path_CXX=
13407
13408 cat > conftest.$ac_ext <<_LT_EOF
13409 class Foo
13410 {
13411 public:
13412   Foo (void) { a = 0; }
13413 private:
13414   int a;
13415 };
13416 _LT_EOF
13417
13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13419   (eval $ac_compile) 2>&5
13420   ac_status=$?
13421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422   test $ac_status = 0; }; then
13423   # Parse the compiler output and extract the necessary
13424   # objects, libraries and library flags.
13425
13426   # Sentinel used to keep track of whether or not we are before
13427   # the conftest object file.
13428   pre_test_object_deps_done=no
13429
13430   for p in `eval "$output_verbose_link_cmd"`; do
13431     case $p in
13432
13433     -L* | -R* | -l*)
13434        # Some compilers place space between "-{L,R}" and the path.
13435        # Remove the space.
13436        if test $p = "-L" ||
13437           test $p = "-R"; then
13438          prev=$p
13439          continue
13440        else
13441          prev=
13442        fi
13443
13444        if test "$pre_test_object_deps_done" = no; then
13445          case $p in
13446          -L* | -R*)
13447            # Internal compiler library paths should come after those
13448            # provided the user.  The postdeps already come after the
13449            # user supplied libs so there is no need to process them.
13450            if test -z "$compiler_lib_search_path_CXX"; then
13451              compiler_lib_search_path_CXX="${prev}${p}"
13452            else
13453              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13454            fi
13455            ;;
13456          # The "-l" case would never come before the object being
13457          # linked, so don't bother handling this case.
13458          esac
13459        else
13460          if test -z "$postdeps_CXX"; then
13461            postdeps_CXX="${prev}${p}"
13462          else
13463            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13464          fi
13465        fi
13466        ;;
13467
13468     *.$objext)
13469        # This assumes that the test object file only shows up
13470        # once in the compiler output.
13471        if test "$p" = "conftest.$objext"; then
13472          pre_test_object_deps_done=yes
13473          continue
13474        fi
13475
13476        if test "$pre_test_object_deps_done" = no; then
13477          if test -z "$predep_objects_CXX"; then
13478            predep_objects_CXX="$p"
13479          else
13480            predep_objects_CXX="$predep_objects_CXX $p"
13481          fi
13482        else
13483          if test -z "$postdep_objects_CXX"; then
13484            postdep_objects_CXX="$p"
13485          else
13486            postdep_objects_CXX="$postdep_objects_CXX $p"
13487          fi
13488        fi
13489        ;;
13490
13491     *) ;; # Ignore the rest.
13492
13493     esac
13494   done
13495
13496   # Clean up.
13497   rm -f a.out a.exe
13498 else
13499   echo "libtool.m4: error: problem compiling CXX test program"
13500 fi
13501
13502 $RM -f confest.$objext
13503
13504 # PORTME: override above test on systems where it is broken
13505 case $host_os in
13506 interix[3-9]*)
13507   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13508   # hack all around it, let's just trust "g++" to DTRT.
13509   predep_objects_CXX=
13510   postdep_objects_CXX=
13511   postdeps_CXX=
13512   ;;
13513
13514 linux*)
13515   case `$CC -V 2>&1 | sed 5q` in
13516   *Sun\ C*)
13517     # Sun C++ 5.9
13518
13519     # The more standards-conforming stlport4 library is
13520     # incompatible with the Cstd library. Avoid specifying
13521     # it if it's in CXXFLAGS. Ignore libCrun as
13522     # -library=stlport4 depends on it.
13523     case " $CXX $CXXFLAGS " in
13524     *" -library=stlport4 "*)
13525       solaris_use_stlport4=yes
13526       ;;
13527     esac
13528
13529     if test "$solaris_use_stlport4" != yes; then
13530       postdeps_CXX='-library=Cstd -library=Crun'
13531     fi
13532     ;;
13533   esac
13534   ;;
13535
13536 solaris*)
13537   case $cc_basename in
13538   CC*)
13539     # The more standards-conforming stlport4 library is
13540     # incompatible with the Cstd library. Avoid specifying
13541     # it if it's in CXXFLAGS. Ignore libCrun as
13542     # -library=stlport4 depends on it.
13543     case " $CXX $CXXFLAGS " in
13544     *" -library=stlport4 "*)
13545       solaris_use_stlport4=yes
13546       ;;
13547     esac
13548
13549     # Adding this requires a known-good setup of shared libraries for
13550     # Sun compiler versions before 5.6, else PIC objects from an old
13551     # archive will be linked into the output, leading to subtle bugs.
13552     if test "$solaris_use_stlport4" != yes; then
13553       postdeps_CXX='-library=Cstd -library=Crun'
13554     fi
13555     ;;
13556   esac
13557   ;;
13558 esac
13559
13560
13561 case " $postdeps_CXX " in
13562 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13563 esac
13564  compiler_lib_search_dirs_CXX=
13565 if test -n "${compiler_lib_search_path_CXX}"; then
13566  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13567 fi
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599     lt_prog_compiler_wl_CXX=
13600 lt_prog_compiler_pic_CXX=
13601 lt_prog_compiler_static_CXX=
13602
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13604 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13605
13606   # C++ specific cases for pic, static, wl, etc.
13607   if test "$GXX" = yes; then
13608     lt_prog_compiler_wl_CXX='-Wl,'
13609     lt_prog_compiler_static_CXX='-static'
13610
13611     case $host_os in
13612     aix*)
13613       # All AIX code is PIC.
13614       if test "$host_cpu" = ia64; then
13615         # AIX 5 now supports IA64 processor
13616         lt_prog_compiler_static_CXX='-Bstatic'
13617       fi
13618       lt_prog_compiler_pic_CXX='-fPIC'
13619       ;;
13620
13621     amigaos*)
13622       case $host_cpu in
13623       powerpc)
13624             # see comment about AmigaOS4 .so support
13625             lt_prog_compiler_pic_CXX='-fPIC'
13626         ;;
13627       m68k)
13628             # FIXME: we need at least 68020 code to build shared libraries, but
13629             # adding the `-m68020' flag to GCC prevents building anything better,
13630             # like `-m68040'.
13631             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13632         ;;
13633       esac
13634       ;;
13635
13636     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13637       # PIC is the default for these OSes.
13638       ;;
13639     mingw* | cygwin* | os2* | pw32* | cegcc*)
13640       # This hack is so that the source file can tell whether it is being
13641       # built for inclusion in a dll (and should export symbols for example).
13642       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13643       # (--disable-auto-import) libraries
13644       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13645       ;;
13646     darwin* | rhapsody*)
13647       # PIC is the default on this platform
13648       # Common symbols not allowed in MH_DYLIB files
13649       lt_prog_compiler_pic_CXX='-fno-common'
13650       ;;
13651     *djgpp*)
13652       # DJGPP does not support shared libraries at all
13653       lt_prog_compiler_pic_CXX=
13654       ;;
13655     haiku*)
13656       # PIC is the default for Haiku.
13657       # The "-static" flag exists, but is broken.
13658       lt_prog_compiler_static_CXX=
13659       ;;
13660     interix[3-9]*)
13661       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13662       # Instead, we relocate shared libraries at runtime.
13663       ;;
13664     sysv4*MP*)
13665       if test -d /usr/nec; then
13666         lt_prog_compiler_pic_CXX=-Kconform_pic
13667       fi
13668       ;;
13669     hpux*)
13670       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13671       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13672       # sets the default TLS model and affects inlining.
13673       case $host_cpu in
13674       hppa*64*)
13675         ;;
13676       *)
13677         lt_prog_compiler_pic_CXX='-fPIC'
13678         ;;
13679       esac
13680       ;;
13681     *qnx* | *nto*)
13682       # QNX uses GNU C++, but need to define -shared option too, otherwise
13683       # it will coredump.
13684       lt_prog_compiler_pic_CXX='-fPIC -shared'
13685       ;;
13686     *)
13687       lt_prog_compiler_pic_CXX='-fPIC'
13688       ;;
13689     esac
13690   else
13691     case $host_os in
13692       aix[4-9]*)
13693         # All AIX code is PIC.
13694         if test "$host_cpu" = ia64; then
13695           # AIX 5 now supports IA64 processor
13696           lt_prog_compiler_static_CXX='-Bstatic'
13697         else
13698           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13699         fi
13700         ;;
13701       chorus*)
13702         case $cc_basename in
13703         cxch68*)
13704           # Green Hills C++ Compiler
13705           # _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"
13706           ;;
13707         esac
13708         ;;
13709       dgux*)
13710         case $cc_basename in
13711           ec++*)
13712             lt_prog_compiler_pic_CXX='-KPIC'
13713             ;;
13714           ghcx*)
13715             # Green Hills C++ Compiler
13716             lt_prog_compiler_pic_CXX='-pic'
13717             ;;
13718           *)
13719             ;;
13720         esac
13721         ;;
13722       freebsd* | dragonfly*)
13723         # FreeBSD uses GNU C++
13724         ;;
13725       hpux9* | hpux10* | hpux11*)
13726         case $cc_basename in
13727           CC*)
13728             lt_prog_compiler_wl_CXX='-Wl,'
13729             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13730             if test "$host_cpu" != ia64; then
13731               lt_prog_compiler_pic_CXX='+Z'
13732             fi
13733             ;;
13734           aCC*)
13735             lt_prog_compiler_wl_CXX='-Wl,'
13736             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13737             case $host_cpu in
13738             hppa*64*|ia64*)
13739               # +Z the default
13740               ;;
13741             *)
13742               lt_prog_compiler_pic_CXX='+Z'
13743               ;;
13744             esac
13745             ;;
13746           *)
13747             ;;
13748         esac
13749         ;;
13750       interix*)
13751         # This is c89, which is MS Visual C++ (no shared libs)
13752         # Anyone wants to do a port?
13753         ;;
13754       irix5* | irix6* | nonstopux*)
13755         case $cc_basename in
13756           CC*)
13757             lt_prog_compiler_wl_CXX='-Wl,'
13758             lt_prog_compiler_static_CXX='-non_shared'
13759             # CC pic flag -KPIC is the default.
13760             ;;
13761           *)
13762             ;;
13763         esac
13764         ;;
13765       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13766         case $cc_basename in
13767           KCC*)
13768             # KAI C++ Compiler
13769             lt_prog_compiler_wl_CXX='--backend -Wl,'
13770             lt_prog_compiler_pic_CXX='-fPIC'
13771             ;;
13772           ecpc* )
13773             # old Intel C++ for x86_64 which still supported -KPIC.
13774             lt_prog_compiler_wl_CXX='-Wl,'
13775             lt_prog_compiler_pic_CXX='-KPIC'
13776             lt_prog_compiler_static_CXX='-static'
13777             ;;
13778           icpc* )
13779             # Intel C++, used to be incompatible with GCC.
13780             # ICC 10 doesn't accept -KPIC any more.
13781             lt_prog_compiler_wl_CXX='-Wl,'
13782             lt_prog_compiler_pic_CXX='-fPIC'
13783             lt_prog_compiler_static_CXX='-static'
13784             ;;
13785           pgCC* | pgcpp*)
13786             # Portland Group C++ compiler
13787             lt_prog_compiler_wl_CXX='-Wl,'
13788             lt_prog_compiler_pic_CXX='-fpic'
13789             lt_prog_compiler_static_CXX='-Bstatic'
13790             ;;
13791           cxx*)
13792             # Compaq C++
13793             # Make sure the PIC flag is empty.  It appears that all Alpha
13794             # Linux and Compaq Tru64 Unix objects are PIC.
13795             lt_prog_compiler_pic_CXX=
13796             lt_prog_compiler_static_CXX='-non_shared'
13797             ;;
13798           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13799             # IBM XL 8.0, 9.0 on PPC and BlueGene
13800             lt_prog_compiler_wl_CXX='-Wl,'
13801             lt_prog_compiler_pic_CXX='-qpic'
13802             lt_prog_compiler_static_CXX='-qstaticlink'
13803             ;;
13804           *)
13805             case `$CC -V 2>&1 | sed 5q` in
13806             *Sun\ C*)
13807               # Sun C++ 5.9
13808               lt_prog_compiler_pic_CXX='-KPIC'
13809               lt_prog_compiler_static_CXX='-Bstatic'
13810               lt_prog_compiler_wl_CXX='-Qoption ld '
13811               ;;
13812             esac
13813             ;;
13814         esac
13815         ;;
13816       lynxos*)
13817         ;;
13818       m88k*)
13819         ;;
13820       mvs*)
13821         case $cc_basename in
13822           cxx*)
13823             lt_prog_compiler_pic_CXX='-W c,exportall'
13824             ;;
13825           *)
13826             ;;
13827         esac
13828         ;;
13829       netbsd*)
13830         ;;
13831       *qnx* | *nto*)
13832         # QNX uses GNU C++, but need to define -shared option too, otherwise
13833         # it will coredump.
13834         lt_prog_compiler_pic_CXX='-fPIC -shared'
13835         ;;
13836       osf3* | osf4* | osf5*)
13837         case $cc_basename in
13838           KCC*)
13839             lt_prog_compiler_wl_CXX='--backend -Wl,'
13840             ;;
13841           RCC*)
13842             # Rational C++ 2.4.1
13843             lt_prog_compiler_pic_CXX='-pic'
13844             ;;
13845           cxx*)
13846             # Digital/Compaq C++
13847             lt_prog_compiler_wl_CXX='-Wl,'
13848             # Make sure the PIC flag is empty.  It appears that all Alpha
13849             # Linux and Compaq Tru64 Unix objects are PIC.
13850             lt_prog_compiler_pic_CXX=
13851             lt_prog_compiler_static_CXX='-non_shared'
13852             ;;
13853           *)
13854             ;;
13855         esac
13856         ;;
13857       psos*)
13858         ;;
13859       solaris*)
13860         case $cc_basename in
13861           CC*)
13862             # Sun C++ 4.2, 5.x and Centerline C++
13863             lt_prog_compiler_pic_CXX='-KPIC'
13864             lt_prog_compiler_static_CXX='-Bstatic'
13865             lt_prog_compiler_wl_CXX='-Qoption ld '
13866             ;;
13867           gcx*)
13868             # Green Hills C++ Compiler
13869             lt_prog_compiler_pic_CXX='-PIC'
13870             ;;
13871           *)
13872             ;;
13873         esac
13874         ;;
13875       sunos4*)
13876         case $cc_basename in
13877           CC*)
13878             # Sun C++ 4.x
13879             lt_prog_compiler_pic_CXX='-pic'
13880             lt_prog_compiler_static_CXX='-Bstatic'
13881             ;;
13882           lcc*)
13883             # Lucid
13884             lt_prog_compiler_pic_CXX='-pic'
13885             ;;
13886           *)
13887             ;;
13888         esac
13889         ;;
13890       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13891         case $cc_basename in
13892           CC*)
13893             lt_prog_compiler_wl_CXX='-Wl,'
13894             lt_prog_compiler_pic_CXX='-KPIC'
13895             lt_prog_compiler_static_CXX='-Bstatic'
13896             ;;
13897         esac
13898         ;;
13899       tandem*)
13900         case $cc_basename in
13901           NCC*)
13902             # NonStop-UX NCC 3.20
13903             lt_prog_compiler_pic_CXX='-KPIC'
13904             ;;
13905           *)
13906             ;;
13907         esac
13908         ;;
13909       vxworks*)
13910         ;;
13911       *)
13912         lt_prog_compiler_can_build_shared_CXX=no
13913         ;;
13914     esac
13915   fi
13916
13917 case $host_os in
13918   # For platforms which do not support PIC, -DPIC is meaningless:
13919   *djgpp*)
13920     lt_prog_compiler_pic_CXX=
13921     ;;
13922   *)
13923     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13924     ;;
13925 esac
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13927 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13928
13929
13930
13931 #
13932 # Check to make sure the PIC flag actually works.
13933 #
13934 if test -n "$lt_prog_compiler_pic_CXX"; then
13935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13937 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13938   $as_echo_n "(cached) " >&6
13939 else
13940   lt_cv_prog_compiler_pic_works_CXX=no
13941    ac_outfile=conftest.$ac_objext
13942    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13943    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13944    # Insert the option either (1) after the last *FLAGS variable, or
13945    # (2) before a word containing "conftest.", or (3) at the end.
13946    # Note that $ac_compile itself does not contain backslashes and begins
13947    # with a dollar sign (not a hyphen), so the echo should work correctly.
13948    # The option is referenced via a variable to avoid confusing sed.
13949    lt_compile=`echo "$ac_compile" | $SED \
13950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13952    -e 's:$: $lt_compiler_flag:'`
13953    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13954    (eval "$lt_compile" 2>conftest.err)
13955    ac_status=$?
13956    cat conftest.err >&5
13957    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958    if (exit $ac_status) && test -s "$ac_outfile"; then
13959      # The compiler can only warn and ignore the option if not recognized
13960      # So say no if there are warnings other than the usual output.
13961      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13962      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13963      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13964        lt_cv_prog_compiler_pic_works_CXX=yes
13965      fi
13966    fi
13967    $RM conftest*
13968
13969 fi
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13971 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13972
13973 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13974     case $lt_prog_compiler_pic_CXX in
13975      "" | " "*) ;;
13976      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13977      esac
13978 else
13979     lt_prog_compiler_pic_CXX=
13980      lt_prog_compiler_can_build_shared_CXX=no
13981 fi
13982
13983 fi
13984
13985
13986
13987 #
13988 # Check to make sure the static flag actually works.
13989 #
13990 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13992 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13993 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13994   $as_echo_n "(cached) " >&6
13995 else
13996   lt_cv_prog_compiler_static_works_CXX=no
13997    save_LDFLAGS="$LDFLAGS"
13998    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13999    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14000    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14001      # The linker can only warn and ignore the option if not recognized
14002      # So say no if there are warnings
14003      if test -s conftest.err; then
14004        # Append any errors to the config.log.
14005        cat conftest.err 1>&5
14006        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14007        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14008        if diff conftest.exp conftest.er2 >/dev/null; then
14009          lt_cv_prog_compiler_static_works_CXX=yes
14010        fi
14011      else
14012        lt_cv_prog_compiler_static_works_CXX=yes
14013      fi
14014    fi
14015    $RM -r conftest*
14016    LDFLAGS="$save_LDFLAGS"
14017
14018 fi
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14020 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14021
14022 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14023     :
14024 else
14025     lt_prog_compiler_static_CXX=
14026 fi
14027
14028
14029
14030
14031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14033 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14034   $as_echo_n "(cached) " >&6
14035 else
14036   lt_cv_prog_compiler_c_o_CXX=no
14037    $RM -r conftest 2>/dev/null
14038    mkdir conftest
14039    cd conftest
14040    mkdir out
14041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14042
14043    lt_compiler_flag="-o out/conftest2.$ac_objext"
14044    # Insert the option either (1) after the last *FLAGS variable, or
14045    # (2) before a word containing "conftest.", or (3) at the end.
14046    # Note that $ac_compile itself does not contain backslashes and begins
14047    # with a dollar sign (not a hyphen), so the echo should work correctly.
14048    lt_compile=`echo "$ac_compile" | $SED \
14049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14051    -e 's:$: $lt_compiler_flag:'`
14052    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14053    (eval "$lt_compile" 2>out/conftest.err)
14054    ac_status=$?
14055    cat out/conftest.err >&5
14056    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14058    then
14059      # The compiler can only warn and ignore the option if not recognized
14060      # So say no if there are warnings
14061      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14062      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14063      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14064        lt_cv_prog_compiler_c_o_CXX=yes
14065      fi
14066    fi
14067    chmod u+w . 2>&5
14068    $RM conftest*
14069    # SGI C++ compiler will create directory out/ii_files/ for
14070    # template instantiation
14071    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14072    $RM out/* && rmdir out
14073    cd ..
14074    $RM -r conftest
14075    $RM conftest*
14076
14077 fi
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14079 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14080
14081
14082
14083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14084 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14085 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14086   $as_echo_n "(cached) " >&6
14087 else
14088   lt_cv_prog_compiler_c_o_CXX=no
14089    $RM -r conftest 2>/dev/null
14090    mkdir conftest
14091    cd conftest
14092    mkdir out
14093    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14094
14095    lt_compiler_flag="-o out/conftest2.$ac_objext"
14096    # Insert the option either (1) after the last *FLAGS variable, or
14097    # (2) before a word containing "conftest.", or (3) at the end.
14098    # Note that $ac_compile itself does not contain backslashes and begins
14099    # with a dollar sign (not a hyphen), so the echo should work correctly.
14100    lt_compile=`echo "$ac_compile" | $SED \
14101    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14102    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14103    -e 's:$: $lt_compiler_flag:'`
14104    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14105    (eval "$lt_compile" 2>out/conftest.err)
14106    ac_status=$?
14107    cat out/conftest.err >&5
14108    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14110    then
14111      # The compiler can only warn and ignore the option if not recognized
14112      # So say no if there are warnings
14113      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14114      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14115      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14116        lt_cv_prog_compiler_c_o_CXX=yes
14117      fi
14118    fi
14119    chmod u+w . 2>&5
14120    $RM conftest*
14121    # SGI C++ compiler will create directory out/ii_files/ for
14122    # template instantiation
14123    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14124    $RM out/* && rmdir out
14125    cd ..
14126    $RM -r conftest
14127    $RM conftest*
14128
14129 fi
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14131 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14132
14133
14134
14135
14136 hard_links="nottested"
14137 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14138   # do not overwrite the value of need_locks provided by the user
14139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14140 $as_echo_n "checking if we can lock with hard links... " >&6; }
14141   hard_links=yes
14142   $RM conftest*
14143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144   touch conftest.a
14145   ln conftest.a conftest.b 2>&5 || hard_links=no
14146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14148 $as_echo "$hard_links" >&6; }
14149   if test "$hard_links" = no; then
14150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14151 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14152     need_locks=warn
14153   fi
14154 else
14155   need_locks=no
14156 fi
14157
14158
14159
14160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14162
14163   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14164   case $host_os in
14165   aix[4-9]*)
14166     # If we're using GNU nm, then we don't want the "-C" option.
14167     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14168     # Also, AIX nm treats weak defined symbols like other global defined
14169     # symbols, whereas GNU nm marks them as "W".
14170     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14171       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'
14172     else
14173       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14174     fi
14175     ;;
14176   pw32*)
14177     export_symbols_cmds_CXX="$ltdll_cmds"
14178   ;;
14179   cygwin* | mingw* | cegcc*)
14180     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'
14181   ;;
14182   *)
14183     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14184   ;;
14185   esac
14186   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14189 $as_echo "$ld_shlibs_CXX" >&6; }
14190 test "$ld_shlibs_CXX" = no && can_build_shared=no
14191
14192 with_gnu_ld_CXX=$with_gnu_ld
14193
14194
14195
14196
14197
14198
14199 #
14200 # Do we need to explicitly link libc?
14201 #
14202 case "x$archive_cmds_need_lc_CXX" in
14203 x|xyes)
14204   # Assume -lc should be added
14205   archive_cmds_need_lc_CXX=yes
14206
14207   if test "$enable_shared" = yes && test "$GCC" = yes; then
14208     case $archive_cmds_CXX in
14209     *'~'*)
14210       # FIXME: we may have to deal with multi-command sequences.
14211       ;;
14212     '$CC '*)
14213       # Test whether the compiler implicitly links with -lc since on some
14214       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14215       # to ld, don't add -lc before -lgcc.
14216       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14217 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14218 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14219   $as_echo_n "(cached) " >&6
14220 else
14221   $RM conftest*
14222         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14223
14224         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14225   (eval $ac_compile) 2>&5
14226   ac_status=$?
14227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228   test $ac_status = 0; } 2>conftest.err; then
14229           soname=conftest
14230           lib=conftest
14231           libobjs=conftest.$ac_objext
14232           deplibs=
14233           wl=$lt_prog_compiler_wl_CXX
14234           pic_flag=$lt_prog_compiler_pic_CXX
14235           compiler_flags=-v
14236           linker_flags=-v
14237           verstring=
14238           output_objdir=.
14239           libname=conftest
14240           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14241           allow_undefined_flag_CXX=
14242           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14243   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14244   ac_status=$?
14245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246   test $ac_status = 0; }
14247           then
14248             lt_cv_archive_cmds_need_lc_CXX=no
14249           else
14250             lt_cv_archive_cmds_need_lc_CXX=yes
14251           fi
14252           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14253         else
14254           cat conftest.err 1>&5
14255         fi
14256         $RM conftest*
14257
14258 fi
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14260 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14261       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14262       ;;
14263     esac
14264   fi
14265   ;;
14266 esac
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14332 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14333
14334 library_names_spec=
14335 libname_spec='lib$name'
14336 soname_spec=
14337 shrext_cmds=".so"
14338 postinstall_cmds=
14339 postuninstall_cmds=
14340 finish_cmds=
14341 finish_eval=
14342 shlibpath_var=
14343 shlibpath_overrides_runpath=unknown
14344 version_type=none
14345 dynamic_linker="$host_os ld.so"
14346 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14347 need_lib_prefix=unknown
14348 hardcode_into_libs=no
14349
14350 # when you set need_version to no, make sure it does not cause -set_version
14351 # flags to be left without arguments
14352 need_version=unknown
14353
14354 case $host_os in
14355 aix3*)
14356   version_type=linux
14357   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14358   shlibpath_var=LIBPATH
14359
14360   # AIX 3 has no versioning support, so we append a major version to the name.
14361   soname_spec='${libname}${release}${shared_ext}$major'
14362   ;;
14363
14364 aix[4-9]*)
14365   version_type=linux
14366   need_lib_prefix=no
14367   need_version=no
14368   hardcode_into_libs=yes
14369   if test "$host_cpu" = ia64; then
14370     # AIX 5 supports IA64
14371     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14372     shlibpath_var=LD_LIBRARY_PATH
14373   else
14374     # With GCC up to 2.95.x, collect2 would create an import file
14375     # for dependence libraries.  The import file would start with
14376     # the line `#! .'.  This would cause the generated library to
14377     # depend on `.', always an invalid library.  This was fixed in
14378     # development snapshots of GCC prior to 3.0.
14379     case $host_os in
14380       aix4 | aix4.[01] | aix4.[01].*)
14381       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14382            echo ' yes '
14383            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14384         :
14385       else
14386         can_build_shared=no
14387       fi
14388       ;;
14389     esac
14390     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14391     # soname into executable. Probably we can add versioning support to
14392     # collect2, so additional links can be useful in future.
14393     if test "$aix_use_runtimelinking" = yes; then
14394       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14395       # instead of lib<name>.a to let people know that these are not
14396       # typical AIX shared libraries.
14397       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398     else
14399       # We preserve .a as extension for shared libraries through AIX4.2
14400       # and later when we are not doing run time linking.
14401       library_names_spec='${libname}${release}.a $libname.a'
14402       soname_spec='${libname}${release}${shared_ext}$major'
14403     fi
14404     shlibpath_var=LIBPATH
14405   fi
14406   ;;
14407
14408 amigaos*)
14409   case $host_cpu in
14410   powerpc)
14411     # Since July 2007 AmigaOS4 officially supports .so libraries.
14412     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414     ;;
14415   m68k)
14416     library_names_spec='$libname.ixlibrary $libname.a'
14417     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14418     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'
14419     ;;
14420   esac
14421   ;;
14422
14423 beos*)
14424   library_names_spec='${libname}${shared_ext}'
14425   dynamic_linker="$host_os ld.so"
14426   shlibpath_var=LIBRARY_PATH
14427   ;;
14428
14429 bsdi[45]*)
14430   version_type=linux
14431   need_version=no
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433   soname_spec='${libname}${release}${shared_ext}$major'
14434   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14435   shlibpath_var=LD_LIBRARY_PATH
14436   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14437   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14438   # the default ld.so.conf also contains /usr/contrib/lib and
14439   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14440   # libtool to hard-code these into programs
14441   ;;
14442
14443 cygwin* | mingw* | pw32* | cegcc*)
14444   version_type=windows
14445   shrext_cmds=".dll"
14446   need_version=no
14447   need_lib_prefix=no
14448
14449   case $GCC,$host_os in
14450   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14451     library_names_spec='$libname.dll.a'
14452     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14453     postinstall_cmds='base_file=`basename \${file}`~
14454       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14455       dldir=$destdir/`dirname \$dlpath`~
14456       test -d \$dldir || mkdir -p \$dldir~
14457       $install_prog $dir/$dlname \$dldir/$dlname~
14458       chmod a+x \$dldir/$dlname~
14459       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14460         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14461       fi'
14462     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14463       dlpath=$dir/\$dldll~
14464        $RM \$dlpath'
14465     shlibpath_overrides_runpath=yes
14466
14467     case $host_os in
14468     cygwin*)
14469       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14470       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14471
14472       ;;
14473     mingw* | cegcc*)
14474       # MinGW DLLs use traditional 'lib' prefix
14475       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14476       ;;
14477     pw32*)
14478       # pw32 DLLs use 'pw' prefix rather than 'lib'
14479       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480       ;;
14481     esac
14482     ;;
14483
14484   *)
14485     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14486     ;;
14487   esac
14488   dynamic_linker='Win32 ld.exe'
14489   # FIXME: first we should search . and the directory the executable is in
14490   shlibpath_var=PATH
14491   ;;
14492
14493 darwin* | rhapsody*)
14494   dynamic_linker="$host_os dyld"
14495   version_type=darwin
14496   need_lib_prefix=no
14497   need_version=no
14498   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14499   soname_spec='${libname}${release}${major}$shared_ext'
14500   shlibpath_overrides_runpath=yes
14501   shlibpath_var=DYLD_LIBRARY_PATH
14502   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14503
14504   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14505   ;;
14506
14507 dgux*)
14508   version_type=linux
14509   need_lib_prefix=no
14510   need_version=no
14511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14512   soname_spec='${libname}${release}${shared_ext}$major'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   ;;
14515
14516 freebsd* | dragonfly*)
14517   # DragonFly does not have aout.  When/if they implement a new
14518   # versioning mechanism, adjust this.
14519   if test -x /usr/bin/objformat; then
14520     objformat=`/usr/bin/objformat`
14521   else
14522     case $host_os in
14523     freebsd[23].*) objformat=aout ;;
14524     *) objformat=elf ;;
14525     esac
14526   fi
14527   version_type=freebsd-$objformat
14528   case $version_type in
14529     freebsd-elf*)
14530       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14531       need_version=no
14532       need_lib_prefix=no
14533       ;;
14534     freebsd-*)
14535       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14536       need_version=yes
14537       ;;
14538   esac
14539   shlibpath_var=LD_LIBRARY_PATH
14540   case $host_os in
14541   freebsd2.*)
14542     shlibpath_overrides_runpath=yes
14543     ;;
14544   freebsd3.[01]* | freebsdelf3.[01]*)
14545     shlibpath_overrides_runpath=yes
14546     hardcode_into_libs=yes
14547     ;;
14548   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14549   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14550     shlibpath_overrides_runpath=no
14551     hardcode_into_libs=yes
14552     ;;
14553   *) # from 4.6 on, and DragonFly
14554     shlibpath_overrides_runpath=yes
14555     hardcode_into_libs=yes
14556     ;;
14557   esac
14558   ;;
14559
14560 gnu*)
14561   version_type=linux
14562   need_lib_prefix=no
14563   need_version=no
14564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14565   soname_spec='${libname}${release}${shared_ext}$major'
14566   shlibpath_var=LD_LIBRARY_PATH
14567   hardcode_into_libs=yes
14568   ;;
14569
14570 haiku*)
14571   version_type=linux
14572   need_lib_prefix=no
14573   need_version=no
14574   dynamic_linker="$host_os runtime_loader"
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576   soname_spec='${libname}${release}${shared_ext}$major'
14577   shlibpath_var=LIBRARY_PATH
14578   shlibpath_overrides_runpath=yes
14579   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14580   hardcode_into_libs=yes
14581   ;;
14582
14583 hpux9* | hpux10* | hpux11*)
14584   # Give a soname corresponding to the major version so that dld.sl refuses to
14585   # link against other versions.
14586   version_type=sunos
14587   need_lib_prefix=no
14588   need_version=no
14589   case $host_cpu in
14590   ia64*)
14591     shrext_cmds='.so'
14592     hardcode_into_libs=yes
14593     dynamic_linker="$host_os dld.so"
14594     shlibpath_var=LD_LIBRARY_PATH
14595     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597     soname_spec='${libname}${release}${shared_ext}$major'
14598     if test "X$HPUX_IA64_MODE" = X32; then
14599       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14600     else
14601       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14602     fi
14603     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14604     ;;
14605   hppa*64*)
14606     shrext_cmds='.sl'
14607     hardcode_into_libs=yes
14608     dynamic_linker="$host_os dld.sl"
14609     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14614     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14615     ;;
14616   *)
14617     shrext_cmds='.sl'
14618     dynamic_linker="$host_os dld.sl"
14619     shlibpath_var=SHLIB_PATH
14620     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14622     soname_spec='${libname}${release}${shared_ext}$major'
14623     ;;
14624   esac
14625   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14626   postinstall_cmds='chmod 555 $lib'
14627   # or fails outright, so override atomically:
14628   install_override_mode=555
14629   ;;
14630
14631 interix[3-9]*)
14632   version_type=linux
14633   need_lib_prefix=no
14634   need_version=no
14635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14636   soname_spec='${libname}${release}${shared_ext}$major'
14637   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14638   shlibpath_var=LD_LIBRARY_PATH
14639   shlibpath_overrides_runpath=no
14640   hardcode_into_libs=yes
14641   ;;
14642
14643 irix5* | irix6* | nonstopux*)
14644   case $host_os in
14645     nonstopux*) version_type=nonstopux ;;
14646     *)
14647         if test "$lt_cv_prog_gnu_ld" = yes; then
14648                 version_type=linux
14649         else
14650                 version_type=irix
14651         fi ;;
14652   esac
14653   need_lib_prefix=no
14654   need_version=no
14655   soname_spec='${libname}${release}${shared_ext}$major'
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14657   case $host_os in
14658   irix5* | nonstopux*)
14659     libsuff= shlibsuff=
14660     ;;
14661   *)
14662     case $LD in # libtool.m4 will add one of these switches to LD
14663     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14664       libsuff= shlibsuff= libmagic=32-bit;;
14665     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14666       libsuff=32 shlibsuff=N32 libmagic=N32;;
14667     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14668       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14669     *) libsuff= shlibsuff= libmagic=never-match;;
14670     esac
14671     ;;
14672   esac
14673   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14674   shlibpath_overrides_runpath=no
14675   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14676   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14677   hardcode_into_libs=yes
14678   ;;
14679
14680 # No shared lib support for Linux oldld, aout, or coff.
14681 linux*oldld* | linux*aout* | linux*coff*)
14682   dynamic_linker=no
14683   ;;
14684
14685 # This must be Linux ELF.
14686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14687   version_type=linux
14688   need_lib_prefix=no
14689   need_version=no
14690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691   soname_spec='${libname}${release}${shared_ext}$major'
14692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14693   shlibpath_var=LD_LIBRARY_PATH
14694   shlibpath_overrides_runpath=no
14695
14696   # Some binutils ld are patched to set DT_RUNPATH
14697   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700   lt_cv_shlibpath_overrides_runpath=no
14701     save_LDFLAGS=$LDFLAGS
14702     save_libdir=$libdir
14703     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14704          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h.  */
14707
14708 int
14709 main ()
14710 {
14711
14712   ;
14713   return 0;
14714 }
14715 _ACEOF
14716 if ac_fn_cxx_try_link "$LINENO"; then :
14717   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14718   lt_cv_shlibpath_overrides_runpath=yes
14719 fi
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext \
14722     conftest$ac_exeext conftest.$ac_ext
14723     LDFLAGS=$save_LDFLAGS
14724     libdir=$save_libdir
14725
14726 fi
14727
14728   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14729
14730   # This implies no fast_install, which is unacceptable.
14731   # Some rework will be needed to allow for fast_install
14732   # before this can be enabled.
14733   hardcode_into_libs=yes
14734
14735   # Append ld.so.conf contents to the search path
14736   if test -f /etc/ld.so.conf; then
14737     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' ' '`
14738     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14739   fi
14740
14741   # We used to test for /lib/ld.so.1 and disable shared libraries on
14742   # powerpc, because MkLinux only supported shared libraries with the
14743   # GNU dynamic linker.  Since this was broken with cross compilers,
14744   # most powerpc-linux boxes support dynamic linking these days and
14745   # people can always --disable-shared, the test was removed, and we
14746   # assume the GNU/Linux dynamic linker is in use.
14747   dynamic_linker='GNU/Linux ld.so'
14748   ;;
14749
14750 netbsd*)
14751   version_type=sunos
14752   need_lib_prefix=no
14753   need_version=no
14754   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14756     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14757     dynamic_linker='NetBSD (a.out) ld.so'
14758   else
14759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14760     soname_spec='${libname}${release}${shared_ext}$major'
14761     dynamic_linker='NetBSD ld.elf_so'
14762   fi
14763   shlibpath_var=LD_LIBRARY_PATH
14764   shlibpath_overrides_runpath=yes
14765   hardcode_into_libs=yes
14766   ;;
14767
14768 newsos6)
14769   version_type=linux
14770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771   shlibpath_var=LD_LIBRARY_PATH
14772   shlibpath_overrides_runpath=yes
14773   ;;
14774
14775 *nto* | *qnx*)
14776   version_type=qnx
14777   need_lib_prefix=no
14778   need_version=no
14779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780   soname_spec='${libname}${release}${shared_ext}$major'
14781   shlibpath_var=LD_LIBRARY_PATH
14782   shlibpath_overrides_runpath=no
14783   hardcode_into_libs=yes
14784   dynamic_linker='ldqnx.so'
14785   ;;
14786
14787 openbsd*)
14788   version_type=sunos
14789   sys_lib_dlsearch_path_spec="/usr/lib"
14790   need_lib_prefix=no
14791   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14792   case $host_os in
14793     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14794     *)                          need_version=no  ;;
14795   esac
14796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14800     case $host_os in
14801       openbsd2.[89] | openbsd2.[89].*)
14802         shlibpath_overrides_runpath=no
14803         ;;
14804       *)
14805         shlibpath_overrides_runpath=yes
14806         ;;
14807       esac
14808   else
14809     shlibpath_overrides_runpath=yes
14810   fi
14811   ;;
14812
14813 os2*)
14814   libname_spec='$name'
14815   shrext_cmds=".dll"
14816   need_lib_prefix=no
14817   library_names_spec='$libname${shared_ext} $libname.a'
14818   dynamic_linker='OS/2 ld.exe'
14819   shlibpath_var=LIBPATH
14820   ;;
14821
14822 osf3* | osf4* | osf5*)
14823   version_type=osf
14824   need_lib_prefix=no
14825   need_version=no
14826   soname_spec='${libname}${release}${shared_ext}$major'
14827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828   shlibpath_var=LD_LIBRARY_PATH
14829   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14830   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14831   ;;
14832
14833 rdos*)
14834   dynamic_linker=no
14835   ;;
14836
14837 solaris*)
14838   version_type=linux
14839   need_lib_prefix=no
14840   need_version=no
14841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842   soname_spec='${libname}${release}${shared_ext}$major'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   shlibpath_overrides_runpath=yes
14845   hardcode_into_libs=yes
14846   # ldd complains unless libraries are executable
14847   postinstall_cmds='chmod +x $lib'
14848   ;;
14849
14850 sunos4*)
14851   version_type=sunos
14852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14853   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14854   shlibpath_var=LD_LIBRARY_PATH
14855   shlibpath_overrides_runpath=yes
14856   if test "$with_gnu_ld" = yes; then
14857     need_lib_prefix=no
14858   fi
14859   need_version=yes
14860   ;;
14861
14862 sysv4 | sysv4.3*)
14863   version_type=linux
14864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865   soname_spec='${libname}${release}${shared_ext}$major'
14866   shlibpath_var=LD_LIBRARY_PATH
14867   case $host_vendor in
14868     sni)
14869       shlibpath_overrides_runpath=no
14870       need_lib_prefix=no
14871       runpath_var=LD_RUN_PATH
14872       ;;
14873     siemens)
14874       need_lib_prefix=no
14875       ;;
14876     motorola)
14877       need_lib_prefix=no
14878       need_version=no
14879       shlibpath_overrides_runpath=no
14880       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14881       ;;
14882   esac
14883   ;;
14884
14885 sysv4*MP*)
14886   if test -d /usr/nec ;then
14887     version_type=linux
14888     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14889     soname_spec='$libname${shared_ext}.$major'
14890     shlibpath_var=LD_LIBRARY_PATH
14891   fi
14892   ;;
14893
14894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14895   version_type=freebsd-elf
14896   need_lib_prefix=no
14897   need_version=no
14898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14899   soname_spec='${libname}${release}${shared_ext}$major'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   shlibpath_overrides_runpath=yes
14902   hardcode_into_libs=yes
14903   if test "$with_gnu_ld" = yes; then
14904     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14905   else
14906     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14907     case $host_os in
14908       sco3.2v5*)
14909         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14910         ;;
14911     esac
14912   fi
14913   sys_lib_dlsearch_path_spec='/usr/lib'
14914   ;;
14915
14916 tpf*)
14917   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14918   version_type=linux
14919   need_lib_prefix=no
14920   need_version=no
14921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922   shlibpath_var=LD_LIBRARY_PATH
14923   shlibpath_overrides_runpath=no
14924   hardcode_into_libs=yes
14925   ;;
14926
14927 uts4*)
14928   version_type=linux
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930   soname_spec='${libname}${release}${shared_ext}$major'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   ;;
14933
14934 *)
14935   dynamic_linker=no
14936   ;;
14937 esac
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14939 $as_echo "$dynamic_linker" >&6; }
14940 test "$dynamic_linker" = no && can_build_shared=no
14941
14942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14943 if test "$GCC" = yes; then
14944   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14945 fi
14946
14947 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14948   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14949 fi
14950 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14951   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14952 fi
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14992 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14993 hardcode_action_CXX=
14994 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14995    test -n "$runpath_var_CXX" ||
14996    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14997
14998   # We can hardcode non-existent directories.
14999   if test "$hardcode_direct_CXX" != no &&
15000      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15001      # have to relink, otherwise we might link with an installed library
15002      # when we should be linking with a yet-to-be-installed one
15003      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15004      test "$hardcode_minus_L_CXX" != no; then
15005     # Linking always hardcodes the temporary library directory.
15006     hardcode_action_CXX=relink
15007   else
15008     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15009     hardcode_action_CXX=immediate
15010   fi
15011 else
15012   # We cannot hardcode anything, or else we can only hardcode existing
15013   # directories.
15014   hardcode_action_CXX=unsupported
15015 fi
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15017 $as_echo "$hardcode_action_CXX" >&6; }
15018
15019 if test "$hardcode_action_CXX" = relink ||
15020    test "$inherit_rpath_CXX" = yes; then
15021   # Fast installation is not supported
15022   enable_fast_install=no
15023 elif test "$shlibpath_overrides_runpath" = yes ||
15024      test "$enable_shared" = no; then
15025   # Fast installation is not necessary
15026   enable_fast_install=needless
15027 fi
15028
15029
15030
15031
15032
15033
15034
15035   fi # test -n "$compiler"
15036
15037   CC=$lt_save_CC
15038   LDCXX=$LD
15039   LD=$lt_save_LD
15040   GCC=$lt_save_GCC
15041   with_gnu_ld=$lt_save_with_gnu_ld
15042   lt_cv_path_LDCXX=$lt_cv_path_LD
15043   lt_cv_path_LD=$lt_save_path_LD
15044   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15045   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15046 fi # test "$_lt_caught_CXX_error" != yes
15047
15048 ac_ext=c
15049 ac_cpp='$CPP $CPPFLAGS'
15050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066         ac_config_commands="$ac_config_commands libtool"
15067
15068
15069
15070
15071 # Only expand once:
15072
15073
15074
15075 # The tests for host and target for $enable_largefile require
15076 # canonical names.
15077
15078
15079
15080 # As the $enable_largefile decision depends on --enable-plugins we must set it
15081 # even in directories otherwise not depending on the $plugins option.
15082
15083
15084   maybe_plugins=no
15085   for ac_header in dlfcn.h
15086 do :
15087   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15088 "
15089 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15090   cat >>confdefs.h <<_ACEOF
15091 #define HAVE_DLFCN_H 1
15092 _ACEOF
15093  maybe_plugins=yes
15094 fi
15095
15096 done
15097
15098   for ac_header in windows.h
15099 do :
15100   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15101 "
15102 if test "x$ac_cv_header_windows_h" = x""yes; then :
15103   cat >>confdefs.h <<_ACEOF
15104 #define HAVE_WINDOWS_H 1
15105 _ACEOF
15106  maybe_plugins=yes
15107 fi
15108
15109 done
15110
15111
15112   # Check whether --enable-plugins was given.
15113 if test "${enable_plugins+set}" = set; then :
15114   enableval=$enable_plugins; case "${enableval}" in
15115       no) plugins=no ;;
15116       *) plugins=yes
15117          if test "$maybe_plugins" != "yes" ; then
15118            as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15119          fi ;;
15120      esac
15121 else
15122   plugins=$maybe_plugins
15123
15124 fi
15125
15126   if test "$plugins" = "yes"; then
15127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15128 $as_echo_n "checking for library containing dlopen... " >&6; }
15129 if test "${ac_cv_search_dlopen+set}" = set; then :
15130   $as_echo_n "(cached) " >&6
15131 else
15132   ac_func_search_save_LIBS=$LIBS
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h.  */
15135
15136 /* Override any GCC internal prototype to avoid an error.
15137    Use char because int might match the return type of a GCC
15138    builtin and then its argument prototype would still apply.  */
15139 #ifdef __cplusplus
15140 extern "C"
15141 #endif
15142 char dlopen ();
15143 int
15144 main ()
15145 {
15146 return dlopen ();
15147   ;
15148   return 0;
15149 }
15150 _ACEOF
15151 for ac_lib in '' dl; do
15152   if test -z "$ac_lib"; then
15153     ac_res="none required"
15154   else
15155     ac_res=-l$ac_lib
15156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15157   fi
15158   if ac_fn_c_try_link "$LINENO"; then :
15159   ac_cv_search_dlopen=$ac_res
15160 fi
15161 rm -f core conftest.err conftest.$ac_objext \
15162     conftest$ac_exeext
15163   if test "${ac_cv_search_dlopen+set}" = set; then :
15164   break
15165 fi
15166 done
15167 if test "${ac_cv_search_dlopen+set}" = set; then :
15168
15169 else
15170   ac_cv_search_dlopen=no
15171 fi
15172 rm conftest.$ac_ext
15173 LIBS=$ac_func_search_save_LIBS
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15176 $as_echo "$ac_cv_search_dlopen" >&6; }
15177 ac_res=$ac_cv_search_dlopen
15178 if test "$ac_res" != no; then :
15179   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15180
15181 fi
15182
15183   fi
15184
15185
15186 case "${host}" in
15187   sparc-*-solaris*|i[3-7]86-*-solaris*)
15188     # On native 32bit sparc and ia32 solaris, large-file and procfs support
15189     # are mutually exclusive; and without procfs support, the bfd/ elf module
15190     # cannot provide certain routines such as elfcore_write_prpsinfo
15191     # or elfcore_write_prstatus.  So unless the user explicitly requested
15192     # large-file support through the --enable-largefile switch, disable
15193     # large-file support in favor of procfs support.
15194     test "${target}" = "${host}" -a "x$plugins" = xno \
15195       && : ${enable_largefile="no"}
15196     ;;
15197 esac
15198
15199 # Check whether --enable-largefile was given.
15200 if test "${enable_largefile+set}" = set; then :
15201   enableval=$enable_largefile;
15202 fi
15203
15204 if test "$enable_largefile" != no; then
15205
15206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15207 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15208 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15209   $as_echo_n "(cached) " >&6
15210 else
15211   ac_cv_sys_largefile_CC=no
15212      if test "$GCC" != yes; then
15213        ac_save_CC=$CC
15214        while :; do
15215          # IRIX 6.2 and later do not support large files by default,
15216          # so use the C compiler's -n32 option if that helps.
15217          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h.  */
15219 #include <sys/types.h>
15220  /* Check that off_t can represent 2**63 - 1 correctly.
15221     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15222     since some C++ compilers masquerading as C compilers
15223     incorrectly reject 9223372036854775807.  */
15224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15225   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15226                        && LARGE_OFF_T % 2147483647 == 1)
15227                       ? 1 : -1];
15228 int
15229 main ()
15230 {
15231
15232   ;
15233   return 0;
15234 }
15235 _ACEOF
15236          if ac_fn_c_try_compile "$LINENO"; then :
15237   break
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext
15240          CC="$CC -n32"
15241          if ac_fn_c_try_compile "$LINENO"; then :
15242   ac_cv_sys_largefile_CC=' -n32'; break
15243 fi
15244 rm -f core conftest.err conftest.$ac_objext
15245          break
15246        done
15247        CC=$ac_save_CC
15248        rm -f conftest.$ac_ext
15249     fi
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15252 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15253   if test "$ac_cv_sys_largefile_CC" != no; then
15254     CC=$CC$ac_cv_sys_largefile_CC
15255   fi
15256
15257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15258 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15259 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15260   $as_echo_n "(cached) " >&6
15261 else
15262   while :; do
15263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h.  */
15265 #include <sys/types.h>
15266  /* Check that off_t can represent 2**63 - 1 correctly.
15267     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15268     since some C++ compilers masquerading as C compilers
15269     incorrectly reject 9223372036854775807.  */
15270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15271   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15272                        && LARGE_OFF_T % 2147483647 == 1)
15273                       ? 1 : -1];
15274 int
15275 main ()
15276 {
15277
15278   ;
15279   return 0;
15280 }
15281 _ACEOF
15282 if ac_fn_c_try_compile "$LINENO"; then :
15283   ac_cv_sys_file_offset_bits=no; break
15284 fi
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h.  */
15288 #define _FILE_OFFSET_BITS 64
15289 #include <sys/types.h>
15290  /* Check that off_t can represent 2**63 - 1 correctly.
15291     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15292     since some C++ compilers masquerading as C compilers
15293     incorrectly reject 9223372036854775807.  */
15294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15295   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15296                        && LARGE_OFF_T % 2147483647 == 1)
15297                       ? 1 : -1];
15298 int
15299 main ()
15300 {
15301
15302   ;
15303   return 0;
15304 }
15305 _ACEOF
15306 if ac_fn_c_try_compile "$LINENO"; then :
15307   ac_cv_sys_file_offset_bits=64; break
15308 fi
15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310   ac_cv_sys_file_offset_bits=unknown
15311   break
15312 done
15313 fi
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15315 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15316 case $ac_cv_sys_file_offset_bits in #(
15317   no | unknown) ;;
15318   *)
15319 cat >>confdefs.h <<_ACEOF
15320 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15321 _ACEOF
15322 ;;
15323 esac
15324 rm -rf conftest*
15325   if test $ac_cv_sys_file_offset_bits = unknown; then
15326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15327 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15328 if test "${ac_cv_sys_large_files+set}" = set; then :
15329   $as_echo_n "(cached) " >&6
15330 else
15331   while :; do
15332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h.  */
15334 #include <sys/types.h>
15335  /* Check that off_t can represent 2**63 - 1 correctly.
15336     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15337     since some C++ compilers masquerading as C compilers
15338     incorrectly reject 9223372036854775807.  */
15339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15340   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15341                        && LARGE_OFF_T % 2147483647 == 1)
15342                       ? 1 : -1];
15343 int
15344 main ()
15345 {
15346
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"; then :
15352   ac_cv_sys_large_files=no; break
15353 fi
15354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h.  */
15357 #define _LARGE_FILES 1
15358 #include <sys/types.h>
15359  /* Check that off_t can represent 2**63 - 1 correctly.
15360     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15361     since some C++ compilers masquerading as C compilers
15362     incorrectly reject 9223372036854775807.  */
15363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15364   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15365                        && LARGE_OFF_T % 2147483647 == 1)
15366                       ? 1 : -1];
15367 int
15368 main ()
15369 {
15370
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 if ac_fn_c_try_compile "$LINENO"; then :
15376   ac_cv_sys_large_files=1; break
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379   ac_cv_sys_large_files=unknown
15380   break
15381 done
15382 fi
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15384 $as_echo "$ac_cv_sys_large_files" >&6; }
15385 case $ac_cv_sys_large_files in #(
15386   no | unknown) ;;
15387   *)
15388 cat >>confdefs.h <<_ACEOF
15389 #define _LARGE_FILES $ac_cv_sys_large_files
15390 _ACEOF
15391 ;;
15392 esac
15393 rm -rf conftest*
15394   fi
15395 fi
15396
15397
15398
15399
15400 # Check whether --with-lib-path was given.
15401 if test "${with_lib_path+set}" = set; then :
15402   withval=$with_lib_path; LIB_PATH=$withval
15403 fi
15404
15405 # Check whether --enable-targets was given.
15406 if test "${enable_targets+set}" = set; then :
15407   enableval=$enable_targets; case "${enableval}" in
15408   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15409             ;;
15410   no)       enable_targets= ;;
15411   *)        enable_targets=$enableval ;;
15412 esac
15413 fi
15414 # Check whether --enable-64-bit-bfd was given.
15415 if test "${enable_64_bit_bfd+set}" = set; then :
15416   enableval=$enable_64_bit_bfd; case "${enableval}" in
15417   yes)  want64=true  ;;
15418   no)   want64=false ;;
15419   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15420 esac
15421 else
15422   want64=false
15423 fi
15424
15425
15426 # Check whether --with-sysroot was given.
15427 if test "${with_sysroot+set}" = set; then :
15428   withval=$with_sysroot;
15429  case ${with_sysroot} in
15430  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15431  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15432  esac
15433
15434  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15435  use_sysroot=yes
15436
15437  if test "x$prefix" = xNONE; then
15438   test_prefix=/usr/local
15439  else
15440   test_prefix=$prefix
15441  fi
15442  if test "x$exec_prefix" = xNONE; then
15443   test_exec_prefix=$test_prefix
15444  else
15445   test_exec_prefix=$exec_prefix
15446  fi
15447  case ${TARGET_SYSTEM_ROOT} in
15448  "${test_prefix}"|"${test_prefix}/"*|\
15449  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15450  '${prefix}'|'${prefix}/'*|\
15451  '${exec_prefix}'|'${exec_prefix}/'*)
15452    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15453    TARGET_SYSTEM_ROOT_DEFINE="$t"
15454    ;;
15455  esac
15456
15457 else
15458
15459  use_sysroot=no
15460  TARGET_SYSTEM_ROOT=
15461  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15462
15463 fi
15464
15465
15466
15467
15468
15469 # Check whether --enable-gold was given.
15470 if test "${enable_gold+set}" = set; then :
15471   enableval=$enable_gold; case "${enableval}" in
15472  default)
15473    install_as_default=no
15474    installed_linker=ld.bfd
15475    ;;
15476  yes|no)
15477    install_as_default=yes
15478    installed_linker=ld.bfd
15479    ;;
15480  *)
15481    as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15482    ;;
15483  esac
15484 else
15485   install_as_default=yes
15486  installed_linker=ld.bfd
15487 fi
15488
15489
15490
15491
15492 # Check whether --enable-got was given.
15493 if test "${enable_got+set}" = set; then :
15494   enableval=$enable_got; case "${enableval}" in
15495   target | single | negative | multigot)  got_handling=$enableval ;;
15496   *)  as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15497 esac
15498 else
15499   got_handling=target
15500 fi
15501
15502
15503 case "${got_handling}" in
15504   target)
15505
15506 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15507  ;;
15508   single)
15509
15510 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15511  ;;
15512   negative)
15513
15514 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15515  ;;
15516   multigot)
15517
15518 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15519  ;;
15520   *)  as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15521 esac
15522
15523
15524 # Set the 'development' global.
15525 . $srcdir/../bfd/development.sh
15526
15527 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h.  */
15530 __GNUC__
15531 _ACEOF
15532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15533   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15534
15535 else
15536   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15537 fi
15538 rm -f conftest*
15539
15540
15541 # Check whether --enable-werror was given.
15542 if test "${enable_werror+set}" = set; then :
15543   enableval=$enable_werror; case "${enableval}" in
15544      yes | y) ERROR_ON_WARNING="yes" ;;
15545      no | n)  ERROR_ON_WARNING="no" ;;
15546      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15547    esac
15548 fi
15549
15550
15551 # Disable -Wformat by default when using gcc on mingw
15552 case "${host}" in
15553   *-*-mingw32*)
15554     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15555       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15556     fi
15557     ;;
15558   *) ;;
15559 esac
15560
15561 # Enable -Werror by default when using gcc.  Turn it off for releases.
15562 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15563     ERROR_ON_WARNING=yes
15564 fi
15565
15566 NO_WERROR=
15567 if test "${ERROR_ON_WARNING}" = yes ; then
15568     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15569     NO_WERROR="-Wno-error"
15570 fi
15571
15572 if test "${GCC}" = yes ; then
15573   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15574 fi
15575
15576 # Check whether --enable-build-warnings was given.
15577 if test "${enable_build_warnings+set}" = set; then :
15578   enableval=$enable_build_warnings; case "${enableval}" in
15579   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15580   no)   if test "${GCC}" = yes ; then
15581           WARN_CFLAGS="-w"
15582         fi;;
15583   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15584         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15585   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15586         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15587   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15588 esac
15589 fi
15590
15591
15592 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15593   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15594 fi
15595
15596
15597
15598
15599
15600
15601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15602 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15603 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15604   $as_echo_n "(cached) " >&6
15605 else
15606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h.  */
15608 #include <locale.h>
15609 int
15610 main ()
15611 {
15612 return LC_MESSAGES
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 if ac_fn_c_try_link "$LINENO"; then :
15618   am_cv_val_LC_MESSAGES=yes
15619 else
15620   am_cv_val_LC_MESSAGES=no
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext \
15623     conftest$ac_exeext conftest.$ac_ext
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15626 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15627   if test $am_cv_val_LC_MESSAGES = yes; then
15628
15629 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15630
15631   fi
15632
15633
15634 ac_config_headers="$ac_config_headers config.h:config.in"
15635
15636
15637 # PR 14072
15638
15639
15640 if test -z "$target" ; then
15641     as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15642 fi
15643 if test -z "$host" ; then
15644     as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15645 fi
15646
15647 # host-specific stuff:
15648
15649 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15650 # If we haven't got the data from the intl directory,
15651 # assume NLS is disabled.
15652 USE_NLS=no
15653 LIBINTL=
15654 LIBINTL_DEP=
15655 INCINTL=
15656 XGETTEXT=
15657 GMSGFMT=
15658 POSUB=
15659
15660 if test -f  ../intl/config.intl; then
15661   .  ../intl/config.intl
15662 fi
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15664 $as_echo_n "checking whether NLS is requested... " >&6; }
15665 if test x"$USE_NLS" != xyes; then
15666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15668 else
15669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15670 $as_echo "yes" >&6; }
15671
15672 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15673
15674
15675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15676 $as_echo_n "checking for catalogs to be installed... " >&6; }
15677   # Look for .po and .gmo files in the source directory.
15678   CATALOGS=
15679   XLINGUAS=
15680   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15681     # If there aren't any .gmo files the shell will give us the
15682     # literal string "../path/to/srcdir/po/*.gmo" which has to be
15683     # weeded out.
15684     case "$cat" in *\**)
15685       continue;;
15686     esac
15687     # The quadruple backslash is collapsed to a double backslash
15688     # by the backticks, then collapsed again by the double quotes,
15689     # leaving us with one backslash in the sed expression (right
15690     # before the dot that mustn't act as a wildcard).
15691     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15692     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15693     # The user is allowed to set LINGUAS to a list of languages to
15694     # install catalogs for.  If it's empty that means "all of them."
15695     if test "x$LINGUAS" = x; then
15696       CATALOGS="$CATALOGS $cat"
15697       XLINGUAS="$XLINGUAS $lang"
15698     else
15699       case "$LINGUAS" in *$lang*)
15700         CATALOGS="$CATALOGS $cat"
15701         XLINGUAS="$XLINGUAS $lang"
15702         ;;
15703       esac
15704     fi
15705   done
15706   LINGUAS="$XLINGUAS"
15707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15708 $as_echo "$LINGUAS" >&6; }
15709
15710
15711     DATADIRNAME=share
15712
15713   INSTOBJEXT=.mo
15714
15715   GENCAT=gencat
15716
15717   CATOBJEXT=.gmo
15718
15719 fi
15720
15721         MKINSTALLDIRS=
15722   if test -n "$ac_aux_dir"; then
15723     case "$ac_aux_dir" in
15724       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15725       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15726     esac
15727   fi
15728   if test -z "$MKINSTALLDIRS"; then
15729     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15730   fi
15731
15732
15733
15734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15735 $as_echo_n "checking whether NLS is requested... " >&6; }
15736     # Check whether --enable-nls was given.
15737 if test "${enable_nls+set}" = set; then :
15738   enableval=$enable_nls; USE_NLS=$enableval
15739 else
15740   USE_NLS=yes
15741 fi
15742
15743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15744 $as_echo "$USE_NLS" >&6; }
15745
15746
15747
15748
15749
15750
15751 # Prepare PATH_SEPARATOR.
15752 # The user is always right.
15753 if test "${PATH_SEPARATOR+set}" != set; then
15754   echo "#! /bin/sh" >conf$$.sh
15755   echo  "exit 0"   >>conf$$.sh
15756   chmod +x conf$$.sh
15757   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15758     PATH_SEPARATOR=';'
15759   else
15760     PATH_SEPARATOR=:
15761   fi
15762   rm -f conf$$.sh
15763 fi
15764
15765 # Find out how to test for executable files. Don't use a zero-byte file,
15766 # as systems may use methods other than mode bits to determine executability.
15767 cat >conf$$.file <<_ASEOF
15768 #! /bin/sh
15769 exit 0
15770 _ASEOF
15771 chmod +x conf$$.file
15772 if test -x conf$$.file >/dev/null 2>&1; then
15773   ac_executable_p="test -x"
15774 else
15775   ac_executable_p="test -f"
15776 fi
15777 rm -f conf$$.file
15778
15779 # Extract the first word of "msgfmt", so it can be a program name with args.
15780 set dummy msgfmt; ac_word=$2
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15782 $as_echo_n "checking for $ac_word... " >&6; }
15783 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15784   $as_echo_n "(cached) " >&6
15785 else
15786   case "$MSGFMT" in
15787   [\\/]* | ?:[\\/]*)
15788     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15789     ;;
15790   *)
15791     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15792     for ac_dir in $PATH; do
15793       IFS="$ac_save_IFS"
15794       test -z "$ac_dir" && ac_dir=.
15795       for ac_exec_ext in '' $ac_executable_extensions; do
15796         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15797           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15798      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15799             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15800             break 2
15801           fi
15802         fi
15803       done
15804     done
15805     IFS="$ac_save_IFS"
15806   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15807     ;;
15808 esac
15809 fi
15810 MSGFMT="$ac_cv_path_MSGFMT"
15811 if test "$MSGFMT" != ":"; then
15812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15813 $as_echo "$MSGFMT" >&6; }
15814 else
15815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15817 fi
15818
15819   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15820 set dummy gmsgfmt; ac_word=$2
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15822 $as_echo_n "checking for $ac_word... " >&6; }
15823 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15824   $as_echo_n "(cached) " >&6
15825 else
15826   case $GMSGFMT in
15827   [\\/]* | ?:[\\/]*)
15828   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15829   ;;
15830   *)
15831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15832 for as_dir in $PATH
15833 do
15834   IFS=$as_save_IFS
15835   test -z "$as_dir" && as_dir=.
15836     for ac_exec_ext in '' $ac_executable_extensions; do
15837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15838     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15840     break 2
15841   fi
15842 done
15843   done
15844 IFS=$as_save_IFS
15845
15846   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15847   ;;
15848 esac
15849 fi
15850 GMSGFMT=$ac_cv_path_GMSGFMT
15851 if test -n "$GMSGFMT"; then
15852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15853 $as_echo "$GMSGFMT" >&6; }
15854 else
15855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15857 fi
15858
15859
15860
15861
15862 # Prepare PATH_SEPARATOR.
15863 # The user is always right.
15864 if test "${PATH_SEPARATOR+set}" != set; then
15865   echo "#! /bin/sh" >conf$$.sh
15866   echo  "exit 0"   >>conf$$.sh
15867   chmod +x conf$$.sh
15868   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15869     PATH_SEPARATOR=';'
15870   else
15871     PATH_SEPARATOR=:
15872   fi
15873   rm -f conf$$.sh
15874 fi
15875
15876 # Find out how to test for executable files. Don't use a zero-byte file,
15877 # as systems may use methods other than mode bits to determine executability.
15878 cat >conf$$.file <<_ASEOF
15879 #! /bin/sh
15880 exit 0
15881 _ASEOF
15882 chmod +x conf$$.file
15883 if test -x conf$$.file >/dev/null 2>&1; then
15884   ac_executable_p="test -x"
15885 else
15886   ac_executable_p="test -f"
15887 fi
15888 rm -f conf$$.file
15889
15890 # Extract the first word of "xgettext", so it can be a program name with args.
15891 set dummy xgettext; ac_word=$2
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15893 $as_echo_n "checking for $ac_word... " >&6; }
15894 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15895   $as_echo_n "(cached) " >&6
15896 else
15897   case "$XGETTEXT" in
15898   [\\/]* | ?:[\\/]*)
15899     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15900     ;;
15901   *)
15902     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15903     for ac_dir in $PATH; do
15904       IFS="$ac_save_IFS"
15905       test -z "$ac_dir" && ac_dir=.
15906       for ac_exec_ext in '' $ac_executable_extensions; do
15907         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15908           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15909      (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
15910             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15911             break 2
15912           fi
15913         fi
15914       done
15915     done
15916     IFS="$ac_save_IFS"
15917   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15918     ;;
15919 esac
15920 fi
15921 XGETTEXT="$ac_cv_path_XGETTEXT"
15922 if test "$XGETTEXT" != ":"; then
15923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15924 $as_echo "$XGETTEXT" >&6; }
15925 else
15926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927 $as_echo "no" >&6; }
15928 fi
15929
15930     rm -f messages.po
15931
15932
15933 # Prepare PATH_SEPARATOR.
15934 # The user is always right.
15935 if test "${PATH_SEPARATOR+set}" != set; then
15936   echo "#! /bin/sh" >conf$$.sh
15937   echo  "exit 0"   >>conf$$.sh
15938   chmod +x conf$$.sh
15939   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15940     PATH_SEPARATOR=';'
15941   else
15942     PATH_SEPARATOR=:
15943   fi
15944   rm -f conf$$.sh
15945 fi
15946
15947 # Find out how to test for executable files. Don't use a zero-byte file,
15948 # as systems may use methods other than mode bits to determine executability.
15949 cat >conf$$.file <<_ASEOF
15950 #! /bin/sh
15951 exit 0
15952 _ASEOF
15953 chmod +x conf$$.file
15954 if test -x conf$$.file >/dev/null 2>&1; then
15955   ac_executable_p="test -x"
15956 else
15957   ac_executable_p="test -f"
15958 fi
15959 rm -f conf$$.file
15960
15961 # Extract the first word of "msgmerge", so it can be a program name with args.
15962 set dummy msgmerge; ac_word=$2
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15964 $as_echo_n "checking for $ac_word... " >&6; }
15965 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15966   $as_echo_n "(cached) " >&6
15967 else
15968   case "$MSGMERGE" in
15969   [\\/]* | ?:[\\/]*)
15970     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15971     ;;
15972   *)
15973     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15974     for ac_dir in $PATH; do
15975       IFS="$ac_save_IFS"
15976       test -z "$ac_dir" && ac_dir=.
15977       for ac_exec_ext in '' $ac_executable_extensions; do
15978         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15979           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15980             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15981             break 2
15982           fi
15983         fi
15984       done
15985     done
15986     IFS="$ac_save_IFS"
15987   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15988     ;;
15989 esac
15990 fi
15991 MSGMERGE="$ac_cv_path_MSGMERGE"
15992 if test "$MSGMERGE" != ":"; then
15993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15994 $as_echo "$MSGMERGE" >&6; }
15995 else
15996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15997 $as_echo "no" >&6; }
15998 fi
15999
16000
16001       if test "$GMSGFMT" != ":"; then
16002             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16003        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16004       : ;
16005     else
16006       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16008 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16009       GMSGFMT=":"
16010     fi
16011   fi
16012
16013       if test "$XGETTEXT" != ":"; then
16014             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16015        (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
16016       : ;
16017     else
16018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16019 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16020       XGETTEXT=":"
16021     fi
16022         rm -f messages.po
16023   fi
16024
16025   ac_config_commands="$ac_config_commands default-1"
16026
16027
16028
16029
16030
16031 for ac_prog in 'bison -y' byacc
16032 do
16033   # Extract the first word of "$ac_prog", so it can be a program name with args.
16034 set dummy $ac_prog; ac_word=$2
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036 $as_echo_n "checking for $ac_word... " >&6; }
16037 if test "${ac_cv_prog_YACC+set}" = set; then :
16038   $as_echo_n "(cached) " >&6
16039 else
16040   if test -n "$YACC"; then
16041   ac_cv_prog_YACC="$YACC" # Let the user override the test.
16042 else
16043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044 for as_dir in $PATH
16045 do
16046   IFS=$as_save_IFS
16047   test -z "$as_dir" && as_dir=.
16048     for ac_exec_ext in '' $ac_executable_extensions; do
16049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16050     ac_cv_prog_YACC="$ac_prog"
16051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16052     break 2
16053   fi
16054 done
16055   done
16056 IFS=$as_save_IFS
16057
16058 fi
16059 fi
16060 YACC=$ac_cv_prog_YACC
16061 if test -n "$YACC"; then
16062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16063 $as_echo "$YACC" >&6; }
16064 else
16065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16066 $as_echo "no" >&6; }
16067 fi
16068
16069
16070   test -n "$YACC" && break
16071 done
16072 test -n "$YACC" || YACC="yacc"
16073
16074 for ac_prog in flex lex
16075 do
16076   # Extract the first word of "$ac_prog", so it can be a program name with args.
16077 set dummy $ac_prog; ac_word=$2
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16079 $as_echo_n "checking for $ac_word... " >&6; }
16080 if test "${ac_cv_prog_LEX+set}" = set; then :
16081   $as_echo_n "(cached) " >&6
16082 else
16083   if test -n "$LEX"; then
16084   ac_cv_prog_LEX="$LEX" # Let the user override the test.
16085 else
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087 for as_dir in $PATH
16088 do
16089   IFS=$as_save_IFS
16090   test -z "$as_dir" && as_dir=.
16091     for ac_exec_ext in '' $ac_executable_extensions; do
16092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16093     ac_cv_prog_LEX="$ac_prog"
16094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16095     break 2
16096   fi
16097 done
16098   done
16099 IFS=$as_save_IFS
16100
16101 fi
16102 fi
16103 LEX=$ac_cv_prog_LEX
16104 if test -n "$LEX"; then
16105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16106 $as_echo "$LEX" >&6; }
16107 else
16108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16110 fi
16111
16112
16113   test -n "$LEX" && break
16114 done
16115 test -n "$LEX" || LEX=":"
16116
16117 if test "x$LEX" != "x:"; then
16118   cat >conftest.l <<_ACEOF
16119 %%
16120 a { ECHO; }
16121 b { REJECT; }
16122 c { yymore (); }
16123 d { yyless (1); }
16124 e { yyless (input () != 0); }
16125 f { unput (yytext[0]); }
16126 . { BEGIN INITIAL; }
16127 %%
16128 #ifdef YYTEXT_POINTER
16129 extern char *yytext;
16130 #endif
16131 int
16132 main (void)
16133 {
16134   return ! yylex () + ! yywrap ();
16135 }
16136 _ACEOF
16137 { { ac_try="$LEX conftest.l"
16138 case "(($ac_try" in
16139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140   *) ac_try_echo=$ac_try;;
16141 esac
16142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16143 $as_echo "$ac_try_echo"; } >&5
16144   (eval "$LEX conftest.l") 2>&5
16145   ac_status=$?
16146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147   test $ac_status = 0; }
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16149 $as_echo_n "checking lex output file root... " >&6; }
16150 if test "${ac_cv_prog_lex_root+set}" = set; then :
16151   $as_echo_n "(cached) " >&6
16152 else
16153
16154 if test -f lex.yy.c; then
16155   ac_cv_prog_lex_root=lex.yy
16156 elif test -f lexyy.c; then
16157   ac_cv_prog_lex_root=lexyy
16158 else
16159   as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16160 fi
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16163 $as_echo "$ac_cv_prog_lex_root" >&6; }
16164 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16165
16166 if test -z "${LEXLIB+set}"; then
16167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16168 $as_echo_n "checking lex library... " >&6; }
16169 if test "${ac_cv_lib_lex+set}" = set; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172
16173     ac_save_LIBS=$LIBS
16174     ac_cv_lib_lex='none needed'
16175     for ac_lib in '' -lfl -ll; do
16176       LIBS="$ac_lib $ac_save_LIBS"
16177       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h.  */
16179 `cat $LEX_OUTPUT_ROOT.c`
16180 _ACEOF
16181 if ac_fn_c_try_link "$LINENO"; then :
16182   ac_cv_lib_lex=$ac_lib
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext \
16185     conftest$ac_exeext conftest.$ac_ext
16186       test "$ac_cv_lib_lex" != 'none needed' && break
16187     done
16188     LIBS=$ac_save_LIBS
16189
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16192 $as_echo "$ac_cv_lib_lex" >&6; }
16193   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16194 fi
16195
16196
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16198 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16199 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16200   $as_echo_n "(cached) " >&6
16201 else
16202   # POSIX says lex can declare yytext either as a pointer or an array; the
16203 # default is implementation-dependent.  Figure out which it is, since
16204 # not all implementations provide the %pointer and %array declarations.
16205 ac_cv_prog_lex_yytext_pointer=no
16206 ac_save_LIBS=$LIBS
16207 LIBS="$LEXLIB $ac_save_LIBS"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h.  */
16210 #define YYTEXT_POINTER 1
16211 `cat $LEX_OUTPUT_ROOT.c`
16212 _ACEOF
16213 if ac_fn_c_try_link "$LINENO"; then :
16214   ac_cv_prog_lex_yytext_pointer=yes
16215 fi
16216 rm -f core conftest.err conftest.$ac_objext \
16217     conftest$ac_exeext conftest.$ac_ext
16218 LIBS=$ac_save_LIBS
16219
16220 fi
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16222 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16223 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16224
16225 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16226
16227 fi
16228 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16229
16230 fi
16231 if test "$LEX" = :; then
16232   LEX=${am_missing_run}flex
16233 fi
16234
16235
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16237 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16238     # Check whether --enable-maintainer-mode was given.
16239 if test "${enable_maintainer_mode+set}" = set; then :
16240   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16241 else
16242   USE_MAINTAINER_MODE=no
16243 fi
16244
16245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16246 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16247    if test $USE_MAINTAINER_MODE = yes; then
16248   MAINTAINER_MODE_TRUE=
16249   MAINTAINER_MODE_FALSE='#'
16250 else
16251   MAINTAINER_MODE_TRUE='#'
16252   MAINTAINER_MODE_FALSE=
16253 fi
16254
16255   MAINT=$MAINTAINER_MODE_TRUE
16256
16257
16258  if false; then
16259   GENINSRC_NEVER_TRUE=
16260   GENINSRC_NEVER_FALSE='#'
16261 else
16262   GENINSRC_NEVER_TRUE='#'
16263   GENINSRC_NEVER_FALSE=
16264 fi
16265
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16267 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16268 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16269   $as_echo_n "(cached) " >&6
16270 else
16271    echo abfoo >t1
16272   echo cdfoo >t2
16273   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16274   if cmp t1 t2 2 2 > /dev/null 2>&1; then
16275     if cmp t1 t2 1 1 > /dev/null 2>&1; then
16276       :
16277     else
16278       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16279     fi
16280   fi
16281   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16282     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16283       :
16284     else
16285       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16286     fi
16287   fi
16288   rm t1 t2
16289
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16292 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16293 do_compare="$gcc_cv_prog_cmp_skip"
16294
16295
16296
16297 . ${srcdir}/configure.host
16298
16299
16300
16301
16302
16303
16304
16305
16306 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16307 do :
16308   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16310 eval as_val=\$$as_ac_Header
16311    if test "x$as_val" = x""yes; then :
16312   cat >>confdefs.h <<_ACEOF
16313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16314 _ACEOF
16315
16316 fi
16317
16318 done
16319
16320 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16321 do :
16322   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16324 eval as_val=\$$as_ac_Header
16325    if test "x$as_val" = x""yes; then :
16326   cat >>confdefs.h <<_ACEOF
16327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16328 _ACEOF
16329
16330 fi
16331
16332 done
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16335 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16336 if test "${gcc_cv_header_string+set}" = set; then :
16337   $as_echo_n "(cached) " >&6
16338 else
16339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h.  */
16341 #include <string.h>
16342 #include <strings.h>
16343 int
16344 main ()
16345 {
16346
16347   ;
16348   return 0;
16349 }
16350 _ACEOF
16351 if ac_fn_c_try_compile "$LINENO"; then :
16352   gcc_cv_header_string=yes
16353 else
16354   gcc_cv_header_string=no
16355 fi
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 fi
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16359 $as_echo "$gcc_cv_header_string" >&6; }
16360 if test $gcc_cv_header_string = yes; then
16361
16362 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16363
16364 fi
16365
16366 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16367 do :
16368   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16370 eval as_val=\$$as_ac_var
16371    if test "x$as_val" = x""yes; then :
16372   cat >>confdefs.h <<_ACEOF
16373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16374 _ACEOF
16375
16376 fi
16377 done
16378
16379 for ac_func in open lseek close
16380 do :
16381   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16383 eval as_val=\$$as_ac_var
16384    if test "x$as_val" = x""yes; then :
16385   cat >>confdefs.h <<_ACEOF
16386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16387 _ACEOF
16388
16389 fi
16390 done
16391
16392 ac_header_dirent=no
16393 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16394   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16396 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16398   $as_echo_n "(cached) " >&6
16399 else
16400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h.  */
16402 #include <sys/types.h>
16403 #include <$ac_hdr>
16404
16405 int
16406 main ()
16407 {
16408 if ((DIR *) 0)
16409 return 0;
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 if ac_fn_c_try_compile "$LINENO"; then :
16415   eval "$as_ac_Header=yes"
16416 else
16417   eval "$as_ac_Header=no"
16418 fi
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 fi
16421 eval ac_res=\$$as_ac_Header
16422                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16423 $as_echo "$ac_res" >&6; }
16424 eval as_val=\$$as_ac_Header
16425    if test "x$as_val" = x""yes; then :
16426   cat >>confdefs.h <<_ACEOF
16427 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16428 _ACEOF
16429
16430 ac_header_dirent=$ac_hdr; break
16431 fi
16432
16433 done
16434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16435 if test $ac_header_dirent = dirent.h; then
16436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16437 $as_echo_n "checking for library containing opendir... " >&6; }
16438 if test "${ac_cv_search_opendir+set}" = set; then :
16439   $as_echo_n "(cached) " >&6
16440 else
16441   ac_func_search_save_LIBS=$LIBS
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h.  */
16444
16445 /* Override any GCC internal prototype to avoid an error.
16446    Use char because int might match the return type of a GCC
16447    builtin and then its argument prototype would still apply.  */
16448 #ifdef __cplusplus
16449 extern "C"
16450 #endif
16451 char opendir ();
16452 int
16453 main ()
16454 {
16455 return opendir ();
16456   ;
16457   return 0;
16458 }
16459 _ACEOF
16460 for ac_lib in '' dir; do
16461   if test -z "$ac_lib"; then
16462     ac_res="none required"
16463   else
16464     ac_res=-l$ac_lib
16465     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16466   fi
16467   if ac_fn_c_try_link "$LINENO"; then :
16468   ac_cv_search_opendir=$ac_res
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext \
16471     conftest$ac_exeext
16472   if test "${ac_cv_search_opendir+set}" = set; then :
16473   break
16474 fi
16475 done
16476 if test "${ac_cv_search_opendir+set}" = set; then :
16477
16478 else
16479   ac_cv_search_opendir=no
16480 fi
16481 rm conftest.$ac_ext
16482 LIBS=$ac_func_search_save_LIBS
16483 fi
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16485 $as_echo "$ac_cv_search_opendir" >&6; }
16486 ac_res=$ac_cv_search_opendir
16487 if test "$ac_res" != no; then :
16488   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16489
16490 fi
16491
16492 else
16493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16494 $as_echo_n "checking for library containing opendir... " >&6; }
16495 if test "${ac_cv_search_opendir+set}" = set; then :
16496   $as_echo_n "(cached) " >&6
16497 else
16498   ac_func_search_save_LIBS=$LIBS
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h.  */
16501
16502 /* Override any GCC internal prototype to avoid an error.
16503    Use char because int might match the return type of a GCC
16504    builtin and then its argument prototype would still apply.  */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char opendir ();
16509 int
16510 main ()
16511 {
16512 return opendir ();
16513   ;
16514   return 0;
16515 }
16516 _ACEOF
16517 for ac_lib in '' x; do
16518   if test -z "$ac_lib"; then
16519     ac_res="none required"
16520   else
16521     ac_res=-l$ac_lib
16522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16523   fi
16524   if ac_fn_c_try_link "$LINENO"; then :
16525   ac_cv_search_opendir=$ac_res
16526 fi
16527 rm -f core conftest.err conftest.$ac_objext \
16528     conftest$ac_exeext
16529   if test "${ac_cv_search_opendir+set}" = set; then :
16530   break
16531 fi
16532 done
16533 if test "${ac_cv_search_opendir+set}" = set; then :
16534
16535 else
16536   ac_cv_search_opendir=no
16537 fi
16538 rm conftest.$ac_ext
16539 LIBS=$ac_func_search_save_LIBS
16540 fi
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16542 $as_echo "$ac_cv_search_opendir" >&6; }
16543 ac_res=$ac_cv_search_opendir
16544 if test "$ac_res" != no; then :
16545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16546
16547 fi
16548
16549 fi
16550
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16553 $as_echo_n "checking for library containing dlopen... " >&6; }
16554 if test "${ac_cv_search_dlopen+set}" = set; then :
16555   $as_echo_n "(cached) " >&6
16556 else
16557   ac_func_search_save_LIBS=$LIBS
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h.  */
16560
16561 /* Override any GCC internal prototype to avoid an error.
16562    Use char because int might match the return type of a GCC
16563    builtin and then its argument prototype would still apply.  */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 char dlopen ();
16568 int
16569 main ()
16570 {
16571 return dlopen ();
16572   ;
16573   return 0;
16574 }
16575 _ACEOF
16576 for ac_lib in '' dl; do
16577   if test -z "$ac_lib"; then
16578     ac_res="none required"
16579   else
16580     ac_res=-l$ac_lib
16581     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16582   fi
16583   if ac_fn_c_try_link "$LINENO"; then :
16584   ac_cv_search_dlopen=$ac_res
16585 fi
16586 rm -f core conftest.err conftest.$ac_objext \
16587     conftest$ac_exeext
16588   if test "${ac_cv_search_dlopen+set}" = set; then :
16589   break
16590 fi
16591 done
16592 if test "${ac_cv_search_dlopen+set}" = set; then :
16593
16594 else
16595   ac_cv_search_dlopen=no
16596 fi
16597 rm conftest.$ac_ext
16598 LIBS=$ac_func_search_save_LIBS
16599 fi
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16601 $as_echo "$ac_cv_search_dlopen" >&6; }
16602 ac_res=$ac_cv_search_dlopen
16603 if test "$ac_res" != no; then :
16604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16605
16606 fi
16607
16608  if test x$plugins = xyes; then
16609   ENABLE_PLUGINS_TRUE=
16610   ENABLE_PLUGINS_FALSE='#'
16611 else
16612   ENABLE_PLUGINS_TRUE='#'
16613   ENABLE_PLUGINS_FALSE=
16614 fi
16615
16616
16617 # Check whether --enable-initfini-array was given.
16618 if test "${enable_initfini_array+set}" = set; then :
16619   enableval=$enable_initfini_array;
16620 else
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16623 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16624 if test "${gcc_cv_initfini_array+set}" = set; then :
16625   $as_echo_n "(cached) " >&6
16626 else
16627     if test "x${build}" = "x${target}" ; then
16628     if test "$cross_compiling" = yes; then :
16629   gcc_cv_initfini_array=no
16630 else
16631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h.  */
16633
16634 static int x = -1;
16635 int main (void) { return x; }
16636 int foo (void) { x = 0; }
16637 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16638 _ACEOF
16639 if ac_fn_c_try_run "$LINENO"; then :
16640   gcc_cv_initfini_array=yes
16641 else
16642   gcc_cv_initfini_array=no
16643 fi
16644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16645   conftest.$ac_objext conftest.beam conftest.$ac_ext
16646 fi
16647
16648    else
16649      gcc_cv_initfini_array=no
16650    fi
16651 fi
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16653 $as_echo "$gcc_cv_initfini_array" >&6; }
16654   enable_initfini_array=$gcc_cv_initfini_array
16655
16656 fi
16657
16658
16659 if test $enable_initfini_array = yes; then
16660
16661 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16662
16663 fi
16664
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16666 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16667 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16668   $as_echo_n "(cached) " >&6
16669 else
16670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h.  */
16672 #include <unistd.h>
16673 int
16674 main ()
16675 {
16676 extern int getopt (int, char *const*, const char *);
16677   ;
16678   return 0;
16679 }
16680 _ACEOF
16681 if ac_fn_c_try_compile "$LINENO"; then :
16682   ld_cv_decl_getopt_unistd_h=yes
16683 else
16684   ld_cv_decl_getopt_unistd_h=no
16685 fi
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687 fi
16688
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16690 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16691 if test $ld_cv_decl_getopt_unistd_h = yes; then
16692
16693 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16694
16695 fi
16696
16697
16698 case "${host}" in
16699 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16700
16701 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16702  ;;
16703 esac
16704
16705 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16706 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16707   ac_have_decl=1
16708 else
16709   ac_have_decl=0
16710 fi
16711
16712 cat >>confdefs.h <<_ACEOF
16713 #define HAVE_DECL_STRSTR $ac_have_decl
16714 _ACEOF
16715 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16716 if test "x$ac_cv_have_decl_free" = x""yes; then :
16717   ac_have_decl=1
16718 else
16719   ac_have_decl=0
16720 fi
16721
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_DECL_FREE $ac_have_decl
16724 _ACEOF
16725 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16726 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16727   ac_have_decl=1
16728 else
16729   ac_have_decl=0
16730 fi
16731
16732 cat >>confdefs.h <<_ACEOF
16733 #define HAVE_DECL_SBRK $ac_have_decl
16734 _ACEOF
16735 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16736 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16737   ac_have_decl=1
16738 else
16739   ac_have_decl=0
16740 fi
16741
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_DECL_GETENV $ac_have_decl
16744 _ACEOF
16745 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16746 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16747   ac_have_decl=1
16748 else
16749   ac_have_decl=0
16750 fi
16751
16752 cat >>confdefs.h <<_ACEOF
16753 #define HAVE_DECL_ENVIRON $ac_have_decl
16754 _ACEOF
16755
16756
16757 # Link in zlib if we can.  This is needed only for the bootstrap tests
16758 # right now, since those tests use libbfd, which depends on zlib.
16759
16760   # See if the user specified whether he wants zlib support or not.
16761
16762 # Check whether --with-zlib was given.
16763 if test "${with_zlib+set}" = set; then :
16764   withval=$with_zlib;
16765 else
16766   with_zlib=auto
16767 fi
16768
16769
16770   if test "$with_zlib" != "no"; then
16771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16772 $as_echo_n "checking for library containing zlibVersion... " >&6; }
16773 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16774   $as_echo_n "(cached) " >&6
16775 else
16776   ac_func_search_save_LIBS=$LIBS
16777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h.  */
16779
16780 /* Override any GCC internal prototype to avoid an error.
16781    Use char because int might match the return type of a GCC
16782    builtin and then its argument prototype would still apply.  */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char zlibVersion ();
16787 int
16788 main ()
16789 {
16790 return zlibVersion ();
16791   ;
16792   return 0;
16793 }
16794 _ACEOF
16795 for ac_lib in '' z; do
16796   if test -z "$ac_lib"; then
16797     ac_res="none required"
16798   else
16799     ac_res=-l$ac_lib
16800     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16801   fi
16802   if ac_fn_c_try_link "$LINENO"; then :
16803   ac_cv_search_zlibVersion=$ac_res
16804 fi
16805 rm -f core conftest.err conftest.$ac_objext \
16806     conftest$ac_exeext
16807   if test "${ac_cv_search_zlibVersion+set}" = set; then :
16808   break
16809 fi
16810 done
16811 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16812
16813 else
16814   ac_cv_search_zlibVersion=no
16815 fi
16816 rm conftest.$ac_ext
16817 LIBS=$ac_func_search_save_LIBS
16818 fi
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16820 $as_echo "$ac_cv_search_zlibVersion" >&6; }
16821 ac_res=$ac_cv_search_zlibVersion
16822 if test "$ac_res" != no; then :
16823   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16824   for ac_header in zlib.h
16825 do :
16826   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16827 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16828   cat >>confdefs.h <<_ACEOF
16829 #define HAVE_ZLIB_H 1
16830 _ACEOF
16831
16832 fi
16833
16834 done
16835
16836 fi
16837
16838     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
16839       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
16840     fi
16841   fi
16842
16843
16844 # When converting linker scripts into strings for use in emulation
16845 # files, use astring.sed if the compiler supports ANSI string
16846 # concatenation, or ostring.sed otherwise.  This is to support the
16847 # broken Microsoft MSVC compiler, which limits the length of string
16848 # constants, while still supporting pre-ANSI compilers which do not
16849 # support string concatenation.
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16851 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16852 if test "${ld_cv_string_concatenation+set}" = set; then :
16853   $as_echo_n "(cached) " >&6
16854 else
16855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h.  */
16857
16858 int
16859 main ()
16860 {
16861 char *a = "a" "a";
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 if ac_fn_c_try_compile "$LINENO"; then :
16867   ld_cv_string_concatenation=yes
16868 else
16869   ld_cv_string_concatenation=no
16870 fi
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16872 fi
16873
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16875 $as_echo "$ld_cv_string_concatenation" >&6; }
16876 if test "$ld_cv_string_concatenation" = "yes"; then
16877   STRINGIFY=astring.sed
16878 else
16879   STRINGIFY=ostring.sed
16880 fi
16881
16882
16883 # target-specific stuff:
16884
16885 all_targets=
16886 EMUL=
16887 all_emuls=
16888 all_emul_extras=
16889 all_libpath=
16890
16891 rm -f tdirs
16892
16893 # If the host is 64-bit, then we enable 64-bit targets by default.
16894 # This is consistent with what ../bfd/configure.ac does.
16895 if test x${want64} = xfalse; then
16896   # The cast to long int works around a bug in the HP C Compiler
16897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16899 # This bug is HP SR number 8606223364.
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16901 $as_echo_n "checking size of void *... " >&6; }
16902 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16903   $as_echo_n "(cached) " >&6
16904 else
16905   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16906
16907 else
16908   if test "$ac_cv_type_void_p" = yes; then
16909      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16911 { as_fn_set_status 77
16912 as_fn_error "cannot compute sizeof (void *)
16913 See \`config.log' for more details." "$LINENO" 5; }; }
16914    else
16915      ac_cv_sizeof_void_p=0
16916    fi
16917 fi
16918
16919 fi
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16921 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16922
16923
16924
16925 cat >>confdefs.h <<_ACEOF
16926 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16927 _ACEOF
16928
16929
16930   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
16931     want64=true
16932   fi
16933 fi
16934
16935 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16936 do
16937   if test "$targ_alias" = "all"; then
16938     all_targets=true
16939   else
16940     # Canonicalize the secondary target names.
16941     result=`$ac_config_sub $targ_alias 2>/dev/null`
16942     if test -n "$result"; then
16943         targ=$result
16944     else
16945         targ=$targ_alias
16946     fi
16947
16948     . ${srcdir}/configure.tgt
16949
16950     if test "$targ" = "$target"; then
16951       EMUL=$targ_emul
16952     fi
16953
16954     if test x${want64} = xfalse; then
16955       . ${srcdir}/../bfd/config.bfd
16956     fi
16957
16958     if test x${want64} = xtrue; then
16959       targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16960       targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16961     fi
16962
16963     for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16964         case " $all_emuls " in
16965         *" e${i}.o "*) ;;
16966         *)
16967           all_emuls="$all_emuls e${i}.o"
16968           eval result=\$tdir_$i
16969           test -z "$result" && result=$targ_alias
16970           echo tdir_$i=$result >> tdirs
16971           ;;
16972         esac
16973     done
16974
16975     for i in $targ_emul $targ_extra_libpath; do
16976         case " $all_libpath " in
16977         *" ${i} "*) ;;
16978         *)
16979           if test -z "$all_libpath"; then
16980             all_libpath=${i}
16981           else
16982             all_libpath="$all_libpath ${i}"
16983           fi
16984           ;;
16985         esac
16986     done
16987
16988     for i in $targ_extra_ofiles; do
16989         case " $all_emul_extras " in
16990         *" ${i} "*) ;;
16991         *)
16992           all_emul_extras="$all_emul_extras ${i}"
16993           ;;
16994         esac
16995     done
16996
16997   fi
16998 done
16999
17000
17001
17002 TDIRS=tdirs
17003
17004
17005 if test x${all_targets} = xtrue; then
17006   if test x${want64} = xtrue; then
17007     EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17008     EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17009   else
17010     EMULATION_OFILES='$(ALL_EMULATIONS)'
17011     EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17012   fi
17013 else
17014   EMULATION_OFILES=$all_emuls
17015   EMUL_EXTRA_OFILES=$all_emul_extras
17016 fi
17017
17018
17019
17020
17021 EMULATION_LIBPATH=$all_libpath
17022
17023
17024 if test x${enable_static} = xno; then
17025   TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17026 else
17027   TESTBFDLIB="../bfd/.libs/libbfd.a"
17028 fi
17029
17030
17031 target_vendor=${target_vendor=$host_vendor}
17032 case "$target_vendor" in
17033   hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17034   *)  EXTRA_SHLIB_EXTENSION= ;;
17035 esac
17036
17037 case "$target_os" in
17038   lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17039 esac
17040
17041 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17042
17043 cat >>confdefs.h <<_ACEOF
17044 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17045 _ACEOF
17046
17047 fi
17048
17049
17050
17051
17052
17053
17054 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17055
17056 cat >confcache <<\_ACEOF
17057 # This file is a shell script that caches the results of configure
17058 # tests run on this system so they can be shared between configure
17059 # scripts and configure runs, see configure's option --config-cache.
17060 # It is not useful on other systems.  If it contains results you don't
17061 # want to keep, you may remove or edit it.
17062 #
17063 # config.status only pays attention to the cache file if you give it
17064 # the --recheck option to rerun configure.
17065 #
17066 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17067 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17068 # following values.
17069
17070 _ACEOF
17071
17072 # The following way of writing the cache mishandles newlines in values,
17073 # but we know of no workaround that is simple, portable, and efficient.
17074 # So, we kill variables containing newlines.
17075 # Ultrix sh set writes to stderr and can't be redirected directly,
17076 # and sets the high bit in the cache file unless we assign to the vars.
17077 (
17078   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17079     eval ac_val=\$$ac_var
17080     case $ac_val in #(
17081     *${as_nl}*)
17082       case $ac_var in #(
17083       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17084 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17085       esac
17086       case $ac_var in #(
17087       _ | IFS | as_nl) ;; #(
17088       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17089       *) { eval $ac_var=; unset $ac_var;} ;;
17090       esac ;;
17091     esac
17092   done
17093
17094   (set) 2>&1 |
17095     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17096     *${as_nl}ac_space=\ *)
17097       # `set' does not quote correctly, so add quotes: double-quote
17098       # substitution turns \\\\ into \\, and sed turns \\ into \.
17099       sed -n \
17100         "s/'/'\\\\''/g;
17101           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17102       ;; #(
17103     *)
17104       # `set' quotes correctly as required by POSIX, so do not add quotes.
17105       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17106       ;;
17107     esac |
17108     sort
17109 ) |
17110   sed '
17111      /^ac_cv_env_/b end
17112      t clear
17113      :clear
17114      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17115      t end
17116      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17117      :end' >>confcache
17118 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17119   if test -w "$cache_file"; then
17120     test "x$cache_file" != "x/dev/null" &&
17121       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17122 $as_echo "$as_me: updating cache $cache_file" >&6;}
17123     cat confcache >$cache_file
17124   else
17125     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17126 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17127   fi
17128 fi
17129 rm -f confcache
17130
17131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17132 # Let make expand exec_prefix.
17133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17134
17135 DEFS=-DHAVE_CONFIG_H
17136
17137 ac_libobjs=
17138 ac_ltlibobjs=
17139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17140   # 1. Remove the extension, and $U if already installed.
17141   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17142   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17143   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17144   #    will be set to the directory where LIBOBJS objects are built.
17145   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17146   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17147 done
17148 LIBOBJS=$ac_libobjs
17149
17150 LTLIBOBJS=$ac_ltlibobjs
17151
17152
17153 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17154   as_fn_error "conditional \"AMDEP\" was never defined.
17155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 fi
17157 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17158   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17160 fi
17161  if test -n "$EXEEXT"; then
17162   am__EXEEXT_TRUE=
17163   am__EXEEXT_FALSE='#'
17164 else
17165   am__EXEEXT_TRUE='#'
17166   am__EXEEXT_FALSE=
17167 fi
17168
17169 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17170   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17172 fi
17173 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17174   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17176 fi
17177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17178   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17180 fi
17181 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17182   as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17184 fi
17185 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17186   as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17188 fi
17189
17190 : ${CONFIG_STATUS=./config.status}
17191 ac_write_fail=0
17192 ac_clean_files_save=$ac_clean_files
17193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17196 as_write_fail=0
17197 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17198 #! $SHELL
17199 # Generated by $as_me.
17200 # Run this file to recreate the current configuration.
17201 # Compiler output produced by configure, useful for debugging
17202 # configure, is in config.log if it exists.
17203
17204 debug=false
17205 ac_cs_recheck=false
17206 ac_cs_silent=false
17207
17208 SHELL=\${CONFIG_SHELL-$SHELL}
17209 export SHELL
17210 _ASEOF
17211 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17212 ## -------------------- ##
17213 ## M4sh Initialization. ##
17214 ## -------------------- ##
17215
17216 # Be more Bourne compatible
17217 DUALCASE=1; export DUALCASE # for MKS sh
17218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17219   emulate sh
17220   NULLCMD=:
17221   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17222   # is contrary to our usage.  Disable this feature.
17223   alias -g '${1+"$@"}'='"$@"'
17224   setopt NO_GLOB_SUBST
17225 else
17226   case `(set -o) 2>/dev/null` in #(
17227   *posix*) :
17228     set -o posix ;; #(
17229   *) :
17230      ;;
17231 esac
17232 fi
17233
17234
17235 as_nl='
17236 '
17237 export as_nl
17238 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17239 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17240 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17242 # Prefer a ksh shell builtin over an external printf program on Solaris,
17243 # but without wasting forks for bash or zsh.
17244 if test -z "$BASH_VERSION$ZSH_VERSION" \
17245     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17246   as_echo='print -r --'
17247   as_echo_n='print -rn --'
17248 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17249   as_echo='printf %s\n'
17250   as_echo_n='printf %s'
17251 else
17252   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17253     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17254     as_echo_n='/usr/ucb/echo -n'
17255   else
17256     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17257     as_echo_n_body='eval
17258       arg=$1;
17259       case $arg in #(
17260       *"$as_nl"*)
17261         expr "X$arg" : "X\\(.*\\)$as_nl";
17262         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17263       esac;
17264       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17265     '
17266     export as_echo_n_body
17267     as_echo_n='sh -c $as_echo_n_body as_echo'
17268   fi
17269   export as_echo_body
17270   as_echo='sh -c $as_echo_body as_echo'
17271 fi
17272
17273 # The user is always right.
17274 if test "${PATH_SEPARATOR+set}" != set; then
17275   PATH_SEPARATOR=:
17276   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17277     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17278       PATH_SEPARATOR=';'
17279   }
17280 fi
17281
17282
17283 # IFS
17284 # We need space, tab and new line, in precisely that order.  Quoting is
17285 # there to prevent editors from complaining about space-tab.
17286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17287 # splitting by setting IFS to empty value.)
17288 IFS=" ""        $as_nl"
17289
17290 # Find who we are.  Look in the path if we contain no directory separator.
17291 case $0 in #((
17292   *[\\/]* ) as_myself=$0 ;;
17293   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17294 for as_dir in $PATH
17295 do
17296   IFS=$as_save_IFS
17297   test -z "$as_dir" && as_dir=.
17298     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17299   done
17300 IFS=$as_save_IFS
17301
17302      ;;
17303 esac
17304 # We did not find ourselves, most probably we were run as `sh COMMAND'
17305 # in which case we are not to be found in the path.
17306 if test "x$as_myself" = x; then
17307   as_myself=$0
17308 fi
17309 if test ! -f "$as_myself"; then
17310   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17311   exit 1
17312 fi
17313
17314 # Unset variables that we do not need and which cause bugs (e.g. in
17315 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17316 # suppresses any "Segmentation fault" message there.  '((' could
17317 # trigger a bug in pdksh 5.2.14.
17318 for as_var in BASH_ENV ENV MAIL MAILPATH
17319 do eval test x\${$as_var+set} = xset \
17320   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17321 done
17322 PS1='$ '
17323 PS2='> '
17324 PS4='+ '
17325
17326 # NLS nuisances.
17327 LC_ALL=C
17328 export LC_ALL
17329 LANGUAGE=C
17330 export LANGUAGE
17331
17332 # CDPATH.
17333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17334
17335
17336 # as_fn_error ERROR [LINENO LOG_FD]
17337 # ---------------------------------
17338 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17339 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17340 # script with status $?, using 1 if that was 0.
17341 as_fn_error ()
17342 {
17343   as_status=$?; test $as_status -eq 0 && as_status=1
17344   if test "$3"; then
17345     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17346     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17347   fi
17348   $as_echo "$as_me: error: $1" >&2
17349   as_fn_exit $as_status
17350 } # as_fn_error
17351
17352
17353 # as_fn_set_status STATUS
17354 # -----------------------
17355 # Set $? to STATUS, without forking.
17356 as_fn_set_status ()
17357 {
17358   return $1
17359 } # as_fn_set_status
17360
17361 # as_fn_exit STATUS
17362 # -----------------
17363 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17364 as_fn_exit ()
17365 {
17366   set +e
17367   as_fn_set_status $1
17368   exit $1
17369 } # as_fn_exit
17370
17371 # as_fn_unset VAR
17372 # ---------------
17373 # Portably unset VAR.
17374 as_fn_unset ()
17375 {
17376   { eval $1=; unset $1;}
17377 }
17378 as_unset=as_fn_unset
17379 # as_fn_append VAR VALUE
17380 # ----------------------
17381 # Append the text in VALUE to the end of the definition contained in VAR. Take
17382 # advantage of any shell optimizations that allow amortized linear growth over
17383 # repeated appends, instead of the typical quadratic growth present in naive
17384 # implementations.
17385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17386   eval 'as_fn_append ()
17387   {
17388     eval $1+=\$2
17389   }'
17390 else
17391   as_fn_append ()
17392   {
17393     eval $1=\$$1\$2
17394   }
17395 fi # as_fn_append
17396
17397 # as_fn_arith ARG...
17398 # ------------------
17399 # Perform arithmetic evaluation on the ARGs, and store the result in the
17400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17401 # must be portable across $(()) and expr.
17402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17403   eval 'as_fn_arith ()
17404   {
17405     as_val=$(( $* ))
17406   }'
17407 else
17408   as_fn_arith ()
17409   {
17410     as_val=`expr "$@" || test $? -eq 1`
17411   }
17412 fi # as_fn_arith
17413
17414
17415 if expr a : '\(a\)' >/dev/null 2>&1 &&
17416    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17417   as_expr=expr
17418 else
17419   as_expr=false
17420 fi
17421
17422 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17423   as_basename=basename
17424 else
17425   as_basename=false
17426 fi
17427
17428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17429   as_dirname=dirname
17430 else
17431   as_dirname=false
17432 fi
17433
17434 as_me=`$as_basename -- "$0" ||
17435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17436          X"$0" : 'X\(//\)$' \| \
17437          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17438 $as_echo X/"$0" |
17439     sed '/^.*\/\([^/][^/]*\)\/*$/{
17440             s//\1/
17441             q
17442           }
17443           /^X\/\(\/\/\)$/{
17444             s//\1/
17445             q
17446           }
17447           /^X\/\(\/\).*/{
17448             s//\1/
17449             q
17450           }
17451           s/.*/./; q'`
17452
17453 # Avoid depending upon Character Ranges.
17454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17457 as_cr_digits='0123456789'
17458 as_cr_alnum=$as_cr_Letters$as_cr_digits
17459
17460 ECHO_C= ECHO_N= ECHO_T=
17461 case `echo -n x` in #(((((
17462 -n*)
17463   case `echo 'xy\c'` in
17464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17465   xy)  ECHO_C='\c';;
17466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17467        ECHO_T=' ';;
17468   esac;;
17469 *)
17470   ECHO_N='-n';;
17471 esac
17472
17473 rm -f conf$$ conf$$.exe conf$$.file
17474 if test -d conf$$.dir; then
17475   rm -f conf$$.dir/conf$$.file
17476 else
17477   rm -f conf$$.dir
17478   mkdir conf$$.dir 2>/dev/null
17479 fi
17480 if (echo >conf$$.file) 2>/dev/null; then
17481   if ln -s conf$$.file conf$$ 2>/dev/null; then
17482     as_ln_s='ln -s'
17483     # ... but there are two gotchas:
17484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17486     # In both cases, we have to default to `cp -p'.
17487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17488       as_ln_s='cp -p'
17489   elif ln conf$$.file conf$$ 2>/dev/null; then
17490     as_ln_s=ln
17491   else
17492     as_ln_s='cp -p'
17493   fi
17494 else
17495   as_ln_s='cp -p'
17496 fi
17497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17498 rmdir conf$$.dir 2>/dev/null
17499
17500
17501 # as_fn_mkdir_p
17502 # -------------
17503 # Create "$as_dir" as a directory, including parents if necessary.
17504 as_fn_mkdir_p ()
17505 {
17506
17507   case $as_dir in #(
17508   -*) as_dir=./$as_dir;;
17509   esac
17510   test -d "$as_dir" || eval $as_mkdir_p || {
17511     as_dirs=
17512     while :; do
17513       case $as_dir in #(
17514       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17515       *) as_qdir=$as_dir;;
17516       esac
17517       as_dirs="'$as_qdir' $as_dirs"
17518       as_dir=`$as_dirname -- "$as_dir" ||
17519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17520          X"$as_dir" : 'X\(//\)[^/]' \| \
17521          X"$as_dir" : 'X\(//\)$' \| \
17522          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17523 $as_echo X"$as_dir" |
17524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17525             s//\1/
17526             q
17527           }
17528           /^X\(\/\/\)[^/].*/{
17529             s//\1/
17530             q
17531           }
17532           /^X\(\/\/\)$/{
17533             s//\1/
17534             q
17535           }
17536           /^X\(\/\).*/{
17537             s//\1/
17538             q
17539           }
17540           s/.*/./; q'`
17541       test -d "$as_dir" && break
17542     done
17543     test -z "$as_dirs" || eval "mkdir $as_dirs"
17544   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17545
17546
17547 } # as_fn_mkdir_p
17548 if mkdir -p . 2>/dev/null; then
17549   as_mkdir_p='mkdir -p "$as_dir"'
17550 else
17551   test -d ./-p && rmdir ./-p
17552   as_mkdir_p=false
17553 fi
17554
17555 if test -x / >/dev/null 2>&1; then
17556   as_test_x='test -x'
17557 else
17558   if ls -dL / >/dev/null 2>&1; then
17559     as_ls_L_option=L
17560   else
17561     as_ls_L_option=
17562   fi
17563   as_test_x='
17564     eval sh -c '\''
17565       if test -d "$1"; then
17566         test -d "$1/.";
17567       else
17568         case $1 in #(
17569         -*)set "./$1";;
17570         esac;
17571         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17572         ???[sx]*):;;*)false;;esac;fi
17573     '\'' sh
17574   '
17575 fi
17576 as_executable_p=$as_test_x
17577
17578 # Sed expression to map a string onto a valid CPP name.
17579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17580
17581 # Sed expression to map a string onto a valid variable name.
17582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17583
17584
17585 exec 6>&1
17586 ## ----------------------------------- ##
17587 ## Main body of $CONFIG_STATUS script. ##
17588 ## ----------------------------------- ##
17589 _ASEOF
17590 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17591
17592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17593 # Save the log message, to keep $0 and so on meaningful, and to
17594 # report actual input values of CONFIG_FILES etc. instead of their
17595 # values after options handling.
17596 ac_log="
17597 This file was extended by ld $as_me 2.25, which was
17598 generated by GNU Autoconf 2.64.  Invocation command line was
17599
17600   CONFIG_FILES    = $CONFIG_FILES
17601   CONFIG_HEADERS  = $CONFIG_HEADERS
17602   CONFIG_LINKS    = $CONFIG_LINKS
17603   CONFIG_COMMANDS = $CONFIG_COMMANDS
17604   $ $0 $@
17605
17606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17607 "
17608
17609 _ACEOF
17610
17611 case $ac_config_files in *"
17612 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17613 esac
17614
17615 case $ac_config_headers in *"
17616 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17617 esac
17618
17619
17620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621 # Files that config.status was made for.
17622 config_files="$ac_config_files"
17623 config_headers="$ac_config_headers"
17624 config_commands="$ac_config_commands"
17625
17626 _ACEOF
17627
17628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17629 ac_cs_usage="\
17630 \`$as_me' instantiates files and other configuration actions
17631 from templates according to the current configuration.  Unless the files
17632 and actions are specified as TAGs, all are instantiated by default.
17633
17634 Usage: $0 [OPTION]... [TAG]...
17635
17636   -h, --help       print this help, then exit
17637   -V, --version    print version number and configuration settings, then exit
17638   -q, --quiet, --silent
17639                    do not print progress messages
17640   -d, --debug      don't remove temporary files
17641       --recheck    update $as_me by reconfiguring in the same conditions
17642       --file=FILE[:TEMPLATE]
17643                    instantiate the configuration file FILE
17644       --header=FILE[:TEMPLATE]
17645                    instantiate the configuration header FILE
17646
17647 Configuration files:
17648 $config_files
17649
17650 Configuration headers:
17651 $config_headers
17652
17653 Configuration commands:
17654 $config_commands
17655
17656 Report bugs to the package provider."
17657
17658 _ACEOF
17659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17660 ac_cs_version="\\
17661 ld config.status 2.25
17662 configured by $0, generated by GNU Autoconf 2.64,
17663   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17664
17665 Copyright (C) 2009 Free Software Foundation, Inc.
17666 This config.status script is free software; the Free Software Foundation
17667 gives unlimited permission to copy, distribute and modify it."
17668
17669 ac_pwd='$ac_pwd'
17670 srcdir='$srcdir'
17671 INSTALL='$INSTALL'
17672 MKDIR_P='$MKDIR_P'
17673 AWK='$AWK'
17674 test -n "\$AWK" || AWK=awk
17675 _ACEOF
17676
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 # The default lists apply if the user does not specify any file.
17679 ac_need_defaults=:
17680 while test $# != 0
17681 do
17682   case $1 in
17683   --*=*)
17684     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17685     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17686     ac_shift=:
17687     ;;
17688   *)
17689     ac_option=$1
17690     ac_optarg=$2
17691     ac_shift=shift
17692     ;;
17693   esac
17694
17695   case $ac_option in
17696   # Handling of the options.
17697   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17698     ac_cs_recheck=: ;;
17699   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17700     $as_echo "$ac_cs_version"; exit ;;
17701   --debug | --debu | --deb | --de | --d | -d )
17702     debug=: ;;
17703   --file | --fil | --fi | --f )
17704     $ac_shift
17705     case $ac_optarg in
17706     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17707     esac
17708     as_fn_append CONFIG_FILES " '$ac_optarg'"
17709     ac_need_defaults=false;;
17710   --header | --heade | --head | --hea )
17711     $ac_shift
17712     case $ac_optarg in
17713     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17714     esac
17715     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17716     ac_need_defaults=false;;
17717   --he | --h)
17718     # Conflict between --help and --header
17719     as_fn_error "ambiguous option: \`$1'
17720 Try \`$0 --help' for more information.";;
17721   --help | --hel | -h )
17722     $as_echo "$ac_cs_usage"; exit ;;
17723   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17724   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17725     ac_cs_silent=: ;;
17726
17727   # This is an error.
17728   -*) as_fn_error "unrecognized option: \`$1'
17729 Try \`$0 --help' for more information." ;;
17730
17731   *) as_fn_append ac_config_targets " $1"
17732      ac_need_defaults=false ;;
17733
17734   esac
17735   shift
17736 done
17737
17738 ac_configure_extra_args=
17739
17740 if $ac_cs_silent; then
17741   exec 6>/dev/null
17742   ac_configure_extra_args="$ac_configure_extra_args --silent"
17743 fi
17744
17745 _ACEOF
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17747 if \$ac_cs_recheck; then
17748   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17749   shift
17750   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17751   CONFIG_SHELL='$SHELL'
17752   export CONFIG_SHELL
17753   exec "\$@"
17754 fi
17755
17756 _ACEOF
17757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17758 exec 5>>config.log
17759 {
17760   echo
17761   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17762 ## Running $as_me. ##
17763 _ASBOX
17764   $as_echo "$ac_log"
17765 } >&5
17766
17767 _ACEOF
17768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17769 #
17770 # INIT-COMMANDS
17771 #
17772 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17773
17774
17775 # The HP-UX ksh and POSIX shell print the target directory to stdout
17776 # if CDPATH is set.
17777 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17778
17779 sed_quote_subst='$sed_quote_subst'
17780 double_quote_subst='$double_quote_subst'
17781 delay_variable_subst='$delay_variable_subst'
17782 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17783 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17784 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17785 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17786 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17787 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17788 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17789 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17790 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17791 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17792 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17793 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17794 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17795 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17796 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17797 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17798 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17799 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17800 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17801 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17802 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17803 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17804 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17805 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17806 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17807 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17808 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17809 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17810 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17811 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17812 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17813 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17814 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17815 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17816 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17817 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17818 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17819 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17820 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17821 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17822 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17823 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17824 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17825 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17826 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17827 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17828 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17829 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17830 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"`'
17831 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17832 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17833 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17834 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17835 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17836 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17837 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17838 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17839 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17840 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17841 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17842 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17843 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17844 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17845 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17846 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17847 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17848 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17849 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17850 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17851 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17852 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17853 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17854 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17855 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17856 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17857 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17858 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17859 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17860 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17861 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17862 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17863 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17864 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17865 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17866 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17867 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17868 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17869 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17870 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17871 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17872 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17873 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17874 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17875 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17876 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17877 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17878 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17879 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17880 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17881 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17882 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17883 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17884 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17885 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17886 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17887 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17888 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17889 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17890 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17891 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17892 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17893 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17894 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17895 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17896 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17897 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17898 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17899 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17900 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17901 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17902 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17903 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17904 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17905 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17906 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17907 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17908 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17909 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17910 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17911 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17912 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17913 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17914 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17915 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17916 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17917 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17918 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17919 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17920 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17921 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17922 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17923 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17924 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17925 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17926 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17929 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17930 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17931 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17932 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17933 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17934 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17935 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17936 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17937 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17938 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17939 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17940 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17941 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17942 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17943 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17944 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17945 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17946 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17947 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17948 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17949 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17950 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17951 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17952 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17953 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17954 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17955 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17956 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17957
17958 LTCC='$LTCC'
17959 LTCFLAGS='$LTCFLAGS'
17960 compiler='$compiler_DEFAULT'
17961
17962 # A function that is used when there is no print builtin or printf.
17963 func_fallback_echo ()
17964 {
17965   eval 'cat <<_LTECHO_EOF
17966 \$1
17967 _LTECHO_EOF'
17968 }
17969
17970 # Quote evaled strings.
17971 for var in SHELL \
17972 ECHO \
17973 SED \
17974 GREP \
17975 EGREP \
17976 FGREP \
17977 LD \
17978 NM \
17979 LN_S \
17980 lt_SP2NL \
17981 lt_NL2SP \
17982 reload_flag \
17983 OBJDUMP \
17984 deplibs_check_method \
17985 file_magic_cmd \
17986 AR \
17987 AR_FLAGS \
17988 STRIP \
17989 RANLIB \
17990 CC \
17991 CFLAGS \
17992 compiler \
17993 lt_cv_sys_global_symbol_pipe \
17994 lt_cv_sys_global_symbol_to_cdecl \
17995 lt_cv_sys_global_symbol_to_c_name_address \
17996 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17997 lt_prog_compiler_no_builtin_flag \
17998 lt_prog_compiler_wl \
17999 lt_prog_compiler_pic \
18000 lt_prog_compiler_static \
18001 lt_cv_prog_compiler_c_o \
18002 need_locks \
18003 DSYMUTIL \
18004 NMEDIT \
18005 LIPO \
18006 OTOOL \
18007 OTOOL64 \
18008 shrext_cmds \
18009 export_dynamic_flag_spec \
18010 whole_archive_flag_spec \
18011 compiler_needs_object \
18012 with_gnu_ld \
18013 allow_undefined_flag \
18014 no_undefined_flag \
18015 hardcode_libdir_flag_spec \
18016 hardcode_libdir_flag_spec_ld \
18017 hardcode_libdir_separator \
18018 fix_srcfile_path \
18019 exclude_expsyms \
18020 include_expsyms \
18021 file_list_spec \
18022 variables_saved_for_relink \
18023 libname_spec \
18024 library_names_spec \
18025 soname_spec \
18026 install_override_mode \
18027 finish_eval \
18028 old_striplib \
18029 striplib \
18030 compiler_lib_search_dirs \
18031 predep_objects \
18032 postdep_objects \
18033 predeps \
18034 postdeps \
18035 compiler_lib_search_path \
18036 LD_CXX \
18037 reload_flag_CXX \
18038 compiler_CXX \
18039 lt_prog_compiler_no_builtin_flag_CXX \
18040 lt_prog_compiler_wl_CXX \
18041 lt_prog_compiler_pic_CXX \
18042 lt_prog_compiler_static_CXX \
18043 lt_cv_prog_compiler_c_o_CXX \
18044 export_dynamic_flag_spec_CXX \
18045 whole_archive_flag_spec_CXX \
18046 compiler_needs_object_CXX \
18047 with_gnu_ld_CXX \
18048 allow_undefined_flag_CXX \
18049 no_undefined_flag_CXX \
18050 hardcode_libdir_flag_spec_CXX \
18051 hardcode_libdir_flag_spec_ld_CXX \
18052 hardcode_libdir_separator_CXX \
18053 fix_srcfile_path_CXX \
18054 exclude_expsyms_CXX \
18055 include_expsyms_CXX \
18056 file_list_spec_CXX \
18057 compiler_lib_search_dirs_CXX \
18058 predep_objects_CXX \
18059 postdep_objects_CXX \
18060 predeps_CXX \
18061 postdeps_CXX \
18062 compiler_lib_search_path_CXX; do
18063     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18064     *[\\\\\\\`\\"\\\$]*)
18065       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18066       ;;
18067     *)
18068       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18069       ;;
18070     esac
18071 done
18072
18073 # Double-quote double-evaled strings.
18074 for var in reload_cmds \
18075 old_postinstall_cmds \
18076 old_postuninstall_cmds \
18077 old_archive_cmds \
18078 extract_expsyms_cmds \
18079 old_archive_from_new_cmds \
18080 old_archive_from_expsyms_cmds \
18081 archive_cmds \
18082 archive_expsym_cmds \
18083 module_cmds \
18084 module_expsym_cmds \
18085 export_symbols_cmds \
18086 prelink_cmds \
18087 postinstall_cmds \
18088 postuninstall_cmds \
18089 finish_cmds \
18090 sys_lib_search_path_spec \
18091 sys_lib_dlsearch_path_spec \
18092 reload_cmds_CXX \
18093 old_archive_cmds_CXX \
18094 old_archive_from_new_cmds_CXX \
18095 old_archive_from_expsyms_cmds_CXX \
18096 archive_cmds_CXX \
18097 archive_expsym_cmds_CXX \
18098 module_cmds_CXX \
18099 module_expsym_cmds_CXX \
18100 export_symbols_cmds_CXX \
18101 prelink_cmds_CXX; do
18102     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18103     *[\\\\\\\`\\"\\\$]*)
18104       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18105       ;;
18106     *)
18107       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18108       ;;
18109     esac
18110 done
18111
18112 ac_aux_dir='$ac_aux_dir'
18113 xsi_shell='$xsi_shell'
18114 lt_shell_append='$lt_shell_append'
18115
18116 # See if we are running on zsh, and set the options which allow our
18117 # commands through without removal of \ escapes INIT.
18118 if test -n "\${ZSH_VERSION+set}" ; then
18119    setopt NO_GLOB_SUBST
18120 fi
18121
18122
18123     PACKAGE='$PACKAGE'
18124     VERSION='$VERSION'
18125     TIMESTAMP='$TIMESTAMP'
18126     RM='$RM'
18127     ofile='$ofile'
18128
18129
18130
18131
18132
18133 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18134     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18135     # from automake.
18136     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18137     # Capture the value of LINGUAS because we need it to compute CATALOGS.
18138     LINGUAS="${LINGUAS-%UNSET%}"
18139
18140
18141 _ACEOF
18142
18143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18144
18145 # Handling of arguments.
18146 for ac_config_target in $ac_config_targets
18147 do
18148   case $ac_config_target in
18149     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18150     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18151     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18152     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18153     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18154     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18155
18156   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18157   esac
18158 done
18159
18160
18161 # If the user did not use the arguments to specify the items to instantiate,
18162 # then the envvar interface is used.  Set only those that are not.
18163 # We use the long form for the default assignment because of an extremely
18164 # bizarre bug on SunOS 4.1.3.
18165 if $ac_need_defaults; then
18166   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18167   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18168   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18169 fi
18170
18171 # Have a temporary directory for convenience.  Make it in the build tree
18172 # simply because there is no reason against having it here, and in addition,
18173 # creating and moving files from /tmp can sometimes cause problems.
18174 # Hook for its removal unless debugging.
18175 # Note that there is a small window in which the directory will not be cleaned:
18176 # after its creation but before its name has been assigned to `$tmp'.
18177 $debug ||
18178 {
18179   tmp=
18180   trap 'exit_status=$?
18181   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18182 ' 0
18183   trap 'as_fn_exit 1' 1 2 13 15
18184 }
18185 # Create a (secure) tmp directory for tmp files.
18186
18187 {
18188   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18189   test -n "$tmp" && test -d "$tmp"
18190 }  ||
18191 {
18192   tmp=./conf$$-$RANDOM
18193   (umask 077 && mkdir "$tmp")
18194 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18195
18196 # Set up the scripts for CONFIG_FILES section.
18197 # No need to generate them if there are no CONFIG_FILES.
18198 # This happens for instance with `./config.status config.h'.
18199 if test -n "$CONFIG_FILES"; then
18200
18201 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18202   ac_cs_awk_getline=:
18203   ac_cs_awk_pipe_init=
18204   ac_cs_awk_read_file='
18205       while ((getline aline < (F[key])) > 0)
18206         print(aline)
18207       close(F[key])'
18208   ac_cs_awk_pipe_fini=
18209 else
18210   ac_cs_awk_getline=false
18211   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18212   ac_cs_awk_read_file='
18213       print "|#_!!_#|"
18214       print "cat " F[key] " &&"
18215       '$ac_cs_awk_pipe_init
18216   # The final `:' finishes the AND list.
18217   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18218 fi
18219 ac_cr=`echo X | tr X '\015'`
18220 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18221 # But we know of no other shell where ac_cr would be empty at this
18222 # point, so we can use a bashism as a fallback.
18223 if test "x$ac_cr" = x; then
18224   eval ac_cr=\$\'\\r\'
18225 fi
18226 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18227 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18228   ac_cs_awk_cr='\r'
18229 else
18230   ac_cs_awk_cr=$ac_cr
18231 fi
18232
18233 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18234 _ACEOF
18235
18236 # Create commands to substitute file output variables.
18237 {
18238   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18239   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18240   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18241   echo "_ACAWK" &&
18242   echo "_ACEOF"
18243 } >conf$$files.sh &&
18244 . ./conf$$files.sh ||
18245   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18246 rm -f conf$$files.sh
18247
18248 {
18249   echo "cat >conf$$subs.awk <<_ACEOF" &&
18250   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18251   echo "_ACEOF"
18252 } >conf$$subs.sh ||
18253   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18254 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18255 ac_delim='%!_!# '
18256 for ac_last_try in false false false false false :; do
18257   . ./conf$$subs.sh ||
18258     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18259
18260   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18261   if test $ac_delim_n = $ac_delim_num; then
18262     break
18263   elif $ac_last_try; then
18264     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18265   else
18266     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18267   fi
18268 done
18269 rm -f conf$$subs.sh
18270
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18273 _ACEOF
18274 sed -n '
18275 h
18276 s/^/S["/; s/!.*/"]=/
18277 p
18278 g
18279 s/^[^!]*!//
18280 :repl
18281 t repl
18282 s/'"$ac_delim"'$//
18283 t delim
18284 :nl
18285 h
18286 s/\(.\{148\}\).*/\1/
18287 t more1
18288 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18289 p
18290 n
18291 b repl
18292 :more1
18293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18294 p
18295 g
18296 s/.\{148\}//
18297 t nl
18298 :delim
18299 h
18300 s/\(.\{148\}\).*/\1/
18301 t more2
18302 s/["\\]/\\&/g; s/^/"/; s/$/"/
18303 p
18304 b
18305 :more2
18306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18307 p
18308 g
18309 s/.\{148\}//
18310 t delim
18311 ' <conf$$subs.awk | sed '
18312 /^[^""]/{
18313   N
18314   s/\n//
18315 }
18316 ' >>$CONFIG_STATUS || ac_write_fail=1
18317 rm -f conf$$subs.awk
18318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18319 _ACAWK
18320 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18321   for (key in S) S_is_set[key] = 1
18322   FS = "\a"
18323   \$ac_cs_awk_pipe_init
18324 }
18325 {
18326   line = $ 0
18327   nfields = split(line, field, "@")
18328   substed = 0
18329   len = length(field[1])
18330   for (i = 2; i < nfields; i++) {
18331     key = field[i]
18332     keylen = length(key)
18333     if (S_is_set[key]) {
18334       value = S[key]
18335       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18336       len += length(value) + length(field[++i])
18337       substed = 1
18338     } else
18339       len += 1 + keylen
18340   }
18341   if (nfields == 3 && !substed) {
18342     key = field[2]
18343     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
18344       \$ac_cs_awk_read_file
18345       next
18346     }
18347   }
18348   print line
18349 }
18350 \$ac_cs_awk_pipe_fini
18351 _ACAWK
18352 _ACEOF
18353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18355   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18356 else
18357   cat
18358 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18359   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18360 _ACEOF
18361
18362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18364 # trailing colons and then remove the whole line if VPATH becomes empty
18365 # (actually we leave an empty line to preserve line numbers).
18366 if test "x$srcdir" = x.; then
18367   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18368 s/:*\$(srcdir):*/:/
18369 s/:*\${srcdir}:*/:/
18370 s/:*@srcdir@:*/:/
18371 s/^\([^=]*=[     ]*\):*/\1/
18372 s/:*$//
18373 s/^[^=]*=[       ]*$//
18374 }'
18375 fi
18376
18377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18378 fi # test -n "$CONFIG_FILES"
18379
18380 # Set up the scripts for CONFIG_HEADERS section.
18381 # No need to generate them if there are no CONFIG_HEADERS.
18382 # This happens for instance with `./config.status Makefile'.
18383 if test -n "$CONFIG_HEADERS"; then
18384 cat >"$tmp/defines.awk" <<\_ACAWK ||
18385 BEGIN {
18386 _ACEOF
18387
18388 # Transform confdefs.h into an awk script `defines.awk', embedded as
18389 # here-document in config.status, that substitutes the proper values into
18390 # config.h.in to produce config.h.
18391
18392 # Create a delimiter string that does not exist in confdefs.h, to ease
18393 # handling of long lines.
18394 ac_delim='%!_!# '
18395 for ac_last_try in false false :; do
18396   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18397   if test -z "$ac_t"; then
18398     break
18399   elif $ac_last_try; then
18400     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18401   else
18402     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18403   fi
18404 done
18405
18406 # For the awk script, D is an array of macro values keyed by name,
18407 # likewise P contains macro parameters if any.  Preserve backslash
18408 # newline sequences.
18409
18410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18411 sed -n '
18412 s/.\{148\}/&'"$ac_delim"'/g
18413 t rset
18414 :rset
18415 s/^[     ]*#[    ]*define[       ][      ]*/ /
18416 t def
18417 d
18418 :def
18419 s/\\$//
18420 t bsnl
18421 s/["\\]/\\&/g
18422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18423 D["\1"]=" \3"/p
18424 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18425 d
18426 :bsnl
18427 s/["\\]/\\&/g
18428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18429 D["\1"]=" \3\\\\\\n"\\/p
18430 t cont
18431 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18432 t cont
18433 d
18434 :cont
18435 n
18436 s/.\{148\}/&'"$ac_delim"'/g
18437 t clear
18438 :clear
18439 s/\\$//
18440 t bsnlc
18441 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18442 d
18443 :bsnlc
18444 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18445 b cont
18446 ' <confdefs.h | sed '
18447 s/'"$ac_delim"'/"\\\
18448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18449
18450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18451   for (key in D) D_is_set[key] = 1
18452   FS = "\a"
18453 }
18454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18455   line = \$ 0
18456   split(line, arg, " ")
18457   if (arg[1] == "#") {
18458     defundef = arg[2]
18459     mac1 = arg[3]
18460   } else {
18461     defundef = substr(arg[1], 2)
18462     mac1 = arg[2]
18463   }
18464   split(mac1, mac2, "(") #)
18465   macro = mac2[1]
18466   prefix = substr(line, 1, index(line, defundef) - 1)
18467   if (D_is_set[macro]) {
18468     # Preserve the white space surrounding the "#".
18469     print prefix "define", macro P[macro] D[macro]
18470     next
18471   } else {
18472     # Replace #undef with comments.  This is necessary, for example,
18473     # in the case of _POSIX_SOURCE, which is predefined and required
18474     # on some systems where configure will not decide to define it.
18475     if (defundef == "undef") {
18476       print "/*", prefix defundef, macro, "*/"
18477       next
18478     }
18479   }
18480 }
18481 { print }
18482 _ACAWK
18483 _ACEOF
18484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18485   as_fn_error "could not setup config headers machinery" "$LINENO" 5
18486 fi # test -n "$CONFIG_HEADERS"
18487
18488
18489 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18490 shift
18491 for ac_tag
18492 do
18493   case $ac_tag in
18494   :[FHLC]) ac_mode=$ac_tag; continue;;
18495   esac
18496   case $ac_mode$ac_tag in
18497   :[FHL]*:*);;
18498   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18499   :[FH]-) ac_tag=-:-;;
18500   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18501   esac
18502   ac_save_IFS=$IFS
18503   IFS=:
18504   set x $ac_tag
18505   IFS=$ac_save_IFS
18506   shift
18507   ac_file=$1
18508   shift
18509
18510   case $ac_mode in
18511   :L) ac_source=$1;;
18512   :[FH])
18513     ac_file_inputs=
18514     for ac_f
18515     do
18516       case $ac_f in
18517       -) ac_f="$tmp/stdin";;
18518       *) # Look for the file first in the build tree, then in the source tree
18519          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18520          # because $ac_f cannot contain `:'.
18521          test -f "$ac_f" ||
18522            case $ac_f in
18523            [\\/$]*) false;;
18524            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18525            esac ||
18526            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18527       esac
18528       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18529       as_fn_append ac_file_inputs " '$ac_f'"
18530     done
18531
18532     # Let's still pretend it is `configure' which instantiates (i.e., don't
18533     # use $as_me), people would be surprised to read:
18534     #    /* config.h.  Generated by config.status.  */
18535     configure_input='Generated from '`
18536           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18537         `' by configure.'
18538     if test x"$ac_file" != x-; then
18539       configure_input="$ac_file.  $configure_input"
18540       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18541 $as_echo "$as_me: creating $ac_file" >&6;}
18542     fi
18543     # Neutralize special characters interpreted by sed in replacement strings.
18544     case $configure_input in #(
18545     *\&* | *\|* | *\\* )
18546        ac_sed_conf_input=`$as_echo "$configure_input" |
18547        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18548     *) ac_sed_conf_input=$configure_input;;
18549     esac
18550
18551     case $ac_tag in
18552     *:-:* | *:-) cat >"$tmp/stdin" \
18553       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18554     esac
18555     ;;
18556   esac
18557
18558   ac_dir=`$as_dirname -- "$ac_file" ||
18559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18560          X"$ac_file" : 'X\(//\)[^/]' \| \
18561          X"$ac_file" : 'X\(//\)$' \| \
18562          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18563 $as_echo X"$ac_file" |
18564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18565             s//\1/
18566             q
18567           }
18568           /^X\(\/\/\)[^/].*/{
18569             s//\1/
18570             q
18571           }
18572           /^X\(\/\/\)$/{
18573             s//\1/
18574             q
18575           }
18576           /^X\(\/\).*/{
18577             s//\1/
18578             q
18579           }
18580           s/.*/./; q'`
18581   as_dir="$ac_dir"; as_fn_mkdir_p
18582   ac_builddir=.
18583
18584 case "$ac_dir" in
18585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18586 *)
18587   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18588   # A ".." for each directory in $ac_dir_suffix.
18589   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18590   case $ac_top_builddir_sub in
18591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18593   esac ;;
18594 esac
18595 ac_abs_top_builddir=$ac_pwd
18596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18597 # for backward compatibility:
18598 ac_top_builddir=$ac_top_build_prefix
18599
18600 case $srcdir in
18601   .)  # We are building in place.
18602     ac_srcdir=.
18603     ac_top_srcdir=$ac_top_builddir_sub
18604     ac_abs_top_srcdir=$ac_pwd ;;
18605   [\\/]* | ?:[\\/]* )  # Absolute name.
18606     ac_srcdir=$srcdir$ac_dir_suffix;
18607     ac_top_srcdir=$srcdir
18608     ac_abs_top_srcdir=$srcdir ;;
18609   *) # Relative name.
18610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18611     ac_top_srcdir=$ac_top_build_prefix$srcdir
18612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18613 esac
18614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18615
18616
18617   case $ac_mode in
18618   :F)
18619   #
18620   # CONFIG_FILE
18621   #
18622
18623   case $INSTALL in
18624   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18625   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18626   esac
18627   ac_MKDIR_P=$MKDIR_P
18628   case $MKDIR_P in
18629   [\\/$]* | ?:[\\/]* ) ;;
18630   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18631   esac
18632 _ACEOF
18633
18634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18635 # If the template does not know about datarootdir, expand it.
18636 # FIXME: This hack should be removed a few years after 2.60.
18637 ac_datarootdir_hack=; ac_datarootdir_seen=
18638 ac_sed_dataroot='
18639 /datarootdir/ {
18640   p
18641   q
18642 }
18643 /@datadir@/p
18644 /@docdir@/p
18645 /@infodir@/p
18646 /@localedir@/p
18647 /@mandir@/p'
18648 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18649 *datarootdir*) ac_datarootdir_seen=yes;;
18650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18651   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18652 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18653 _ACEOF
18654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18655   ac_datarootdir_hack='
18656   s&@datadir@&$datadir&g
18657   s&@docdir@&$docdir&g
18658   s&@infodir@&$infodir&g
18659   s&@localedir@&$localedir&g
18660   s&@mandir@&$mandir&g
18661   s&\\\${datarootdir}&$datarootdir&g' ;;
18662 esac
18663 _ACEOF
18664
18665 # Neutralize VPATH when `$srcdir' = `.'.
18666 # Shell code in configure.ac might set extrasub.
18667 # FIXME: do we really want to maintain this feature?
18668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18669 ac_sed_extra="$ac_vpsub
18670 $extrasub
18671 _ACEOF
18672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18673 :t
18674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18675 s|@configure_input@|$ac_sed_conf_input|;t t
18676 s&@top_builddir@&$ac_top_builddir_sub&;t t
18677 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18678 s&@srcdir@&$ac_srcdir&;t t
18679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18680 s&@top_srcdir@&$ac_top_srcdir&;t t
18681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18682 s&@builddir@&$ac_builddir&;t t
18683 s&@abs_builddir@&$ac_abs_builddir&;t t
18684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18685 s&@INSTALL@&$ac_INSTALL&;t t
18686 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18687 $ac_datarootdir_hack
18688 "
18689 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18690 if $ac_cs_awk_getline; then
18691   $AWK -f "$tmp/subs.awk"
18692 else
18693   $AWK -f "$tmp/subs.awk" | $SHELL
18694 fi >$tmp/out \
18695   || as_fn_error "could not create $ac_file" "$LINENO" 5
18696
18697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18698   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18699   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18701 which seems to be undefined.  Please make sure it is defined." >&5
18702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18703 which seems to be undefined.  Please make sure it is defined." >&2;}
18704
18705   rm -f "$tmp/stdin"
18706   case $ac_file in
18707   -) cat "$tmp/out" && rm -f "$tmp/out";;
18708   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18709   esac \
18710   || as_fn_error "could not create $ac_file" "$LINENO" 5
18711  ;;
18712   :H)
18713   #
18714   # CONFIG_HEADER
18715   #
18716   if test x"$ac_file" != x-; then
18717     {
18718       $as_echo "/* $configure_input  */" \
18719       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18720     } >"$tmp/config.h" \
18721       || as_fn_error "could not create $ac_file" "$LINENO" 5
18722     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18723       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18724 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18725     else
18726       rm -f "$ac_file"
18727       mv "$tmp/config.h" "$ac_file" \
18728         || as_fn_error "could not create $ac_file" "$LINENO" 5
18729     fi
18730   else
18731     $as_echo "/* $configure_input  */" \
18732       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18733       || as_fn_error "could not create -" "$LINENO" 5
18734   fi
18735 # Compute "$ac_file"'s index in $config_headers.
18736 _am_arg="$ac_file"
18737 _am_stamp_count=1
18738 for _am_header in $config_headers :; do
18739   case $_am_header in
18740     $_am_arg | $_am_arg:* )
18741       break ;;
18742     * )
18743       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18744   esac
18745 done
18746 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18747 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18748          X"$_am_arg" : 'X\(//\)[^/]' \| \
18749          X"$_am_arg" : 'X\(//\)$' \| \
18750          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18751 $as_echo X"$_am_arg" |
18752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18753             s//\1/
18754             q
18755           }
18756           /^X\(\/\/\)[^/].*/{
18757             s//\1/
18758             q
18759           }
18760           /^X\(\/\/\)$/{
18761             s//\1/
18762             q
18763           }
18764           /^X\(\/\).*/{
18765             s//\1/
18766             q
18767           }
18768           s/.*/./; q'`/stamp-h$_am_stamp_count
18769  ;;
18770
18771   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18772 $as_echo "$as_me: executing $ac_file commands" >&6;}
18773  ;;
18774   esac
18775
18776
18777   case $ac_file$ac_mode in
18778     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18779   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18780   # are listed without --file.  Let's play safe and only enable the eval
18781   # if we detect the quoting.
18782   case $CONFIG_FILES in
18783   *\'*) eval set x "$CONFIG_FILES" ;;
18784   *)   set x $CONFIG_FILES ;;
18785   esac
18786   shift
18787   for mf
18788   do
18789     # Strip MF so we end up with the name of the file.
18790     mf=`echo "$mf" | sed -e 's/:.*$//'`
18791     # Check whether this is an Automake generated Makefile or not.
18792     # We used to match only the files named `Makefile.in', but
18793     # some people rename them; so instead we look at the file content.
18794     # Grep'ing the first line is not enough: some people post-process
18795     # each Makefile.in and add a new line on top of each file to say so.
18796     # Grep'ing the whole file is not good either: AIX grep has a line
18797     # limit of 2048, but all sed's we know have understand at least 4000.
18798     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18799       dirpart=`$as_dirname -- "$mf" ||
18800 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18801          X"$mf" : 'X\(//\)[^/]' \| \
18802          X"$mf" : 'X\(//\)$' \| \
18803          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18804 $as_echo X"$mf" |
18805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18806             s//\1/
18807             q
18808           }
18809           /^X\(\/\/\)[^/].*/{
18810             s//\1/
18811             q
18812           }
18813           /^X\(\/\/\)$/{
18814             s//\1/
18815             q
18816           }
18817           /^X\(\/\).*/{
18818             s//\1/
18819             q
18820           }
18821           s/.*/./; q'`
18822     else
18823       continue
18824     fi
18825     # Extract the definition of DEPDIR, am__include, and am__quote
18826     # from the Makefile without running `make'.
18827     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18828     test -z "$DEPDIR" && continue
18829     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18830     test -z "am__include" && continue
18831     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18832     # When using ansi2knr, U may be empty or an underscore; expand it
18833     U=`sed -n 's/^U = //p' < "$mf"`
18834     # Find all dependency output files, they are included files with
18835     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18836     # simplest approach to changing $(DEPDIR) to its actual value in the
18837     # expansion.
18838     for file in `sed -n "
18839       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18840          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18841       # Make sure the directory exists.
18842       test -f "$dirpart/$file" && continue
18843       fdir=`$as_dirname -- "$file" ||
18844 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18845          X"$file" : 'X\(//\)[^/]' \| \
18846          X"$file" : 'X\(//\)$' \| \
18847          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18848 $as_echo X"$file" |
18849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18850             s//\1/
18851             q
18852           }
18853           /^X\(\/\/\)[^/].*/{
18854             s//\1/
18855             q
18856           }
18857           /^X\(\/\/\)$/{
18858             s//\1/
18859             q
18860           }
18861           /^X\(\/\).*/{
18862             s//\1/
18863             q
18864           }
18865           s/.*/./; q'`
18866       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18867       # echo "creating $dirpart/$file"
18868       echo '# dummy' > "$dirpart/$file"
18869     done
18870   done
18871 }
18872  ;;
18873     "libtool":C)
18874
18875     # See if we are running on zsh, and set the options which allow our
18876     # commands through without removal of \ escapes.
18877     if test -n "${ZSH_VERSION+set}" ; then
18878       setopt NO_GLOB_SUBST
18879     fi
18880
18881     cfgfile="${ofile}T"
18882     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18883     $RM "$cfgfile"
18884
18885     cat <<_LT_EOF >> "$cfgfile"
18886 #! $SHELL
18887
18888 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18889 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18892 #
18893 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18894 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18895 #   Written by Gordon Matzigkeit, 1996
18896 #
18897 #   This file is part of GNU Libtool.
18898 #
18899 # GNU Libtool is free software; you can redistribute it and/or
18900 # modify it under the terms of the GNU General Public License as
18901 # published by the Free Software Foundation; either version 2 of
18902 # the License, or (at your option) any later version.
18903 #
18904 # As a special exception to the GNU General Public License,
18905 # if you distribute this file as part of a program or library that
18906 # is built using GNU Libtool, you may include this file under the
18907 # same distribution terms that you use for the rest of that program.
18908 #
18909 # GNU Libtool is distributed in the hope that it will be useful,
18910 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18911 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18912 # GNU General Public License for more details.
18913 #
18914 # You should have received a copy of the GNU General Public License
18915 # along with GNU Libtool; see the file COPYING.  If not, a copy
18916 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18917 # obtained by writing to the Free Software Foundation, Inc.,
18918 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18919
18920
18921 # The names of the tagged configurations supported by this script.
18922 available_tags="CXX "
18923
18924 # ### BEGIN LIBTOOL CONFIG
18925
18926 # Which release of libtool.m4 was used?
18927 macro_version=$macro_version
18928 macro_revision=$macro_revision
18929
18930 # Whether or not to build shared libraries.
18931 build_libtool_libs=$enable_shared
18932
18933 # Whether or not to build static libraries.
18934 build_old_libs=$enable_static
18935
18936 # What type of objects to build.
18937 pic_mode=$pic_mode
18938
18939 # Whether or not to optimize for fast installation.
18940 fast_install=$enable_fast_install
18941
18942 # Shell to use when invoking shell scripts.
18943 SHELL=$lt_SHELL
18944
18945 # An echo program that protects backslashes.
18946 ECHO=$lt_ECHO
18947
18948 # The host system.
18949 host_alias=$host_alias
18950 host=$host
18951 host_os=$host_os
18952
18953 # The build system.
18954 build_alias=$build_alias
18955 build=$build
18956 build_os=$build_os
18957
18958 # A sed program that does not truncate output.
18959 SED=$lt_SED
18960
18961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18962 Xsed="\$SED -e 1s/^X//"
18963
18964 # A grep program that handles long lines.
18965 GREP=$lt_GREP
18966
18967 # An ERE matcher.
18968 EGREP=$lt_EGREP
18969
18970 # A literal string matcher.
18971 FGREP=$lt_FGREP
18972
18973 # A BSD- or MS-compatible name lister.
18974 NM=$lt_NM
18975
18976 # Whether we need soft or hard links.
18977 LN_S=$lt_LN_S
18978
18979 # What is the maximum length of a command?
18980 max_cmd_len=$max_cmd_len
18981
18982 # Object file suffix (normally "o").
18983 objext=$ac_objext
18984
18985 # Executable file suffix (normally "").
18986 exeext=$exeext
18987
18988 # whether the shell understands "unset".
18989 lt_unset=$lt_unset
18990
18991 # turn spaces into newlines.
18992 SP2NL=$lt_lt_SP2NL
18993
18994 # turn newlines into spaces.
18995 NL2SP=$lt_lt_NL2SP
18996
18997 # An object symbol dumper.
18998 OBJDUMP=$lt_OBJDUMP
18999
19000 # Method to check whether dependent libraries are shared objects.
19001 deplibs_check_method=$lt_deplibs_check_method
19002
19003 # Command to use when deplibs_check_method == "file_magic".
19004 file_magic_cmd=$lt_file_magic_cmd
19005
19006 # The archiver.
19007 AR=$lt_AR
19008 AR_FLAGS=$lt_AR_FLAGS
19009
19010 # A symbol stripping program.
19011 STRIP=$lt_STRIP
19012
19013 # Commands used to install an old-style archive.
19014 RANLIB=$lt_RANLIB
19015 old_postinstall_cmds=$lt_old_postinstall_cmds
19016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19017
19018 # Whether to use a lock for old archive extraction.
19019 lock_old_archive_extraction=$lock_old_archive_extraction
19020
19021 # A C compiler.
19022 LTCC=$lt_CC
19023
19024 # LTCC compiler flags.
19025 LTCFLAGS=$lt_CFLAGS
19026
19027 # Take the output of nm and produce a listing of raw symbols and C names.
19028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19029
19030 # Transform the output of nm in a proper C declaration.
19031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19032
19033 # Transform the output of nm in a C name address pair.
19034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19035
19036 # Transform the output of nm in a C name address pair when lib prefix is needed.
19037 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19038
19039 # The name of the directory that contains temporary libtool files.
19040 objdir=$objdir
19041
19042 # Used to examine libraries when file_magic_cmd begins with "file".
19043 MAGIC_CMD=$MAGIC_CMD
19044
19045 # Must we lock files when doing compilation?
19046 need_locks=$lt_need_locks
19047
19048 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19049 DSYMUTIL=$lt_DSYMUTIL
19050
19051 # Tool to change global to local symbols on Mac OS X.
19052 NMEDIT=$lt_NMEDIT
19053
19054 # Tool to manipulate fat objects and archives on Mac OS X.
19055 LIPO=$lt_LIPO
19056
19057 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19058 OTOOL=$lt_OTOOL
19059
19060 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19061 OTOOL64=$lt_OTOOL64
19062
19063 # Old archive suffix (normally "a").
19064 libext=$libext
19065
19066 # Shared library suffix (normally ".so").
19067 shrext_cmds=$lt_shrext_cmds
19068
19069 # The commands to extract the exported symbol list from a shared archive.
19070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19071
19072 # Variables whose values should be saved in libtool wrapper scripts and
19073 # restored at link time.
19074 variables_saved_for_relink=$lt_variables_saved_for_relink
19075
19076 # Do we need the "lib" prefix for modules?
19077 need_lib_prefix=$need_lib_prefix
19078
19079 # Do we need a version for libraries?
19080 need_version=$need_version
19081
19082 # Library versioning type.
19083 version_type=$version_type
19084
19085 # Shared library runtime path variable.
19086 runpath_var=$runpath_var
19087
19088 # Shared library path variable.
19089 shlibpath_var=$shlibpath_var
19090
19091 # Is shlibpath searched before the hard-coded library search path?
19092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19093
19094 # Format of library name prefix.
19095 libname_spec=$lt_libname_spec
19096
19097 # List of archive names.  First name is the real one, the rest are links.
19098 # The last name is the one that the linker finds with -lNAME
19099 library_names_spec=$lt_library_names_spec
19100
19101 # The coded name of the library, if different from the real name.
19102 soname_spec=$lt_soname_spec
19103
19104 # Permission mode override for installation of shared libraries.
19105 install_override_mode=$lt_install_override_mode
19106
19107 # Command to use after installation of a shared archive.
19108 postinstall_cmds=$lt_postinstall_cmds
19109
19110 # Command to use after uninstallation of a shared archive.
19111 postuninstall_cmds=$lt_postuninstall_cmds
19112
19113 # Commands used to finish a libtool library installation in a directory.
19114 finish_cmds=$lt_finish_cmds
19115
19116 # As "finish_cmds", except a single script fragment to be evaled but
19117 # not shown.
19118 finish_eval=$lt_finish_eval
19119
19120 # Whether we should hardcode library paths into libraries.
19121 hardcode_into_libs=$hardcode_into_libs
19122
19123 # Compile-time system search path for libraries.
19124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19125
19126 # Run-time system search path for libraries.
19127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19128
19129 # Whether dlopen is supported.
19130 dlopen_support=$enable_dlopen
19131
19132 # Whether dlopen of programs is supported.
19133 dlopen_self=$enable_dlopen_self
19134
19135 # Whether dlopen of statically linked programs is supported.
19136 dlopen_self_static=$enable_dlopen_self_static
19137
19138 # Commands to strip libraries.
19139 old_striplib=$lt_old_striplib
19140 striplib=$lt_striplib
19141
19142
19143 # The linker used to build libraries.
19144 LD=$lt_LD
19145
19146 # How to create reloadable object files.
19147 reload_flag=$lt_reload_flag
19148 reload_cmds=$lt_reload_cmds
19149
19150 # Commands used to build an old-style archive.
19151 old_archive_cmds=$lt_old_archive_cmds
19152
19153 # A language specific compiler.
19154 CC=$lt_compiler
19155
19156 # Is the compiler the GNU compiler?
19157 with_gcc=$GCC
19158
19159 # Compiler flag to turn off builtin functions.
19160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19161
19162 # How to pass a linker flag through the compiler.
19163 wl=$lt_lt_prog_compiler_wl
19164
19165 # Additional compiler flags for building library objects.
19166 pic_flag=$lt_lt_prog_compiler_pic
19167
19168 # Compiler flag to prevent dynamic linking.
19169 link_static_flag=$lt_lt_prog_compiler_static
19170
19171 # Does compiler simultaneously support -c and -o options?
19172 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19173
19174 # Whether or not to add -lc for building shared libraries.
19175 build_libtool_need_lc=$archive_cmds_need_lc
19176
19177 # Whether or not to disallow shared libs when runtime libs are static.
19178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19179
19180 # Compiler flag to allow reflexive dlopens.
19181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19182
19183 # Compiler flag to generate shared objects directly from archives.
19184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19185
19186 # Whether the compiler copes with passing no objects directly.
19187 compiler_needs_object=$lt_compiler_needs_object
19188
19189 # Create an old-style archive from a shared archive.
19190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19191
19192 # Create a temporary old-style archive to link instead of a shared archive.
19193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19194
19195 # Commands used to build a shared archive.
19196 archive_cmds=$lt_archive_cmds
19197 archive_expsym_cmds=$lt_archive_expsym_cmds
19198
19199 # Commands used to build a loadable module if different from building
19200 # a shared archive.
19201 module_cmds=$lt_module_cmds
19202 module_expsym_cmds=$lt_module_expsym_cmds
19203
19204 # Whether we are building with GNU ld or not.
19205 with_gnu_ld=$lt_with_gnu_ld
19206
19207 # Flag that allows shared libraries with undefined symbols to be built.
19208 allow_undefined_flag=$lt_allow_undefined_flag
19209
19210 # Flag that enforces no undefined symbols.
19211 no_undefined_flag=$lt_no_undefined_flag
19212
19213 # Flag to hardcode \$libdir into a binary during linking.
19214 # This must work even if \$libdir does not exist
19215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19216
19217 # If ld is used when linking, flag to hardcode \$libdir into a binary
19218 # during linking.  This must work even if \$libdir does not exist.
19219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19220
19221 # Whether we need a single "-rpath" flag with a separated argument.
19222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19223
19224 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19225 # DIR into the resulting binary.
19226 hardcode_direct=$hardcode_direct
19227
19228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19229 # DIR into the resulting binary and the resulting library dependency is
19230 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19231 # library is relocated.
19232 hardcode_direct_absolute=$hardcode_direct_absolute
19233
19234 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19235 # into the resulting binary.
19236 hardcode_minus_L=$hardcode_minus_L
19237
19238 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19239 # into the resulting binary.
19240 hardcode_shlibpath_var=$hardcode_shlibpath_var
19241
19242 # Set to "yes" if building a shared library automatically hardcodes DIR
19243 # into the library and all subsequent libraries and executables linked
19244 # against it.
19245 hardcode_automatic=$hardcode_automatic
19246
19247 # Set to yes if linker adds runtime paths of dependent libraries
19248 # to runtime path list.
19249 inherit_rpath=$inherit_rpath
19250
19251 # Whether libtool must link a program against all its dependency libraries.
19252 link_all_deplibs=$link_all_deplibs
19253
19254 # Fix the shell variable \$srcfile for the compiler.
19255 fix_srcfile_path=$lt_fix_srcfile_path
19256
19257 # Set to "yes" if exported symbols are required.
19258 always_export_symbols=$always_export_symbols
19259
19260 # The commands to list exported symbols.
19261 export_symbols_cmds=$lt_export_symbols_cmds
19262
19263 # Symbols that should not be listed in the preloaded symbols.
19264 exclude_expsyms=$lt_exclude_expsyms
19265
19266 # Symbols that must always be exported.
19267 include_expsyms=$lt_include_expsyms
19268
19269 # Commands necessary for linking programs (against libraries) with templates.
19270 prelink_cmds=$lt_prelink_cmds
19271
19272 # Specify filename containing input files.
19273 file_list_spec=$lt_file_list_spec
19274
19275 # How to hardcode a shared library path into an executable.
19276 hardcode_action=$hardcode_action
19277
19278 # The directories searched by this compiler when creating a shared library.
19279 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19280
19281 # Dependencies to place before and after the objects being linked to
19282 # create a shared library.
19283 predep_objects=$lt_predep_objects
19284 postdep_objects=$lt_postdep_objects
19285 predeps=$lt_predeps
19286 postdeps=$lt_postdeps
19287
19288 # The library search path used internally by the compiler when linking
19289 # a shared library.
19290 compiler_lib_search_path=$lt_compiler_lib_search_path
19291
19292 # ### END LIBTOOL CONFIG
19293
19294 _LT_EOF
19295
19296   case $host_os in
19297   aix3*)
19298     cat <<\_LT_EOF >> "$cfgfile"
19299 # AIX sometimes has problems with the GCC collect2 program.  For some
19300 # reason, if we set the COLLECT_NAMES environment variable, the problems
19301 # vanish in a puff of smoke.
19302 if test "X${COLLECT_NAMES+set}" != Xset; then
19303   COLLECT_NAMES=
19304   export COLLECT_NAMES
19305 fi
19306 _LT_EOF
19307     ;;
19308   esac
19309
19310
19311 ltmain="$ac_aux_dir/ltmain.sh"
19312
19313
19314   # We use sed instead of cat because bash on DJGPP gets confused if
19315   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19316   # text mode, it properly converts lines to CR/LF.  This bash problem
19317   # is reportedly fixed, but why not run on old versions too?
19318   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19319     || (rm -f "$cfgfile"; exit 1)
19320
19321   case $xsi_shell in
19322   yes)
19323     cat << \_LT_EOF >> "$cfgfile"
19324
19325 # func_dirname file append nondir_replacement
19326 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19327 # otherwise set result to NONDIR_REPLACEMENT.
19328 func_dirname ()
19329 {
19330   case ${1} in
19331     */*) func_dirname_result="${1%/*}${2}" ;;
19332     *  ) func_dirname_result="${3}" ;;
19333   esac
19334 }
19335
19336 # func_basename file
19337 func_basename ()
19338 {
19339   func_basename_result="${1##*/}"
19340 }
19341
19342 # func_dirname_and_basename file append nondir_replacement
19343 # perform func_basename and func_dirname in a single function
19344 # call:
19345 #   dirname:  Compute the dirname of FILE.  If nonempty,
19346 #             add APPEND to the result, otherwise set result
19347 #             to NONDIR_REPLACEMENT.
19348 #             value returned in "$func_dirname_result"
19349 #   basename: Compute filename of FILE.
19350 #             value retuned in "$func_basename_result"
19351 # Implementation must be kept synchronized with func_dirname
19352 # and func_basename. For efficiency, we do not delegate to
19353 # those functions but instead duplicate the functionality here.
19354 func_dirname_and_basename ()
19355 {
19356   case ${1} in
19357     */*) func_dirname_result="${1%/*}${2}" ;;
19358     *  ) func_dirname_result="${3}" ;;
19359   esac
19360   func_basename_result="${1##*/}"
19361 }
19362
19363 # func_stripname prefix suffix name
19364 # strip PREFIX and SUFFIX off of NAME.
19365 # PREFIX and SUFFIX must not contain globbing or regex special
19366 # characters, hashes, percent signs, but SUFFIX may contain a leading
19367 # dot (in which case that matches only a dot).
19368 func_stripname ()
19369 {
19370   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19371   # positional parameters, so assign one to ordinary parameter first.
19372   func_stripname_result=${3}
19373   func_stripname_result=${func_stripname_result#"${1}"}
19374   func_stripname_result=${func_stripname_result%"${2}"}
19375 }
19376
19377 # func_opt_split
19378 func_opt_split ()
19379 {
19380   func_opt_split_opt=${1%%=*}
19381   func_opt_split_arg=${1#*=}
19382 }
19383
19384 # func_lo2o object
19385 func_lo2o ()
19386 {
19387   case ${1} in
19388     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19389     *)    func_lo2o_result=${1} ;;
19390   esac
19391 }
19392
19393 # func_xform libobj-or-source
19394 func_xform ()
19395 {
19396   func_xform_result=${1%.*}.lo
19397 }
19398
19399 # func_arith arithmetic-term...
19400 func_arith ()
19401 {
19402   func_arith_result=$(( $* ))
19403 }
19404
19405 # func_len string
19406 # STRING may not start with a hyphen.
19407 func_len ()
19408 {
19409   func_len_result=${#1}
19410 }
19411
19412 _LT_EOF
19413     ;;
19414   *) # Bourne compatible functions.
19415     cat << \_LT_EOF >> "$cfgfile"
19416
19417 # func_dirname file append nondir_replacement
19418 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19419 # otherwise set result to NONDIR_REPLACEMENT.
19420 func_dirname ()
19421 {
19422   # Extract subdirectory from the argument.
19423   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19424   if test "X$func_dirname_result" = "X${1}"; then
19425     func_dirname_result="${3}"
19426   else
19427     func_dirname_result="$func_dirname_result${2}"
19428   fi
19429 }
19430
19431 # func_basename file
19432 func_basename ()
19433 {
19434   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19435 }
19436
19437
19438 # func_stripname prefix suffix name
19439 # strip PREFIX and SUFFIX off of NAME.
19440 # PREFIX and SUFFIX must not contain globbing or regex special
19441 # characters, hashes, percent signs, but SUFFIX may contain a leading
19442 # dot (in which case that matches only a dot).
19443 # func_strip_suffix prefix name
19444 func_stripname ()
19445 {
19446   case ${2} in
19447     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19448     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19449   esac
19450 }
19451
19452 # sed scripts:
19453 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19454 my_sed_long_arg='1s/^-[^=]*=//'
19455
19456 # func_opt_split
19457 func_opt_split ()
19458 {
19459   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19460   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19461 }
19462
19463 # func_lo2o object
19464 func_lo2o ()
19465 {
19466   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19467 }
19468
19469 # func_xform libobj-or-source
19470 func_xform ()
19471 {
19472   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19473 }
19474
19475 # func_arith arithmetic-term...
19476 func_arith ()
19477 {
19478   func_arith_result=`expr "$@"`
19479 }
19480
19481 # func_len string
19482 # STRING may not start with a hyphen.
19483 func_len ()
19484 {
19485   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19486 }
19487
19488 _LT_EOF
19489 esac
19490
19491 case $lt_shell_append in
19492   yes)
19493     cat << \_LT_EOF >> "$cfgfile"
19494
19495 # func_append var value
19496 # Append VALUE to the end of shell variable VAR.
19497 func_append ()
19498 {
19499   eval "$1+=\$2"
19500 }
19501 _LT_EOF
19502     ;;
19503   *)
19504     cat << \_LT_EOF >> "$cfgfile"
19505
19506 # func_append var value
19507 # Append VALUE to the end of shell variable VAR.
19508 func_append ()
19509 {
19510   eval "$1=\$$1\$2"
19511 }
19512
19513 _LT_EOF
19514     ;;
19515   esac
19516
19517
19518   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19519     || (rm -f "$cfgfile"; exit 1)
19520
19521   mv -f "$cfgfile" "$ofile" ||
19522     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19523   chmod +x "$ofile"
19524
19525
19526     cat <<_LT_EOF >> "$ofile"
19527
19528 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19529
19530 # The linker used to build libraries.
19531 LD=$lt_LD_CXX
19532
19533 # How to create reloadable object files.
19534 reload_flag=$lt_reload_flag_CXX
19535 reload_cmds=$lt_reload_cmds_CXX
19536
19537 # Commands used to build an old-style archive.
19538 old_archive_cmds=$lt_old_archive_cmds_CXX
19539
19540 # A language specific compiler.
19541 CC=$lt_compiler_CXX
19542
19543 # Is the compiler the GNU compiler?
19544 with_gcc=$GCC_CXX
19545
19546 # Compiler flag to turn off builtin functions.
19547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19548
19549 # How to pass a linker flag through the compiler.
19550 wl=$lt_lt_prog_compiler_wl_CXX
19551
19552 # Additional compiler flags for building library objects.
19553 pic_flag=$lt_lt_prog_compiler_pic_CXX
19554
19555 # Compiler flag to prevent dynamic linking.
19556 link_static_flag=$lt_lt_prog_compiler_static_CXX
19557
19558 # Does compiler simultaneously support -c and -o options?
19559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19560
19561 # Whether or not to add -lc for building shared libraries.
19562 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19563
19564 # Whether or not to disallow shared libs when runtime libs are static.
19565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19566
19567 # Compiler flag to allow reflexive dlopens.
19568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19569
19570 # Compiler flag to generate shared objects directly from archives.
19571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19572
19573 # Whether the compiler copes with passing no objects directly.
19574 compiler_needs_object=$lt_compiler_needs_object_CXX
19575
19576 # Create an old-style archive from a shared archive.
19577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19578
19579 # Create a temporary old-style archive to link instead of a shared archive.
19580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19581
19582 # Commands used to build a shared archive.
19583 archive_cmds=$lt_archive_cmds_CXX
19584 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19585
19586 # Commands used to build a loadable module if different from building
19587 # a shared archive.
19588 module_cmds=$lt_module_cmds_CXX
19589 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19590
19591 # Whether we are building with GNU ld or not.
19592 with_gnu_ld=$lt_with_gnu_ld_CXX
19593
19594 # Flag that allows shared libraries with undefined symbols to be built.
19595 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19596
19597 # Flag that enforces no undefined symbols.
19598 no_undefined_flag=$lt_no_undefined_flag_CXX
19599
19600 # Flag to hardcode \$libdir into a binary during linking.
19601 # This must work even if \$libdir does not exist
19602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19603
19604 # If ld is used when linking, flag to hardcode \$libdir into a binary
19605 # during linking.  This must work even if \$libdir does not exist.
19606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19607
19608 # Whether we need a single "-rpath" flag with a separated argument.
19609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19610
19611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19612 # DIR into the resulting binary.
19613 hardcode_direct=$hardcode_direct_CXX
19614
19615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19616 # DIR into the resulting binary and the resulting library dependency is
19617 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19618 # library is relocated.
19619 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19620
19621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19622 # into the resulting binary.
19623 hardcode_minus_L=$hardcode_minus_L_CXX
19624
19625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19626 # into the resulting binary.
19627 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19628
19629 # Set to "yes" if building a shared library automatically hardcodes DIR
19630 # into the library and all subsequent libraries and executables linked
19631 # against it.
19632 hardcode_automatic=$hardcode_automatic_CXX
19633
19634 # Set to yes if linker adds runtime paths of dependent libraries
19635 # to runtime path list.
19636 inherit_rpath=$inherit_rpath_CXX
19637
19638 # Whether libtool must link a program against all its dependency libraries.
19639 link_all_deplibs=$link_all_deplibs_CXX
19640
19641 # Fix the shell variable \$srcfile for the compiler.
19642 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19643
19644 # Set to "yes" if exported symbols are required.
19645 always_export_symbols=$always_export_symbols_CXX
19646
19647 # The commands to list exported symbols.
19648 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19649
19650 # Symbols that should not be listed in the preloaded symbols.
19651 exclude_expsyms=$lt_exclude_expsyms_CXX
19652
19653 # Symbols that must always be exported.
19654 include_expsyms=$lt_include_expsyms_CXX
19655
19656 # Commands necessary for linking programs (against libraries) with templates.
19657 prelink_cmds=$lt_prelink_cmds_CXX
19658
19659 # Specify filename containing input files.
19660 file_list_spec=$lt_file_list_spec_CXX
19661
19662 # How to hardcode a shared library path into an executable.
19663 hardcode_action=$hardcode_action_CXX
19664
19665 # The directories searched by this compiler when creating a shared library.
19666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19667
19668 # Dependencies to place before and after the objects being linked to
19669 # create a shared library.
19670 predep_objects=$lt_predep_objects_CXX
19671 postdep_objects=$lt_postdep_objects_CXX
19672 predeps=$lt_predeps_CXX
19673 postdeps=$lt_postdeps_CXX
19674
19675 # The library search path used internally by the compiler when linking
19676 # a shared library.
19677 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19678
19679 # ### END LIBTOOL TAG CONFIG: CXX
19680 _LT_EOF
19681
19682  ;;
19683     "default-1":C)
19684     for ac_file in $CONFIG_FILES; do
19685       # Support "outfile[:infile[:infile...]]"
19686       case "$ac_file" in
19687         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19688       esac
19689       # PO directories have a Makefile.in generated from Makefile.in.in.
19690       case "$ac_file" in */Makefile.in)
19691         # Adjust a relative srcdir.
19692         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19693         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19694         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19695         # In autoconf-2.13 it is called $ac_given_srcdir.
19696         # In autoconf-2.50 it is called $srcdir.
19697         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19698         case "$ac_given_srcdir" in
19699           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19700           /*) top_srcdir="$ac_given_srcdir" ;;
19701           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19702         esac
19703         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19704           rm -f "$ac_dir/POTFILES"
19705           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19706           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19707           POMAKEFILEDEPS="POTFILES.in"
19708           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19709           # on $ac_dir but don't depend on user-specified configuration
19710           # parameters.
19711           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19712             # The LINGUAS file contains the set of available languages.
19713             if test -n "$OBSOLETE_ALL_LINGUAS"; then
19714               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19715             fi
19716             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19717             # Hide the ALL_LINGUAS assigment from automake.
19718             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19719             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19720           else
19721             # The set of available languages was given in configure.in.
19722             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19723           fi
19724           case "$ac_given_srcdir" in
19725             .) srcdirpre= ;;
19726             *) srcdirpre='$(srcdir)/' ;;
19727           esac
19728           POFILES=
19729           GMOFILES=
19730           UPDATEPOFILES=
19731           DUMMYPOFILES=
19732           for lang in $ALL_LINGUAS; do
19733             POFILES="$POFILES $srcdirpre$lang.po"
19734             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19735             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19736             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19737           done
19738           # CATALOGS depends on both $ac_dir and the user's LINGUAS
19739           # environment variable.
19740           INST_LINGUAS=
19741           if test -n "$ALL_LINGUAS"; then
19742             for presentlang in $ALL_LINGUAS; do
19743               useit=no
19744               if test "%UNSET%" != "$LINGUAS"; then
19745                 desiredlanguages="$LINGUAS"
19746               else
19747                 desiredlanguages="$ALL_LINGUAS"
19748               fi
19749               for desiredlang in $desiredlanguages; do
19750                 # Use the presentlang catalog if desiredlang is
19751                 #   a. equal to presentlang, or
19752                 #   b. a variant of presentlang (because in this case,
19753                 #      presentlang can be used as a fallback for messages
19754                 #      which are not translated in the desiredlang catalog).
19755                 case "$desiredlang" in
19756                   "$presentlang"*) useit=yes;;
19757                 esac
19758               done
19759               if test $useit = yes; then
19760                 INST_LINGUAS="$INST_LINGUAS $presentlang"
19761               fi
19762             done
19763           fi
19764           CATALOGS=
19765           if test -n "$INST_LINGUAS"; then
19766             for lang in $INST_LINGUAS; do
19767               CATALOGS="$CATALOGS $lang.gmo"
19768             done
19769           fi
19770           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19771           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"
19772           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19773             if test -f "$f"; then
19774               case "$f" in
19775                 *.orig | *.bak | *~) ;;
19776                 *) cat "$f" >> "$ac_dir/Makefile" ;;
19777               esac
19778             fi
19779           done
19780         fi
19781         ;;
19782       esac
19783     done ;;
19784
19785   esac
19786 done # for ac_tag
19787
19788
19789 as_fn_exit 0
19790 _ACEOF
19791 ac_clean_files=$ac_clean_files_save
19792
19793 test $ac_write_fail = 0 ||
19794   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19795
19796
19797 # configure is writing to config.log, and then calls config.status.
19798 # config.status does its own redirection, appending to config.log.
19799 # Unfortunately, on DOS this fails, as config.log is still kept open
19800 # by configure, so config.status won't be able to write to it; its
19801 # output is simply discarded.  So we exec the FD to /dev/null,
19802 # effectively closing config.log, so it can be properly (re)opened and
19803 # appended to by config.status.  When coming back to configure, we
19804 # need to make the FD available again.
19805 if test "$no_create" != yes; then
19806   ac_cs_success=:
19807   ac_config_status_args=
19808   test "$silent" = yes &&
19809     ac_config_status_args="$ac_config_status_args --quiet"
19810   exec 5>/dev/null
19811   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19812   exec 5>>config.log
19813   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19814   # would make configure fail if this is the last instruction.
19815   $ac_cs_success || as_fn_exit $?
19816 fi
19817 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19818   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19819 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19820 fi
19821