OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.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='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_objs
647 extra_headers_list
648 user_headers_inc_next_post
649 user_headers_inc_next_pre
650 extra_gcc_objs
651 TM_MULTILIB_EXCEPTIONS_CONFIG
652 TM_MULTILIB_CONFIG
653 TM_ENDIAN_CONFIG
654 tmake_file
655 xmake_file
656 cpp_install_dir
657 check_languages
658 build_file_translate
659 build_xm_defines
660 build_xm_include_list
661 build_xm_file_list
662 build_install_headers_dir
663 build_exeext
664 all_selected_languages
665 all_languages
666 all_lang_makefrags
667 all_gtfiles
668 all_compilers
669 srcdir
670 subdirs
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 STRIP
697 OBJDUMP
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 LIBTOOL
704 collect2
705 STMP_FIXINC
706 BUILD_LDFLAGS
707 BUILD_CFLAGS
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
711 ALL
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
738 AR
739 NM
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
752 LN
753 LN_S
754 AWK
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 SYSROOT_CFLAGS_FOR_TARGET
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 with_float
768 with_cpu
769 enable_multiarch
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 noexception_flags
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
787 CPP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
795 CXX
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
802 CC
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 enable_build_with_cxx
879 with_stabs
880 enable_multilib
881 enable_multiarch
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_sysroot
893 with_specs
894 with_pkgversion
895 with_bugurl
896 enable_languages
897 with_multilib_list
898 enable_rpath
899 with_libiconv_prefix
900 enable_sjlj_exceptions
901 enable_secureplt
902 enable_leading_mingw64_underscores
903 enable_cld
904 enable_frame_pointer
905 enable_win32_registry
906 enable_static
907 with_pic
908 enable_fast_install
909 enable_libtool_lock
910 with_plugin_ld
911 enable_gnu_indirect_function
912 enable_initfini_array
913 enable_comdat
914 enable_gnu_unique_object
915 enable_linker_build_id
916 with_long_double_128
917 with_gc
918 with_system_zlib
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
921 enable_plugin
922 enable_libquadmath_support
923 with_linker_hash_style
924 '
925       ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CXX
934 CXXFLAGS
935 CCC
936 CPP
937 CXXCPP
938 GMPLIBS
939 GMPINC
940 PPLLIBS
941 PPLINC
942 CLOOGLIBS
943 CLOOGINC'
944
945
946 # Initialize some variables set by options.
947 ac_init_help=
948 ac_init_version=false
949 ac_unrecognized_opts=
950 ac_unrecognized_sep=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998   # If the previous option needs an argument, assign it.
999   if test -n "$ac_prev"; then
1000     eval $ac_prev=\$ac_option
1001     ac_prev=
1002     continue
1003   fi
1004
1005   case $ac_option in
1006   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       as_fn_error "invalid feature name: $ac_useropt"
1053     ac_useropt_orig=$ac_useropt
1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055     case $ac_user_opts in
1056       *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060          ac_unrecognized_sep=', ';;
1061     esac
1062     eval enable_$ac_useropt=no ;;
1063
1064   -docdir | --docdir | --docdi | --doc | --do)
1065     ac_prev=docdir ;;
1066   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067     docdir=$ac_optarg ;;
1068
1069   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070     ac_prev=dvidir ;;
1071   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072     dvidir=$ac_optarg ;;
1073
1074   -enable-* | --enable-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error "invalid feature name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092   | --exec | --exe | --ex)
1093     ac_prev=exec_prefix ;;
1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096   | --exec=* | --exe=* | --ex=*)
1097     exec_prefix=$ac_optarg ;;
1098
1099   -gas | --gas | --ga | --g)
1100     # Obsolete; use --with-gas.
1101     with_gas=yes ;;
1102
1103   -help | --help | --hel | --he | -h)
1104     ac_init_help=long ;;
1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106     ac_init_help=recursive ;;
1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108     ac_init_help=short ;;
1109
1110   -host | --host | --hos | --ho)
1111     ac_prev=host_alias ;;
1112   -host=* | --host=* | --hos=* | --ho=*)
1113     host_alias=$ac_optarg ;;
1114
1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116     ac_prev=htmldir ;;
1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118   | --ht=*)
1119     htmldir=$ac_optarg ;;
1120
1121   -includedir | --includedir | --includedi | --included | --include \
1122   | --includ | --inclu | --incl | --inc)
1123     ac_prev=includedir ;;
1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
1126     includedir=$ac_optarg ;;
1127
1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
1129     ac_prev=infodir ;;
1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131     infodir=$ac_optarg ;;
1132
1133   -libdir | --libdir | --libdi | --libd)
1134     ac_prev=libdir ;;
1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136     libdir=$ac_optarg ;;
1137
1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139   | --libexe | --libex | --libe)
1140     ac_prev=libexecdir ;;
1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142   | --libexe=* | --libex=* | --libe=*)
1143     libexecdir=$ac_optarg ;;
1144
1145   -localedir | --localedir | --localedi | --localed | --locale)
1146     ac_prev=localedir ;;
1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148     localedir=$ac_optarg ;;
1149
1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
1151   | --localstate | --localstat | --localsta | --localst | --locals)
1152     ac_prev=localstatedir ;;
1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155     localstatedir=$ac_optarg ;;
1156
1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158     ac_prev=mandir ;;
1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160     mandir=$ac_optarg ;;
1161
1162   -nfp | --nfp | --nf)
1163     # Obsolete; use --without-fp.
1164     with_fp=no ;;
1165
1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167   | --no-cr | --no-c | -n)
1168     no_create=yes ;;
1169
1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172     no_recursion=yes ;;
1173
1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176   | --oldin | --oldi | --old | --ol | --o)
1177     ac_prev=oldincludedir ;;
1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181     oldincludedir=$ac_optarg ;;
1182
1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184     ac_prev=prefix ;;
1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186     prefix=$ac_optarg ;;
1187
1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189   | --program-pre | --program-pr | --program-p)
1190     ac_prev=program_prefix ;;
1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193     program_prefix=$ac_optarg ;;
1194
1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196   | --program-suf | --program-su | --program-s)
1197     ac_prev=program_suffix ;;
1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200     program_suffix=$ac_optarg ;;
1201
1202   -program-transform-name | --program-transform-name \
1203   | --program-transform-nam | --program-transform-na \
1204   | --program-transform-n | --program-transform- \
1205   | --program-transform | --program-transfor \
1206   | --program-transfo | --program-transf \
1207   | --program-trans | --program-tran \
1208   | --progr-tra | --program-tr | --program-t)
1209     ac_prev=program_transform_name ;;
1210   -program-transform-name=* | --program-transform-name=* \
1211   | --program-transform-nam=* | --program-transform-na=* \
1212   | --program-transform-n=* | --program-transform-=* \
1213   | --program-transform=* | --program-transfor=* \
1214   | --program-transfo=* | --program-transf=* \
1215   | --program-trans=* | --program-tran=* \
1216   | --progr-tra=* | --program-tr=* | --program-t=*)
1217     program_transform_name=$ac_optarg ;;
1218
1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220     ac_prev=pdfdir ;;
1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222     pdfdir=$ac_optarg ;;
1223
1224   -psdir | --psdir | --psdi | --psd | --ps)
1225     ac_prev=psdir ;;
1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227     psdir=$ac_optarg ;;
1228
1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230   | -silent | --silent | --silen | --sile | --sil)
1231     silent=yes ;;
1232
1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234     ac_prev=sbindir ;;
1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236   | --sbi=* | --sb=*)
1237     sbindir=$ac_optarg ;;
1238
1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241   | --sharedst | --shareds | --shared | --share | --shar \
1242   | --sha | --sh)
1243     ac_prev=sharedstatedir ;;
1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247   | --sha=* | --sh=*)
1248     sharedstatedir=$ac_optarg ;;
1249
1250   -site | --site | --sit)
1251     ac_prev=site ;;
1252   -site=* | --site=* | --sit=*)
1253     site=$ac_optarg ;;
1254
1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256     ac_prev=srcdir ;;
1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258     srcdir=$ac_optarg ;;
1259
1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261   | --syscon | --sysco | --sysc | --sys | --sy)
1262     ac_prev=sysconfdir ;;
1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265     sysconfdir=$ac_optarg ;;
1266
1267   -target | --target | --targe | --targ | --tar | --ta | --t)
1268     ac_prev=target_alias ;;
1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270     target_alias=$ac_optarg ;;
1271
1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273     verbose=yes ;;
1274
1275   -version | --version | --versio | --versi | --vers | -V)
1276     ac_init_version=: ;;
1277
1278   -with-* | --with-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=\$ac_optarg ;;
1293
1294   -without-* | --without-*)
1295     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298       as_fn_error "invalid package name: $ac_useropt"
1299     ac_useropt_orig=$ac_useropt
1300     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301     case $ac_user_opts in
1302       *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306          ac_unrecognized_sep=', ';;
1307     esac
1308     eval with_$ac_useropt=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) as_fn_error "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information."
1330     ;;
1331
1332   *=*)
1333     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334     # Reject names that are not valid shell variable names.
1335     case $ac_envvar in #(
1336       '' | [0-9]* | *[!_$as_cr_alnum]* )
1337       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1338     esac
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   as_fn_error "missing argument to $ac_option"
1356 fi
1357
1358 if test -n "$ac_unrecognized_opts"; then
1359   case $enable_option_checking in
1360     no) ;;
1361     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1362     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363   esac
1364 fi
1365
1366 # Check all directory arguments for consistency.
1367 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368                 datadir sysconfdir sharedstatedir localstatedir includedir \
1369                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370                 libdir localedir mandir
1371 do
1372   eval ac_val=\$$ac_var
1373   # Remove trailing slashes.
1374   case $ac_val in
1375     */ )
1376       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377       eval $ac_var=\$ac_val;;
1378   esac
1379   # Be sure to have absolute directory names.
1380   case $ac_val in
1381     [\\/$]* | ?:[\\/]* )  continue;;
1382     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383   esac
1384   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1386
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1393
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396   if test "x$build_alias" = x; then
1397     cross_compiling=maybe
1398     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1399     If a cross compiler is detected then cross compile mode will be used." >&2
1400   elif test "x$build_alias" != "x$host_alias"; then
1401     cross_compiling=yes
1402   fi
1403 fi
1404
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408 test "$silent" = yes && exec 6>/dev/null
1409
1410
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414   as_fn_error "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416   as_fn_error "pwd does not report name of working directory"
1417
1418
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421   ac_srcdir_defaulted=yes
1422   # Try the directory containing this script, then the parent directory.
1423   ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425          X"$as_myself" : 'X\(//\)[^/]' \| \
1426          X"$as_myself" : 'X\(//\)$' \| \
1427          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)[^/].*/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)$/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\).*/{
1442             s//\1/
1443             q
1444           }
1445           s/.*/./; q'`
1446   srcdir=$ac_confdir
1447   if test ! -r "$srcdir/$ac_unique_file"; then
1448     srcdir=..
1449   fi
1450 else
1451   ac_srcdir_defaulted=no
1452 fi
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1460         pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463   srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_env_${ac_var}_value=\$${ac_var}
1474   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482   # Omit some internal or obsolete options to make the list less imposing.
1483   # This message is too long to be a string in the A/UX 3.1 sh.
1484   cat <<_ACEOF
1485 \`configure' configures this package to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495   -h, --help              display this help and exit
1496       --help=short        display options specific to this package
1497       --help=recursive    display the short help of all the included packages
1498   -V, --version           display version information and exit
1499   -q, --quiet, --silent   do not print \`checking...' messages
1500       --cache-file=FILE   cache test results in FILE [disabled]
1501   -C, --config-cache      alias for \`--cache-file=config.cache'
1502   -n, --no-create         do not create output files
1503       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506   --prefix=PREFIX         install architecture-independent files in PREFIX
1507                           [$ac_default_prefix]
1508   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                           [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519   --bindir=DIR            user executables [EPREFIX/bin]
1520   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521   --libexecdir=DIR        program executables [EPREFIX/libexec]
1522   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525   --libdir=DIR            object code libraries [EPREFIX/lib]
1526   --includedir=DIR        C header files [PREFIX/include]
1527   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530   --infodir=DIR           info documentation [DATAROOTDIR/info]
1531   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532   --mandir=DIR            man documentation [DATAROOTDIR/man]
1533   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1534   --htmldir=DIR           html documentation [DOCDIR]
1535   --dvidir=DIR            dvi documentation [DOCDIR]
1536   --pdfdir=DIR            pdf documentation [DOCDIR]
1537   --psdir=DIR             ps documentation [DOCDIR]
1538 _ACEOF
1539
1540   cat <<\_ACEOF
1541
1542 Program names:
1543   --program-prefix=PREFIX            prepend PREFIX to installed program names
1544   --program-suffix=SUFFIX            append SUFFIX to installed program names
1545   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547 System types:
1548   --build=BUILD     configure for building on BUILD [guessed]
1549   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550   --target=TARGET   configure for building compilers for TARGET [HOST]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555
1556   cat <<\_ACEOF
1557
1558 Optional Features:
1559   --disable-option-checking  ignore unrecognized --enable/--with options
1560   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1561   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1562   --enable-generated-files-in-srcdir
1563                           put copies of generated files in source dir intended
1564                           for creating source tarballs for users without
1565                           texinfo bison or flex
1566   --disable-largefile     omit support for large files
1567   --enable-werror-always  enable -Werror despite compiler version
1568   --enable-checking[=LIST]
1569                           enable expensive run-time checks. With LIST, enable
1570                           only specific categories of checks. Categories are:
1571                           yes,no,all,none,release. Flags are:
1572                           assert,df,fold,gc,gcac,gimple,misc,
1573                           rtlflag,rtl,runtime,tree,valgrind,types
1574   --enable-coverage[=LEVEL]
1575                           enable compiler's code coverage collection. Use to
1576                           measure compiler performance and locate unused parts
1577                           of the compiler. With LEVEL, specify optimization.
1578                           Values are opt, noopt, default is noopt
1579   --enable-gather-detailed-mem-stats
1580                           enable detailed memory allocation stats gathering
1581   --enable-build-with-cxx build with C++ compiler instead of C compiler
1582   --enable-multilib       enable library support for multiple ABIs
1583   --enable-multiarch      enable support for multiarch paths
1584   --enable-__cxa_atexit   enable __cxa_atexit for C++
1585   --enable-decimal-float={no,yes,bid,dpd}
1586                         enable decimal float extension to C.  Selecting 'bid'
1587                         or 'dpd' choses which decimal floating point format
1588                         to use
1589   --enable-fixed-point    enable fixed-point arithmetic extension to C
1590   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1591                           package
1592   --enable-tls            enable or disable generation of tls code overriding
1593                           the assembler check for tls support
1594   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1595                           GNU Objective-C runtime
1596   --disable-shared        don't provide a shared libgcc
1597   --enable-languages=LIST specify which front-ends to build
1598   --disable-rpath         do not hardcode runtime library paths
1599   --enable-sjlj-exceptions
1600                           arrange to use setjmp/longjmp exception handling
1601   --enable-secureplt      enable -msecure-plt by default for PowerPC
1602   --enable-leading-mingw64-underscores
1603                           enable leading underscores on 64 bit mingw targets
1604   --enable-cld            enable -mcld by default for 32bit x86
1605   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1606                           x86
1607   --disable-win32-registry
1608                           disable lookup of installation paths in the Registry
1609                           on Windows hosts
1610   --enable-win32-registry enable registry lookup (default)
1611   --enable-win32-registry=KEY
1612                           use KEY instead of GCC version as the last portion
1613                           of the registry key
1614   --enable-shared[=PKGS]  build shared libraries [default=yes]
1615   --enable-static[=PKGS]  build static libraries [default=yes]
1616   --enable-fast-install[=PKGS]
1617                           optimize for fast installation [default=yes]
1618   --disable-libtool-lock  avoid locking (might break parallel builds)
1619   --enable-gnu-indirect-function
1620                           enable the use of the @gnu_indirect_function to
1621                           glibc systems
1622   --enable-initfini-array       use .init_array/.fini_array sections
1623   --enable-comdat         enable COMDAT group support
1624   --enable-gnu-unique-object
1625                           enable the use of the @gnu_unique_object ELF
1626                           extension on glibc systems
1627   --enable-linker-build-id
1628                           compiler will always pass --build-id to linker
1629   --enable-maintainer-mode
1630                           enable make rules and dependencies not useful (and
1631                           sometimes confusing) to the casual installer
1632   --enable-version-specific-runtime-libs
1633                           specify that runtime libraries should be installed
1634                           in a compiler-specific directory
1635   --enable-plugin         enable plugin support
1636   --disable-libquadmath-support
1637                           disable libquadmath support for Fortran
1638
1639 Optional Packages:
1640   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1643   --with-local-prefix=DIR specifies directory to put local include
1644   --with-gxx-include-dir=DIR
1645                           specifies directory to put g++ header files
1646   --with-cpp-install-dir=DIR
1647                           install the user visible C preprocessor in DIR
1648                           (relative to PREFIX) as well as PREFIX/bin
1649   --with-gnu-ld           arrange to work with GNU ld
1650   --with-ld               arrange to use the specified ld (full pathname)
1651   --with-demangler-in-ld  try to use demangler in GNU ld
1652   --with-gnu-as           arrange to work with GNU as
1653   --with-as               arrange to use the specified as (full pathname)
1654   --with-stabs            arrange to use stabs instead of host debug format
1655   --with-dwarf2           force the default debug format to be DWARF 2
1656   --with-native-system-header-dir=dir
1657                           use dir as the directory to look for standard
1658                           system header files in.  Defaults to /usr/include.
1659   --with-build-sysroot=sysroot
1660                           use sysroot as the system root during the build
1661   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1662   --with-specs=SPECS      add SPECS to driver command-line processing
1663   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1664   --with-bugurl=URL       Direct users to URL to report a bug
1665   --with-multilib-list    select multilibs (SH and x86-64 only)
1666   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1667   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1668   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1669   --with-pic              try to use only PIC/non-PIC objects [default=use
1670                           both]
1671   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1672   --with-plugin-ld=[ARG]  specify the plugin linker
1673   --with-long-double-128  use 128-bit long double by default
1674   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1675                           the compiler
1676   --with-system-zlib      use installed libz
1677   --with-linker-hash-style={sysv,gnu,both}
1678                           specify the linker hash style
1679
1680 Some influential environment variables:
1681   CC          C compiler command
1682   CFLAGS      C compiler flags
1683   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1684               nonstandard directory <lib dir>
1685   LIBS        libraries to pass to the linker, e.g. -l<library>
1686   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1687               you have headers in a nonstandard directory <include dir>
1688   CXX         C++ compiler command
1689   CXXFLAGS    C++ compiler flags
1690   CPP         C preprocessor
1691   CXXCPP      C++ preprocessor
1692   GMPLIBS     How to link GMP
1693   GMPINC      How to find GMP include files
1694   PPLLIBS     How to link PPL
1695   PPLINC      How to find PPL include files
1696   CLOOGLIBS   How to link CLOOG
1697   CLOOGINC    How to find CLOOG include files
1698
1699 Use these variables to override the choices made by `configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1701
1702 Report bugs to the package provider.
1703 _ACEOF
1704 ac_status=$?
1705 fi
1706
1707 if test "$ac_init_help" = "recursive"; then
1708   # If there are subdirs, report their specific --help.
1709   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710     test -d "$ac_dir" ||
1711       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712       continue
1713     ac_builddir=.
1714
1715 case "$ac_dir" in
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *)
1718   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719   # A ".." for each directory in $ac_dir_suffix.
1720   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721   case $ac_top_builddir_sub in
1722   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724   esac ;;
1725 esac
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1730
1731 case $srcdir in
1732   .)  # We are building in place.
1733     ac_srcdir=.
1734     ac_top_srcdir=$ac_top_builddir_sub
1735     ac_abs_top_srcdir=$ac_pwd ;;
1736   [\\/]* | ?:[\\/]* )  # Absolute name.
1737     ac_srcdir=$srcdir$ac_dir_suffix;
1738     ac_top_srcdir=$srcdir
1739     ac_abs_top_srcdir=$srcdir ;;
1740   *) # Relative name.
1741     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742     ac_top_srcdir=$ac_top_build_prefix$srcdir
1743     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 esac
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746
1747     cd "$ac_dir" || { ac_status=$?; continue; }
1748     # Check for guested configure.
1749     if test -f "$ac_srcdir/configure.gnu"; then
1750       echo &&
1751       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752     elif test -f "$ac_srcdir/configure"; then
1753       echo &&
1754       $SHELL "$ac_srcdir/configure" --help=recursive
1755     else
1756       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757     fi || ac_status=$?
1758     cd "$ac_pwd" || { ac_status=$?; break; }
1759   done
1760 fi
1761
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1764   cat <<\_ACEOF
1765 configure
1766 generated by GNU Autoconf 2.64
1767
1768 Copyright (C) 2009 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1771 _ACEOF
1772   exit
1773 fi
1774
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1778
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   rm -f conftest.$ac_objext
1786   if { { ac_try="$ac_compile"
1787 case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_compile") 2>conftest.err
1794   ac_status=$?
1795   if test -s conftest.err; then
1796     grep -v '^ *+' conftest.err >conftest.er1
1797     cat conftest.er1 >&5
1798     mv -f conftest.er1 conftest.err
1799   fi
1800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801   test $ac_status = 0; } && {
1802          test -z "$ac_c_werror_flag" ||
1803          test ! -s conftest.err
1804        } && test -s conftest.$ac_objext; then :
1805   ac_retval=0
1806 else
1807   $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810         ac_retval=1
1811 fi
1812   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813   return $ac_retval
1814
1815 } # ac_fn_c_try_compile
1816
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   rm -f conftest.$ac_objext
1824   if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827   *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831   (eval "$ac_compile") 2>conftest.err
1832   ac_status=$?
1833   if test -s conftest.err; then
1834     grep -v '^ *+' conftest.err >conftest.er1
1835     cat conftest.er1 >&5
1836     mv -f conftest.er1 conftest.err
1837   fi
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; } && {
1840          test -z "$ac_cxx_werror_flag" ||
1841          test ! -s conftest.err
1842        } && test -s conftest.$ac_objext; then :
1843   ac_retval=0
1844 else
1845   $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848         ac_retval=1
1849 fi
1850   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851   return $ac_retval
1852
1853 } # ac_fn_cxx_try_compile
1854
1855 # ac_fn_c_try_cpp LINENO
1856 # ----------------------
1857 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_cpp ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 case "(($ac_try" in
1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864   *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869   ac_status=$?
1870   if test -s conftest.err; then
1871     grep -v '^ *+' conftest.err >conftest.er1
1872     cat conftest.er1 >&5
1873     mv -f conftest.er1 conftest.err
1874   fi
1875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876   test $ac_status = 0; } >/dev/null && {
1877          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1878          test ! -s conftest.err
1879        }; then :
1880   ac_retval=0
1881 else
1882   $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885     ac_retval=1
1886 fi
1887   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888   return $ac_retval
1889
1890 } # ac_fn_c_try_cpp
1891
1892 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1893 # -------------------------------------------------------
1894 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1895 # the include files in INCLUDES and setting the cache variable VAR
1896 # accordingly.
1897 ac_fn_c_check_header_mongrel ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904   $as_echo_n "(cached) " >&6
1905 fi
1906 eval ac_res=\$$3
1907                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 else
1910   # Is the header compilable?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1912 $as_echo_n "checking $2 usability... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 $4
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919   ac_header_compiler=yes
1920 else
1921   ac_header_compiler=no
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1925 $as_echo "$ac_header_compiler" >&6; }
1926
1927 # Is the header present?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1929 $as_echo_n "checking $2 presence... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_cpp "$LINENO"; then :
1935   ac_header_preproc=yes
1936 else
1937   ac_header_preproc=no
1938 fi
1939 rm -f conftest.err conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1941 $as_echo "$ac_header_preproc" >&6; }
1942
1943 # So?  What about this header?
1944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1945   yes:no: )
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1947 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950     ;;
1951   no:yes:* )
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1953 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1955 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1957 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1958     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1959 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962     ;;
1963 esac
1964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967   $as_echo_n "(cached) " >&6
1968 else
1969   eval "$3=\$ac_header_compiler"
1970 fi
1971 eval ac_res=\$$3
1972                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 fi
1975   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977 } # ac_fn_c_check_header_mongrel
1978
1979 # ac_fn_c_try_run LINENO
1980 # ----------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1982 # that executables *can* be run.
1983 ac_fn_c_try_run ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   if { { ac_try="$ac_link"
1987 case "(($ac_try" in
1988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989   *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993   (eval "$ac_link") 2>&5
1994   ac_status=$?
1995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1997   { { case "(($ac_try" in
1998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999   *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003   (eval "$ac_try") 2>&5
2004   ac_status=$?
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; }; }; then :
2007   ac_retval=0
2008 else
2009   $as_echo "$as_me: program exited with status $ac_status" >&5
2010        $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013        ac_retval=$ac_status
2014 fi
2015   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017   return $ac_retval
2018
2019 } # ac_fn_c_try_run
2020
2021 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2022 # -------------------------------------------------------
2023 # Tests whether HEADER exists and can be compiled using the include files in
2024 # INCLUDES, setting the cache variable VAR accordingly.
2025 ac_fn_c_check_header_compile ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031   $as_echo_n "(cached) " >&6
2032 else
2033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h.  */
2035 $4
2036 #include <$2>
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039   eval "$3=yes"
2040 else
2041   eval "$3=no"
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 eval ac_res=\$$3
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049
2050 } # ac_fn_c_check_header_compile
2051
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2056 # computed
2057 ac_fn_c_compute_int ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   if test "$cross_compiling" = yes; then
2061     # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 int
2066 main ()
2067 {
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2069 test_array [0] = 0
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076   ac_lo=0 ac_mid=0
2077   while :; do
2078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 test_array [0] = 0
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092   ac_hi=$ac_mid; break
2093 else
2094   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2095                         if test $ac_lo -le $ac_mid; then
2096                           ac_lo= ac_hi=
2097                           break
2098                         fi
2099                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102   done
2103 else
2104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h.  */
2106 $4
2107 int
2108 main ()
2109 {
2110 static int test_array [1 - 2 * !(($2) < 0)];
2111 test_array [0] = 0
2112
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118   ac_hi=-1 ac_mid=-1
2119   while :; do
2120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h.  */
2122 $4
2123 int
2124 main ()
2125 {
2126 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2127 test_array [0] = 0
2128
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134   ac_lo=$ac_mid; break
2135 else
2136   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2137                         if test $ac_mid -le $ac_hi; then
2138                           ac_lo= ac_hi=
2139                           break
2140                         fi
2141                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144   done
2145 else
2146   ac_lo= ac_hi=
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 # Binary search between lo and hi bounds.
2152 while test "x$ac_lo" != "x$ac_hi"; do
2153   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h.  */
2156 $4
2157 int
2158 main ()
2159 {
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 test_array [0] = 0
2162
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168   ac_hi=$ac_mid
2169 else
2170   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 done
2174 case $ac_lo in #((
2175 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2176 '') ac_retval=1 ;;
2177 esac
2178   else
2179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2184 #include <stdio.h>
2185 #include <stdlib.h>
2186 int
2187 main ()
2188 {
2189
2190   FILE *f = fopen ("conftest.val", "w");
2191   if (! f)
2192     return 1;
2193   if (($2) < 0)
2194     {
2195       long int i = longval ();
2196       if (i != ($2))
2197         return 1;
2198       fprintf (f, "%ld", i);
2199     }
2200   else
2201     {
2202       unsigned long int i = ulongval ();
2203       if (i != ($2))
2204         return 1;
2205       fprintf (f, "%lu", i);
2206     }
2207   /* Do not output a trailing newline, as this causes \r\n confusion
2208      on some platforms.  */
2209   return ferror (f) || fclose (f) != 0;
2210
2211   ;
2212   return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_run "$LINENO"; then :
2216   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2217 else
2218   ac_retval=1
2219 fi
2220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2221   conftest.$ac_objext conftest.beam conftest.$ac_ext
2222 rm -f conftest.val
2223
2224   fi
2225   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226   return $ac_retval
2227
2228 } # ac_fn_c_compute_int
2229
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240   $as_echo_n "(cached) " >&6
2241 else
2242   eval "$3=no"
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof ($2))
2250          return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h.  */
2258 $4
2259 int
2260 main ()
2261 {
2262 if (sizeof (($2)))
2263             return 0;
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269
2270 else
2271   eval "$3=yes"
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 fi
2277 eval ac_res=\$$3
2278                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281
2282 } # ac_fn_c_check_type
2283
2284 # ac_fn_c_find_intX_t LINENO BITS VAR
2285 # -----------------------------------
2286 # Finds a signed integer type with width BITS, setting cache variable VAR
2287 # accordingly.
2288 ac_fn_c_find_intX_t ()
2289 {
2290   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2292 $as_echo_n "checking for int$2_t... " >&6; }
2293 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2294   $as_echo_n "(cached) " >&6
2295 else
2296   eval "$3=no"
2297      for ac_type in int$2_t 'int' 'long int' \
2298          'long long int' 'short int' 'signed char'; do
2299        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 $ac_includes_default
2302 int
2303 main ()
2304 {
2305 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2306 test_array [0] = 0
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h.  */
2315 $ac_includes_default
2316 int
2317 main ()
2318 {
2319 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2320                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2321 test_array [0] = 0
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328
2329 else
2330   case $ac_type in #(
2331   int$2_t) :
2332     eval "$3=yes" ;; #(
2333   *) :
2334     eval "$3=\$ac_type" ;;
2335 esac
2336 fi
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340        eval as_val=\$$3
2341    if test "x$as_val" = x""no; then :
2342
2343 else
2344   break
2345 fi
2346      done
2347 fi
2348 eval ac_res=\$$3
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352
2353 } # ac_fn_c_find_intX_t
2354
2355 # ac_fn_c_try_link LINENO
2356 # -----------------------
2357 # Try to link conftest.$ac_ext, and return whether this succeeded.
2358 ac_fn_c_try_link ()
2359 {
2360   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361   rm -f conftest.$ac_objext conftest$ac_exeext
2362   if { { ac_try="$ac_link"
2363 case "(($ac_try" in
2364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365   *) ac_try_echo=$ac_try;;
2366 esac
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369   (eval "$ac_link") 2>conftest.err
2370   ac_status=$?
2371   if test -s conftest.err; then
2372     grep -v '^ *+' conftest.err >conftest.er1
2373     cat conftest.er1 >&5
2374     mv -f conftest.er1 conftest.err
2375   fi
2376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377   test $ac_status = 0; } && {
2378          test -z "$ac_c_werror_flag" ||
2379          test ! -s conftest.err
2380        } && test -s conftest$ac_exeext && {
2381          test "$cross_compiling" = yes ||
2382          $as_test_x conftest$ac_exeext
2383        }; then :
2384   ac_retval=0
2385 else
2386   $as_echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389         ac_retval=1
2390 fi
2391   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2392   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2393   # interfere with the next link command; also delete a directory that is
2394   # left behind by Apple's compiler.  We do this before executing the actions.
2395   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2396   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397   return $ac_retval
2398
2399 } # ac_fn_c_try_link
2400
2401 # ac_fn_c_find_uintX_t LINENO BITS VAR
2402 # ------------------------------------
2403 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2404 # accordingly.
2405 ac_fn_c_find_uintX_t ()
2406 {
2407   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2409 $as_echo_n "checking for uint$2_t... " >&6; }
2410 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2411   $as_echo_n "(cached) " >&6
2412 else
2413   eval "$3=no"
2414      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2415          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2416        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h.  */
2418 $ac_includes_default
2419 int
2420 main ()
2421 {
2422 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2423 test_array [0] = 0
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"; then :
2430   case $ac_type in #(
2431   uint$2_t) :
2432     eval "$3=yes" ;; #(
2433   *) :
2434     eval "$3=\$ac_type" ;;
2435 esac
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438        eval as_val=\$$3
2439    if test "x$as_val" = x""no; then :
2440
2441 else
2442   break
2443 fi
2444      done
2445 fi
2446 eval ac_res=\$$3
2447                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450
2451 } # ac_fn_c_find_uintX_t
2452
2453 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2454 # ----------------------------------------------
2455 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2456 ac_fn_c_check_header_preproc ()
2457 {
2458   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h.  */
2466 #include <$2>
2467 _ACEOF
2468 if ac_fn_c_try_cpp "$LINENO"; then :
2469   eval "$3=yes"
2470 else
2471   eval "$3=no"
2472 fi
2473 rm -f conftest.err conftest.$ac_ext
2474 fi
2475 eval ac_res=\$$3
2476                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479
2480 } # ac_fn_c_check_header_preproc
2481
2482 # ac_fn_cxx_try_cpp LINENO
2483 # ------------------------
2484 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2485 ac_fn_cxx_try_cpp ()
2486 {
2487   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488   if { { ac_try="$ac_cpp conftest.$ac_ext"
2489 case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494 $as_echo "$ac_try_echo"; } >&5
2495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2496   ac_status=$?
2497   if test -s conftest.err; then
2498     grep -v '^ *+' conftest.err >conftest.er1
2499     cat conftest.er1 >&5
2500     mv -f conftest.er1 conftest.err
2501   fi
2502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503   test $ac_status = 0; } >/dev/null && {
2504          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2505          test ! -s conftest.err
2506        }; then :
2507   ac_retval=0
2508 else
2509   $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512     ac_retval=1
2513 fi
2514   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515   return $ac_retval
2516
2517 } # ac_fn_cxx_try_cpp
2518
2519 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2520 # ------------------------------------------------
2521 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2522 ac_fn_cxx_check_header_preproc ()
2523 {
2524   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528   $as_echo_n "(cached) " >&6
2529 else
2530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h.  */
2532 #include <$2>
2533 _ACEOF
2534 if ac_fn_cxx_try_cpp "$LINENO"; then :
2535   eval "$3=yes"
2536 else
2537   eval "$3=no"
2538 fi
2539 rm -f conftest.err conftest.$ac_ext
2540 fi
2541 eval ac_res=\$$3
2542                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545
2546 } # ac_fn_cxx_check_header_preproc
2547
2548 # ac_fn_c_check_func LINENO FUNC VAR
2549 # ----------------------------------
2550 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2551 ac_fn_c_check_func ()
2552 {
2553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h.  */
2561 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2563 #define $2 innocuous_$2
2564
2565 /* System header to define __stub macros and hopefully few prototypes,
2566     which can conflict with char $2 (); below.
2567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2568     <limits.h> exists even on freestanding compilers.  */
2569
2570 #ifdef __STDC__
2571 # include <limits.h>
2572 #else
2573 # include <assert.h>
2574 #endif
2575
2576 #undef $2
2577
2578 /* Override any GCC internal prototype to avoid an error.
2579    Use char because int might match the return type of a GCC
2580    builtin and then its argument prototype would still apply.  */
2581 #ifdef __cplusplus
2582 extern "C"
2583 #endif
2584 char $2 ();
2585 /* The GNU C library defines this for functions which it implements
2586     to always fail with ENOSYS.  Some functions are actually named
2587     something starting with __ and the normal name is an alias.  */
2588 #if defined __stub_$2 || defined __stub___$2
2589 choke me
2590 #endif
2591
2592 int
2593 main ()
2594 {
2595 return $2 ();
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 if ac_fn_c_try_link "$LINENO"; then :
2601   eval "$3=yes"
2602 else
2603   eval "$3=no"
2604 fi
2605 rm -f core conftest.err conftest.$ac_objext \
2606     conftest$ac_exeext conftest.$ac_ext
2607 fi
2608 eval ac_res=\$$3
2609                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2610 $as_echo "$ac_res" >&6; }
2611   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612
2613 } # ac_fn_c_check_func
2614
2615 # ac_fn_cxx_try_link LINENO
2616 # -------------------------
2617 # Try to link conftest.$ac_ext, and return whether this succeeded.
2618 ac_fn_cxx_try_link ()
2619 {
2620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2621   rm -f conftest.$ac_objext conftest$ac_exeext
2622   if { { ac_try="$ac_link"
2623 case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629   (eval "$ac_link") 2>conftest.err
2630   ac_status=$?
2631   if test -s conftest.err; then
2632     grep -v '^ *+' conftest.err >conftest.er1
2633     cat conftest.er1 >&5
2634     mv -f conftest.er1 conftest.err
2635   fi
2636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2637   test $ac_status = 0; } && {
2638          test -z "$ac_cxx_werror_flag" ||
2639          test ! -s conftest.err
2640        } && test -s conftest$ac_exeext && {
2641          test "$cross_compiling" = yes ||
2642          $as_test_x conftest$ac_exeext
2643        }; then :
2644   ac_retval=0
2645 else
2646   $as_echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649         ac_retval=1
2650 fi
2651   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2652   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2653   # interfere with the next link command; also delete a directory that is
2654   # left behind by Apple's compiler.  We do this before executing the actions.
2655   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2656   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2657   return $ac_retval
2658
2659 } # ac_fn_cxx_try_link
2660 cat >config.log <<_ACEOF
2661 This file contains any messages produced by compilers while
2662 running configure, to aid debugging if configure makes a mistake.
2663
2664 It was created by $as_me, which was
2665 generated by GNU Autoconf 2.64.  Invocation command line was
2666
2667   $ $0 $@
2668
2669 _ACEOF
2670 exec 5>>config.log
2671 {
2672 cat <<_ASUNAME
2673 ## --------- ##
2674 ## Platform. ##
2675 ## --------- ##
2676
2677 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2678 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2679 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2680 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2681 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2682
2683 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2684 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2685
2686 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2687 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2688 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2689 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2690 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2691 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2692 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2693
2694 _ASUNAME
2695
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701     $as_echo "PATH: $as_dir"
2702   done
2703 IFS=$as_save_IFS
2704
2705 } >&5
2706
2707 cat >&5 <<_ACEOF
2708
2709
2710 ## ----------- ##
2711 ## Core tests. ##
2712 ## ----------- ##
2713
2714 _ACEOF
2715
2716
2717 # Keep a trace of the command line.
2718 # Strip out --no-create and --no-recursion so they do not pile up.
2719 # Strip out --silent because we don't want to record it for future runs.
2720 # Also quote any args containing shell meta-characters.
2721 # Make two passes to allow for proper duplicate-argument suppression.
2722 ac_configure_args=
2723 ac_configure_args0=
2724 ac_configure_args1=
2725 ac_must_keep_next=false
2726 for ac_pass in 1 2
2727 do
2728   for ac_arg
2729   do
2730     case $ac_arg in
2731     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2732     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2733     | -silent | --silent | --silen | --sile | --sil)
2734       continue ;;
2735     *\'*)
2736       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2737     esac
2738     case $ac_pass in
2739     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2740     2)
2741       as_fn_append ac_configure_args1 " '$ac_arg'"
2742       if test $ac_must_keep_next = true; then
2743         ac_must_keep_next=false # Got value, back to normal.
2744       else
2745         case $ac_arg in
2746           *=* | --config-cache | -C | -disable-* | --disable-* \
2747           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2748           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2749           | -with-* | --with-* | -without-* | --without-* | --x)
2750             case "$ac_configure_args0 " in
2751               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2752             esac
2753             ;;
2754           -* ) ac_must_keep_next=true ;;
2755         esac
2756       fi
2757       as_fn_append ac_configure_args " '$ac_arg'"
2758       ;;
2759     esac
2760   done
2761 done
2762 { ac_configure_args0=; unset ac_configure_args0;}
2763 { ac_configure_args1=; unset ac_configure_args1;}
2764
2765 # When interrupted or exit'd, cleanup temporary files, and complete
2766 # config.log.  We remove comments because anyway the quotes in there
2767 # would cause problems or look ugly.
2768 # WARNING: Use '\'' to represent an apostrophe within the trap.
2769 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2770 trap 'exit_status=$?
2771   # Save into config.log some information that might help in debugging.
2772   {
2773     echo
2774
2775     cat <<\_ASBOX
2776 ## ---------------- ##
2777 ## Cache variables. ##
2778 ## ---------------- ##
2779 _ASBOX
2780     echo
2781     # The following way of writing the cache mishandles newlines in values,
2782 (
2783   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2784     eval ac_val=\$$ac_var
2785     case $ac_val in #(
2786     *${as_nl}*)
2787       case $ac_var in #(
2788       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2790       esac
2791       case $ac_var in #(
2792       _ | IFS | as_nl) ;; #(
2793       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2794       *) { eval $ac_var=; unset $ac_var;} ;;
2795       esac ;;
2796     esac
2797   done
2798   (set) 2>&1 |
2799     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2800     *${as_nl}ac_space=\ *)
2801       sed -n \
2802         "s/'\''/'\''\\\\'\'''\''/g;
2803           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2804       ;; #(
2805     *)
2806       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2807       ;;
2808     esac |
2809     sort
2810 )
2811     echo
2812
2813     cat <<\_ASBOX
2814 ## ----------------- ##
2815 ## Output variables. ##
2816 ## ----------------- ##
2817 _ASBOX
2818     echo
2819     for ac_var in $ac_subst_vars
2820     do
2821       eval ac_val=\$$ac_var
2822       case $ac_val in
2823       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2824       esac
2825       $as_echo "$ac_var='\''$ac_val'\''"
2826     done | sort
2827     echo
2828
2829     if test -n "$ac_subst_files"; then
2830       cat <<\_ASBOX
2831 ## ------------------- ##
2832 ## File substitutions. ##
2833 ## ------------------- ##
2834 _ASBOX
2835       echo
2836       for ac_var in $ac_subst_files
2837       do
2838         eval ac_val=\$$ac_var
2839         case $ac_val in
2840         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2841         esac
2842         $as_echo "$ac_var='\''$ac_val'\''"
2843       done | sort
2844       echo
2845     fi
2846
2847     if test -s confdefs.h; then
2848       cat <<\_ASBOX
2849 ## ----------- ##
2850 ## confdefs.h. ##
2851 ## ----------- ##
2852 _ASBOX
2853       echo
2854       cat confdefs.h
2855       echo
2856     fi
2857     test "$ac_signal" != 0 &&
2858       $as_echo "$as_me: caught signal $ac_signal"
2859     $as_echo "$as_me: exit $exit_status"
2860   } >&5
2861   rm -f core *.core core.conftest.* &&
2862     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2863     exit $exit_status
2864 ' 0
2865 for ac_signal in 1 2 13 15; do
2866   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2867 done
2868 ac_signal=0
2869
2870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2871 rm -f -r conftest* confdefs.h
2872
2873 $as_echo "/* confdefs.h */" > confdefs.h
2874
2875 # Predefined preprocessor variables.
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_NAME "$PACKAGE_NAME"
2879 _ACEOF
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2883 _ACEOF
2884
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2887 _ACEOF
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_STRING "$PACKAGE_STRING"
2891 _ACEOF
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2895 _ACEOF
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_URL "$PACKAGE_URL"
2899 _ACEOF
2900
2901
2902 # Let the site file select an alternate cache file if it wants to.
2903 # Prefer an explicitly selected file to automatically selected ones.
2904 ac_site_file1=NONE
2905 ac_site_file2=NONE
2906 if test -n "$CONFIG_SITE"; then
2907   ac_site_file1=$CONFIG_SITE
2908 elif test "x$prefix" != xNONE; then
2909   ac_site_file1=$prefix/share/config.site
2910   ac_site_file2=$prefix/etc/config.site
2911 else
2912   ac_site_file1=$ac_default_prefix/share/config.site
2913   ac_site_file2=$ac_default_prefix/etc/config.site
2914 fi
2915 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2916 do
2917   test "x$ac_site_file" = xNONE && continue
2918   if test -r "$ac_site_file"; then
2919     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2920 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2921     sed 's/^/| /' "$ac_site_file" >&5
2922     . "$ac_site_file"
2923   fi
2924 done
2925
2926 if test -r "$cache_file"; then
2927   # Some versions of bash will fail to source /dev/null (special
2928   # files actually), so we avoid doing that.
2929   if test -f "$cache_file"; then
2930     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2931 $as_echo "$as_me: loading cache $cache_file" >&6;}
2932     case $cache_file in
2933       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2934       *)                      . "./$cache_file";;
2935     esac
2936   fi
2937 else
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2939 $as_echo "$as_me: creating cache $cache_file" >&6;}
2940   >$cache_file
2941 fi
2942
2943 # Check that the precious variables saved in the cache have kept the same
2944 # value.
2945 ac_cache_corrupted=false
2946 for ac_var in $ac_precious_vars; do
2947   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2948   eval ac_new_set=\$ac_env_${ac_var}_set
2949   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2950   eval ac_new_val=\$ac_env_${ac_var}_value
2951   case $ac_old_set,$ac_new_set in
2952     set,)
2953       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2955       ac_cache_corrupted=: ;;
2956     ,set)
2957       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2958 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2959       ac_cache_corrupted=: ;;
2960     ,);;
2961     *)
2962       if test "x$ac_old_val" != "x$ac_new_val"; then
2963         # differences in whitespace do not lead to failure.
2964         ac_old_val_w=`echo x $ac_old_val`
2965         ac_new_val_w=`echo x $ac_new_val`
2966         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2967           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2968 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2969           ac_cache_corrupted=:
2970         else
2971           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2972 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2973           eval $ac_var=\$ac_old_val
2974         fi
2975         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2976 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2977         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2978 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2979       fi;;
2980   esac
2981   # Pass precious variables to config.status.
2982   if test "$ac_new_set" = set; then
2983     case $ac_new_val in
2984     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2985     *) ac_arg=$ac_var=$ac_new_val ;;
2986     esac
2987     case " $ac_configure_args " in
2988       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2989       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2990     esac
2991   fi
2992 done
2993 if $ac_cache_corrupted; then
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2997 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2998   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2999 fi
3000 ## -------------------- ##
3001 ## Main body of script. ##
3002 ## -------------------- ##
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010
3011
3012
3013
3014
3015 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3016
3017
3018 gcc_version=`cat $srcdir/BASE-VER`
3019
3020 # Determine the host, build, and target systems
3021 ac_aux_dir=
3022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3023   for ac_t in install-sh install.sh shtool; do
3024     if test -f "$ac_dir/$ac_t"; then
3025       ac_aux_dir=$ac_dir
3026       ac_install_sh="$ac_aux_dir/$ac_t -c"
3027       break 2
3028     fi
3029   done
3030 done
3031 if test -z "$ac_aux_dir"; then
3032   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3033 fi
3034
3035 # These three variables are undocumented and unsupported,
3036 # and are intended to be withdrawn in a future Autoconf release.
3037 # They can cause serious problems if a builder's source tree is in a directory
3038 # whose full name contains unusual characters.
3039 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3040 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3041 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3042
3043
3044 # Make sure we can run config.sub.
3045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3046   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3047
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3049 $as_echo_n "checking build system type... " >&6; }
3050 if test "${ac_cv_build+set}" = set; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   ac_build_alias=$build_alias
3054 test "x$ac_build_alias" = x &&
3055   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3056 test "x$ac_build_alias" = x &&
3057   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3059   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3060
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3063 $as_echo "$ac_cv_build" >&6; }
3064 case $ac_cv_build in
3065 *-*-*) ;;
3066 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3067 esac
3068 build=$ac_cv_build
3069 ac_save_IFS=$IFS; IFS='-'
3070 set x $ac_cv_build
3071 shift
3072 build_cpu=$1
3073 build_vendor=$2
3074 shift; shift
3075 # Remember, the first character of IFS is used to create $*,
3076 # except with old shells:
3077 build_os=$*
3078 IFS=$ac_save_IFS
3079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3080
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3083 $as_echo_n "checking host system type... " >&6; }
3084 if test "${ac_cv_host+set}" = set; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   if test "x$host_alias" = x; then
3088   ac_cv_host=$ac_cv_build
3089 else
3090   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3091     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3092 fi
3093
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3096 $as_echo "$ac_cv_host" >&6; }
3097 case $ac_cv_host in
3098 *-*-*) ;;
3099 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3100 esac
3101 host=$ac_cv_host
3102 ac_save_IFS=$IFS; IFS='-'
3103 set x $ac_cv_host
3104 shift
3105 host_cpu=$1
3106 host_vendor=$2
3107 shift; shift
3108 # Remember, the first character of IFS is used to create $*,
3109 # except with old shells:
3110 host_os=$*
3111 IFS=$ac_save_IFS
3112 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3113
3114
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3116 $as_echo_n "checking target system type... " >&6; }
3117 if test "${ac_cv_target+set}" = set; then :
3118   $as_echo_n "(cached) " >&6
3119 else
3120   if test "x$target_alias" = x; then
3121   ac_cv_target=$ac_cv_host
3122 else
3123   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3124     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3125 fi
3126
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3129 $as_echo "$ac_cv_target" >&6; }
3130 case $ac_cv_target in
3131 *-*-*) ;;
3132 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3133 esac
3134 target=$ac_cv_target
3135 ac_save_IFS=$IFS; IFS='-'
3136 set x $ac_cv_target
3137 shift
3138 target_cpu=$1
3139 target_vendor=$2
3140 shift; shift
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3143 target_os=$*
3144 IFS=$ac_save_IFS
3145 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3146
3147
3148 # The aliases save the names the user supplied, while $host etc.
3149 # will get canonicalized.
3150 test -n "$target_alias" &&
3151   test "$program_prefix$program_suffix$program_transform_name" = \
3152     NONENONEs,x,x, &&
3153   program_prefix=${target_alias}-
3154
3155 # Determine the noncanonical target name, for directory use.
3156  case ${build_alias} in
3157   "") build_noncanonical=${build} ;;
3158   *) build_noncanonical=${build_alias} ;;
3159 esac
3160
3161  case ${host_alias} in
3162   "") host_noncanonical=${build_noncanonical} ;;
3163   *) host_noncanonical=${host_alias} ;;
3164 esac
3165
3166  case ${target_alias} in
3167   "") target_noncanonical=${host_noncanonical} ;;
3168   *) target_noncanonical=${target_alias} ;;
3169 esac
3170
3171
3172
3173
3174 # Determine the target- and build-specific subdirectories
3175
3176 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3177 # have matching libraries, they should use host libraries: Makefile.tpl
3178 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3179 # However, they still use the build modules, because the corresponding
3180 # host modules (e.g. bison) are only built for the host when bootstrap
3181 # finishes. So:
3182 # - build_subdir is where we find build modules, and never changes.
3183 # - build_libsubdir is where we find build libraries, and can be overridden.
3184
3185 # Prefix 'build-' so this never conflicts with target_subdir.
3186 build_subdir="build-${build_noncanonical}"
3187
3188 # Check whether --with-build-libsubdir was given.
3189 if test "${with_build_libsubdir+set}" = set; then :
3190   withval=$with_build_libsubdir; build_libsubdir="$withval"
3191 else
3192   build_libsubdir="$build_subdir"
3193 fi
3194
3195 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3196 if ( test $srcdir = . && test -d gcc ) \
3197    || test -d $srcdir/../host-${host_noncanonical}; then
3198   host_subdir="host-${host_noncanonical}"
3199 else
3200   host_subdir=.
3201 fi
3202 # No prefix.
3203 target_subdir=${target_noncanonical}
3204
3205
3206 # Set program_transform_name
3207 test "$program_prefix" != NONE &&
3208   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3209 # Use a double $ so make ignores it.
3210 test "$program_suffix" != NONE &&
3211   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3212 # Double any \ or $.
3213 # By default was `s,x,x', remove it if useless.
3214 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3215 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3216
3217
3218 # Check for bogus environment variables.
3219 # Test if LIBRARY_PATH contains the notation for the current directory
3220 # since this would lead to problems installing/building glibc.
3221 # LIBRARY_PATH contains the current directory if one of the following
3222 # is true:
3223 # - one of the terminals (":" and ";") is the first or last sign
3224 # - two terminals occur directly after each other
3225 # - the path contains an element with a dot in it
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3227 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3228 case ${LIBRARY_PATH} in
3229   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3230     library_path_setting="contains current directory"
3231     ;;
3232   *)
3233     library_path_setting="ok"
3234     ;;
3235 esac
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3237 $as_echo "$library_path_setting" >&6; }
3238 if test "$library_path_setting" != "ok"; then
3239 as_fn_error "
3240 *** LIBRARY_PATH shouldn't contain the current directory when
3241 *** building gcc. Please change the environment variable
3242 *** and run configure again." "$LINENO" 5
3243 fi
3244
3245 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3246 # since this would lead to problems installing/building glibc.
3247 # GCC_EXEC_PREFIX contains the current directory if one of the following
3248 # is true:
3249 # - one of the terminals (":" and ";") is the first or last sign
3250 # - two terminals occur directly after each other
3251 # - the path contains an element with a dot in it
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3253 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3254 case ${GCC_EXEC_PREFIX} in
3255   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3256     gcc_exec_prefix_setting="contains current directory"
3257     ;;
3258   *)
3259     gcc_exec_prefix_setting="ok"
3260     ;;
3261 esac
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3263 $as_echo "$gcc_exec_prefix_setting" >&6; }
3264 if test "$gcc_exec_prefix_setting" != "ok"; then
3265 as_fn_error "
3266 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3267 *** building gcc. Please change the environment variable
3268 *** and run configure again." "$LINENO" 5
3269 fi
3270
3271 # -----------
3272 # Directories
3273 # -----------
3274
3275 # Specify the local prefix
3276 local_prefix=
3277
3278 # Check whether --with-local-prefix was given.
3279 if test "${with_local_prefix+set}" = set; then :
3280   withval=$with_local_prefix; case "${withval}" in
3281 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3282 no)     ;;
3283 *)      local_prefix=$with_local_prefix ;;
3284 esac
3285 fi
3286
3287
3288 # Default local prefix if it is empty
3289 if test x$local_prefix = x; then
3290         local_prefix=/usr/local
3291 fi
3292
3293 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3294 # passed in by the toplevel make and thus we'd get different behavior
3295 # depending on where we built the sources.
3296 gcc_gxx_include_dir=
3297 # Specify the g++ header file directory
3298
3299 # Check whether --with-gxx-include-dir was given.
3300 if test "${with_gxx_include_dir+set}" = set; then :
3301   withval=$with_gxx_include_dir; case "${withval}" in
3302 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3303 no)     ;;
3304 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3305 esac
3306 fi
3307
3308
3309 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3310 if test x${gcc_gxx_include_dir} = x; then
3311   if test x${enable_version_specific_runtime_libs} = xyes; then
3312     gcc_gxx_include_dir='${libsubdir}/include/c++'
3313   else
3314     libstdcxx_incdir='include/c++/$(version)'
3315     if test x$host != x$target; then
3316        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3317     fi
3318     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3319   fi
3320 fi
3321
3322 gcc_gxx_include_dir_add_sysroot=0
3323 if test "${with_sysroot+set}" = set; then
3324   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3325   if test "${gcc_gxx_without_sysroot}"; then
3326     gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3327     gcc_gxx_include_dir_add_sysroot=1
3328   fi
3329 fi
3330
3331
3332 # Check whether --with-cpp_install_dir was given.
3333 if test "${with_cpp_install_dir+set}" = set; then :
3334   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3335   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3336 elif test x$withval != xno; then
3337   cpp_install_dir=$withval
3338 fi
3339 fi
3340
3341
3342 # We would like to our source tree to be readonly.  However when releases or
3343 # pre-releases are generated, the flex/bison generated files as well as the
3344 # various formats of manuals need to be included along with the rest of the
3345 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3346 # just that.
3347
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3349 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3350     # Check whether --enable-generated-files-in-srcdir was given.
3351 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3352   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3353 else
3354   generated_files_in_srcdir=no
3355 fi
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3359 $as_echo "$generated_files_in_srcdir" >&6; }
3360
3361 if test "$generated_files_in_srcdir" = "yes"; then
3362   GENINSRC=''
3363 else
3364   GENINSRC='#'
3365 fi
3366
3367
3368 # -------------------
3369 # Find default linker
3370 # -------------------
3371
3372 # With GNU ld
3373
3374 # Check whether --with-gnu-ld was given.
3375 if test "${with_gnu_ld+set}" = set; then :
3376   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3377 else
3378   gnu_ld_flag=no
3379 fi
3380
3381
3382 # With pre-defined ld
3383
3384 # Check whether --with-ld was given.
3385 if test "${with_ld+set}" = set; then :
3386   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3387 fi
3388
3389 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3390   if test ! -x "$DEFAULT_LINKER"; then
3391     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3392   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3393     gnu_ld_flag=yes
3394   fi
3395
3396 cat >>confdefs.h <<_ACEOF
3397 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3398 _ACEOF
3399
3400 fi
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3403 $as_echo_n "checking whether a default linker was specified... " >&6; }
3404 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3405   if test x"$gnu_ld_flag" = x"no"; then
3406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3408   else
3409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3411   fi
3412 else
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 fi
3416
3417 # With demangler in GNU ld
3418
3419 # Check whether --with-demangler-in-ld was given.
3420 if test "${with_demangler_in_ld+set}" = set; then :
3421   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3422 else
3423   demangler_in_ld=yes
3424 fi
3425
3426
3427 # ----------------------
3428 # Find default assembler
3429 # ----------------------
3430
3431 # With GNU as
3432
3433 # Check whether --with-gnu-as was given.
3434 if test "${with_gnu_as+set}" = set; then :
3435   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3436 else
3437   gas_flag=no
3438 fi
3439
3440
3441
3442 # Check whether --with-as was given.
3443 if test "${with_as+set}" = set; then :
3444   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3445 fi
3446
3447 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3448   if test ! -x "$DEFAULT_ASSEMBLER"; then
3449     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3450   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3451     gas_flag=yes
3452   fi
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3456 _ACEOF
3457
3458 fi
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463   if test x"$gas_flag" = x"no"; then
3464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466   else
3467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469   fi
3470 else
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3478
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3483 #
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3487
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$ac_cv_prog_CC"; then
3534   ac_ct_CC=$CC
3535   # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552     ac_cv_prog_ac_ct_CC="gcc"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571   if test "x$ac_ct_CC" = x; then
3572     CC=""
3573   else
3574     case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580     CC=$ac_ct_CC
3581   fi
3582 else
3583   CC="$ac_cv_prog_CC"
3584 fi
3585
3586 if test -z "$CC"; then
3587           if test -n "$ac_tool_prefix"; then
3588     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$CC"; then
3596   ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605     ac_cv_prog_CC="${ac_tool_prefix}cc"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625   fi
3626 fi
3627 if test -z "$CC"; then
3628   # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   if test -n "$CC"; then
3636   ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638   ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647        ac_prog_rejected=yes
3648        continue
3649      fi
3650     ac_cv_prog_CC="cc"
3651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652     break 2
3653   fi
3654 done
3655   done
3656 IFS=$as_save_IFS
3657
3658 if test $ac_prog_rejected = yes; then
3659   # We found a bogon in the path, so make sure we never use it.
3660   set dummy $ac_cv_prog_CC
3661   shift
3662   if test $# != 0; then
3663     # We chose a different compiler from the bogus one.
3664     # However, it has the same basename, so the bogon will be chosen
3665     # first if we set CC to just the basename; use the full file name.
3666     shift
3667     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668   fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$CC"; then
3684   if test -n "$ac_tool_prefix"; then
3685   for ac_prog in cl.exe
3686   do
3687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   if test -n "$CC"; then
3695   ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702     for ac_exec_ext in '' $ac_executable_extensions; do
3703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706     break 2
3707   fi
3708 done
3709   done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724     test -n "$CC" && break
3725   done
3726 fi
3727 if test -z "$CC"; then
3728   ac_ct_CC=$CC
3729   for ac_prog in cl.exe
3730 do
3731   # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -n "$ac_ct_CC"; then
3739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746     for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_ac_ct_CC="$ac_prog"
3749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753   done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768   test -n "$ac_ct_CC" && break
3769 done
3770
3771   if test "x$ac_ct_CC" = x; then
3772     CC=""
3773   else
3774     case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780     CC=$ac_ct_CC
3781   fi
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797   { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805   ac_status=$?
3806   if test -s conftest.err; then
3807     sed '10a\
3808 ... rest of stderr output deleted ...
3809          10q' conftest.err >conftest.er1
3810     cat conftest.er1 >&5
3811     rm -f conftest.er1 conftest.err
3812   fi
3813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814   test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843   case $ac_file in
3844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846   esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857   (eval "$ac_link_default") 2>&5
3858   ac_status=$?
3859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860   test $ac_status = 0; }; then :
3861   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868   test -f "$ac_file" || continue
3869   case $ac_file in
3870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871         ;;
3872     [ab].out )
3873         # We found the default executable, but exeext='' is most
3874         # certainly right.
3875         break;;
3876     *.* )
3877         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878         then :; else
3879            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880         fi
3881         # We set ac_cv_exeext here because the later test for it is not
3882         # safe: cross compilers may not add the suffix if given an `-o'
3883         # argument, so we may need to know it at that point already.
3884         # Even if this section looks crufty: it has the advantage of
3885         # actually working.
3886         break;;
3887     * )
3888         break;;
3889   esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else
3894   ac_file=''
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899   $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 fi
3908 ac_exeext=$ac_cv_exeext
3909
3910 # Check that the compiler produces executables we can run.  If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916   if { ac_try='./$ac_file'
3917   { { case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923   (eval "$ac_try") 2>&5
3924   ac_status=$?
3925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926   test $ac_status = 0; }; }; then
3927     cross_compiling=no
3928   else
3929     if test "$cross_compiling" = maybe; then
3930         cross_compiling=yes
3931     else
3932         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3937     fi
3938   fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run.  If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964   test $ac_status = 0; }; then :
3965   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970   test -f "$ac_file" || continue
3971   case $ac_file in
3972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974           break;;
3975     * ) break;;
3976   esac
3977 done
3978 else
3979   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3983 fi
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015   (eval "$ac_compile") 2>&5
4016   ac_status=$?
4017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018   test $ac_status = 0; }; then :
4019   for ac_file in conftest.o conftest.obj conftest.*; do
4020   test -f "$ac_file" || continue;
4021   case $ac_file in
4022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024        break;;
4025   esac
4026 done
4027 else
4028   $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054        choke me
4055 #endif
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062   ac_compiler_gnu=yes
4063 else
4064   ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073   GCC=yes
4074 else
4075   GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082   $as_echo_n "(cached) " >&6
4083 else
4084   ac_save_c_werror_flag=$ac_c_werror_flag
4085    ac_c_werror_flag=yes
4086    ac_cv_prog_cc_g=no
4087    CFLAGS="-g"
4088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100   ac_cv_prog_cc_g=yes
4101 else
4102   CFLAGS=""
4103       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105
4106 int
4107 main ()
4108 {
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117   ac_c_werror_flag=$ac_save_c_werror_flag
4118          CFLAGS="-g"
4119          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121
4122 int
4123 main ()
4124 {
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131   ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138    ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143   CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145   if test "$GCC" = yes; then
4146     CFLAGS="-g -O2"
4147   else
4148     CFLAGS="-g"
4149   fi
4150 else
4151   if test "$GCC" = yes; then
4152     CFLAGS="-O2"
4153   else
4154     CFLAGS=
4155   fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174      char **p;
4175      int i;
4176 {
4177   return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181   char *s;
4182   va_list v;
4183   va_start (v,p);
4184   s = g (p, va_arg (v,int));
4185   va_end (v);
4186   return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4190    function prototypes and stuff, but not '\xHH' hex character constants.
4191    These don't provoke an error unfortunately, instead are silently treated
4192    as 'x'.  The following induces an error, until -std is added to get
4193    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4194    array size at least.  It's necessary to write '\x00'==0 to get something
4195    that's true only with -std.  */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199    inside strings and character constants.  */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4213   ;
4214   return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220   CC="$ac_save_CC $ac_arg"
4221   if ac_fn_c_try_compile "$LINENO"; then :
4222   ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225   test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233   x)
4234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236   xno)
4237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239   *)
4240     CC="$CC $ac_cv_prog_cc_c89"
4241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 if test "x$CC" != xcc; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 fi
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; } &&
4292    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_try") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; };
4302 then
4303   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304   if test "x$CC" != xcc; then
4305     # Test first that cc exists at all.
4306     if { ac_try='cc -c conftest.$ac_ext >&5'
4307   { { case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316   test $ac_status = 0; }; }; then
4317       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318       rm -f conftest2.*
4319       if { { case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; } &&
4329          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335   (eval "$ac_try") 2>&5
4336   ac_status=$?
4337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338   test $ac_status = 0; };
4339       then
4340         # cc works too.
4341         :
4342       else
4343         # cc exists but doesn't like -o.
4344         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345       fi
4346     fi
4347   fi
4348 else
4349   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 fi
4351 rm -f core conftest*
4352
4353 fi
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362
4363 fi
4364
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374    # Losing compiler, so override with the script.
4375    # FIXME: It is wrong to rewrite CC.
4376    # But if we don't then we get into trouble of one sort or another.
4377    # A longer-term fix would be to have automake use am__CC in this case,
4378    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379    CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389   if test -n "$CCC"; then
4390     CXX=$CCC
4391   else
4392     if test -n "$ac_tool_prefix"; then
4393   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394   do
4395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400   $as_echo_n "(cached) " >&6
4401 else
4402   if test -n "$CXX"; then
4403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410     for ac_exec_ext in '' $ac_executable_extensions; do
4411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417   done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432     test -n "$CXX" && break
4433   done
4434 fi
4435 if test -z "$CXX"; then
4436   ac_ct_CXX=$CXX
4437   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 do
4439   # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -n "$ac_ct_CXX"; then
4447   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_exec_ext in '' $ac_executable_extensions; do
4455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456     ac_cv_prog_ac_ct_CXX="$ac_prog"
4457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461   done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476   test -n "$ac_ct_CXX" && break
4477 done
4478
4479   if test "x$ac_ct_CXX" = x; then
4480     CXX="g++"
4481   else
4482     case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488     CXX=$ac_ct_CXX
4489   fi
4490 fi
4491
4492   fi
4493 fi
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499   { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507   ac_status=$?
4508   if test -s conftest.err; then
4509     sed '10a\
4510 ... rest of stderr output deleted ...
4511          10q' conftest.err >conftest.er1
4512     cat conftest.er1 >&5
4513     rm -f conftest.er1 conftest.err
4514   fi
4515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516   test $ac_status = 0; }
4517 done
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531        choke me
4532 #endif
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539   ac_compiler_gnu=yes
4540 else
4541   ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550   GXX=yes
4551 else
4552   GXX=
4553 fi
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562    ac_cxx_werror_flag=yes
4563    ac_cv_prog_cxx_g=no
4564    CXXFLAGS="-g"
4565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567
4568 int
4569 main ()
4570 {
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577   ac_cv_prog_cxx_g=yes
4578 else
4579   CXXFLAGS=""
4580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h.  */
4582
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592
4593 else
4594   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595          CXXFLAGS="-g"
4596          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608   ac_cv_prog_cxx_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620   CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622   if test "$GXX" = yes; then
4623     CXXFLAGS="-g -O2"
4624   else
4625     CXXFLAGS="-g"
4626   fi
4627 else
4628   if test "$GXX" = yes; then
4629     CXXFLAGS="-O2"
4630   else
4631     CXXFLAGS=
4632   fi
4633 fi
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641
4642
4643 if test -n "$ac_tool_prefix"; then
4644   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if test -n "$GNATBIND"; then
4652   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_exec_ext in '' $ac_executable_extensions; do
4660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666   done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 fi
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683   ac_ct_GNATBIND=$GNATBIND
4684   # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$ac_ct_GNATBIND"; then
4692   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720   if test "x$ac_ct_GNATBIND" = x; then
4721     GNATBIND="no"
4722   else
4723     case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729     GNATBIND=$ac_ct_GNATBIND
4730   fi
4731 else
4732   GNATBIND="$ac_cv_prog_GNATBIND"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$GNATMAKE"; then
4744   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775   ac_ct_GNATMAKE=$GNATMAKE
4776   # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   if test -n "$ac_ct_GNATMAKE"; then
4784   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791     for ac_exec_ext in '' $ac_executable_extensions; do
4792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798   done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812   if test "x$ac_ct_GNATMAKE" = x; then
4813     GNATMAKE="no"
4814   else
4815     case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821     GNATMAKE=$ac_ct_GNATMAKE
4822   fi
4823 else
4824   GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 fi
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4834 EOF
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file.  So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846   acx_cv_cc_gcc_supports_ada=yes
4847 fi
4848 rm -f conftest.*
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852
4853 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854   have_gnat=yes
4855 else
4856   have_gnat=no
4857 fi
4858
4859
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862   NO_MINUS_C_MINUS_O=yes
4863 else
4864   OUTPUT_OPTION='-o $@'
4865 fi
4866
4867
4868
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872   */prev-gcc/xgcc*) ;;
4873   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4875
4876
4877 # Determine PICFLAG for target gnatlib.
4878
4879
4880
4881
4882 case "${target}" in
4883     # PIC is the default on some targets or must not be used.
4884     *-*-darwin*)
4885         # PIC is the default on this platform
4886         # Common symbols not allowed in MH_DYLIB files
4887         PICFLAG_FOR_TARGET=-fno-common
4888         ;;
4889     alpha*-dec-osf5*)
4890         # PIC is the default.
4891         ;;
4892     hppa*64*-*-hpux*)
4893         # PIC is the default for 64-bit PA HP-UX.
4894         ;;
4895     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896         ;;
4897     i[34567]86-*-interix[3-9]*)
4898         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899         # Instead, we relocate shared libraries at runtime.
4900         ;;
4901     i[34567]86-*-nto-qnx*)
4902         # QNX uses GNU C++, but need to define -shared option too, otherwise
4903         # it will coredump.
4904         PICFLAG_FOR_TARGET='-fPIC -shared'
4905         ;;
4906     i[34567]86-pc-msdosdjgpp*)
4907         # DJGPP does not support shared libraries at all.
4908         ;;
4909     ia64*-*-hpux*)
4910         # On IA64 HP-UX, PIC is the default but the pic flag
4911         # sets the default TLS model and affects inlining.
4912         PICFLAG_FOR_TARGET=-fPIC
4913         ;;
4914     mips-sgi-irix6*)
4915         # PIC is the default.
4916         ;;
4917     rs6000-ibm-aix* | powerpc-ibm-aix*)
4918         # All AIX code is PIC.
4919         ;;
4920
4921     # Some targets support both -fPIC and -fpic, but prefer the latter.
4922     # FIXME: Why?
4923     i[34567]86-*-* | x86_64-*-*)
4924         PICFLAG_FOR_TARGET=-fpic
4925         ;;
4926     m68k-*-*)
4927         PICFLAG_FOR_TARGET=-fpic
4928         ;;
4929     # FIXME: Override -fPIC default in libgcc only?
4930     sh-*-linux* | sh[2346lbe]*-*-linux*)
4931         PICFLAG_FOR_TARGET=-fpic
4932         ;;
4933     # FIXME: Simplify to sh*-*-netbsd*?
4934     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4935       sh64-*-netbsd* | sh64l*-*-netbsd*)
4936         PICFLAG_FOR_TARGET=-fpic
4937         ;;
4938     # Default to -fPIC unless specified otherwise.
4939     *)
4940         PICFLAG_FOR_TARGET=-fPIC
4941         ;;
4942 esac
4943
4944 # If the user explicitly uses -fpic/-fPIC, keep that.
4945 case "${CFLAGS_FOR_TARGET}" in
4946     *-fpic*)
4947         PICFLAG_FOR_TARGET=-fpic
4948         ;;
4949     *-fPIC*)
4950         PICFLAG_FOR_TARGET=-fPIC
4951         ;;
4952 esac
4953
4954
4955
4956 # -------------------------
4957 # Check C compiler features
4958 # -------------------------
4959
4960
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4968 # On Suns, sometimes $CPP names a directory.
4969 if test -n "$CPP" && test -d "$CPP"; then
4970   CPP=
4971 fi
4972 if test -z "$CPP"; then
4973   if test "${ac_cv_prog_CPP+set}" = set; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976       # Double quotes because CPP needs to be expanded
4977     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4978     do
4979       ac_preproc_ok=false
4980 for ac_c_preproc_warn_flag in '' yes
4981 do
4982   # Use a header file that comes with gcc, so configuring glibc
4983   # with a fresh cross-compiler works.
4984   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985   # <limits.h> exists even on freestanding compilers.
4986   # On the NeXT, cc -E runs the code through the compiler's parser,
4987   # not just through cpp. "Syntax error" is here to catch this case.
4988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h.  */
4990 #ifdef __STDC__
4991 # include <limits.h>
4992 #else
4993 # include <assert.h>
4994 #endif
4995                      Syntax error
4996 _ACEOF
4997 if ac_fn_c_try_cpp "$LINENO"; then :
4998
4999 else
5000   # Broken: fails on valid input.
5001 continue
5002 fi
5003 rm -f conftest.err conftest.$ac_ext
5004
5005   # OK, works on sane cases.  Now check whether nonexistent headers
5006   # can be detected and how.
5007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h.  */
5009 #include <ac_nonexistent.h>
5010 _ACEOF
5011 if ac_fn_c_try_cpp "$LINENO"; then :
5012   # Broken: success on invalid input.
5013 continue
5014 else
5015   # Passes both tests.
5016 ac_preproc_ok=:
5017 break
5018 fi
5019 rm -f conftest.err conftest.$ac_ext
5020
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then :
5025   break
5026 fi
5027
5028     done
5029     ac_cv_prog_CPP=$CPP
5030
5031 fi
5032   CPP=$ac_cv_prog_CPP
5033 else
5034   ac_cv_prog_CPP=$CPP
5035 fi
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5037 $as_echo "$CPP" >&6; }
5038 ac_preproc_ok=false
5039 for ac_c_preproc_warn_flag in '' yes
5040 do
5041   # Use a header file that comes with gcc, so configuring glibc
5042   # with a fresh cross-compiler works.
5043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044   # <limits.h> exists even on freestanding compilers.
5045   # On the NeXT, cc -E runs the code through the compiler's parser,
5046   # not just through cpp. "Syntax error" is here to catch this case.
5047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h.  */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054                      Syntax error
5055 _ACEOF
5056 if ac_fn_c_try_cpp "$LINENO"; then :
5057
5058 else
5059   # Broken: fails on valid input.
5060 continue
5061 fi
5062 rm -f conftest.err conftest.$ac_ext
5063
5064   # OK, works on sane cases.  Now check whether nonexistent headers
5065   # can be detected and how.
5066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h.  */
5068 #include <ac_nonexistent.h>
5069 _ACEOF
5070 if ac_fn_c_try_cpp "$LINENO"; then :
5071   # Broken: success on invalid input.
5072 continue
5073 else
5074   # Passes both tests.
5075 ac_preproc_ok=:
5076 break
5077 fi
5078 rm -f conftest.err conftest.$ac_ext
5079
5080 done
5081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082 rm -f conftest.err conftest.$ac_ext
5083 if $ac_preproc_ok; then :
5084
5085 else
5086   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5088 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5089 See \`config.log' for more details." "$LINENO" 5; }
5090 fi
5091
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5101 if test "${ac_cv_path_GREP+set}" = set; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104   if test -z "$GREP"; then
5105   ac_path_GREP_found=false
5106   # Loop through the user's path and test for each of PROGNAME-LIST
5107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112     for ac_prog in grep ggrep; do
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5115       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117   # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in
5119 *GNU*)
5120   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5121 *)
5122   ac_count=0
5123   $as_echo_n 0123456789 >"conftest.in"
5124   while :
5125   do
5126     cat "conftest.in" "conftest.in" >"conftest.tmp"
5127     mv "conftest.tmp" "conftest.in"
5128     cp "conftest.in" "conftest.nl"
5129     $as_echo 'GREP' >> "conftest.nl"
5130     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132     as_fn_arith $ac_count + 1 && ac_count=$as_val
5133     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134       # Best one so far, save it but keep looking for a better one
5135       ac_cv_path_GREP="$ac_path_GREP"
5136       ac_path_GREP_max=$ac_count
5137     fi
5138     # 10*(2^10) chars as input seems more than enough
5139     test $ac_count -gt 10 && break
5140   done
5141   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142 esac
5143
5144       $ac_path_GREP_found && break 3
5145     done
5146   done
5147   done
5148 IFS=$as_save_IFS
5149   if test -z "$ac_cv_path_GREP"; then
5150     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5151   fi
5152 else
5153   ac_cv_path_GREP=$GREP
5154 fi
5155
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5158 $as_echo "$ac_cv_path_GREP" >&6; }
5159  GREP="$ac_cv_path_GREP"
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5163 $as_echo_n "checking for egrep... " >&6; }
5164 if test "${ac_cv_path_EGREP+set}" = set; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5168    then ac_cv_path_EGREP="$GREP -E"
5169    else
5170      if test -z "$EGREP"; then
5171   ac_path_EGREP_found=false
5172   # Loop through the user's path and test for each of PROGNAME-LIST
5173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178     for ac_prog in egrep; do
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5181       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5182 # Check for GNU ac_path_EGREP and select it if it is found.
5183   # Check for GNU $ac_path_EGREP
5184 case `"$ac_path_EGREP" --version 2>&1` in
5185 *GNU*)
5186   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5187 *)
5188   ac_count=0
5189   $as_echo_n 0123456789 >"conftest.in"
5190   while :
5191   do
5192     cat "conftest.in" "conftest.in" >"conftest.tmp"
5193     mv "conftest.tmp" "conftest.in"
5194     cp "conftest.in" "conftest.nl"
5195     $as_echo 'EGREP' >> "conftest.nl"
5196     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198     as_fn_arith $ac_count + 1 && ac_count=$as_val
5199     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5200       # Best one so far, save it but keep looking for a better one
5201       ac_cv_path_EGREP="$ac_path_EGREP"
5202       ac_path_EGREP_max=$ac_count
5203     fi
5204     # 10*(2^10) chars as input seems more than enough
5205     test $ac_count -gt 10 && break
5206   done
5207   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 esac
5209
5210       $ac_path_EGREP_found && break 3
5211     done
5212   done
5213   done
5214 IFS=$as_save_IFS
5215   if test -z "$ac_cv_path_EGREP"; then
5216     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5217   fi
5218 else
5219   ac_cv_path_EGREP=$EGREP
5220 fi
5221
5222    fi
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5225 $as_echo "$ac_cv_path_EGREP" >&6; }
5226  EGREP="$ac_cv_path_EGREP"
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5230 $as_echo_n "checking for ANSI C header files... " >&6; }
5231 if test "${ac_cv_header_stdc+set}" = set; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h.  */
5236 #include <stdlib.h>
5237 #include <stdarg.h>
5238 #include <string.h>
5239 #include <float.h>
5240
5241 int
5242 main ()
5243 {
5244
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250   ac_cv_header_stdc=yes
5251 else
5252   ac_cv_header_stdc=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255
5256 if test $ac_cv_header_stdc = yes; then
5257   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h.  */
5260 #include <string.h>
5261
5262 _ACEOF
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264   $EGREP "memchr" >/dev/null 2>&1; then :
5265
5266 else
5267   ac_cv_header_stdc=no
5268 fi
5269 rm -f conftest*
5270
5271 fi
5272
5273 if test $ac_cv_header_stdc = yes; then
5274   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277 #include <stdlib.h>
5278
5279 _ACEOF
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281   $EGREP "free" >/dev/null 2>&1; then :
5282
5283 else
5284   ac_cv_header_stdc=no
5285 fi
5286 rm -f conftest*
5287
5288 fi
5289
5290 if test $ac_cv_header_stdc = yes; then
5291   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292   if test "$cross_compiling" = yes; then :
5293   :
5294 else
5295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297 #include <ctype.h>
5298 #include <stdlib.h>
5299 #if ((' ' & 0x0FF) == 0x020)
5300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5302 #else
5303 # define ISLOWER(c) \
5304                    (('a' <= (c) && (c) <= 'i') \
5305                      || ('j' <= (c) && (c) <= 'r') \
5306                      || ('s' <= (c) && (c) <= 'z'))
5307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5308 #endif
5309
5310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5311 int
5312 main ()
5313 {
5314   int i;
5315   for (i = 0; i < 256; i++)
5316     if (XOR (islower (i), ISLOWER (i))
5317         || toupper (i) != TOUPPER (i))
5318       return 2;
5319   return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_run "$LINENO"; then :
5323
5324 else
5325   ac_cv_header_stdc=no
5326 fi
5327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5328   conftest.$ac_objext conftest.beam conftest.$ac_ext
5329 fi
5330
5331 fi
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5334 $as_echo "$ac_cv_header_stdc" >&6; }
5335 if test $ac_cv_header_stdc = yes; then
5336
5337 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5338
5339 fi
5340
5341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5343                   inttypes.h stdint.h unistd.h
5344 do :
5345   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5347 "
5348 eval as_val=\$$as_ac_Header
5349    if test "x$as_val" = x""yes; then :
5350   cat >>confdefs.h <<_ACEOF
5351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5352 _ACEOF
5353
5354 fi
5355
5356 done
5357
5358
5359
5360   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5362   MINIX=yes
5363 else
5364   MINIX=
5365 fi
5366
5367
5368   if test "$MINIX" = yes; then
5369
5370 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5371
5372
5373 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5374
5375
5376 $as_echo "#define _MINIX 1" >>confdefs.h
5377
5378   fi
5379
5380
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5382 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5383 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h.  */
5388
5389 #         define __EXTENSIONS__ 1
5390           $ac_includes_default
5391 int
5392 main ()
5393 {
5394
5395   ;
5396   return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400   ac_cv_safe_to_define___extensions__=yes
5401 else
5402   ac_cv_safe_to_define___extensions__=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5407 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5408   test $ac_cv_safe_to_define___extensions__ = yes &&
5409     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5410
5411   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5412
5413   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5414
5415   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5416
5417   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5418
5419
5420 ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5426 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5427 # On Suns, sometimes $CPP names a directory.
5428 if test -n "$CPP" && test -d "$CPP"; then
5429   CPP=
5430 fi
5431 if test -z "$CPP"; then
5432   if test "${ac_cv_prog_CPP+set}" = set; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435       # Double quotes because CPP needs to be expanded
5436     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5437     do
5438       ac_preproc_ok=false
5439 for ac_c_preproc_warn_flag in '' yes
5440 do
5441   # Use a header file that comes with gcc, so configuring glibc
5442   # with a fresh cross-compiler works.
5443   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5444   # <limits.h> exists even on freestanding compilers.
5445   # On the NeXT, cc -E runs the code through the compiler's parser,
5446   # not just through cpp. "Syntax error" is here to catch this case.
5447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h.  */
5449 #ifdef __STDC__
5450 # include <limits.h>
5451 #else
5452 # include <assert.h>
5453 #endif
5454                      Syntax error
5455 _ACEOF
5456 if ac_fn_c_try_cpp "$LINENO"; then :
5457
5458 else
5459   # Broken: fails on valid input.
5460 continue
5461 fi
5462 rm -f conftest.err conftest.$ac_ext
5463
5464   # OK, works on sane cases.  Now check whether nonexistent headers
5465   # can be detected and how.
5466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h.  */
5468 #include <ac_nonexistent.h>
5469 _ACEOF
5470 if ac_fn_c_try_cpp "$LINENO"; then :
5471   # Broken: success on invalid input.
5472 continue
5473 else
5474   # Passes both tests.
5475 ac_preproc_ok=:
5476 break
5477 fi
5478 rm -f conftest.err conftest.$ac_ext
5479
5480 done
5481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5482 rm -f conftest.err conftest.$ac_ext
5483 if $ac_preproc_ok; then :
5484   break
5485 fi
5486
5487     done
5488     ac_cv_prog_CPP=$CPP
5489
5490 fi
5491   CPP=$ac_cv_prog_CPP
5492 else
5493   ac_cv_prog_CPP=$CPP
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5496 $as_echo "$CPP" >&6; }
5497 ac_preproc_ok=false
5498 for ac_c_preproc_warn_flag in '' yes
5499 do
5500   # Use a header file that comes with gcc, so configuring glibc
5501   # with a fresh cross-compiler works.
5502   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503   # <limits.h> exists even on freestanding compilers.
5504   # On the NeXT, cc -E runs the code through the compiler's parser,
5505   # not just through cpp. "Syntax error" is here to catch this case.
5506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h.  */
5508 #ifdef __STDC__
5509 # include <limits.h>
5510 #else
5511 # include <assert.h>
5512 #endif
5513                      Syntax error
5514 _ACEOF
5515 if ac_fn_c_try_cpp "$LINENO"; then :
5516
5517 else
5518   # Broken: fails on valid input.
5519 continue
5520 fi
5521 rm -f conftest.err conftest.$ac_ext
5522
5523   # OK, works on sane cases.  Now check whether nonexistent headers
5524   # can be detected and how.
5525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h.  */
5527 #include <ac_nonexistent.h>
5528 _ACEOF
5529 if ac_fn_c_try_cpp "$LINENO"; then :
5530   # Broken: success on invalid input.
5531 continue
5532 else
5533   # Passes both tests.
5534 ac_preproc_ok=:
5535 break
5536 fi
5537 rm -f conftest.err conftest.$ac_ext
5538
5539 done
5540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5541 rm -f conftest.err conftest.$ac_ext
5542 if $ac_preproc_ok; then :
5543
5544 else
5545   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5547 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5548 See \`config.log' for more details." "$LINENO" 5; }
5549 fi
5550
5551 ac_ext=c
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5558 $as_echo_n "checking for inline... " >&6; }
5559 if test "${ac_cv_c_inline+set}" = set; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   ac_cv_c_inline=no
5563 for ac_kw in inline __inline__ __inline; do
5564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h.  */
5566 #ifndef __cplusplus
5567 typedef int foo_t;
5568 static $ac_kw foo_t static_foo () {return 0; }
5569 $ac_kw foo_t foo () {return 0; }
5570 #endif
5571
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574   ac_cv_c_inline=$ac_kw
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577   test "$ac_cv_c_inline" != no && break
5578 done
5579
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5582 $as_echo "$ac_cv_c_inline" >&6; }
5583
5584 case $ac_cv_c_inline in
5585   inline | yes) ;;
5586   *)
5587     case $ac_cv_c_inline in
5588       no) ac_val=;;
5589       *) ac_val=$ac_cv_c_inline;;
5590     esac
5591     cat >>confdefs.h <<_ACEOF
5592 #ifndef __cplusplus
5593 #define inline $ac_val
5594 #endif
5595 _ACEOF
5596     ;;
5597 esac
5598
5599
5600 # Check whether --enable-largefile was given.
5601 if test "${enable_largefile+set}" = set; then :
5602   enableval=$enable_largefile;
5603 fi
5604
5605 if test "$enable_largefile" != no; then
5606
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5608 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5609 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   ac_cv_sys_largefile_CC=no
5613      if test "$GCC" != yes; then
5614        ac_save_CC=$CC
5615        while :; do
5616          # IRIX 6.2 and later do not support large files by default,
5617          # so use the C compiler's -n32 option if that helps.
5618          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h.  */
5620 #include <sys/types.h>
5621  /* Check that off_t can represent 2**63 - 1 correctly.
5622     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5623     since some C++ compilers masquerading as C compilers
5624     incorrectly reject 9223372036854775807.  */
5625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5626   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5627                        && LARGE_OFF_T % 2147483647 == 1)
5628                       ? 1 : -1];
5629 int
5630 main ()
5631 {
5632
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637          if ac_fn_c_try_compile "$LINENO"; then :
5638   break
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext
5641          CC="$CC -n32"
5642          if ac_fn_c_try_compile "$LINENO"; then :
5643   ac_cv_sys_largefile_CC=' -n32'; break
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext
5646          break
5647        done
5648        CC=$ac_save_CC
5649        rm -f conftest.$ac_ext
5650     fi
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5653 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5654   if test "$ac_cv_sys_largefile_CC" != no; then
5655     CC=$CC$ac_cv_sys_largefile_CC
5656   fi
5657
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5659 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5660 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   while :; do
5664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h.  */
5666 #include <sys/types.h>
5667  /* Check that off_t can represent 2**63 - 1 correctly.
5668     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5669     since some C++ compilers masquerading as C compilers
5670     incorrectly reject 9223372036854775807.  */
5671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5672   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5673                        && LARGE_OFF_T % 2147483647 == 1)
5674                       ? 1 : -1];
5675 int
5676 main ()
5677 {
5678
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684   ac_cv_sys_file_offset_bits=no; break
5685 fi
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h.  */
5689 #define _FILE_OFFSET_BITS 64
5690 #include <sys/types.h>
5691  /* Check that off_t can represent 2**63 - 1 correctly.
5692     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5693     since some C++ compilers masquerading as C compilers
5694     incorrectly reject 9223372036854775807.  */
5695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5696   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5697                        && LARGE_OFF_T % 2147483647 == 1)
5698                       ? 1 : -1];
5699 int
5700 main ()
5701 {
5702
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708   ac_cv_sys_file_offset_bits=64; break
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711   ac_cv_sys_file_offset_bits=unknown
5712   break
5713 done
5714 fi
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5716 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5717 case $ac_cv_sys_file_offset_bits in #(
5718   no | unknown) ;;
5719   *)
5720 cat >>confdefs.h <<_ACEOF
5721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5722 _ACEOF
5723 ;;
5724 esac
5725 rm -rf conftest*
5726   if test $ac_cv_sys_file_offset_bits = unknown; then
5727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5728 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5729 if test "${ac_cv_sys_large_files+set}" = set; then :
5730   $as_echo_n "(cached) " >&6
5731 else
5732   while :; do
5733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h.  */
5735 #include <sys/types.h>
5736  /* Check that off_t can represent 2**63 - 1 correctly.
5737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5738     since some C++ compilers masquerading as C compilers
5739     incorrectly reject 9223372036854775807.  */
5740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5742                        && LARGE_OFF_T % 2147483647 == 1)
5743                       ? 1 : -1];
5744 int
5745 main ()
5746 {
5747
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753   ac_cv_sys_large_files=no; break
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758 #define _LARGE_FILES 1
5759 #include <sys/types.h>
5760  /* Check that off_t can represent 2**63 - 1 correctly.
5761     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762     since some C++ compilers masquerading as C compilers
5763     incorrectly reject 9223372036854775807.  */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766                        && LARGE_OFF_T % 2147483647 == 1)
5767                       ? 1 : -1];
5768 int
5769 main ()
5770 {
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777   ac_cv_sys_large_files=1; break
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780   ac_cv_sys_large_files=unknown
5781   break
5782 done
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5785 $as_echo "$ac_cv_sys_large_files" >&6; }
5786 case $ac_cv_sys_large_files in #(
5787   no | unknown) ;;
5788   *)
5789 cat >>confdefs.h <<_ACEOF
5790 #define _LARGE_FILES $ac_cv_sys_large_files
5791 _ACEOF
5792 ;;
5793 esac
5794 rm -rf conftest*
5795   fi
5796 fi
5797
5798
5799 # sizeof(char) is 1 by definition.
5800 # The cast to long int works around a bug in the HP C Compiler
5801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5803 # This bug is HP SR number 8606223364.
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5805 $as_echo_n "checking size of void *... " >&6; }
5806 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5810
5811 else
5812   if test "$ac_cv_type_void_p" = yes; then
5813      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5815 { as_fn_set_status 77
5816 as_fn_error "cannot compute sizeof (void *)
5817 See \`config.log' for more details." "$LINENO" 5; }; }
5818    else
5819      ac_cv_sizeof_void_p=0
5820    fi
5821 fi
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5825 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5826
5827
5828
5829 cat >>confdefs.h <<_ACEOF
5830 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5831 _ACEOF
5832
5833
5834 # The cast to long int works around a bug in the HP C Compiler
5835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5837 # This bug is HP SR number 8606223364.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5839 $as_echo_n "checking size of short... " >&6; }
5840 if test "${ac_cv_sizeof_short+set}" = set; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5844
5845 else
5846   if test "$ac_cv_type_short" = yes; then
5847      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 { as_fn_set_status 77
5850 as_fn_error "cannot compute sizeof (short)
5851 See \`config.log' for more details." "$LINENO" 5; }; }
5852    else
5853      ac_cv_sizeof_short=0
5854    fi
5855 fi
5856
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5859 $as_echo "$ac_cv_sizeof_short" >&6; }
5860
5861
5862
5863 cat >>confdefs.h <<_ACEOF
5864 #define SIZEOF_SHORT $ac_cv_sizeof_short
5865 _ACEOF
5866
5867
5868 # The cast to long int works around a bug in the HP C Compiler
5869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5871 # This bug is HP SR number 8606223364.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5873 $as_echo_n "checking size of int... " >&6; }
5874 if test "${ac_cv_sizeof_int+set}" = set; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5878
5879 else
5880   if test "$ac_cv_type_int" = yes; then
5881      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5883 { as_fn_set_status 77
5884 as_fn_error "cannot compute sizeof (int)
5885 See \`config.log' for more details." "$LINENO" 5; }; }
5886    else
5887      ac_cv_sizeof_int=0
5888    fi
5889 fi
5890
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5893 $as_echo "$ac_cv_sizeof_int" >&6; }
5894
5895
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define SIZEOF_INT $ac_cv_sizeof_int
5899 _ACEOF
5900
5901
5902 # The cast to long int works around a bug in the HP C Compiler
5903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5905 # This bug is HP SR number 8606223364.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5907 $as_echo_n "checking size of long... " >&6; }
5908 if test "${ac_cv_sizeof_long+set}" = set; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5912
5913 else
5914   if test "$ac_cv_type_long" = yes; then
5915      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5917 { as_fn_set_status 77
5918 as_fn_error "cannot compute sizeof (long)
5919 See \`config.log' for more details." "$LINENO" 5; }; }
5920    else
5921      ac_cv_sizeof_long=0
5922    fi
5923 fi
5924
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5927 $as_echo "$ac_cv_sizeof_long" >&6; }
5928
5929
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define SIZEOF_LONG $ac_cv_sizeof_long
5933 _ACEOF
5934
5935
5936 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5937 if test "x$ac_cv_type_long_long" = x""yes; then :
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define HAVE_LONG_LONG 1
5941 _ACEOF
5942
5943 # The cast to long int works around a bug in the HP C Compiler
5944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5946 # This bug is HP SR number 8606223364.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5948 $as_echo_n "checking size of long long... " >&6; }
5949 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5953
5954 else
5955   if test "$ac_cv_type_long_long" = yes; then
5956      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5958 { as_fn_set_status 77
5959 as_fn_error "cannot compute sizeof (long long)
5960 See \`config.log' for more details." "$LINENO" 5; }; }
5961    else
5962      ac_cv_sizeof_long_long=0
5963    fi
5964 fi
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5968 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5969
5970
5971
5972 cat >>confdefs.h <<_ACEOF
5973 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5974 _ACEOF
5975
5976
5977 fi
5978
5979 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5980 if test "x$ac_cv_type___int64" = x""yes; then :
5981
5982 cat >>confdefs.h <<_ACEOF
5983 #define HAVE___INT64 1
5984 _ACEOF
5985
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5991 $as_echo_n "checking size of __int64... " >&6; }
5992 if test "${ac_cv_sizeof___int64+set}" = set; then :
5993   $as_echo_n "(cached) " >&6
5994 else
5995   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5996
5997 else
5998   if test "$ac_cv_type___int64" = yes; then
5999      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status 77
6002 as_fn_error "cannot compute sizeof (__int64)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6004    else
6005      ac_cv_sizeof___int64=0
6006    fi
6007 fi
6008
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6011 $as_echo "$ac_cv_sizeof___int64" >&6; }
6012
6013
6014
6015 cat >>confdefs.h <<_ACEOF
6016 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6017 _ACEOF
6018
6019
6020 fi
6021
6022 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6023 case $ac_cv_c_int8_t in #(
6024   no|yes) ;; #(
6025   *)
6026
6027 cat >>confdefs.h <<_ACEOF
6028 #define int8_t $ac_cv_c_int8_t
6029 _ACEOF
6030 ;;
6031 esac
6032
6033 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6034 case $ac_cv_c_int16_t in #(
6035   no|yes) ;; #(
6036   *)
6037
6038 cat >>confdefs.h <<_ACEOF
6039 #define int16_t $ac_cv_c_int16_t
6040 _ACEOF
6041 ;;
6042 esac
6043
6044 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6045 case $ac_cv_c_int32_t in #(
6046   no|yes) ;; #(
6047   *)
6048
6049 cat >>confdefs.h <<_ACEOF
6050 #define int32_t $ac_cv_c_int32_t
6051 _ACEOF
6052 ;;
6053 esac
6054
6055 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6056 case $ac_cv_c_int64_t in #(
6057   no|yes) ;; #(
6058   *)
6059
6060 cat >>confdefs.h <<_ACEOF
6061 #define int64_t $ac_cv_c_int64_t
6062 _ACEOF
6063 ;;
6064 esac
6065
6066
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6068 $as_echo_n "checking for long long int... " >&6; }
6069 if test "${ac_cv_type_long_long_int+set}" = set; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h.  */
6074
6075   /* For now, do not test the preprocessor; as of 2007 there are too many
6076          implementations with broken preprocessors.  Perhaps this can
6077          be revisited in 2012.  In the meantime, code should not expect
6078          #if to work with literals wider than 32 bits.  */
6079       /* Test literals.  */
6080       long long int ll = 9223372036854775807ll;
6081       long long int nll = -9223372036854775807LL;
6082       unsigned long long int ull = 18446744073709551615ULL;
6083       /* Test constant expressions.   */
6084       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6085                      ? 1 : -1)];
6086       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6087                      ? 1 : -1)];
6088       int i = 63;
6089 int
6090 main ()
6091 {
6092 /* Test availability of runtime routines for shift and division.  */
6093       long long int llmax = 9223372036854775807ll;
6094       unsigned long long int ullmax = 18446744073709551615ull;
6095       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6096               | (llmax / ll) | (llmax % ll)
6097               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6098               | (ullmax / ull) | (ullmax % ull));
6099   ;
6100   return 0;
6101 }
6102
6103 _ACEOF
6104 if ac_fn_c_try_link "$LINENO"; then :
6105                         if test "$cross_compiling" = yes; then :
6106   ac_cv_type_long_long_int=yes
6107 else
6108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h.  */
6110 #include <limits.h>
6111                #ifndef LLONG_MAX
6112                # define HALF \
6113                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6114                # define LLONG_MAX (HALF - 1 + HALF)
6115                #endif
6116 int
6117 main ()
6118 {
6119 long long int n = 1;
6120                int i;
6121                for (i = 0; ; i++)
6122                  {
6123                    long long int m = n << i;
6124                    if (m >> i != n)
6125                      return 1;
6126                    if (LLONG_MAX / 2 < m)
6127                      break;
6128                  }
6129                return 0;
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 if ac_fn_c_try_run "$LINENO"; then :
6135   ac_cv_type_long_long_int=yes
6136 else
6137   ac_cv_type_long_long_int=no
6138 fi
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6140   conftest.$ac_objext conftest.beam conftest.$ac_ext
6141 fi
6142
6143 else
6144   ac_cv_type_long_long_int=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext \
6147     conftest$ac_exeext conftest.$ac_ext
6148 fi
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6150 $as_echo "$ac_cv_type_long_long_int" >&6; }
6151   if test $ac_cv_type_long_long_int = yes; then
6152
6153 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6154
6155   fi
6156
6157
6158
6159   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6160 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6161
6162 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6163
6164 else
6165   test $ac_cv_type_long_long_int = yes \
6166        && ac_type='long long int' \
6167        || ac_type='long int'
6168
6169 cat >>confdefs.h <<_ACEOF
6170 #define intmax_t $ac_type
6171 _ACEOF
6172
6173 fi
6174
6175
6176
6177   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6178 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6179
6180 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6181
6182 else
6183   for ac_type in 'int' 'long int' 'long long int'; do
6184        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h.  */
6186 $ac_includes_default
6187 int
6188 main ()
6189 {
6190 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6191 test_array [0] = 0
6192
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 if ac_fn_c_try_compile "$LINENO"; then :
6198
6199 cat >>confdefs.h <<_ACEOF
6200 #define intptr_t $ac_type
6201 _ACEOF
6202
6203           ac_type=
6204 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206        test -z "$ac_type" && break
6207      done
6208 fi
6209
6210
6211 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6212 case $ac_cv_c_uint8_t in #(
6213   no|yes) ;; #(
6214   *)
6215
6216 $as_echo "#define _UINT8_T 1" >>confdefs.h
6217
6218
6219 cat >>confdefs.h <<_ACEOF
6220 #define uint8_t $ac_cv_c_uint8_t
6221 _ACEOF
6222 ;;
6223   esac
6224
6225 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6226 case $ac_cv_c_uint16_t in #(
6227   no|yes) ;; #(
6228   *)
6229
6230
6231 cat >>confdefs.h <<_ACEOF
6232 #define uint16_t $ac_cv_c_uint16_t
6233 _ACEOF
6234 ;;
6235   esac
6236
6237 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6238 case $ac_cv_c_uint32_t in #(
6239   no|yes) ;; #(
6240   *)
6241
6242 $as_echo "#define _UINT32_T 1" >>confdefs.h
6243
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define uint32_t $ac_cv_c_uint32_t
6247 _ACEOF
6248 ;;
6249   esac
6250
6251 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6252 case $ac_cv_c_uint64_t in #(
6253   no|yes) ;; #(
6254   *)
6255
6256 $as_echo "#define _UINT64_T 1" >>confdefs.h
6257
6258
6259 cat >>confdefs.h <<_ACEOF
6260 #define uint64_t $ac_cv_c_uint64_t
6261 _ACEOF
6262 ;;
6263   esac
6264
6265
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6267 $as_echo_n "checking for unsigned long long int... " >&6; }
6268 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h.  */
6273
6274   /* For now, do not test the preprocessor; as of 2007 there are too many
6275          implementations with broken preprocessors.  Perhaps this can
6276          be revisited in 2012.  In the meantime, code should not expect
6277          #if to work with literals wider than 32 bits.  */
6278       /* Test literals.  */
6279       long long int ll = 9223372036854775807ll;
6280       long long int nll = -9223372036854775807LL;
6281       unsigned long long int ull = 18446744073709551615ULL;
6282       /* Test constant expressions.   */
6283       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6284                      ? 1 : -1)];
6285       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6286                      ? 1 : -1)];
6287       int i = 63;
6288 int
6289 main ()
6290 {
6291 /* Test availability of runtime routines for shift and division.  */
6292       long long int llmax = 9223372036854775807ll;
6293       unsigned long long int ullmax = 18446744073709551615ull;
6294       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6295               | (llmax / ll) | (llmax % ll)
6296               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6297               | (ullmax / ull) | (ullmax % ull));
6298   ;
6299   return 0;
6300 }
6301
6302 _ACEOF
6303 if ac_fn_c_try_link "$LINENO"; then :
6304   ac_cv_type_unsigned_long_long_int=yes
6305 else
6306   ac_cv_type_unsigned_long_long_int=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext \
6309     conftest$ac_exeext conftest.$ac_ext
6310 fi
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6312 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6313   if test $ac_cv_type_unsigned_long_long_int = yes; then
6314
6315 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6316
6317   fi
6318
6319
6320
6321   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6322 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6323
6324 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6325
6326 else
6327   test $ac_cv_type_unsigned_long_long_int = yes \
6328        && ac_type='unsigned long long int' \
6329        || ac_type='unsigned long int'
6330
6331 cat >>confdefs.h <<_ACEOF
6332 #define uintmax_t $ac_type
6333 _ACEOF
6334
6335 fi
6336
6337
6338
6339   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6340 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6341
6342 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6343
6344 else
6345   for ac_type in 'unsigned int' 'unsigned long int' \
6346         'unsigned long long int'; do
6347        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h.  */
6349 $ac_includes_default
6350 int
6351 main ()
6352 {
6353 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6354 test_array [0] = 0
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_compile "$LINENO"; then :
6361
6362 cat >>confdefs.h <<_ACEOF
6363 #define uintptr_t $ac_type
6364 _ACEOF
6365
6366           ac_type=
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369        test -z "$ac_type" && break
6370      done
6371 fi
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 # ---------------------
6388 # Warnings and checking
6389 # ---------------------
6390
6391 # Check $CC warning features (if it's GCC).
6392 # We want to use -pedantic, but we don't want warnings about
6393 # * 'long long'
6394 # * variadic macros
6395 # * overlong strings
6396 # * C++11 narrowing conversions in { }
6397 # So, we only use -pedantic if we can disable those warnings.
6398
6399 loose_warn=
6400 save_CFLAGS="$CFLAGS"
6401 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6402   # Do the check with the no- prefix removed since gcc silently
6403   # accepts any -Wno-* option on purpose
6404   case $real_option in
6405     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6406     *) option=$real_option ;;
6407   esac
6408   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6409
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6411 $as_echo_n "checking whether $CC supports $option... " >&6; }
6412 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   CFLAGS="$option"
6416     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h.  */
6418
6419 int
6420 main ()
6421 {
6422
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 if ac_fn_c_try_compile "$LINENO"; then :
6428   eval "$as_acx_Woption=yes"
6429 else
6430   eval "$as_acx_Woption=no"
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433
6434 fi
6435 eval ac_res=\$$as_acx_Woption
6436                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6437 $as_echo "$ac_res" >&6; }
6438   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6439   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6440 fi
6441   done
6442 CFLAGS="$save_CFLAGS"
6443
6444 c_loose_warn=
6445 save_CFLAGS="$CFLAGS"
6446 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6447   # Do the check with the no- prefix removed since gcc silently
6448   # accepts any -Wno-* option on purpose
6449   case $real_option in
6450     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6451     *) option=$real_option ;;
6452   esac
6453   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6454
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6456 $as_echo_n "checking whether $CC supports $option... " >&6; }
6457 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   CFLAGS="$option"
6461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h.  */
6463
6464 int
6465 main ()
6466 {
6467
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473   eval "$as_acx_Woption=yes"
6474 else
6475   eval "$as_acx_Woption=no"
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478
6479 fi
6480 eval ac_res=\$$as_acx_Woption
6481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6482 $as_echo "$ac_res" >&6; }
6483   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6484   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6485 fi
6486   done
6487 CFLAGS="$save_CFLAGS"
6488
6489 strict_warn=
6490 save_CFLAGS="$CFLAGS"
6491 for real_option in -Wmissing-format-attribute; do
6492   # Do the check with the no- prefix removed since gcc silently
6493   # accepts any -Wno-* option on purpose
6494   case $real_option in
6495     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6496     *) option=$real_option ;;
6497   esac
6498   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6499
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6501 $as_echo_n "checking whether $CC supports $option... " >&6; }
6502 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   CFLAGS="$option"
6506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h.  */
6508
6509 int
6510 main ()
6511 {
6512
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518   eval "$as_acx_Woption=yes"
6519 else
6520   eval "$as_acx_Woption=no"
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523
6524 fi
6525 eval ac_res=\$$as_acx_Woption
6526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6527 $as_echo "$ac_res" >&6; }
6528   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6529   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6530 fi
6531   done
6532 CFLAGS="$save_CFLAGS"
6533
6534 c_strict_warn=
6535 save_CFLAGS="$CFLAGS"
6536 for real_option in -Wold-style-definition -Wc++-compat; do
6537   # Do the check with the no- prefix removed since gcc silently
6538   # accepts any -Wno-* option on purpose
6539   case $real_option in
6540     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6541     *) option=$real_option ;;
6542   esac
6543   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6544
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6546 $as_echo_n "checking whether $CC supports $option... " >&6; }
6547 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   CFLAGS="$option"
6551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h.  */
6553
6554 int
6555 main ()
6556 {
6557
6558   ;
6559   return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563   eval "$as_acx_Woption=yes"
6564 else
6565   eval "$as_acx_Woption=no"
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
6569 fi
6570 eval ac_res=\$$as_acx_Woption
6571                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6572 $as_echo "$ac_res" >&6; }
6573   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6574   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6575 fi
6576   done
6577 CFLAGS="$save_CFLAGS"
6578
6579 # Do the check with the no- prefix removed from the warning options
6580 # since gcc silently accepts any -Wno-* option on purpose
6581 if test "$GCC" = yes; then :
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6583 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6584 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6585   $as_echo_n "(cached) " >&6
6586 else
6587   save_CFLAGS="$CFLAGS"
6588 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h.  */
6591
6592 int
6593 main ()
6594 {
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 if ac_fn_c_try_compile "$LINENO"; then :
6601   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6602 else
6603   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 CFLAGS="$save_CFLAGS"
6607 fi
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6609 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6610 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6611   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6612 fi
6613
6614 fi
6615
6616 # Check whether --enable-werror-always was given.
6617 if test "${enable_werror_always+set}" = set; then :
6618   enableval=$enable_werror_always;
6619 else
6620   enable_werror_always=no
6621 fi
6622
6623 if test $enable_werror_always = yes; then :
6624   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6625 fi
6626
6627
6628
6629 # The above macros do nothing if the compiler is not GCC.  However, the
6630 # Makefile has more goo to add other flags, so these variables are used
6631 # to enable warnings only for GCC.
6632 warn_cflags=
6633 warn_cxxflags=
6634 if test "x$GCC" = "xyes"; then
6635   warn_cflags='$(GCC_WARN_CFLAGS)'
6636   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6637 fi
6638
6639
6640
6641 # Disable exceptions and RTTI if building with g++
6642 noexception_flags=
6643 save_CFLAGS="$CFLAGS"
6644 for real_option in -fno-exceptions -fno-rtti; do
6645   # Do the check with the no- prefix removed since gcc silently
6646   # accepts any -Wno-* option on purpose
6647   case $real_option in
6648     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6649     *) option=$real_option ;;
6650   esac
6651   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6652
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6654 $as_echo_n "checking whether $CC supports $option... " >&6; }
6655 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   CFLAGS="$option"
6659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h.  */
6661
6662 int
6663 main ()
6664 {
6665
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671   eval "$as_acx_Woption=yes"
6672 else
6673   eval "$as_acx_Woption=no"
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676
6677 fi
6678 eval ac_res=\$$as_acx_Woption
6679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6680 $as_echo "$ac_res" >&6; }
6681   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6682   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6683 fi
6684   done
6685 CFLAGS="$save_CFLAGS"
6686
6687
6688 # Enable expensive internal checks
6689 is_release=
6690 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6691   is_release=yes
6692 fi
6693
6694 # Check whether --enable-checking was given.
6695 if test "${enable_checking+set}" = set; then :
6696   enableval=$enable_checking; ac_checking_flags="${enableval}"
6697 else
6698
6699 # Determine the default checks.
6700 if test x$is_release = x ; then
6701   ac_checking_flags=yes
6702 else
6703   ac_checking_flags=release
6704 fi
6705 fi
6706
6707 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6708 for check in release $ac_checking_flags
6709 do
6710         case $check in
6711         # these set all the flags to specific states
6712         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6713                         ac_fold_checking= ; ac_gc_checking=1 ;
6714                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6715                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6716                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6717                         ac_types_checking=1 ;;
6718         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6719                         ac_fold_checking= ; ac_gc_checking= ;
6720                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6721                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6722                         ac_tree_checking= ; ac_valgrind_checking= ;
6723                         ac_types_checking= ;;
6724         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6725                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6726                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6727                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6728                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6729                         ac_types_checking=1 ;;
6730         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6731                         ac_fold_checking= ; ac_gc_checking= ;
6732                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6733                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6734                         ac_tree_checking= ; ac_valgrind_checking= ;
6735                         ac_types_checking= ;;
6736         # these enable particular checks
6737         assert)         ac_assert_checking=1 ;;
6738         df)             ac_df_checking=1 ;;
6739         fold)           ac_fold_checking=1 ;;
6740         gc)             ac_gc_checking=1 ;;
6741         gcac)           ac_gc_always_collect=1 ;;
6742         gimple)         ac_gimple_checking=1 ;;
6743         misc)           ac_checking=1 ;;
6744         rtl)            ac_rtl_checking=1 ;;
6745         rtlflag)        ac_rtlflag_checking=1 ;;
6746         runtime)        ac_runtime_checking=1 ;;
6747         tree)           ac_tree_checking=1 ;;
6748         types)          ac_types_checking=1 ;;
6749         valgrind)       ac_valgrind_checking=1 ;;
6750         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6751         esac
6752 done
6753 IFS="$ac_save_IFS"
6754
6755 nocommon_flag=""
6756 if test x$ac_checking != x ; then
6757
6758 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6759
6760   nocommon_flag=-fno-common
6761 fi
6762
6763 if test x$ac_df_checking != x ; then
6764
6765 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6766
6767 fi
6768 if test x$ac_assert_checking != x ; then
6769
6770 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6771
6772 fi
6773 if test x$ac_gimple_checking != x ; then
6774
6775 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6776
6777 fi
6778
6779 if test x$ac_runtime_checking != x ; then
6780
6781 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6782
6783 fi
6784 if test x$ac_tree_checking != x ; then
6785
6786 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6787
6788   TREEBROWSER=tree-browser.o
6789 fi
6790 if test x$ac_types_checking != x ; then
6791
6792 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6793
6794 fi
6795
6796 if test x$ac_rtl_checking != x ; then
6797
6798 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6799
6800 fi
6801 if test x$ac_rtlflag_checking != x ; then
6802
6803 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6804
6805 fi
6806 if test x$ac_gc_checking != x ; then
6807
6808 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6809
6810 fi
6811 if test x$ac_gc_always_collect != x ; then
6812
6813 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6814
6815 fi
6816 if test x$ac_fold_checking != x ; then
6817
6818 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6819
6820 fi
6821 valgrind_path_defines=
6822 valgrind_command=
6823
6824 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6825 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6826   have_valgrind_h=yes
6827 else
6828   have_valgrind_h=no
6829 fi
6830
6831
6832
6833 if test x$ac_valgrind_checking != x ; then
6834   # It is certainly possible that there's valgrind but no valgrind.h.
6835   # GCC relies on making annotations so we must have both.
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6837 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h.  */
6840 #include <valgrind/memcheck.h>
6841 #ifndef VALGRIND_DISCARD
6842 #error VALGRIND_DISCARD not defined
6843 #endif
6844 _ACEOF
6845 if ac_fn_c_try_cpp "$LINENO"; then :
6846   gcc_cv_header_valgrind_memcheck_h=yes
6847 else
6848   gcc_cv_header_valgrind_memcheck_h=no
6849 fi
6850 rm -f conftest.err conftest.$ac_ext
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6852 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6854 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h.  */
6857 #include <memcheck.h>
6858 #ifndef VALGRIND_DISCARD
6859 #error VALGRIND_DISCARD not defined
6860 #endif
6861 _ACEOF
6862 if ac_fn_c_try_cpp "$LINENO"; then :
6863   gcc_cv_header_memcheck_h=yes
6864 else
6865   gcc_cv_header_memcheck_h=no
6866 fi
6867 rm -f conftest.err conftest.$ac_ext
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6869 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6870
6871 # Prepare PATH_SEPARATOR.
6872 # The user is always right.
6873 if test "${PATH_SEPARATOR+set}" != set; then
6874   echo "#! /bin/sh" >conf$$.sh
6875   echo  "exit 0"   >>conf$$.sh
6876   chmod +x conf$$.sh
6877   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6878     PATH_SEPARATOR=';'
6879   else
6880     PATH_SEPARATOR=:
6881   fi
6882   rm -f conf$$.sh
6883 fi
6884
6885 # Find out how to test for executable files. Don't use a zero-byte file,
6886 # as systems may use methods other than mode bits to determine executability.
6887 cat >conf$$.file <<_ASEOF
6888 #! /bin/sh
6889 exit 0
6890 _ASEOF
6891 chmod +x conf$$.file
6892 if test -x conf$$.file >/dev/null 2>&1; then
6893   ac_executable_p="test -x"
6894 else
6895   ac_executable_p="test -f"
6896 fi
6897 rm -f conf$$.file
6898
6899 # Extract the first word of "valgrind", so it can be a program name with args.
6900 set dummy valgrind; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   case "$valgrind_path" in
6907   [\\/]* | ?:[\\/]*)
6908     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6909     ;;
6910   *)
6911     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6912     for ac_dir in $PATH; do
6913       IFS="$ac_save_IFS"
6914       test -z "$ac_dir" && ac_dir=.
6915       for ac_exec_ext in '' $ac_executable_extensions; do
6916         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6917           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6918             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6919             break 2
6920           fi
6921         fi
6922       done
6923     done
6924     IFS="$ac_save_IFS"
6925     ;;
6926 esac
6927 fi
6928 valgrind_path="$ac_cv_path_valgrind_path"
6929 if test -n "$valgrind_path"; then
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6931 $as_echo "$valgrind_path" >&6; }
6932 else
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937   if test "x$valgrind_path" = "x" \
6938     || (test $have_valgrind_h = no \
6939         && test $gcc_cv_header_memcheck_h = no \
6940         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6941         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6942   fi
6943   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6944   valgrind_command="$valgrind_path -q"
6945
6946 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6947
6948   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6949
6950 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6951
6952   fi
6953   if test $gcc_cv_header_memcheck_h = yes; then
6954
6955 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6956
6957   fi
6958 fi
6959
6960
6961
6962 # Enable code coverage collection
6963 # Check whether --enable-coverage was given.
6964 if test "${enable_coverage+set}" = set; then :
6965   enableval=$enable_coverage; case "${enableval}" in
6966   yes|noopt)
6967     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6968     ;;
6969   opt)
6970     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6971     ;;
6972   no)
6973     # a.k.a. --disable-coverage
6974     coverage_flags=""
6975     ;;
6976   *)
6977     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6978     ;;
6979 esac
6980 else
6981   coverage_flags=""
6982 fi
6983
6984
6985
6986 # Check whether --enable-gather-detailed-mem-stats was given.
6987 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6988   enableval=$enable_gather_detailed_mem_stats;
6989 else
6990   enable_gather_detailed_mem_stats=no
6991 fi
6992
6993 if test x$enable_gather_detailed_mem_stats = xyes ; then
6994
6995 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6996
6997 fi
6998
6999 # -------------------------------
7000 # Miscenalleous configure options
7001 # -------------------------------
7002
7003 # See if we are building gcc with C++.
7004 # Check whether --enable-build-with-cxx was given.
7005 if test "${enable_build_with_cxx+set}" = set; then :
7006   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7007 else
7008   ENABLE_BUILD_WITH_CXX=no
7009 fi
7010
7011
7012 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7013
7014 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7015
7016 fi
7017
7018 # With stabs
7019
7020 # Check whether --with-stabs was given.
7021 if test "${with_stabs+set}" = set; then :
7022   withval=$with_stabs; stabs="$with_stabs"
7023 else
7024   stabs=no
7025 fi
7026
7027
7028 # Determine whether or not multilibs are enabled.
7029 # Check whether --enable-multilib was given.
7030 if test "${enable_multilib+set}" = set; then :
7031   enableval=$enable_multilib;
7032 else
7033   enable_multilib=yes
7034 fi
7035
7036
7037
7038 # Determine whether or not multiarch is enabled.
7039 # Check whether --enable-multiarch was given.
7040 if test "${enable_multiarch+set}" = set; then :
7041   enableval=$enable_multiarch; case "${enableval}" in
7042 yes|no|auto) enable_multiarch=$enableval;;
7043 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7044 esac
7045 else
7046   enable_multiarch=auto
7047 fi
7048
7049 if test x${enable_multiarch} = xauto; then
7050   if test x${with_native_system_header_dir} != x; then
7051     ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7052     enable_multiarch=no
7053   fi
7054   if test x$host != x$target && test "x$with_sysroot" = x; then
7055     ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7056     enable_multiarch=no
7057   fi
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7060 $as_echo_n "checking for multiarch configuration... " >&6; }
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7063 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7064
7065 # needed for setting the multiarch name for soft-float/hard-float ABIs
7066
7067
7068
7069 # Enable __cxa_atexit for C++.
7070 # Check whether --enable-__cxa_atexit was given.
7071 if test "${enable___cxa_atexit+set}" = set; then :
7072   enableval=$enable___cxa_atexit;
7073 fi
7074
7075
7076 # Enable C extension for decimal float if target supports it.
7077
7078 # Check whether --enable-decimal-float was given.
7079 if test "${enable_decimal_float+set}" = set; then :
7080   enableval=$enable_decimal_float;
7081   case $enable_decimal_float in
7082     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7083     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7084 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7085   esac
7086
7087 else
7088
7089   case $target in
7090     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7091     i?86*-*-mingw* | x86_64*-*-mingw* | \
7092     i?86*-*-cygwin*)
7093       enable_decimal_float=yes
7094       ;;
7095     *)
7096       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7097 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7098       enable_decimal_float=no
7099       ;;
7100   esac
7101
7102 fi
7103
7104
7105 # x86's use BID format instead of DPD
7106 case x$enable_decimal_float in
7107   xyes)
7108     case $target in
7109       i?86*-*-* | x86_64*-*-*)
7110         enable_decimal_float=bid
7111         ;;
7112       *)
7113         enable_decimal_float=dpd
7114         ;;
7115     esac
7116     default_decimal_float=$enable_decimal_float
7117     ;;
7118   xno)
7119     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7120     # dependency on libdecnumber.
7121     default_decimal_float=dpd
7122     ;;
7123 esac
7124
7125
7126
7127
7128 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7129
7130 cat >>confdefs.h <<_ACEOF
7131 #define ENABLE_DECIMAL_FLOAT $dfp
7132 _ACEOF
7133
7134
7135 # Use default_decimal_float for dependency.
7136 enable_decimal_float=$default_decimal_float
7137
7138 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7139
7140 cat >>confdefs.h <<_ACEOF
7141 #define ENABLE_DECIMAL_BID_FORMAT $bid
7142 _ACEOF
7143
7144
7145 # Enable C extension for fixed-point arithmetic.
7146 # Check whether --enable-fixed-point was given.
7147 if test "${enable_fixed_point+set}" = set; then :
7148   enableval=$enable_fixed_point;
7149 else
7150
7151   case $target in
7152     arm*)
7153       enable_fixed_point=yes
7154       ;;
7155
7156     mips*-*-*)
7157       case $host in
7158         mips*-sgi-irix*)
7159           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7160 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7161           enable_fixed_point=no
7162           ;;
7163         *)
7164           enable_fixed_point=yes
7165           ;;
7166       esac
7167       ;;
7168     *)
7169       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7170 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7171       enable_fixed_point=no
7172       ;;
7173   esac
7174
7175 fi
7176
7177
7178
7179 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7180
7181 cat >>confdefs.h <<_ACEOF
7182 #define ENABLE_FIXED_POINT $fixedpoint
7183 _ACEOF
7184
7185
7186 # Enable threads
7187 # Pass with no value to take the default
7188 # Pass with a value to specify a thread package
7189 # Check whether --enable-threads was given.
7190 if test "${enable_threads+set}" = set; then :
7191   enableval=$enable_threads;
7192 else
7193   enable_threads=''
7194 fi
7195
7196
7197 # Check whether --enable-tls was given.
7198 if test "${enable_tls+set}" = set; then :
7199   enableval=$enable_tls;
7200   case $enable_tls in
7201     yes | no) ;;
7202     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7203 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7204   esac
7205
7206 else
7207   enable_tls=''
7208 fi
7209
7210
7211 # Check whether --enable-objc-gc was given.
7212 if test "${enable_objc_gc+set}" = set; then :
7213   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7214         objc_boehm_gc=''
7215 else
7216         objc_boehm_gc=1
7217 fi
7218 else
7219   objc_boehm_gc=''
7220 fi
7221
7222
7223
7224 # Check whether --with-dwarf2 was given.
7225 if test "${with_dwarf2+set}" = set; then :
7226   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7227 else
7228   dwarf2=no
7229 fi
7230
7231
7232 # Check whether --enable-shared was given.
7233 if test "${enable_shared+set}" = set; then :
7234   enableval=$enable_shared;
7235   case $enable_shared in
7236   yes | no) ;;
7237   *)
7238     enable_shared=no
7239     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7240     for pkg in $enableval; do
7241       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7242         enable_shared=yes
7243       fi
7244     done
7245     IFS="$ac_save_ifs"
7246     ;;
7247   esac
7248
7249 else
7250   enable_shared=yes
7251 fi
7252
7253
7254
7255
7256 # Check whether --with-native-system-header-dir was given.
7257 if test "${with_native_system_header_dir+set}" = set; then :
7258   withval=$with_native_system_header_dir;
7259  case ${with_native_system_header_dir} in
7260  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7261  /* | [A-Za-z]:[\\/]*) ;;
7262  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7263  esac
7264  configured_native_system_header_dir="${withval}"
7265
7266 else
7267   configured_native_system_header_dir=
7268 fi
7269
7270
7271
7272 # Check whether --with-build-sysroot was given.
7273 if test "${with_build_sysroot+set}" = set; then :
7274   withval=$with_build_sysroot; if test x"$withval" != x ; then
7275      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7276    fi
7277 else
7278   SYSROOT_CFLAGS_FOR_TARGET=
7279 fi
7280
7281
7282
7283
7284 # Check whether --with-sysroot was given.
7285 if test "${with_sysroot+set}" = set; then :
7286   withval=$with_sysroot;
7287  case ${with_sysroot} in
7288  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7289  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7290  esac
7291
7292  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7293  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7294
7295  if test "x$prefix" = xNONE; then
7296   test_prefix=/usr/local
7297  else
7298   test_prefix=$prefix
7299  fi
7300  if test "x$exec_prefix" = xNONE; then
7301   test_exec_prefix=$test_prefix
7302  else
7303   test_exec_prefix=$exec_prefix
7304  fi
7305  case ${TARGET_SYSTEM_ROOT} in
7306  "${test_prefix}"|"${test_prefix}/"*|\
7307  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7308  '${prefix}'|'${prefix}/'*|\
7309  '${exec_prefix}'|'${exec_prefix}/'*)
7310    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7311    TARGET_SYSTEM_ROOT_DEFINE="$t"
7312    ;;
7313  esac
7314
7315 else
7316
7317  TARGET_SYSTEM_ROOT=
7318  TARGET_SYSTEM_ROOT_DEFINE=
7319  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7320
7321 fi
7322
7323
7324
7325
7326
7327
7328 # Check whether --with-specs was given.
7329 if test "${with_specs+set}" = set; then :
7330   withval=$with_specs; CONFIGURE_SPECS=$withval
7331 else
7332   CONFIGURE_SPECS=
7333
7334 fi
7335
7336
7337
7338
7339
7340 # Check whether --with-pkgversion was given.
7341 if test "${with_pkgversion+set}" = set; then :
7342   withval=$with_pkgversion; case "$withval" in
7343       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7344       no)  PKGVERSION= ;;
7345       *)   PKGVERSION="($withval) " ;;
7346      esac
7347 else
7348   PKGVERSION="(GCC) "
7349
7350 fi
7351
7352
7353
7354
7355
7356 # Check whether --with-bugurl was given.
7357 if test "${with_bugurl+set}" = set; then :
7358   withval=$with_bugurl; case "$withval" in
7359       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7360       no)  BUGURL=
7361            ;;
7362       *)   BUGURL="$withval"
7363            ;;
7364      esac
7365 else
7366   BUGURL="http://gcc.gnu.org/bugs.html"
7367
7368 fi
7369
7370   case ${BUGURL} in
7371   "")
7372     REPORT_BUGS_TO=
7373     REPORT_BUGS_TEXI=
7374     ;;
7375   *)
7376     REPORT_BUGS_TO="<$BUGURL>"
7377     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7378     ;;
7379   esac;
7380
7381
7382
7383
7384 # Sanity check enable_languages in case someone does not run the toplevel
7385 # configure # script.
7386 # Check whether --enable-languages was given.
7387 if test "${enable_languages+set}" = set; then :
7388   enableval=$enable_languages; case ,${enable_languages}, in
7389        ,,|,yes,)
7390                 # go safe -- we cannot be much sure without the toplevel
7391                 # configure's
7392                 # analysis of which target libs are present and usable
7393                 enable_languages=c
7394                 ;;
7395          *,all,*)
7396                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7397                 ;;
7398         *,c,*)
7399                 ;;
7400         *)
7401                 enable_languages=c,${enable_languages}
7402                 ;;
7403 esac
7404 else
7405   enable_languages=c
7406 fi
7407
7408
7409
7410 # Check whether --with-multilib-list was given.
7411 if test "${with_multilib_list+set}" = set; then :
7412   withval=$with_multilib_list; :
7413 else
7414   with_multilib_list=default
7415 fi
7416
7417
7418 # -------------------------
7419 # Checks for other programs
7420 # -------------------------
7421
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7423 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7424 set x ${MAKE-make}
7425 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7426 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   cat >conftest.make <<\_ACEOF
7430 SHELL = /bin/sh
7431 all:
7432         @echo '@@@%%%=$(MAKE)=@@@%%%'
7433 _ACEOF
7434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7435 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7436   *@@@%%%=?*=@@@%%%*)
7437     eval ac_cv_prog_make_${ac_make}_set=yes;;
7438   *)
7439     eval ac_cv_prog_make_${ac_make}_set=no;;
7440 esac
7441 rm -f conftest.make
7442 fi
7443 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7445 $as_echo "yes" >&6; }
7446   SET_MAKE=
7447 else
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450   SET_MAKE="MAKE=${MAKE-make}"
7451 fi
7452
7453
7454 # Find some useful tools
7455 for ac_prog in gawk mawk nawk awk
7456 do
7457   # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if test "${ac_cv_prog_AWK+set}" = set; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   if test -n "$AWK"; then
7465   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472     for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_prog_AWK="$ac_prog"
7475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479   done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 AWK=$ac_cv_prog_AWK
7485 if test -n "$AWK"; then
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7487 $as_echo "$AWK" >&6; }
7488 else
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493
7494   test -n "$AWK" && break
7495 done
7496
7497 # We need awk to create options.c and options.h.
7498 # Bail out if it's missing.
7499 case ${AWK} in
7500   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7501 esac
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7504 $as_echo_n "checking whether ln -s works... " >&6; }
7505 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   rm -f conftestdata_t
7509 echo >conftestdata_f
7510 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7511 then
7512   gcc_cv_prog_LN_S="ln -s"
7513 else
7514   if ln conftestdata_f conftestdata_t 2>/dev/null
7515   then
7516     gcc_cv_prog_LN_S=ln
7517   else
7518     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7519     then
7520       gcc_cv_prog_LN_S="cp -p"
7521     else
7522       gcc_cv_prog_LN_S=cp
7523     fi
7524   fi
7525 fi
7526 rm -f conftestdata_f conftestdata_t
7527
7528 fi
7529 LN_S="$gcc_cv_prog_LN_S"
7530 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7532 $as_echo "yes" >&6; }
7533 else
7534   if test "$gcc_cv_prog_LN_S" = "ln"; then
7535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7536 $as_echo "no, using ln" >&6; }
7537   else
7538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7539 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7540   fi
7541 fi
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7544 $as_echo_n "checking whether ln works... " >&6; }
7545 if test "${acx_cv_prog_LN+set}" = set; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   rm -f conftestdata_t
7549 echo >conftestdata_f
7550 if ln conftestdata_f conftestdata_t 2>/dev/null
7551 then
7552   acx_cv_prog_LN=ln
7553 else
7554   acx_cv_prog_LN=no
7555 fi
7556 rm -f conftestdata_f conftestdata_t
7557
7558 fi
7559 if test $acx_cv_prog_LN = no; then
7560   LN="$LN_S"
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7562 $as_echo "no, using $LN" >&6; }
7563 else
7564   LN="$acx_cv_prog_LN"
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 $as_echo "yes" >&6; }
7567 fi
7568
7569 if test -n "$ac_tool_prefix"; then
7570   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   if test -n "$RANLIB"; then
7578   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585     for ac_exec_ext in '' $ac_executable_extensions; do
7586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592   done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 RANLIB=$ac_cv_prog_RANLIB
7598 if test -n "$RANLIB"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7600 $as_echo "$RANLIB" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 fi
7608 if test -z "$ac_cv_prog_RANLIB"; then
7609   ac_ct_RANLIB=$RANLIB
7610   # Extract the first word of "ranlib", so it can be a program name with args.
7611 set dummy ranlib; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$ac_ct_RANLIB"; then
7618   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_prog_ac_ct_RANLIB="ranlib"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7638 if test -n "$ac_ct_RANLIB"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7640 $as_echo "$ac_ct_RANLIB" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646   if test "x$ac_ct_RANLIB" = x; then
7647     RANLIB=":"
7648   else
7649     case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655     RANLIB=$ac_ct_RANLIB
7656   fi
7657 else
7658   RANLIB="$ac_cv_prog_RANLIB"
7659 fi
7660
7661 ranlib_flags=""
7662
7663
7664 # Find a good install program.  We prefer a C program (faster),
7665 # so one script is as good as another.  But avoid the broken or
7666 # incompatible versions:
7667 # SysV /etc/install, /usr/sbin/install
7668 # SunOS /usr/etc/install
7669 # IRIX /sbin/install
7670 # AIX /bin/install
7671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7673 # ./install, which can be erroneously created by make from ./install.sh.
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7675 $as_echo_n "checking for a BSD compatible install... " >&6; }
7676 if test -z "$INSTALL"; then
7677 if test "${ac_cv_path_install+set}" = set; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7681   for ac_dir in $PATH; do
7682     # Account for people who put trailing slashes in PATH elements.
7683     case "$ac_dir/" in
7684     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7685     *)
7686       # OSF1 and SCO ODT 3.0 have their own names for install.
7687       for ac_prog in ginstall scoinst install; do
7688         if test -f $ac_dir/$ac_prog; then
7689           if test $ac_prog = install &&
7690             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7691             # AIX install.  It has an incompatible calling convention.
7692             # OSF/1 installbsd also uses dspmsg, but is usable.
7693             :
7694           else
7695             ac_cv_path_install="$ac_dir/$ac_prog -c"
7696             break 2
7697           fi
7698         fi
7699       done
7700       ;;
7701     esac
7702   done
7703   IFS="$ac_save_IFS"
7704
7705 fi
7706   if test "${ac_cv_path_install+set}" = set; then
7707     INSTALL="$ac_cv_path_install"
7708   else
7709     # As a last resort, use the slow shell script.  We don't cache a
7710     # path for INSTALL within a source directory, because that will
7711     # break other packages using the cache if that directory is
7712     # removed, or if the path is relative.
7713     INSTALL="$ac_install_sh"
7714   fi
7715 fi
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7717 $as_echo "$INSTALL" >&6; }
7718
7719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7720 # It thinks the first close brace ends the variable substitution.
7721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7722
7723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7724
7725
7726 # See if cmp has --ignore-initial.
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7728 $as_echo_n "checking for cmp's capabilities... " >&6; }
7729 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732    echo abfoo >t1
7733   echo cdfoo >t2
7734   gcc_cv_prog_cmp_skip=slowcompare
7735   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7736     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7737       :
7738     else
7739       gcc_cv_prog_cmp_skip=gnucompare
7740     fi
7741   fi
7742   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7743     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7744       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7745         :
7746       else
7747         gcc_cv_prog_cmp_skip=fastcompare
7748       fi
7749     fi
7750   fi
7751   rm t1 t2
7752
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7755 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7756 make_compare_target=$gcc_cv_prog_cmp_skip
7757
7758
7759
7760 # See if we have the mktemp command.
7761 # Extract the first word of "mktemp", so it can be a program name with args.
7762 set dummy mktemp; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   if test -n "$have_mktemp_command"; then
7769   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776     for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_prog_have_mktemp_command="yes"
7779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783   done
7784 IFS=$as_save_IFS
7785
7786   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7787 fi
7788 fi
7789 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7790 if test -n "$have_mktemp_command"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7792 $as_echo "$have_mktemp_command" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799
7800 # See if makeinfo has been installed and is modern enough
7801 # that we can use it.
7802
7803   # Extract the first word of "makeinfo", so it can be a program name with args.
7804 set dummy makeinfo; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   if test -n "$MAKEINFO"; then
7811   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818     for ac_exec_ext in '' $ac_executable_extensions; do
7819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7820     ac_cv_prog_MAKEINFO="makeinfo"
7821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825   done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 MAKEINFO=$ac_cv_prog_MAKEINFO
7831 if test -n "$MAKEINFO"; then
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7833 $as_echo "$MAKEINFO" >&6; }
7834 else
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839
7840   if test -n "$MAKEINFO"; then
7841     # Found it, now check the version.
7842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7843 $as_echo_n "checking for modern makeinfo... " >&6; }
7844 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7848                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7849
7850                     case $ac_prog_version in
7851                       '')  gcc_cv_prog_makeinfo_modern=no;;
7852                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7853                       *)   gcc_cv_prog_makeinfo_modern=no;;
7854                     esac
7855
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7858 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7859   else
7860     gcc_cv_prog_makeinfo_modern=no
7861   fi
7862   if test $gcc_cv_prog_makeinfo_modern = no; then
7863     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7864   fi
7865
7866 if test $gcc_cv_prog_makeinfo_modern = no; then
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7868 *** Makeinfo is missing or too old.
7869 *** Info documentation will not be built." >&5
7870 $as_echo "$as_me: WARNING:
7871 *** Makeinfo is missing or too old.
7872 *** Info documentation will not be built." >&2;}
7873   BUILD_INFO=
7874 else
7875   BUILD_INFO=info
7876 fi
7877
7878
7879 # Is pod2man recent enough to regenerate manpages?
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7881 $as_echo_n "checking for recent Pod::Man... " >&6; }
7882 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884 $as_echo "yes" >&6; }
7885   GENERATED_MANPAGES=generated-manpages
7886 else
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889   GENERATED_MANPAGES=
7890 fi
7891
7892
7893 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7894
7895 # How about lex?
7896 for ac_prog in flex
7897 do
7898   # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_FLEX+set}" = set; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   if test -n "$FLEX"; then
7906   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913     for ac_exec_ext in '' $ac_executable_extensions; do
7914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915     ac_cv_prog_FLEX="$ac_prog"
7916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917     break 2
7918   fi
7919 done
7920   done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 FLEX=$ac_cv_prog_FLEX
7926 if test -n "$FLEX"; then
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7928 $as_echo "$FLEX" >&6; }
7929 else
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933
7934
7935   test -n "$FLEX" && break
7936 done
7937 test -n "$FLEX" || FLEX="$MISSING flex"
7938
7939
7940 # Bison?
7941 for ac_prog in bison
7942 do
7943   # Extract the first word of "$ac_prog", so it can be a program name with args.
7944 set dummy $ac_prog; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_BISON+set}" = set; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$BISON"; then
7951   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960     ac_cv_prog_BISON="$ac_prog"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 BISON=$ac_cv_prog_BISON
7971 if test -n "$BISON"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7973 $as_echo "$BISON" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980   test -n "$BISON" && break
7981 done
7982 test -n "$BISON" || BISON="$MISSING bison"
7983
7984
7985 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7986 # check for build == host before using them.
7987
7988 # NM
7989 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7990   && test -d ../binutils ; then
7991   NM='${objdir}/../binutils/nm-new'
7992 else
7993   # Extract the first word of "nm", so it can be a program name with args.
7994 set dummy nm; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if test "${ac_cv_prog_NM+set}" = set; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   if test -n "$NM"; then
8001   ac_cv_prog_NM="$NM" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008     for ac_exec_ext in '' $ac_executable_extensions; do
8009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010     ac_cv_prog_NM="nm"
8011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015   done
8016 IFS=$as_save_IFS
8017
8018   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8019 fi
8020 fi
8021 NM=$ac_cv_prog_NM
8022 if test -n "$NM"; then
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8024 $as_echo "$NM" >&6; }
8025 else
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030
8031 fi
8032
8033 # AR
8034 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8035   && test -d ../binutils ; then
8036   AR='${objdir}/../binutils/ar'
8037 else
8038   # Extract the first word of "ar", so it can be a program name with args.
8039 set dummy ar; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_AR+set}" = set; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   if test -n "$AR"; then
8046   ac_cv_prog_AR="$AR" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053     for ac_exec_ext in '' $ac_executable_extensions; do
8054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055     ac_cv_prog_AR="ar"
8056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060   done
8061 IFS=$as_save_IFS
8062
8063   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8064 fi
8065 fi
8066 AR=$ac_cv_prog_AR
8067 if test -n "$AR"; then
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8069 $as_echo "$AR" >&6; }
8070 else
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8073 fi
8074
8075
8076 fi
8077
8078
8079 # --------------------
8080 # Checks for C headers
8081 # --------------------
8082
8083 # Need to reject headers which give warnings, so that the -Werror bootstrap
8084 # works later. *sigh*  This needs to come before all header checks.
8085
8086 ac_c_preproc_warn_flag=yes
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8089 $as_echo_n "checking for ANSI C header files... " >&6; }
8090 if test "${ac_cv_header_stdc+set}" = set; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h.  */
8095 #include <stdlib.h>
8096 #include <stdarg.h>
8097 #include <string.h>
8098 #include <float.h>
8099
8100 int
8101 main ()
8102 {
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_compile "$LINENO"; then :
8109   ac_cv_header_stdc=yes
8110 else
8111   ac_cv_header_stdc=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114
8115 if test $ac_cv_header_stdc = yes; then
8116   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h.  */
8119 #include <string.h>
8120
8121 _ACEOF
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123   $EGREP "memchr" >/dev/null 2>&1; then :
8124
8125 else
8126   ac_cv_header_stdc=no
8127 fi
8128 rm -f conftest*
8129
8130 fi
8131
8132 if test $ac_cv_header_stdc = yes; then
8133   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h.  */
8136 #include <stdlib.h>
8137
8138 _ACEOF
8139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8140   $EGREP "free" >/dev/null 2>&1; then :
8141
8142 else
8143   ac_cv_header_stdc=no
8144 fi
8145 rm -f conftest*
8146
8147 fi
8148
8149 if test $ac_cv_header_stdc = yes; then
8150   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8151   if test "$cross_compiling" = yes; then :
8152   :
8153 else
8154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156 #include <ctype.h>
8157 #include <stdlib.h>
8158 #if ((' ' & 0x0FF) == 0x020)
8159 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8160 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8161 #else
8162 # define ISLOWER(c) \
8163                    (('a' <= (c) && (c) <= 'i') \
8164                      || ('j' <= (c) && (c) <= 'r') \
8165                      || ('s' <= (c) && (c) <= 'z'))
8166 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8167 #endif
8168
8169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8170 int
8171 main ()
8172 {
8173   int i;
8174   for (i = 0; i < 256; i++)
8175     if (XOR (islower (i), ISLOWER (i))
8176         || toupper (i) != TOUPPER (i))
8177       return 2;
8178   return 0;
8179 }
8180 _ACEOF
8181 if ac_fn_c_try_run "$LINENO"; then :
8182
8183 else
8184   ac_cv_header_stdc=no
8185 fi
8186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8187   conftest.$ac_objext conftest.beam conftest.$ac_ext
8188 fi
8189
8190 fi
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8193 $as_echo "$ac_cv_header_stdc" >&6; }
8194 if test $ac_cv_header_stdc = yes; then
8195
8196 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8197
8198 fi
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8201 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8202 if test "${ac_cv_header_time+set}" = set; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h.  */
8207 #include <sys/types.h>
8208 #include <sys/time.h>
8209 #include <time.h>
8210
8211 int
8212 main ()
8213 {
8214 if ((struct tm *) 0)
8215 return 0;
8216   ;
8217   return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221   ac_cv_header_time=yes
8222 else
8223   ac_cv_header_time=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8228 $as_echo "$ac_cv_header_time" >&6; }
8229 if test $ac_cv_header_time = yes; then
8230
8231 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8232
8233 fi
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8236 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8237 if test "${gcc_cv_header_string+set}" = set; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h.  */
8242 #include <string.h>
8243 #include <strings.h>
8244 int
8245 main ()
8246 {
8247
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253   gcc_cv_header_string=yes
8254 else
8255   gcc_cv_header_string=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8260 $as_echo "$gcc_cv_header_string" >&6; }
8261 if test $gcc_cv_header_string = yes; then
8262
8263 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8264
8265 fi
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8268 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8269 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274 #include <sys/types.h>
8275 #include <sys/wait.h>
8276 #ifndef WEXITSTATUS
8277 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8278 #endif
8279 #ifndef WIFEXITED
8280 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8281 #endif
8282
8283 int
8284 main ()
8285 {
8286   int s;
8287   wait (&s);
8288   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"; then :
8294   ac_cv_header_sys_wait_h=yes
8295 else
8296   ac_cv_header_sys_wait_h=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8301 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8302 if test $ac_cv_header_sys_wait_h = yes; then
8303
8304 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8305
8306 fi
8307
8308 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8309                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8310                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8311                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8312 do :
8313   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8314 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8315 eval as_val=\$$as_ac_Header
8316    if test "x$as_val" = x""yes; then :
8317   cat >>confdefs.h <<_ACEOF
8318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8319 _ACEOF
8320
8321 fi
8322 done
8323
8324
8325 # Check for thread headers.
8326 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8327 if test "x$ac_cv_header_thread_h" = x""yes; then :
8328   have_thread_h=yes
8329 else
8330   have_thread_h=
8331 fi
8332
8333 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8334 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8335   have_pthread_h=yes
8336 else
8337   have_pthread_h=
8338 fi
8339
8340
8341 # These tests can't be done till we know if we have limits.h.
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8343 $as_echo_n "checking for CHAR_BIT... " >&6; }
8344 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8345   $as_echo_n "(cached) " >&6
8346 else
8347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h.  */
8349 #ifdef HAVE_LIMITS_H
8350 #include <limits.h>
8351 #endif
8352 #ifdef CHAR_BIT
8353 found
8354 #endif
8355 _ACEOF
8356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357   $EGREP "found" >/dev/null 2>&1; then :
8358   gcc_cv_decl_char_bit=yes
8359 else
8360   gcc_cv_decl_char_bit=no
8361 fi
8362 rm -f conftest*
8363
8364
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8367 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8368 if test $gcc_cv_decl_char_bit = no; then
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8370 $as_echo_n "checking number of bits in a byte... " >&6; }
8371 if test "${gcc_cv_c_nbby+set}" = set; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   i=8
8375  gcc_cv_c_nbby=
8376  while test $i -lt 65; do
8377    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379
8380 int
8381 main ()
8382 {
8383 switch(0) {
8384   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8385   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8386   ; }
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392   gcc_cv_c_nbby=$i; break
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395    i=`expr $i + 1`
8396  done
8397  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8398
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8401 $as_echo "$gcc_cv_c_nbby" >&6; }
8402 if test $gcc_cv_c_nbby = failed; then
8403   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8404 else
8405
8406 cat >>confdefs.h <<_ACEOF
8407 #define CHAR_BIT $gcc_cv_c_nbby
8408 _ACEOF
8409
8410 fi
8411 fi
8412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8413 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8414 if test "${ac_cv_c_bigendian+set}" = set; then :
8415   $as_echo_n "(cached) " >&6
8416 else
8417   ac_cv_c_bigendian=unknown
8418     # See if we're dealing with a universal compiler.
8419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h.  */
8421 #ifndef __APPLE_CC__
8422                not a universal capable compiler
8423              #endif
8424              typedef int dummy;
8425
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"; then :
8428
8429         # Check for potential -arch flags.  It is not universal unless
8430         # there are at least two -arch flags with different values.
8431         ac_arch=
8432         ac_prev=
8433         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8434          if test -n "$ac_prev"; then
8435            case $ac_word in
8436              i?86 | x86_64 | ppc | ppc64)
8437                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8438                  ac_arch=$ac_word
8439                else
8440                  ac_cv_c_bigendian=universal
8441                  break
8442                fi
8443                ;;
8444            esac
8445            ac_prev=
8446          elif test "x$ac_word" = "x-arch"; then
8447            ac_prev=arch
8448          fi
8449        done
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452     if test $ac_cv_c_bigendian = unknown; then
8453       # See if sys/param.h defines the BYTE_ORDER macro.
8454       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h.  */
8456 #include <sys/types.h>
8457              #include <sys/param.h>
8458
8459 int
8460 main ()
8461 {
8462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8463                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8464                      && LITTLE_ENDIAN)
8465               bogus endian macros
8466              #endif
8467
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473   # It does; now see whether it defined to BIG_ENDIAN or not.
8474          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h.  */
8476 #include <sys/types.h>
8477                 #include <sys/param.h>
8478
8479 int
8480 main ()
8481 {
8482 #if BYTE_ORDER != BIG_ENDIAN
8483                  not big endian
8484                 #endif
8485
8486   ;
8487   return 0;
8488 }
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491   ac_cv_c_bigendian=yes
8492 else
8493   ac_cv_c_bigendian=no
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498     fi
8499     if test $ac_cv_c_bigendian = unknown; then
8500       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h.  */
8503 #include <limits.h>
8504
8505 int
8506 main ()
8507 {
8508 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8509               bogus endian macros
8510              #endif
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517   # It does; now see whether it defined to _BIG_ENDIAN or not.
8518          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h.  */
8520 #include <limits.h>
8521
8522 int
8523 main ()
8524 {
8525 #ifndef _BIG_ENDIAN
8526                  not big endian
8527                 #endif
8528
8529   ;
8530   return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_c_try_compile "$LINENO"; then :
8534   ac_cv_c_bigendian=yes
8535 else
8536   ac_cv_c_bigendian=no
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541     fi
8542     if test $ac_cv_c_bigendian = unknown; then
8543       # Compile a test program.
8544       if test "$cross_compiling" = yes; then :
8545   # Try to guess by grepping values from an object file.
8546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h.  */
8548 short int ascii_mm[] =
8549                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8550                 short int ascii_ii[] =
8551                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8552                 int use_ascii (int i) {
8553                   return ascii_mm[i] + ascii_ii[i];
8554                 }
8555                 short int ebcdic_ii[] =
8556                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8557                 short int ebcdic_mm[] =
8558                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8559                 int use_ebcdic (int i) {
8560                   return ebcdic_mm[i] + ebcdic_ii[i];
8561                 }
8562                 extern int foo;
8563
8564 int
8565 main ()
8566 {
8567 return use_ascii (foo) == use_ebcdic (foo);
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"; then :
8573   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8574               ac_cv_c_bigendian=yes
8575             fi
8576             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8577               if test "$ac_cv_c_bigendian" = unknown; then
8578                 ac_cv_c_bigendian=no
8579               else
8580                 # finding both strings is unlikely to happen, but who knows?
8581                 ac_cv_c_bigendian=unknown
8582               fi
8583             fi
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586 else
8587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h.  */
8589 $ac_includes_default
8590 int
8591 main ()
8592 {
8593
8594              /* Are we little or big endian?  From Harbison&Steele.  */
8595              union
8596              {
8597                long int l;
8598                char c[sizeof (long int)];
8599              } u;
8600              u.l = 1;
8601              return u.c[sizeof (long int) - 1] == 1;
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 if ac_fn_c_try_run "$LINENO"; then :
8608   ac_cv_c_bigendian=no
8609 else
8610   ac_cv_c_bigendian=yes
8611 fi
8612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8613   conftest.$ac_objext conftest.beam conftest.$ac_ext
8614 fi
8615
8616     fi
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8619 $as_echo "$ac_cv_c_bigendian" >&6; }
8620  case $ac_cv_c_bigendian in #(
8621    yes)
8622      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8623 ;; #(
8624    no)
8625       ;; #(
8626    universal)
8627
8628 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8629
8630      ;; #(
8631    *)
8632      as_fn_error "unknown endianness
8633  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8634  esac
8635
8636
8637 # ----------------------
8638 # Checks for C++ headers
8639 # ----------------------
8640
8641 ac_ext=cpp
8642 ac_cpp='$CXXCPP $CPPFLAGS'
8643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8647 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8648 if test -z "$CXXCPP"; then
8649   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652       # Double quotes because CXXCPP needs to be expanded
8653     for CXXCPP in "$CXX -E" "/lib/cpp"
8654     do
8655       ac_preproc_ok=false
8656 for ac_cxx_preproc_warn_flag in '' yes
8657 do
8658   # Use a header file that comes with gcc, so configuring glibc
8659   # with a fresh cross-compiler works.
8660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661   # <limits.h> exists even on freestanding compilers.
8662   # On the NeXT, cc -E runs the code through the compiler's parser,
8663   # not just through cpp. "Syntax error" is here to catch this case.
8664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h.  */
8666 #ifdef __STDC__
8667 # include <limits.h>
8668 #else
8669 # include <assert.h>
8670 #endif
8671                      Syntax error
8672 _ACEOF
8673 if ac_fn_cxx_try_cpp "$LINENO"; then :
8674
8675 else
8676   # Broken: fails on valid input.
8677 continue
8678 fi
8679 rm -f conftest.err conftest.$ac_ext
8680
8681   # OK, works on sane cases.  Now check whether nonexistent headers
8682   # can be detected and how.
8683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8685 #include <ac_nonexistent.h>
8686 _ACEOF
8687 if ac_fn_cxx_try_cpp "$LINENO"; then :
8688   # Broken: success on invalid input.
8689 continue
8690 else
8691   # Passes both tests.
8692 ac_preproc_ok=:
8693 break
8694 fi
8695 rm -f conftest.err conftest.$ac_ext
8696
8697 done
8698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8699 rm -f conftest.err conftest.$ac_ext
8700 if $ac_preproc_ok; then :
8701   break
8702 fi
8703
8704     done
8705     ac_cv_prog_CXXCPP=$CXXCPP
8706
8707 fi
8708   CXXCPP=$ac_cv_prog_CXXCPP
8709 else
8710   ac_cv_prog_CXXCPP=$CXXCPP
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8713 $as_echo "$CXXCPP" >&6; }
8714 ac_preproc_ok=false
8715 for ac_cxx_preproc_warn_flag in '' yes
8716 do
8717   # Use a header file that comes with gcc, so configuring glibc
8718   # with a fresh cross-compiler works.
8719   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720   # <limits.h> exists even on freestanding compilers.
8721   # On the NeXT, cc -E runs the code through the compiler's parser,
8722   # not just through cpp. "Syntax error" is here to catch this case.
8723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h.  */
8725 #ifdef __STDC__
8726 # include <limits.h>
8727 #else
8728 # include <assert.h>
8729 #endif
8730                      Syntax error
8731 _ACEOF
8732 if ac_fn_cxx_try_cpp "$LINENO"; then :
8733
8734 else
8735   # Broken: fails on valid input.
8736 continue
8737 fi
8738 rm -f conftest.err conftest.$ac_ext
8739
8740   # OK, works on sane cases.  Now check whether nonexistent headers
8741   # can be detected and how.
8742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h.  */
8744 #include <ac_nonexistent.h>
8745 _ACEOF
8746 if ac_fn_cxx_try_cpp "$LINENO"; then :
8747   # Broken: success on invalid input.
8748 continue
8749 else
8750   # Passes both tests.
8751 ac_preproc_ok=:
8752 break
8753 fi
8754 rm -f conftest.err conftest.$ac_ext
8755
8756 done
8757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8758 rm -f conftest.err conftest.$ac_ext
8759 if $ac_preproc_ok; then :
8760
8761 else
8762   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8765 See \`config.log' for more details." >&5
8766 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8767 See \`config.log' for more details." >&2;}; }
8768 fi
8769
8770 ac_ext=c
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776
8777 ac_ext=cpp
8778 ac_cpp='$CXXCPP $CPPFLAGS'
8779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8782
8783
8784
8785
8786 for ac_header in unordered_map
8787 do :
8788   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8789 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8790   cat >>confdefs.h <<_ACEOF
8791 #define HAVE_UNORDERED_MAP 1
8792 _ACEOF
8793
8794 fi
8795 done
8796
8797 for ac_header in tr1/unordered_map
8798 do :
8799   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8800 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8801   cat >>confdefs.h <<_ACEOF
8802 #define HAVE_TR1_UNORDERED_MAP 1
8803 _ACEOF
8804
8805 fi
8806 done
8807
8808 for ac_header in ext/hash_map
8809 do :
8810   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8811 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8812   cat >>confdefs.h <<_ACEOF
8813 #define HAVE_EXT_HASH_MAP 1
8814 _ACEOF
8815
8816 fi
8817 done
8818
8819
8820 ac_ext=c
8821 ac_cpp='$CPP $CPPFLAGS'
8822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8825
8826
8827 # --------
8828 # UNSORTED
8829 # --------
8830
8831
8832 # These libraries may be used by collect2.
8833 # We may need a special search path to get them linked.
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8835 $as_echo_n "checking for collect2 libraries... " >&6; }
8836 if test "${gcc_cv_collect2_libs+set}" = set; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   save_LIBS="$LIBS"
8840 for libs in '' -lld -lmld \
8841                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8842                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8843 do
8844         LIBS="$libs"
8845         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847
8848 /* Override any GCC internal prototype to avoid an error.
8849    Use char because int might match the return type of a GCC
8850    builtin and then its argument prototype would still apply.  */
8851 #ifdef __cplusplus
8852 extern "C"
8853 #endif
8854 char ldopen ();
8855 int
8856 main ()
8857 {
8858 return ldopen ();
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8864   gcc_cv_collect2_libs="$libs"; break
8865 fi
8866 rm -f core conftest.err conftest.$ac_objext \
8867     conftest$ac_exeext conftest.$ac_ext
8868 done
8869 LIBS="$save_LIBS"
8870 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8873 $as_echo "$gcc_cv_collect2_libs" >&6; }
8874 case $gcc_cv_collect2_libs in
8875         "none required")        ;;
8876         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8877 esac
8878
8879
8880 # When building Ada code on Alpha, we need exc_resume which is usually in
8881 # -lexc.  So test for it.
8882 save_LIBS="$LIBS"
8883 LIBS=
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8885 $as_echo_n "checking for library containing exc_resume... " >&6; }
8886 if test "${ac_cv_search_exc_resume+set}" = set; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   ac_func_search_save_LIBS=$LIBS
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h.  */
8892
8893 /* Override any GCC internal prototype to avoid an error.
8894    Use char because int might match the return type of a GCC
8895    builtin and then its argument prototype would still apply.  */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char exc_resume ();
8900 int
8901 main ()
8902 {
8903 return exc_resume ();
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 for ac_lib in '' exc; do
8909   if test -z "$ac_lib"; then
8910     ac_res="none required"
8911   else
8912     ac_res=-l$ac_lib
8913     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8914   fi
8915   if ac_fn_c_try_link "$LINENO"; then :
8916   ac_cv_search_exc_resume=$ac_res
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext \
8919     conftest$ac_exeext
8920   if test "${ac_cv_search_exc_resume+set}" = set; then :
8921   break
8922 fi
8923 done
8924 if test "${ac_cv_search_exc_resume+set}" = set; then :
8925
8926 else
8927   ac_cv_search_exc_resume=no
8928 fi
8929 rm conftest.$ac_ext
8930 LIBS=$ac_func_search_save_LIBS
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8933 $as_echo "$ac_cv_search_exc_resume" >&6; }
8934 ac_res=$ac_cv_search_exc_resume
8935 if test "$ac_res" != no; then :
8936   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8937
8938 fi
8939
8940 GNAT_LIBEXC="$LIBS"
8941 LIBS="$save_LIBS"
8942
8943
8944 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8945 save_LIBS="$LIBS"
8946 LIBS=
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8948 $as_echo_n "checking for library containing kstat_open... " >&6; }
8949 if test "${ac_cv_search_kstat_open+set}" = set; then :
8950   $as_echo_n "(cached) " >&6
8951 else
8952   ac_func_search_save_LIBS=$LIBS
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h.  */
8955
8956 /* Override any GCC internal prototype to avoid an error.
8957    Use char because int might match the return type of a GCC
8958    builtin and then its argument prototype would still apply.  */
8959 #ifdef __cplusplus
8960 extern "C"
8961 #endif
8962 char kstat_open ();
8963 int
8964 main ()
8965 {
8966 return kstat_open ();
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 for ac_lib in '' kstat; do
8972   if test -z "$ac_lib"; then
8973     ac_res="none required"
8974   else
8975     ac_res=-l$ac_lib
8976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8977   fi
8978   if ac_fn_c_try_link "$LINENO"; then :
8979   ac_cv_search_kstat_open=$ac_res
8980 fi
8981 rm -f core conftest.err conftest.$ac_objext \
8982     conftest$ac_exeext
8983   if test "${ac_cv_search_kstat_open+set}" = set; then :
8984   break
8985 fi
8986 done
8987 if test "${ac_cv_search_kstat_open+set}" = set; then :
8988
8989 else
8990   ac_cv_search_kstat_open=no
8991 fi
8992 rm conftest.$ac_ext
8993 LIBS=$ac_func_search_save_LIBS
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8996 $as_echo "$ac_cv_search_kstat_open" >&6; }
8997 ac_res=$ac_cv_search_kstat_open
8998 if test "$ac_res" != no; then :
8999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9000
9001 fi
9002
9003 EXTRA_GCC_LIBS="$LIBS"
9004 LIBS="$save_LIBS"
9005
9006
9007 # Some systems put ldexp and frexp in libm instead of libc; assume
9008 # they're both in the same place.  jcf-dump needs them.
9009 save_LIBS="$LIBS"
9010 LIBS=
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9012 $as_echo_n "checking for library containing ldexp... " >&6; }
9013 if test "${ac_cv_search_ldexp+set}" = set; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016   ac_func_search_save_LIBS=$LIBS
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h.  */
9019
9020 /* Override any GCC internal prototype to avoid an error.
9021    Use char because int might match the return type of a GCC
9022    builtin and then its argument prototype would still apply.  */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 char ldexp ();
9027 int
9028 main ()
9029 {
9030 return ldexp ();
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 for ac_lib in '' m; do
9036   if test -z "$ac_lib"; then
9037     ac_res="none required"
9038   else
9039     ac_res=-l$ac_lib
9040     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9041   fi
9042   if ac_fn_c_try_link "$LINENO"; then :
9043   ac_cv_search_ldexp=$ac_res
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext \
9046     conftest$ac_exeext
9047   if test "${ac_cv_search_ldexp+set}" = set; then :
9048   break
9049 fi
9050 done
9051 if test "${ac_cv_search_ldexp+set}" = set; then :
9052
9053 else
9054   ac_cv_search_ldexp=no
9055 fi
9056 rm conftest.$ac_ext
9057 LIBS=$ac_func_search_save_LIBS
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9060 $as_echo "$ac_cv_search_ldexp" >&6; }
9061 ac_res=$ac_cv_search_ldexp
9062 if test "$ac_res" != no; then :
9063   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9064
9065 fi
9066
9067 LDEXP_LIB="$LIBS"
9068 LIBS="$save_LIBS"
9069
9070
9071 # Use <inttypes.h> only if it exists,
9072 # doesn't clash with <sys/types.h>, and declares intmax_t.
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9074 $as_echo_n "checking for inttypes.h... " >&6; }
9075 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h.  */
9080 #include <sys/types.h>
9081 #include <inttypes.h>
9082 int
9083 main ()
9084 {
9085 intmax_t i = -1;
9086   ;
9087   return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"; then :
9091   gcc_cv_header_inttypes_h=yes
9092 else
9093   gcc_cv_header_inttypes_h=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 fi
9097
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9099 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9100 if test $gcc_cv_header_inttypes_h = yes; then
9101
9102 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9103
9104 fi
9105
9106
9107
9108 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9109         sysconf strsignal getrusage nl_langinfo \
9110         gettimeofday mbstowcs wcswidth mmap setlocale \
9111         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise
9112 do :
9113   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9115 eval as_val=\$$as_ac_var
9116    if test "x$as_val" = x""yes; then :
9117   cat >>confdefs.h <<_ACEOF
9118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9119 _ACEOF
9120
9121 fi
9122 done
9123
9124
9125 if test x$ac_cv_func_mbstowcs = xyes; then
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9127 $as_echo_n "checking whether mbstowcs works... " >&6; }
9128 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9129   $as_echo_n "(cached) " >&6
9130 else
9131       if test "$cross_compiling" = yes; then :
9132   gcc_cv_func_mbstowcs_works=yes
9133 else
9134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h.  */
9136 #include <stdlib.h>
9137 int main()
9138 {
9139   mbstowcs(0, "", 0);
9140   return 0;
9141 }
9142 _ACEOF
9143 if ac_fn_c_try_run "$LINENO"; then :
9144   gcc_cv_func_mbstowcs_works=yes
9145 else
9146   gcc_cv_func_mbstowcs_works=no
9147 fi
9148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9149   conftest.$ac_objext conftest.beam conftest.$ac_ext
9150 fi
9151
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9154 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9155   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9156
9157 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9158
9159   fi
9160 fi
9161
9162 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9163 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9164
9165 else
9166
9167 cat >>confdefs.h <<_ACEOF
9168 #define ssize_t int
9169 _ACEOF
9170
9171 fi
9172
9173 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9174 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9175
9176 else
9177
9178 cat >>confdefs.h <<_ACEOF
9179 #define caddr_t char *
9180 _ACEOF
9181
9182 fi
9183
9184
9185
9186 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9187 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9188   gcc_header_sys_mman_h=yes
9189 else
9190   gcc_header_sys_mman_h=no
9191 fi
9192
9193 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9194 if test "x$ac_cv_func_mmap" = x""yes; then :
9195   gcc_func_mmap=yes
9196 else
9197   gcc_func_mmap=no
9198 fi
9199
9200 if test "$gcc_header_sys_mman_h" != yes \
9201  || test "$gcc_func_mmap" != yes; then
9202    gcc_cv_func_mmap_file=no
9203    gcc_cv_func_mmap_dev_zero=no
9204    gcc_cv_func_mmap_anon=no
9205 else
9206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9207 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9208 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9209   $as_echo_n "(cached) " >&6
9210 else
9211   # Add a system to this blacklist if
9212    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9213    # memory area containing the same data that you'd get if you applied
9214    # read() to the same fd.  The only system known to have a problem here
9215    # is VMS, where text files have record structure.
9216    case "$host_os" in
9217      vms* | ultrix*)
9218         gcc_cv_func_mmap_file=no ;;
9219      *)
9220         gcc_cv_func_mmap_file=yes;;
9221    esac
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9224 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9226 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9227 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9228   $as_echo_n "(cached) " >&6
9229 else
9230   # Add a system to this blacklist if it has mmap() but /dev/zero
9231    # does not exist, or if mmapping /dev/zero does not give anonymous
9232    # zeroed pages with both the following properties:
9233    # 1. If you map N consecutive pages in with one call, and then
9234    #    unmap any subset of those pages, the pages that were not
9235    #    explicitly unmapped remain accessible.
9236    # 2. If you map two adjacent blocks of memory and then unmap them
9237    #    both at once, they must both go away.
9238    # Systems known to be in this category are Windows (all variants),
9239    # VMS, and Darwin.
9240    case "$host_os" in
9241      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9242         gcc_cv_func_mmap_dev_zero=no ;;
9243      *)
9244         gcc_cv_func_mmap_dev_zero=yes;;
9245    esac
9246 fi
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9248 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9249
9250    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9251    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9252 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9253 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h.  */
9258 #include <sys/types.h>
9259 #include <sys/mman.h>
9260 #include <unistd.h>
9261
9262 #ifndef MAP_ANONYMOUS
9263 #define MAP_ANONYMOUS MAP_ANON
9264 #endif
9265
9266 int
9267 main ()
9268 {
9269 int n = MAP_ANONYMOUS;
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_compile "$LINENO"; then :
9275   gcc_cv_decl_map_anon=yes
9276 else
9277   gcc_cv_decl_map_anon=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9282 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9283
9284    if test $gcc_cv_decl_map_anon = no; then
9285      gcc_cv_func_mmap_anon=no
9286    else
9287      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9288 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9289 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9293    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9294    # doesn't give anonymous zeroed pages with the same properties listed
9295    # above for use of /dev/zero.
9296    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9297    case "$host_os" in
9298      vms* | cygwin* | pe | mingw* | sco* | udk* )
9299         gcc_cv_func_mmap_anon=no ;;
9300      *)
9301         gcc_cv_func_mmap_anon=yes;;
9302    esac
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9305 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9306    fi
9307 fi
9308
9309 if test $gcc_cv_func_mmap_file = yes; then
9310
9311 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9312
9313 fi
9314 if test $gcc_cv_func_mmap_dev_zero = yes; then
9315
9316 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9317
9318 fi
9319 if test $gcc_cv_func_mmap_anon = yes; then
9320
9321 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9322
9323 fi
9324
9325
9326 case "${host}" in
9327 *-*-*vms*)
9328   # Under VMS, vfork works very differently than on Unix. The standard test
9329   # won't work, and it isn't easily adaptable. It makes more sense to
9330   # just force it.
9331   ac_cv_func_vfork_works=yes
9332   ;;
9333 esac
9334 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9335 if test "x$ac_cv_type_pid_t" = x""yes; then :
9336
9337 else
9338
9339 cat >>confdefs.h <<_ACEOF
9340 #define pid_t int
9341 _ACEOF
9342
9343 fi
9344
9345 for ac_header in vfork.h
9346 do :
9347   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9348 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9349   cat >>confdefs.h <<_ACEOF
9350 #define HAVE_VFORK_H 1
9351 _ACEOF
9352
9353 fi
9354 done
9355
9356 for ac_func in fork vfork
9357 do :
9358   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9360 eval as_val=\$$as_ac_var
9361    if test "x$as_val" = x""yes; then :
9362   cat >>confdefs.h <<_ACEOF
9363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9364 _ACEOF
9365
9366 fi
9367 done
9368
9369 if test "x$ac_cv_func_fork" = xyes; then
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9371 $as_echo_n "checking for working fork... " >&6; }
9372 if test "${ac_cv_func_fork_works+set}" = set; then :
9373   $as_echo_n "(cached) " >&6
9374 else
9375   if test "$cross_compiling" = yes; then :
9376   ac_cv_func_fork_works=cross
9377 else
9378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h.  */
9380 $ac_includes_default
9381 int
9382 main ()
9383 {
9384
9385           /* By Ruediger Kuhlmann. */
9386           return fork () < 0;
9387
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 if ac_fn_c_try_run "$LINENO"; then :
9393   ac_cv_func_fork_works=yes
9394 else
9395   ac_cv_func_fork_works=no
9396 fi
9397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9398   conftest.$ac_objext conftest.beam conftest.$ac_ext
9399 fi
9400
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9403 $as_echo "$ac_cv_func_fork_works" >&6; }
9404
9405 else
9406   ac_cv_func_fork_works=$ac_cv_func_fork
9407 fi
9408 if test "x$ac_cv_func_fork_works" = xcross; then
9409   case $host in
9410     *-*-amigaos* | *-*-msdosdjgpp*)
9411       # Override, as these systems have only a dummy fork() stub
9412       ac_cv_func_fork_works=no
9413       ;;
9414     *)
9415       ac_cv_func_fork_works=yes
9416       ;;
9417   esac
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9419 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9420 fi
9421 ac_cv_func_vfork_works=$ac_cv_func_vfork
9422 if test "x$ac_cv_func_vfork" = xyes; then
9423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9424 $as_echo_n "checking for working vfork... " >&6; }
9425 if test "${ac_cv_func_vfork_works+set}" = set; then :
9426   $as_echo_n "(cached) " >&6
9427 else
9428   if test "$cross_compiling" = yes; then :
9429   ac_cv_func_vfork_works=cross
9430 else
9431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h.  */
9433 /* Thanks to Paul Eggert for this test.  */
9434 $ac_includes_default
9435 #include <sys/wait.h>
9436 #ifdef HAVE_VFORK_H
9437 # include <vfork.h>
9438 #endif
9439 /* On some sparc systems, changes by the child to local and incoming
9440    argument registers are propagated back to the parent.  The compiler
9441    is told about this with #include <vfork.h>, but some compilers
9442    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9443    static variable whose address is put into a register that is
9444    clobbered by the vfork.  */
9445 static void
9446 #ifdef __cplusplus
9447 sparc_address_test (int arg)
9448 # else
9449 sparc_address_test (arg) int arg;
9450 #endif
9451 {
9452   static pid_t child;
9453   if (!child) {
9454     child = vfork ();
9455     if (child < 0) {
9456       perror ("vfork");
9457       _exit(2);
9458     }
9459     if (!child) {
9460       arg = getpid();
9461       write(-1, "", 0);
9462       _exit (arg);
9463     }
9464   }
9465 }
9466
9467 int
9468 main ()
9469 {
9470   pid_t parent = getpid ();
9471   pid_t child;
9472
9473   sparc_address_test (0);
9474
9475   child = vfork ();
9476
9477   if (child == 0) {
9478     /* Here is another test for sparc vfork register problems.  This
9479        test uses lots of local variables, at least as many local
9480        variables as main has allocated so far including compiler
9481        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9482        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9483        reuse the register of parent for one of the local variables,
9484        since it will think that parent can't possibly be used any more
9485        in this routine.  Assigning to the local variable will thus
9486        munge parent in the parent process.  */
9487     pid_t
9488       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9489       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9490     /* Convince the compiler that p..p7 are live; otherwise, it might
9491        use the same hardware register for all 8 local variables.  */
9492     if (p != p1 || p != p2 || p != p3 || p != p4
9493         || p != p5 || p != p6 || p != p7)
9494       _exit(1);
9495
9496     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9497        from child file descriptors.  If the child closes a descriptor
9498        before it execs or exits, this munges the parent's descriptor
9499        as well.  Test for this by closing stdout in the child.  */
9500     _exit(close(fileno(stdout)) != 0);
9501   } else {
9502     int status;
9503     struct stat st;
9504
9505     while (wait(&status) != child)
9506       ;
9507     return (
9508          /* Was there some problem with vforking?  */
9509          child < 0
9510
9511          /* Did the child fail?  (This shouldn't happen.)  */
9512          || status
9513
9514          /* Did the vfork/compiler bug occur?  */
9515          || parent != getpid()
9516
9517          /* Did the file descriptor bug occur?  */
9518          || fstat(fileno(stdout), &st) != 0
9519          );
9520   }
9521 }
9522 _ACEOF
9523 if ac_fn_c_try_run "$LINENO"; then :
9524   ac_cv_func_vfork_works=yes
9525 else
9526   ac_cv_func_vfork_works=no
9527 fi
9528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9529   conftest.$ac_objext conftest.beam conftest.$ac_ext
9530 fi
9531
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9534 $as_echo "$ac_cv_func_vfork_works" >&6; }
9535
9536 fi;
9537 if test "x$ac_cv_func_fork_works" = xcross; then
9538   ac_cv_func_vfork_works=$ac_cv_func_vfork
9539   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9540 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9541 fi
9542
9543 if test "x$ac_cv_func_vfork_works" = xyes; then
9544
9545 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9546
9547 else
9548
9549 $as_echo "#define vfork fork" >>confdefs.h
9550
9551 fi
9552 if test "x$ac_cv_func_fork_works" = xyes; then
9553
9554 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9555
9556 fi
9557
9558
9559 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9560 # iconv() prototype.
9561
9562       if test "X$prefix" = "XNONE"; then
9563     acl_final_prefix="$ac_default_prefix"
9564   else
9565     acl_final_prefix="$prefix"
9566   fi
9567   if test "X$exec_prefix" = "XNONE"; then
9568     acl_final_exec_prefix='${prefix}'
9569   else
9570     acl_final_exec_prefix="$exec_prefix"
9571   fi
9572   acl_save_prefix="$prefix"
9573   prefix="$acl_final_prefix"
9574   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9575   prefix="$acl_save_prefix"
9576
9577
9578 # Check whether --with-gnu-ld was given.
9579 if test "${with_gnu_ld+set}" = set; then :
9580   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9581 else
9582   with_gnu_ld=no
9583 fi
9584
9585 # Prepare PATH_SEPARATOR.
9586 # The user is always right.
9587 if test "${PATH_SEPARATOR+set}" != set; then
9588   echo "#! /bin/sh" >conf$$.sh
9589   echo  "exit 0"   >>conf$$.sh
9590   chmod +x conf$$.sh
9591   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9592     PATH_SEPARATOR=';'
9593   else
9594     PATH_SEPARATOR=:
9595   fi
9596   rm -f conf$$.sh
9597 fi
9598 ac_prog=ld
9599 if test "$GCC" = yes; then
9600   # Check if gcc -print-prog-name=ld gives a path.
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9602 $as_echo_n "checking for ld used by GCC... " >&6; }
9603   case $host in
9604   *-*-mingw*)
9605     # gcc leaves a trailing carriage return which upsets mingw
9606     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9607   *)
9608     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9609   esac
9610   case $ac_prog in
9611     # Accept absolute paths.
9612     [\\/]* | [A-Za-z]:[\\/]*)
9613       re_direlt='/[^/][^/]*/\.\./'
9614       # Canonicalize the path of ld
9615       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9616       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9617         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9618       done
9619       test -z "$LD" && LD="$ac_prog"
9620       ;;
9621   "")
9622     # If it fails, then pretend we aren't using GCC.
9623     ac_prog=ld
9624     ;;
9625   *)
9626     # If it is relative, then search for the first ld in PATH.
9627     with_gnu_ld=unknown
9628     ;;
9629   esac
9630 elif test "$with_gnu_ld" = yes; then
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9632 $as_echo_n "checking for GNU ld... " >&6; }
9633 else
9634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9635 $as_echo_n "checking for non-GNU ld... " >&6; }
9636 fi
9637 if test "${acl_cv_path_LD+set}" = set; then :
9638   $as_echo_n "(cached) " >&6
9639 else
9640   if test -z "$LD"; then
9641   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9642   for ac_dir in $PATH; do
9643     test -z "$ac_dir" && ac_dir=.
9644     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9645       acl_cv_path_LD="$ac_dir/$ac_prog"
9646       # Check to see if the program is GNU ld.  I'd rather use --version,
9647       # but apparently some GNU ld's only accept -v.
9648       # Break only if it was the GNU/non-GNU ld that we prefer.
9649       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9650         test "$with_gnu_ld" != no && break
9651       else
9652         test "$with_gnu_ld" != yes && break
9653       fi
9654     fi
9655   done
9656   IFS="$ac_save_ifs"
9657 else
9658   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9659 fi
9660 fi
9661
9662 LD="$acl_cv_path_LD"
9663 if test -n "$LD"; then
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9665 $as_echo "$LD" >&6; }
9666 else
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 $as_echo "no" >&6; }
9669 fi
9670 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9672 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9673 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9674   $as_echo_n "(cached) " >&6
9675 else
9676   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9677 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9678   acl_cv_prog_gnu_ld=yes
9679 else
9680   acl_cv_prog_gnu_ld=no
9681 fi
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9684 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9685 with_gnu_ld=$acl_cv_prog_gnu_ld
9686
9687
9688
9689                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9690 $as_echo_n "checking for shared library run path origin... " >&6; }
9691 if test "${acl_cv_rpath+set}" = set; then :
9692   $as_echo_n "(cached) " >&6
9693 else
9694
9695     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9696     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9697     . ./conftest.sh
9698     rm -f ./conftest.sh
9699     acl_cv_rpath=done
9700
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9703 $as_echo "$acl_cv_rpath" >&6; }
9704   wl="$acl_cv_wl"
9705   libext="$acl_cv_libext"
9706   shlibext="$acl_cv_shlibext"
9707   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9708   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9709   hardcode_direct="$acl_cv_hardcode_direct"
9710   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9711     # Check whether --enable-rpath was given.
9712 if test "${enable_rpath+set}" = set; then :
9713   enableval=$enable_rpath; :
9714 else
9715   enable_rpath=yes
9716 fi
9717
9718
9719
9720
9721
9722
9723
9724
9725     use_additional=yes
9726
9727   acl_save_prefix="$prefix"
9728   prefix="$acl_final_prefix"
9729   acl_save_exec_prefix="$exec_prefix"
9730   exec_prefix="$acl_final_exec_prefix"
9731
9732     eval additional_includedir=\"$includedir\"
9733     eval additional_libdir=\"$libdir\"
9734
9735   exec_prefix="$acl_save_exec_prefix"
9736   prefix="$acl_save_prefix"
9737
9738
9739 # Check whether --with-libiconv-prefix was given.
9740 if test "${with_libiconv_prefix+set}" = set; then :
9741   withval=$with_libiconv_prefix;
9742     if test "X$withval" = "Xno"; then
9743       use_additional=no
9744     else
9745       if test "X$withval" = "X"; then
9746
9747   acl_save_prefix="$prefix"
9748   prefix="$acl_final_prefix"
9749   acl_save_exec_prefix="$exec_prefix"
9750   exec_prefix="$acl_final_exec_prefix"
9751
9752           eval additional_includedir=\"$includedir\"
9753           eval additional_libdir=\"$libdir\"
9754
9755   exec_prefix="$acl_save_exec_prefix"
9756   prefix="$acl_save_prefix"
9757
9758       else
9759         additional_includedir="$withval/include"
9760         additional_libdir="$withval/lib"
9761       fi
9762     fi
9763
9764 fi
9765
9766       LIBICONV=
9767   LTLIBICONV=
9768   INCICONV=
9769   rpathdirs=
9770   ltrpathdirs=
9771   names_already_handled=
9772   names_next_round='iconv '
9773   while test -n "$names_next_round"; do
9774     names_this_round="$names_next_round"
9775     names_next_round=
9776     for name in $names_this_round; do
9777       already_handled=
9778       for n in $names_already_handled; do
9779         if test "$n" = "$name"; then
9780           already_handled=yes
9781           break
9782         fi
9783       done
9784       if test -z "$already_handled"; then
9785         names_already_handled="$names_already_handled $name"
9786                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9787         eval value=\"\$HAVE_LIB$uppername\"
9788         if test -n "$value"; then
9789           if test "$value" = yes; then
9790             eval value=\"\$LIB$uppername\"
9791             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9792             eval value=\"\$LTLIB$uppername\"
9793             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9794           else
9795                                     :
9796           fi
9797         else
9798                               found_dir=
9799           found_la=
9800           found_so=
9801           found_a=
9802           if test $use_additional = yes; then
9803             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9804               found_dir="$additional_libdir"
9805               found_so="$additional_libdir/lib$name.$shlibext"
9806               if test -f "$additional_libdir/lib$name.la"; then
9807                 found_la="$additional_libdir/lib$name.la"
9808               fi
9809             else
9810               if test -f "$additional_libdir/lib$name.$libext"; then
9811                 found_dir="$additional_libdir"
9812                 found_a="$additional_libdir/lib$name.$libext"
9813                 if test -f "$additional_libdir/lib$name.la"; then
9814                   found_la="$additional_libdir/lib$name.la"
9815                 fi
9816               fi
9817             fi
9818           fi
9819           if test "X$found_dir" = "X"; then
9820             for x in $LDFLAGS $LTLIBICONV; do
9821
9822   acl_save_prefix="$prefix"
9823   prefix="$acl_final_prefix"
9824   acl_save_exec_prefix="$exec_prefix"
9825   exec_prefix="$acl_final_exec_prefix"
9826   eval x=\"$x\"
9827   exec_prefix="$acl_save_exec_prefix"
9828   prefix="$acl_save_prefix"
9829
9830               case "$x" in
9831                 -L*)
9832                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9833                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9834                     found_dir="$dir"
9835                     found_so="$dir/lib$name.$shlibext"
9836                     if test -f "$dir/lib$name.la"; then
9837                       found_la="$dir/lib$name.la"
9838                     fi
9839                   else
9840                     if test -f "$dir/lib$name.$libext"; then
9841                       found_dir="$dir"
9842                       found_a="$dir/lib$name.$libext"
9843                       if test -f "$dir/lib$name.la"; then
9844                         found_la="$dir/lib$name.la"
9845                       fi
9846                     fi
9847                   fi
9848                   ;;
9849               esac
9850               if test "X$found_dir" != "X"; then
9851                 break
9852               fi
9853             done
9854           fi
9855           if test "X$found_dir" != "X"; then
9856                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9857             if test "X$found_so" != "X"; then
9858                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9859                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9860               else
9861                                                                                 haveit=
9862                 for x in $ltrpathdirs; do
9863                   if test "X$x" = "X$found_dir"; then
9864                     haveit=yes
9865                     break
9866                   fi
9867                 done
9868                 if test -z "$haveit"; then
9869                   ltrpathdirs="$ltrpathdirs $found_dir"
9870                 fi
9871                                 if test "$hardcode_direct" = yes; then
9872                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9873                 else
9874                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9875                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9876                                                             haveit=
9877                     for x in $rpathdirs; do
9878                       if test "X$x" = "X$found_dir"; then
9879                         haveit=yes
9880                         break
9881                       fi
9882                     done
9883                     if test -z "$haveit"; then
9884                       rpathdirs="$rpathdirs $found_dir"
9885                     fi
9886                   else
9887                                                                                 haveit=
9888                     for x in $LDFLAGS $LIBICONV; do
9889
9890   acl_save_prefix="$prefix"
9891   prefix="$acl_final_prefix"
9892   acl_save_exec_prefix="$exec_prefix"
9893   exec_prefix="$acl_final_exec_prefix"
9894   eval x=\"$x\"
9895   exec_prefix="$acl_save_exec_prefix"
9896   prefix="$acl_save_prefix"
9897
9898                       if test "X$x" = "X-L$found_dir"; then
9899                         haveit=yes
9900                         break
9901                       fi
9902                     done
9903                     if test -z "$haveit"; then
9904                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9905                     fi
9906                     if test "$hardcode_minus_L" != no; then
9907                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9908                     else
9909                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9910                     fi
9911                   fi
9912                 fi
9913               fi
9914             else
9915               if test "X$found_a" != "X"; then
9916                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9917               else
9918                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9919               fi
9920             fi
9921                         additional_includedir=
9922             case "$found_dir" in
9923               */lib | */lib/)
9924                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9925                 additional_includedir="$basedir/include"
9926                 ;;
9927             esac
9928             if test "X$additional_includedir" != "X"; then
9929                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9930                 haveit=
9931                 if test "X$additional_includedir" = "X/usr/local/include"; then
9932                   if test -n "$GCC"; then
9933                     case $host_os in
9934                       linux*) haveit=yes;;
9935                     esac
9936                   fi
9937                 fi
9938                 if test -z "$haveit"; then
9939                   for x in $CPPFLAGS $INCICONV; do
9940
9941   acl_save_prefix="$prefix"
9942   prefix="$acl_final_prefix"
9943   acl_save_exec_prefix="$exec_prefix"
9944   exec_prefix="$acl_final_exec_prefix"
9945   eval x=\"$x\"
9946   exec_prefix="$acl_save_exec_prefix"
9947   prefix="$acl_save_prefix"
9948
9949                     if test "X$x" = "X-I$additional_includedir"; then
9950                       haveit=yes
9951                       break
9952                     fi
9953                   done
9954                   if test -z "$haveit"; then
9955                     if test -d "$additional_includedir"; then
9956                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9957                     fi
9958                   fi
9959                 fi
9960               fi
9961             fi
9962                         if test -n "$found_la"; then
9963                                                         save_libdir="$libdir"
9964               case "$found_la" in
9965                 */* | *\\*) . "$found_la" ;;
9966                 *) . "./$found_la" ;;
9967               esac
9968               libdir="$save_libdir"
9969                             for dep in $dependency_libs; do
9970                 case "$dep" in
9971                   -L*)
9972                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9973                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9974                       haveit=
9975                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9976                         if test -n "$GCC"; then
9977                           case $host_os in
9978                             linux*) haveit=yes;;
9979                           esac
9980                         fi
9981                       fi
9982                       if test -z "$haveit"; then
9983                         haveit=
9984                         for x in $LDFLAGS $LIBICONV; do
9985
9986   acl_save_prefix="$prefix"
9987   prefix="$acl_final_prefix"
9988   acl_save_exec_prefix="$exec_prefix"
9989   exec_prefix="$acl_final_exec_prefix"
9990   eval x=\"$x\"
9991   exec_prefix="$acl_save_exec_prefix"
9992   prefix="$acl_save_prefix"
9993
9994                           if test "X$x" = "X-L$additional_libdir"; then
9995                             haveit=yes
9996                             break
9997                           fi
9998                         done
9999                         if test -z "$haveit"; then
10000                           if test -d "$additional_libdir"; then
10001                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10002                           fi
10003                         fi
10004                         haveit=
10005                         for x in $LDFLAGS $LTLIBICONV; do
10006
10007   acl_save_prefix="$prefix"
10008   prefix="$acl_final_prefix"
10009   acl_save_exec_prefix="$exec_prefix"
10010   exec_prefix="$acl_final_exec_prefix"
10011   eval x=\"$x\"
10012   exec_prefix="$acl_save_exec_prefix"
10013   prefix="$acl_save_prefix"
10014
10015                           if test "X$x" = "X-L$additional_libdir"; then
10016                             haveit=yes
10017                             break
10018                           fi
10019                         done
10020                         if test -z "$haveit"; then
10021                           if test -d "$additional_libdir"; then
10022                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10023                           fi
10024                         fi
10025                       fi
10026                     fi
10027                     ;;
10028                   -R*)
10029                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10030                     if test "$enable_rpath" != no; then
10031                                                                   haveit=
10032                       for x in $rpathdirs; do
10033                         if test "X$x" = "X$dir"; then
10034                           haveit=yes
10035                           break
10036                         fi
10037                       done
10038                       if test -z "$haveit"; then
10039                         rpathdirs="$rpathdirs $dir"
10040                       fi
10041                                                                   haveit=
10042                       for x in $ltrpathdirs; do
10043                         if test "X$x" = "X$dir"; then
10044                           haveit=yes
10045                           break
10046                         fi
10047                       done
10048                       if test -z "$haveit"; then
10049                         ltrpathdirs="$ltrpathdirs $dir"
10050                       fi
10051                     fi
10052                     ;;
10053                   -l*)
10054                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10055                     ;;
10056                   *.la)
10057                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10058                     ;;
10059                   *)
10060                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10061                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10062                     ;;
10063                 esac
10064               done
10065             fi
10066           else
10067                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10068             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10069           fi
10070         fi
10071       fi
10072     done
10073   done
10074   if test "X$rpathdirs" != "X"; then
10075     if test -n "$hardcode_libdir_separator"; then
10076                         alldirs=
10077       for found_dir in $rpathdirs; do
10078         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10079       done
10080             acl_save_libdir="$libdir"
10081       libdir="$alldirs"
10082       eval flag=\"$hardcode_libdir_flag_spec\"
10083       libdir="$acl_save_libdir"
10084       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10085     else
10086             for found_dir in $rpathdirs; do
10087         acl_save_libdir="$libdir"
10088         libdir="$found_dir"
10089         eval flag=\"$hardcode_libdir_flag_spec\"
10090         libdir="$acl_save_libdir"
10091         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10092       done
10093     fi
10094   fi
10095   if test "X$ltrpathdirs" != "X"; then
10096             for found_dir in $ltrpathdirs; do
10097       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10098     done
10099   fi
10100
10101
10102 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10103   ac_ext=cpp
10104 ac_cpp='$CXXCPP $CPPFLAGS'
10105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10108
10109
10110
10111
10112
10113
10114           am_save_CPPFLAGS="$CPPFLAGS"
10115
10116   for element in $INCICONV; do
10117     haveit=
10118     for x in $CPPFLAGS; do
10119
10120   acl_save_prefix="$prefix"
10121   prefix="$acl_final_prefix"
10122   acl_save_exec_prefix="$exec_prefix"
10123   exec_prefix="$acl_final_exec_prefix"
10124   eval x=\"$x\"
10125   exec_prefix="$acl_save_exec_prefix"
10126   prefix="$acl_save_prefix"
10127
10128       if test "X$x" = "X$element"; then
10129         haveit=yes
10130         break
10131       fi
10132     done
10133     if test -z "$haveit"; then
10134       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10135     fi
10136   done
10137
10138
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10140 $as_echo_n "checking for iconv... " >&6; }
10141 if test "${am_cv_func_iconv+set}" = set; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144
10145     am_cv_func_iconv="no, consider installing GNU libiconv"
10146     am_cv_lib_iconv=no
10147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h.  */
10149 #include <stdlib.h>
10150 #include <iconv.h>
10151 int
10152 main ()
10153 {
10154 iconv_t cd = iconv_open("","");
10155        iconv(cd,NULL,NULL,NULL,NULL);
10156        iconv_close(cd);
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_cxx_try_link "$LINENO"; then :
10162   am_cv_func_iconv=yes
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165     conftest$ac_exeext conftest.$ac_ext
10166     if test "$am_cv_func_iconv" != yes; then
10167       am_save_LIBS="$LIBS"
10168       LIBS="$LIBS $LIBICONV"
10169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h.  */
10171 #include <stdlib.h>
10172 #include <iconv.h>
10173 int
10174 main ()
10175 {
10176 iconv_t cd = iconv_open("","");
10177          iconv(cd,NULL,NULL,NULL,NULL);
10178          iconv_close(cd);
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_cxx_try_link "$LINENO"; then :
10184   am_cv_lib_iconv=yes
10185         am_cv_func_iconv=yes
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext \
10188     conftest$ac_exeext conftest.$ac_ext
10189       LIBS="$am_save_LIBS"
10190     fi
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10194 $as_echo "$am_cv_func_iconv" >&6; }
10195   if test "$am_cv_func_iconv" = yes; then
10196
10197 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10198
10199   fi
10200   if test "$am_cv_lib_iconv" = yes; then
10201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10202 $as_echo_n "checking how to link with libiconv... " >&6; }
10203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10204 $as_echo "$LIBICONV" >&6; }
10205   else
10206             CPPFLAGS="$am_save_CPPFLAGS"
10207     LIBICONV=
10208     LTLIBICONV=
10209   fi
10210
10211
10212
10213   if test "$am_cv_func_iconv" = yes; then
10214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10215 $as_echo_n "checking for iconv declaration... " >&6; }
10216     if test "${am_cv_proto_iconv+set}" = set; then :
10217   $as_echo_n "(cached) " >&6
10218 else
10219
10220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h.  */
10222
10223 #include <stdlib.h>
10224 #include <iconv.h>
10225 extern
10226 #ifdef __cplusplus
10227 "C"
10228 #endif
10229 #if defined(__STDC__) || defined(__cplusplus)
10230 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10231 #else
10232 size_t iconv();
10233 #endif
10234
10235 int
10236 main ()
10237 {
10238
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 if ac_fn_cxx_try_compile "$LINENO"; then :
10244   am_cv_proto_iconv_arg1=""
10245 else
10246   am_cv_proto_iconv_arg1="const"
10247 fi
10248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10250 fi
10251
10252     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10254          }$am_cv_proto_iconv" >&5
10255 $as_echo "${ac_t:-
10256          }$am_cv_proto_iconv" >&6; }
10257
10258 cat >>confdefs.h <<_ACEOF
10259 #define ICONV_CONST $am_cv_proto_iconv_arg1
10260 _ACEOF
10261
10262   fi
10263
10264    ac_ext=c
10265 ac_cpp='$CPP $CPPFLAGS'
10266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10269
10270 else
10271
10272
10273
10274
10275
10276           am_save_CPPFLAGS="$CPPFLAGS"
10277
10278   for element in $INCICONV; do
10279     haveit=
10280     for x in $CPPFLAGS; do
10281
10282   acl_save_prefix="$prefix"
10283   prefix="$acl_final_prefix"
10284   acl_save_exec_prefix="$exec_prefix"
10285   exec_prefix="$acl_final_exec_prefix"
10286   eval x=\"$x\"
10287   exec_prefix="$acl_save_exec_prefix"
10288   prefix="$acl_save_prefix"
10289
10290       if test "X$x" = "X$element"; then
10291         haveit=yes
10292         break
10293       fi
10294     done
10295     if test -z "$haveit"; then
10296       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10297     fi
10298   done
10299
10300
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10302 $as_echo_n "checking for iconv... " >&6; }
10303 if test "${am_cv_func_iconv+set}" = set; then :
10304   $as_echo_n "(cached) " >&6
10305 else
10306
10307     am_cv_func_iconv="no, consider installing GNU libiconv"
10308     am_cv_lib_iconv=no
10309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h.  */
10311 #include <stdlib.h>
10312 #include <iconv.h>
10313 int
10314 main ()
10315 {
10316 iconv_t cd = iconv_open("","");
10317        iconv(cd,NULL,NULL,NULL,NULL);
10318        iconv_close(cd);
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324   am_cv_func_iconv=yes
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327     conftest$ac_exeext conftest.$ac_ext
10328     if test "$am_cv_func_iconv" != yes; then
10329       am_save_LIBS="$LIBS"
10330       LIBS="$LIBS $LIBICONV"
10331       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h.  */
10333 #include <stdlib.h>
10334 #include <iconv.h>
10335 int
10336 main ()
10337 {
10338 iconv_t cd = iconv_open("","");
10339          iconv(cd,NULL,NULL,NULL,NULL);
10340          iconv_close(cd);
10341   ;
10342   return 0;
10343 }
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346   am_cv_lib_iconv=yes
10347         am_cv_func_iconv=yes
10348 fi
10349 rm -f core conftest.err conftest.$ac_objext \
10350     conftest$ac_exeext conftest.$ac_ext
10351       LIBS="$am_save_LIBS"
10352     fi
10353
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10356 $as_echo "$am_cv_func_iconv" >&6; }
10357   if test "$am_cv_func_iconv" = yes; then
10358
10359 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10360
10361   fi
10362   if test "$am_cv_lib_iconv" = yes; then
10363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10364 $as_echo_n "checking how to link with libiconv... " >&6; }
10365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10366 $as_echo "$LIBICONV" >&6; }
10367   else
10368             CPPFLAGS="$am_save_CPPFLAGS"
10369     LIBICONV=
10370     LTLIBICONV=
10371   fi
10372
10373
10374
10375   if test "$am_cv_func_iconv" = yes; then
10376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10377 $as_echo_n "checking for iconv declaration... " >&6; }
10378     if test "${am_cv_proto_iconv+set}" = set; then :
10379   $as_echo_n "(cached) " >&6
10380 else
10381
10382       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h.  */
10384
10385 #include <stdlib.h>
10386 #include <iconv.h>
10387 extern
10388 #ifdef __cplusplus
10389 "C"
10390 #endif
10391 #if defined(__STDC__) || defined(__cplusplus)
10392 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10393 #else
10394 size_t iconv();
10395 #endif
10396
10397 int
10398 main ()
10399 {
10400
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406   am_cv_proto_iconv_arg1=""
10407 else
10408   am_cv_proto_iconv_arg1="const"
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10412 fi
10413
10414     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10416          }$am_cv_proto_iconv" >&5
10417 $as_echo "${ac_t:-
10418          }$am_cv_proto_iconv" >&6; }
10419
10420 cat >>confdefs.h <<_ACEOF
10421 #define ICONV_CONST $am_cv_proto_iconv_arg1
10422 _ACEOF
10423
10424   fi
10425
10426 fi
10427
10428 # Until we have in-tree GNU iconv:
10429 LIBICONV_DEP=
10430
10431
10432
10433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10434 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10435 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10436   $as_echo_n "(cached) " >&6
10437 else
10438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h.  */
10440 #include <locale.h>
10441 int
10442 main ()
10443 {
10444 return LC_MESSAGES
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 if ac_fn_c_try_link "$LINENO"; then :
10450   am_cv_val_LC_MESSAGES=yes
10451 else
10452   am_cv_val_LC_MESSAGES=no
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext \
10455     conftest$ac_exeext conftest.$ac_ext
10456 fi
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10458 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10459   if test $am_cv_val_LC_MESSAGES = yes; then
10460
10461 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10462
10463   fi
10464
10465
10466
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10468 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10469 if test "${am_cv_langinfo_codeset+set}" = set; then :
10470   $as_echo_n "(cached) " >&6
10471 else
10472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h.  */
10474 #include <langinfo.h>
10475 int
10476 main ()
10477 {
10478 char* cs = nl_langinfo(CODESET);
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"; then :
10484   am_cv_langinfo_codeset=yes
10485 else
10486   am_cv_langinfo_codeset=no
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext \
10489     conftest$ac_exeext conftest.$ac_ext
10490
10491 fi
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10493 $as_echo "$am_cv_langinfo_codeset" >&6; }
10494   if test $am_cv_langinfo_codeset = yes; then
10495
10496 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10497
10498   fi
10499
10500
10501 # We will need to find libiberty.h and ansidecl.h
10502 saved_CFLAGS="$CFLAGS"
10503 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10504 saved_CXXFLAGS="$CXXFLAGS"
10505 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10506 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10507         strsignal strstr stpcpy strverscmp \
10508         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10509         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
10510 do
10511   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10513 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10514 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10515   $as_echo_n "(cached) " >&6
10516 else
10517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h.  */
10519 #undef $ac_tr_decl
10520 #define $ac_tr_decl 1
10521
10522 #include "ansidecl.h"
10523 #include "system.h"
10524
10525 int
10526 main ()
10527 {
10528 #ifndef $ac_func
10529 char *(*pfn) = (char *(*)) $ac_func ;
10530 #endif
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 if ac_fn_c_try_compile "$LINENO"; then :
10536   eval "gcc_cv_have_decl_$ac_func=yes"
10537 else
10538   eval "gcc_cv_have_decl_$ac_func=no"
10539 fi
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 fi
10542
10543 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10546 #define $ac_tr_decl 1
10547 _ACEOF
10548
10549 else
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10552 #define $ac_tr_decl 0
10553 _ACEOF
10554
10555 fi
10556
10557 done
10558
10559
10560 for ac_func in getrlimit setrlimit getrusage
10561 do
10562   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10564 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10565 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10566   $as_echo_n "(cached) " >&6
10567 else
10568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h.  */
10570 #undef $ac_tr_decl
10571 #define $ac_tr_decl 1
10572
10573 #include "ansidecl.h"
10574 #include "system.h"
10575 #ifdef HAVE_SYS_RESOURCE_H
10576 #include <sys/resource.h>
10577 #endif
10578
10579
10580 int
10581 main ()
10582 {
10583 #ifndef $ac_func
10584 char *(*pfn) = (char *(*)) $ac_func ;
10585 #endif
10586   ;
10587   return 0;
10588 }
10589 _ACEOF
10590 if ac_fn_c_try_compile "$LINENO"; then :
10591   eval "gcc_cv_have_decl_$ac_func=yes"
10592 else
10593   eval "gcc_cv_have_decl_$ac_func=no"
10594 fi
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 fi
10597
10598 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10601 #define $ac_tr_decl 1
10602 _ACEOF
10603
10604 else
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10607 #define $ac_tr_decl 0
10608 _ACEOF
10609
10610 fi
10611
10612 done
10613
10614
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h.  */
10617
10618 #include "ansidecl.h"
10619 #include "system.h"
10620 #ifdef HAVE_SYS_RESOURCE_H
10621 #include <sys/resource.h>
10622 #endif
10623
10624 int
10625 main ()
10626 {
10627 rlim_t l = 0;
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 if ac_fn_c_try_compile "$LINENO"; then :
10633
10634 else
10635
10636 $as_echo "#define rlim_t long" >>confdefs.h
10637
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640
10641 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10642 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10643 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10644 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10645 for ac_func in ldgetname
10646 do
10647   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10649 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10650 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10651   $as_echo_n "(cached) " >&6
10652 else
10653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h.  */
10655 #undef $ac_tr_decl
10656 #define $ac_tr_decl 1
10657
10658 #include "ansidecl.h"
10659 #include "system.h"
10660 #ifdef HAVE_LDFCN_H
10661 #undef FREAD
10662 #undef FWRITE
10663 #include <ldfcn.h>
10664 #endif
10665
10666
10667 int
10668 main ()
10669 {
10670 #ifndef $ac_func
10671 char *(*pfn) = (char *(*)) $ac_func ;
10672 #endif
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 if ac_fn_c_try_compile "$LINENO"; then :
10678   eval "gcc_cv_have_decl_$ac_func=yes"
10679 else
10680   eval "gcc_cv_have_decl_$ac_func=no"
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 fi
10684
10685 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10688 #define $ac_tr_decl 1
10689 _ACEOF
10690
10691 else
10692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10694 #define $ac_tr_decl 0
10695 _ACEOF
10696
10697 fi
10698
10699 done
10700
10701
10702 for ac_func in times
10703 do
10704   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10706 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10707 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10708   $as_echo_n "(cached) " >&6
10709 else
10710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h.  */
10712 #undef $ac_tr_decl
10713 #define $ac_tr_decl 1
10714
10715 #include "ansidecl.h"
10716 #include "system.h"
10717 #ifdef HAVE_SYS_TIMES_H
10718 #include <sys/times.h>
10719 #endif
10720
10721
10722 int
10723 main ()
10724 {
10725 #ifndef $ac_func
10726 char *(*pfn) = (char *(*)) $ac_func ;
10727 #endif
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_compile "$LINENO"; then :
10733   eval "gcc_cv_have_decl_$ac_func=yes"
10734 else
10735   eval "gcc_cv_have_decl_$ac_func=no"
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 fi
10739
10740 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10743 #define $ac_tr_decl 1
10744 _ACEOF
10745
10746 else
10747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10749 #define $ac_tr_decl 0
10750 _ACEOF
10751
10752 fi
10753
10754 done
10755
10756
10757 for ac_func in sigaltstack
10758 do
10759   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10761 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10762 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10763   $as_echo_n "(cached) " >&6
10764 else
10765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h.  */
10767 #undef $ac_tr_decl
10768 #define $ac_tr_decl 1
10769
10770 #include "ansidecl.h"
10771 #include "system.h"
10772 #include <signal.h>
10773
10774
10775 int
10776 main ()
10777 {
10778 #ifndef $ac_func
10779 char *(*pfn) = (char *(*)) $ac_func ;
10780 #endif
10781   ;
10782   return 0;
10783 }
10784 _ACEOF
10785 if ac_fn_c_try_compile "$LINENO"; then :
10786   eval "gcc_cv_have_decl_$ac_func=yes"
10787 else
10788   eval "gcc_cv_have_decl_$ac_func=no"
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 fi
10792
10793 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10796 #define $ac_tr_decl 1
10797 _ACEOF
10798
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10802 #define $ac_tr_decl 0
10803 _ACEOF
10804
10805 fi
10806
10807 done
10808
10809
10810 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10811 # prototype.
10812 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10813   ac_ext=cpp
10814 ac_cpp='$CXXCPP $CPPFLAGS'
10815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10818
10819    for ac_func in madvise
10820 do
10821   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10823 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10824 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10825   $as_echo_n "(cached) " >&6
10826 else
10827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829 #undef $ac_tr_decl
10830 #define $ac_tr_decl 1
10831
10832      #include "ansidecl.h"
10833      #include "system.h"
10834
10835
10836 int
10837 main ()
10838 {
10839 #ifndef $ac_func
10840 char *(*pfn) = (char *(*)) $ac_func ;
10841 #endif
10842   ;
10843   return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_cxx_try_compile "$LINENO"; then :
10847   eval "gcc_cv_have_decl_$ac_func=yes"
10848 else
10849   eval "gcc_cv_have_decl_$ac_func=no"
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 fi
10853
10854 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10856 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10857 #define $ac_tr_decl 1
10858 _ACEOF
10859
10860 else
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10863 #define $ac_tr_decl 0
10864 _ACEOF
10865
10866 fi
10867
10868 done
10869
10870    ac_ext=c
10871 ac_cpp='$CPP $CPPFLAGS'
10872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10875
10876 else
10877   for ac_func in madvise
10878 do
10879   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10881 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10882 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10883   $as_echo_n "(cached) " >&6
10884 else
10885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h.  */
10887 #undef $ac_tr_decl
10888 #define $ac_tr_decl 1
10889
10890      #include "ansidecl.h"
10891      #include "system.h"
10892
10893
10894 int
10895 main ()
10896 {
10897 #ifndef $ac_func
10898 char *(*pfn) = (char *(*)) $ac_func ;
10899 #endif
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_compile "$LINENO"; then :
10905   eval "gcc_cv_have_decl_$ac_func=yes"
10906 else
10907   eval "gcc_cv_have_decl_$ac_func=no"
10908 fi
10909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910 fi
10911
10912 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10914 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10915 #define $ac_tr_decl 1
10916 _ACEOF
10917
10918 else
10919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10921 #define $ac_tr_decl 0
10922 _ACEOF
10923
10924 fi
10925
10926 done
10927
10928
10929 fi
10930
10931 # More time-related stuff.
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10933 $as_echo_n "checking for struct tms... " >&6; }
10934 if test "${ac_cv_struct_tms+set}" = set; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h.  */
10940
10941 #include "ansidecl.h"
10942 #include "system.h"
10943 #ifdef HAVE_SYS_TIMES_H
10944 #include <sys/times.h>
10945 #endif
10946
10947 int
10948 main ()
10949 {
10950 struct tms tms;
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956   ac_cv_struct_tms=yes
10957 else
10958   ac_cv_struct_tms=no
10959 fi
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10963 $as_echo "$ac_cv_struct_tms" >&6; }
10964 if test $ac_cv_struct_tms = yes; then
10965
10966 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10967
10968 fi
10969
10970 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10971 # revisit after autoconf 2.50.
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10973 $as_echo_n "checking for clock_t... " >&6; }
10974 if test "${gcc_cv_type_clock_t+set}" = set; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h.  */
10980
10981 #include "ansidecl.h"
10982 #include "system.h"
10983
10984 int
10985 main ()
10986 {
10987 clock_t x;
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_c_try_compile "$LINENO"; then :
10993   gcc_cv_type_clock_t=yes
10994 else
10995   gcc_cv_type_clock_t=no
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11000 $as_echo "$gcc_cv_type_clock_t" >&6; }
11001 if test $gcc_cv_type_clock_t = yes; then
11002
11003 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11004
11005 fi
11006
11007 # Check if F_SETLKW is supported by fcntl.
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11009 $as_echo_n "checking for F_SETLKW... " >&6; }
11010 if test "${ac_cv_f_setlkw+set}" = set; then :
11011   $as_echo_n "(cached) " >&6
11012 else
11013
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h.  */
11016
11017 #include <fcntl.h>
11018 int
11019 main ()
11020 {
11021
11022 struct flock fl;
11023 fl.l_whence = 0;
11024 fl.l_start = 0;
11025 fl.l_len = 0;
11026 fl.l_pid = 0;
11027 return fcntl (1, F_SETLKW, &fl);
11028   ;
11029   return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_compile "$LINENO"; then :
11033   ac_cv_f_setlkw=yes
11034 else
11035   ac_cv_f_setlkw=no
11036 fi
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 fi
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11040 $as_echo "$ac_cv_f_setlkw" >&6; }
11041 if test $ac_cv_f_setlkw = yes; then
11042
11043 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11044
11045 fi
11046
11047 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11048 CFLAGS="$saved_CFLAGS"
11049 CXXFLAGS="$saved_CXXFLAGS"
11050
11051 # mkdir takes a single argument on some systems.
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11053 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11054 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h.  */
11059
11060 #include <sys/types.h>
11061 #ifdef HAVE_SYS_STAT_H
11062 # include <sys/stat.h>
11063 #endif
11064 #ifdef HAVE_UNISTD_H
11065 # include <unistd.h>
11066 #endif
11067 #ifdef HAVE_DIRECT_H
11068 # include <direct.h>
11069 #endif
11070 int
11071 main ()
11072 {
11073 mkdir ("foo", 0);
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_c_try_compile "$LINENO"; then :
11079   gcc_cv_mkdir_takes_one_arg=no
11080 else
11081   gcc_cv_mkdir_takes_one_arg=yes
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11086 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11087 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11088
11089 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11090
11091 fi
11092
11093
11094 # File extensions
11095 manext='.1'
11096 objext='.o'
11097
11098
11099
11100 # With Setjmp/Longjmp based exception handling.
11101 # Check whether --enable-sjlj-exceptions was given.
11102 if test "${enable_sjlj_exceptions+set}" = set; then :
11103   enableval=$enable_sjlj_exceptions; case $target in
11104   *-*-hpux10*)
11105     if test $enableval != yes; then
11106       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11107 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11108       enableval=yes
11109     fi
11110     ;;
11111 esac
11112 force_sjlj_exceptions=yes
11113 else
11114   case $target in
11115   *-*-hpux10*)
11116     force_sjlj_exceptions=yes
11117     enableval=yes
11118     ;;
11119   *)
11120     force_sjlj_exceptions=no
11121     ;;
11122 esac
11123 fi
11124
11125 if test $force_sjlj_exceptions = yes; then
11126   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11127
11128 cat >>confdefs.h <<_ACEOF
11129 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11130 _ACEOF
11131
11132 fi
11133
11134 # --------------------------------------------------------
11135 # Build, host, and target specific configuration fragments
11136 # --------------------------------------------------------
11137
11138 # Collect build-machine-specific information.
11139 . ${srcdir}/config.build
11140
11141 # Collect host-machine-specific information.
11142 . ${srcdir}/config.host
11143
11144 target_gtfiles=
11145
11146 # Collect target-machine-specific information.
11147 . ${srcdir}/config.gcc
11148
11149 extra_objs="${host_extra_objs} ${extra_objs}"
11150 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11151
11152 # Default the target-machine variables that were not explicitly set.
11153 if test x"$tm_file" = x
11154 then tm_file=$cpu_type/$cpu_type.h; fi
11155
11156 if test x"$extra_headers" = x
11157 then extra_headers=; fi
11158
11159 if test x$md_file = x
11160 then md_file=$cpu_type/$cpu_type.md; fi
11161
11162 if test x$out_file = x
11163 then out_file=$cpu_type/$cpu_type.c; fi
11164
11165 if test x"$tmake_file" = x
11166 then tmake_file=$cpu_type/t-$cpu_type
11167 fi
11168
11169 # Support --enable-initfini-array.
11170 if test x$enable_initfini_array != xno; then
11171   tm_file="${tm_file} initfini-array.h"
11172 fi
11173
11174 if test x"$dwarf2" = xyes
11175 then tm_file="$tm_file tm-dwarf2.h"
11176 fi
11177
11178 # Say what files are being used for the output code and MD file.
11179 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11180 echo "Using \`$srcdir/config/$md_file' as machine description file."
11181
11182 # If any of the xm_file variables contain nonexistent files, warn
11183 # about them and drop them.
11184
11185 bx=
11186 for x in $build_xm_file; do
11187   if    test -f $srcdir/config/$x
11188   then      bx="$bx $x"
11189   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11190 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11191   fi
11192 done
11193 build_xm_file="$bx"
11194
11195 hx=
11196 for x in $host_xm_file; do
11197   if    test -f $srcdir/config/$x
11198   then      hx="$hx $x"
11199   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11200 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11201   fi
11202 done
11203 host_xm_file="$hx"
11204
11205 tx=
11206 for x in $xm_file; do
11207   if    test -f $srcdir/config/$x
11208   then      tx="$tx $x"
11209   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11210 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11211   fi
11212 done
11213 xm_file="$tx"
11214
11215 count=a
11216 for f in $tm_file; do
11217         count=${count}x
11218 done
11219 if test $count = ax; then
11220         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11221 else
11222         echo "Using the following target machine macro files:"
11223         for f in $tm_file; do
11224                 echo "  $srcdir/config/$f"
11225         done
11226 fi
11227
11228 if test x$need_64bit_hwint = xyes; then
11229
11230 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11231
11232 fi
11233
11234 if test x$use_long_long_for_widest_fast_int = xyes; then
11235
11236 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11237
11238 fi
11239
11240 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11241
11242 cat >>confdefs.h <<_ACEOF
11243 #define HAVE_GNU_LD $gnu_ld_bool
11244 _ACEOF
11245
11246
11247 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11248
11249 cat >>confdefs.h <<_ACEOF
11250 #define HAVE_GNU_AS $gnu_as_bool
11251 _ACEOF
11252
11253
11254 count=a
11255 for f in $host_xm_file; do
11256         count=${count}x
11257 done
11258 if test $count = a; then
11259         :
11260 elif test $count = ax; then
11261         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11262 else
11263         echo "Using the following host machine macro files:"
11264         for f in $host_xm_file; do
11265                 echo "  $srcdir/config/$f"
11266         done
11267 fi
11268 echo "Using ${out_host_hook_obj} for host machine hooks."
11269
11270 if test "$host_xm_file" != "$build_xm_file"; then
11271         count=a
11272         for f in $build_xm_file; do
11273                 count=${count}x
11274         done
11275         if test $count = a; then
11276                 :
11277         elif test $count = ax; then
11278                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11279         else
11280                 echo "Using the following build machine macro files:"
11281                 for f in $build_xm_file; do
11282                         echo "  $srcdir/config/$f"
11283                 done
11284         fi
11285 fi
11286
11287 if test -n "$configured_native_system_header_dir"; then
11288   native_system_header_dir=$configured_native_system_header_dir
11289 fi
11290 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11291
11292
11293 case ${host} in
11294   powerpc*-*-darwin*)
11295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11296 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11297 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h.  */
11302
11303 #include <sys/cdefs.h>
11304 #include <sys/signal.h>
11305 #include <ucontext.h>
11306 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11307
11308 _ACEOF
11309 if ac_fn_c_try_compile "$LINENO"; then :
11310   gcc_cv_mcontext_underscores=no
11311 else
11312   gcc_cv_mcontext_underscores=yes
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11317 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11318       if test $gcc_cv_mcontext_underscores = yes; then
11319
11320 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11321
11322       fi
11323     ;;
11324 esac
11325
11326 # ---------
11327 # Threading
11328 # ---------
11329
11330 # Check if a valid thread package
11331 case ${enable_threads} in
11332   "" | no)
11333     # No threads
11334     target_thread_file='single'
11335     ;;
11336   yes)
11337     # default
11338     target_thread_file='single'
11339     ;;
11340   aix | dce | lynx | mipssde | posix | rtems | \
11341   single | tpf | vxworks | win32)
11342     target_thread_file=${enable_threads}
11343     ;;
11344   *)
11345     echo "${enable_threads} is an unknown thread package" 1>&2
11346     exit 1
11347     ;;
11348 esac
11349
11350 if test x${thread_file} = x; then
11351   # No thread file set by target-specific clauses in config.gcc,
11352   # so use file chosen by default logic above
11353   thread_file=${target_thread_file}
11354 fi
11355
11356 # --------
11357 # UNSORTED
11358 # --------
11359
11360 use_cxa_atexit=no
11361 if test x$enable___cxa_atexit = xyes || \
11362    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11363   if test x$host = x$target; then
11364     case $host in
11365       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11366       # keyed to flag_use_cxa_atexit
11367       *-*-mingw32*)
11368         use_cxa_atexit=yes
11369         ;;
11370       *)
11371         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11372 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11373   use_cxa_atexit=yes
11374 else
11375   echo "__cxa_atexit can't be enabled on this target"
11376 fi
11377
11378         ;;
11379     esac
11380   else
11381     # We can't check for __cxa_atexit when building a cross, so assume
11382     # it is available
11383     use_cxa_atexit=yes
11384   fi
11385   if test x$use_cxa_atexit = xyes; then
11386
11387 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11388
11389   fi
11390 fi
11391
11392 # Look for a file containing extra machine modes.
11393 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11394   extra_modes_file='$(srcdir)'/config/${extra_modes}
11395
11396
11397 cat >>confdefs.h <<_ACEOF
11398 #define EXTRA_MODES_FILE "config/$extra_modes"
11399 _ACEOF
11400
11401 fi
11402
11403 # Convert extra_options into a form suitable for Makefile use.
11404 extra_opt_files=
11405 all_opt_files=
11406 for f in $extra_options; do
11407   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11408   all_opt_files="$all_opt_files $srcdir/config/$f"
11409 done
11410
11411
11412 # auto-host.h is the file containing items generated by autoconf and is
11413 # the first file included by config.h.
11414 # If host=build, it is correct to have bconfig include auto-host.h
11415 # as well.  If host!=build, we are in error and need to do more
11416 # work to find out the build config parameters.
11417 if test x$host = x$build
11418 then
11419         build_auto=auto-host.h
11420 else
11421         # We create a subdir, then run autoconf in the subdir.
11422         # To prevent recursion we set host and build for the new
11423         # invocation of configure to the build for this invocation
11424         # of configure.
11425         tempdir=build.$$
11426         rm -rf $tempdir
11427         mkdir $tempdir
11428         cd $tempdir
11429         case ${srcdir} in
11430         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11431         *) realsrcdir=../${srcdir};;
11432         esac
11433         saved_CFLAGS="${CFLAGS}"
11434         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11435         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11436         ${realsrcdir}/configure \
11437                 --enable-languages=${enable_languages-all} \
11438                 --target=$target_alias --host=$build_alias --build=$build_alias
11439         CFLAGS="${saved_CFLAGS}"
11440
11441         # We just finished tests for the build machine, so rename
11442         # the file auto-build.h in the gcc directory.
11443         mv auto-host.h ../auto-build.h
11444         cd ..
11445         rm -rf $tempdir
11446         build_auto=auto-build.h
11447 fi
11448
11449
11450 tm_file="${tm_file} defaults.h"
11451 tm_p_file="${tm_p_file} tm-preds.h"
11452 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11453 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11454 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11455 # put this back in temporarily.
11456 xm_file="auto-host.h ansidecl.h ${xm_file}"
11457
11458 # --------
11459 # UNSORTED
11460 # --------
11461
11462 # Compile in configure arguments.
11463 if test -f configargs.h ; then
11464         # Being re-configured.
11465         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11466         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11467 else
11468         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11469 fi
11470
11471 # Double all backslashes and backslash all quotes to turn
11472 # gcc_config_arguments into a C string.
11473 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11474 $gcc_config_arguments
11475 EOF
11476 gcc_config_arguments_str=`cat conftest.out`
11477 rm -f conftest.out
11478
11479 cat > configargs.h <<EOF
11480 /* Generated automatically. */
11481 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11482 static const char thread_model[] = "$thread_file";
11483
11484 static const struct {
11485   const char *name, *value;
11486 } configure_default_options[] = $configure_default_options;
11487 EOF
11488
11489 gcc_BASEVER=`cat $srcdir/BASE-VER`
11490 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11491 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11492 if test -f $srcdir/REVISION ; then
11493         gcc_REVISION=`cat $srcdir/REVISION`
11494 else
11495         gcc_REVISION=""
11496 fi
11497 cat > plugin-version.h <<EOF
11498 #include "configargs.h"
11499
11500 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11501 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11502 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11503 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11504
11505 static char basever[] = "$gcc_BASEVER";
11506 static char datestamp[] = "$gcc_DATESTAMP";
11507 static char devphase[] = "$gcc_DEVPHASE";
11508 static char revision[] = "$gcc_REVISION";
11509
11510 /* FIXME plugins: We should make the version information more precise.
11511    One way to do is to add a checksum. */
11512
11513 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11514                                                 devphase, revision,
11515                                                 configuration_arguments};
11516 EOF
11517
11518 # Internationalization
11519 # If we haven't got the data from the intl directory,
11520 # assume NLS is disabled.
11521 USE_NLS=no
11522 LIBINTL=
11523 LIBINTL_DEP=
11524 INCINTL=
11525 XGETTEXT=
11526 GMSGFMT=
11527 POSUB=
11528
11529 if test -f  ../intl/config.intl; then
11530   .  ../intl/config.intl
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11533 $as_echo_n "checking whether NLS is requested... " >&6; }
11534 if test x"$USE_NLS" != xyes; then
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537 else
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539 $as_echo "yes" >&6; }
11540
11541 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11542
11543
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11545 $as_echo_n "checking for catalogs to be installed... " >&6; }
11546   # Look for .po and .gmo files in the source directory.
11547   CATALOGS=
11548   XLINGUAS=
11549   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11550     # If there aren't any .gmo files the shell will give us the
11551     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11552     # weeded out.
11553     case "$cat" in *\**)
11554       continue;;
11555     esac
11556     # The quadruple backslash is collapsed to a double backslash
11557     # by the backticks, then collapsed again by the double quotes,
11558     # leaving us with one backslash in the sed expression (right
11559     # before the dot that mustn't act as a wildcard).
11560     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11561     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11562     # The user is allowed to set LINGUAS to a list of languages to
11563     # install catalogs for.  If it's empty that means "all of them."
11564     if test "x$LINGUAS" = x; then
11565       CATALOGS="$CATALOGS $cat"
11566       XLINGUAS="$XLINGUAS $lang"
11567     else
11568       case "$LINGUAS" in *$lang*)
11569         CATALOGS="$CATALOGS $cat"
11570         XLINGUAS="$XLINGUAS $lang"
11571         ;;
11572       esac
11573     fi
11574   done
11575   LINGUAS="$XLINGUAS"
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11577 $as_echo "$LINGUAS" >&6; }
11578
11579
11580     DATADIRNAME=share
11581
11582   INSTOBJEXT=.mo
11583
11584   GENCAT=gencat
11585
11586   CATOBJEXT=.gmo
11587
11588 fi
11589
11590 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11591 # -liconv on the link line twice.
11592 case "$LIBINTL" in *$LIBICONV*)
11593         LIBICONV= ;;
11594 esac
11595
11596 # Check whether --enable-secureplt was given.
11597 if test "${enable_secureplt+set}" = set; then :
11598   enableval=$enable_secureplt;
11599 fi
11600
11601
11602 # Check whether --enable-leading-mingw64-underscores was given.
11603 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11604   enableval=$enable_leading_mingw64_underscores;
11605 fi
11606
11607 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11608
11609 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11610
11611 fi
11612
11613 # Check whether --enable-cld was given.
11614 if test "${enable_cld+set}" = set; then :
11615   enableval=$enable_cld;
11616 else
11617   enable_cld=no
11618 fi
11619
11620
11621 # Check whether --enable-frame-pointer was given.
11622 if test "${enable_frame_pointer+set}" = set; then :
11623   enableval=$enable_frame_pointer;
11624 else
11625
11626 case $target_os in
11627 linux* | darwin[8912]*)
11628   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11629   # DWARF2.
11630   enable_frame_pointer=no
11631   ;;
11632 *)
11633   enable_frame_pointer=yes
11634   ;;
11635 esac
11636
11637 fi
11638
11639
11640 # Windows32 Registry support for specifying GCC installation paths.
11641 # Check whether --enable-win32-registry was given.
11642 if test "${enable_win32_registry+set}" = set; then :
11643   enableval=$enable_win32_registry;
11644 fi
11645
11646
11647 case $host_os in
11648   win32 | pe | cygwin* | mingw32* | uwin*)
11649     if test "x$enable_win32_registry" != xno; then
11650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11651 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11652 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   ac_func_search_save_LIBS=$LIBS
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h.  */
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char RegOpenKeyExA ();
11666 int
11667 main ()
11668 {
11669 return RegOpenKeyExA ();
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 for ac_lib in '' advapi32; do
11675   if test -z "$ac_lib"; then
11676     ac_res="none required"
11677   else
11678     ac_res=-l$ac_lib
11679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11680   fi
11681   if ac_fn_c_try_link "$LINENO"; then :
11682   ac_cv_search_RegOpenKeyExA=$ac_res
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext \
11685     conftest$ac_exeext
11686   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11687   break
11688 fi
11689 done
11690 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11691
11692 else
11693   ac_cv_search_RegOpenKeyExA=no
11694 fi
11695 rm conftest.$ac_ext
11696 LIBS=$ac_func_search_save_LIBS
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11699 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11700 ac_res=$ac_cv_search_RegOpenKeyExA
11701 if test "$ac_res" != no; then :
11702   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11703
11704 else
11705   enable_win32_registry=no
11706 fi
11707
11708     fi
11709
11710     if test "x$enable_win32_registry" != xno; then
11711
11712 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11713
11714
11715       if test "x$enable_win32_registry" != xyes \
11716          && test "x$enable_win32_registry" != x; then
11717
11718 cat >>confdefs.h <<_ACEOF
11719 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11720 _ACEOF
11721
11722       fi
11723     fi
11724   ;;
11725 esac
11726
11727 # Get an absolute path to the GCC top-level source directory
11728 holddir=`${PWDCMD-pwd}`
11729 cd $srcdir
11730 topdir=`${PWDCMD-pwd}`
11731 cd $holddir
11732
11733 # Conditionalize the makefile for this host machine.
11734 xmake_file=
11735 for f in ${host_xmake_file}
11736 do
11737         if test -f ${srcdir}/config/$f
11738         then
11739                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11740         fi
11741 done
11742
11743 # Conditionalize the makefile for this target machine.
11744 tmake_file_=
11745 for f in ${tmake_file}
11746 do
11747         if test -f ${srcdir}/config/$f
11748         then
11749                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11750         fi
11751 done
11752 tmake_file="${tmake_file_}"
11753
11754 out_object_file=`basename $out_file .c`.o
11755 common_out_object_file=`basename $common_out_file .c`.o
11756
11757 tm_file_list="options.h"
11758 tm_include_list="options.h insn-constants.h"
11759 for f in $tm_file; do
11760   case $f in
11761     ./* )
11762        f=`echo $f | sed 's/^..//'`
11763        tm_file_list="${tm_file_list} $f"
11764        tm_include_list="${tm_include_list} $f"
11765        ;;
11766     defaults.h )
11767        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11768        tm_include_list="${tm_include_list} $f"
11769        ;;
11770     * )
11771        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11772        tm_include_list="${tm_include_list} config/$f"
11773        ;;
11774   esac
11775 done
11776
11777 tm_p_file_list=
11778 tm_p_include_list=
11779 for f in $tm_p_file; do
11780   case $f in
11781     tm-preds.h )
11782        tm_p_file_list="${tm_p_file_list} $f"
11783        tm_p_include_list="${tm_p_include_list} $f"
11784        ;;
11785     * )
11786        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11787        tm_p_include_list="${tm_p_include_list} config/$f"
11788   esac
11789 done
11790
11791 xm_file_list=
11792 xm_include_list=
11793 for f in $xm_file; do
11794   case $f in
11795     ansidecl.h )
11796        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11797        xm_include_list="${xm_include_list} $f"
11798        ;;
11799     auto-host.h )
11800        xm_file_list="${xm_file_list} $f"
11801        xm_include_list="${xm_include_list} $f"
11802        ;;
11803     * )
11804        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11805        xm_include_list="${xm_include_list} config/$f"
11806        ;;
11807   esac
11808 done
11809
11810 host_xm_file_list=
11811 host_xm_include_list=
11812 for f in $host_xm_file; do
11813   case $f in
11814     ansidecl.h )
11815        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11816        host_xm_include_list="${host_xm_include_list} $f"
11817        ;;
11818     auto-host.h )
11819        host_xm_file_list="${host_xm_file_list} $f"
11820        host_xm_include_list="${host_xm_include_list} $f"
11821        ;;
11822     * )
11823        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11824        host_xm_include_list="${host_xm_include_list} config/$f"
11825        ;;
11826   esac
11827 done
11828
11829 build_xm_file_list=
11830 for f in $build_xm_file; do
11831   case $f in
11832     ansidecl.h )
11833        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11834        build_xm_include_list="${build_xm_include_list} $f"
11835        ;;
11836     auto-build.h | auto-host.h )
11837        build_xm_file_list="${build_xm_file_list} $f"
11838        build_xm_include_list="${build_xm_include_list} $f"
11839        ;;
11840     * )
11841        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11842        build_xm_include_list="${build_xm_include_list} config/$f"
11843        ;;
11844   esac
11845 done
11846
11847 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11848 # cross-compiler which does not use the native headers and libraries.
11849 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11850 CROSS=
11851 ALL=all.internal
11852 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11853
11854 if test "x$with_build_sysroot" != x; then
11855   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11856 else
11857   # This value is used, even on a native system, because
11858   # CROSS_SYSTEM_HEADER_DIR is just
11859   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11860   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11861 fi
11862
11863 if test x$host != x$target
11864 then
11865         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11866         ALL=all.cross
11867         SYSTEM_HEADER_DIR=$build_system_header_dir
11868         case "$host","$target" in
11869         # Darwin crosses can use the host system's libraries and headers,
11870         # because of the fat library support.  Of course, it must be the
11871         # same version of Darwin on both sides.  Allow the user to
11872         # just say --target=foo-darwin without a version number to mean
11873         # "the version on this system".
11874             *-*-darwin*,*-*-darwin*)
11875                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11876                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11877                 if test $hostos = $targetos -o $targetos = darwin ; then
11878                     CROSS=
11879                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11880                     with_headers=yes
11881                 fi
11882                 ;;
11883
11884             i?86-*-*,x86_64-*-* \
11885             | powerpc*-*-*,powerpc64*-*-*)
11886                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11887         esac
11888
11889         case $target in
11890                 *-*-mingw*)
11891                         if test "x$with_headers" = x; then
11892                                 with_headers=yes
11893                         fi
11894                         ;;
11895                 *)
11896                         ;;
11897         esac
11898 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11899         SYSTEM_HEADER_DIR=$build_system_header_dir
11900 fi
11901
11902 # If this is a cross-compiler that does not
11903 # have its own set of headers then define
11904 # inhibit_libc
11905
11906 # If this is using newlib, without having the headers available now,
11907 # then define inhibit_libc in LIBGCC2_CFLAGS.
11908 # This prevents libgcc2 from containing any code which requires libc
11909 # support.
11910 : ${inhibit_libc=false}
11911 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11912        test x$with_newlib = xyes ; } &&
11913      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11914        inhibit_libc=true
11915 fi
11916
11917
11918 # When building gcc with a cross-compiler, we need to adjust things so
11919 # that the generator programs are still built with the native compiler.
11920 # Also, we cannot run fixincludes.
11921
11922 # These are the normal (build=host) settings:
11923 CC_FOR_BUILD='$(CC)'
11924 BUILD_CFLAGS='$(ALL_CFLAGS)'
11925 BUILD_LDFLAGS='$(LDFLAGS)'
11926 STMP_FIXINC=stmp-fixinc
11927
11928 # And these apply if build != host, or we are generating coverage data
11929 if test x$build != x$host || test "x$coverage_flags" != x
11930 then
11931     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11932     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11933 fi
11934
11935 # Expand extra_headers to include complete path.
11936 # This substitutes for lots of t-* files.
11937 extra_headers_list=
11938 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11939 for file in ${extra_headers} ; do
11940   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11941 done
11942
11943 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11944 if test x"$use_gcc_tgmath" = xyes
11945 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11946 fi
11947
11948 # Define collect2 in Makefile.
11949 case $host_can_use_collect2 in
11950   no) collect2= ;;
11951   *) collect2='collect2$(exeext)' ;;
11952 esac
11953
11954
11955 # Add a definition of USE_COLLECT2 if system wants one.
11956 case $use_collect2 in
11957   no) use_collect2= ;;
11958   "") ;;
11959   *)
11960     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11961     xm_defines="${xm_defines} USE_COLLECT2"
11962     case $host_can_use_collect2 in
11963       no)
11964         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11965         ;;
11966     esac
11967     ;;
11968 esac
11969
11970
11971 cat >>confdefs.h <<_ACEOF
11972 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11973 _ACEOF
11974
11975
11976 # ---------------------------
11977 # Assembler & linker features
11978 # ---------------------------
11979
11980 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11981 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11982 # However when ld-new is first executed from the build tree, libtool will
11983 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11984 # to the build tree.  While doing this we need to use the previous-stage
11985 # linker, or we have an infinite loop.  The presence of a shell script as
11986 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11987 # the gcc/collect-ld script.  So we need to know how libtool works, or
11988 # exec-tool will fail.
11989
11990
11991 case `pwd` in
11992   *\ * | *\     *)
11993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11994 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11995 esac
11996
11997
11998
11999 macro_version='2.2.7a'
12000 macro_revision='1.3134'
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014 ltmain="$ac_aux_dir/ltmain.sh"
12015
12016 # Backslashify metacharacters that are still active within
12017 # double-quoted strings.
12018 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12019
12020 # Same as above, but do not quote variable references.
12021 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12022
12023 # Sed substitution to delay expansion of an escaped shell variable in a
12024 # double_quote_subst'ed string.
12025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12026
12027 # Sed substitution to delay expansion of an escaped single quote.
12028 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12029
12030 # Sed substitution to avoid accidental globbing in evaled expressions
12031 no_glob_subst='s/\*/\\\*/g'
12032
12033 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12035 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12036
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12038 $as_echo_n "checking how to print strings... " >&6; }
12039 # Test print first, because it will be a builtin if present.
12040 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12041    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12042   ECHO='print -r --'
12043 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12044   ECHO='printf %s\n'
12045 else
12046   # Use this function as a fallback that always works.
12047   func_fallback_echo ()
12048   {
12049     eval 'cat <<_LTECHO_EOF
12050 $1
12051 _LTECHO_EOF'
12052   }
12053   ECHO='func_fallback_echo'
12054 fi
12055
12056 # func_echo_all arg...
12057 # Invoke $ECHO with all args, space-separated.
12058 func_echo_all ()
12059 {
12060     $ECHO ""
12061 }
12062
12063 case "$ECHO" in
12064   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12065 $as_echo "printf" >&6; } ;;
12066   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12067 $as_echo "print -r" >&6; } ;;
12068   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12069 $as_echo "cat" >&6; } ;;
12070 esac
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12086 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12087 if test "${ac_cv_path_SED+set}" = set; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12091      for ac_i in 1 2 3 4 5 6 7; do
12092        ac_script="$ac_script$as_nl$ac_script"
12093      done
12094      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12095      { ac_script=; unset ac_script;}
12096      if test -z "$SED"; then
12097   ac_path_SED_found=false
12098   # Loop through the user's path and test for each of PROGNAME-LIST
12099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12101 do
12102   IFS=$as_save_IFS
12103   test -z "$as_dir" && as_dir=.
12104     for ac_prog in sed gsed; do
12105     for ac_exec_ext in '' $ac_executable_extensions; do
12106       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12107       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12108 # Check for GNU ac_path_SED and select it if it is found.
12109   # Check for GNU $ac_path_SED
12110 case `"$ac_path_SED" --version 2>&1` in
12111 *GNU*)
12112   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12113 *)
12114   ac_count=0
12115   $as_echo_n 0123456789 >"conftest.in"
12116   while :
12117   do
12118     cat "conftest.in" "conftest.in" >"conftest.tmp"
12119     mv "conftest.tmp" "conftest.in"
12120     cp "conftest.in" "conftest.nl"
12121     $as_echo '' >> "conftest.nl"
12122     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12124     as_fn_arith $ac_count + 1 && ac_count=$as_val
12125     if test $ac_count -gt ${ac_path_SED_max-0}; then
12126       # Best one so far, save it but keep looking for a better one
12127       ac_cv_path_SED="$ac_path_SED"
12128       ac_path_SED_max=$ac_count
12129     fi
12130     # 10*(2^10) chars as input seems more than enough
12131     test $ac_count -gt 10 && break
12132   done
12133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12134 esac
12135
12136       $ac_path_SED_found && break 3
12137     done
12138   done
12139   done
12140 IFS=$as_save_IFS
12141   if test -z "$ac_cv_path_SED"; then
12142     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12143   fi
12144 else
12145   ac_cv_path_SED=$SED
12146 fi
12147
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12150 $as_echo "$ac_cv_path_SED" >&6; }
12151  SED="$ac_cv_path_SED"
12152   rm -f conftest.sed
12153
12154 test -z "$SED" && SED=sed
12155 Xsed="$SED -e 1s/^X//"
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12168 $as_echo_n "checking for fgrep... " >&6; }
12169 if test "${ac_cv_path_FGREP+set}" = set; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12173    then ac_cv_path_FGREP="$GREP -F"
12174    else
12175      if test -z "$FGREP"; then
12176   ac_path_FGREP_found=false
12177   # Loop through the user's path and test for each of PROGNAME-LIST
12178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12180 do
12181   IFS=$as_save_IFS
12182   test -z "$as_dir" && as_dir=.
12183     for ac_prog in fgrep; do
12184     for ac_exec_ext in '' $ac_executable_extensions; do
12185       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12186       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12187 # Check for GNU ac_path_FGREP and select it if it is found.
12188   # Check for GNU $ac_path_FGREP
12189 case `"$ac_path_FGREP" --version 2>&1` in
12190 *GNU*)
12191   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12192 *)
12193   ac_count=0
12194   $as_echo_n 0123456789 >"conftest.in"
12195   while :
12196   do
12197     cat "conftest.in" "conftest.in" >"conftest.tmp"
12198     mv "conftest.tmp" "conftest.in"
12199     cp "conftest.in" "conftest.nl"
12200     $as_echo 'FGREP' >> "conftest.nl"
12201     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12202     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12203     as_fn_arith $ac_count + 1 && ac_count=$as_val
12204     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12205       # Best one so far, save it but keep looking for a better one
12206       ac_cv_path_FGREP="$ac_path_FGREP"
12207       ac_path_FGREP_max=$ac_count
12208     fi
12209     # 10*(2^10) chars as input seems more than enough
12210     test $ac_count -gt 10 && break
12211   done
12212   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12213 esac
12214
12215       $ac_path_FGREP_found && break 3
12216     done
12217   done
12218   done
12219 IFS=$as_save_IFS
12220   if test -z "$ac_cv_path_FGREP"; then
12221     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12222   fi
12223 else
12224   ac_cv_path_FGREP=$FGREP
12225 fi
12226
12227    fi
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12230 $as_echo "$ac_cv_path_FGREP" >&6; }
12231  FGREP="$ac_cv_path_FGREP"
12232
12233
12234 test -z "$GREP" && GREP=grep
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254 # Check whether --with-gnu-ld was given.
12255 if test "${with_gnu_ld+set}" = set; then :
12256   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12257 else
12258   with_gnu_ld=no
12259 fi
12260
12261 ac_prog=ld
12262 if test "$GCC" = yes; then
12263   # Check if gcc -print-prog-name=ld gives a path.
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12265 $as_echo_n "checking for ld used by $CC... " >&6; }
12266   case $host in
12267   *-*-mingw*)
12268     # gcc leaves a trailing carriage return which upsets mingw
12269     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12270   *)
12271     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12272   esac
12273   case $ac_prog in
12274     # Accept absolute paths.
12275     [\\/]* | ?:[\\/]*)
12276       re_direlt='/[^/][^/]*/\.\./'
12277       # Canonicalize the pathname of ld
12278       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12279       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12280         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12281       done
12282       test -z "$LD" && LD="$ac_prog"
12283       ;;
12284   "")
12285     # If it fails, then pretend we aren't using GCC.
12286     ac_prog=ld
12287     ;;
12288   *)
12289     # If it is relative, then search for the first ld in PATH.
12290     with_gnu_ld=unknown
12291     ;;
12292   esac
12293 elif test "$with_gnu_ld" = yes; then
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12295 $as_echo_n "checking for GNU ld... " >&6; }
12296 else
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12298 $as_echo_n "checking for non-GNU ld... " >&6; }
12299 fi
12300 if test "${lt_cv_path_LD+set}" = set; then :
12301   $as_echo_n "(cached) " >&6
12302 else
12303   if test -z "$LD"; then
12304   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12305   for ac_dir in $PATH; do
12306     IFS="$lt_save_ifs"
12307     test -z "$ac_dir" && ac_dir=.
12308     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12309       lt_cv_path_LD="$ac_dir/$ac_prog"
12310       # Check to see if the program is GNU ld.  I'd rather use --version,
12311       # but apparently some variants of GNU ld only accept -v.
12312       # Break only if it was the GNU/non-GNU ld that we prefer.
12313       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12314       *GNU* | *'with BFD'*)
12315         test "$with_gnu_ld" != no && break
12316         ;;
12317       *)
12318         test "$with_gnu_ld" != yes && break
12319         ;;
12320       esac
12321     fi
12322   done
12323   IFS="$lt_save_ifs"
12324 else
12325   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12326 fi
12327 fi
12328
12329 LD="$lt_cv_path_LD"
12330 if test -n "$LD"; then
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12332 $as_echo "$LD" >&6; }
12333 else
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12336 fi
12337 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12339 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12340 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12341   $as_echo_n "(cached) " >&6
12342 else
12343   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12344 case `$LD -v 2>&1 </dev/null` in
12345 *GNU* | *'with BFD'*)
12346   lt_cv_prog_gnu_ld=yes
12347   ;;
12348 *)
12349   lt_cv_prog_gnu_ld=no
12350   ;;
12351 esac
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12354 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12355 with_gnu_ld=$lt_cv_prog_gnu_ld
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12366 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12367 if test "${lt_cv_path_NM+set}" = set; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   if test -n "$NM"; then
12371   # Let the user override the test.
12372   lt_cv_path_NM="$NM"
12373 else
12374   lt_nm_to_check="${ac_tool_prefix}nm"
12375   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12376     lt_nm_to_check="$lt_nm_to_check nm"
12377   fi
12378   for lt_tmp_nm in $lt_nm_to_check; do
12379     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12380     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12381       IFS="$lt_save_ifs"
12382       test -z "$ac_dir" && ac_dir=.
12383       tmp_nm="$ac_dir/$lt_tmp_nm"
12384       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12385         # Check to see if the nm accepts a BSD-compat flag.
12386         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12387         #   nm: unknown option "B" ignored
12388         # Tru64's nm complains that /dev/null is an invalid object file
12389         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12390         */dev/null* | *'Invalid file or object type'*)
12391           lt_cv_path_NM="$tmp_nm -B"
12392           break
12393           ;;
12394         *)
12395           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12396           */dev/null*)
12397             lt_cv_path_NM="$tmp_nm -p"
12398             break
12399             ;;
12400           *)
12401             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12402             continue # so that we can try to find one that supports BSD flags
12403             ;;
12404           esac
12405           ;;
12406         esac
12407       fi
12408     done
12409     IFS="$lt_save_ifs"
12410   done
12411   : ${lt_cv_path_NM=no}
12412 fi
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12415 $as_echo "$lt_cv_path_NM" >&6; }
12416 if test "$lt_cv_path_NM" != "no"; then
12417   NM="$lt_cv_path_NM"
12418 else
12419   # Didn't find any BSD compatible name lister, look for dumpbin.
12420   if test -n "$DUMPBIN"; then :
12421     # Let the user override the test.
12422   else
12423     if test -n "$ac_tool_prefix"; then
12424   for ac_prog in dumpbin "link -dump"
12425   do
12426     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12431   $as_echo_n "(cached) " >&6
12432 else
12433   if test -n "$DUMPBIN"; then
12434   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12435 else
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12438 do
12439   IFS=$as_save_IFS
12440   test -z "$as_dir" && as_dir=.
12441     for ac_exec_ext in '' $ac_executable_extensions; do
12442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445     break 2
12446   fi
12447 done
12448   done
12449 IFS=$as_save_IFS
12450
12451 fi
12452 fi
12453 DUMPBIN=$ac_cv_prog_DUMPBIN
12454 if test -n "$DUMPBIN"; then
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12456 $as_echo "$DUMPBIN" >&6; }
12457 else
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12460 fi
12461
12462
12463     test -n "$DUMPBIN" && break
12464   done
12465 fi
12466 if test -z "$DUMPBIN"; then
12467   ac_ct_DUMPBIN=$DUMPBIN
12468   for ac_prog in dumpbin "link -dump"
12469 do
12470   # Extract the first word of "$ac_prog", so it can be a program name with args.
12471 set dummy $ac_prog; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   if test -n "$ac_ct_DUMPBIN"; then
12478   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483   IFS=$as_save_IFS
12484   test -z "$as_dir" && as_dir=.
12485     for ac_exec_ext in '' $ac_executable_extensions; do
12486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489     break 2
12490   fi
12491 done
12492   done
12493 IFS=$as_save_IFS
12494
12495 fi
12496 fi
12497 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12498 if test -n "$ac_ct_DUMPBIN"; then
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12500 $as_echo "$ac_ct_DUMPBIN" >&6; }
12501 else
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12504 fi
12505
12506
12507   test -n "$ac_ct_DUMPBIN" && break
12508 done
12509
12510   if test "x$ac_ct_DUMPBIN" = x; then
12511     DUMPBIN=":"
12512   else
12513     case $cross_compiling:$ac_tool_warned in
12514 yes:)
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12517 ac_tool_warned=yes ;;
12518 esac
12519     DUMPBIN=$ac_ct_DUMPBIN
12520   fi
12521 fi
12522
12523     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12524     *COFF*)
12525       DUMPBIN="$DUMPBIN -symbols"
12526       ;;
12527     *)
12528       DUMPBIN=:
12529       ;;
12530     esac
12531   fi
12532
12533   if test "$DUMPBIN" != ":"; then
12534     NM="$DUMPBIN"
12535   fi
12536 fi
12537 test -z "$NM" && NM=nm
12538
12539
12540
12541
12542
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12545 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12546 if test "${lt_cv_nm_interface+set}" = set; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   lt_cv_nm_interface="BSD nm"
12550   echo "int some_variable = 0;" > conftest.$ac_ext
12551   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12552   (eval "$ac_compile" 2>conftest.err)
12553   cat conftest.err >&5
12554   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12555   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12556   cat conftest.err >&5
12557   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12558   cat conftest.out >&5
12559   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12560     lt_cv_nm_interface="MS dumpbin"
12561   fi
12562   rm -f conftest*
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12565 $as_echo "$lt_cv_nm_interface" >&6; }
12566
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12568 $as_echo_n "checking whether ln -s works... " >&6; }
12569 LN_S=$as_ln_s
12570 if test "$LN_S" = "ln -s"; then
12571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12572 $as_echo "yes" >&6; }
12573 else
12574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12575 $as_echo "no, using $LN_S" >&6; }
12576 fi
12577
12578 # find the maximum length of command line arguments
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12580 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12581 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584     i=0
12585   teststring="ABCD"
12586
12587   case $build_os in
12588   msdosdjgpp*)
12589     # On DJGPP, this test can blow up pretty badly due to problems in libc
12590     # (any single argument exceeding 2000 bytes causes a buffer overrun
12591     # during glob expansion).  Even if it were fixed, the result of this
12592     # check would be larger than it should be.
12593     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12594     ;;
12595
12596   gnu*)
12597     # Under GNU Hurd, this test is not required because there is
12598     # no limit to the length of command line arguments.
12599     # Libtool will interpret -1 as no limit whatsoever
12600     lt_cv_sys_max_cmd_len=-1;
12601     ;;
12602
12603   cygwin* | mingw* | cegcc*)
12604     # On Win9x/ME, this test blows up -- it succeeds, but takes
12605     # about 5 minutes as the teststring grows exponentially.
12606     # Worse, since 9x/ME are not pre-emptively multitasking,
12607     # you end up with a "frozen" computer, even though with patience
12608     # the test eventually succeeds (with a max line length of 256k).
12609     # Instead, let's just punt: use the minimum linelength reported by
12610     # all of the supported platforms: 8192 (on NT/2K/XP).
12611     lt_cv_sys_max_cmd_len=8192;
12612     ;;
12613
12614   mint*)
12615     # On MiNT this can take a long time and run out of memory.
12616     lt_cv_sys_max_cmd_len=8192;
12617     ;;
12618
12619   amigaos*)
12620     # On AmigaOS with pdksh, this test takes hours, literally.
12621     # So we just punt and use a minimum line length of 8192.
12622     lt_cv_sys_max_cmd_len=8192;
12623     ;;
12624
12625   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12626     # This has been around since 386BSD, at least.  Likely further.
12627     if test -x /sbin/sysctl; then
12628       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12629     elif test -x /usr/sbin/sysctl; then
12630       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12631     else
12632       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12633     fi
12634     # And add a safety zone
12635     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12636     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12637     ;;
12638
12639   interix*)
12640     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12641     lt_cv_sys_max_cmd_len=196608
12642     ;;
12643
12644   osf*)
12645     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12646     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12647     # nice to cause kernel panics so lets avoid the loop below.
12648     # First set a reasonable default.
12649     lt_cv_sys_max_cmd_len=16384
12650     #
12651     if test -x /sbin/sysconfig; then
12652       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12653         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12654       esac
12655     fi
12656     ;;
12657   sco3.2v5*)
12658     lt_cv_sys_max_cmd_len=102400
12659     ;;
12660   sysv5* | sco5v6* | sysv4.2uw2*)
12661     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12662     if test -n "$kargmax"; then
12663       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12664     else
12665       lt_cv_sys_max_cmd_len=32768
12666     fi
12667     ;;
12668   *)
12669     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12670     if test -n "$lt_cv_sys_max_cmd_len"; then
12671       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12672       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12673     else
12674       # Make teststring a little bigger before we do anything with it.
12675       # a 1K string should be a reasonable start.
12676       for i in 1 2 3 4 5 6 7 8 ; do
12677         teststring=$teststring$teststring
12678       done
12679       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12680       # If test is not a shell built-in, we'll probably end up computing a
12681       # maximum length that is only half of the actual maximum length, but
12682       # we can't tell.
12683       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12684                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12685               test $i != 17 # 1/2 MB should be enough
12686       do
12687         i=`expr $i + 1`
12688         teststring=$teststring$teststring
12689       done
12690       # Only check the string length outside the loop.
12691       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12692       teststring=
12693       # Add a significant safety factor because C++ compilers can tack on
12694       # massive amounts of additional arguments before passing them to the
12695       # linker.  It appears as though 1/2 is a usable value.
12696       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12697     fi
12698     ;;
12699   esac
12700
12701 fi
12702
12703 if test -n $lt_cv_sys_max_cmd_len ; then
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12705 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12706 else
12707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12708 $as_echo "none" >&6; }
12709 fi
12710 max_cmd_len=$lt_cv_sys_max_cmd_len
12711
12712
12713
12714
12715
12716
12717 : ${CP="cp -f"}
12718 : ${MV="mv -f"}
12719 : ${RM="rm -f"}
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12722 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12723 # Try some XSI features
12724 xsi_shell=no
12725 ( _lt_dummy="a/b/c"
12726   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12727       = c,a/b,, \
12728     && eval 'test $(( 1 + 1 )) -eq 2 \
12729     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12730   && xsi_shell=yes
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12732 $as_echo "$xsi_shell" >&6; }
12733
12734
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12736 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12737 lt_shell_append=no
12738 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12739     >/dev/null 2>&1 \
12740   && lt_shell_append=yes
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12742 $as_echo "$lt_shell_append" >&6; }
12743
12744
12745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12746   lt_unset=unset
12747 else
12748   lt_unset=false
12749 fi
12750
12751
12752
12753
12754
12755 # test EBCDIC or ASCII
12756 case `echo X|tr X '\101'` in
12757  A) # ASCII based system
12758     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12759   lt_SP2NL='tr \040 \012'
12760   lt_NL2SP='tr \015\012 \040\040'
12761   ;;
12762  *) # EBCDIC based system
12763   lt_SP2NL='tr \100 \n'
12764   lt_NL2SP='tr \r\n \100\100'
12765   ;;
12766 esac
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12778 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   lt_cv_ld_reload_flag='-r'
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12785 reload_flag=$lt_cv_ld_reload_flag
12786 case $reload_flag in
12787 "" | " "*) ;;
12788 *) reload_flag=" $reload_flag" ;;
12789 esac
12790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12791 case $host_os in
12792   darwin*)
12793     if test "$GCC" = yes; then
12794       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12795     else
12796       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12797     fi
12798     ;;
12799 esac
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809 if test -n "$ac_tool_prefix"; then
12810   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12811 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813 $as_echo_n "checking for $ac_word... " >&6; }
12814 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   if test -n "$OBJDUMP"; then
12818   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12819 else
12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12822 do
12823   IFS=$as_save_IFS
12824   test -z "$as_dir" && as_dir=.
12825     for ac_exec_ext in '' $ac_executable_extensions; do
12826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12827     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829     break 2
12830   fi
12831 done
12832   done
12833 IFS=$as_save_IFS
12834
12835 fi
12836 fi
12837 OBJDUMP=$ac_cv_prog_OBJDUMP
12838 if test -n "$OBJDUMP"; then
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12840 $as_echo "$OBJDUMP" >&6; }
12841 else
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12844 fi
12845
12846
12847 fi
12848 if test -z "$ac_cv_prog_OBJDUMP"; then
12849   ac_ct_OBJDUMP=$OBJDUMP
12850   # Extract the first word of "objdump", so it can be a program name with args.
12851 set dummy objdump; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   if test -n "$ac_ct_OBJDUMP"; then
12858   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12859 else
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12862 do
12863   IFS=$as_save_IFS
12864   test -z "$as_dir" && as_dir=.
12865     for ac_exec_ext in '' $ac_executable_extensions; do
12866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869     break 2
12870   fi
12871 done
12872   done
12873 IFS=$as_save_IFS
12874
12875 fi
12876 fi
12877 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12878 if test -n "$ac_ct_OBJDUMP"; then
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12880 $as_echo "$ac_ct_OBJDUMP" >&6; }
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885
12886   if test "x$ac_ct_OBJDUMP" = x; then
12887     OBJDUMP="false"
12888   else
12889     case $cross_compiling:$ac_tool_warned in
12890 yes:)
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12893 ac_tool_warned=yes ;;
12894 esac
12895     OBJDUMP=$ac_ct_OBJDUMP
12896   fi
12897 else
12898   OBJDUMP="$ac_cv_prog_OBJDUMP"
12899 fi
12900
12901 test -z "$OBJDUMP" && OBJDUMP=objdump
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12912 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12913 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916   lt_cv_file_magic_cmd='$MAGIC_CMD'
12917 lt_cv_file_magic_test_file=
12918 lt_cv_deplibs_check_method='unknown'
12919 # Need to set the preceding variable on all platforms that support
12920 # interlibrary dependencies.
12921 # 'none' -- dependencies not supported.
12922 # `unknown' -- same as none, but documents that we really don't know.
12923 # 'pass_all' -- all dependencies passed with no checks.
12924 # 'test_compile' -- check by making test program.
12925 # 'file_magic [[regex]]' -- check by looking for files in library path
12926 # which responds to the $file_magic_cmd with a given extended regex.
12927 # If you have `file' or equivalent on your system and you're not sure
12928 # whether `pass_all' will *always* work, you probably want this one.
12929
12930 case $host_os in
12931 aix[4-9]*)
12932   lt_cv_deplibs_check_method=pass_all
12933   ;;
12934
12935 beos*)
12936   lt_cv_deplibs_check_method=pass_all
12937   ;;
12938
12939 bsdi[45]*)
12940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12941   lt_cv_file_magic_cmd='/usr/bin/file -L'
12942   lt_cv_file_magic_test_file=/shlib/libc.so
12943   ;;
12944
12945 cygwin*)
12946   # func_win32_libid is a shell function defined in ltmain.sh
12947   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12948   lt_cv_file_magic_cmd='func_win32_libid'
12949   ;;
12950
12951 mingw* | pw32*)
12952   # Base MSYS/MinGW do not provide the 'file' command needed by
12953   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12954   # unless we find 'file', for example because we are cross-compiling.
12955   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12956   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12957     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12958     lt_cv_file_magic_cmd='func_win32_libid'
12959   else
12960     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12961     lt_cv_file_magic_cmd='$OBJDUMP -f'
12962   fi
12963   ;;
12964
12965 cegcc*)
12966   # use the weaker test based on 'objdump'. See mingw*.
12967   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12968   lt_cv_file_magic_cmd='$OBJDUMP -f'
12969   ;;
12970
12971 darwin* | rhapsody*)
12972   lt_cv_deplibs_check_method=pass_all
12973   ;;
12974
12975 freebsd* | dragonfly*)
12976   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12977     case $host_cpu in
12978     i*86 )
12979       # Not sure whether the presence of OpenBSD here was a mistake.
12980       # Let's accept both of them until this is cleared up.
12981       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12982       lt_cv_file_magic_cmd=/usr/bin/file
12983       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12984       ;;
12985     esac
12986   else
12987     lt_cv_deplibs_check_method=pass_all
12988   fi
12989   ;;
12990
12991 gnu*)
12992   lt_cv_deplibs_check_method=pass_all
12993   ;;
12994
12995 haiku*)
12996   lt_cv_deplibs_check_method=pass_all
12997   ;;
12998
12999 hpux10.20* | hpux11*)
13000   lt_cv_file_magic_cmd=/usr/bin/file
13001   case $host_cpu in
13002   ia64*)
13003     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13004     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13005     ;;
13006   hppa*64*)
13007     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]'
13008     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13009     ;;
13010   *)
13011     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13012     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13013     ;;
13014   esac
13015   ;;
13016
13017 interix[3-9]*)
13018   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13019   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13020   ;;
13021
13022 irix5* | irix6* | nonstopux*)
13023   case $LD in
13024   *-32|*"-32 ") libmagic=32-bit;;
13025   *-n32|*"-n32 ") libmagic=N32;;
13026   *-64|*"-64 ") libmagic=64-bit;;
13027   *) libmagic=never-match;;
13028   esac
13029   lt_cv_deplibs_check_method=pass_all
13030   ;;
13031
13032 # This must be Linux ELF.
13033 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13034   lt_cv_deplibs_check_method=pass_all
13035   ;;
13036
13037 netbsd*)
13038   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13039     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13040   else
13041     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13042   fi
13043   ;;
13044
13045 newos6*)
13046   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13047   lt_cv_file_magic_cmd=/usr/bin/file
13048   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13049   ;;
13050
13051 *nto* | *qnx*)
13052   lt_cv_deplibs_check_method=pass_all
13053   ;;
13054
13055 openbsd*)
13056   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13057     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13058   else
13059     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13060   fi
13061   ;;
13062
13063 osf3* | osf4* | osf5*)
13064   lt_cv_deplibs_check_method=pass_all
13065   ;;
13066
13067 rdos*)
13068   lt_cv_deplibs_check_method=pass_all
13069   ;;
13070
13071 solaris*)
13072   lt_cv_deplibs_check_method=pass_all
13073   ;;
13074
13075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13076   lt_cv_deplibs_check_method=pass_all
13077   ;;
13078
13079 sysv4 | sysv4.3*)
13080   case $host_vendor in
13081   motorola)
13082     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]'
13083     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13084     ;;
13085   ncr)
13086     lt_cv_deplibs_check_method=pass_all
13087     ;;
13088   sequent)
13089     lt_cv_file_magic_cmd='/bin/file'
13090     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13091     ;;
13092   sni)
13093     lt_cv_file_magic_cmd='/bin/file'
13094     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13095     lt_cv_file_magic_test_file=/lib/libc.so
13096     ;;
13097   siemens)
13098     lt_cv_deplibs_check_method=pass_all
13099     ;;
13100   pc)
13101     lt_cv_deplibs_check_method=pass_all
13102     ;;
13103   esac
13104   ;;
13105
13106 tpf*)
13107   lt_cv_deplibs_check_method=pass_all
13108   ;;
13109 esac
13110
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13113 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13114 file_magic_cmd=$lt_cv_file_magic_cmd
13115 deplibs_check_method=$lt_cv_deplibs_check_method
13116 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129 if test -n "$ac_tool_prefix"; then
13130   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13131 set dummy ${ac_tool_prefix}ar; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if test "${ac_cv_prog_AR+set}" = set; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137   if test -n "$AR"; then
13138   ac_cv_prog_AR="$AR" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143   IFS=$as_save_IFS
13144   test -z "$as_dir" && as_dir=.
13145     for ac_exec_ext in '' $ac_executable_extensions; do
13146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147     ac_cv_prog_AR="${ac_tool_prefix}ar"
13148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149     break 2
13150   fi
13151 done
13152   done
13153 IFS=$as_save_IFS
13154
13155 fi
13156 fi
13157 AR=$ac_cv_prog_AR
13158 if test -n "$AR"; then
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13160 $as_echo "$AR" >&6; }
13161 else
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165
13166
13167 fi
13168 if test -z "$ac_cv_prog_AR"; then
13169   ac_ct_AR=$AR
13170   # Extract the first word of "ar", so it can be a program name with args.
13171 set dummy ar; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13175   $as_echo_n "(cached) " >&6
13176 else
13177   if test -n "$ac_ct_AR"; then
13178   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13179 else
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13182 do
13183   IFS=$as_save_IFS
13184   test -z "$as_dir" && as_dir=.
13185     for ac_exec_ext in '' $ac_executable_extensions; do
13186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187     ac_cv_prog_ac_ct_AR="ar"
13188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189     break 2
13190   fi
13191 done
13192   done
13193 IFS=$as_save_IFS
13194
13195 fi
13196 fi
13197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13198 if test -n "$ac_ct_AR"; then
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13200 $as_echo "$ac_ct_AR" >&6; }
13201 else
13202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13204 fi
13205
13206   if test "x$ac_ct_AR" = x; then
13207     AR="false"
13208   else
13209     case $cross_compiling:$ac_tool_warned in
13210 yes:)
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213 ac_tool_warned=yes ;;
13214 esac
13215     AR=$ac_ct_AR
13216   fi
13217 else
13218   AR="$ac_cv_prog_AR"
13219 fi
13220
13221 test -z "$AR" && AR=ar
13222 test -z "$AR_FLAGS" && AR_FLAGS=cru
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234 if test -n "$ac_tool_prefix"; then
13235   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13236 set dummy ${ac_tool_prefix}strip; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if test "${ac_cv_prog_STRIP+set}" = set; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242   if test -n "$STRIP"; then
13243   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248   IFS=$as_save_IFS
13249   test -z "$as_dir" && as_dir=.
13250     for ac_exec_ext in '' $ac_executable_extensions; do
13251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254     break 2
13255   fi
13256 done
13257   done
13258 IFS=$as_save_IFS
13259
13260 fi
13261 fi
13262 STRIP=$ac_cv_prog_STRIP
13263 if test -n "$STRIP"; then
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13265 $as_echo "$STRIP" >&6; }
13266 else
13267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269 fi
13270
13271
13272 fi
13273 if test -z "$ac_cv_prog_STRIP"; then
13274   ac_ct_STRIP=$STRIP
13275   # Extract the first word of "strip", so it can be a program name with args.
13276 set dummy strip; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   if test -n "$ac_ct_STRIP"; then
13283   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288   IFS=$as_save_IFS
13289   test -z "$as_dir" && as_dir=.
13290     for ac_exec_ext in '' $ac_executable_extensions; do
13291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292     ac_cv_prog_ac_ct_STRIP="strip"
13293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294     break 2
13295   fi
13296 done
13297   done
13298 IFS=$as_save_IFS
13299
13300 fi
13301 fi
13302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13303 if test -n "$ac_ct_STRIP"; then
13304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13305 $as_echo "$ac_ct_STRIP" >&6; }
13306 else
13307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309 fi
13310
13311   if test "x$ac_ct_STRIP" = x; then
13312     STRIP=":"
13313   else
13314     case $cross_compiling:$ac_tool_warned in
13315 yes:)
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13318 ac_tool_warned=yes ;;
13319 esac
13320     STRIP=$ac_ct_STRIP
13321   fi
13322 else
13323   STRIP="$ac_cv_prog_STRIP"
13324 fi
13325
13326 test -z "$STRIP" && STRIP=:
13327
13328
13329
13330
13331
13332
13333 if test -n "$ac_tool_prefix"; then
13334   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341   if test -n "$RANLIB"; then
13342   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13343 else
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13346 do
13347   IFS=$as_save_IFS
13348   test -z "$as_dir" && as_dir=.
13349     for ac_exec_ext in '' $ac_executable_extensions; do
13350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13351     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353     break 2
13354   fi
13355 done
13356   done
13357 IFS=$as_save_IFS
13358
13359 fi
13360 fi
13361 RANLIB=$ac_cv_prog_RANLIB
13362 if test -n "$RANLIB"; then
13363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13364 $as_echo "$RANLIB" >&6; }
13365 else
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13368 fi
13369
13370
13371 fi
13372 if test -z "$ac_cv_prog_RANLIB"; then
13373   ac_ct_RANLIB=$RANLIB
13374   # Extract the first word of "ranlib", so it can be a program name with args.
13375 set dummy ranlib; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13377 $as_echo_n "checking for $ac_word... " >&6; }
13378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13379   $as_echo_n "(cached) " >&6
13380 else
13381   if test -n "$ac_ct_RANLIB"; then
13382   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13383 else
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13386 do
13387   IFS=$as_save_IFS
13388   test -z "$as_dir" && as_dir=.
13389     for ac_exec_ext in '' $ac_executable_extensions; do
13390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13391     ac_cv_prog_ac_ct_RANLIB="ranlib"
13392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13393     break 2
13394   fi
13395 done
13396   done
13397 IFS=$as_save_IFS
13398
13399 fi
13400 fi
13401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13402 if test -n "$ac_ct_RANLIB"; then
13403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13404 $as_echo "$ac_ct_RANLIB" >&6; }
13405 else
13406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13408 fi
13409
13410   if test "x$ac_ct_RANLIB" = x; then
13411     RANLIB=":"
13412   else
13413     case $cross_compiling:$ac_tool_warned in
13414 yes:)
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13417 ac_tool_warned=yes ;;
13418 esac
13419     RANLIB=$ac_ct_RANLIB
13420   fi
13421 else
13422   RANLIB="$ac_cv_prog_RANLIB"
13423 fi
13424
13425 test -z "$RANLIB" && RANLIB=:
13426
13427
13428
13429
13430
13431
13432 # Determine commands to create old-style static archives.
13433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13434 old_postinstall_cmds='chmod 644 $oldlib'
13435 old_postuninstall_cmds=
13436
13437 if test -n "$RANLIB"; then
13438   case $host_os in
13439   openbsd*)
13440     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13441     ;;
13442   *)
13443     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13444     ;;
13445   esac
13446   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13447 fi
13448
13449 case $host_os in
13450   darwin*)
13451     lock_old_archive_extraction=yes ;;
13452   *)
13453     lock_old_archive_extraction=no ;;
13454 esac
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494 # If no C compiler was specified, use CC.
13495 LTCC=${LTCC-"$CC"}
13496
13497 # If no C compiler flags were specified, use CFLAGS.
13498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13499
13500 # Allow CC to be a program name with arguments.
13501 compiler=$CC
13502
13503
13504 # Check for command to grab the raw symbol name followed by C symbol from nm.
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13506 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13508   $as_echo_n "(cached) " >&6
13509 else
13510
13511 # These are sane defaults that work on at least a few old systems.
13512 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13513
13514 # Character class describing NM global symbol codes.
13515 symcode='[BCDEGRST]'
13516
13517 # Regexp to match symbols that can be accessed directly from C.
13518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13519
13520 # Define system-specific variables.
13521 case $host_os in
13522 aix*)
13523   symcode='[BCDT]'
13524   ;;
13525 cygwin* | mingw* | pw32* | cegcc*)
13526   symcode='[ABCDGISTW]'
13527   ;;
13528 hpux*)
13529   if test "$host_cpu" = ia64; then
13530     symcode='[ABCDEGRST]'
13531   fi
13532   ;;
13533 irix* | nonstopux*)
13534   symcode='[BCDEGRST]'
13535   ;;
13536 osf*)
13537   symcode='[BCDEGQRST]'
13538   ;;
13539 solaris*)
13540   symcode='[BDRT]'
13541   ;;
13542 sco3.2v5*)
13543   symcode='[DT]'
13544   ;;
13545 sysv4.2uw2*)
13546   symcode='[DT]'
13547   ;;
13548 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13549   symcode='[ABDT]'
13550   ;;
13551 sysv4)
13552   symcode='[DFNSTU]'
13553   ;;
13554 esac
13555
13556 # If we're using GNU nm, then use its standard symbol codes.
13557 case `$NM -V 2>&1` in
13558 *GNU* | *'with BFD'*)
13559   symcode='[ABCDGIRSTW]' ;;
13560 esac
13561
13562 # Transform an extracted symbol line into a proper C declaration.
13563 # Some systems (esp. on ia64) link data and code symbols differently,
13564 # so use this general approach.
13565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13566
13567 # Transform an extracted symbol line into symbol name and symbol address
13568 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13569 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'"
13570
13571 # Handle CRLF in mingw tool chain
13572 opt_cr=
13573 case $build_os in
13574 mingw*)
13575   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13576   ;;
13577 esac
13578
13579 # Try without a prefix underscore, then with it.
13580 for ac_symprfx in "" "_"; do
13581
13582   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13583   symxfrm="\\1 $ac_symprfx\\2 \\2"
13584
13585   # Write the raw and C identifiers.
13586   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13587     # Fake it for dumpbin and say T for any non-static function
13588     # and D for any global variable.
13589     # Also find C++ and __fastcall symbols from MSVC++,
13590     # which start with @ or ?.
13591     lt_cv_sys_global_symbol_pipe="$AWK '"\
13592 "     {last_section=section; section=\$ 3};"\
13593 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13594 "     \$ 0!~/External *\|/{next};"\
13595 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13596 "     {if(hide[section]) next};"\
13597 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13598 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13599 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13600 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13601 "     ' prfx=^$ac_symprfx"
13602   else
13603     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13604   fi
13605
13606   # Check to see that the pipe works correctly.
13607   pipe_works=no
13608
13609   rm -f conftest*
13610   cat > conftest.$ac_ext <<_LT_EOF
13611 #ifdef __cplusplus
13612 extern "C" {
13613 #endif
13614 char nm_test_var;
13615 void nm_test_func(void);
13616 void nm_test_func(void){}
13617 #ifdef __cplusplus
13618 }
13619 #endif
13620 int main(){nm_test_var='a';nm_test_func();return(0);}
13621 _LT_EOF
13622
13623   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13624   (eval $ac_compile) 2>&5
13625   ac_status=$?
13626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627   test $ac_status = 0; }; then
13628     # Now try to grab the symbols.
13629     nlist=conftest.nm
13630     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13631   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13632   ac_status=$?
13633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634   test $ac_status = 0; } && test -s "$nlist"; then
13635       # Try sorting and uniquifying the output.
13636       if sort "$nlist" | uniq > "$nlist"T; then
13637         mv -f "$nlist"T "$nlist"
13638       else
13639         rm -f "$nlist"T
13640       fi
13641
13642       # Make sure that we snagged all the symbols we need.
13643       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13644         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13645           cat <<_LT_EOF > conftest.$ac_ext
13646 #ifdef __cplusplus
13647 extern "C" {
13648 #endif
13649
13650 _LT_EOF
13651           # Now generate the symbol file.
13652           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13653
13654           cat <<_LT_EOF >> conftest.$ac_ext
13655
13656 /* The mapping between symbol names and symbols.  */
13657 const struct {
13658   const char *name;
13659   void       *address;
13660 }
13661 lt__PROGRAM__LTX_preloaded_symbols[] =
13662 {
13663   { "@PROGRAM@", (void *) 0 },
13664 _LT_EOF
13665           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13666           cat <<\_LT_EOF >> conftest.$ac_ext
13667   {0, (void *) 0}
13668 };
13669
13670 /* This works around a problem in FreeBSD linker */
13671 #ifdef FREEBSD_WORKAROUND
13672 static const void *lt_preloaded_setup() {
13673   return lt__PROGRAM__LTX_preloaded_symbols;
13674 }
13675 #endif
13676
13677 #ifdef __cplusplus
13678 }
13679 #endif
13680 _LT_EOF
13681           # Now try linking the two files.
13682           mv conftest.$ac_objext conftstm.$ac_objext
13683           lt_save_LIBS="$LIBS"
13684           lt_save_CFLAGS="$CFLAGS"
13685           LIBS="conftstm.$ac_objext"
13686           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13687           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13688   (eval $ac_link) 2>&5
13689   ac_status=$?
13690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13691   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13692             pipe_works=yes
13693           fi
13694           LIBS="$lt_save_LIBS"
13695           CFLAGS="$lt_save_CFLAGS"
13696         else
13697           echo "cannot find nm_test_func in $nlist" >&5
13698         fi
13699       else
13700         echo "cannot find nm_test_var in $nlist" >&5
13701       fi
13702     else
13703       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13704     fi
13705   else
13706     echo "$progname: failed program was:" >&5
13707     cat conftest.$ac_ext >&5
13708   fi
13709   rm -rf conftest* conftst*
13710
13711   # Do not use the global_symbol_pipe unless it works.
13712   if test "$pipe_works" = yes; then
13713     break
13714   else
13715     lt_cv_sys_global_symbol_pipe=
13716   fi
13717 done
13718
13719 fi
13720
13721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13722   lt_cv_sys_global_symbol_to_cdecl=
13723 fi
13724 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13726 $as_echo "failed" >&6; }
13727 else
13728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13729 $as_echo "ok" >&6; }
13730 fi
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753 # Check whether --enable-libtool-lock was given.
13754 if test "${enable_libtool_lock+set}" = set; then :
13755   enableval=$enable_libtool_lock;
13756 fi
13757
13758 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13759
13760 # Some flags need to be propagated to the compiler or linker for good
13761 # libtool support.
13762 case $host in
13763 ia64-*-hpux*)
13764   # Find out which ABI we are using.
13765   echo 'int i;' > conftest.$ac_ext
13766   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13767   (eval $ac_compile) 2>&5
13768   ac_status=$?
13769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13770   test $ac_status = 0; }; then
13771     case `/usr/bin/file conftest.$ac_objext` in
13772       *ELF-32*)
13773         HPUX_IA64_MODE="32"
13774         ;;
13775       *ELF-64*)
13776         HPUX_IA64_MODE="64"
13777         ;;
13778     esac
13779   fi
13780   rm -rf conftest*
13781   ;;
13782 *-*-irix6*)
13783   # Find out which ABI we are using.
13784   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13785   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13786   (eval $ac_compile) 2>&5
13787   ac_status=$?
13788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13789   test $ac_status = 0; }; then
13790     if test "$lt_cv_prog_gnu_ld" = yes; then
13791       case `/usr/bin/file conftest.$ac_objext` in
13792         *32-bit*)
13793           LD="${LD-ld} -melf32bsmip"
13794           ;;
13795         *N32*)
13796           LD="${LD-ld} -melf32bmipn32"
13797           ;;
13798         *64-bit*)
13799           LD="${LD-ld} -melf64bmip"
13800         ;;
13801       esac
13802     else
13803       case `/usr/bin/file conftest.$ac_objext` in
13804         *32-bit*)
13805           LD="${LD-ld} -32"
13806           ;;
13807         *N32*)
13808           LD="${LD-ld} -n32"
13809           ;;
13810         *64-bit*)
13811           LD="${LD-ld} -64"
13812           ;;
13813       esac
13814     fi
13815   fi
13816   rm -rf conftest*
13817   ;;
13818
13819 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13820 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13821   # Find out which ABI we are using.
13822   echo 'int i;' > conftest.$ac_ext
13823   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13824   (eval $ac_compile) 2>&5
13825   ac_status=$?
13826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827   test $ac_status = 0; }; then
13828     case `/usr/bin/file conftest.o` in
13829       *32-bit*)
13830         case $host in
13831           x86_64-*kfreebsd*-gnu)
13832             LD="${LD-ld} -m elf_i386_fbsd"
13833             ;;
13834           x86_64-*linux*)
13835             LD="${LD-ld} -m elf_i386"
13836             ;;
13837           ppc64-*linux*|powerpc64-*linux*)
13838             LD="${LD-ld} -m elf32ppclinux"
13839             ;;
13840           s390x-*linux*)
13841             LD="${LD-ld} -m elf_s390"
13842             ;;
13843           sparc64-*linux*)
13844             LD="${LD-ld} -m elf32_sparc"
13845             ;;
13846         esac
13847         ;;
13848       *64-bit*)
13849         case $host in
13850           x86_64-*kfreebsd*-gnu)
13851             LD="${LD-ld} -m elf_x86_64_fbsd"
13852             ;;
13853           x86_64-*linux*)
13854             LD="${LD-ld} -m elf_x86_64"
13855             ;;
13856           ppc*-*linux*|powerpc*-*linux*)
13857             LD="${LD-ld} -m elf64ppc"
13858             ;;
13859           s390*-*linux*|s390*-*tpf*)
13860             LD="${LD-ld} -m elf64_s390"
13861             ;;
13862           sparc*-*linux*)
13863             LD="${LD-ld} -m elf64_sparc"
13864             ;;
13865         esac
13866         ;;
13867     esac
13868   fi
13869   rm -rf conftest*
13870   ;;
13871
13872 *-*-sco3.2v5*)
13873   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13874   SAVE_CFLAGS="$CFLAGS"
13875   CFLAGS="$CFLAGS -belf"
13876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13877 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13878 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13879   $as_echo_n "(cached) " >&6
13880 else
13881   ac_ext=c
13882 ac_cpp='$CPP $CPPFLAGS'
13883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13886
13887      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h.  */
13889
13890 int
13891 main ()
13892 {
13893
13894   ;
13895   return 0;
13896 }
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"; then :
13899   lt_cv_cc_needs_belf=yes
13900 else
13901   lt_cv_cc_needs_belf=no
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext \
13904     conftest$ac_exeext conftest.$ac_ext
13905      ac_ext=c
13906 ac_cpp='$CPP $CPPFLAGS'
13907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13910
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13913 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13914   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13915     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13916     CFLAGS="$SAVE_CFLAGS"
13917   fi
13918   ;;
13919 sparc*-*solaris*)
13920   # Find out which ABI we are using.
13921   echo 'int i;' > conftest.$ac_ext
13922   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13923   (eval $ac_compile) 2>&5
13924   ac_status=$?
13925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926   test $ac_status = 0; }; then
13927     case `/usr/bin/file conftest.o` in
13928     *64-bit*)
13929       case $lt_cv_prog_gnu_ld in
13930       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13931       *)
13932         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13933           LD="${LD-ld} -64"
13934         fi
13935         ;;
13936       esac
13937       ;;
13938     esac
13939   fi
13940   rm -rf conftest*
13941   ;;
13942 esac
13943
13944 need_locks="$enable_libtool_lock"
13945
13946
13947   case $host_os in
13948     rhapsody* | darwin*)
13949     if test -n "$ac_tool_prefix"; then
13950   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13951 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13953 $as_echo_n "checking for $ac_word... " >&6; }
13954 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13955   $as_echo_n "(cached) " >&6
13956 else
13957   if test -n "$DSYMUTIL"; then
13958   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13959 else
13960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13962 do
13963   IFS=$as_save_IFS
13964   test -z "$as_dir" && as_dir=.
13965     for ac_exec_ext in '' $ac_executable_extensions; do
13966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13967     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13969     break 2
13970   fi
13971 done
13972   done
13973 IFS=$as_save_IFS
13974
13975 fi
13976 fi
13977 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13978 if test -n "$DSYMUTIL"; then
13979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13980 $as_echo "$DSYMUTIL" >&6; }
13981 else
13982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983 $as_echo "no" >&6; }
13984 fi
13985
13986
13987 fi
13988 if test -z "$ac_cv_prog_DSYMUTIL"; then
13989   ac_ct_DSYMUTIL=$DSYMUTIL
13990   # Extract the first word of "dsymutil", so it can be a program name with args.
13991 set dummy dsymutil; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   if test -n "$ac_ct_DSYMUTIL"; then
13998   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13999 else
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14002 do
14003   IFS=$as_save_IFS
14004   test -z "$as_dir" && as_dir=.
14005     for ac_exec_ext in '' $ac_executable_extensions; do
14006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14007     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14009     break 2
14010   fi
14011 done
14012   done
14013 IFS=$as_save_IFS
14014
14015 fi
14016 fi
14017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14018 if test -n "$ac_ct_DSYMUTIL"; then
14019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14020 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14021 else
14022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14024 fi
14025
14026   if test "x$ac_ct_DSYMUTIL" = x; then
14027     DSYMUTIL=":"
14028   else
14029     case $cross_compiling:$ac_tool_warned in
14030 yes:)
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14033 ac_tool_warned=yes ;;
14034 esac
14035     DSYMUTIL=$ac_ct_DSYMUTIL
14036   fi
14037 else
14038   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14039 fi
14040
14041     if test -n "$ac_tool_prefix"; then
14042   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14045 $as_echo_n "checking for $ac_word... " >&6; }
14046 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14047   $as_echo_n "(cached) " >&6
14048 else
14049   if test -n "$NMEDIT"; then
14050   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14051 else
14052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14054 do
14055   IFS=$as_save_IFS
14056   test -z "$as_dir" && as_dir=.
14057     for ac_exec_ext in '' $ac_executable_extensions; do
14058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14059     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14061     break 2
14062   fi
14063 done
14064   done
14065 IFS=$as_save_IFS
14066
14067 fi
14068 fi
14069 NMEDIT=$ac_cv_prog_NMEDIT
14070 if test -n "$NMEDIT"; then
14071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14072 $as_echo "$NMEDIT" >&6; }
14073 else
14074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14075 $as_echo "no" >&6; }
14076 fi
14077
14078
14079 fi
14080 if test -z "$ac_cv_prog_NMEDIT"; then
14081   ac_ct_NMEDIT=$NMEDIT
14082   # Extract the first word of "nmedit", so it can be a program name with args.
14083 set dummy nmedit; ac_word=$2
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14085 $as_echo_n "checking for $ac_word... " >&6; }
14086 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14087   $as_echo_n "(cached) " >&6
14088 else
14089   if test -n "$ac_ct_NMEDIT"; then
14090   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14091 else
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14094 do
14095   IFS=$as_save_IFS
14096   test -z "$as_dir" && as_dir=.
14097     for ac_exec_ext in '' $ac_executable_extensions; do
14098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14099     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14101     break 2
14102   fi
14103 done
14104   done
14105 IFS=$as_save_IFS
14106
14107 fi
14108 fi
14109 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14110 if test -n "$ac_ct_NMEDIT"; then
14111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14112 $as_echo "$ac_ct_NMEDIT" >&6; }
14113 else
14114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14116 fi
14117
14118   if test "x$ac_ct_NMEDIT" = x; then
14119     NMEDIT=":"
14120   else
14121     case $cross_compiling:$ac_tool_warned in
14122 yes:)
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14125 ac_tool_warned=yes ;;
14126 esac
14127     NMEDIT=$ac_ct_NMEDIT
14128   fi
14129 else
14130   NMEDIT="$ac_cv_prog_NMEDIT"
14131 fi
14132
14133     if test -n "$ac_tool_prefix"; then
14134   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14135 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14137 $as_echo_n "checking for $ac_word... " >&6; }
14138 if test "${ac_cv_prog_LIPO+set}" = set; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   if test -n "$LIPO"; then
14142   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14143 else
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14146 do
14147   IFS=$as_save_IFS
14148   test -z "$as_dir" && as_dir=.
14149     for ac_exec_ext in '' $ac_executable_extensions; do
14150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14151     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14153     break 2
14154   fi
14155 done
14156   done
14157 IFS=$as_save_IFS
14158
14159 fi
14160 fi
14161 LIPO=$ac_cv_prog_LIPO
14162 if test -n "$LIPO"; then
14163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14164 $as_echo "$LIPO" >&6; }
14165 else
14166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14168 fi
14169
14170
14171 fi
14172 if test -z "$ac_cv_prog_LIPO"; then
14173   ac_ct_LIPO=$LIPO
14174   # Extract the first word of "lipo", so it can be a program name with args.
14175 set dummy lipo; ac_word=$2
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14177 $as_echo_n "checking for $ac_word... " >&6; }
14178 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14179   $as_echo_n "(cached) " >&6
14180 else
14181   if test -n "$ac_ct_LIPO"; then
14182   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14183 else
14184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185 for as_dir in $PATH
14186 do
14187   IFS=$as_save_IFS
14188   test -z "$as_dir" && as_dir=.
14189     for ac_exec_ext in '' $ac_executable_extensions; do
14190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14191     ac_cv_prog_ac_ct_LIPO="lipo"
14192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14193     break 2
14194   fi
14195 done
14196   done
14197 IFS=$as_save_IFS
14198
14199 fi
14200 fi
14201 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14202 if test -n "$ac_ct_LIPO"; then
14203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14204 $as_echo "$ac_ct_LIPO" >&6; }
14205 else
14206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207 $as_echo "no" >&6; }
14208 fi
14209
14210   if test "x$ac_ct_LIPO" = x; then
14211     LIPO=":"
14212   else
14213     case $cross_compiling:$ac_tool_warned in
14214 yes:)
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14217 ac_tool_warned=yes ;;
14218 esac
14219     LIPO=$ac_ct_LIPO
14220   fi
14221 else
14222   LIPO="$ac_cv_prog_LIPO"
14223 fi
14224
14225     if test -n "$ac_tool_prefix"; then
14226   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14227 set dummy ${ac_tool_prefix}otool; ac_word=$2
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14229 $as_echo_n "checking for $ac_word... " >&6; }
14230 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14231   $as_echo_n "(cached) " >&6
14232 else
14233   if test -n "$OTOOL"; then
14234   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14235 else
14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $PATH
14238 do
14239   IFS=$as_save_IFS
14240   test -z "$as_dir" && as_dir=.
14241     for ac_exec_ext in '' $ac_executable_extensions; do
14242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14243     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14245     break 2
14246   fi
14247 done
14248   done
14249 IFS=$as_save_IFS
14250
14251 fi
14252 fi
14253 OTOOL=$ac_cv_prog_OTOOL
14254 if test -n "$OTOOL"; then
14255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14256 $as_echo "$OTOOL" >&6; }
14257 else
14258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 $as_echo "no" >&6; }
14260 fi
14261
14262
14263 fi
14264 if test -z "$ac_cv_prog_OTOOL"; then
14265   ac_ct_OTOOL=$OTOOL
14266   # Extract the first word of "otool", so it can be a program name with args.
14267 set dummy otool; ac_word=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14271   $as_echo_n "(cached) " >&6
14272 else
14273   if test -n "$ac_ct_OTOOL"; then
14274   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14275 else
14276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14277 for as_dir in $PATH
14278 do
14279   IFS=$as_save_IFS
14280   test -z "$as_dir" && as_dir=.
14281     for ac_exec_ext in '' $ac_executable_extensions; do
14282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14283     ac_cv_prog_ac_ct_OTOOL="otool"
14284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14285     break 2
14286   fi
14287 done
14288   done
14289 IFS=$as_save_IFS
14290
14291 fi
14292 fi
14293 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14294 if test -n "$ac_ct_OTOOL"; then
14295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14296 $as_echo "$ac_ct_OTOOL" >&6; }
14297 else
14298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14300 fi
14301
14302   if test "x$ac_ct_OTOOL" = x; then
14303     OTOOL=":"
14304   else
14305     case $cross_compiling:$ac_tool_warned in
14306 yes:)
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14309 ac_tool_warned=yes ;;
14310 esac
14311     OTOOL=$ac_ct_OTOOL
14312   fi
14313 else
14314   OTOOL="$ac_cv_prog_OTOOL"
14315 fi
14316
14317     if test -n "$ac_tool_prefix"; then
14318   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14319 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14323   $as_echo_n "(cached) " >&6
14324 else
14325   if test -n "$OTOOL64"; then
14326   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14327 else
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14330 do
14331   IFS=$as_save_IFS
14332   test -z "$as_dir" && as_dir=.
14333     for ac_exec_ext in '' $ac_executable_extensions; do
14334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14335     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337     break 2
14338   fi
14339 done
14340   done
14341 IFS=$as_save_IFS
14342
14343 fi
14344 fi
14345 OTOOL64=$ac_cv_prog_OTOOL64
14346 if test -n "$OTOOL64"; then
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14348 $as_echo "$OTOOL64" >&6; }
14349 else
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 fi
14353
14354
14355 fi
14356 if test -z "$ac_cv_prog_OTOOL64"; then
14357   ac_ct_OTOOL64=$OTOOL64
14358   # Extract the first word of "otool64", so it can be a program name with args.
14359 set dummy otool64; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14363   $as_echo_n "(cached) " >&6
14364 else
14365   if test -n "$ac_ct_OTOOL64"; then
14366   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14367 else
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14370 do
14371   IFS=$as_save_IFS
14372   test -z "$as_dir" && as_dir=.
14373     for ac_exec_ext in '' $ac_executable_extensions; do
14374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14375     ac_cv_prog_ac_ct_OTOOL64="otool64"
14376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14377     break 2
14378   fi
14379 done
14380   done
14381 IFS=$as_save_IFS
14382
14383 fi
14384 fi
14385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14386 if test -n "$ac_ct_OTOOL64"; then
14387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14388 $as_echo "$ac_ct_OTOOL64" >&6; }
14389 else
14390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14392 fi
14393
14394   if test "x$ac_ct_OTOOL64" = x; then
14395     OTOOL64=":"
14396   else
14397     case $cross_compiling:$ac_tool_warned in
14398 yes:)
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14401 ac_tool_warned=yes ;;
14402 esac
14403     OTOOL64=$ac_ct_OTOOL64
14404   fi
14405 else
14406   OTOOL64="$ac_cv_prog_OTOOL64"
14407 fi
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14436 $as_echo_n "checking for -single_module linker flag... " >&6; }
14437 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14438   $as_echo_n "(cached) " >&6
14439 else
14440   lt_cv_apple_cc_single_mod=no
14441       if test -z "${LT_MULTI_MODULE}"; then
14442         # By default we will add the -single_module flag. You can override
14443         # by either setting the environment variable LT_MULTI_MODULE
14444         # non-empty at configure time, or by adding -multi_module to the
14445         # link flags.
14446         rm -rf libconftest.dylib*
14447         echo "int foo(void){return 1;}" > conftest.c
14448         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14449 -dynamiclib -Wl,-single_module conftest.c" >&5
14450         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14451           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14452         _lt_result=$?
14453         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14454           lt_cv_apple_cc_single_mod=yes
14455         else
14456           cat conftest.err >&5
14457         fi
14458         rm -rf libconftest.dylib*
14459         rm -f conftest.*
14460       fi
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14466 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14467   $as_echo_n "(cached) " >&6
14468 else
14469   lt_cv_ld_exported_symbols_list=no
14470       save_LDFLAGS=$LDFLAGS
14471       echo "_main" > conftest.sym
14472       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14473       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h.  */
14475
14476 int
14477 main ()
14478 {
14479
14480   ;
14481   return 0;
14482 }
14483 _ACEOF
14484 if ac_fn_c_try_link "$LINENO"; then :
14485   lt_cv_ld_exported_symbols_list=yes
14486 else
14487   lt_cv_ld_exported_symbols_list=no
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext \
14490     conftest$ac_exeext conftest.$ac_ext
14491         LDFLAGS="$save_LDFLAGS"
14492
14493 fi
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14495 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14497 $as_echo_n "checking for -force_load linker flag... " >&6; }
14498 if test "${lt_cv_ld_force_load+set}" = set; then :
14499   $as_echo_n "(cached) " >&6
14500 else
14501   lt_cv_ld_force_load=no
14502       cat > conftest.c << _LT_EOF
14503 int forced_loaded() { return 2;}
14504 _LT_EOF
14505       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14506       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14507       echo "$AR cru libconftest.a conftest.o" >&5
14508       $AR cru libconftest.a conftest.o 2>&5
14509       cat > conftest.c << _LT_EOF
14510 int main() { return 0;}
14511 _LT_EOF
14512       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14513       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14514       _lt_result=$?
14515       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14516         lt_cv_ld_force_load=yes
14517       else
14518         cat conftest.err >&5
14519       fi
14520         rm -f conftest.err libconftest.a conftest conftest.c
14521         rm -rf conftest.dSYM
14522
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14525 $as_echo "$lt_cv_ld_force_load" >&6; }
14526     case $host_os in
14527     rhapsody* | darwin1.[012])
14528       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14529     darwin1.*)
14530       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14531     darwin*) # darwin 5.x on
14532       # if running on 10.5 or later, the deployment target defaults
14533       # to the OS version, if on x86, and 10.4, the deployment
14534       # target defaults to 10.4. Don't you love it?
14535       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14536         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14537           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14538         10.[012]*)
14539           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14540         10.*)
14541           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14542       esac
14543     ;;
14544   esac
14545     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14546       _lt_dar_single_mod='$single_module'
14547     fi
14548     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14549       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14550     else
14551       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14552     fi
14553     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14554       _lt_dsymutil='~$DSYMUTIL $lib || :'
14555     else
14556       _lt_dsymutil=
14557     fi
14558     ;;
14559   esac
14560
14561 for ac_header in dlfcn.h
14562 do :
14563   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14564 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14565   cat >>confdefs.h <<_ACEOF
14566 #define HAVE_DLFCN_H 1
14567 _ACEOF
14568
14569 fi
14570 done
14571
14572
14573
14574
14575
14576 # Set options
14577
14578
14579
14580         enable_dlopen=no
14581
14582
14583   enable_win32_dll=no
14584
14585
14586             # Check whether --enable-shared was given.
14587 if test "${enable_shared+set}" = set; then :
14588   enableval=$enable_shared; p=${PACKAGE-default}
14589     case $enableval in
14590     yes) enable_shared=yes ;;
14591     no) enable_shared=no ;;
14592     *)
14593       enable_shared=no
14594       # Look at the argument we got.  We use all the common list separators.
14595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14596       for pkg in $enableval; do
14597         IFS="$lt_save_ifs"
14598         if test "X$pkg" = "X$p"; then
14599           enable_shared=yes
14600         fi
14601       done
14602       IFS="$lt_save_ifs"
14603       ;;
14604     esac
14605 else
14606   enable_shared=yes
14607 fi
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617   # Check whether --enable-static was given.
14618 if test "${enable_static+set}" = set; then :
14619   enableval=$enable_static; p=${PACKAGE-default}
14620     case $enableval in
14621     yes) enable_static=yes ;;
14622     no) enable_static=no ;;
14623     *)
14624      enable_static=no
14625       # Look at the argument we got.  We use all the common list separators.
14626       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14627       for pkg in $enableval; do
14628         IFS="$lt_save_ifs"
14629         if test "X$pkg" = "X$p"; then
14630           enable_static=yes
14631         fi
14632       done
14633       IFS="$lt_save_ifs"
14634       ;;
14635     esac
14636 else
14637   enable_static=yes
14638 fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649 # Check whether --with-pic was given.
14650 if test "${with_pic+set}" = set; then :
14651   withval=$with_pic; pic_mode="$withval"
14652 else
14653   pic_mode=default
14654 fi
14655
14656
14657 test -z "$pic_mode" && pic_mode=default
14658
14659
14660
14661
14662
14663
14664
14665   # Check whether --enable-fast-install was given.
14666 if test "${enable_fast_install+set}" = set; then :
14667   enableval=$enable_fast_install; p=${PACKAGE-default}
14668     case $enableval in
14669     yes) enable_fast_install=yes ;;
14670     no) enable_fast_install=no ;;
14671     *)
14672       enable_fast_install=no
14673       # Look at the argument we got.  We use all the common list separators.
14674       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14675       for pkg in $enableval; do
14676         IFS="$lt_save_ifs"
14677         if test "X$pkg" = "X$p"; then
14678           enable_fast_install=yes
14679         fi
14680       done
14681       IFS="$lt_save_ifs"
14682       ;;
14683     esac
14684 else
14685   enable_fast_install=yes
14686 fi
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698 # This can be used to rebuild libtool when needed
14699 LIBTOOL_DEPS="$ltmain"
14700
14701 # Always use our own libtool.
14702 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729 test -z "$LN_S" && LN_S="ln -s"
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744 if test -n "${ZSH_VERSION+set}" ; then
14745    setopt NO_GLOB_SUBST
14746 fi
14747
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14749 $as_echo_n "checking for objdir... " >&6; }
14750 if test "${lt_cv_objdir+set}" = set; then :
14751   $as_echo_n "(cached) " >&6
14752 else
14753   rm -f .libs 2>/dev/null
14754 mkdir .libs 2>/dev/null
14755 if test -d .libs; then
14756   lt_cv_objdir=.libs
14757 else
14758   # MS-DOS does not allow filenames that begin with a dot.
14759   lt_cv_objdir=_libs
14760 fi
14761 rmdir .libs 2>/dev/null
14762 fi
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14764 $as_echo "$lt_cv_objdir" >&6; }
14765 objdir=$lt_cv_objdir
14766
14767
14768
14769
14770
14771 cat >>confdefs.h <<_ACEOF
14772 #define LT_OBJDIR "$lt_cv_objdir/"
14773 _ACEOF
14774
14775
14776
14777
14778 case $host_os in
14779 aix3*)
14780   # AIX sometimes has problems with the GCC collect2 program.  For some
14781   # reason, if we set the COLLECT_NAMES environment variable, the problems
14782   # vanish in a puff of smoke.
14783   if test "X${COLLECT_NAMES+set}" != Xset; then
14784     COLLECT_NAMES=
14785     export COLLECT_NAMES
14786   fi
14787   ;;
14788 esac
14789
14790 # Global variables:
14791 ofile=libtool
14792 can_build_shared=yes
14793
14794 # All known linkers require a `.a' archive for static linking (except MSVC,
14795 # which needs '.lib').
14796 libext=a
14797
14798 with_gnu_ld="$lt_cv_prog_gnu_ld"
14799
14800 old_CC="$CC"
14801 old_CFLAGS="$CFLAGS"
14802
14803 # Set sane defaults for various variables
14804 test -z "$CC" && CC=cc
14805 test -z "$LTCC" && LTCC=$CC
14806 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14807 test -z "$LD" && LD=ld
14808 test -z "$ac_objext" && ac_objext=o
14809
14810 for cc_temp in $compiler""; do
14811   case $cc_temp in
14812     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14813     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14814     \-*) ;;
14815     *) break;;
14816   esac
14817 done
14818 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14819
14820
14821 # Only perform the check for file, if the check method requires it
14822 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14823 case $deplibs_check_method in
14824 file_magic*)
14825   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14827 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14828 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14829   $as_echo_n "(cached) " >&6
14830 else
14831   case $MAGIC_CMD in
14832 [\\/*] |  ?:[\\/]*)
14833   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14834   ;;
14835 *)
14836   lt_save_MAGIC_CMD="$MAGIC_CMD"
14837   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14838   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14839   for ac_dir in $ac_dummy; do
14840     IFS="$lt_save_ifs"
14841     test -z "$ac_dir" && ac_dir=.
14842     if test -f $ac_dir/${ac_tool_prefix}file; then
14843       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14844       if test -n "$file_magic_test_file"; then
14845         case $deplibs_check_method in
14846         "file_magic "*)
14847           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14848           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14849           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14850             $EGREP "$file_magic_regex" > /dev/null; then
14851             :
14852           else
14853             cat <<_LT_EOF 1>&2
14854
14855 *** Warning: the command libtool uses to detect shared libraries,
14856 *** $file_magic_cmd, produces output that libtool cannot recognize.
14857 *** The result is that libtool may fail to recognize shared libraries
14858 *** as such.  This will affect the creation of libtool libraries that
14859 *** depend on shared libraries, but programs linked with such libtool
14860 *** libraries will work regardless of this problem.  Nevertheless, you
14861 *** may want to report the problem to your system manager and/or to
14862 *** bug-libtool@gnu.org
14863
14864 _LT_EOF
14865           fi ;;
14866         esac
14867       fi
14868       break
14869     fi
14870   done
14871   IFS="$lt_save_ifs"
14872   MAGIC_CMD="$lt_save_MAGIC_CMD"
14873   ;;
14874 esac
14875 fi
14876
14877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14878 if test -n "$MAGIC_CMD"; then
14879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14880 $as_echo "$MAGIC_CMD" >&6; }
14881 else
14882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14884 fi
14885
14886
14887
14888
14889
14890 if test -z "$lt_cv_path_MAGIC_CMD"; then
14891   if test -n "$ac_tool_prefix"; then
14892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14893 $as_echo_n "checking for file... " >&6; }
14894 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14895   $as_echo_n "(cached) " >&6
14896 else
14897   case $MAGIC_CMD in
14898 [\\/*] |  ?:[\\/]*)
14899   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14900   ;;
14901 *)
14902   lt_save_MAGIC_CMD="$MAGIC_CMD"
14903   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14904   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14905   for ac_dir in $ac_dummy; do
14906     IFS="$lt_save_ifs"
14907     test -z "$ac_dir" && ac_dir=.
14908     if test -f $ac_dir/file; then
14909       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14910       if test -n "$file_magic_test_file"; then
14911         case $deplibs_check_method in
14912         "file_magic "*)
14913           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14914           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14915           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14916             $EGREP "$file_magic_regex" > /dev/null; then
14917             :
14918           else
14919             cat <<_LT_EOF 1>&2
14920
14921 *** Warning: the command libtool uses to detect shared libraries,
14922 *** $file_magic_cmd, produces output that libtool cannot recognize.
14923 *** The result is that libtool may fail to recognize shared libraries
14924 *** as such.  This will affect the creation of libtool libraries that
14925 *** depend on shared libraries, but programs linked with such libtool
14926 *** libraries will work regardless of this problem.  Nevertheless, you
14927 *** may want to report the problem to your system manager and/or to
14928 *** bug-libtool@gnu.org
14929
14930 _LT_EOF
14931           fi ;;
14932         esac
14933       fi
14934       break
14935     fi
14936   done
14937   IFS="$lt_save_ifs"
14938   MAGIC_CMD="$lt_save_MAGIC_CMD"
14939   ;;
14940 esac
14941 fi
14942
14943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14944 if test -n "$MAGIC_CMD"; then
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14946 $as_echo "$MAGIC_CMD" >&6; }
14947 else
14948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14950 fi
14951
14952
14953   else
14954     MAGIC_CMD=:
14955   fi
14956 fi
14957
14958   fi
14959   ;;
14960 esac
14961
14962 # Use C for the default configuration in the libtool script
14963
14964 lt_save_CC="$CC"
14965 ac_ext=c
14966 ac_cpp='$CPP $CPPFLAGS'
14967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14970
14971
14972 # Source file extension for C test sources.
14973 ac_ext=c
14974
14975 # Object file extension for compiled C test sources.
14976 objext=o
14977 objext=$objext
14978
14979 # Code to be used in simple compile tests
14980 lt_simple_compile_test_code="int some_variable = 0;"
14981
14982 # Code to be used in simple link tests
14983 lt_simple_link_test_code='int main(){return(0);}'
14984
14985
14986
14987
14988
14989
14990
14991 # If no C compiler was specified, use CC.
14992 LTCC=${LTCC-"$CC"}
14993
14994 # If no C compiler flags were specified, use CFLAGS.
14995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14996
14997 # Allow CC to be a program name with arguments.
14998 compiler=$CC
14999
15000 # Save the default compiler, since it gets overwritten when the other
15001 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15002 compiler_DEFAULT=$CC
15003
15004 # save warnings/boilerplate of simple test code
15005 ac_outfile=conftest.$ac_objext
15006 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15008 _lt_compiler_boilerplate=`cat conftest.err`
15009 $RM conftest*
15010
15011 ac_outfile=conftest.$ac_objext
15012 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15014 _lt_linker_boilerplate=`cat conftest.err`
15015 $RM -r conftest*
15016
15017
15018 ## CAVEAT EMPTOR:
15019 ## There is no encapsulation within the following macros, do not change
15020 ## the running order or otherwise move them around unless you know exactly
15021 ## what you are doing...
15022 if test -n "$compiler"; then
15023
15024 lt_prog_compiler_no_builtin_flag=
15025
15026 if test "$GCC" = yes; then
15027   case $cc_basename in
15028   nvcc*)
15029     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15030   *)
15031     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15032   esac
15033
15034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15035 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15037   $as_echo_n "(cached) " >&6
15038 else
15039   lt_cv_prog_compiler_rtti_exceptions=no
15040    ac_outfile=conftest.$ac_objext
15041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15042    lt_compiler_flag="-fno-rtti -fno-exceptions"
15043    # Insert the option either (1) after the last *FLAGS variable, or
15044    # (2) before a word containing "conftest.", or (3) at the end.
15045    # Note that $ac_compile itself does not contain backslashes and begins
15046    # with a dollar sign (not a hyphen), so the echo should work correctly.
15047    # The option is referenced via a variable to avoid confusing sed.
15048    lt_compile=`echo "$ac_compile" | $SED \
15049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15051    -e 's:$: $lt_compiler_flag:'`
15052    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15053    (eval "$lt_compile" 2>conftest.err)
15054    ac_status=$?
15055    cat conftest.err >&5
15056    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057    if (exit $ac_status) && test -s "$ac_outfile"; then
15058      # The compiler can only warn and ignore the option if not recognized
15059      # So say no if there are warnings other than the usual output.
15060      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15061      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15062      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15063        lt_cv_prog_compiler_rtti_exceptions=yes
15064      fi
15065    fi
15066    $RM conftest*
15067
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15070 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15071
15072 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15073     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15074 else
15075     :
15076 fi
15077
15078 fi
15079
15080
15081
15082
15083
15084
15085   lt_prog_compiler_wl=
15086 lt_prog_compiler_pic=
15087 lt_prog_compiler_static=
15088
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15091
15092   if test "$GCC" = yes; then
15093     lt_prog_compiler_wl='-Wl,'
15094     lt_prog_compiler_static='-static'
15095
15096     case $host_os in
15097       aix*)
15098       # All AIX code is PIC.
15099       if test "$host_cpu" = ia64; then
15100         # AIX 5 now supports IA64 processor
15101         lt_prog_compiler_static='-Bstatic'
15102       fi
15103       ;;
15104
15105     amigaos*)
15106       case $host_cpu in
15107       powerpc)
15108             # see comment about AmigaOS4 .so support
15109             lt_prog_compiler_pic='-fPIC'
15110         ;;
15111       m68k)
15112             # FIXME: we need at least 68020 code to build shared libraries, but
15113             # adding the `-m68020' flag to GCC prevents building anything better,
15114             # like `-m68040'.
15115             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15116         ;;
15117       esac
15118       ;;
15119
15120     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15121       # PIC is the default for these OSes.
15122       ;;
15123
15124     mingw* | cygwin* | pw32* | os2* | cegcc*)
15125       # This hack is so that the source file can tell whether it is being
15126       # built for inclusion in a dll (and should export symbols for example).
15127       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15128       # (--disable-auto-import) libraries
15129       lt_prog_compiler_pic='-DDLL_EXPORT'
15130       ;;
15131
15132     darwin* | rhapsody*)
15133       # PIC is the default on this platform
15134       # Common symbols not allowed in MH_DYLIB files
15135       lt_prog_compiler_pic='-fno-common'
15136       ;;
15137
15138     haiku*)
15139       # PIC is the default for Haiku.
15140       # The "-static" flag exists, but is broken.
15141       lt_prog_compiler_static=
15142       ;;
15143
15144     hpux*)
15145       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15146       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15147       # sets the default TLS model and affects inlining.
15148       case $host_cpu in
15149       hppa*64*)
15150         # +Z the default
15151         ;;
15152       *)
15153         lt_prog_compiler_pic='-fPIC'
15154         ;;
15155       esac
15156       ;;
15157
15158     interix[3-9]*)
15159       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15160       # Instead, we relocate shared libraries at runtime.
15161       ;;
15162
15163     msdosdjgpp*)
15164       # Just because we use GCC doesn't mean we suddenly get shared libraries
15165       # on systems that don't support them.
15166       lt_prog_compiler_can_build_shared=no
15167       enable_shared=no
15168       ;;
15169
15170     *nto* | *qnx*)
15171       # QNX uses GNU C++, but need to define -shared option too, otherwise
15172       # it will coredump.
15173       lt_prog_compiler_pic='-fPIC -shared'
15174       ;;
15175
15176     sysv4*MP*)
15177       if test -d /usr/nec; then
15178         lt_prog_compiler_pic=-Kconform_pic
15179       fi
15180       ;;
15181
15182     *)
15183       lt_prog_compiler_pic='-fPIC'
15184       ;;
15185     esac
15186
15187     case $cc_basename in
15188     nvcc*) # Cuda Compiler Driver 2.2
15189       lt_prog_compiler_wl='-Xlinker '
15190       lt_prog_compiler_pic='-Xcompiler -fPIC'
15191       ;;
15192     esac
15193   else
15194     # PORTME Check for flag to pass linker flags through the system compiler.
15195     case $host_os in
15196     aix*)
15197       lt_prog_compiler_wl='-Wl,'
15198       if test "$host_cpu" = ia64; then
15199         # AIX 5 now supports IA64 processor
15200         lt_prog_compiler_static='-Bstatic'
15201       else
15202         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15203       fi
15204       ;;
15205
15206     mingw* | cygwin* | pw32* | os2* | cegcc*)
15207       # This hack is so that the source file can tell whether it is being
15208       # built for inclusion in a dll (and should export symbols for example).
15209       lt_prog_compiler_pic='-DDLL_EXPORT'
15210       ;;
15211
15212     hpux9* | hpux10* | hpux11*)
15213       lt_prog_compiler_wl='-Wl,'
15214       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15215       # not for PA HP-UX.
15216       case $host_cpu in
15217       hppa*64*|ia64*)
15218         # +Z the default
15219         ;;
15220       *)
15221         lt_prog_compiler_pic='+Z'
15222         ;;
15223       esac
15224       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15225       lt_prog_compiler_static='${wl}-a ${wl}archive'
15226       ;;
15227
15228     irix5* | irix6* | nonstopux*)
15229       lt_prog_compiler_wl='-Wl,'
15230       # PIC (with -KPIC) is the default.
15231       lt_prog_compiler_static='-non_shared'
15232       ;;
15233
15234     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15235       case $cc_basename in
15236       # old Intel for x86_64 which still supported -KPIC.
15237       ecc*)
15238         lt_prog_compiler_wl='-Wl,'
15239         lt_prog_compiler_pic='-KPIC'
15240         lt_prog_compiler_static='-static'
15241         ;;
15242       # icc used to be incompatible with GCC.
15243       # ICC 10 doesn't accept -KPIC any more.
15244       icc* | ifort*)
15245         lt_prog_compiler_wl='-Wl,'
15246         lt_prog_compiler_pic='-fPIC'
15247         lt_prog_compiler_static='-static'
15248         ;;
15249       # Lahey Fortran 8.1.
15250       lf95*)
15251         lt_prog_compiler_wl='-Wl,'
15252         lt_prog_compiler_pic='--shared'
15253         lt_prog_compiler_static='--static'
15254         ;;
15255       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15256         # Portland Group compilers (*not* the Pentium gcc compiler,
15257         # which looks to be a dead project)
15258         lt_prog_compiler_wl='-Wl,'
15259         lt_prog_compiler_pic='-fpic'
15260         lt_prog_compiler_static='-Bstatic'
15261         ;;
15262       ccc*)
15263         lt_prog_compiler_wl='-Wl,'
15264         # All Alpha code is PIC.
15265         lt_prog_compiler_static='-non_shared'
15266         ;;
15267       xl* | bgxl* | bgf* | mpixl*)
15268         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15269         lt_prog_compiler_wl='-Wl,'
15270         lt_prog_compiler_pic='-qpic'
15271         lt_prog_compiler_static='-qstaticlink'
15272         ;;
15273       *)
15274         case `$CC -V 2>&1 | sed 5q` in
15275         *Sun\ F* | *Sun*Fortran*)
15276           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15277           lt_prog_compiler_pic='-KPIC'
15278           lt_prog_compiler_static='-Bstatic'
15279           lt_prog_compiler_wl=''
15280           ;;
15281         *Sun\ C*)
15282           # Sun C 5.9
15283           lt_prog_compiler_pic='-KPIC'
15284           lt_prog_compiler_static='-Bstatic'
15285           lt_prog_compiler_wl='-Wl,'
15286           ;;
15287         esac
15288         ;;
15289       esac
15290       ;;
15291
15292     newsos6)
15293       lt_prog_compiler_pic='-KPIC'
15294       lt_prog_compiler_static='-Bstatic'
15295       ;;
15296
15297     *nto* | *qnx*)
15298       # QNX uses GNU C++, but need to define -shared option too, otherwise
15299       # it will coredump.
15300       lt_prog_compiler_pic='-fPIC -shared'
15301       ;;
15302
15303     osf3* | osf4* | osf5*)
15304       lt_prog_compiler_wl='-Wl,'
15305       # All OSF/1 code is PIC.
15306       lt_prog_compiler_static='-non_shared'
15307       ;;
15308
15309     rdos*)
15310       lt_prog_compiler_static='-non_shared'
15311       ;;
15312
15313     solaris*)
15314       lt_prog_compiler_pic='-KPIC'
15315       lt_prog_compiler_static='-Bstatic'
15316       case $cc_basename in
15317       f77* | f90* | f95*)
15318         lt_prog_compiler_wl='-Qoption ld ';;
15319       *)
15320         lt_prog_compiler_wl='-Wl,';;
15321       esac
15322       ;;
15323
15324     sunos4*)
15325       lt_prog_compiler_wl='-Qoption ld '
15326       lt_prog_compiler_pic='-PIC'
15327       lt_prog_compiler_static='-Bstatic'
15328       ;;
15329
15330     sysv4 | sysv4.2uw2* | sysv4.3*)
15331       lt_prog_compiler_wl='-Wl,'
15332       lt_prog_compiler_pic='-KPIC'
15333       lt_prog_compiler_static='-Bstatic'
15334       ;;
15335
15336     sysv4*MP*)
15337       if test -d /usr/nec ;then
15338         lt_prog_compiler_pic='-Kconform_pic'
15339         lt_prog_compiler_static='-Bstatic'
15340       fi
15341       ;;
15342
15343     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15344       lt_prog_compiler_wl='-Wl,'
15345       lt_prog_compiler_pic='-KPIC'
15346       lt_prog_compiler_static='-Bstatic'
15347       ;;
15348
15349     unicos*)
15350       lt_prog_compiler_wl='-Wl,'
15351       lt_prog_compiler_can_build_shared=no
15352       ;;
15353
15354     uts4*)
15355       lt_prog_compiler_pic='-pic'
15356       lt_prog_compiler_static='-Bstatic'
15357       ;;
15358
15359     *)
15360       lt_prog_compiler_can_build_shared=no
15361       ;;
15362     esac
15363   fi
15364
15365 case $host_os in
15366   # For platforms which do not support PIC, -DPIC is meaningless:
15367   *djgpp*)
15368     lt_prog_compiler_pic=
15369     ;;
15370   *)
15371     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15372     ;;
15373 esac
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15375 $as_echo "$lt_prog_compiler_pic" >&6; }
15376
15377
15378
15379
15380
15381
15382 #
15383 # Check to make sure the PIC flag actually works.
15384 #
15385 if test -n "$lt_prog_compiler_pic"; then
15386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15387 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15388 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15389   $as_echo_n "(cached) " >&6
15390 else
15391   lt_cv_prog_compiler_pic_works=no
15392    ac_outfile=conftest.$ac_objext
15393    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15394    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15395    # Insert the option either (1) after the last *FLAGS variable, or
15396    # (2) before a word containing "conftest.", or (3) at the end.
15397    # Note that $ac_compile itself does not contain backslashes and begins
15398    # with a dollar sign (not a hyphen), so the echo should work correctly.
15399    # The option is referenced via a variable to avoid confusing sed.
15400    lt_compile=`echo "$ac_compile" | $SED \
15401    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15403    -e 's:$: $lt_compiler_flag:'`
15404    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15405    (eval "$lt_compile" 2>conftest.err)
15406    ac_status=$?
15407    cat conftest.err >&5
15408    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409    if (exit $ac_status) && test -s "$ac_outfile"; then
15410      # The compiler can only warn and ignore the option if not recognized
15411      # So say no if there are warnings other than the usual output.
15412      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15413      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15414      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15415        lt_cv_prog_compiler_pic_works=yes
15416      fi
15417    fi
15418    $RM conftest*
15419
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15422 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15423
15424 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15425     case $lt_prog_compiler_pic in
15426      "" | " "*) ;;
15427      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15428      esac
15429 else
15430     lt_prog_compiler_pic=
15431      lt_prog_compiler_can_build_shared=no
15432 fi
15433
15434 fi
15435
15436
15437
15438
15439
15440
15441 #
15442 # Check to make sure the static flag actually works.
15443 #
15444 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15446 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15447 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   lt_cv_prog_compiler_static_works=no
15451    save_LDFLAGS="$LDFLAGS"
15452    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15453    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15454    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15455      # The linker can only warn and ignore the option if not recognized
15456      # So say no if there are warnings
15457      if test -s conftest.err; then
15458        # Append any errors to the config.log.
15459        cat conftest.err 1>&5
15460        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15461        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15462        if diff conftest.exp conftest.er2 >/dev/null; then
15463          lt_cv_prog_compiler_static_works=yes
15464        fi
15465      else
15466        lt_cv_prog_compiler_static_works=yes
15467      fi
15468    fi
15469    $RM -r conftest*
15470    LDFLAGS="$save_LDFLAGS"
15471
15472 fi
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15474 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15475
15476 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15477     :
15478 else
15479     lt_prog_compiler_static=
15480 fi
15481
15482
15483
15484
15485
15486
15487
15488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15489 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15490 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15491   $as_echo_n "(cached) " >&6
15492 else
15493   lt_cv_prog_compiler_c_o=no
15494    $RM -r conftest 2>/dev/null
15495    mkdir conftest
15496    cd conftest
15497    mkdir out
15498    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15499
15500    lt_compiler_flag="-o out/conftest2.$ac_objext"
15501    # Insert the option either (1) after the last *FLAGS variable, or
15502    # (2) before a word containing "conftest.", or (3) at the end.
15503    # Note that $ac_compile itself does not contain backslashes and begins
15504    # with a dollar sign (not a hyphen), so the echo should work correctly.
15505    lt_compile=`echo "$ac_compile" | $SED \
15506    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15507    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15508    -e 's:$: $lt_compiler_flag:'`
15509    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15510    (eval "$lt_compile" 2>out/conftest.err)
15511    ac_status=$?
15512    cat out/conftest.err >&5
15513    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15515    then
15516      # The compiler can only warn and ignore the option if not recognized
15517      # So say no if there are warnings
15518      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15519      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15520      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15521        lt_cv_prog_compiler_c_o=yes
15522      fi
15523    fi
15524    chmod u+w . 2>&5
15525    $RM conftest*
15526    # SGI C++ compiler will create directory out/ii_files/ for
15527    # template instantiation
15528    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15529    $RM out/* && rmdir out
15530    cd ..
15531    $RM -r conftest
15532    $RM conftest*
15533
15534 fi
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15536 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15537
15538
15539
15540
15541
15542
15543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15546   $as_echo_n "(cached) " >&6
15547 else
15548   lt_cv_prog_compiler_c_o=no
15549    $RM -r conftest 2>/dev/null
15550    mkdir conftest
15551    cd conftest
15552    mkdir out
15553    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15554
15555    lt_compiler_flag="-o out/conftest2.$ac_objext"
15556    # Insert the option either (1) after the last *FLAGS variable, or
15557    # (2) before a word containing "conftest.", or (3) at the end.
15558    # Note that $ac_compile itself does not contain backslashes and begins
15559    # with a dollar sign (not a hyphen), so the echo should work correctly.
15560    lt_compile=`echo "$ac_compile" | $SED \
15561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15563    -e 's:$: $lt_compiler_flag:'`
15564    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15565    (eval "$lt_compile" 2>out/conftest.err)
15566    ac_status=$?
15567    cat out/conftest.err >&5
15568    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15570    then
15571      # The compiler can only warn and ignore the option if not recognized
15572      # So say no if there are warnings
15573      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15574      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15575      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15576        lt_cv_prog_compiler_c_o=yes
15577      fi
15578    fi
15579    chmod u+w . 2>&5
15580    $RM conftest*
15581    # SGI C++ compiler will create directory out/ii_files/ for
15582    # template instantiation
15583    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15584    $RM out/* && rmdir out
15585    cd ..
15586    $RM -r conftest
15587    $RM conftest*
15588
15589 fi
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15592
15593
15594
15595
15596 hard_links="nottested"
15597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15598   # do not overwrite the value of need_locks provided by the user
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15600 $as_echo_n "checking if we can lock with hard links... " >&6; }
15601   hard_links=yes
15602   $RM conftest*
15603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15604   touch conftest.a
15605   ln conftest.a conftest.b 2>&5 || hard_links=no
15606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15608 $as_echo "$hard_links" >&6; }
15609   if test "$hard_links" = no; then
15610     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15611 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15612     need_locks=warn
15613   fi
15614 else
15615   need_locks=no
15616 fi
15617
15618
15619
15620
15621
15622
15623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15624 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15625
15626   runpath_var=
15627   allow_undefined_flag=
15628   always_export_symbols=no
15629   archive_cmds=
15630   archive_expsym_cmds=
15631   compiler_needs_object=no
15632   enable_shared_with_static_runtimes=no
15633   export_dynamic_flag_spec=
15634   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15635   hardcode_automatic=no
15636   hardcode_direct=no
15637   hardcode_direct_absolute=no
15638   hardcode_libdir_flag_spec=
15639   hardcode_libdir_flag_spec_ld=
15640   hardcode_libdir_separator=
15641   hardcode_minus_L=no
15642   hardcode_shlibpath_var=unsupported
15643   inherit_rpath=no
15644   link_all_deplibs=unknown
15645   module_cmds=
15646   module_expsym_cmds=
15647   old_archive_from_new_cmds=
15648   old_archive_from_expsyms_cmds=
15649   thread_safe_flag_spec=
15650   whole_archive_flag_spec=
15651   # include_expsyms should be a list of space-separated symbols to be *always*
15652   # included in the symbol list
15653   include_expsyms=
15654   # exclude_expsyms can be an extended regexp of symbols to exclude
15655   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15656   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15657   # as well as any symbol that contains `d'.
15658   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15659   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15660   # platforms (ab)use it in PIC code, but their linkers get confused if
15661   # the symbol is explicitly referenced.  Since portable code cannot
15662   # rely on this symbol name, it's probably fine to never include it in
15663   # preloaded symbol tables.
15664   # Exclude shared library initialization/finalization symbols.
15665   extract_expsyms_cmds=
15666
15667   case $host_os in
15668   cygwin* | mingw* | pw32* | cegcc*)
15669     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15670     # When not using gcc, we currently assume that we are using
15671     # Microsoft Visual C++.
15672     if test "$GCC" != yes; then
15673       with_gnu_ld=no
15674     fi
15675     ;;
15676   interix*)
15677     # we just hope/assume this is gcc and not c89 (= MSVC++)
15678     with_gnu_ld=yes
15679     ;;
15680   openbsd*)
15681     with_gnu_ld=no
15682     ;;
15683   esac
15684
15685   ld_shlibs=yes
15686
15687   # On some targets, GNU ld is compatible enough with the native linker
15688   # that we're better off using the native interface for both.
15689   lt_use_gnu_ld_interface=no
15690   if test "$with_gnu_ld" = yes; then
15691     case $host_os in
15692       aix*)
15693         # The AIX port of GNU ld has always aspired to compatibility
15694         # with the native linker.  However, as the warning in the GNU ld
15695         # block says, versions before 2.19.5* couldn't really create working
15696         # shared libraries, regardless of the interface used.
15697         case `$LD -v 2>&1` in
15698           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15699           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15700           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15701           *)
15702             lt_use_gnu_ld_interface=yes
15703             ;;
15704         esac
15705         ;;
15706       *)
15707         lt_use_gnu_ld_interface=yes
15708         ;;
15709     esac
15710   fi
15711
15712   if test "$lt_use_gnu_ld_interface" = yes; then
15713     # If archive_cmds runs LD, not CC, wlarc should be empty
15714     wlarc='${wl}'
15715
15716     # Set some defaults for GNU ld with shared library support. These
15717     # are reset later if shared libraries are not supported. Putting them
15718     # here allows them to be overridden if necessary.
15719     runpath_var=LD_RUN_PATH
15720     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15721     export_dynamic_flag_spec='${wl}--export-dynamic'
15722     # ancient GNU ld didn't support --whole-archive et. al.
15723     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15724       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15725     else
15726       whole_archive_flag_spec=
15727     fi
15728     supports_anon_versioning=no
15729     case `$LD -v 2>&1` in
15730       *GNU\ gold*) supports_anon_versioning=yes ;;
15731       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15732       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15733       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15734       *\ 2.11.*) ;; # other 2.11 versions
15735       *) supports_anon_versioning=yes ;;
15736     esac
15737
15738     # See if GNU ld supports shared libraries.
15739     case $host_os in
15740     aix[3-9]*)
15741       # On AIX/PPC, the GNU linker is very broken
15742       if test "$host_cpu" != ia64; then
15743         ld_shlibs=no
15744         cat <<_LT_EOF 1>&2
15745
15746 *** Warning: the GNU linker, at least up to release 2.19, is reported
15747 *** to be unable to reliably create shared libraries on AIX.
15748 *** Therefore, libtool is disabling shared libraries support.  If you
15749 *** really care for shared libraries, you may want to install binutils
15750 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15751 *** You will then need to restart the configuration process.
15752
15753 _LT_EOF
15754       fi
15755       ;;
15756
15757     amigaos*)
15758       case $host_cpu in
15759       powerpc)
15760             # see comment about AmigaOS4 .so support
15761             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15762             archive_expsym_cmds=''
15763         ;;
15764       m68k)
15765             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)'
15766             hardcode_libdir_flag_spec='-L$libdir'
15767             hardcode_minus_L=yes
15768         ;;
15769       esac
15770       ;;
15771
15772     beos*)
15773       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15774         allow_undefined_flag=unsupported
15775         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15776         # support --undefined.  This deserves some investigation.  FIXME
15777         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778       else
15779         ld_shlibs=no
15780       fi
15781       ;;
15782
15783     cygwin* | mingw* | pw32* | cegcc*)
15784       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15785       # as there is no search path for DLLs.
15786       hardcode_libdir_flag_spec='-L$libdir'
15787       export_dynamic_flag_spec='${wl}--export-all-symbols'
15788       allow_undefined_flag=unsupported
15789       always_export_symbols=no
15790       enable_shared_with_static_runtimes=yes
15791       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15792
15793       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15794         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15795         # If the export-symbols file already is a .def file (1st line
15796         # is EXPORTS), use it as is; otherwise, prepend...
15797         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15798           cp $export_symbols $output_objdir/$soname.def;
15799         else
15800           echo EXPORTS > $output_objdir/$soname.def;
15801           cat $export_symbols >> $output_objdir/$soname.def;
15802         fi~
15803         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15804       else
15805         ld_shlibs=no
15806       fi
15807       ;;
15808
15809     haiku*)
15810       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811       link_all_deplibs=yes
15812       ;;
15813
15814     interix[3-9]*)
15815       hardcode_direct=no
15816       hardcode_shlibpath_var=no
15817       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15818       export_dynamic_flag_spec='${wl}-E'
15819       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15820       # Instead, shared libraries are loaded at an image base (0x10000000 by
15821       # default) and relocated if they conflict, which is a slow very memory
15822       # consuming and fragmenting process.  To avoid this, we pick a random,
15823       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15824       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15825       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15826       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'
15827       ;;
15828
15829     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15830       tmp_diet=no
15831       if test "$host_os" = linux-dietlibc; then
15832         case $cc_basename in
15833           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15834         esac
15835       fi
15836       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15837          && test "$tmp_diet" = no
15838       then
15839         tmp_addflag=
15840         tmp_sharedflag='-shared'
15841         case $cc_basename,$host_cpu in
15842         pgcc*)                          # Portland Group C compiler
15843           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'
15844           tmp_addflag=' $pic_flag'
15845           ;;
15846         pgf77* | pgf90* | pgf95* | pgfortran*)
15847                                         # Portland Group f77 and f90 compilers
15848           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'
15849           tmp_addflag=' $pic_flag -Mnomain' ;;
15850         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15851           tmp_addflag=' -i_dynamic' ;;
15852         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15853           tmp_addflag=' -i_dynamic -nofor_main' ;;
15854         ifc* | ifort*)                  # Intel Fortran compiler
15855           tmp_addflag=' -nofor_main' ;;
15856         lf95*)                          # Lahey Fortran 8.1
15857           whole_archive_flag_spec=
15858           tmp_sharedflag='--shared' ;;
15859         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15860           tmp_sharedflag='-qmkshrobj'
15861           tmp_addflag= ;;
15862         nvcc*)  # Cuda Compiler Driver 2.2
15863           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'
15864           compiler_needs_object=yes
15865           ;;
15866         esac
15867         case `$CC -V 2>&1 | sed 5q` in
15868         *Sun\ C*)                       # Sun C 5.9
15869           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'
15870           compiler_needs_object=yes
15871           tmp_sharedflag='-G' ;;
15872         *Sun\ F*)                       # Sun Fortran 8.3
15873           tmp_sharedflag='-G' ;;
15874         esac
15875         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15876
15877         if test "x$supports_anon_versioning" = xyes; then
15878           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15879             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15880             echo "local: *; };" >> $output_objdir/$libname.ver~
15881             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15882         fi
15883
15884         case $cc_basename in
15885         xlf* | bgf* | bgxlf* | mpixlf*)
15886           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15887           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15888           hardcode_libdir_flag_spec=
15889           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15890           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15891           if test "x$supports_anon_versioning" = xyes; then
15892             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15893               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15894               echo "local: *; };" >> $output_objdir/$libname.ver~
15895               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15896           fi
15897           ;;
15898         esac
15899       else
15900         ld_shlibs=no
15901       fi
15902       ;;
15903
15904     netbsd*)
15905       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15906         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15907         wlarc=
15908       else
15909         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15910         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15911       fi
15912       ;;
15913
15914     solaris*)
15915       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15916         ld_shlibs=no
15917         cat <<_LT_EOF 1>&2
15918
15919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15920 *** create shared libraries on Solaris systems.  Therefore, libtool
15921 *** is disabling shared libraries support.  We urge you to upgrade GNU
15922 *** binutils to release 2.9.1 or newer.  Another option is to modify
15923 *** your PATH or compiler configuration so that the native linker is
15924 *** used, and then restart.
15925
15926 _LT_EOF
15927       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15928         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15929         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15930       else
15931         ld_shlibs=no
15932       fi
15933       ;;
15934
15935     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15936       case `$LD -v 2>&1` in
15937         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15938         ld_shlibs=no
15939         cat <<_LT_EOF 1>&2
15940
15941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15942 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15943 *** is disabling shared libraries support.  We urge you to upgrade GNU
15944 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15945 *** your PATH or compiler configuration so that the native linker is
15946 *** used, and then restart.
15947
15948 _LT_EOF
15949         ;;
15950         *)
15951           # For security reasons, it is highly recommended that you always
15952           # use absolute paths for naming shared libraries, and exclude the
15953           # DT_RUNPATH tag from executables and libraries.  But doing so
15954           # requires that you compile everything twice, which is a pain.
15955           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15956             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15958             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15959           else
15960             ld_shlibs=no
15961           fi
15962         ;;
15963       esac
15964       ;;
15965
15966     sunos4*)
15967       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15968       wlarc=
15969       hardcode_direct=yes
15970       hardcode_shlibpath_var=no
15971       ;;
15972
15973     *)
15974       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15975         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15977       else
15978         ld_shlibs=no
15979       fi
15980       ;;
15981     esac
15982
15983     if test "$ld_shlibs" = no; then
15984       runpath_var=
15985       hardcode_libdir_flag_spec=
15986       export_dynamic_flag_spec=
15987       whole_archive_flag_spec=
15988     fi
15989   else
15990     # PORTME fill in a description of your system's linker (not GNU ld)
15991     case $host_os in
15992     aix3*)
15993       allow_undefined_flag=unsupported
15994       always_export_symbols=yes
15995       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'
15996       # Note: this linker hardcodes the directories in LIBPATH if there
15997       # are no directories specified by -L.
15998       hardcode_minus_L=yes
15999       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16000         # Neither direct hardcoding nor static linking is supported with a
16001         # broken collect2.
16002         hardcode_direct=unsupported
16003       fi
16004       ;;
16005
16006     aix[4-9]*)
16007       if test "$host_cpu" = ia64; then
16008         # On IA64, the linker does run time linking by default, so we don't
16009         # have to do anything special.
16010         aix_use_runtimelinking=no
16011         exp_sym_flag='-Bexport'
16012         no_entry_flag=""
16013       else
16014         # If we're using GNU nm, then we don't want the "-C" option.
16015         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16016         # Also, AIX nm treats weak defined symbols like other global
16017         # defined symbols, whereas GNU nm marks them as "W".
16018         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16019           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'
16020         else
16021           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'
16022         fi
16023         aix_use_runtimelinking=no
16024
16025         # Test if we are trying to use run time linking or normal
16026         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16027         # need to do runtime linking.
16028         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16029           for ld_flag in $LDFLAGS; do
16030           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16031             aix_use_runtimelinking=yes
16032             break
16033           fi
16034           done
16035           ;;
16036         esac
16037
16038         exp_sym_flag='-bexport'
16039         no_entry_flag='-bnoentry'
16040       fi
16041
16042       # When large executables or shared objects are built, AIX ld can
16043       # have problems creating the table of contents.  If linking a library
16044       # or program results in "error TOC overflow" add -mminimal-toc to
16045       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16046       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16047
16048       archive_cmds=''
16049       hardcode_direct=yes
16050       hardcode_direct_absolute=yes
16051       hardcode_libdir_separator=':'
16052       link_all_deplibs=yes
16053       file_list_spec='${wl}-f,'
16054
16055       if test "$GCC" = yes; then
16056         case $host_os in aix4.[012]|aix4.[012].*)
16057         # We only want to do this on AIX 4.2 and lower, the check
16058         # below for broken collect2 doesn't work under 4.3+
16059           collect2name=`${CC} -print-prog-name=collect2`
16060           if test -f "$collect2name" &&
16061            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16062           then
16063           # We have reworked collect2
16064           :
16065           else
16066           # We have old collect2
16067           hardcode_direct=unsupported
16068           # It fails to find uninstalled libraries when the uninstalled
16069           # path is not listed in the libpath.  Setting hardcode_minus_L
16070           # to unsupported forces relinking
16071           hardcode_minus_L=yes
16072           hardcode_libdir_flag_spec='-L$libdir'
16073           hardcode_libdir_separator=
16074           fi
16075           ;;
16076         esac
16077         shared_flag='-shared'
16078         if test "$aix_use_runtimelinking" = yes; then
16079           shared_flag="$shared_flag "'${wl}-G'
16080         fi
16081       else
16082         # not using gcc
16083         if test "$host_cpu" = ia64; then
16084         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16085         # chokes on -Wl,-G. The following line is correct:
16086           shared_flag='-G'
16087         else
16088           if test "$aix_use_runtimelinking" = yes; then
16089             shared_flag='${wl}-G'
16090           else
16091             shared_flag='${wl}-bM:SRE'
16092           fi
16093         fi
16094       fi
16095
16096       export_dynamic_flag_spec='${wl}-bexpall'
16097       # It seems that -bexpall does not export symbols beginning with
16098       # underscore (_), so it is better to generate a list of symbols to export.
16099       always_export_symbols=yes
16100       if test "$aix_use_runtimelinking" = yes; then
16101         # Warning - without using the other runtime loading flags (-brtl),
16102         # -berok will link without error, but may produce a broken library.
16103         allow_undefined_flag='-berok'
16104         # Determine the default libpath from the value encoded in an
16105         # empty executable.
16106         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h.  */
16108
16109 int
16110 main ()
16111 {
16112
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 if ac_fn_c_try_link "$LINENO"; then :
16118
16119 lt_aix_libpath_sed='
16120     /Import File Strings/,/^$/ {
16121         /^0/ {
16122             s/^0  *\(.*\)$/\1/
16123             p
16124         }
16125     }'
16126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16127 # Check for a 64-bit object if we didn't find anything.
16128 if test -z "$aix_libpath"; then
16129   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16130 fi
16131 fi
16132 rm -f core conftest.err conftest.$ac_objext \
16133     conftest$ac_exeext conftest.$ac_ext
16134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16135
16136         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16137         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"
16138       else
16139         if test "$host_cpu" = ia64; then
16140           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16141           allow_undefined_flag="-z nodefs"
16142           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"
16143         else
16144          # Determine the default libpath from the value encoded in an
16145          # empty executable.
16146          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h.  */
16148
16149 int
16150 main ()
16151 {
16152
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 if ac_fn_c_try_link "$LINENO"; then :
16158
16159 lt_aix_libpath_sed='
16160     /Import File Strings/,/^$/ {
16161         /^0/ {
16162             s/^0  *\(.*\)$/\1/
16163             p
16164         }
16165     }'
16166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16167 # Check for a 64-bit object if we didn't find anything.
16168 if test -z "$aix_libpath"; then
16169   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16170 fi
16171 fi
16172 rm -f core conftest.err conftest.$ac_objext \
16173     conftest$ac_exeext conftest.$ac_ext
16174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16175
16176          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16177           # Warning - without using the other run time loading flags,
16178           # -berok will link without error, but may produce a broken library.
16179           no_undefined_flag=' ${wl}-bernotok'
16180           allow_undefined_flag=' ${wl}-berok'
16181           if test "$with_gnu_ld" = yes; then
16182             # We only use this code for GNU lds that support --whole-archive.
16183             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16184           else
16185             # Exported symbols can be pulled into shared objects from archives
16186             whole_archive_flag_spec='$convenience'
16187           fi
16188           archive_cmds_need_lc=yes
16189           # This is similar to how AIX traditionally builds its shared libraries.
16190           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'
16191         fi
16192       fi
16193       ;;
16194
16195     amigaos*)
16196       case $host_cpu in
16197       powerpc)
16198             # see comment about AmigaOS4 .so support
16199             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200             archive_expsym_cmds=''
16201         ;;
16202       m68k)
16203             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)'
16204             hardcode_libdir_flag_spec='-L$libdir'
16205             hardcode_minus_L=yes
16206         ;;
16207       esac
16208       ;;
16209
16210     bsdi[45]*)
16211       export_dynamic_flag_spec=-rdynamic
16212       ;;
16213
16214     cygwin* | mingw* | pw32* | cegcc*)
16215       # When not using gcc, we currently assume that we are using
16216       # Microsoft Visual C++.
16217       # hardcode_libdir_flag_spec is actually meaningless, as there is
16218       # no search path for DLLs.
16219       hardcode_libdir_flag_spec=' '
16220       allow_undefined_flag=unsupported
16221       # Tell ltmain to make .lib files, not .a files.
16222       libext=lib
16223       # Tell ltmain to make .dll files, not .so files.
16224       shrext_cmds=".dll"
16225       # FIXME: Setting linknames here is a bad hack.
16226       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16227       # The linker will automatically build a .lib file if we build a DLL.
16228       old_archive_from_new_cmds='true'
16229       # FIXME: Should let the user specify the lib program.
16230       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16231       fix_srcfile_path='`cygpath -w "$srcfile"`'
16232       enable_shared_with_static_runtimes=yes
16233       ;;
16234
16235     darwin* | rhapsody*)
16236
16237
16238   archive_cmds_need_lc=no
16239   hardcode_direct=no
16240   hardcode_automatic=yes
16241   hardcode_shlibpath_var=unsupported
16242   if test "$lt_cv_ld_force_load" = "yes"; then
16243     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\"`'
16244   else
16245     whole_archive_flag_spec=''
16246   fi
16247   link_all_deplibs=yes
16248   allow_undefined_flag="$_lt_dar_allow_undefined"
16249   case $cc_basename in
16250      ifort*) _lt_dar_can_shared=yes ;;
16251      *) _lt_dar_can_shared=$GCC ;;
16252   esac
16253   if test "$_lt_dar_can_shared" = "yes"; then
16254     output_verbose_link_cmd=func_echo_all
16255     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16256     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16257     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}"
16258     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}"
16259
16260   else
16261   ld_shlibs=no
16262   fi
16263
16264       ;;
16265
16266     dgux*)
16267       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268       hardcode_libdir_flag_spec='-L$libdir'
16269       hardcode_shlibpath_var=no
16270       ;;
16271
16272     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16273     # support.  Future versions do this automatically, but an explicit c++rt0.o
16274     # does not break anything, and helps significantly (at the cost of a little
16275     # extra space).
16276     freebsd2.2*)
16277       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16278       hardcode_libdir_flag_spec='-R$libdir'
16279       hardcode_direct=yes
16280       hardcode_shlibpath_var=no
16281       ;;
16282
16283     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16284     freebsd2.*)
16285       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16286       hardcode_direct=yes
16287       hardcode_minus_L=yes
16288       hardcode_shlibpath_var=no
16289       ;;
16290
16291     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16292     freebsd* | dragonfly*)
16293       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16294       hardcode_libdir_flag_spec='-R$libdir'
16295       hardcode_direct=yes
16296       hardcode_shlibpath_var=no
16297       ;;
16298
16299     hpux9*)
16300       if test "$GCC" = yes; then
16301         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'
16302       else
16303         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'
16304       fi
16305       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16306       hardcode_libdir_separator=:
16307       hardcode_direct=yes
16308
16309       # hardcode_minus_L: Not really in the search PATH,
16310       # but as the default location of the library.
16311       hardcode_minus_L=yes
16312       export_dynamic_flag_spec='${wl}-E'
16313       ;;
16314
16315     hpux10*)
16316       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16317         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16318       else
16319         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16320       fi
16321       if test "$with_gnu_ld" = no; then
16322         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16323         hardcode_libdir_flag_spec_ld='+b $libdir'
16324         hardcode_libdir_separator=:
16325         hardcode_direct=yes
16326         hardcode_direct_absolute=yes
16327         export_dynamic_flag_spec='${wl}-E'
16328         # hardcode_minus_L: Not really in the search PATH,
16329         # but as the default location of the library.
16330         hardcode_minus_L=yes
16331       fi
16332       ;;
16333
16334     hpux11*)
16335       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16336         case $host_cpu in
16337         hppa*64*)
16338           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16339           ;;
16340         ia64*)
16341           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16342           ;;
16343         *)
16344           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16345           ;;
16346         esac
16347       else
16348         case $host_cpu in
16349         hppa*64*)
16350           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16351           ;;
16352         ia64*)
16353           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16354           ;;
16355         *)
16356
16357           # Older versions of the 11.00 compiler do not understand -b yet
16358           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16359           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16360 $as_echo_n "checking if $CC understands -b... " >&6; }
16361 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16362   $as_echo_n "(cached) " >&6
16363 else
16364   lt_cv_prog_compiler__b=no
16365    save_LDFLAGS="$LDFLAGS"
16366    LDFLAGS="$LDFLAGS -b"
16367    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16368    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16369      # The linker can only warn and ignore the option if not recognized
16370      # So say no if there are warnings
16371      if test -s conftest.err; then
16372        # Append any errors to the config.log.
16373        cat conftest.err 1>&5
16374        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16375        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16376        if diff conftest.exp conftest.er2 >/dev/null; then
16377          lt_cv_prog_compiler__b=yes
16378        fi
16379      else
16380        lt_cv_prog_compiler__b=yes
16381      fi
16382    fi
16383    $RM -r conftest*
16384    LDFLAGS="$save_LDFLAGS"
16385
16386 fi
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16388 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16389
16390 if test x"$lt_cv_prog_compiler__b" = xyes; then
16391     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16392 else
16393     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16394 fi
16395
16396           ;;
16397         esac
16398       fi
16399       if test "$with_gnu_ld" = no; then
16400         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16401         hardcode_libdir_separator=:
16402
16403         case $host_cpu in
16404         hppa*64*|ia64*)
16405           hardcode_direct=no
16406           hardcode_shlibpath_var=no
16407           ;;
16408         *)
16409           hardcode_direct=yes
16410           hardcode_direct_absolute=yes
16411           export_dynamic_flag_spec='${wl}-E'
16412
16413           # hardcode_minus_L: Not really in the search PATH,
16414           # but as the default location of the library.
16415           hardcode_minus_L=yes
16416           ;;
16417         esac
16418       fi
16419       ;;
16420
16421     irix5* | irix6* | nonstopux*)
16422       if test "$GCC" = yes; then
16423         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'
16424         # Try to use the -exported_symbol ld option, if it does not
16425         # work, assume that -exports_file does not work either and
16426         # implicitly export all symbols.
16427         save_LDFLAGS="$LDFLAGS"
16428         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16429         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h.  */
16431 int foo(void) {}
16432 _ACEOF
16433 if ac_fn_c_try_link "$LINENO"; then :
16434   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'
16435
16436 fi
16437 rm -f core conftest.err conftest.$ac_objext \
16438     conftest$ac_exeext conftest.$ac_ext
16439         LDFLAGS="$save_LDFLAGS"
16440       else
16441         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'
16442         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'
16443       fi
16444       archive_cmds_need_lc='no'
16445       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16446       hardcode_libdir_separator=:
16447       inherit_rpath=yes
16448       link_all_deplibs=yes
16449       ;;
16450
16451     netbsd*)
16452       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16453         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16454       else
16455         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16456       fi
16457       hardcode_libdir_flag_spec='-R$libdir'
16458       hardcode_direct=yes
16459       hardcode_shlibpath_var=no
16460       ;;
16461
16462     newsos6)
16463       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464       hardcode_direct=yes
16465       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16466       hardcode_libdir_separator=:
16467       hardcode_shlibpath_var=no
16468       ;;
16469
16470     *nto* | *qnx*)
16471       ;;
16472
16473     openbsd*)
16474       if test -f /usr/libexec/ld.so; then
16475         hardcode_direct=yes
16476         hardcode_shlibpath_var=no
16477         hardcode_direct_absolute=yes
16478         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16479           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16480           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16481           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16482           export_dynamic_flag_spec='${wl}-E'
16483         else
16484           case $host_os in
16485            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16486              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16487              hardcode_libdir_flag_spec='-R$libdir'
16488              ;;
16489            *)
16490              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16491              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16492              ;;
16493           esac
16494         fi
16495       else
16496         ld_shlibs=no
16497       fi
16498       ;;
16499
16500     os2*)
16501       hardcode_libdir_flag_spec='-L$libdir'
16502       hardcode_minus_L=yes
16503       allow_undefined_flag=unsupported
16504       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'
16505       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16506       ;;
16507
16508     osf3*)
16509       if test "$GCC" = yes; then
16510         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16511         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'
16512       else
16513         allow_undefined_flag=' -expect_unresolved \*'
16514         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'
16515       fi
16516       archive_cmds_need_lc='no'
16517       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16518       hardcode_libdir_separator=:
16519       ;;
16520
16521     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16522       if test "$GCC" = yes; then
16523         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16524         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'
16525         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16526       else
16527         allow_undefined_flag=' -expect_unresolved \*'
16528         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'
16529         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~
16530         $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'
16531
16532         # Both c and cxx compiler support -rpath directly
16533         hardcode_libdir_flag_spec='-rpath $libdir'
16534       fi
16535       archive_cmds_need_lc='no'
16536       hardcode_libdir_separator=:
16537       ;;
16538
16539     solaris*)
16540       no_undefined_flag=' -z defs'
16541       if test "$GCC" = yes; then
16542         wlarc='${wl}'
16543         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16544         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16545           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16546       else
16547         case `$CC -V 2>&1` in
16548         *"Compilers 5.0"*)
16549           wlarc=''
16550           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16552           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16553           ;;
16554         *)
16555           wlarc='${wl}'
16556           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16557           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16558           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16559           ;;
16560         esac
16561       fi
16562       hardcode_libdir_flag_spec='-R$libdir'
16563       hardcode_shlibpath_var=no
16564       case $host_os in
16565       solaris2.[0-5] | solaris2.[0-5].*) ;;
16566       *)
16567         # The compiler driver will combine and reorder linker options,
16568         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16569         # but is careful enough not to reorder.
16570         # Supported since Solaris 2.6 (maybe 2.5.1?)
16571         if test "$GCC" = yes; then
16572           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16573         else
16574           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16575         fi
16576         ;;
16577       esac
16578       link_all_deplibs=yes
16579       ;;
16580
16581     sunos4*)
16582       if test "x$host_vendor" = xsequent; then
16583         # Use $CC to link under sequent, because it throws in some extra .o
16584         # files that make .init and .fini sections work.
16585         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16586       else
16587         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16588       fi
16589       hardcode_libdir_flag_spec='-L$libdir'
16590       hardcode_direct=yes
16591       hardcode_minus_L=yes
16592       hardcode_shlibpath_var=no
16593       ;;
16594
16595     sysv4)
16596       case $host_vendor in
16597         sni)
16598           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599           hardcode_direct=yes # is this really true???
16600         ;;
16601         siemens)
16602           ## LD is ld it makes a PLAMLIB
16603           ## CC just makes a GrossModule.
16604           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16605           reload_cmds='$CC -r -o $output$reload_objs'
16606           hardcode_direct=no
16607         ;;
16608         motorola)
16609           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16610           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16611         ;;
16612       esac
16613       runpath_var='LD_RUN_PATH'
16614       hardcode_shlibpath_var=no
16615       ;;
16616
16617     sysv4.3*)
16618       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619       hardcode_shlibpath_var=no
16620       export_dynamic_flag_spec='-Bexport'
16621       ;;
16622
16623     sysv4*MP*)
16624       if test -d /usr/nec; then
16625         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626         hardcode_shlibpath_var=no
16627         runpath_var=LD_RUN_PATH
16628         hardcode_runpath_var=yes
16629         ld_shlibs=yes
16630       fi
16631       ;;
16632
16633     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16634       no_undefined_flag='${wl}-z,text'
16635       archive_cmds_need_lc=no
16636       hardcode_shlibpath_var=no
16637       runpath_var='LD_RUN_PATH'
16638
16639       if test "$GCC" = yes; then
16640         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16641         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16642       else
16643         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16644         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16645       fi
16646       ;;
16647
16648     sysv5* | sco3.2v5* | sco5v6*)
16649       # Note: We can NOT use -z defs as we might desire, because we do not
16650       # link with -lc, and that would cause any symbols used from libc to
16651       # always be unresolved, which means just about no library would
16652       # ever link correctly.  If we're not using GNU ld we use -z text
16653       # though, which does catch some bad symbols but isn't as heavy-handed
16654       # as -z defs.
16655       no_undefined_flag='${wl}-z,text'
16656       allow_undefined_flag='${wl}-z,nodefs'
16657       archive_cmds_need_lc=no
16658       hardcode_shlibpath_var=no
16659       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16660       hardcode_libdir_separator=':'
16661       link_all_deplibs=yes
16662       export_dynamic_flag_spec='${wl}-Bexport'
16663       runpath_var='LD_RUN_PATH'
16664
16665       if test "$GCC" = yes; then
16666         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16668       else
16669         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16671       fi
16672       ;;
16673
16674     uts4*)
16675       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676       hardcode_libdir_flag_spec='-L$libdir'
16677       hardcode_shlibpath_var=no
16678       ;;
16679
16680     *)
16681       ld_shlibs=no
16682       ;;
16683     esac
16684
16685     if test x$host_vendor = xsni; then
16686       case $host in
16687       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16688         export_dynamic_flag_spec='${wl}-Blargedynsym'
16689         ;;
16690       esac
16691     fi
16692   fi
16693
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16695 $as_echo "$ld_shlibs" >&6; }
16696 test "$ld_shlibs" = no && can_build_shared=no
16697
16698 with_gnu_ld=$with_gnu_ld
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714 #
16715 # Do we need to explicitly link libc?
16716 #
16717 case "x$archive_cmds_need_lc" in
16718 x|xyes)
16719   # Assume -lc should be added
16720   archive_cmds_need_lc=yes
16721
16722   if test "$enable_shared" = yes && test "$GCC" = yes; then
16723     case $archive_cmds in
16724     *'~'*)
16725       # FIXME: we may have to deal with multi-command sequences.
16726       ;;
16727     '$CC '*)
16728       # Test whether the compiler implicitly links with -lc since on some
16729       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16730       # to ld, don't add -lc before -lgcc.
16731       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16733 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16734   $as_echo_n "(cached) " >&6
16735 else
16736   $RM conftest*
16737         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16738
16739         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16740   (eval $ac_compile) 2>&5
16741   ac_status=$?
16742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16743   test $ac_status = 0; } 2>conftest.err; then
16744           soname=conftest
16745           lib=conftest
16746           libobjs=conftest.$ac_objext
16747           deplibs=
16748           wl=$lt_prog_compiler_wl
16749           pic_flag=$lt_prog_compiler_pic
16750           compiler_flags=-v
16751           linker_flags=-v
16752           verstring=
16753           output_objdir=.
16754           libname=conftest
16755           lt_save_allow_undefined_flag=$allow_undefined_flag
16756           allow_undefined_flag=
16757           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16758   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16759   ac_status=$?
16760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761   test $ac_status = 0; }
16762           then
16763             lt_cv_archive_cmds_need_lc=no
16764           else
16765             lt_cv_archive_cmds_need_lc=yes
16766           fi
16767           allow_undefined_flag=$lt_save_allow_undefined_flag
16768         else
16769           cat conftest.err 1>&5
16770         fi
16771         $RM conftest*
16772
16773 fi
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16775 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16776       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16777       ;;
16778     esac
16779   fi
16780   ;;
16781 esac
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16941
16942 if test "$GCC" = yes; then
16943   case $host_os in
16944     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16945     *) lt_awk_arg="/^libraries:/" ;;
16946   esac
16947   case $host_os in
16948     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16949     *) lt_sed_strip_eq="s,=/,/,g" ;;
16950   esac
16951   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16952   case $lt_search_path_spec in
16953   *\;*)
16954     # if the path contains ";" then we assume it to be the separator
16955     # otherwise default to the standard path separator (i.e. ":") - it is
16956     # assumed that no part of a normal pathname contains ";" but that should
16957     # okay in the real world where ";" in dirpaths is itself problematic.
16958     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16959     ;;
16960   *)
16961     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16962     ;;
16963   esac
16964   # Ok, now we have the path, separated by spaces, we can step through it
16965   # and add multilib dir if necessary.
16966   lt_tmp_lt_search_path_spec=
16967   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16968   for lt_sys_path in $lt_search_path_spec; do
16969     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16970       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16971     else
16972       test -d "$lt_sys_path" && \
16973         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16974     fi
16975   done
16976   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16977 BEGIN {RS=" "; FS="/|\n";} {
16978   lt_foo="";
16979   lt_count=0;
16980   for (lt_i = NF; lt_i > 0; lt_i--) {
16981     if ($lt_i != "" && $lt_i != ".") {
16982       if ($lt_i == "..") {
16983         lt_count++;
16984       } else {
16985         if (lt_count == 0) {
16986           lt_foo="/" $lt_i lt_foo;
16987         } else {
16988           lt_count--;
16989         }
16990       }
16991     }
16992   }
16993   if (lt_foo != "") { lt_freq[lt_foo]++; }
16994   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16995 }'`
16996   # AWK program above erroneously prepends '/' to C:/dos/paths
16997   # for these hosts.
16998   case $host_os in
16999     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17000       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17001   esac
17002   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17003 else
17004   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17005 fi
17006 library_names_spec=
17007 libname_spec='lib$name'
17008 soname_spec=
17009 shrext_cmds=".so"
17010 postinstall_cmds=
17011 postuninstall_cmds=
17012 finish_cmds=
17013 finish_eval=
17014 shlibpath_var=
17015 shlibpath_overrides_runpath=unknown
17016 version_type=none
17017 dynamic_linker="$host_os ld.so"
17018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17019 need_lib_prefix=unknown
17020 hardcode_into_libs=no
17021
17022 # when you set need_version to no, make sure it does not cause -set_version
17023 # flags to be left without arguments
17024 need_version=unknown
17025
17026 case $host_os in
17027 aix3*)
17028   version_type=linux
17029   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17030   shlibpath_var=LIBPATH
17031
17032   # AIX 3 has no versioning support, so we append a major version to the name.
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   ;;
17035
17036 aix[4-9]*)
17037   version_type=linux
17038   need_lib_prefix=no
17039   need_version=no
17040   hardcode_into_libs=yes
17041   if test "$host_cpu" = ia64; then
17042     # AIX 5 supports IA64
17043     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17044     shlibpath_var=LD_LIBRARY_PATH
17045   else
17046     # With GCC up to 2.95.x, collect2 would create an import file
17047     # for dependence libraries.  The import file would start with
17048     # the line `#! .'.  This would cause the generated library to
17049     # depend on `.', always an invalid library.  This was fixed in
17050     # development snapshots of GCC prior to 3.0.
17051     case $host_os in
17052       aix4 | aix4.[01] | aix4.[01].*)
17053       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17054            echo ' yes '
17055            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17056         :
17057       else
17058         can_build_shared=no
17059       fi
17060       ;;
17061     esac
17062     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17063     # soname into executable. Probably we can add versioning support to
17064     # collect2, so additional links can be useful in future.
17065     if test "$aix_use_runtimelinking" = yes; then
17066       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17067       # instead of lib<name>.a to let people know that these are not
17068       # typical AIX shared libraries.
17069       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070     else
17071       # We preserve .a as extension for shared libraries through AIX4.2
17072       # and later when we are not doing run time linking.
17073       library_names_spec='${libname}${release}.a $libname.a'
17074       soname_spec='${libname}${release}${shared_ext}$major'
17075     fi
17076     shlibpath_var=LIBPATH
17077   fi
17078   ;;
17079
17080 amigaos*)
17081   case $host_cpu in
17082   powerpc)
17083     # Since July 2007 AmigaOS4 officially supports .so libraries.
17084     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086     ;;
17087   m68k)
17088     library_names_spec='$libname.ixlibrary $libname.a'
17089     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17090     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'
17091     ;;
17092   esac
17093   ;;
17094
17095 beos*)
17096   library_names_spec='${libname}${shared_ext}'
17097   dynamic_linker="$host_os ld.so"
17098   shlibpath_var=LIBRARY_PATH
17099   ;;
17100
17101 bsdi[45]*)
17102   version_type=linux
17103   need_version=no
17104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105   soname_spec='${libname}${release}${shared_ext}$major'
17106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17107   shlibpath_var=LD_LIBRARY_PATH
17108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17110   # the default ld.so.conf also contains /usr/contrib/lib and
17111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17112   # libtool to hard-code these into programs
17113   ;;
17114
17115 cygwin* | mingw* | pw32* | cegcc*)
17116   version_type=windows
17117   shrext_cmds=".dll"
17118   need_version=no
17119   need_lib_prefix=no
17120
17121   case $GCC,$host_os in
17122   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17123     library_names_spec='$libname.dll.a'
17124     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17125     postinstall_cmds='base_file=`basename \${file}`~
17126       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17127       dldir=$destdir/`dirname \$dlpath`~
17128       test -d \$dldir || mkdir -p \$dldir~
17129       $install_prog $dir/$dlname \$dldir/$dlname~
17130       chmod a+x \$dldir/$dlname~
17131       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17132         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17133       fi'
17134     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17135       dlpath=$dir/\$dldll~
17136        $RM \$dlpath'
17137     shlibpath_overrides_runpath=yes
17138
17139     case $host_os in
17140     cygwin*)
17141       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17142       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17143
17144       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17145       ;;
17146     mingw* | cegcc*)
17147       # MinGW DLLs use traditional 'lib' prefix
17148       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17149       ;;
17150     pw32*)
17151       # pw32 DLLs use 'pw' prefix rather than 'lib'
17152       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17153       ;;
17154     esac
17155     ;;
17156
17157   *)
17158     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17159     ;;
17160   esac
17161   dynamic_linker='Win32 ld.exe'
17162   # FIXME: first we should search . and the directory the executable is in
17163   shlibpath_var=PATH
17164   ;;
17165
17166 darwin* | rhapsody*)
17167   dynamic_linker="$host_os dyld"
17168   version_type=darwin
17169   need_lib_prefix=no
17170   need_version=no
17171   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17172   soname_spec='${libname}${release}${major}$shared_ext'
17173   shlibpath_overrides_runpath=yes
17174   shlibpath_var=DYLD_LIBRARY_PATH
17175   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17176
17177   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17178   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17179   ;;
17180
17181 dgux*)
17182   version_type=linux
17183   need_lib_prefix=no
17184   need_version=no
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17186   soname_spec='${libname}${release}${shared_ext}$major'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   ;;
17189
17190 freebsd* | dragonfly*)
17191   # DragonFly does not have aout.  When/if they implement a new
17192   # versioning mechanism, adjust this.
17193   if test -x /usr/bin/objformat; then
17194     objformat=`/usr/bin/objformat`
17195   else
17196     case $host_os in
17197     freebsd[23].*) objformat=aout ;;
17198     *) objformat=elf ;;
17199     esac
17200   fi
17201   version_type=freebsd-$objformat
17202   case $version_type in
17203     freebsd-elf*)
17204       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17205       need_version=no
17206       need_lib_prefix=no
17207       ;;
17208     freebsd-*)
17209       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17210       need_version=yes
17211       ;;
17212   esac
17213   shlibpath_var=LD_LIBRARY_PATH
17214   case $host_os in
17215   freebsd2.*)
17216     shlibpath_overrides_runpath=yes
17217     ;;
17218   freebsd3.[01]* | freebsdelf3.[01]*)
17219     shlibpath_overrides_runpath=yes
17220     hardcode_into_libs=yes
17221     ;;
17222   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17223   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17224     shlibpath_overrides_runpath=no
17225     hardcode_into_libs=yes
17226     ;;
17227   *) # from 4.6 on, and DragonFly
17228     shlibpath_overrides_runpath=yes
17229     hardcode_into_libs=yes
17230     ;;
17231   esac
17232   ;;
17233
17234 gnu*)
17235   version_type=linux
17236   need_lib_prefix=no
17237   need_version=no
17238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17239   soname_spec='${libname}${release}${shared_ext}$major'
17240   shlibpath_var=LD_LIBRARY_PATH
17241   hardcode_into_libs=yes
17242   ;;
17243
17244 haiku*)
17245   version_type=linux
17246   need_lib_prefix=no
17247   need_version=no
17248   dynamic_linker="$host_os runtime_loader"
17249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17250   soname_spec='${libname}${release}${shared_ext}$major'
17251   shlibpath_var=LIBRARY_PATH
17252   shlibpath_overrides_runpath=yes
17253   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17254   hardcode_into_libs=yes
17255   ;;
17256
17257 hpux9* | hpux10* | hpux11*)
17258   # Give a soname corresponding to the major version so that dld.sl refuses to
17259   # link against other versions.
17260   version_type=sunos
17261   need_lib_prefix=no
17262   need_version=no
17263   case $host_cpu in
17264   ia64*)
17265     shrext_cmds='.so'
17266     hardcode_into_libs=yes
17267     dynamic_linker="$host_os dld.so"
17268     shlibpath_var=LD_LIBRARY_PATH
17269     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271     soname_spec='${libname}${release}${shared_ext}$major'
17272     if test "X$HPUX_IA64_MODE" = X32; then
17273       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17274     else
17275       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17276     fi
17277     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17278     ;;
17279   hppa*64*)
17280     shrext_cmds='.sl'
17281     hardcode_into_libs=yes
17282     dynamic_linker="$host_os dld.sl"
17283     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286     soname_spec='${libname}${release}${shared_ext}$major'
17287     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17288     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17289     ;;
17290   *)
17291     shrext_cmds='.sl'
17292     dynamic_linker="$host_os dld.sl"
17293     shlibpath_var=SHLIB_PATH
17294     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296     soname_spec='${libname}${release}${shared_ext}$major'
17297     ;;
17298   esac
17299   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17300   postinstall_cmds='chmod 555 $lib'
17301   # or fails outright, so override atomically:
17302   install_override_mode=555
17303   ;;
17304
17305 interix[3-9]*)
17306   version_type=linux
17307   need_lib_prefix=no
17308   need_version=no
17309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17310   soname_spec='${libname}${release}${shared_ext}$major'
17311   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17312   shlibpath_var=LD_LIBRARY_PATH
17313   shlibpath_overrides_runpath=no
17314   hardcode_into_libs=yes
17315   ;;
17316
17317 irix5* | irix6* | nonstopux*)
17318   case $host_os in
17319     nonstopux*) version_type=nonstopux ;;
17320     *)
17321         if test "$lt_cv_prog_gnu_ld" = yes; then
17322                 version_type=linux
17323         else
17324                 version_type=irix
17325         fi ;;
17326   esac
17327   need_lib_prefix=no
17328   need_version=no
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17331   case $host_os in
17332   irix5* | nonstopux*)
17333     libsuff= shlibsuff=
17334     ;;
17335   *)
17336     case $LD in # libtool.m4 will add one of these switches to LD
17337     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17338       libsuff= shlibsuff= libmagic=32-bit;;
17339     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17340       libsuff=32 shlibsuff=N32 libmagic=N32;;
17341     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17342       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17343     *) libsuff= shlibsuff= libmagic=never-match;;
17344     esac
17345     ;;
17346   esac
17347   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17348   shlibpath_overrides_runpath=no
17349   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17350   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17351   hardcode_into_libs=yes
17352   ;;
17353
17354 # No shared lib support for Linux oldld, aout, or coff.
17355 linux*oldld* | linux*aout* | linux*coff*)
17356   dynamic_linker=no
17357   ;;
17358
17359 # This must be Linux ELF.
17360 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17361   version_type=linux
17362   need_lib_prefix=no
17363   need_version=no
17364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365   soname_spec='${libname}${release}${shared_ext}$major'
17366   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17367   shlibpath_var=LD_LIBRARY_PATH
17368   shlibpath_overrides_runpath=no
17369
17370   # Some binutils ld are patched to set DT_RUNPATH
17371   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17372   $as_echo_n "(cached) " >&6
17373 else
17374   lt_cv_shlibpath_overrides_runpath=no
17375     save_LDFLAGS=$LDFLAGS
17376     save_libdir=$libdir
17377     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17378          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380 /* end confdefs.h.  */
17381
17382 int
17383 main ()
17384 {
17385
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 if ac_fn_c_try_link "$LINENO"; then :
17391   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17392   lt_cv_shlibpath_overrides_runpath=yes
17393 fi
17394 fi
17395 rm -f core conftest.err conftest.$ac_objext \
17396     conftest$ac_exeext conftest.$ac_ext
17397     LDFLAGS=$save_LDFLAGS
17398     libdir=$save_libdir
17399
17400 fi
17401
17402   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17403
17404   # This implies no fast_install, which is unacceptable.
17405   # Some rework will be needed to allow for fast_install
17406   # before this can be enabled.
17407   hardcode_into_libs=yes
17408
17409   # Append ld.so.conf contents to the search path
17410   if test -f /etc/ld.so.conf; then
17411     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' ' '`
17412     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17413   fi
17414
17415   # We used to test for /lib/ld.so.1 and disable shared libraries on
17416   # powerpc, because MkLinux only supported shared libraries with the
17417   # GNU dynamic linker.  Since this was broken with cross compilers,
17418   # most powerpc-linux boxes support dynamic linking these days and
17419   # people can always --disable-shared, the test was removed, and we
17420   # assume the GNU/Linux dynamic linker is in use.
17421   dynamic_linker='GNU/Linux ld.so'
17422   ;;
17423
17424 netbsd*)
17425   version_type=sunos
17426   need_lib_prefix=no
17427   need_version=no
17428   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17430     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17431     dynamic_linker='NetBSD (a.out) ld.so'
17432   else
17433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17434     soname_spec='${libname}${release}${shared_ext}$major'
17435     dynamic_linker='NetBSD ld.elf_so'
17436   fi
17437   shlibpath_var=LD_LIBRARY_PATH
17438   shlibpath_overrides_runpath=yes
17439   hardcode_into_libs=yes
17440   ;;
17441
17442 newsos6)
17443   version_type=linux
17444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445   shlibpath_var=LD_LIBRARY_PATH
17446   shlibpath_overrides_runpath=yes
17447   ;;
17448
17449 *nto* | *qnx*)
17450   version_type=qnx
17451   need_lib_prefix=no
17452   need_version=no
17453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454   soname_spec='${libname}${release}${shared_ext}$major'
17455   shlibpath_var=LD_LIBRARY_PATH
17456   shlibpath_overrides_runpath=no
17457   hardcode_into_libs=yes
17458   dynamic_linker='ldqnx.so'
17459   ;;
17460
17461 openbsd*)
17462   version_type=sunos
17463   sys_lib_dlsearch_path_spec="/usr/lib"
17464   need_lib_prefix=no
17465   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17466   case $host_os in
17467     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17468     *)                          need_version=no  ;;
17469   esac
17470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17471   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17472   shlibpath_var=LD_LIBRARY_PATH
17473   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17474     case $host_os in
17475       openbsd2.[89] | openbsd2.[89].*)
17476         shlibpath_overrides_runpath=no
17477         ;;
17478       *)
17479         shlibpath_overrides_runpath=yes
17480         ;;
17481       esac
17482   else
17483     shlibpath_overrides_runpath=yes
17484   fi
17485   ;;
17486
17487 os2*)
17488   libname_spec='$name'
17489   shrext_cmds=".dll"
17490   need_lib_prefix=no
17491   library_names_spec='$libname${shared_ext} $libname.a'
17492   dynamic_linker='OS/2 ld.exe'
17493   shlibpath_var=LIBPATH
17494   ;;
17495
17496 osf3* | osf4* | osf5*)
17497   version_type=osf
17498   need_lib_prefix=no
17499   need_version=no
17500   soname_spec='${libname}${release}${shared_ext}$major'
17501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502   shlibpath_var=LD_LIBRARY_PATH
17503   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17504   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17505   ;;
17506
17507 rdos*)
17508   dynamic_linker=no
17509   ;;
17510
17511 solaris*)
17512   version_type=linux
17513   need_lib_prefix=no
17514   need_version=no
17515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17516   soname_spec='${libname}${release}${shared_ext}$major'
17517   shlibpath_var=LD_LIBRARY_PATH
17518   shlibpath_overrides_runpath=yes
17519   hardcode_into_libs=yes
17520   # ldd complains unless libraries are executable
17521   postinstall_cmds='chmod +x $lib'
17522   ;;
17523
17524 sunos4*)
17525   version_type=sunos
17526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17527   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17528   shlibpath_var=LD_LIBRARY_PATH
17529   shlibpath_overrides_runpath=yes
17530   if test "$with_gnu_ld" = yes; then
17531     need_lib_prefix=no
17532   fi
17533   need_version=yes
17534   ;;
17535
17536 sysv4 | sysv4.3*)
17537   version_type=linux
17538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539   soname_spec='${libname}${release}${shared_ext}$major'
17540   shlibpath_var=LD_LIBRARY_PATH
17541   case $host_vendor in
17542     sni)
17543       shlibpath_overrides_runpath=no
17544       need_lib_prefix=no
17545       runpath_var=LD_RUN_PATH
17546       ;;
17547     siemens)
17548       need_lib_prefix=no
17549       ;;
17550     motorola)
17551       need_lib_prefix=no
17552       need_version=no
17553       shlibpath_overrides_runpath=no
17554       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17555       ;;
17556   esac
17557   ;;
17558
17559 sysv4*MP*)
17560   if test -d /usr/nec ;then
17561     version_type=linux
17562     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17563     soname_spec='$libname${shared_ext}.$major'
17564     shlibpath_var=LD_LIBRARY_PATH
17565   fi
17566   ;;
17567
17568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17569   version_type=freebsd-elf
17570   need_lib_prefix=no
17571   need_version=no
17572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17573   soname_spec='${libname}${release}${shared_ext}$major'
17574   shlibpath_var=LD_LIBRARY_PATH
17575   shlibpath_overrides_runpath=yes
17576   hardcode_into_libs=yes
17577   if test "$with_gnu_ld" = yes; then
17578     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17579   else
17580     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17581     case $host_os in
17582       sco3.2v5*)
17583         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17584         ;;
17585     esac
17586   fi
17587   sys_lib_dlsearch_path_spec='/usr/lib'
17588   ;;
17589
17590 tpf*)
17591   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17592   version_type=linux
17593   need_lib_prefix=no
17594   need_version=no
17595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596   shlibpath_var=LD_LIBRARY_PATH
17597   shlibpath_overrides_runpath=no
17598   hardcode_into_libs=yes
17599   ;;
17600
17601 uts4*)
17602   version_type=linux
17603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604   soname_spec='${libname}${release}${shared_ext}$major'
17605   shlibpath_var=LD_LIBRARY_PATH
17606   ;;
17607
17608 *)
17609   dynamic_linker=no
17610   ;;
17611 esac
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17613 $as_echo "$dynamic_linker" >&6; }
17614 test "$dynamic_linker" = no && can_build_shared=no
17615
17616 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17617 if test "$GCC" = yes; then
17618   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17619 fi
17620
17621 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17622   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17623 fi
17624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17625   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17626 fi
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17721 hardcode_action=
17722 if test -n "$hardcode_libdir_flag_spec" ||
17723    test -n "$runpath_var" ||
17724    test "X$hardcode_automatic" = "Xyes" ; then
17725
17726   # We can hardcode non-existent directories.
17727   if test "$hardcode_direct" != no &&
17728      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17729      # have to relink, otherwise we might link with an installed library
17730      # when we should be linking with a yet-to-be-installed one
17731      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17732      test "$hardcode_minus_L" != no; then
17733     # Linking always hardcodes the temporary library directory.
17734     hardcode_action=relink
17735   else
17736     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17737     hardcode_action=immediate
17738   fi
17739 else
17740   # We cannot hardcode anything, or else we can only hardcode existing
17741   # directories.
17742   hardcode_action=unsupported
17743 fi
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17745 $as_echo "$hardcode_action" >&6; }
17746
17747 if test "$hardcode_action" = relink ||
17748    test "$inherit_rpath" = yes; then
17749   # Fast installation is not supported
17750   enable_fast_install=no
17751 elif test "$shlibpath_overrides_runpath" = yes ||
17752      test "$enable_shared" = no; then
17753   # Fast installation is not necessary
17754   enable_fast_install=needless
17755 fi
17756
17757
17758
17759
17760
17761
17762   if test "x$enable_dlopen" != xyes; then
17763   enable_dlopen=unknown
17764   enable_dlopen_self=unknown
17765   enable_dlopen_self_static=unknown
17766 else
17767   lt_cv_dlopen=no
17768   lt_cv_dlopen_libs=
17769
17770   case $host_os in
17771   beos*)
17772     lt_cv_dlopen="load_add_on"
17773     lt_cv_dlopen_libs=
17774     lt_cv_dlopen_self=yes
17775     ;;
17776
17777   mingw* | pw32* | cegcc*)
17778     lt_cv_dlopen="LoadLibrary"
17779     lt_cv_dlopen_libs=
17780     ;;
17781
17782   cygwin*)
17783     lt_cv_dlopen="dlopen"
17784     lt_cv_dlopen_libs=
17785     ;;
17786
17787   darwin*)
17788   # if libdl is installed we need to link against it
17789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17792   $as_echo_n "(cached) " >&6
17793 else
17794   ac_check_lib_save_LIBS=$LIBS
17795 LIBS="-ldl  $LIBS"
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h.  */
17798
17799 /* Override any GCC internal prototype to avoid an error.
17800    Use char because int might match the return type of a GCC
17801    builtin and then its argument prototype would still apply.  */
17802 #ifdef __cplusplus
17803 extern "C"
17804 #endif
17805 char dlopen ();
17806 int
17807 main ()
17808 {
17809 return dlopen ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 if ac_fn_c_try_link "$LINENO"; then :
17815   ac_cv_lib_dl_dlopen=yes
17816 else
17817   ac_cv_lib_dl_dlopen=no
17818 fi
17819 rm -f core conftest.err conftest.$ac_objext \
17820     conftest$ac_exeext conftest.$ac_ext
17821 LIBS=$ac_check_lib_save_LIBS
17822 fi
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17824 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17825 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17826   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17827 else
17828
17829     lt_cv_dlopen="dyld"
17830     lt_cv_dlopen_libs=
17831     lt_cv_dlopen_self=yes
17832
17833 fi
17834
17835     ;;
17836
17837   *)
17838     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17839 if test "x$ac_cv_func_shl_load" = x""yes; then :
17840   lt_cv_dlopen="shl_load"
17841 else
17842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17843 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17845   $as_echo_n "(cached) " >&6
17846 else
17847   ac_check_lib_save_LIBS=$LIBS
17848 LIBS="-ldld  $LIBS"
17849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h.  */
17851
17852 /* Override any GCC internal prototype to avoid an error.
17853    Use char because int might match the return type of a GCC
17854    builtin and then its argument prototype would still apply.  */
17855 #ifdef __cplusplus
17856 extern "C"
17857 #endif
17858 char shl_load ();
17859 int
17860 main ()
17861 {
17862 return shl_load ();
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 if ac_fn_c_try_link "$LINENO"; then :
17868   ac_cv_lib_dld_shl_load=yes
17869 else
17870   ac_cv_lib_dld_shl_load=no
17871 fi
17872 rm -f core conftest.err conftest.$ac_objext \
17873     conftest$ac_exeext conftest.$ac_ext
17874 LIBS=$ac_check_lib_save_LIBS
17875 fi
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17877 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17878 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17879   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17880 else
17881   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17882 if test "x$ac_cv_func_dlopen" = x""yes; then :
17883   lt_cv_dlopen="dlopen"
17884 else
17885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17888   $as_echo_n "(cached) " >&6
17889 else
17890   ac_check_lib_save_LIBS=$LIBS
17891 LIBS="-ldl  $LIBS"
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h.  */
17894
17895 /* Override any GCC internal prototype to avoid an error.
17896    Use char because int might match the return type of a GCC
17897    builtin and then its argument prototype would still apply.  */
17898 #ifdef __cplusplus
17899 extern "C"
17900 #endif
17901 char dlopen ();
17902 int
17903 main ()
17904 {
17905 return dlopen ();
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 if ac_fn_c_try_link "$LINENO"; then :
17911   ac_cv_lib_dl_dlopen=yes
17912 else
17913   ac_cv_lib_dl_dlopen=no
17914 fi
17915 rm -f core conftest.err conftest.$ac_objext \
17916     conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17918 fi
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17921 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17922   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17923 else
17924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17925 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17926 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17927   $as_echo_n "(cached) " >&6
17928 else
17929   ac_check_lib_save_LIBS=$LIBS
17930 LIBS="-lsvld  $LIBS"
17931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h.  */
17933
17934 /* Override any GCC internal prototype to avoid an error.
17935    Use char because int might match the return type of a GCC
17936    builtin and then its argument prototype would still apply.  */
17937 #ifdef __cplusplus
17938 extern "C"
17939 #endif
17940 char dlopen ();
17941 int
17942 main ()
17943 {
17944 return dlopen ();
17945   ;
17946   return 0;
17947 }
17948 _ACEOF
17949 if ac_fn_c_try_link "$LINENO"; then :
17950   ac_cv_lib_svld_dlopen=yes
17951 else
17952   ac_cv_lib_svld_dlopen=no
17953 fi
17954 rm -f core conftest.err conftest.$ac_objext \
17955     conftest$ac_exeext conftest.$ac_ext
17956 LIBS=$ac_check_lib_save_LIBS
17957 fi
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17959 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17960 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17961   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17962 else
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17964 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17965 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17966   $as_echo_n "(cached) " >&6
17967 else
17968   ac_check_lib_save_LIBS=$LIBS
17969 LIBS="-ldld  $LIBS"
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h.  */
17972
17973 /* Override any GCC internal prototype to avoid an error.
17974    Use char because int might match the return type of a GCC
17975    builtin and then its argument prototype would still apply.  */
17976 #ifdef __cplusplus
17977 extern "C"
17978 #endif
17979 char dld_link ();
17980 int
17981 main ()
17982 {
17983 return dld_link ();
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 if ac_fn_c_try_link "$LINENO"; then :
17989   ac_cv_lib_dld_dld_link=yes
17990 else
17991   ac_cv_lib_dld_dld_link=no
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext \
17994     conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17996 fi
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17998 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17999 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18000   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18001 fi
18002
18003
18004 fi
18005
18006
18007 fi
18008
18009
18010 fi
18011
18012
18013 fi
18014
18015
18016 fi
18017
18018     ;;
18019   esac
18020
18021   if test "x$lt_cv_dlopen" != xno; then
18022     enable_dlopen=yes
18023   else
18024     enable_dlopen=no
18025   fi
18026
18027   case $lt_cv_dlopen in
18028   dlopen)
18029     save_CPPFLAGS="$CPPFLAGS"
18030     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18031
18032     save_LDFLAGS="$LDFLAGS"
18033     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18034
18035     save_LIBS="$LIBS"
18036     LIBS="$lt_cv_dlopen_libs $LIBS"
18037
18038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18039 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18040 if test "${lt_cv_dlopen_self+set}" = set; then :
18041   $as_echo_n "(cached) " >&6
18042 else
18043           if test "$cross_compiling" = yes; then :
18044   lt_cv_dlopen_self=cross
18045 else
18046   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18047   lt_status=$lt_dlunknown
18048   cat > conftest.$ac_ext <<_LT_EOF
18049 #line 18049 "configure"
18050 #include "confdefs.h"
18051
18052 #if HAVE_DLFCN_H
18053 #include <dlfcn.h>
18054 #endif
18055
18056 #include <stdio.h>
18057
18058 #ifdef RTLD_GLOBAL
18059 #  define LT_DLGLOBAL           RTLD_GLOBAL
18060 #else
18061 #  ifdef DL_GLOBAL
18062 #    define LT_DLGLOBAL         DL_GLOBAL
18063 #  else
18064 #    define LT_DLGLOBAL         0
18065 #  endif
18066 #endif
18067
18068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18069    find out it does not work in some platform. */
18070 #ifndef LT_DLLAZY_OR_NOW
18071 #  ifdef RTLD_LAZY
18072 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18073 #  else
18074 #    ifdef DL_LAZY
18075 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18076 #    else
18077 #      ifdef RTLD_NOW
18078 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18079 #      else
18080 #        ifdef DL_NOW
18081 #          define LT_DLLAZY_OR_NOW      DL_NOW
18082 #        else
18083 #          define LT_DLLAZY_OR_NOW      0
18084 #        endif
18085 #      endif
18086 #    endif
18087 #  endif
18088 #endif
18089
18090 /* When -fvisbility=hidden is used, assume the code has been annotated
18091    correspondingly for the symbols needed.  */
18092 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18093 void fnord () __attribute__((visibility("default")));
18094 #endif
18095
18096 void fnord () { int i=42; }
18097 int main ()
18098 {
18099   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18100   int status = $lt_dlunknown;
18101
18102   if (self)
18103     {
18104       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18105       else
18106         {
18107           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18108           else puts (dlerror ());
18109         }
18110       /* dlclose (self); */
18111     }
18112   else
18113     puts (dlerror ());
18114
18115   return status;
18116 }
18117 _LT_EOF
18118   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18119   (eval $ac_link) 2>&5
18120   ac_status=$?
18121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18123     (./conftest; exit; ) >&5 2>/dev/null
18124     lt_status=$?
18125     case x$lt_status in
18126       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18127       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18128       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18129     esac
18130   else :
18131     # compilation failed
18132     lt_cv_dlopen_self=no
18133   fi
18134 fi
18135 rm -fr conftest*
18136
18137
18138 fi
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18140 $as_echo "$lt_cv_dlopen_self" >&6; }
18141
18142     if test "x$lt_cv_dlopen_self" = xyes; then
18143       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18145 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18146 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18147   $as_echo_n "(cached) " >&6
18148 else
18149           if test "$cross_compiling" = yes; then :
18150   lt_cv_dlopen_self_static=cross
18151 else
18152   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18153   lt_status=$lt_dlunknown
18154   cat > conftest.$ac_ext <<_LT_EOF
18155 #line 18155 "configure"
18156 #include "confdefs.h"
18157
18158 #if HAVE_DLFCN_H
18159 #include <dlfcn.h>
18160 #endif
18161
18162 #include <stdio.h>
18163
18164 #ifdef RTLD_GLOBAL
18165 #  define LT_DLGLOBAL           RTLD_GLOBAL
18166 #else
18167 #  ifdef DL_GLOBAL
18168 #    define LT_DLGLOBAL         DL_GLOBAL
18169 #  else
18170 #    define LT_DLGLOBAL         0
18171 #  endif
18172 #endif
18173
18174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18175    find out it does not work in some platform. */
18176 #ifndef LT_DLLAZY_OR_NOW
18177 #  ifdef RTLD_LAZY
18178 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18179 #  else
18180 #    ifdef DL_LAZY
18181 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18182 #    else
18183 #      ifdef RTLD_NOW
18184 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18185 #      else
18186 #        ifdef DL_NOW
18187 #          define LT_DLLAZY_OR_NOW      DL_NOW
18188 #        else
18189 #          define LT_DLLAZY_OR_NOW      0
18190 #        endif
18191 #      endif
18192 #    endif
18193 #  endif
18194 #endif
18195
18196 /* When -fvisbility=hidden is used, assume the code has been annotated
18197    correspondingly for the symbols needed.  */
18198 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18199 void fnord () __attribute__((visibility("default")));
18200 #endif
18201
18202 void fnord () { int i=42; }
18203 int main ()
18204 {
18205   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18206   int status = $lt_dlunknown;
18207
18208   if (self)
18209     {
18210       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18211       else
18212         {
18213           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18214           else puts (dlerror ());
18215         }
18216       /* dlclose (self); */
18217     }
18218   else
18219     puts (dlerror ());
18220
18221   return status;
18222 }
18223 _LT_EOF
18224   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18225   (eval $ac_link) 2>&5
18226   ac_status=$?
18227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18228   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18229     (./conftest; exit; ) >&5 2>/dev/null
18230     lt_status=$?
18231     case x$lt_status in
18232       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18233       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18234       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18235     esac
18236   else :
18237     # compilation failed
18238     lt_cv_dlopen_self_static=no
18239   fi
18240 fi
18241 rm -fr conftest*
18242
18243
18244 fi
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18246 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18247     fi
18248
18249     CPPFLAGS="$save_CPPFLAGS"
18250     LDFLAGS="$save_LDFLAGS"
18251     LIBS="$save_LIBS"
18252     ;;
18253   esac
18254
18255   case $lt_cv_dlopen_self in
18256   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18257   *) enable_dlopen_self=unknown ;;
18258   esac
18259
18260   case $lt_cv_dlopen_self_static in
18261   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18262   *) enable_dlopen_self_static=unknown ;;
18263   esac
18264 fi
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282 striplib=
18283 old_striplib=
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18285 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18286 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18287   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18288   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18290 $as_echo "yes" >&6; }
18291 else
18292 # FIXME - insert some real tests, host_os isn't really good enough
18293   case $host_os in
18294   darwin*)
18295     if test -n "$STRIP" ; then
18296       striplib="$STRIP -x"
18297       old_striplib="$STRIP -S"
18298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299 $as_echo "yes" >&6; }
18300     else
18301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18302 $as_echo "no" >&6; }
18303     fi
18304     ;;
18305   *)
18306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18308     ;;
18309   esac
18310 fi
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323   # Report which library types will actually be built
18324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18325 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18327 $as_echo "$can_build_shared" >&6; }
18328
18329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18330 $as_echo_n "checking whether to build shared libraries... " >&6; }
18331   test "$can_build_shared" = "no" && enable_shared=no
18332
18333   # On AIX, shared libraries and static libraries use the same namespace, and
18334   # are all built from PIC.
18335   case $host_os in
18336   aix3*)
18337     test "$enable_shared" = yes && enable_static=no
18338     if test -n "$RANLIB"; then
18339       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18340       postinstall_cmds='$RANLIB $lib'
18341     fi
18342     ;;
18343
18344   aix[4-9]*)
18345     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18346       test "$enable_shared" = yes && enable_static=no
18347     fi
18348     ;;
18349   esac
18350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18351 $as_echo "$enable_shared" >&6; }
18352
18353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18354 $as_echo_n "checking whether to build static libraries... " >&6; }
18355   # Make sure either enable_shared or enable_static is yes.
18356   test "$enable_shared" = yes || enable_static=yes
18357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18358 $as_echo "$enable_static" >&6; }
18359
18360
18361
18362
18363 fi
18364 ac_ext=c
18365 ac_cpp='$CPP $CPPFLAGS'
18366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18369
18370 CC="$lt_save_CC"
18371
18372       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18373     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18374     (test "X$CXX" != "Xg++"))) ; then
18375   ac_ext=cpp
18376 ac_cpp='$CXXCPP $CPPFLAGS'
18377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18381 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18382 if test -z "$CXXCPP"; then
18383   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18384   $as_echo_n "(cached) " >&6
18385 else
18386       # Double quotes because CXXCPP needs to be expanded
18387     for CXXCPP in "$CXX -E" "/lib/cpp"
18388     do
18389       ac_preproc_ok=false
18390 for ac_cxx_preproc_warn_flag in '' yes
18391 do
18392   # Use a header file that comes with gcc, so configuring glibc
18393   # with a fresh cross-compiler works.
18394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395   # <limits.h> exists even on freestanding compilers.
18396   # On the NeXT, cc -E runs the code through the compiler's parser,
18397   # not just through cpp. "Syntax error" is here to catch this case.
18398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h.  */
18400 #ifdef __STDC__
18401 # include <limits.h>
18402 #else
18403 # include <assert.h>
18404 #endif
18405                      Syntax error
18406 _ACEOF
18407 if ac_fn_cxx_try_cpp "$LINENO"; then :
18408
18409 else
18410   # Broken: fails on valid input.
18411 continue
18412 fi
18413 rm -f conftest.err conftest.$ac_ext
18414
18415   # OK, works on sane cases.  Now check whether nonexistent headers
18416   # can be detected and how.
18417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h.  */
18419 #include <ac_nonexistent.h>
18420 _ACEOF
18421 if ac_fn_cxx_try_cpp "$LINENO"; then :
18422   # Broken: success on invalid input.
18423 continue
18424 else
18425   # Passes both tests.
18426 ac_preproc_ok=:
18427 break
18428 fi
18429 rm -f conftest.err conftest.$ac_ext
18430
18431 done
18432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18433 rm -f conftest.err conftest.$ac_ext
18434 if $ac_preproc_ok; then :
18435   break
18436 fi
18437
18438     done
18439     ac_cv_prog_CXXCPP=$CXXCPP
18440
18441 fi
18442   CXXCPP=$ac_cv_prog_CXXCPP
18443 else
18444   ac_cv_prog_CXXCPP=$CXXCPP
18445 fi
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18447 $as_echo "$CXXCPP" >&6; }
18448 ac_preproc_ok=false
18449 for ac_cxx_preproc_warn_flag in '' yes
18450 do
18451   # Use a header file that comes with gcc, so configuring glibc
18452   # with a fresh cross-compiler works.
18453   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18454   # <limits.h> exists even on freestanding compilers.
18455   # On the NeXT, cc -E runs the code through the compiler's parser,
18456   # not just through cpp. "Syntax error" is here to catch this case.
18457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h.  */
18459 #ifdef __STDC__
18460 # include <limits.h>
18461 #else
18462 # include <assert.h>
18463 #endif
18464                      Syntax error
18465 _ACEOF
18466 if ac_fn_cxx_try_cpp "$LINENO"; then :
18467
18468 else
18469   # Broken: fails on valid input.
18470 continue
18471 fi
18472 rm -f conftest.err conftest.$ac_ext
18473
18474   # OK, works on sane cases.  Now check whether nonexistent headers
18475   # can be detected and how.
18476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h.  */
18478 #include <ac_nonexistent.h>
18479 _ACEOF
18480 if ac_fn_cxx_try_cpp "$LINENO"; then :
18481   # Broken: success on invalid input.
18482 continue
18483 else
18484   # Passes both tests.
18485 ac_preproc_ok=:
18486 break
18487 fi
18488 rm -f conftest.err conftest.$ac_ext
18489
18490 done
18491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18492 rm -f conftest.err conftest.$ac_ext
18493 if $ac_preproc_ok; then :
18494
18495 else
18496   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18498 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18499 See \`config.log' for more details." "$LINENO" 5; }
18500 fi
18501
18502 ac_ext=c
18503 ac_cpp='$CPP $CPPFLAGS'
18504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18507
18508 else
18509   _lt_caught_CXX_error=yes
18510 fi
18511
18512 ac_ext=cpp
18513 ac_cpp='$CXXCPP $CPPFLAGS'
18514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18517
18518 archive_cmds_need_lc_CXX=no
18519 allow_undefined_flag_CXX=
18520 always_export_symbols_CXX=no
18521 archive_expsym_cmds_CXX=
18522 compiler_needs_object_CXX=no
18523 export_dynamic_flag_spec_CXX=
18524 hardcode_direct_CXX=no
18525 hardcode_direct_absolute_CXX=no
18526 hardcode_libdir_flag_spec_CXX=
18527 hardcode_libdir_flag_spec_ld_CXX=
18528 hardcode_libdir_separator_CXX=
18529 hardcode_minus_L_CXX=no
18530 hardcode_shlibpath_var_CXX=unsupported
18531 hardcode_automatic_CXX=no
18532 inherit_rpath_CXX=no
18533 module_cmds_CXX=
18534 module_expsym_cmds_CXX=
18535 link_all_deplibs_CXX=unknown
18536 old_archive_cmds_CXX=$old_archive_cmds
18537 reload_flag_CXX=$reload_flag
18538 reload_cmds_CXX=$reload_cmds
18539 no_undefined_flag_CXX=
18540 whole_archive_flag_spec_CXX=
18541 enable_shared_with_static_runtimes_CXX=no
18542
18543 # Source file extension for C++ test sources.
18544 ac_ext=cpp
18545
18546 # Object file extension for compiled C++ test sources.
18547 objext=o
18548 objext_CXX=$objext
18549
18550 # No sense in running all these tests if we already determined that
18551 # the CXX compiler isn't working.  Some variables (like enable_shared)
18552 # are currently assumed to apply to all compilers on this platform,
18553 # and will be corrupted by setting them based on a non-working compiler.
18554 if test "$_lt_caught_CXX_error" != yes; then
18555   # Code to be used in simple compile tests
18556   lt_simple_compile_test_code="int some_variable = 0;"
18557
18558   # Code to be used in simple link tests
18559   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18560
18561   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18562
18563
18564
18565
18566
18567
18568 # If no C compiler was specified, use CC.
18569 LTCC=${LTCC-"$CC"}
18570
18571 # If no C compiler flags were specified, use CFLAGS.
18572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18573
18574 # Allow CC to be a program name with arguments.
18575 compiler=$CC
18576
18577
18578   # save warnings/boilerplate of simple test code
18579   ac_outfile=conftest.$ac_objext
18580 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18581 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18582 _lt_compiler_boilerplate=`cat conftest.err`
18583 $RM conftest*
18584
18585   ac_outfile=conftest.$ac_objext
18586 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18587 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18588 _lt_linker_boilerplate=`cat conftest.err`
18589 $RM -r conftest*
18590
18591
18592   # Allow CC to be a program name with arguments.
18593   lt_save_CC=$CC
18594   lt_save_LD=$LD
18595   lt_save_GCC=$GCC
18596   GCC=$GXX
18597   lt_save_with_gnu_ld=$with_gnu_ld
18598   lt_save_path_LD=$lt_cv_path_LD
18599   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18600     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18601   else
18602     $as_unset lt_cv_prog_gnu_ld
18603   fi
18604   if test -n "${lt_cv_path_LDCXX+set}"; then
18605     lt_cv_path_LD=$lt_cv_path_LDCXX
18606   else
18607     $as_unset lt_cv_path_LD
18608   fi
18609   test -z "${LDCXX+set}" || LD=$LDCXX
18610   CC=${CXX-"c++"}
18611   compiler=$CC
18612   compiler_CXX=$CC
18613   for cc_temp in $compiler""; do
18614   case $cc_temp in
18615     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18616     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18617     \-*) ;;
18618     *) break;;
18619   esac
18620 done
18621 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18622
18623
18624   if test -n "$compiler"; then
18625     # We don't want -fno-exception when compiling C++ code, so set the
18626     # no_builtin_flag separately
18627     if test "$GXX" = yes; then
18628       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18629     else
18630       lt_prog_compiler_no_builtin_flag_CXX=
18631     fi
18632
18633     if test "$GXX" = yes; then
18634       # Set up default GNU C++ configuration
18635
18636
18637
18638 # Check whether --with-gnu-ld was given.
18639 if test "${with_gnu_ld+set}" = set; then :
18640   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18641 else
18642   with_gnu_ld=no
18643 fi
18644
18645 ac_prog=ld
18646 if test "$GCC" = yes; then
18647   # Check if gcc -print-prog-name=ld gives a path.
18648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18649 $as_echo_n "checking for ld used by $CC... " >&6; }
18650   case $host in
18651   *-*-mingw*)
18652     # gcc leaves a trailing carriage return which upsets mingw
18653     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18654   *)
18655     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18656   esac
18657   case $ac_prog in
18658     # Accept absolute paths.
18659     [\\/]* | ?:[\\/]*)
18660       re_direlt='/[^/][^/]*/\.\./'
18661       # Canonicalize the pathname of ld
18662       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18663       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18664         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18665       done
18666       test -z "$LD" && LD="$ac_prog"
18667       ;;
18668   "")
18669     # If it fails, then pretend we aren't using GCC.
18670     ac_prog=ld
18671     ;;
18672   *)
18673     # If it is relative, then search for the first ld in PATH.
18674     with_gnu_ld=unknown
18675     ;;
18676   esac
18677 elif test "$with_gnu_ld" = yes; then
18678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18679 $as_echo_n "checking for GNU ld... " >&6; }
18680 else
18681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18682 $as_echo_n "checking for non-GNU ld... " >&6; }
18683 fi
18684 if test "${lt_cv_path_LD+set}" = set; then :
18685   $as_echo_n "(cached) " >&6
18686 else
18687   if test -z "$LD"; then
18688   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18689   for ac_dir in $PATH; do
18690     IFS="$lt_save_ifs"
18691     test -z "$ac_dir" && ac_dir=.
18692     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18693       lt_cv_path_LD="$ac_dir/$ac_prog"
18694       # Check to see if the program is GNU ld.  I'd rather use --version,
18695       # but apparently some variants of GNU ld only accept -v.
18696       # Break only if it was the GNU/non-GNU ld that we prefer.
18697       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18698       *GNU* | *'with BFD'*)
18699         test "$with_gnu_ld" != no && break
18700         ;;
18701       *)
18702         test "$with_gnu_ld" != yes && break
18703         ;;
18704       esac
18705     fi
18706   done
18707   IFS="$lt_save_ifs"
18708 else
18709   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18710 fi
18711 fi
18712
18713 LD="$lt_cv_path_LD"
18714 if test -n "$LD"; then
18715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18716 $as_echo "$LD" >&6; }
18717 else
18718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18720 fi
18721 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18723 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18724 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18725   $as_echo_n "(cached) " >&6
18726 else
18727   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18728 case `$LD -v 2>&1 </dev/null` in
18729 *GNU* | *'with BFD'*)
18730   lt_cv_prog_gnu_ld=yes
18731   ;;
18732 *)
18733   lt_cv_prog_gnu_ld=no
18734   ;;
18735 esac
18736 fi
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18738 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18739 with_gnu_ld=$lt_cv_prog_gnu_ld
18740
18741
18742
18743
18744
18745
18746
18747       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18748       # archiving commands below assume that GNU ld is being used.
18749       if test "$with_gnu_ld" = yes; then
18750         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18751         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'
18752
18753         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18754         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18755
18756         # If archive_cmds runs LD, not CC, wlarc should be empty
18757         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18758         #     investigate it a little bit more. (MM)
18759         wlarc='${wl}'
18760
18761         # ancient GNU ld didn't support --whole-archive et. al.
18762         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18763           $GREP 'no-whole-archive' > /dev/null; then
18764           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18765         else
18766           whole_archive_flag_spec_CXX=
18767         fi
18768       else
18769         with_gnu_ld=no
18770         wlarc=
18771
18772         # A generic and very simple default shared library creation
18773         # command for GNU C++ for the case where it uses the native
18774         # linker, instead of GNU ld.  If possible, this setting should
18775         # overridden to take advantage of the native linker features on
18776         # the platform it is being used on.
18777         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18778       fi
18779
18780       # Commands to make compiler produce verbose output that lists
18781       # what "hidden" libraries, object files and flags are used when
18782       # linking a shared library.
18783       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18784
18785     else
18786       GXX=no
18787       with_gnu_ld=no
18788       wlarc=
18789     fi
18790
18791     # PORTME: fill in a description of your system's C++ link characteristics
18792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18794     ld_shlibs_CXX=yes
18795     case $host_os in
18796       aix3*)
18797         # FIXME: insert proper C++ library support
18798         ld_shlibs_CXX=no
18799         ;;
18800       aix[4-9]*)
18801         if test "$host_cpu" = ia64; then
18802           # On IA64, the linker does run time linking by default, so we don't
18803           # have to do anything special.
18804           aix_use_runtimelinking=no
18805           exp_sym_flag='-Bexport'
18806           no_entry_flag=""
18807         else
18808           aix_use_runtimelinking=no
18809
18810           # Test if we are trying to use run time linking or normal
18811           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18812           # need to do runtime linking.
18813           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18814             for ld_flag in $LDFLAGS; do
18815               case $ld_flag in
18816               *-brtl*)
18817                 aix_use_runtimelinking=yes
18818                 break
18819                 ;;
18820               esac
18821             done
18822             ;;
18823           esac
18824
18825           exp_sym_flag='-bexport'
18826           no_entry_flag='-bnoentry'
18827         fi
18828
18829         # When large executables or shared objects are built, AIX ld can
18830         # have problems creating the table of contents.  If linking a library
18831         # or program results in "error TOC overflow" add -mminimal-toc to
18832         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18833         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18834
18835         archive_cmds_CXX=''
18836         hardcode_direct_CXX=yes
18837         hardcode_direct_absolute_CXX=yes
18838         hardcode_libdir_separator_CXX=':'
18839         link_all_deplibs_CXX=yes
18840         file_list_spec_CXX='${wl}-f,'
18841
18842         if test "$GXX" = yes; then
18843           case $host_os in aix4.[012]|aix4.[012].*)
18844           # We only want to do this on AIX 4.2 and lower, the check
18845           # below for broken collect2 doesn't work under 4.3+
18846           collect2name=`${CC} -print-prog-name=collect2`
18847           if test -f "$collect2name" &&
18848              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18849           then
18850             # We have reworked collect2
18851             :
18852           else
18853             # We have old collect2
18854             hardcode_direct_CXX=unsupported
18855             # It fails to find uninstalled libraries when the uninstalled
18856             # path is not listed in the libpath.  Setting hardcode_minus_L
18857             # to unsupported forces relinking
18858             hardcode_minus_L_CXX=yes
18859             hardcode_libdir_flag_spec_CXX='-L$libdir'
18860             hardcode_libdir_separator_CXX=
18861           fi
18862           esac
18863           shared_flag='-shared'
18864           if test "$aix_use_runtimelinking" = yes; then
18865             shared_flag="$shared_flag "'${wl}-G'
18866           fi
18867         else
18868           # not using gcc
18869           if test "$host_cpu" = ia64; then
18870           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18871           # chokes on -Wl,-G. The following line is correct:
18872           shared_flag='-G'
18873           else
18874             if test "$aix_use_runtimelinking" = yes; then
18875               shared_flag='${wl}-G'
18876             else
18877               shared_flag='${wl}-bM:SRE'
18878             fi
18879           fi
18880         fi
18881
18882         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18883         # It seems that -bexpall does not export symbols beginning with
18884         # underscore (_), so it is better to generate a list of symbols to
18885         # export.
18886         always_export_symbols_CXX=yes
18887         if test "$aix_use_runtimelinking" = yes; then
18888           # Warning - without using the other runtime loading flags (-brtl),
18889           # -berok will link without error, but may produce a broken library.
18890           allow_undefined_flag_CXX='-berok'
18891           # Determine the default libpath from the value encoded in an empty
18892           # executable.
18893           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h.  */
18895
18896 int
18897 main ()
18898 {
18899
18900   ;
18901   return 0;
18902 }
18903 _ACEOF
18904 if ac_fn_cxx_try_link "$LINENO"; then :
18905
18906 lt_aix_libpath_sed='
18907     /Import File Strings/,/^$/ {
18908         /^0/ {
18909             s/^0  *\(.*\)$/\1/
18910             p
18911         }
18912     }'
18913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18914 # Check for a 64-bit object if we didn't find anything.
18915 if test -z "$aix_libpath"; then
18916   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18917 fi
18918 fi
18919 rm -f core conftest.err conftest.$ac_objext \
18920     conftest$ac_exeext conftest.$ac_ext
18921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18922
18923           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18924
18925           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"
18926         else
18927           if test "$host_cpu" = ia64; then
18928             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18929             allow_undefined_flag_CXX="-z nodefs"
18930             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"
18931           else
18932             # Determine the default libpath from the value encoded in an
18933             # empty executable.
18934             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h.  */
18936
18937 int
18938 main ()
18939 {
18940
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 if ac_fn_cxx_try_link "$LINENO"; then :
18946
18947 lt_aix_libpath_sed='
18948     /Import File Strings/,/^$/ {
18949         /^0/ {
18950             s/^0  *\(.*\)$/\1/
18951             p
18952         }
18953     }'
18954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18955 # Check for a 64-bit object if we didn't find anything.
18956 if test -z "$aix_libpath"; then
18957   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 fi
18959 fi
18960 rm -f core conftest.err conftest.$ac_objext \
18961     conftest$ac_exeext conftest.$ac_ext
18962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18963
18964             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18965             # Warning - without using the other run time loading flags,
18966             # -berok will link without error, but may produce a broken library.
18967             no_undefined_flag_CXX=' ${wl}-bernotok'
18968             allow_undefined_flag_CXX=' ${wl}-berok'
18969             if test "$with_gnu_ld" = yes; then
18970               # We only use this code for GNU lds that support --whole-archive.
18971               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18972             else
18973               # Exported symbols can be pulled into shared objects from archives
18974               whole_archive_flag_spec_CXX='$convenience'
18975             fi
18976             archive_cmds_need_lc_CXX=yes
18977             # This is similar to how AIX traditionally builds its shared
18978             # libraries.
18979             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'
18980           fi
18981         fi
18982         ;;
18983
18984       beos*)
18985         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18986           allow_undefined_flag_CXX=unsupported
18987           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18988           # support --undefined.  This deserves some investigation.  FIXME
18989           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18990         else
18991           ld_shlibs_CXX=no
18992         fi
18993         ;;
18994
18995       chorus*)
18996         case $cc_basename in
18997           *)
18998           # FIXME: insert proper C++ library support
18999           ld_shlibs_CXX=no
19000           ;;
19001         esac
19002         ;;
19003
19004       cygwin* | mingw* | pw32* | cegcc*)
19005         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19006         # as there is no search path for DLLs.
19007         hardcode_libdir_flag_spec_CXX='-L$libdir'
19008         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19009         allow_undefined_flag_CXX=unsupported
19010         always_export_symbols_CXX=no
19011         enable_shared_with_static_runtimes_CXX=yes
19012
19013         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19014           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'
19015           # If the export-symbols file already is a .def file (1st line
19016           # is EXPORTS), use it as is; otherwise, prepend...
19017           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19018             cp $export_symbols $output_objdir/$soname.def;
19019           else
19020             echo EXPORTS > $output_objdir/$soname.def;
19021             cat $export_symbols >> $output_objdir/$soname.def;
19022           fi~
19023           $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'
19024         else
19025           ld_shlibs_CXX=no
19026         fi
19027         ;;
19028       darwin* | rhapsody*)
19029
19030
19031   archive_cmds_need_lc_CXX=no
19032   hardcode_direct_CXX=no
19033   hardcode_automatic_CXX=yes
19034   hardcode_shlibpath_var_CXX=unsupported
19035   if test "$lt_cv_ld_force_load" = "yes"; then
19036     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\"`'
19037   else
19038     whole_archive_flag_spec_CXX=''
19039   fi
19040   link_all_deplibs_CXX=yes
19041   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19042   case $cc_basename in
19043      ifort*) _lt_dar_can_shared=yes ;;
19044      *) _lt_dar_can_shared=$GCC ;;
19045   esac
19046   if test "$_lt_dar_can_shared" = "yes"; then
19047     output_verbose_link_cmd=func_echo_all
19048     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}"
19049     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19050     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}"
19051     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}"
19052        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19053       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}"
19054       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}"
19055     fi
19056
19057   else
19058   ld_shlibs_CXX=no
19059   fi
19060
19061         ;;
19062
19063       dgux*)
19064         case $cc_basename in
19065           ec++*)
19066             # FIXME: insert proper C++ library support
19067             ld_shlibs_CXX=no
19068             ;;
19069           ghcx*)
19070             # Green Hills C++ Compiler
19071             # FIXME: insert proper C++ library support
19072             ld_shlibs_CXX=no
19073             ;;
19074           *)
19075             # FIXME: insert proper C++ library support
19076             ld_shlibs_CXX=no
19077             ;;
19078         esac
19079         ;;
19080
19081       freebsd2.*)
19082         # C++ shared libraries reported to be fairly broken before
19083         # switch to ELF
19084         ld_shlibs_CXX=no
19085         ;;
19086
19087       freebsd-elf*)
19088         archive_cmds_need_lc_CXX=no
19089         ;;
19090
19091       freebsd* | dragonfly*)
19092         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19093         # conventions
19094         ld_shlibs_CXX=yes
19095         ;;
19096
19097       gnu*)
19098         ;;
19099
19100       haiku*)
19101         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19102         link_all_deplibs_CXX=yes
19103         ;;
19104
19105       hpux9*)
19106         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19107         hardcode_libdir_separator_CXX=:
19108         export_dynamic_flag_spec_CXX='${wl}-E'
19109         hardcode_direct_CXX=yes
19110         hardcode_minus_L_CXX=yes # Not in the search PATH,
19111                                              # but as the default
19112                                              # location of the library.
19113
19114         case $cc_basename in
19115           CC*)
19116             # FIXME: insert proper C++ library support
19117             ld_shlibs_CXX=no
19118             ;;
19119           aCC*)
19120             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'
19121             # Commands to make compiler produce verbose output that lists
19122             # what "hidden" libraries, object files and flags are used when
19123             # linking a shared library.
19124             #
19125             # There doesn't appear to be a way to prevent this compiler from
19126             # explicitly linking system object files so we need to strip them
19127             # from the output so that they don't get included in the library
19128             # dependencies.
19129             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"'
19130             ;;
19131           *)
19132             if test "$GXX" = yes; then
19133               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'
19134             else
19135               # FIXME: insert proper C++ library support
19136               ld_shlibs_CXX=no
19137             fi
19138             ;;
19139         esac
19140         ;;
19141
19142       hpux10*|hpux11*)
19143         if test $with_gnu_ld = no; then
19144           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19145           hardcode_libdir_separator_CXX=:
19146
19147           case $host_cpu in
19148             hppa*64*|ia64*)
19149               ;;
19150             *)
19151               export_dynamic_flag_spec_CXX='${wl}-E'
19152               ;;
19153           esac
19154         fi
19155         case $host_cpu in
19156           hppa*64*|ia64*)
19157             hardcode_direct_CXX=no
19158             hardcode_shlibpath_var_CXX=no
19159             ;;
19160           *)
19161             hardcode_direct_CXX=yes
19162             hardcode_direct_absolute_CXX=yes
19163             hardcode_minus_L_CXX=yes # Not in the search PATH,
19164                                                  # but as the default
19165                                                  # location of the library.
19166             ;;
19167         esac
19168
19169         case $cc_basename in
19170           CC*)
19171             # FIXME: insert proper C++ library support
19172             ld_shlibs_CXX=no
19173             ;;
19174           aCC*)
19175             case $host_cpu in
19176               hppa*64*)
19177                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19178                 ;;
19179               ia64*)
19180                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19181                 ;;
19182               *)
19183                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19184                 ;;
19185             esac
19186             # Commands to make compiler produce verbose output that lists
19187             # what "hidden" libraries, object files and flags are used when
19188             # linking a shared library.
19189             #
19190             # There doesn't appear to be a way to prevent this compiler from
19191             # explicitly linking system object files so we need to strip them
19192             # from the output so that they don't get included in the library
19193             # dependencies.
19194             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"'
19195             ;;
19196           *)
19197             if test "$GXX" = yes; then
19198               if test $with_gnu_ld = no; then
19199                 case $host_cpu in
19200                   hppa*64*)
19201                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19202                     ;;
19203                   ia64*)
19204                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19205                     ;;
19206                   *)
19207                     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'
19208                     ;;
19209                 esac
19210               fi
19211             else
19212               # FIXME: insert proper C++ library support
19213               ld_shlibs_CXX=no
19214             fi
19215             ;;
19216         esac
19217         ;;
19218
19219       interix[3-9]*)
19220         hardcode_direct_CXX=no
19221         hardcode_shlibpath_var_CXX=no
19222         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19223         export_dynamic_flag_spec_CXX='${wl}-E'
19224         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19225         # Instead, shared libraries are loaded at an image base (0x10000000 by
19226         # default) and relocated if they conflict, which is a slow very memory
19227         # consuming and fragmenting process.  To avoid this, we pick a random,
19228         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19229         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19230         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'
19231         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'
19232         ;;
19233       irix5* | irix6*)
19234         case $cc_basename in
19235           CC*)
19236             # SGI C++
19237             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'
19238
19239             # Archives containing C++ object files must be created using
19240             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19241             # necessary to make sure instantiated templates are included
19242             # in the archive.
19243             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19244             ;;
19245           *)
19246             if test "$GXX" = yes; then
19247               if test "$with_gnu_ld" = no; then
19248                 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'
19249               else
19250                 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'
19251               fi
19252             fi
19253             link_all_deplibs_CXX=yes
19254             ;;
19255         esac
19256         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19257         hardcode_libdir_separator_CXX=:
19258         inherit_rpath_CXX=yes
19259         ;;
19260
19261       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19262         case $cc_basename in
19263           KCC*)
19264             # Kuck and Associates, Inc. (KAI) C++ Compiler
19265
19266             # KCC will only create a shared library if the output file
19267             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19268             # to its proper name (with version) after linking.
19269             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'
19270             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'
19271             # Commands to make compiler produce verbose output that lists
19272             # what "hidden" libraries, object files and flags are used when
19273             # linking a shared library.
19274             #
19275             # There doesn't appear to be a way to prevent this compiler from
19276             # explicitly linking system object files so we need to strip them
19277             # from the output so that they don't get included in the library
19278             # dependencies.
19279             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"'
19280
19281             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19282             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19283
19284             # Archives containing C++ object files must be created using
19285             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19286             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19287             ;;
19288           icpc* | ecpc* )
19289             # Intel C++
19290             with_gnu_ld=yes
19291             # version 8.0 and above of icpc choke on multiply defined symbols
19292             # if we add $predep_objects and $postdep_objects, however 7.1 and
19293             # earlier do not add the objects themselves.
19294             case `$CC -V 2>&1` in
19295               *"Version 7."*)
19296                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19297                 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'
19298                 ;;
19299               *)  # Version 8.0 or newer
19300                 tmp_idyn=
19301                 case $host_cpu in
19302                   ia64*) tmp_idyn=' -i_dynamic';;
19303                 esac
19304                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305                 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'
19306                 ;;
19307             esac
19308             archive_cmds_need_lc_CXX=no
19309             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19310             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19311             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19312             ;;
19313           pgCC* | pgcpp*)
19314             # Portland Group C++ compiler
19315             case `$CC -V` in
19316             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19317               prelink_cmds_CXX='tpldir=Template.dir~
19318                 rm -rf $tpldir~
19319                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19320                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19321               old_archive_cmds_CXX='tpldir=Template.dir~
19322                 rm -rf $tpldir~
19323                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19324                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19325                 $RANLIB $oldlib'
19326               archive_cmds_CXX='tpldir=Template.dir~
19327                 rm -rf $tpldir~
19328                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19329                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19330               archive_expsym_cmds_CXX='tpldir=Template.dir~
19331                 rm -rf $tpldir~
19332                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19333                 $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'
19334               ;;
19335             *) # Version 6 and above use weak symbols
19336               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19337               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'
19338               ;;
19339             esac
19340
19341             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19342             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19343             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'
19344             ;;
19345           cxx*)
19346             # Compaq C++
19347             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19348             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'
19349
19350             runpath_var=LD_RUN_PATH
19351             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19352             hardcode_libdir_separator_CXX=:
19353
19354             # Commands to make compiler produce verbose output that lists
19355             # what "hidden" libraries, object files and flags are used when
19356             # linking a shared library.
19357             #
19358             # There doesn't appear to be a way to prevent this compiler from
19359             # explicitly linking system object files so we need to strip them
19360             # from the output so that they don't get included in the library
19361             # dependencies.
19362             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'
19363             ;;
19364           xl* | mpixl* | bgxl*)
19365             # IBM XL 8.0 on PPC, with GNU ld
19366             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19367             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19368             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19369             if test "x$supports_anon_versioning" = xyes; then
19370               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19371                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19372                 echo "local: *; };" >> $output_objdir/$libname.ver~
19373                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19374             fi
19375             ;;
19376           *)
19377             case `$CC -V 2>&1 | sed 5q` in
19378             *Sun\ C*)
19379               # Sun C++ 5.9
19380               no_undefined_flag_CXX=' -zdefs'
19381               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19382               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'
19383               hardcode_libdir_flag_spec_CXX='-R$libdir'
19384               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'
19385               compiler_needs_object_CXX=yes
19386
19387               # Not sure whether something based on
19388               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19389               # would be better.
19390               output_verbose_link_cmd='func_echo_all'
19391
19392               # Archives containing C++ object files must be created using
19393               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19394               # necessary to make sure instantiated templates are included
19395               # in the archive.
19396               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19397               ;;
19398             esac
19399             ;;
19400         esac
19401         ;;
19402
19403       lynxos*)
19404         # FIXME: insert proper C++ library support
19405         ld_shlibs_CXX=no
19406         ;;
19407
19408       m88k*)
19409         # FIXME: insert proper C++ library support
19410         ld_shlibs_CXX=no
19411         ;;
19412
19413       mvs*)
19414         case $cc_basename in
19415           cxx*)
19416             # FIXME: insert proper C++ library support
19417             ld_shlibs_CXX=no
19418             ;;
19419           *)
19420             # FIXME: insert proper C++ library support
19421             ld_shlibs_CXX=no
19422             ;;
19423         esac
19424         ;;
19425
19426       netbsd*)
19427         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19428           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19429           wlarc=
19430           hardcode_libdir_flag_spec_CXX='-R$libdir'
19431           hardcode_direct_CXX=yes
19432           hardcode_shlibpath_var_CXX=no
19433         fi
19434         # Workaround some broken pre-1.5 toolchains
19435         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19436         ;;
19437
19438       *nto* | *qnx*)
19439         ld_shlibs_CXX=yes
19440         ;;
19441
19442       openbsd2*)
19443         # C++ shared libraries are fairly broken
19444         ld_shlibs_CXX=no
19445         ;;
19446
19447       openbsd*)
19448         if test -f /usr/libexec/ld.so; then
19449           hardcode_direct_CXX=yes
19450           hardcode_shlibpath_var_CXX=no
19451           hardcode_direct_absolute_CXX=yes
19452           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19453           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19454           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19455             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19456             export_dynamic_flag_spec_CXX='${wl}-E'
19457             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19458           fi
19459           output_verbose_link_cmd=func_echo_all
19460         else
19461           ld_shlibs_CXX=no
19462         fi
19463         ;;
19464
19465       osf3* | osf4* | osf5*)
19466         case $cc_basename in
19467           KCC*)
19468             # Kuck and Associates, Inc. (KAI) C++ Compiler
19469
19470             # KCC will only create a shared library if the output file
19471             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19472             # to its proper name (with version) after linking.
19473             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'
19474
19475             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19476             hardcode_libdir_separator_CXX=:
19477
19478             # Archives containing C++ object files must be created using
19479             # the KAI C++ compiler.
19480             case $host in
19481               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19482               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19483             esac
19484             ;;
19485           RCC*)
19486             # Rational C++ 2.4.1
19487             # FIXME: insert proper C++ library support
19488             ld_shlibs_CXX=no
19489             ;;
19490           cxx*)
19491             case $host in
19492               osf3*)
19493                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19494                 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'
19495                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19496                 ;;
19497               *)
19498                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19499                 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'
19500                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19501                   echo "-hidden">> $lib.exp~
19502                   $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~
19503                   $RM $lib.exp'
19504                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19505                 ;;
19506             esac
19507
19508             hardcode_libdir_separator_CXX=:
19509
19510             # Commands to make compiler produce verbose output that lists
19511             # what "hidden" libraries, object files and flags are used when
19512             # linking a shared library.
19513             #
19514             # There doesn't appear to be a way to prevent this compiler from
19515             # explicitly linking system object files so we need to strip them
19516             # from the output so that they don't get included in the library
19517             # dependencies.
19518             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"'
19519             ;;
19520           *)
19521             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19522               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19523               case $host in
19524                 osf3*)
19525                   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'
19526                   ;;
19527                 *)
19528                   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'
19529                   ;;
19530               esac
19531
19532               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19533               hardcode_libdir_separator_CXX=:
19534
19535               # Commands to make compiler produce verbose output that lists
19536               # what "hidden" libraries, object files and flags are used when
19537               # linking a shared library.
19538               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19539
19540             else
19541               # FIXME: insert proper C++ library support
19542               ld_shlibs_CXX=no
19543             fi
19544             ;;
19545         esac
19546         ;;
19547
19548       psos*)
19549         # FIXME: insert proper C++ library support
19550         ld_shlibs_CXX=no
19551         ;;
19552
19553       sunos4*)
19554         case $cc_basename in
19555           CC*)
19556             # Sun C++ 4.x
19557             # FIXME: insert proper C++ library support
19558             ld_shlibs_CXX=no
19559             ;;
19560           lcc*)
19561             # Lucid
19562             # FIXME: insert proper C++ library support
19563             ld_shlibs_CXX=no
19564             ;;
19565           *)
19566             # FIXME: insert proper C++ library support
19567             ld_shlibs_CXX=no
19568             ;;
19569         esac
19570         ;;
19571
19572       solaris*)
19573         case $cc_basename in
19574           CC*)
19575             # Sun C++ 4.2, 5.x and Centerline C++
19576             archive_cmds_need_lc_CXX=yes
19577             no_undefined_flag_CXX=' -zdefs'
19578             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19579             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19580               $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'
19581
19582             hardcode_libdir_flag_spec_CXX='-R$libdir'
19583             hardcode_shlibpath_var_CXX=no
19584             case $host_os in
19585               solaris2.[0-5] | solaris2.[0-5].*) ;;
19586               *)
19587                 # The compiler driver will combine and reorder linker options,
19588                 # but understands `-z linker_flag'.
19589                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19590                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19591                 ;;
19592             esac
19593             link_all_deplibs_CXX=yes
19594
19595             output_verbose_link_cmd='func_echo_all'
19596
19597             # Archives containing C++ object files must be created using
19598             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19599             # necessary to make sure instantiated templates are included
19600             # in the archive.
19601             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19602             ;;
19603           gcx*)
19604             # Green Hills C++ Compiler
19605             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19606
19607             # The C++ compiler must be used to create the archive.
19608             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19609             ;;
19610           *)
19611             # GNU C++ compiler with Solaris linker
19612             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19613               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19614               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19615                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19616                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19617                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19618
19619                 # Commands to make compiler produce verbose output that lists
19620                 # what "hidden" libraries, object files and flags are used when
19621                 # linking a shared library.
19622                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19623               else
19624                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19625                 # platform.
19626                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19627                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19628                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19629
19630                 # Commands to make compiler produce verbose output that lists
19631                 # what "hidden" libraries, object files and flags are used when
19632                 # linking a shared library.
19633                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19634               fi
19635
19636               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19637               case $host_os in
19638                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19639                 *)
19640                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19641                   ;;
19642               esac
19643             fi
19644             ;;
19645         esac
19646         ;;
19647
19648     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19649       no_undefined_flag_CXX='${wl}-z,text'
19650       archive_cmds_need_lc_CXX=no
19651       hardcode_shlibpath_var_CXX=no
19652       runpath_var='LD_RUN_PATH'
19653
19654       case $cc_basename in
19655         CC*)
19656           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19657           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19658           ;;
19659         *)
19660           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19661           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19662           ;;
19663       esac
19664       ;;
19665
19666       sysv5* | sco3.2v5* | sco5v6*)
19667         # Note: We can NOT use -z defs as we might desire, because we do not
19668         # link with -lc, and that would cause any symbols used from libc to
19669         # always be unresolved, which means just about no library would
19670         # ever link correctly.  If we're not using GNU ld we use -z text
19671         # though, which does catch some bad symbols but isn't as heavy-handed
19672         # as -z defs.
19673         no_undefined_flag_CXX='${wl}-z,text'
19674         allow_undefined_flag_CXX='${wl}-z,nodefs'
19675         archive_cmds_need_lc_CXX=no
19676         hardcode_shlibpath_var_CXX=no
19677         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19678         hardcode_libdir_separator_CXX=':'
19679         link_all_deplibs_CXX=yes
19680         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19681         runpath_var='LD_RUN_PATH'
19682
19683         case $cc_basename in
19684           CC*)
19685             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19687             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19688               '"$old_archive_cmds_CXX"
19689             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19690               '"$reload_cmds_CXX"
19691             ;;
19692           *)
19693             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19694             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19695             ;;
19696         esac
19697       ;;
19698
19699       tandem*)
19700         case $cc_basename in
19701           NCC*)
19702             # NonStop-UX NCC 3.20
19703             # FIXME: insert proper C++ library support
19704             ld_shlibs_CXX=no
19705             ;;
19706           *)
19707             # FIXME: insert proper C++ library support
19708             ld_shlibs_CXX=no
19709             ;;
19710         esac
19711         ;;
19712
19713       vxworks*)
19714         # FIXME: insert proper C++ library support
19715         ld_shlibs_CXX=no
19716         ;;
19717
19718       *)
19719         # FIXME: insert proper C++ library support
19720         ld_shlibs_CXX=no
19721         ;;
19722     esac
19723
19724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19725 $as_echo "$ld_shlibs_CXX" >&6; }
19726     test "$ld_shlibs_CXX" = no && can_build_shared=no
19727
19728     GCC_CXX="$GXX"
19729     LD_CXX="$LD"
19730
19731     ## CAVEAT EMPTOR:
19732     ## There is no encapsulation within the following macros, do not change
19733     ## the running order or otherwise move them around unless you know exactly
19734     ## what you are doing...
19735     # Dependencies to place before and after the object being linked:
19736 predep_objects_CXX=
19737 postdep_objects_CXX=
19738 predeps_CXX=
19739 postdeps_CXX=
19740 compiler_lib_search_path_CXX=
19741
19742 cat > conftest.$ac_ext <<_LT_EOF
19743 class Foo
19744 {
19745 public:
19746   Foo (void) { a = 0; }
19747 private:
19748   int a;
19749 };
19750 _LT_EOF
19751
19752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19753   (eval $ac_compile) 2>&5
19754   ac_status=$?
19755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19756   test $ac_status = 0; }; then
19757   # Parse the compiler output and extract the necessary
19758   # objects, libraries and library flags.
19759
19760   # Sentinel used to keep track of whether or not we are before
19761   # the conftest object file.
19762   pre_test_object_deps_done=no
19763
19764   for p in `eval "$output_verbose_link_cmd"`; do
19765     case $p in
19766
19767     -L* | -R* | -l*)
19768        # Some compilers place space between "-{L,R}" and the path.
19769        # Remove the space.
19770        if test $p = "-L" ||
19771           test $p = "-R"; then
19772          prev=$p
19773          continue
19774        else
19775          prev=
19776        fi
19777
19778        if test "$pre_test_object_deps_done" = no; then
19779          case $p in
19780          -L* | -R*)
19781            # Internal compiler library paths should come after those
19782            # provided the user.  The postdeps already come after the
19783            # user supplied libs so there is no need to process them.
19784            if test -z "$compiler_lib_search_path_CXX"; then
19785              compiler_lib_search_path_CXX="${prev}${p}"
19786            else
19787              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19788            fi
19789            ;;
19790          # The "-l" case would never come before the object being
19791          # linked, so don't bother handling this case.
19792          esac
19793        else
19794          if test -z "$postdeps_CXX"; then
19795            postdeps_CXX="${prev}${p}"
19796          else
19797            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19798          fi
19799        fi
19800        ;;
19801
19802     *.$objext)
19803        # This assumes that the test object file only shows up
19804        # once in the compiler output.
19805        if test "$p" = "conftest.$objext"; then
19806          pre_test_object_deps_done=yes
19807          continue
19808        fi
19809
19810        if test "$pre_test_object_deps_done" = no; then
19811          if test -z "$predep_objects_CXX"; then
19812            predep_objects_CXX="$p"
19813          else
19814            predep_objects_CXX="$predep_objects_CXX $p"
19815          fi
19816        else
19817          if test -z "$postdep_objects_CXX"; then
19818            postdep_objects_CXX="$p"
19819          else
19820            postdep_objects_CXX="$postdep_objects_CXX $p"
19821          fi
19822        fi
19823        ;;
19824
19825     *) ;; # Ignore the rest.
19826
19827     esac
19828   done
19829
19830   # Clean up.
19831   rm -f a.out a.exe
19832 else
19833   echo "libtool.m4: error: problem compiling CXX test program"
19834 fi
19835
19836 $RM -f confest.$objext
19837
19838 # PORTME: override above test on systems where it is broken
19839 case $host_os in
19840 interix[3-9]*)
19841   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19842   # hack all around it, let's just trust "g++" to DTRT.
19843   predep_objects_CXX=
19844   postdep_objects_CXX=
19845   postdeps_CXX=
19846   ;;
19847
19848 linux*)
19849   case `$CC -V 2>&1 | sed 5q` in
19850   *Sun\ C*)
19851     # Sun C++ 5.9
19852
19853     # The more standards-conforming stlport4 library is
19854     # incompatible with the Cstd library. Avoid specifying
19855     # it if it's in CXXFLAGS. Ignore libCrun as
19856     # -library=stlport4 depends on it.
19857     case " $CXX $CXXFLAGS " in
19858     *" -library=stlport4 "*)
19859       solaris_use_stlport4=yes
19860       ;;
19861     esac
19862
19863     if test "$solaris_use_stlport4" != yes; then
19864       postdeps_CXX='-library=Cstd -library=Crun'
19865     fi
19866     ;;
19867   esac
19868   ;;
19869
19870 solaris*)
19871   case $cc_basename in
19872   CC*)
19873     # The more standards-conforming stlport4 library is
19874     # incompatible with the Cstd library. Avoid specifying
19875     # it if it's in CXXFLAGS. Ignore libCrun as
19876     # -library=stlport4 depends on it.
19877     case " $CXX $CXXFLAGS " in
19878     *" -library=stlport4 "*)
19879       solaris_use_stlport4=yes
19880       ;;
19881     esac
19882
19883     # Adding this requires a known-good setup of shared libraries for
19884     # Sun compiler versions before 5.6, else PIC objects from an old
19885     # archive will be linked into the output, leading to subtle bugs.
19886     if test "$solaris_use_stlport4" != yes; then
19887       postdeps_CXX='-library=Cstd -library=Crun'
19888     fi
19889     ;;
19890   esac
19891   ;;
19892 esac
19893
19894
19895 case " $postdeps_CXX " in
19896 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19897 esac
19898  compiler_lib_search_dirs_CXX=
19899 if test -n "${compiler_lib_search_path_CXX}"; then
19900  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19901 fi
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933     lt_prog_compiler_wl_CXX=
19934 lt_prog_compiler_pic_CXX=
19935 lt_prog_compiler_static_CXX=
19936
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19938 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19939
19940   # C++ specific cases for pic, static, wl, etc.
19941   if test "$GXX" = yes; then
19942     lt_prog_compiler_wl_CXX='-Wl,'
19943     lt_prog_compiler_static_CXX='-static'
19944
19945     case $host_os in
19946     aix*)
19947       # All AIX code is PIC.
19948       if test "$host_cpu" = ia64; then
19949         # AIX 5 now supports IA64 processor
19950         lt_prog_compiler_static_CXX='-Bstatic'
19951       fi
19952       ;;
19953
19954     amigaos*)
19955       case $host_cpu in
19956       powerpc)
19957             # see comment about AmigaOS4 .so support
19958             lt_prog_compiler_pic_CXX='-fPIC'
19959         ;;
19960       m68k)
19961             # FIXME: we need at least 68020 code to build shared libraries, but
19962             # adding the `-m68020' flag to GCC prevents building anything better,
19963             # like `-m68040'.
19964             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19965         ;;
19966       esac
19967       ;;
19968
19969     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19970       # PIC is the default for these OSes.
19971       ;;
19972     mingw* | cygwin* | os2* | pw32* | cegcc*)
19973       # This hack is so that the source file can tell whether it is being
19974       # built for inclusion in a dll (and should export symbols for example).
19975       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19976       # (--disable-auto-import) libraries
19977       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19978       ;;
19979     darwin* | rhapsody*)
19980       # PIC is the default on this platform
19981       # Common symbols not allowed in MH_DYLIB files
19982       lt_prog_compiler_pic_CXX='-fno-common'
19983       ;;
19984     *djgpp*)
19985       # DJGPP does not support shared libraries at all
19986       lt_prog_compiler_pic_CXX=
19987       ;;
19988     haiku*)
19989       # PIC is the default for Haiku.
19990       # The "-static" flag exists, but is broken.
19991       lt_prog_compiler_static_CXX=
19992       ;;
19993     interix[3-9]*)
19994       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19995       # Instead, we relocate shared libraries at runtime.
19996       ;;
19997     sysv4*MP*)
19998       if test -d /usr/nec; then
19999         lt_prog_compiler_pic_CXX=-Kconform_pic
20000       fi
20001       ;;
20002     hpux*)
20003       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20004       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20005       # sets the default TLS model and affects inlining.
20006       case $host_cpu in
20007       hppa*64*)
20008         ;;
20009       *)
20010         lt_prog_compiler_pic_CXX='-fPIC'
20011         ;;
20012       esac
20013       ;;
20014     *qnx* | *nto*)
20015       # QNX uses GNU C++, but need to define -shared option too, otherwise
20016       # it will coredump.
20017       lt_prog_compiler_pic_CXX='-fPIC -shared'
20018       ;;
20019     *)
20020       lt_prog_compiler_pic_CXX='-fPIC'
20021       ;;
20022     esac
20023   else
20024     case $host_os in
20025       aix[4-9]*)
20026         # All AIX code is PIC.
20027         if test "$host_cpu" = ia64; then
20028           # AIX 5 now supports IA64 processor
20029           lt_prog_compiler_static_CXX='-Bstatic'
20030         else
20031           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20032         fi
20033         ;;
20034       chorus*)
20035         case $cc_basename in
20036         cxch68*)
20037           # Green Hills C++ Compiler
20038           # _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"
20039           ;;
20040         esac
20041         ;;
20042       dgux*)
20043         case $cc_basename in
20044           ec++*)
20045             lt_prog_compiler_pic_CXX='-KPIC'
20046             ;;
20047           ghcx*)
20048             # Green Hills C++ Compiler
20049             lt_prog_compiler_pic_CXX='-pic'
20050             ;;
20051           *)
20052             ;;
20053         esac
20054         ;;
20055       freebsd* | dragonfly*)
20056         # FreeBSD uses GNU C++
20057         ;;
20058       hpux9* | hpux10* | hpux11*)
20059         case $cc_basename in
20060           CC*)
20061             lt_prog_compiler_wl_CXX='-Wl,'
20062             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20063             if test "$host_cpu" != ia64; then
20064               lt_prog_compiler_pic_CXX='+Z'
20065             fi
20066             ;;
20067           aCC*)
20068             lt_prog_compiler_wl_CXX='-Wl,'
20069             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20070             case $host_cpu in
20071             hppa*64*|ia64*)
20072               # +Z the default
20073               ;;
20074             *)
20075               lt_prog_compiler_pic_CXX='+Z'
20076               ;;
20077             esac
20078             ;;
20079           *)
20080             ;;
20081         esac
20082         ;;
20083       interix*)
20084         # This is c89, which is MS Visual C++ (no shared libs)
20085         # Anyone wants to do a port?
20086         ;;
20087       irix5* | irix6* | nonstopux*)
20088         case $cc_basename in
20089           CC*)
20090             lt_prog_compiler_wl_CXX='-Wl,'
20091             lt_prog_compiler_static_CXX='-non_shared'
20092             # CC pic flag -KPIC is the default.
20093             ;;
20094           *)
20095             ;;
20096         esac
20097         ;;
20098       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20099         case $cc_basename in
20100           KCC*)
20101             # KAI C++ Compiler
20102             lt_prog_compiler_wl_CXX='--backend -Wl,'
20103             lt_prog_compiler_pic_CXX='-fPIC'
20104             ;;
20105           ecpc* )
20106             # old Intel C++ for x86_64 which still supported -KPIC.
20107             lt_prog_compiler_wl_CXX='-Wl,'
20108             lt_prog_compiler_pic_CXX='-KPIC'
20109             lt_prog_compiler_static_CXX='-static'
20110             ;;
20111           icpc* )
20112             # Intel C++, used to be incompatible with GCC.
20113             # ICC 10 doesn't accept -KPIC any more.
20114             lt_prog_compiler_wl_CXX='-Wl,'
20115             lt_prog_compiler_pic_CXX='-fPIC'
20116             lt_prog_compiler_static_CXX='-static'
20117             ;;
20118           pgCC* | pgcpp*)
20119             # Portland Group C++ compiler
20120             lt_prog_compiler_wl_CXX='-Wl,'
20121             lt_prog_compiler_pic_CXX='-fpic'
20122             lt_prog_compiler_static_CXX='-Bstatic'
20123             ;;
20124           cxx*)
20125             # Compaq C++
20126             # Make sure the PIC flag is empty.  It appears that all Alpha
20127             # Linux and Compaq Tru64 Unix objects are PIC.
20128             lt_prog_compiler_pic_CXX=
20129             lt_prog_compiler_static_CXX='-non_shared'
20130             ;;
20131           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20132             # IBM XL 8.0, 9.0 on PPC and BlueGene
20133             lt_prog_compiler_wl_CXX='-Wl,'
20134             lt_prog_compiler_pic_CXX='-qpic'
20135             lt_prog_compiler_static_CXX='-qstaticlink'
20136             ;;
20137           *)
20138             case `$CC -V 2>&1 | sed 5q` in
20139             *Sun\ C*)
20140               # Sun C++ 5.9
20141               lt_prog_compiler_pic_CXX='-KPIC'
20142               lt_prog_compiler_static_CXX='-Bstatic'
20143               lt_prog_compiler_wl_CXX='-Qoption ld '
20144               ;;
20145             esac
20146             ;;
20147         esac
20148         ;;
20149       lynxos*)
20150         ;;
20151       m88k*)
20152         ;;
20153       mvs*)
20154         case $cc_basename in
20155           cxx*)
20156             lt_prog_compiler_pic_CXX='-W c,exportall'
20157             ;;
20158           *)
20159             ;;
20160         esac
20161         ;;
20162       netbsd*)
20163         ;;
20164       *qnx* | *nto*)
20165         # QNX uses GNU C++, but need to define -shared option too, otherwise
20166         # it will coredump.
20167         lt_prog_compiler_pic_CXX='-fPIC -shared'
20168         ;;
20169       osf3* | osf4* | osf5*)
20170         case $cc_basename in
20171           KCC*)
20172             lt_prog_compiler_wl_CXX='--backend -Wl,'
20173             ;;
20174           RCC*)
20175             # Rational C++ 2.4.1
20176             lt_prog_compiler_pic_CXX='-pic'
20177             ;;
20178           cxx*)
20179             # Digital/Compaq C++
20180             lt_prog_compiler_wl_CXX='-Wl,'
20181             # Make sure the PIC flag is empty.  It appears that all Alpha
20182             # Linux and Compaq Tru64 Unix objects are PIC.
20183             lt_prog_compiler_pic_CXX=
20184             lt_prog_compiler_static_CXX='-non_shared'
20185             ;;
20186           *)
20187             ;;
20188         esac
20189         ;;
20190       psos*)
20191         ;;
20192       solaris*)
20193         case $cc_basename in
20194           CC*)
20195             # Sun C++ 4.2, 5.x and Centerline C++
20196             lt_prog_compiler_pic_CXX='-KPIC'
20197             lt_prog_compiler_static_CXX='-Bstatic'
20198             lt_prog_compiler_wl_CXX='-Qoption ld '
20199             ;;
20200           gcx*)
20201             # Green Hills C++ Compiler
20202             lt_prog_compiler_pic_CXX='-PIC'
20203             ;;
20204           *)
20205             ;;
20206         esac
20207         ;;
20208       sunos4*)
20209         case $cc_basename in
20210           CC*)
20211             # Sun C++ 4.x
20212             lt_prog_compiler_pic_CXX='-pic'
20213             lt_prog_compiler_static_CXX='-Bstatic'
20214             ;;
20215           lcc*)
20216             # Lucid
20217             lt_prog_compiler_pic_CXX='-pic'
20218             ;;
20219           *)
20220             ;;
20221         esac
20222         ;;
20223       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20224         case $cc_basename in
20225           CC*)
20226             lt_prog_compiler_wl_CXX='-Wl,'
20227             lt_prog_compiler_pic_CXX='-KPIC'
20228             lt_prog_compiler_static_CXX='-Bstatic'
20229             ;;
20230         esac
20231         ;;
20232       tandem*)
20233         case $cc_basename in
20234           NCC*)
20235             # NonStop-UX NCC 3.20
20236             lt_prog_compiler_pic_CXX='-KPIC'
20237             ;;
20238           *)
20239             ;;
20240         esac
20241         ;;
20242       vxworks*)
20243         ;;
20244       *)
20245         lt_prog_compiler_can_build_shared_CXX=no
20246         ;;
20247     esac
20248   fi
20249
20250 case $host_os in
20251   # For platforms which do not support PIC, -DPIC is meaningless:
20252   *djgpp*)
20253     lt_prog_compiler_pic_CXX=
20254     ;;
20255   *)
20256     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20257     ;;
20258 esac
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20260 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20261
20262
20263
20264 #
20265 # Check to make sure the PIC flag actually works.
20266 #
20267 if test -n "$lt_prog_compiler_pic_CXX"; then
20268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20269 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20270 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20271   $as_echo_n "(cached) " >&6
20272 else
20273   lt_cv_prog_compiler_pic_works_CXX=no
20274    ac_outfile=conftest.$ac_objext
20275    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20276    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20277    # Insert the option either (1) after the last *FLAGS variable, or
20278    # (2) before a word containing "conftest.", or (3) at the end.
20279    # Note that $ac_compile itself does not contain backslashes and begins
20280    # with a dollar sign (not a hyphen), so the echo should work correctly.
20281    # The option is referenced via a variable to avoid confusing sed.
20282    lt_compile=`echo "$ac_compile" | $SED \
20283    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20285    -e 's:$: $lt_compiler_flag:'`
20286    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20287    (eval "$lt_compile" 2>conftest.err)
20288    ac_status=$?
20289    cat conftest.err >&5
20290    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291    if (exit $ac_status) && test -s "$ac_outfile"; then
20292      # The compiler can only warn and ignore the option if not recognized
20293      # So say no if there are warnings other than the usual output.
20294      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20295      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20296      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20297        lt_cv_prog_compiler_pic_works_CXX=yes
20298      fi
20299    fi
20300    $RM conftest*
20301
20302 fi
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20304 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20305
20306 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20307     case $lt_prog_compiler_pic_CXX in
20308      "" | " "*) ;;
20309      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20310      esac
20311 else
20312     lt_prog_compiler_pic_CXX=
20313      lt_prog_compiler_can_build_shared_CXX=no
20314 fi
20315
20316 fi
20317
20318
20319
20320 #
20321 # Check to make sure the static flag actually works.
20322 #
20323 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20325 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20326 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20327   $as_echo_n "(cached) " >&6
20328 else
20329   lt_cv_prog_compiler_static_works_CXX=no
20330    save_LDFLAGS="$LDFLAGS"
20331    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20332    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20333    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20334      # The linker can only warn and ignore the option if not recognized
20335      # So say no if there are warnings
20336      if test -s conftest.err; then
20337        # Append any errors to the config.log.
20338        cat conftest.err 1>&5
20339        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20340        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20341        if diff conftest.exp conftest.er2 >/dev/null; then
20342          lt_cv_prog_compiler_static_works_CXX=yes
20343        fi
20344      else
20345        lt_cv_prog_compiler_static_works_CXX=yes
20346      fi
20347    fi
20348    $RM -r conftest*
20349    LDFLAGS="$save_LDFLAGS"
20350
20351 fi
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20353 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20354
20355 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20356     :
20357 else
20358     lt_prog_compiler_static_CXX=
20359 fi
20360
20361
20362
20363
20364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20365 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20366 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20367   $as_echo_n "(cached) " >&6
20368 else
20369   lt_cv_prog_compiler_c_o_CXX=no
20370    $RM -r conftest 2>/dev/null
20371    mkdir conftest
20372    cd conftest
20373    mkdir out
20374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20375
20376    lt_compiler_flag="-o out/conftest2.$ac_objext"
20377    # Insert the option either (1) after the last *FLAGS variable, or
20378    # (2) before a word containing "conftest.", or (3) at the end.
20379    # Note that $ac_compile itself does not contain backslashes and begins
20380    # with a dollar sign (not a hyphen), so the echo should work correctly.
20381    lt_compile=`echo "$ac_compile" | $SED \
20382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20384    -e 's:$: $lt_compiler_flag:'`
20385    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20386    (eval "$lt_compile" 2>out/conftest.err)
20387    ac_status=$?
20388    cat out/conftest.err >&5
20389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20391    then
20392      # The compiler can only warn and ignore the option if not recognized
20393      # So say no if there are warnings
20394      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20395      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20396      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20397        lt_cv_prog_compiler_c_o_CXX=yes
20398      fi
20399    fi
20400    chmod u+w . 2>&5
20401    $RM conftest*
20402    # SGI C++ compiler will create directory out/ii_files/ for
20403    # template instantiation
20404    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20405    $RM out/* && rmdir out
20406    cd ..
20407    $RM -r conftest
20408    $RM conftest*
20409
20410 fi
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20412 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20413
20414
20415
20416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20418 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20419   $as_echo_n "(cached) " >&6
20420 else
20421   lt_cv_prog_compiler_c_o_CXX=no
20422    $RM -r conftest 2>/dev/null
20423    mkdir conftest
20424    cd conftest
20425    mkdir out
20426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20427
20428    lt_compiler_flag="-o out/conftest2.$ac_objext"
20429    # Insert the option either (1) after the last *FLAGS variable, or
20430    # (2) before a word containing "conftest.", or (3) at the end.
20431    # Note that $ac_compile itself does not contain backslashes and begins
20432    # with a dollar sign (not a hyphen), so the echo should work correctly.
20433    lt_compile=`echo "$ac_compile" | $SED \
20434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20436    -e 's:$: $lt_compiler_flag:'`
20437    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20438    (eval "$lt_compile" 2>out/conftest.err)
20439    ac_status=$?
20440    cat out/conftest.err >&5
20441    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20443    then
20444      # The compiler can only warn and ignore the option if not recognized
20445      # So say no if there are warnings
20446      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20447      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20448      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20449        lt_cv_prog_compiler_c_o_CXX=yes
20450      fi
20451    fi
20452    chmod u+w . 2>&5
20453    $RM conftest*
20454    # SGI C++ compiler will create directory out/ii_files/ for
20455    # template instantiation
20456    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20457    $RM out/* && rmdir out
20458    cd ..
20459    $RM -r conftest
20460    $RM conftest*
20461
20462 fi
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20464 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20465
20466
20467
20468
20469 hard_links="nottested"
20470 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20471   # do not overwrite the value of need_locks provided by the user
20472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20473 $as_echo_n "checking if we can lock with hard links... " >&6; }
20474   hard_links=yes
20475   $RM conftest*
20476   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20477   touch conftest.a
20478   ln conftest.a conftest.b 2>&5 || hard_links=no
20479   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20481 $as_echo "$hard_links" >&6; }
20482   if test "$hard_links" = no; then
20483     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20484 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20485     need_locks=warn
20486   fi
20487 else
20488   need_locks=no
20489 fi
20490
20491
20492
20493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20494 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20495
20496   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20497   case $host_os in
20498   aix[4-9]*)
20499     # If we're using GNU nm, then we don't want the "-C" option.
20500     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20501     # Also, AIX nm treats weak defined symbols like other global defined
20502     # symbols, whereas GNU nm marks them as "W".
20503     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20504       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'
20505     else
20506       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'
20507     fi
20508     ;;
20509   pw32*)
20510     export_symbols_cmds_CXX="$ltdll_cmds"
20511   ;;
20512   cygwin* | mingw* | cegcc*)
20513     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'
20514   ;;
20515   *)
20516     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20517   ;;
20518   esac
20519   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20520
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20522 $as_echo "$ld_shlibs_CXX" >&6; }
20523 test "$ld_shlibs_CXX" = no && can_build_shared=no
20524
20525 with_gnu_ld_CXX=$with_gnu_ld
20526
20527
20528
20529
20530
20531
20532 #
20533 # Do we need to explicitly link libc?
20534 #
20535 case "x$archive_cmds_need_lc_CXX" in
20536 x|xyes)
20537   # Assume -lc should be added
20538   archive_cmds_need_lc_CXX=yes
20539
20540   if test "$enable_shared" = yes && test "$GCC" = yes; then
20541     case $archive_cmds_CXX in
20542     *'~'*)
20543       # FIXME: we may have to deal with multi-command sequences.
20544       ;;
20545     '$CC '*)
20546       # Test whether the compiler implicitly links with -lc since on some
20547       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20548       # to ld, don't add -lc before -lgcc.
20549       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20550 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20551 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20552   $as_echo_n "(cached) " >&6
20553 else
20554   $RM conftest*
20555         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20556
20557         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20558   (eval $ac_compile) 2>&5
20559   ac_status=$?
20560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20561   test $ac_status = 0; } 2>conftest.err; then
20562           soname=conftest
20563           lib=conftest
20564           libobjs=conftest.$ac_objext
20565           deplibs=
20566           wl=$lt_prog_compiler_wl_CXX
20567           pic_flag=$lt_prog_compiler_pic_CXX
20568           compiler_flags=-v
20569           linker_flags=-v
20570           verstring=
20571           output_objdir=.
20572           libname=conftest
20573           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20574           allow_undefined_flag_CXX=
20575           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20576   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20577   ac_status=$?
20578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20579   test $ac_status = 0; }
20580           then
20581             lt_cv_archive_cmds_need_lc_CXX=no
20582           else
20583             lt_cv_archive_cmds_need_lc_CXX=yes
20584           fi
20585           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20586         else
20587           cat conftest.err 1>&5
20588         fi
20589         $RM conftest*
20590
20591 fi
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20593 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20594       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20595       ;;
20596     esac
20597   fi
20598   ;;
20599 esac
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20665 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20666
20667 library_names_spec=
20668 libname_spec='lib$name'
20669 soname_spec=
20670 shrext_cmds=".so"
20671 postinstall_cmds=
20672 postuninstall_cmds=
20673 finish_cmds=
20674 finish_eval=
20675 shlibpath_var=
20676 shlibpath_overrides_runpath=unknown
20677 version_type=none
20678 dynamic_linker="$host_os ld.so"
20679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20680 need_lib_prefix=unknown
20681 hardcode_into_libs=no
20682
20683 # when you set need_version to no, make sure it does not cause -set_version
20684 # flags to be left without arguments
20685 need_version=unknown
20686
20687 case $host_os in
20688 aix3*)
20689   version_type=linux
20690   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20691   shlibpath_var=LIBPATH
20692
20693   # AIX 3 has no versioning support, so we append a major version to the name.
20694   soname_spec='${libname}${release}${shared_ext}$major'
20695   ;;
20696
20697 aix[4-9]*)
20698   version_type=linux
20699   need_lib_prefix=no
20700   need_version=no
20701   hardcode_into_libs=yes
20702   if test "$host_cpu" = ia64; then
20703     # AIX 5 supports IA64
20704     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20705     shlibpath_var=LD_LIBRARY_PATH
20706   else
20707     # With GCC up to 2.95.x, collect2 would create an import file
20708     # for dependence libraries.  The import file would start with
20709     # the line `#! .'.  This would cause the generated library to
20710     # depend on `.', always an invalid library.  This was fixed in
20711     # development snapshots of GCC prior to 3.0.
20712     case $host_os in
20713       aix4 | aix4.[01] | aix4.[01].*)
20714       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20715            echo ' yes '
20716            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20717         :
20718       else
20719         can_build_shared=no
20720       fi
20721       ;;
20722     esac
20723     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20724     # soname into executable. Probably we can add versioning support to
20725     # collect2, so additional links can be useful in future.
20726     if test "$aix_use_runtimelinking" = yes; then
20727       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20728       # instead of lib<name>.a to let people know that these are not
20729       # typical AIX shared libraries.
20730       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20731     else
20732       # We preserve .a as extension for shared libraries through AIX4.2
20733       # and later when we are not doing run time linking.
20734       library_names_spec='${libname}${release}.a $libname.a'
20735       soname_spec='${libname}${release}${shared_ext}$major'
20736     fi
20737     shlibpath_var=LIBPATH
20738   fi
20739   ;;
20740
20741 amigaos*)
20742   case $host_cpu in
20743   powerpc)
20744     # Since July 2007 AmigaOS4 officially supports .so libraries.
20745     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747     ;;
20748   m68k)
20749     library_names_spec='$libname.ixlibrary $libname.a'
20750     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20751     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'
20752     ;;
20753   esac
20754   ;;
20755
20756 beos*)
20757   library_names_spec='${libname}${shared_ext}'
20758   dynamic_linker="$host_os ld.so"
20759   shlibpath_var=LIBRARY_PATH
20760   ;;
20761
20762 bsdi[45]*)
20763   version_type=linux
20764   need_version=no
20765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766   soname_spec='${libname}${release}${shared_ext}$major'
20767   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20768   shlibpath_var=LD_LIBRARY_PATH
20769   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20770   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20771   # the default ld.so.conf also contains /usr/contrib/lib and
20772   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20773   # libtool to hard-code these into programs
20774   ;;
20775
20776 cygwin* | mingw* | pw32* | cegcc*)
20777   version_type=windows
20778   shrext_cmds=".dll"
20779   need_version=no
20780   need_lib_prefix=no
20781
20782   case $GCC,$host_os in
20783   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20784     library_names_spec='$libname.dll.a'
20785     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20786     postinstall_cmds='base_file=`basename \${file}`~
20787       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20788       dldir=$destdir/`dirname \$dlpath`~
20789       test -d \$dldir || mkdir -p \$dldir~
20790       $install_prog $dir/$dlname \$dldir/$dlname~
20791       chmod a+x \$dldir/$dlname~
20792       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20793         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20794       fi'
20795     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20796       dlpath=$dir/\$dldll~
20797        $RM \$dlpath'
20798     shlibpath_overrides_runpath=yes
20799
20800     case $host_os in
20801     cygwin*)
20802       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20803       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20804
20805       ;;
20806     mingw* | cegcc*)
20807       # MinGW DLLs use traditional 'lib' prefix
20808       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20809       ;;
20810     pw32*)
20811       # pw32 DLLs use 'pw' prefix rather than 'lib'
20812       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20813       ;;
20814     esac
20815     ;;
20816
20817   *)
20818     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20819     ;;
20820   esac
20821   dynamic_linker='Win32 ld.exe'
20822   # FIXME: first we should search . and the directory the executable is in
20823   shlibpath_var=PATH
20824   ;;
20825
20826 darwin* | rhapsody*)
20827   dynamic_linker="$host_os dyld"
20828   version_type=darwin
20829   need_lib_prefix=no
20830   need_version=no
20831   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20832   soname_spec='${libname}${release}${major}$shared_ext'
20833   shlibpath_overrides_runpath=yes
20834   shlibpath_var=DYLD_LIBRARY_PATH
20835   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20836
20837   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20838   ;;
20839
20840 dgux*)
20841   version_type=linux
20842   need_lib_prefix=no
20843   need_version=no
20844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20845   soname_spec='${libname}${release}${shared_ext}$major'
20846   shlibpath_var=LD_LIBRARY_PATH
20847   ;;
20848
20849 freebsd* | dragonfly*)
20850   # DragonFly does not have aout.  When/if they implement a new
20851   # versioning mechanism, adjust this.
20852   if test -x /usr/bin/objformat; then
20853     objformat=`/usr/bin/objformat`
20854   else
20855     case $host_os in
20856     freebsd[23].*) objformat=aout ;;
20857     *) objformat=elf ;;
20858     esac
20859   fi
20860   version_type=freebsd-$objformat
20861   case $version_type in
20862     freebsd-elf*)
20863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20864       need_version=no
20865       need_lib_prefix=no
20866       ;;
20867     freebsd-*)
20868       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20869       need_version=yes
20870       ;;
20871   esac
20872   shlibpath_var=LD_LIBRARY_PATH
20873   case $host_os in
20874   freebsd2.*)
20875     shlibpath_overrides_runpath=yes
20876     ;;
20877   freebsd3.[01]* | freebsdelf3.[01]*)
20878     shlibpath_overrides_runpath=yes
20879     hardcode_into_libs=yes
20880     ;;
20881   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20882   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20883     shlibpath_overrides_runpath=no
20884     hardcode_into_libs=yes
20885     ;;
20886   *) # from 4.6 on, and DragonFly
20887     shlibpath_overrides_runpath=yes
20888     hardcode_into_libs=yes
20889     ;;
20890   esac
20891   ;;
20892
20893 gnu*)
20894   version_type=linux
20895   need_lib_prefix=no
20896   need_version=no
20897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20898   soname_spec='${libname}${release}${shared_ext}$major'
20899   shlibpath_var=LD_LIBRARY_PATH
20900   hardcode_into_libs=yes
20901   ;;
20902
20903 haiku*)
20904   version_type=linux
20905   need_lib_prefix=no
20906   need_version=no
20907   dynamic_linker="$host_os runtime_loader"
20908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20909   soname_spec='${libname}${release}${shared_ext}$major'
20910   shlibpath_var=LIBRARY_PATH
20911   shlibpath_overrides_runpath=yes
20912   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20913   hardcode_into_libs=yes
20914   ;;
20915
20916 hpux9* | hpux10* | hpux11*)
20917   # Give a soname corresponding to the major version so that dld.sl refuses to
20918   # link against other versions.
20919   version_type=sunos
20920   need_lib_prefix=no
20921   need_version=no
20922   case $host_cpu in
20923   ia64*)
20924     shrext_cmds='.so'
20925     hardcode_into_libs=yes
20926     dynamic_linker="$host_os dld.so"
20927     shlibpath_var=LD_LIBRARY_PATH
20928     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930     soname_spec='${libname}${release}${shared_ext}$major'
20931     if test "X$HPUX_IA64_MODE" = X32; then
20932       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20933     else
20934       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20935     fi
20936     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20937     ;;
20938   hppa*64*)
20939     shrext_cmds='.sl'
20940     hardcode_into_libs=yes
20941     dynamic_linker="$host_os dld.sl"
20942     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20945     soname_spec='${libname}${release}${shared_ext}$major'
20946     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20948     ;;
20949   *)
20950     shrext_cmds='.sl'
20951     dynamic_linker="$host_os dld.sl"
20952     shlibpath_var=SHLIB_PATH
20953     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20955     soname_spec='${libname}${release}${shared_ext}$major'
20956     ;;
20957   esac
20958   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20959   postinstall_cmds='chmod 555 $lib'
20960   # or fails outright, so override atomically:
20961   install_override_mode=555
20962   ;;
20963
20964 interix[3-9]*)
20965   version_type=linux
20966   need_lib_prefix=no
20967   need_version=no
20968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20969   soname_spec='${libname}${release}${shared_ext}$major'
20970   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20971   shlibpath_var=LD_LIBRARY_PATH
20972   shlibpath_overrides_runpath=no
20973   hardcode_into_libs=yes
20974   ;;
20975
20976 irix5* | irix6* | nonstopux*)
20977   case $host_os in
20978     nonstopux*) version_type=nonstopux ;;
20979     *)
20980         if test "$lt_cv_prog_gnu_ld" = yes; then
20981                 version_type=linux
20982         else
20983                 version_type=irix
20984         fi ;;
20985   esac
20986   need_lib_prefix=no
20987   need_version=no
20988   soname_spec='${libname}${release}${shared_ext}$major'
20989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20990   case $host_os in
20991   irix5* | nonstopux*)
20992     libsuff= shlibsuff=
20993     ;;
20994   *)
20995     case $LD in # libtool.m4 will add one of these switches to LD
20996     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20997       libsuff= shlibsuff= libmagic=32-bit;;
20998     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20999       libsuff=32 shlibsuff=N32 libmagic=N32;;
21000     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21001       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21002     *) libsuff= shlibsuff= libmagic=never-match;;
21003     esac
21004     ;;
21005   esac
21006   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21007   shlibpath_overrides_runpath=no
21008   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21009   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21010   hardcode_into_libs=yes
21011   ;;
21012
21013 # No shared lib support for Linux oldld, aout, or coff.
21014 linux*oldld* | linux*aout* | linux*coff*)
21015   dynamic_linker=no
21016   ;;
21017
21018 # This must be Linux ELF.
21019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21020   version_type=linux
21021   need_lib_prefix=no
21022   need_version=no
21023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21024   soname_spec='${libname}${release}${shared_ext}$major'
21025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21026   shlibpath_var=LD_LIBRARY_PATH
21027   shlibpath_overrides_runpath=no
21028
21029   # Some binutils ld are patched to set DT_RUNPATH
21030   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21031   $as_echo_n "(cached) " >&6
21032 else
21033   lt_cv_shlibpath_overrides_runpath=no
21034     save_LDFLAGS=$LDFLAGS
21035     save_libdir=$libdir
21036     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21037          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h.  */
21040
21041 int
21042 main ()
21043 {
21044
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 if ac_fn_cxx_try_link "$LINENO"; then :
21050   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21051   lt_cv_shlibpath_overrides_runpath=yes
21052 fi
21053 fi
21054 rm -f core conftest.err conftest.$ac_objext \
21055     conftest$ac_exeext conftest.$ac_ext
21056     LDFLAGS=$save_LDFLAGS
21057     libdir=$save_libdir
21058
21059 fi
21060
21061   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21062
21063   # This implies no fast_install, which is unacceptable.
21064   # Some rework will be needed to allow for fast_install
21065   # before this can be enabled.
21066   hardcode_into_libs=yes
21067
21068   # Append ld.so.conf contents to the search path
21069   if test -f /etc/ld.so.conf; then
21070     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' ' '`
21071     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21072   fi
21073
21074   # We used to test for /lib/ld.so.1 and disable shared libraries on
21075   # powerpc, because MkLinux only supported shared libraries with the
21076   # GNU dynamic linker.  Since this was broken with cross compilers,
21077   # most powerpc-linux boxes support dynamic linking these days and
21078   # people can always --disable-shared, the test was removed, and we
21079   # assume the GNU/Linux dynamic linker is in use.
21080   dynamic_linker='GNU/Linux ld.so'
21081   ;;
21082
21083 netbsd*)
21084   version_type=sunos
21085   need_lib_prefix=no
21086   need_version=no
21087   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21089     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21090     dynamic_linker='NetBSD (a.out) ld.so'
21091   else
21092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21093     soname_spec='${libname}${release}${shared_ext}$major'
21094     dynamic_linker='NetBSD ld.elf_so'
21095   fi
21096   shlibpath_var=LD_LIBRARY_PATH
21097   shlibpath_overrides_runpath=yes
21098   hardcode_into_libs=yes
21099   ;;
21100
21101 newsos6)
21102   version_type=linux
21103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104   shlibpath_var=LD_LIBRARY_PATH
21105   shlibpath_overrides_runpath=yes
21106   ;;
21107
21108 *nto* | *qnx*)
21109   version_type=qnx
21110   need_lib_prefix=no
21111   need_version=no
21112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21113   soname_spec='${libname}${release}${shared_ext}$major'
21114   shlibpath_var=LD_LIBRARY_PATH
21115   shlibpath_overrides_runpath=no
21116   hardcode_into_libs=yes
21117   dynamic_linker='ldqnx.so'
21118   ;;
21119
21120 openbsd*)
21121   version_type=sunos
21122   sys_lib_dlsearch_path_spec="/usr/lib"
21123   need_lib_prefix=no
21124   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21125   case $host_os in
21126     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21127     *)                          need_version=no  ;;
21128   esac
21129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21130   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21131   shlibpath_var=LD_LIBRARY_PATH
21132   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21133     case $host_os in
21134       openbsd2.[89] | openbsd2.[89].*)
21135         shlibpath_overrides_runpath=no
21136         ;;
21137       *)
21138         shlibpath_overrides_runpath=yes
21139         ;;
21140       esac
21141   else
21142     shlibpath_overrides_runpath=yes
21143   fi
21144   ;;
21145
21146 os2*)
21147   libname_spec='$name'
21148   shrext_cmds=".dll"
21149   need_lib_prefix=no
21150   library_names_spec='$libname${shared_ext} $libname.a'
21151   dynamic_linker='OS/2 ld.exe'
21152   shlibpath_var=LIBPATH
21153   ;;
21154
21155 osf3* | osf4* | osf5*)
21156   version_type=osf
21157   need_lib_prefix=no
21158   need_version=no
21159   soname_spec='${libname}${release}${shared_ext}$major'
21160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161   shlibpath_var=LD_LIBRARY_PATH
21162   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21163   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21164   ;;
21165
21166 rdos*)
21167   dynamic_linker=no
21168   ;;
21169
21170 solaris*)
21171   version_type=linux
21172   need_lib_prefix=no
21173   need_version=no
21174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21175   soname_spec='${libname}${release}${shared_ext}$major'
21176   shlibpath_var=LD_LIBRARY_PATH
21177   shlibpath_overrides_runpath=yes
21178   hardcode_into_libs=yes
21179   # ldd complains unless libraries are executable
21180   postinstall_cmds='chmod +x $lib'
21181   ;;
21182
21183 sunos4*)
21184   version_type=sunos
21185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21186   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21187   shlibpath_var=LD_LIBRARY_PATH
21188   shlibpath_overrides_runpath=yes
21189   if test "$with_gnu_ld" = yes; then
21190     need_lib_prefix=no
21191   fi
21192   need_version=yes
21193   ;;
21194
21195 sysv4 | sysv4.3*)
21196   version_type=linux
21197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21198   soname_spec='${libname}${release}${shared_ext}$major'
21199   shlibpath_var=LD_LIBRARY_PATH
21200   case $host_vendor in
21201     sni)
21202       shlibpath_overrides_runpath=no
21203       need_lib_prefix=no
21204       runpath_var=LD_RUN_PATH
21205       ;;
21206     siemens)
21207       need_lib_prefix=no
21208       ;;
21209     motorola)
21210       need_lib_prefix=no
21211       need_version=no
21212       shlibpath_overrides_runpath=no
21213       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21214       ;;
21215   esac
21216   ;;
21217
21218 sysv4*MP*)
21219   if test -d /usr/nec ;then
21220     version_type=linux
21221     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21222     soname_spec='$libname${shared_ext}.$major'
21223     shlibpath_var=LD_LIBRARY_PATH
21224   fi
21225   ;;
21226
21227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21228   version_type=freebsd-elf
21229   need_lib_prefix=no
21230   need_version=no
21231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21232   soname_spec='${libname}${release}${shared_ext}$major'
21233   shlibpath_var=LD_LIBRARY_PATH
21234   shlibpath_overrides_runpath=yes
21235   hardcode_into_libs=yes
21236   if test "$with_gnu_ld" = yes; then
21237     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21238   else
21239     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21240     case $host_os in
21241       sco3.2v5*)
21242         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21243         ;;
21244     esac
21245   fi
21246   sys_lib_dlsearch_path_spec='/usr/lib'
21247   ;;
21248
21249 tpf*)
21250   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21251   version_type=linux
21252   need_lib_prefix=no
21253   need_version=no
21254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21255   shlibpath_var=LD_LIBRARY_PATH
21256   shlibpath_overrides_runpath=no
21257   hardcode_into_libs=yes
21258   ;;
21259
21260 uts4*)
21261   version_type=linux
21262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21263   soname_spec='${libname}${release}${shared_ext}$major'
21264   shlibpath_var=LD_LIBRARY_PATH
21265   ;;
21266
21267 *)
21268   dynamic_linker=no
21269   ;;
21270 esac
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21272 $as_echo "$dynamic_linker" >&6; }
21273 test "$dynamic_linker" = no && can_build_shared=no
21274
21275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21276 if test "$GCC" = yes; then
21277   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21278 fi
21279
21280 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21281   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21282 fi
21283 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21284   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21285 fi
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21326 hardcode_action_CXX=
21327 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21328    test -n "$runpath_var_CXX" ||
21329    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21330
21331   # We can hardcode non-existent directories.
21332   if test "$hardcode_direct_CXX" != no &&
21333      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21334      # have to relink, otherwise we might link with an installed library
21335      # when we should be linking with a yet-to-be-installed one
21336      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21337      test "$hardcode_minus_L_CXX" != no; then
21338     # Linking always hardcodes the temporary library directory.
21339     hardcode_action_CXX=relink
21340   else
21341     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21342     hardcode_action_CXX=immediate
21343   fi
21344 else
21345   # We cannot hardcode anything, or else we can only hardcode existing
21346   # directories.
21347   hardcode_action_CXX=unsupported
21348 fi
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21350 $as_echo "$hardcode_action_CXX" >&6; }
21351
21352 if test "$hardcode_action_CXX" = relink ||
21353    test "$inherit_rpath_CXX" = yes; then
21354   # Fast installation is not supported
21355   enable_fast_install=no
21356 elif test "$shlibpath_overrides_runpath" = yes ||
21357      test "$enable_shared" = no; then
21358   # Fast installation is not necessary
21359   enable_fast_install=needless
21360 fi
21361
21362
21363
21364
21365
21366
21367
21368   fi # test -n "$compiler"
21369
21370   CC=$lt_save_CC
21371   LDCXX=$LD
21372   LD=$lt_save_LD
21373   GCC=$lt_save_GCC
21374   with_gnu_ld=$lt_save_with_gnu_ld
21375   lt_cv_path_LDCXX=$lt_cv_path_LD
21376   lt_cv_path_LD=$lt_save_path_LD
21377   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21378   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21379 fi # test "$_lt_caught_CXX_error" != yes
21380
21381 ac_ext=c
21382 ac_cpp='$CPP $CPPFLAGS'
21383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402 # Only expand once:
21403
21404
21405
21406
21407
21408 # Identify the assembler which will work hand-in-glove with the newly
21409 # built GCC, so that we can examine its features.  This is the assembler
21410 # which will be driven by the driver program.
21411 #
21412 # If build != host, and we aren't building gas in-tree, we identify a
21413 # build->target assembler and hope that it will have the same features
21414 # as the host->target assembler we'll be using.
21415 gcc_cv_gas_major_version=
21416 gcc_cv_gas_minor_version=
21417 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21418
21419 if test "${gcc_cv_as+set}" = set; then :
21420
21421 else
21422
21423 if test -x "$DEFAULT_ASSEMBLER"; then
21424         gcc_cv_as="$DEFAULT_ASSEMBLER"
21425 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21426      && test -f ../gas/Makefile \
21427      && test x$build = x$host; then
21428         gcc_cv_as=../gas/as-new$build_exeext
21429 elif test -x as$build_exeext; then
21430         # Build using assembler in the current directory.
21431         gcc_cv_as=./as$build_exeext
21432 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21433         gcc_cv_as="$AS_FOR_TARGET"
21434 else
21435         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21436 set dummy $AS_FOR_TARGET; ac_word=$2
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21438 $as_echo_n "checking for $ac_word... " >&6; }
21439 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21440   $as_echo_n "(cached) " >&6
21441 else
21442   case $gcc_cv_as in
21443   [\\/]* | ?:[\\/]*)
21444   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21445   ;;
21446   *)
21447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21448 for as_dir in $PATH
21449 do
21450   IFS=$as_save_IFS
21451   test -z "$as_dir" && as_dir=.
21452     for ac_exec_ext in '' $ac_executable_extensions; do
21453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21454     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21456     break 2
21457   fi
21458 done
21459   done
21460 IFS=$as_save_IFS
21461
21462   ;;
21463 esac
21464 fi
21465 gcc_cv_as=$ac_cv_path_gcc_cv_as
21466 if test -n "$gcc_cv_as"; then
21467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21468 $as_echo "$gcc_cv_as" >&6; }
21469 else
21470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21471 $as_echo "no" >&6; }
21472 fi
21473
21474
21475 fi
21476 fi
21477
21478 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21479
21480 case "$ORIGINAL_AS_FOR_TARGET" in
21481   ./as | ./as$build_exeext) ;;
21482   *) ac_config_files="$ac_config_files as:exec-tool.in"
21483  ;;
21484 esac
21485
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21487 $as_echo_n "checking what assembler to use... " >&6; }
21488 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21489   # Single tree build which includes gas.  We want to prefer it
21490   # over whatever linker top-level may have detected, since
21491   # we'll use what we're building after installation anyway.
21492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21493 $as_echo "newly built gas" >&6; }
21494   in_tree_gas=yes
21495   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21496 for f in $gcc_cv_as_bfd_srcdir/configure \
21497          $gcc_cv_as_gas_srcdir/configure \
21498          $gcc_cv_as_gas_srcdir/configure.in \
21499          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21500   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21501   if test x$gcc_cv_gas_version != x; then
21502     break
21503   fi
21504 done
21505 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21506 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21507 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21508 case $gcc_cv_gas_patch_version in
21509   "") gcc_cv_gas_patch_version="0" ;;
21510 esac
21511 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21512                             + $gcc_cv_gas_minor_version \) \* 1000 \
21513                             + $gcc_cv_gas_patch_version`
21514
21515   in_tree_gas_is_elf=no
21516   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21517      || (grep 'obj_format = multi' ../gas/Makefile \
21518          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21519   then
21520     in_tree_gas_is_elf=yes
21521   fi
21522 else
21523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21524 $as_echo "$gcc_cv_as" >&6; }
21525   in_tree_gas=no
21526 fi
21527
21528 # Identify the linker which will work hand-in-glove with the newly
21529 # built GCC, so that we can examine its features.  This is the linker
21530 # which will be driven by the driver program.
21531 #
21532 # If build != host, and we aren't building gas in-tree, we identify a
21533 # build->target linker and hope that it will have the same features
21534 # as the host->target linker we'll be using.
21535 gcc_cv_gld_major_version=
21536 gcc_cv_gld_minor_version=
21537 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21538 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21539
21540 if test "${gcc_cv_ld+set}" = set; then :
21541
21542 else
21543
21544 if test -x "$DEFAULT_LINKER"; then
21545         gcc_cv_ld="$DEFAULT_LINKER"
21546 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21547      && test -f ../ld/Makefile \
21548      && test x$build = x$host; then
21549         gcc_cv_ld=../ld/ld-new$build_exeext
21550 elif test -x collect-ld$build_exeext; then
21551         # Build using linker in the current directory.
21552         gcc_cv_ld=./collect-ld$build_exeext
21553 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21554         gcc_cv_ld="$LD_FOR_TARGET"
21555 else
21556         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21557 set dummy $LD_FOR_TARGET; ac_word=$2
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21559 $as_echo_n "checking for $ac_word... " >&6; }
21560 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21561   $as_echo_n "(cached) " >&6
21562 else
21563   case $gcc_cv_ld in
21564   [\\/]* | ?:[\\/]*)
21565   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21566   ;;
21567   *)
21568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21569 for as_dir in $PATH
21570 do
21571   IFS=$as_save_IFS
21572   test -z "$as_dir" && as_dir=.
21573     for ac_exec_ext in '' $ac_executable_extensions; do
21574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21575     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21577     break 2
21578   fi
21579 done
21580   done
21581 IFS=$as_save_IFS
21582
21583   ;;
21584 esac
21585 fi
21586 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21587 if test -n "$gcc_cv_ld"; then
21588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21589 $as_echo "$gcc_cv_ld" >&6; }
21590 else
21591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21592 $as_echo "no" >&6; }
21593 fi
21594
21595
21596 fi
21597 fi
21598
21599 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21600 PLUGIN_LD=`basename $gcc_cv_ld`
21601
21602 # Check whether --with-plugin-ld was given.
21603 if test "${with_plugin_ld+set}" = set; then :
21604   withval=$with_plugin_ld; if test x"$withval" != x; then
21605    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21606    PLUGIN_LD="$withval"
21607  fi
21608 fi
21609
21610
21611
21612 cat >>confdefs.h <<_ACEOF
21613 #define PLUGIN_LD "$PLUGIN_LD"
21614 _ACEOF
21615
21616
21617 # Check to see if we are using gold instead of ld
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21619 $as_echo_n "checking whether we are using gold... " >&6; }
21620 ld_is_gold=no
21621 if test x$gcc_cv_ld != x; then
21622   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21623      | grep "GNU gold" > /dev/null; then
21624     ld_is_gold=yes
21625   fi
21626 fi
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21628 $as_echo "$ld_is_gold" >&6; }
21629
21630 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21631
21632 case "$ORIGINAL_LD_FOR_TARGET" in
21633   ./collect-ld | ./collect-ld$build_exeext) ;;
21634   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21635  ;;
21636 esac
21637
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21639 $as_echo_n "checking what linker to use... " >&6; }
21640 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21641    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21642         # Single tree build which includes ld.  We want to prefer it
21643         # over whatever linker top-level may have detected, since
21644         # we'll use what we're building after installation anyway.
21645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21646 $as_echo "newly built ld" >&6; }
21647         in_tree_ld=yes
21648         in_tree_ld_is_elf=no
21649         if (grep 'EMUL = .*elf' ../ld/Makefile \
21650             || grep 'EMUL = .*linux' ../ld/Makefile \
21651             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21652           in_tree_ld_is_elf=yes
21653         elif test "$ld_is_gold" = yes; then
21654           in_tree_ld_is_elf=yes
21655         fi
21656         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21657         do
21658                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21659                 if test x$gcc_cv_gld_version != x; then
21660                         break
21661                 fi
21662         done
21663         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21664         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21665 else
21666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21667 $as_echo "$gcc_cv_ld" >&6; }
21668         in_tree_ld=no
21669 fi
21670
21671 # Figure out what nm we will be using.
21672 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21673 if test "${gcc_cv_nm+set}" = set; then :
21674
21675 else
21676
21677 if test -f $gcc_cv_binutils_srcdir/configure.in \
21678      && test -f ../binutils/Makefile \
21679      && test x$build = x$host; then
21680         gcc_cv_nm=../binutils/nm-new$build_exeext
21681 elif test -x nm$build_exeext; then
21682         gcc_cv_nm=./nm$build_exeext
21683 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21684         gcc_cv_nm="$NM_FOR_TARGET"
21685 else
21686         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21687 set dummy $NM_FOR_TARGET; ac_word=$2
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21689 $as_echo_n "checking for $ac_word... " >&6; }
21690 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21691   $as_echo_n "(cached) " >&6
21692 else
21693   case $gcc_cv_nm in
21694   [\\/]* | ?:[\\/]*)
21695   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21696   ;;
21697   *)
21698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21699 for as_dir in $PATH
21700 do
21701   IFS=$as_save_IFS
21702   test -z "$as_dir" && as_dir=.
21703     for ac_exec_ext in '' $ac_executable_extensions; do
21704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21705     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21707     break 2
21708   fi
21709 done
21710   done
21711 IFS=$as_save_IFS
21712
21713   ;;
21714 esac
21715 fi
21716 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21717 if test -n "$gcc_cv_nm"; then
21718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21719 $as_echo "$gcc_cv_nm" >&6; }
21720 else
21721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21722 $as_echo "no" >&6; }
21723 fi
21724
21725
21726 fi
21727 fi
21728
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21730 $as_echo_n "checking what nm to use... " >&6; }
21731 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21732         # Single tree build which includes binutils.
21733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21734 $as_echo "newly built nm" >&6; }
21735         in_tree_nm=yes
21736 else
21737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21738 $as_echo "$gcc_cv_nm" >&6; }
21739         in_tree_nm=no
21740 fi
21741
21742 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21743
21744 case "$ORIGINAL_NM_FOR_TARGET" in
21745   ./nm | ./nm$build_exeext) ;;
21746   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21747  ;;
21748 esac
21749
21750
21751 # Figure out what objdump we will be using.
21752 if test "${gcc_cv_objdump+set}" = set; then :
21753
21754 else
21755
21756 if test -f $gcc_cv_binutils_srcdir/configure.in \
21757      && test -f ../binutils/Makefile \
21758      && test x$build = x$host; then
21759         # Single tree build which includes binutils.
21760         gcc_cv_objdump=../binutils/objdump$build_exeext
21761 elif test -x objdump$build_exeext; then
21762         gcc_cv_objdump=./objdump$build_exeext
21763 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21764         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21765 else
21766         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21767 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21769 $as_echo_n "checking for $ac_word... " >&6; }
21770 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21771   $as_echo_n "(cached) " >&6
21772 else
21773   case $gcc_cv_objdump in
21774   [\\/]* | ?:[\\/]*)
21775   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21776   ;;
21777   *)
21778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21779 for as_dir in $PATH
21780 do
21781   IFS=$as_save_IFS
21782   test -z "$as_dir" && as_dir=.
21783     for ac_exec_ext in '' $ac_executable_extensions; do
21784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21785     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21787     break 2
21788   fi
21789 done
21790   done
21791 IFS=$as_save_IFS
21792
21793   ;;
21794 esac
21795 fi
21796 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21797 if test -n "$gcc_cv_objdump"; then
21798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21799 $as_echo "$gcc_cv_objdump" >&6; }
21800 else
21801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21802 $as_echo "no" >&6; }
21803 fi
21804
21805
21806 fi
21807 fi
21808
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21810 $as_echo_n "checking what objdump to use... " >&6; }
21811 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21812         # Single tree build which includes binutils.
21813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21814 $as_echo "newly built objdump" >&6; }
21815 elif test x$gcc_cv_objdump = x; then
21816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21817 $as_echo "not found" >&6; }
21818 else
21819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21820 $as_echo "$gcc_cv_objdump" >&6; }
21821 fi
21822
21823 # Figure out what readelf we will be using.
21824 if test "${gcc_cv_readelf+set}" = set; then :
21825
21826 else
21827
21828 if test -f $gcc_cv_binutils_srcdir/configure.in \
21829      && test -f ../binutils/Makefile \
21830      && test x$build = x$host; then
21831         # Single tree build which includes binutils.
21832         gcc_cv_readelf=../binutils/readelf$build_exeext
21833 elif test -x readelf$build_exeext; then
21834         gcc_cv_readelf=./readelf$build_exeext
21835 else
21836         # Extract the first word of "readelf", so it can be a program name with args.
21837 set dummy readelf; ac_word=$2
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21839 $as_echo_n "checking for $ac_word... " >&6; }
21840 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21841   $as_echo_n "(cached) " >&6
21842 else
21843   case $gcc_cv_readelf in
21844   [\\/]* | ?:[\\/]*)
21845   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21846   ;;
21847   *)
21848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21849 for as_dir in $PATH
21850 do
21851   IFS=$as_save_IFS
21852   test -z "$as_dir" && as_dir=.
21853     for ac_exec_ext in '' $ac_executable_extensions; do
21854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21855     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21857     break 2
21858   fi
21859 done
21860   done
21861 IFS=$as_save_IFS
21862
21863   ;;
21864 esac
21865 fi
21866 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21867 if test -n "$gcc_cv_readelf"; then
21868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21869 $as_echo "$gcc_cv_readelf" >&6; }
21870 else
21871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21872 $as_echo "no" >&6; }
21873 fi
21874
21875
21876 fi
21877 fi
21878
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21880 $as_echo_n "checking what readelf to use... " >&6; }
21881 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21882         # Single tree build which includes binutils.
21883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21884 $as_echo "newly built readelf" >&6; }
21885 elif test x$gcc_cv_readelf = x; then
21886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21887 $as_echo "not found" >&6; }
21888 else
21889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21890 $as_echo "$gcc_cv_readelf" >&6; }
21891 fi
21892
21893 # Figure out what assembler alignment features are present.
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21895 $as_echo_n "checking assembler flags... " >&6; }
21896 if test "${gcc_cv_as_flags+set}" = set; then :
21897   $as_echo_n "(cached) " >&6
21898 else
21899    case "$target" in
21900   i[34567]86-*-linux*)
21901         gcc_cv_as_flags="--32"
21902     ;;
21903   powerpc*-*-darwin*)
21904         gcc_cv_as_flags="-arch ppc"
21905     ;;
21906   *)
21907     gcc_cv_as_flags=" "
21908     ;;
21909   esac
21910 fi
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21912 $as_echo "$gcc_cv_as_flags" >&6; }
21913
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21915 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21916 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21917   $as_echo_n "(cached) " >&6
21918 else
21919   gcc_cv_as_balign_and_p2align=no
21920     if test $in_tree_gas = yes; then
21921     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21922   then gcc_cv_as_balign_and_p2align=yes
21923 fi
21924   elif test x$gcc_cv_as != x; then
21925     $as_echo '.balign 4
21926 .p2align 2' > conftest.s
21927     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21928   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21929   (eval $ac_try) 2>&5
21930   ac_status=$?
21931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21932   test $ac_status = 0; }; }
21933     then
21934         gcc_cv_as_balign_and_p2align=yes
21935     else
21936       echo "configure: failed program was" >&5
21937       cat conftest.s >&5
21938     fi
21939     rm -f conftest.o conftest.s
21940   fi
21941 fi
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21943 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21944 if test $gcc_cv_as_balign_and_p2align = yes; then
21945
21946 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21947
21948 fi
21949
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21951 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21952 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955   gcc_cv_as_max_skip_p2align=no
21956     if test $in_tree_gas = yes; then
21957     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21958   then gcc_cv_as_max_skip_p2align=yes
21959 fi
21960   elif test x$gcc_cv_as != x; then
21961     $as_echo '.p2align 4,,7' > conftest.s
21962     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21963   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21964   (eval $ac_try) 2>&5
21965   ac_status=$?
21966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967   test $ac_status = 0; }; }
21968     then
21969         gcc_cv_as_max_skip_p2align=yes
21970     else
21971       echo "configure: failed program was" >&5
21972       cat conftest.s >&5
21973     fi
21974     rm -f conftest.o conftest.s
21975   fi
21976 fi
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21978 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21979 if test $gcc_cv_as_max_skip_p2align = yes; then
21980
21981 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21982
21983 fi
21984
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21986 $as_echo_n "checking assembler for .literal16... " >&6; }
21987 if test "${gcc_cv_as_literal16+set}" = set; then :
21988   $as_echo_n "(cached) " >&6
21989 else
21990   gcc_cv_as_literal16=no
21991     if test $in_tree_gas = yes; then
21992     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21993   then gcc_cv_as_literal16=yes
21994 fi
21995   elif test x$gcc_cv_as != x; then
21996     $as_echo '.literal16' > conftest.s
21997     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21998   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999   (eval $ac_try) 2>&5
22000   ac_status=$?
22001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002   test $ac_status = 0; }; }
22003     then
22004         gcc_cv_as_literal16=yes
22005     else
22006       echo "configure: failed program was" >&5
22007       cat conftest.s >&5
22008     fi
22009     rm -f conftest.o conftest.s
22010   fi
22011 fi
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22013 $as_echo "$gcc_cv_as_literal16" >&6; }
22014 if test $gcc_cv_as_literal16 = yes; then
22015
22016 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22017
22018 fi
22019
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22021 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22022 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22023   $as_echo_n "(cached) " >&6
22024 else
22025   gcc_cv_as_subsection_m1=no
22026     if test $in_tree_gas = yes; then
22027     if test $in_tree_gas_is_elf = yes \
22028   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22029   then gcc_cv_as_subsection_m1=yes
22030 fi
22031   elif test x$gcc_cv_as != x; then
22032     $as_echo 'conftest_label1: .word 0
22033 .subsection -1
22034 conftest_label2: .word 0
22035 .previous' > conftest.s
22036     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22037   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22038   (eval $ac_try) 2>&5
22039   ac_status=$?
22040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22041   test $ac_status = 0; }; }
22042     then
22043         if test x$gcc_cv_nm != x; then
22044     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22045     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22046     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22047     then :
22048     else gcc_cv_as_subsection_m1=yes
22049     fi
22050     rm -f conftest.nm1 conftest.nm2
22051   fi
22052     else
22053       echo "configure: failed program was" >&5
22054       cat conftest.s >&5
22055     fi
22056     rm -f conftest.o conftest.s
22057   fi
22058 fi
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22060 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22061 if test $gcc_cv_as_subsection_m1 = yes; then
22062
22063 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22064
22065 fi
22066
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22068 $as_echo_n "checking assembler for .weak... " >&6; }
22069 if test "${gcc_cv_as_weak+set}" = set; then :
22070   $as_echo_n "(cached) " >&6
22071 else
22072   gcc_cv_as_weak=no
22073     if test $in_tree_gas = yes; then
22074     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22075   then gcc_cv_as_weak=yes
22076 fi
22077   elif test x$gcc_cv_as != x; then
22078     $as_echo '  .weak foobar' > conftest.s
22079     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22080   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22081   (eval $ac_try) 2>&5
22082   ac_status=$?
22083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22084   test $ac_status = 0; }; }
22085     then
22086         gcc_cv_as_weak=yes
22087     else
22088       echo "configure: failed program was" >&5
22089       cat conftest.s >&5
22090     fi
22091     rm -f conftest.o conftest.s
22092   fi
22093 fi
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22095 $as_echo "$gcc_cv_as_weak" >&6; }
22096 if test $gcc_cv_as_weak = yes; then
22097
22098 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22099
22100 fi
22101
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22103 $as_echo_n "checking assembler for .weakref... " >&6; }
22104 if test "${gcc_cv_as_weakref+set}" = set; then :
22105   $as_echo_n "(cached) " >&6
22106 else
22107   gcc_cv_as_weakref=no
22108     if test $in_tree_gas = yes; then
22109     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22110   then gcc_cv_as_weakref=yes
22111 fi
22112   elif test x$gcc_cv_as != x; then
22113     $as_echo '  .weakref foobar, barfnot' > conftest.s
22114     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22115   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22116   (eval $ac_try) 2>&5
22117   ac_status=$?
22118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22119   test $ac_status = 0; }; }
22120     then
22121         gcc_cv_as_weakref=yes
22122     else
22123       echo "configure: failed program was" >&5
22124       cat conftest.s >&5
22125     fi
22126     rm -f conftest.o conftest.s
22127   fi
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22130 $as_echo "$gcc_cv_as_weakref" >&6; }
22131 if test $gcc_cv_as_weakref = yes; then
22132
22133 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22134
22135 fi
22136
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22138 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22139 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22140   $as_echo_n "(cached) " >&6
22141 else
22142   gcc_cv_as_nsubspa_comdat=no
22143     if test $in_tree_gas = yes; then
22144     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22145   then gcc_cv_as_nsubspa_comdat=yes
22146 fi
22147   elif test x$gcc_cv_as != x; then
22148     $as_echo '  .SPACE $TEXT$
22149         .NSUBSPA $CODE$,COMDAT' > conftest.s
22150     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22151   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22152   (eval $ac_try) 2>&5
22153   ac_status=$?
22154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22155   test $ac_status = 0; }; }
22156     then
22157         gcc_cv_as_nsubspa_comdat=yes
22158     else
22159       echo "configure: failed program was" >&5
22160       cat conftest.s >&5
22161     fi
22162     rm -f conftest.o conftest.s
22163   fi
22164 fi
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22166 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22167 if test $gcc_cv_as_nsubspa_comdat = yes; then
22168
22169 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22170
22171 fi
22172
22173 # .hidden needs to be supported in both the assembler and the linker,
22174 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22175 # This is irritatingly difficult to feature test for; we have to check the
22176 # date string after the version number.  If we've got an in-tree
22177 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22178 # to be safe.
22179 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22181 $as_echo_n "checking assembler for .hidden... " >&6; }
22182 if test "${gcc_cv_as_hidden+set}" = set; then :
22183   $as_echo_n "(cached) " >&6
22184 else
22185   gcc_cv_as_hidden=no
22186     if test $in_tree_gas = yes; then
22187     if test $in_tree_gas_is_elf = yes \
22188   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22189   then gcc_cv_as_hidden=yes
22190 fi
22191   elif test x$gcc_cv_as != x; then
22192     $as_echo '  .hidden foobar
22193 foobar:' > conftest.s
22194     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22195   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199   test $ac_status = 0; }; }
22200     then
22201
22202 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22203 # STV_HIDDEN, so disable .hidden support if so.
22204 case "${target}" in
22205   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22206     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22207       cat > conftest.s <<EOF
22208 .globl hidden
22209         .hidden hidden
22210 hidden:
22211 .globl default
22212         .set    default,hidden
22213 EOF
22214       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22215         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22216         grep '\.hidden default' > /dev/null; then
22217         gcc_cv_as_hidden=no
22218       else
22219         gcc_cv_as_hidden=yes
22220       fi
22221     else
22222       # Assume bug is present if objdump is missing.
22223       gcc_cv_as_hidden=no
22224     fi
22225     ;;
22226   *)
22227     gcc_cv_as_hidden=yes
22228     ;;
22229 esac
22230     else
22231       echo "configure: failed program was" >&5
22232       cat conftest.s >&5
22233     fi
22234     rm -f conftest.o conftest.s
22235   fi
22236 fi
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22238 $as_echo "$gcc_cv_as_hidden" >&6; }
22239
22240 case "${target}" in
22241   *-*-darwin*)
22242     # Darwin as has some visibility support, though with a different syntax.
22243     gcc_cv_as_hidden=yes
22244     ;;
22245 esac
22246
22247 # gnu_indirect_function type is an extension proposed at
22248 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22249 # selection of function implementation
22250 # Check whether --enable-gnu-indirect-function was given.
22251 if test "${enable_gnu_indirect_function+set}" = set; then :
22252   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22253     yes | no) ;;
22254     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22255 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22256   esac
22257 else
22258   enable_gnu_indirect_function="$default_gnu_indirect_function"
22259 fi
22260
22261 if test x$enable_gnu_indirect_function = xyes; then
22262
22263 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22264
22265 fi
22266
22267 if test $in_tree_ld != yes ; then
22268   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22269   if echo "$ld_ver" | grep GNU > /dev/null; then
22270     if test x"$ld_is_gold" = xyes; then
22271       # GNU gold --version looks like this:
22272       #
22273       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22274       #
22275       # We extract the binutils version which is more familiar and specific
22276       # than the gold version.
22277       ld_vers=`echo $ld_ver | sed -n \
22278           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22279     else
22280       # GNU ld --version looks like this:
22281       #
22282       # GNU ld (GNU Binutils) 2.21.51.20110225
22283       ld_vers=`echo $ld_ver | sed -n \
22284           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22285     fi
22286     ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22287     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22288     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22289     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22290   else
22291     case "${target}" in
22292       *-*-solaris2*)
22293         # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22294         # format.
22295         #
22296         # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22297         # /usr/ccs/bin/ld has been configured.
22298         ld_ver=`$gcc_cv_ld -V 2>&1`
22299         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22300           ld_vers=`echo $ld_ver | sed -n \
22301             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22302           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22303           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22304         fi
22305         ;;
22306     esac
22307   fi
22308 fi
22309
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22311 $as_echo_n "checking linker for .hidden support... " >&6; }
22312 if test "${gcc_cv_ld_hidden+set}" = set; then :
22313   $as_echo_n "(cached) " >&6
22314 else
22315   if test $in_tree_ld = yes ; then
22316   gcc_cv_ld_hidden=no
22317   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
22318      && test $in_tree_ld_is_elf = yes; then
22319      gcc_cv_ld_hidden=yes
22320   fi
22321 else
22322   gcc_cv_ld_hidden=yes
22323   if test x"$ld_is_gold" = xyes; then
22324     :
22325   elif echo "$ld_ver" | grep GNU > /dev/null; then
22326     if test 0"$ld_date" -lt 20020404; then
22327       if test -n "$ld_date"; then
22328         # If there was date string, but was earlier than 2002-04-04, fail
22329         gcc_cv_ld_hidden=no
22330       elif test -z "$ld_vers"; then
22331         # If there was no date string nor ld version number, something is wrong
22332         gcc_cv_ld_hidden=no
22333       else
22334         test -z "$ld_vers_patch" && ld_vers_patch=0
22335         if test "$ld_vers_major" -lt 2; then
22336           gcc_cv_ld_hidden=no
22337         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22338           gcc_cv_ld_hidden="no"
22339         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22340           gcc_cv_ld_hidden=no
22341         fi
22342       fi
22343     fi
22344   else
22345     case "${target}" in
22346       *-*-darwin*)
22347         # Darwin ld has some visibility support.
22348         gcc_cv_ld_hidden=yes
22349         ;;
22350       hppa64*-*-hpux* | ia64*-*-hpux*)
22351         gcc_cv_ld_hidden=yes
22352         ;;
22353       *-*-solaris2.8*)
22354         # .hidden support was backported to Solaris 8, starting with ld
22355         # version 1.276.
22356         if test "$ld_vers_minor" -ge 276; then
22357           gcc_cv_ld_hidden=yes
22358         else
22359           gcc_cv_ld_hidden=no
22360         fi
22361         ;;
22362       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22363         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22364         # .symbolic was only added in Solaris 9 12/02.
22365         gcc_cv_ld_hidden=yes
22366         ;;
22367       *)
22368         gcc_cv_ld_hidden=no
22369         ;;
22370     esac
22371   fi
22372 fi
22373 fi
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22375 $as_echo "$gcc_cv_ld_hidden" >&6; }
22376 libgcc_visibility=no
22377
22378
22379 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22380   libgcc_visibility=yes
22381
22382 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22383
22384 fi
22385
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22387 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22388 gcc_cv_ld_ro_rw_mix=unknown
22389 if test $in_tree_ld = yes ; then
22390   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22391      && test $in_tree_ld_is_elf = yes; then
22392     gcc_cv_ld_ro_rw_mix=read-write
22393   fi
22394 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22395   echo '.section myfoosect, "a"' > conftest1.s
22396   echo '.section myfoosect, "aw"' > conftest2.s
22397   echo '.byte 1' >> conftest2.s
22398   echo '.section myfoosect, "a"' > conftest3.s
22399   echo '.byte 0' >> conftest3.s
22400   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22401      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22402      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22403      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22404         conftest2.o conftest3.o > /dev/null 2>&1; then
22405     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22406                          | sed -e '/myfoosect/!d' -e N`
22407     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22408       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22409         gcc_cv_ld_ro_rw_mix=read-only
22410       else
22411         gcc_cv_ld_ro_rw_mix=read-write
22412       fi
22413     fi
22414   fi
22415   rm -f conftest.* conftest[123].*
22416 fi
22417 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22418
22419 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22420
22421 fi
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22423 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22424
22425 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22426   case "${target}" in
22427     *-*-solaris2*)
22428       #
22429       # Solaris 2 ld -V output looks like this for a regular version:
22430       #
22431       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22432       #
22433       # but test versions add stuff at the end:
22434       #
22435       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22436       #
22437       gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22438       if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22439         gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22440           -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22441         gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22442         gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22443       fi
22444       ;;
22445   esac
22446 fi
22447
22448 # Check whether --enable-initfini-array was given.
22449 if test "${enable_initfini_array+set}" = set; then :
22450   enableval=$enable_initfini_array;
22451 else
22452
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22454 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22455 if test "${gcc_cv_initfini_array+set}" = set; then :
22456   $as_echo_n "(cached) " >&6
22457 else
22458     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22459     case "${target}" in
22460       ia64-*)
22461         if test "$cross_compiling" = yes; then :
22462   gcc_cv_initfini_array=no
22463 else
22464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h.  */
22466
22467 #ifndef __ELF__
22468 #error Not an ELF OS
22469 #endif
22470 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22471    if it can be used.  */
22472 static int x = -1;
22473 int main (void) { return x; }
22474 int foo (void) { x = 0; }
22475 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22476
22477 _ACEOF
22478 if ac_fn_c_try_run "$LINENO"; then :
22479   gcc_cv_initfini_array=yes
22480 else
22481   gcc_cv_initfini_array=no
22482 fi
22483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22484   conftest.$ac_objext conftest.beam conftest.$ac_ext
22485 fi
22486 ;;
22487       *)
22488         gcc_cv_initfini_array=no
22489         if test $in_tree_ld = yes ; then
22490           if test "$gcc_cv_gld_major_version" -eq 2 \
22491              -a "$gcc_cv_gld_minor_version" -ge 22 \
22492              -o "$gcc_cv_gld_major_version" -gt 2 \
22493              && test $in_tree_ld_is_elf = yes; then
22494             gcc_cv_initfini_array=yes
22495           fi
22496         elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22497           cat > conftest.s <<\EOF
22498 .section .dtors,"a",%progbits
22499 .balign 4
22500 .byte 'A', 'A', 'A', 'A'
22501 .section .ctors,"a",%progbits
22502 .balign 4
22503 .byte 'B', 'B', 'B', 'B'
22504 .section .fini_array.65530,"a",%progbits
22505 .balign 4
22506 .byte 'C', 'C', 'C', 'C'
22507 .section .init_array.65530,"a",%progbits
22508 .balign 4
22509 .byte 'D', 'D', 'D', 'D'
22510 .section .dtors.64528,"a",%progbits
22511 .balign 4
22512 .byte 'E', 'E', 'E', 'E'
22513 .section .ctors.64528,"a",%progbits
22514 .balign 4
22515 .byte 'F', 'F', 'F', 'F'
22516 .section .fini_array.01005,"a",%progbits
22517 .balign 4
22518 .byte 'G', 'G', 'G', 'G'
22519 .section .init_array.01005,"a",%progbits
22520 .balign 4
22521 .byte 'H', 'H', 'H', 'H'
22522 .text
22523 .globl _start
22524 _start:
22525 EOF
22526           if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22527              && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22528              && $gcc_cv_objdump -s -j .init_array conftest \
22529                 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22530              && $gcc_cv_objdump -s -j .fini_array conftest \
22531                 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22532             gcc_cv_initfini_array=yes
22533           fi
22534           rm -f conftest conftest.*
22535         fi
22536         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h.  */
22538
22539 #ifndef __ELF__
22540 # error Not an ELF OS
22541 #endif
22542 #include <stdlib.h>
22543 #if defined __GLIBC_PREREQ
22544 # if __GLIBC_PREREQ (2, 4)
22545 # else
22546 #  error GLIBC 2.4 required
22547 # endif
22548 #else
22549 # if defined __sun__ && defined __svr4__
22550    /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
22551 # else
22552 #  error The C library not known to support .init_array/.fini_array
22553 # endif
22554 #endif
22555
22556 _ACEOF
22557 if ac_fn_c_try_cpp "$LINENO"; then :
22558
22559     case "${target}" in
22560       *-*-solaris2.8*)
22561         # .init_array/.fini_array support was introduced in Solaris 8
22562         # patches 109147-08 (sparc) and 109148-08 (x86).  Since ld.so.1 and
22563         # ld are guaranteed to be updated in lockstep, we can check ld -V
22564         # instead.  Unfortunately, proper ld version numbers were only
22565         # introduced in rev. -14, so we check for that.
22566         if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then
22567           gcc_cv_initfini_array=no
22568         fi
22569       ;;
22570       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22571         # .init_array/.fini_array support is present since Solaris 9 FCS.
22572         ;;
22573     esac
22574
22575 else
22576   gcc_cv_initfini_array=no
22577 fi
22578 rm -f conftest.err conftest.$ac_ext;;
22579     esac
22580   else
22581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22582 $as_echo_n "checking cross compile... guessing... " >&6; }
22583     gcc_cv_initfini_array=no
22584   fi
22585 fi
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22587 $as_echo "$gcc_cv_initfini_array" >&6; }
22588   enable_initfini_array=$gcc_cv_initfini_array
22589
22590 fi
22591
22592 if test $enable_initfini_array = yes; then
22593
22594 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22595
22596 fi
22597
22598 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22600 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22601 if test "${gcc_cv_as_leb128+set}" = set; then :
22602   $as_echo_n "(cached) " >&6
22603 else
22604   gcc_cv_as_leb128=no
22605     if test $in_tree_gas = yes; then
22606     if test $in_tree_gas_is_elf = yes \
22607   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22608   then gcc_cv_as_leb128=yes
22609 fi
22610   elif test x$gcc_cv_as != x; then
22611     $as_echo '  .data
22612         .uleb128 L2 - L1
22613 L1:
22614         .uleb128 1280
22615         .sleb128 -1010
22616 L2:' > conftest.s
22617     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22618   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22619   (eval $ac_try) 2>&5
22620   ac_status=$?
22621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22622   test $ac_status = 0; }; }
22623     then
22624         # GAS versions before 2.11 do not support uleb128,
22625   # despite appearing to.
22626   # ??? There exists an elf-specific test that will crash
22627   # the assembler.  Perhaps it's better to figure out whether
22628   # arbitrary sections are supported and try the test.
22629   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22630   if echo "$as_ver" | grep GNU > /dev/null; then
22631     as_vers=`echo $as_ver | sed -n \
22632         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22633     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22634     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22635     if test $as_major -eq 2 && test $as_minor -lt 11
22636     then :
22637     else gcc_cv_as_leb128=yes
22638     fi
22639   fi
22640     else
22641       echo "configure: failed program was" >&5
22642       cat conftest.s >&5
22643     fi
22644     rm -f conftest.o conftest.s
22645   fi
22646 fi
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22648 $as_echo "$gcc_cv_as_leb128" >&6; }
22649 if test $gcc_cv_as_leb128 = yes; then
22650
22651 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22652
22653 fi
22654
22655 # Check if we have assembler support for unwind directives.
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22657 $as_echo_n "checking assembler for cfi directives... " >&6; }
22658 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22659   $as_echo_n "(cached) " >&6
22660 else
22661   gcc_cv_as_cfi_directive=no
22662   if test x$gcc_cv_as != x; then
22663     $as_echo '  .text
22664         .cfi_startproc
22665         .cfi_offset 0, 0
22666         .cfi_same_value 1
22667         .cfi_def_cfa 1, 2
22668         .cfi_escape 1, 2, 3, 4, 5
22669         .cfi_endproc' > conftest.s
22670     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22671   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22672   (eval $ac_try) 2>&5
22673   ac_status=$?
22674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22675   test $ac_status = 0; }; }
22676     then
22677         case "$target" in
22678   *-*-solaris*)
22679     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22680     # read-only and read-write sections, we need to make sure that the
22681     # assembler used emits read-write .eh_frame sections.
22682     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22683       if test "x$gcc_cv_objdump" != x; then
22684         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22685                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22686           gcc_cv_as_cfi_directive=no
22687         else
22688           case "$target" in
22689             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22690               # On Solaris/x86, make sure that GCC and gas agree on using
22691               # read-only .eh_frame sections for 64-bit.
22692               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22693                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22694                         sed -e /.eh_frame/!d -e N | \
22695                         grep READONLY > /dev/null; then
22696                 gcc_cv_as_cfi_directive=yes
22697               else
22698                 gcc_cv_as_cfi_directive=no
22699               fi
22700               ;;
22701             *)
22702               gcc_cv_as_cfi_directive=yes
22703               ;;
22704           esac
22705         fi
22706       else
22707         # no objdump, err on the side of caution
22708         gcc_cv_as_cfi_directive=no
22709       fi
22710     else
22711       gcc_cv_as_cfi_directive=yes
22712     fi
22713     ;;
22714   *-*-*)
22715     gcc_cv_as_cfi_directive=yes
22716     ;;
22717 esac
22718     else
22719       echo "configure: failed program was" >&5
22720       cat conftest.s >&5
22721     fi
22722     rm -f conftest.o conftest.s
22723   fi
22724 fi
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22726 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22727
22728 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22730 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22731 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22732   $as_echo_n "(cached) " >&6
22733 else
22734   gcc_cv_as_cfi_advance_working=no
22735   if test x$gcc_cv_as != x; then
22736     $as_echo '  .text
22737         .cfi_startproc
22738         .cfi_adjust_cfa_offset 64
22739         .skip 75040, 0
22740         .cfi_adjust_cfa_offset 128
22741         .cfi_endproc' > conftest.s
22742     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22743   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744   (eval $ac_try) 2>&5
22745   ac_status=$?
22746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747   test $ac_status = 0; }; }
22748     then
22749
22750 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22751     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22752    gcc_cv_as_cfi_advance_working=yes
22753 fi
22754
22755     else
22756       echo "configure: failed program was" >&5
22757       cat conftest.s >&5
22758     fi
22759     rm -f conftest.o conftest.s
22760   fi
22761 fi
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22763 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22764
22765 else
22766   # no objdump, err on the side of caution
22767   gcc_cv_as_cfi_advance_working=no
22768 fi
22769
22770
22771 cat >>confdefs.h <<_ACEOF
22772 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22773        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22774 _ACEOF
22775
22776
22777
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22779 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22780 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22781   $as_echo_n "(cached) " >&6
22782 else
22783   gcc_cv_as_cfi_personality_directive=no
22784   if test x$gcc_cv_as != x; then
22785     $as_echo '  .text
22786         .cfi_startproc
22787         .cfi_personality 0, symbol
22788         .cfi_endproc' > conftest.s
22789     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22790   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22791   (eval $ac_try) 2>&5
22792   ac_status=$?
22793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22794   test $ac_status = 0; }; }
22795     then
22796         gcc_cv_as_cfi_personality_directive=yes
22797     else
22798       echo "configure: failed program was" >&5
22799       cat conftest.s >&5
22800     fi
22801     rm -f conftest.o conftest.s
22802   fi
22803 fi
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22805 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22806
22807
22808 cat >>confdefs.h <<_ACEOF
22809 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22810     then echo 1; else echo 0; fi`
22811 _ACEOF
22812
22813
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22815 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22816 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22817   $as_echo_n "(cached) " >&6
22818 else
22819   gcc_cv_as_cfi_sections_directive=no
22820   if test x$gcc_cv_as != x; then
22821     $as_echo '  .text
22822         .cfi_sections .debug_frame, .eh_frame
22823         .cfi_startproc
22824         .cfi_endproc' > conftest.s
22825     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22826   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22827   (eval $ac_try) 2>&5
22828   ac_status=$?
22829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22830   test $ac_status = 0; }; }
22831     then
22832         case $target_os in
22833   win32 | pe | cygwin* | mingw32* | uwin*)
22834     # Need to check that we generated the correct relocation for the
22835     # .debug_frame section.  This was fixed for binutils 2.21.
22836     gcc_cv_as_cfi_sections_directive=no
22837     if test "x$gcc_cv_objdump" != x; then
22838      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22839         grep secrel > /dev/null; then
22840       gcc_cv_as_cfi_sections_directive=yes
22841      fi
22842     fi
22843     ;;
22844   *)
22845     gcc_cv_as_cfi_sections_directive=yes
22846     ;;
22847 esac
22848     else
22849       echo "configure: failed program was" >&5
22850       cat conftest.s >&5
22851     fi
22852     rm -f conftest.o conftest.s
22853   fi
22854 fi
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22856 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22857
22858
22859
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22862     then echo 1; else echo 0; fi`
22863 _ACEOF
22864
22865
22866 # GAS versions up to and including 2.11.0 may mis-optimize
22867 # .eh_frame data.
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22869 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22870 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22871   $as_echo_n "(cached) " >&6
22872 else
22873   gcc_cv_as_eh_frame=no
22874     if test $in_tree_gas = yes; then
22875     if test $in_tree_gas_is_elf = yes \
22876   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22877   then gcc_cv_as_eh_frame=yes
22878 fi
22879   elif test x$gcc_cv_as != x; then
22880     $as_echo '  .text
22881 .LFB1:
22882         .4byte  0
22883 .L1:
22884         .4byte  0
22885 .LFE1:
22886         .section        .eh_frame,"aw",@progbits
22887 __FRAME_BEGIN__:
22888         .4byte  .LECIE1-.LSCIE1
22889 .LSCIE1:
22890         .4byte  0x0
22891         .byte   0x1
22892         .ascii "z\0"
22893         .byte   0x1
22894         .byte   0x78
22895         .byte   0x1a
22896         .byte   0x0
22897         .byte   0x4
22898         .4byte  1
22899         .p2align 1
22900 .LECIE1:
22901 .LSFDE1:
22902         .4byte  .LEFDE1-.LASFDE1
22903 .LASFDE1:
22904         .4byte  .LASFDE1-__FRAME_BEGIN__
22905         .4byte  .LFB1
22906         .4byte  .LFE1-.LFB1
22907         .byte   0x4
22908         .4byte  .LFE1-.LFB1
22909         .byte   0x4
22910         .4byte  .L1-.LFB1
22911 .LEFDE1:' > conftest.s
22912     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22913   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22917   test $ac_status = 0; }; }
22918     then
22919           cat > conftest.lit <<EOF
22920  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22921  0010 01000000 12000000 18000000 00000000  ................
22922  0020 08000000 04080000 0044               .........D      
22923 EOF
22924 cat > conftest.big <<EOF
22925  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22926  0010 00000001 00000012 00000018 00000000  ................
22927  0020 00000008 04000000 0844               .........D      
22928 EOF
22929   # If the assembler didn't choke, and we can objdump,
22930   # and we got the correct data, then succeed.
22931   # The text in the here-document typically retains its unix-style line
22932   # endings, while the output of objdump will use host line endings.
22933   # Therefore, use diff -b for the comparisons.
22934   if test x$gcc_cv_objdump != x \
22935   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22936      | tail -3 > conftest.got \
22937   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22938     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22939   then
22940     gcc_cv_as_eh_frame=yes
22941   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22942   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22943   (eval $ac_try) 2>&5
22944   ac_status=$?
22945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22946   test $ac_status = 0; }; }; then
22947     gcc_cv_as_eh_frame=buggy
22948   else
22949     # Uh oh, what do we do now?
22950     gcc_cv_as_eh_frame=no
22951   fi
22952     else
22953       echo "configure: failed program was" >&5
22954       cat conftest.s >&5
22955     fi
22956     rm -f conftest.o conftest.s
22957   fi
22958 fi
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22960 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22961
22962
22963 if test $gcc_cv_as_eh_frame = buggy; then
22964
22965 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22966
22967 fi
22968
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22970 $as_echo_n "checking assembler for section merging support... " >&6; }
22971 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22972   $as_echo_n "(cached) " >&6
22973 else
22974   gcc_cv_as_shf_merge=no
22975     if test $in_tree_gas = yes; then
22976     if test $in_tree_gas_is_elf = yes \
22977   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22978   then gcc_cv_as_shf_merge=yes
22979 fi
22980   elif test x$gcc_cv_as != x; then
22981     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22982     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22983   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22984   (eval $ac_try) 2>&5
22985   ac_status=$?
22986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22987   test $ac_status = 0; }; }
22988     then
22989         gcc_cv_as_shf_merge=yes
22990     else
22991       echo "configure: failed program was" >&5
22992       cat conftest.s >&5
22993     fi
22994     rm -f conftest.o conftest.s
22995   fi
22996 fi
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22998 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22999
23000 if test $gcc_cv_as_shf_merge = no; then
23001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23002 $as_echo_n "checking assembler for section merging support... " >&6; }
23003 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23004   $as_echo_n "(cached) " >&6
23005 else
23006   gcc_cv_as_shf_merge=no
23007     if test $in_tree_gas = yes; then
23008     if test $in_tree_gas_is_elf = yes \
23009   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23010   then gcc_cv_as_shf_merge=yes
23011 fi
23012   elif test x$gcc_cv_as != x; then
23013     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23014     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23015   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23016   (eval $ac_try) 2>&5
23017   ac_status=$?
23018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23019   test $ac_status = 0; }; }
23020     then
23021         gcc_cv_as_shf_merge=yes
23022     else
23023       echo "configure: failed program was" >&5
23024       cat conftest.s >&5
23025     fi
23026     rm -f conftest.o conftest.s
23027   fi
23028 fi
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23030 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23031
23032 fi
23033
23034 cat >>confdefs.h <<_ACEOF
23035 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23036 _ACEOF
23037
23038
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23040 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23041 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23042   $as_echo_n "(cached) " >&6
23043 else
23044   gcc_cv_as_comdat_group=no
23045     if test $in_tree_gas = yes; then
23046     if test $in_tree_gas_is_elf = yes \
23047   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23048   then gcc_cv_as_comdat_group=yes
23049 fi
23050   elif test x$gcc_cv_as != x; then
23051     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23052     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23053   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23057   test $ac_status = 0; }; }
23058     then
23059         gcc_cv_as_comdat_group=yes
23060     else
23061       echo "configure: failed program was" >&5
23062       cat conftest.s >&5
23063     fi
23064     rm -f conftest.o conftest.s
23065   fi
23066 fi
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23068 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23069
23070 if test $gcc_cv_as_comdat_group = yes; then
23071   gcc_cv_as_comdat_group_percent=no
23072   gcc_cv_as_comdat_group_group=no
23073 else
23074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23075 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23076 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23077   $as_echo_n "(cached) " >&6
23078 else
23079   gcc_cv_as_comdat_group_percent=no
23080     if test $in_tree_gas = yes; then
23081     if test $in_tree_gas_is_elf = yes \
23082   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23083   then gcc_cv_as_comdat_group_percent=yes
23084 fi
23085   elif test x$gcc_cv_as != x; then
23086     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23087     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23088   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092   test $ac_status = 0; }; }
23093     then
23094         gcc_cv_as_comdat_group_percent=yes
23095     else
23096       echo "configure: failed program was" >&5
23097       cat conftest.s >&5
23098     fi
23099     rm -f conftest.o conftest.s
23100   fi
23101 fi
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23103 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23104
23105  if test $gcc_cv_as_comdat_group_percent = yes; then
23106    gcc_cv_as_comdat_group_group=no
23107  else
23108    case "${target}" in
23109      # Sun as uses a completely different syntax.
23110      *-*-solaris2*)
23111        case "${target}" in
23112          sparc*-*-solaris2*)
23113            conftest_s='
23114                .group foo,".text%foo",#comdat
23115                .section ".text%foo", #alloc,#execinstr,#progbits
23116                .globl foo
23117              foo:
23118              '
23119            ;;
23120          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23121            conftest_s='
23122                .group foo,.text%foo,#comdat
23123                .section .text%foo, "ax", @progbits
23124                .globl  foo
23125              foo:
23126              '
23127            ;;
23128        esac
23129        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23130 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23131 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23132   $as_echo_n "(cached) " >&6
23133 else
23134   gcc_cv_as_comdat_group_group=no
23135   if test x$gcc_cv_as != x; then
23136     $as_echo "$conftest_s" > conftest.s
23137     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23138   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23142   test $ac_status = 0; }; }
23143     then
23144         gcc_cv_as_comdat_group_group=yes
23145     else
23146       echo "configure: failed program was" >&5
23147       cat conftest.s >&5
23148     fi
23149     rm -f conftest.o conftest.s
23150   fi
23151 fi
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23153 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23154
23155        ;;
23156    esac
23157  fi
23158 fi
23159 if test x"$ld_is_gold" = xyes; then
23160   comdat_group=yes
23161 elif test $in_tree_ld = yes ; then
23162   comdat_group=no
23163   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
23164      && test $in_tree_ld_is_elf = yes; then
23165      comdat_group=yes
23166   fi
23167 elif echo "$ld_ver" | grep GNU > /dev/null; then
23168   comdat_group=yes
23169   if test 0"$ld_date" -lt 20050308; then
23170     if test -n "$ld_date"; then
23171       # If there was date string, but was earlier than 2005-03-08, fail
23172       comdat_group=no
23173     elif test "$ld_vers_major" -lt 2; then
23174       comdat_group=no
23175     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23176       comdat_group=no
23177     fi
23178   fi
23179 else
23180   case "${target}" in
23181     *-*-solaris2.1[1-9]*)
23182       comdat_group=no
23183       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23184       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23185       # version 1.688.
23186       #
23187       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23188       # least ld version 1.2267.
23189       if test "$ld_vers_major" -gt 1; then
23190         comdat_group=yes
23191       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23192         comdat_group=yes
23193       elif test "$ld_vers_minor" -ge 2267; then
23194         comdat_group=yes
23195       fi
23196       ;;
23197     *)
23198       # Assume linkers other than GNU ld don't support COMDAT group.
23199       comdat_group=no
23200       ;;
23201   esac
23202 fi
23203 # Allow overriding the automatic COMDAT group tests above.
23204 # Check whether --enable-comdat was given.
23205 if test "${enable_comdat+set}" = set; then :
23206   enableval=$enable_comdat; comdat_group="$enable_comdat"
23207 fi
23208
23209 if test $comdat_group = no; then
23210   gcc_cv_as_comdat_group=no
23211   gcc_cv_as_comdat_group_percent=no
23212   gcc_cv_as_comdat_group_group=no
23213 fi
23214
23215 cat >>confdefs.h <<_ACEOF
23216 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23217     || test $gcc_cv_as_comdat_group_percent = yes \
23218     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23219 _ACEOF
23220
23221
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23223 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23224 if test "${gcc_cv_as_discriminator+set}" = set; then :
23225   $as_echo_n "(cached) " >&6
23226 else
23227   gcc_cv_as_discriminator=no
23228     if test $in_tree_gas = yes; then
23229     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23230   then gcc_cv_as_discriminator=yes
23231 fi
23232   elif test x$gcc_cv_as != x; then
23233     $as_echo '  .text
23234         .file 1 "conf.c"
23235         .loc 1 1 0 discriminator 1' > conftest.s
23236     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23237   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23238   (eval $ac_try) 2>&5
23239   ac_status=$?
23240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23241   test $ac_status = 0; }; }
23242     then
23243         gcc_cv_as_discriminator=yes
23244     else
23245       echo "configure: failed program was" >&5
23246       cat conftest.s >&5
23247     fi
23248     rm -f conftest.o conftest.s
23249   fi
23250 fi
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23252 $as_echo "$gcc_cv_as_discriminator" >&6; }
23253 if test $gcc_cv_as_discriminator = yes; then
23254
23255 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23256
23257 fi
23258
23259 # Thread-local storage - the check is heavily parameterized.
23260 conftest_s=
23261 tls_first_major=
23262 tls_first_minor=
23263 tls_as_opt=
23264 case "$target" in
23265   alpha*-*-*)
23266     conftest_s='
23267         .section ".tdata","awT",@progbits
23268 foo:    .long   25
23269         .text
23270         ldq     $27,__tls_get_addr($29)         !literal!1
23271         lda     $16,foo($29)                    !tlsgd!1
23272         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23273         ldq     $27,__tls_get_addr($29)         !literal!2
23274         lda     $16,foo($29)                    !tlsldm!2
23275         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23276         ldq     $1,foo($29)                     !gotdtprel
23277         ldah    $2,foo($29)                     !dtprelhi
23278         lda     $3,foo($2)                      !dtprello
23279         lda     $4,foo($29)                     !dtprel
23280         ldq     $1,foo($29)                     !gottprel
23281         ldah    $2,foo($29)                     !tprelhi
23282         lda     $3,foo($2)                      !tprello
23283         lda     $4,foo($29)                     !tprel'
23284         tls_first_major=2
23285         tls_first_minor=13
23286         tls_as_opt=--fatal-warnings
23287         ;;
23288   cris-*-*|crisv32-*-*)
23289     conftest_s='
23290         .section ".tdata","awT",@progbits
23291 x:      .long   25
23292         .text
23293         move.d x:IE,$r10
23294         nop'
23295         tls_first_major=2
23296         tls_first_minor=20
23297         tls_as_opt=--fatal-warnings
23298         ;;
23299   frv*-*-*)
23300     conftest_s='
23301         .section ".tdata","awT",@progbits
23302 x:      .long   25
23303         .text
23304         call    #gettlsoff(x)'
23305         tls_first_major=2
23306         tls_first_minor=14
23307         ;;
23308   hppa*-*-linux*)
23309     conftest_s='
23310 t1:     .reg    %r20
23311 t2:     .reg    %r21
23312 gp:     .reg    %r19
23313         .section ".tdata","awT",@progbits
23314 foo:    .long   25
23315         .text
23316         .align  4
23317         addil LT%foo-$tls_gdidx$,gp
23318         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23319         b __tls_get_addr
23320         nop
23321         addil LT%foo-$tls_ldidx$,gp
23322         b __tls_get_addr
23323         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23324         addil LR%foo-$tls_dtpoff$,%ret0
23325         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23326         mfctl %cr27,%t1
23327         addil LT%foo-$tls_ieoff$,gp
23328         ldw RT%foo-$tls_ieoff$(%r1),%t2
23329         add %t1,%t2,%t3
23330         mfctl %cr27,%t1
23331         addil LR%foo-$tls_leoff$,%t1
23332         ldo RR%foo-$tls_leoff$(%r1),%t2'
23333         tls_first_major=2
23334         tls_first_minor=15
23335         tls_as_opt=--fatal-warnings
23336         ;;
23337   arm*-*-*)
23338     conftest_s='
23339         .section ".tdata","awT",%progbits
23340 foo:    .long   25
23341         .text
23342 .word foo(gottpoff)
23343 .word foo(tpoff)
23344 .word foo(tlsgd)
23345 .word foo(tlsldm)
23346 .word foo(tlsldo)'
23347         tls_first_major=2
23348         tls_first_minor=17
23349         ;;
23350   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23351     case "$target" in
23352       i[34567]86-*-solaris2.*)
23353         on_solaris=yes
23354         tga_func=___tls_get_addr
23355         ;;
23356       x86_64-*-solaris2.1[0-9]*)
23357         on_solaris=yes
23358         tga_func=__tls_get_addr
23359         ;;
23360       *)
23361         on_solaris=no
23362         ;;
23363     esac
23364     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23365       conftest_s='
23366         .section .tdata,"awt",@progbits'
23367       tls_first_major=0
23368       tls_first_minor=0
23369
23370 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23371
23372     else
23373       conftest_s='
23374         .section ".tdata","awT",@progbits'
23375       tls_first_major=2
23376       tls_first_minor=14
23377       tls_as_opt="--fatal-warnings"
23378     fi
23379     conftest_s="$conftest_s
23380 foo:    .long   25
23381         .text
23382         movl    %gs:0, %eax
23383         leal    foo@tlsgd(,%ebx,1), %eax
23384         leal    foo@tlsldm(%ebx), %eax
23385         leal    foo@dtpoff(%eax), %edx
23386         movl    foo@gottpoff(%ebx), %eax
23387         subl    foo@gottpoff(%ebx), %eax
23388         addl    foo@gotntpoff(%ebx), %eax
23389         movl    foo@indntpoff, %eax
23390         movl    \$foo@tpoff, %eax
23391         subl    \$foo@tpoff, %eax
23392         leal    foo@ntpoff(%ecx), %eax"
23393     ;;
23394   x86_64-*-*)
23395     conftest_s='
23396         .section ".tdata","awT",@progbits
23397 foo:    .long   25
23398         .text
23399         movq    %fs:0, %rax
23400         leaq    foo@TLSGD(%rip), %rdi
23401         leaq    foo@TLSLD(%rip), %rdi
23402         leaq    foo@DTPOFF(%rax), %rdx
23403         movq    foo@GOTTPOFF(%rip), %rax
23404         movq    $foo@TPOFF, %rax'
23405         tls_first_major=2
23406         tls_first_minor=14
23407         tls_as_opt=--fatal-warnings
23408         ;;
23409   ia64-*-*)
23410     conftest_s='
23411         .section ".tdata","awT",@progbits
23412 foo:    data8   25
23413         .text
23414         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23415         addl    r17 = @ltoff(@dtprel(foo#)), gp
23416         addl    r18 = @ltoff(@tprel(foo#)), gp
23417         addl    r19 = @dtprel(foo#), gp
23418         adds    r21 = @dtprel(foo#), r13
23419         movl    r23 = @dtprel(foo#)
23420         addl    r20 = @tprel(foo#), gp
23421         adds    r22 = @tprel(foo#), r13
23422         movl    r24 = @tprel(foo#)'
23423         tls_first_major=2
23424         tls_first_minor=13
23425         tls_as_opt=--fatal-warnings
23426         ;;
23427   mips*-*-*)
23428     conftest_s='
23429         .section .tdata,"awT",@progbits
23430 x:
23431         .word 2
23432         .text
23433         addiu $4, $28, %tlsgd(x)
23434         addiu $4, $28, %tlsldm(x)
23435         lui $4, %dtprel_hi(x)
23436         addiu $4, $4, %dtprel_lo(x)
23437         lw $4, %gottprel(x)($28)
23438         lui $4, %tprel_hi(x)
23439         addiu $4, $4, %tprel_lo(x)'
23440         tls_first_major=2
23441         tls_first_minor=16
23442         tls_as_opt='-32 --fatal-warnings'
23443         ;;
23444   m68k-*-*)
23445     conftest_s='
23446         .section .tdata,"awT",@progbits
23447 x:
23448         .word 2
23449         .text
23450 foo:
23451         move.l x@TLSGD(%a5),%a0
23452         move.l x@TLSLDM(%a5),%a0
23453         move.l x@TLSLDO(%a5),%a0
23454         move.l x@TLSIE(%a5),%a0
23455         move.l x@TLSLE(%a5),%a0'
23456         tls_first_major=2
23457         tls_first_minor=19
23458         tls_as_opt='--fatal-warnings'
23459         ;;
23460   powerpc-*-*)
23461     conftest_s='
23462         .section ".tdata","awT",@progbits
23463         .align 2
23464 ld0:    .space 4
23465 ld1:    .space 4
23466 x1:     .space 4
23467 x2:     .space 4
23468 x3:     .space 4
23469         .text
23470         addi 3,31,ld0@got@tlsgd
23471         bl __tls_get_addr
23472         addi 3,31,x1@got@tlsld
23473         bl __tls_get_addr
23474         addi 9,3,x1@dtprel
23475         addis 9,3,x2@dtprel@ha
23476         addi 9,9,x2@dtprel@l
23477         lwz 9,x3@got@tprel(31)
23478         add 9,9,x@tls
23479         addi 9,2,x1@tprel
23480         addis 9,2,x2@tprel@ha
23481         addi 9,9,x2@tprel@l'
23482         tls_first_major=2
23483         tls_first_minor=14
23484         tls_as_opt="-a32 --fatal-warnings"
23485         ;;
23486   powerpc64-*-*)
23487     conftest_s='
23488         .section ".tdata","awT",@progbits
23489         .align 3
23490 ld0:    .space 8
23491 ld1:    .space 8
23492 x1:     .space 8
23493 x2:     .space 8
23494 x3:     .space 8
23495         .text
23496         addi 3,2,ld0@got@tlsgd
23497         bl .__tls_get_addr
23498         nop
23499         addi 3,2,ld1@toc
23500         bl .__tls_get_addr
23501         nop
23502         addi 3,2,x1@got@tlsld
23503         bl .__tls_get_addr
23504         nop
23505         addi 9,3,x1@dtprel
23506         bl .__tls_get_addr
23507         nop
23508         addis 9,3,x2@dtprel@ha
23509         addi 9,9,x2@dtprel@l
23510         bl .__tls_get_addr
23511         nop
23512         ld 9,x3@got@dtprel(2)
23513         add 9,9,3
23514         bl .__tls_get_addr
23515         nop'
23516         tls_first_major=2
23517         tls_first_minor=14
23518         tls_as_opt="-a64 --fatal-warnings"
23519         ;;
23520   s390-*-*)
23521     conftest_s='
23522         .section ".tdata","awT",@progbits
23523 foo:    .long   25
23524         .text
23525         .long   foo@TLSGD
23526         .long   foo@TLSLDM
23527         .long   foo@DTPOFF
23528         .long   foo@NTPOFF
23529         .long   foo@GOTNTPOFF
23530         .long   foo@INDNTPOFF
23531         l       %r1,foo@GOTNTPOFF(%r12)
23532         l       %r1,0(%r1):tls_load:foo
23533         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23534         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23535         tls_first_major=2
23536         tls_first_minor=14
23537         tls_as_opt="-m31 --fatal-warnings"
23538         ;;
23539   s390x-*-*)
23540     conftest_s='
23541         .section ".tdata","awT",@progbits
23542 foo:    .long   25
23543         .text
23544         .quad   foo@TLSGD
23545         .quad   foo@TLSLDM
23546         .quad   foo@DTPOFF
23547         .quad   foo@NTPOFF
23548         .quad   foo@GOTNTPOFF
23549         lg      %r1,foo@GOTNTPOFF(%r12)
23550         larl    %r1,foo@INDNTPOFF
23551         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23552         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23553         tls_first_major=2
23554         tls_first_minor=14
23555         tls_as_opt="-m64 -Aesame --fatal-warnings"
23556         ;;
23557   sh-*-* | sh[34]-*-*)
23558     conftest_s='
23559         .section ".tdata","awT",@progbits
23560 foo:    .long   25
23561         .text
23562         .long   foo@TLSGD
23563         .long   foo@TLSLDM
23564         .long   foo@DTPOFF
23565         .long   foo@GOTTPOFF
23566         .long   foo@TPOFF'
23567         tls_first_major=2
23568         tls_first_minor=13
23569         tls_as_opt=--fatal-warnings
23570         ;;
23571   sparc*-*-*)
23572     case "$target" in
23573       sparc*-sun-solaris2.*)
23574         on_solaris=yes
23575         tga_func=__tls_get_addr
23576         ;;
23577       *)
23578         on_solaris=no
23579         ;;
23580     esac
23581     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23582       conftest_s='
23583         .section ".tdata",#alloc,#write,#tls'
23584         tls_first_major=0
23585         tls_first_minor=0
23586     else
23587       conftest_s='
23588         .section ".tdata","awT",@progbits'
23589         tls_first_major=2
23590         tls_first_minor=14
23591         tls_as_opt="-32 --fatal-warnings"
23592     fi
23593     conftest_s="$conftest_s
23594 foo:    .long   25
23595         .text
23596         sethi   %tgd_hi22(foo), %o0
23597         add     %o0, %tgd_lo10(foo), %o1
23598         add     %l7, %o1, %o0, %tgd_add(foo)
23599         call    __tls_get_addr, %tgd_call(foo)
23600         sethi   %tldm_hi22(foo), %l1
23601         add     %l1, %tldm_lo10(foo), %l2
23602         add     %l7, %l2, %o0, %tldm_add(foo)
23603         call    __tls_get_addr, %tldm_call(foo)
23604         sethi   %tldo_hix22(foo), %l3
23605         xor     %l3, %tldo_lox10(foo), %l4
23606         add     %o0, %l4, %l5, %tldo_add(foo)
23607         sethi   %tie_hi22(foo), %o3
23608         add     %o3, %tie_lo10(foo), %o3
23609         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23610         add     %g7, %o2, %o4, %tie_add(foo)
23611         sethi   %tle_hix22(foo), %l1
23612         xor     %l1, %tle_lox10(foo), %o5
23613         ld      [%g7 + %o5], %o1"
23614         ;;
23615   tilepro*-*-*)
23616       conftest_s='
23617         .section ".tdata","awT",@progbits
23618 foo:    .long   25
23619         .text
23620         addli   r0, zero, tls_gd(foo)
23621         auli    r0, zero, tls_gd_ha16(foo)
23622         addli   r0, r0, tls_gd_lo16(foo)
23623         jal     __tls_get_addr
23624         addli   r0, zero, tls_ie(foo)
23625         auli    r0, r0, tls_ie_ha16(foo)
23626         addli   r0, r0, tls_ie_lo16(foo)'
23627         tls_first_major=2
23628         tls_first_minor=22
23629         tls_as_opt="--fatal-warnings"
23630         ;;
23631   tilegx*-*-*)
23632       conftest_s='
23633         .section ".tdata","awT",@progbits
23634 foo:    .long   25
23635         .text
23636         shl16insli r0, zero, hw0_last_tls_gd(foo)
23637         shl16insli r0, zero, hw1_last_tls_gd(foo)
23638         shl16insli r0, r0,   hw0_tls_gd(foo)
23639         jal        __tls_get_addr
23640         shl16insli r0, zero, hw1_last_tls_ie(foo)
23641         shl16insli r0, r0,   hw0_tls_ie(foo)'
23642         tls_first_major=2
23643         tls_first_minor=22
23644         tls_as_opt="--fatal-warnings"
23645         ;;
23646   xtensa*-*-*)
23647     conftest_s='
23648         .section ".tdata","awT",@progbits
23649 foo:    .long   25
23650         .text
23651         movi    a8, foo@TLSFUNC
23652         movi    a10, foo@TLSARG
23653         callx8.tls a8, foo@TLSCALL'
23654         tls_first_major=2
23655         tls_first_minor=19
23656         ;;
23657 esac
23658 set_have_as_tls=no
23659 if test "x$enable_tls" = xno ; then
23660   : # TLS explicitly disabled.
23661 elif test "x$enable_tls" = xyes ; then
23662   set_have_as_tls=yes # TLS explicitly enabled.
23663 elif test -z "$tls_first_major"; then
23664   : # If we don't have a check, assume no support.
23665 else
23666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23667 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23668 if test "${gcc_cv_as_tls+set}" = set; then :
23669   $as_echo_n "(cached) " >&6
23670 else
23671   gcc_cv_as_tls=no
23672     if test $in_tree_gas = yes; then
23673     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23674   then gcc_cv_as_tls=yes
23675 fi
23676   elif test x$gcc_cv_as != x; then
23677     $as_echo "$conftest_s" > conftest.s
23678     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23679   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23680   (eval $ac_try) 2>&5
23681   ac_status=$?
23682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23683   test $ac_status = 0; }; }
23684     then
23685         gcc_cv_as_tls=yes
23686     else
23687       echo "configure: failed program was" >&5
23688       cat conftest.s >&5
23689     fi
23690     rm -f conftest.o conftest.s
23691   fi
23692 fi
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23694 $as_echo "$gcc_cv_as_tls" >&6; }
23695 if test $gcc_cv_as_tls = yes; then
23696   set_have_as_tls=yes
23697 fi
23698 fi
23699 case "$target" in
23700   *-*-irix6*)
23701     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23702     # with TLS support are in use, native TLS cannot work.
23703     set_have_as_tls=no
23704     ;;
23705   *-*-osf*)
23706     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23707     # gld with TLS support are in use, native TLS cannot work.
23708     set_have_as_tls=no
23709     ;;
23710   # TLS was introduced in the Solaris 9 FCS release and backported to
23711   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23712   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23713   # ld and GCC don't support any longer.
23714   *-*-solaris2.*)
23715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23716 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23717     ld_tls_support=no
23718     # Check ld and ld.so.1 TLS support.
23719     if echo "$ld_ver" | grep GNU > /dev/null; then
23720       # Assume all interesting versions of GNU ld have TLS support.
23721       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23722       ld_tls_support=yes
23723     else
23724       case "$target" in
23725         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23726         i?86-*-solaris2.8)
23727           min_tls_ld_vers_minor=280
23728           ;;
23729         # Solaris 8/SPARC ld has TLS support since version 1.272.
23730         sparc*-*-solaris2.8)
23731           min_tls_ld_vers_minor=272
23732           ;;
23733         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23734         i?86-*-solaris2.9)
23735           min_tls_ld_vers_minor=374
23736           ;;
23737         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23738         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23739           min_tls_ld_vers_minor=343
23740           ;;
23741       esac
23742       if test "$ld_vers_major" -gt 1 || \
23743         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23744         ld_tls_support=yes
23745       else
23746         set_have_as_tls=no
23747       fi
23748     fi
23749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23750 $as_echo "$ld_tls_support" >&6; }
23751
23752     save_LIBS="$LIBS"
23753     save_LDFLAGS="$LDFLAGS"
23754     LIBS=
23755     LDFLAGS=
23756
23757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23758 $as_echo_n "checking alternate thread library... " >&6; }
23759     case "$target" in
23760       # TLS support was backported to Solaris 8 patches, but only lives in
23761       # the alternate thread library which became the default in Solaris 9.
23762       # We want to always use that, irrespective of TLS support.
23763       *-*-solaris2.8)
23764         # Take multilib subdir into account.  There's no spec to handle
23765         # this.  The 64 symlink exists since Solaris 8.
23766         lwp_dir=/usr/lib/lwp
23767         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23768         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23769         ;;
23770       *-*-solaris2*)
23771         lwp_dir="none"
23772         lwp_spec=""
23773         ;;
23774     esac
23775     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23776
23777 cat >>confdefs.h <<_ACEOF
23778 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23779 _ACEOF
23780
23781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23782 $as_echo "$lwp_dir" >&6; }
23783
23784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23785 $as_echo_n "checking library containing $tga_func... " >&6; }
23786     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23787     # (32-bit x86) only lived in libthread, so check for that.  Keep
23788     # set_have_as_tls if found, disable if not.
23789     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23791 $as_echo_n "checking for library containing $tga_func... " >&6; }
23792 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23793   $as_echo_n "(cached) " >&6
23794 else
23795   ac_func_search_save_LIBS=$LIBS
23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h.  */
23798
23799 /* Override any GCC internal prototype to avoid an error.
23800    Use char because int might match the return type of a GCC
23801    builtin and then its argument prototype would still apply.  */
23802 #ifdef __cplusplus
23803 extern "C"
23804 #endif
23805 char $tga_func ();
23806 int
23807 main ()
23808 {
23809 return $tga_func ();
23810   ;
23811   return 0;
23812 }
23813 _ACEOF
23814 for ac_lib in '' thread; do
23815   if test -z "$ac_lib"; then
23816     ac_res="none required"
23817   else
23818     ac_res=-l$ac_lib
23819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23820   fi
23821   if ac_fn_c_try_link "$LINENO"; then :
23822   eval "$as_ac_Search=\$ac_res"
23823 fi
23824 rm -f core conftest.err conftest.$ac_objext \
23825     conftest$ac_exeext
23826   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23827   break
23828 fi
23829 done
23830 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23831
23832 else
23833   eval "$as_ac_Search=no"
23834 fi
23835 rm conftest.$ac_ext
23836 LIBS=$ac_func_search_save_LIBS
23837 fi
23838 eval ac_res=\$$as_ac_Search
23839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23840 $as_echo "$ac_res" >&6; }
23841 eval ac_res=\$$as_ac_Search
23842 if test "$ac_res" != no; then :
23843   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23844
23845 else
23846   set_have_as_tls=no
23847 fi
23848
23849     # Clear LIBS if we cannot support TLS.
23850     if test $set_have_as_tls = no; then
23851       LIBS=
23852     fi
23853     # Even without TLS support on Solaris 8, explicitly link with libthread
23854     # to guarantee that the alternate thread library is used.
23855     case "$target" in
23856       *-*-solaris2.8)
23857         LIBS=-lthread
23858         ;;
23859     esac
23860     # Always define LIB_TLS_SPEC, even without TLS support.
23861
23862 cat >>confdefs.h <<_ACEOF
23863 #define LIB_TLS_SPEC "$LIBS"
23864 _ACEOF
23865
23866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23867 $as_echo "$LIBS" >&6; }
23868
23869     LIBS="$save_LIBS"
23870     LDFLAGS="$save_LDFLAGS"
23871     ;;
23872 esac
23873 if test $set_have_as_tls = yes ; then
23874
23875 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23876
23877 fi
23878
23879 # Target-specific assembler checks.
23880
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23882 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23883 gcc_cv_ld_static_dynamic=no
23884 gcc_cv_ld_static_option='-Bstatic'
23885 gcc_cv_ld_dynamic_option='-Bdynamic'
23886 if test $in_tree_ld = yes ; then
23887   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
23888     gcc_cv_ld_static_dynamic=yes
23889   fi
23890 elif test x$gcc_cv_ld != x; then
23891   # Check if linker supports -Bstatic/-Bdynamic option
23892   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23893      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23894       gcc_cv_ld_static_dynamic=yes
23895   else
23896     case "$target" in
23897       # AIX ld uses -b flags
23898       *-*-aix4.[23]* | *-*-aix[5-9]*)
23899         gcc_cv_ld_static_dynamic=yes
23900         gcc_cv_ld_static_option="-bstatic"
23901         gcc_cv_ld_dynamic_option="-bdynamic"
23902         ;;
23903       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23904       alpha*-dec-osf*)
23905         gcc_cv_ld_static_dynamic=yes
23906         gcc_cv_ld_static_option="-noso"
23907         gcc_cv_ld_dynamic_option="-so_archive"
23908         ;;
23909       # HP-UX ld uses -a flags to select between shared and archive.
23910       *-*-hpux*)
23911         if test x"$gnu_ld" = xno; then
23912           gcc_cv_ld_static_dynamic=yes
23913           gcc_cv_ld_static_option="-aarchive_shared"
23914           gcc_cv_ld_dynamic_option="-adefault"
23915         fi
23916         ;;
23917       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23918       mips-sgi-irix6*)
23919         gcc_cv_ld_static_dynamic=yes
23920         ;;
23921       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23922       *-*-solaris2*)
23923         gcc_cv_ld_static_dynamic=yes
23924         ;;
23925     esac
23926   fi
23927 fi
23928 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23929
23930 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23931
23932
23933 cat >>confdefs.h <<_ACEOF
23934 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23935 _ACEOF
23936
23937
23938 cat >>confdefs.h <<_ACEOF
23939 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23940 _ACEOF
23941
23942 fi
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23944 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23945
23946 if test x"$demangler_in_ld" = xyes; then
23947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23948 $as_echo_n "checking linker --demangle support... " >&6; }
23949   gcc_cv_ld_demangle=no
23950   if test $in_tree_ld = yes; then
23951     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
23952       gcc_cv_ld_demangle=yes
23953     fi
23954   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23955     # Check if the GNU linker supports --demangle option
23956     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23957       gcc_cv_ld_demangle=yes
23958     fi
23959   fi
23960   if test x"$gcc_cv_ld_demangle" = xyes; then
23961
23962 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23963
23964   fi
23965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23966 $as_echo "$gcc_cv_ld_demangle" >&6; }
23967 fi
23968
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23970 $as_echo_n "checking linker plugin support... " >&6; }
23971 gcc_cv_lto_plugin=0
23972 if test -f liblto_plugin.la; then
23973   save_ld_ver="$ld_ver"
23974   save_ld_vers_major="$ld_vers_major"
23975   save_ld_vers_minor="$ld_vers_minor"
23976   save_ld_is_gold="$ld_is_gold"
23977
23978   ld_is_gold=no
23979
23980   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23981     ld_ver="GNU ld"
23982     # FIXME: ld_is_gold?
23983     ld_vers_major="$gcc_cv_gld_major_version"
23984     ld_vers_minor="$gcc_cv_gld_minor_version"
23985   else
23986     # Determine plugin linker version.
23987     # FIXME: Partial duplicate from above, generalize.
23988     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23989     if echo "$ld_ver" | grep GNU > /dev/null; then
23990       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23991         ld_is_gold=yes
23992         ld_vers=`echo $ld_ver | sed -n \
23993             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23994       else
23995         ld_vers=`echo $ld_ver | sed -n \
23996             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23997       fi
23998       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23999       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24000     fi
24001   fi
24002
24003   # Determine plugin support.
24004   if echo "$ld_ver" | grep GNU > /dev/null; then
24005     # Require GNU ld or gold 2.21+ for plugin support by default.
24006     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24007       gcc_cv_lto_plugin=2
24008     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24009     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24010       gcc_cv_lto_plugin=1
24011     fi
24012   fi
24013
24014   ld_ver="$save_ld_ver"
24015   ld_vers_major="$save_ld_vers_major"
24016   ld_vers_minor="$save_ld_vers_minor"
24017   ld_is_gold="$save_ld_is_gold"
24018 fi
24019
24020 cat >>confdefs.h <<_ACEOF
24021 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24022 _ACEOF
24023
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24025 $as_echo "$gcc_cv_lto_plugin" >&6; }
24026
24027 case "$target" in
24028   # All TARGET_ABI_OSF targets.
24029   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
24030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24031 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24032 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24033   $as_echo_n "(cached) " >&6
24034 else
24035   gcc_cv_as_alpha_explicit_relocs=no
24036     if test $in_tree_gas = yes; then
24037     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24038   then gcc_cv_as_alpha_explicit_relocs=yes
24039 fi
24040   elif test x$gcc_cv_as != x; then
24041     $as_echo '  .set nomacro
24042         .text
24043         extbl   $3, $2, $3      !lituse_bytoff!1
24044         ldq     $2, a($29)      !literal!1
24045         ldq     $4, b($29)      !literal!2
24046         ldq_u   $3, 0($2)       !lituse_base!1
24047         ldq     $27, f($29)     !literal!5
24048         jsr     $26, ($27), f   !lituse_jsr!5
24049         ldah    $29, 0($26)     !gpdisp!3
24050         lda     $0, c($29)      !gprel
24051         ldah    $1, d($29)      !gprelhigh
24052         lda     $1, d($1)       !gprellow
24053         lda     $29, 0($29)     !gpdisp!3' > conftest.s
24054     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24055   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24056   (eval $ac_try) 2>&5
24057   ac_status=$?
24058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24059   test $ac_status = 0; }; }
24060     then
24061         gcc_cv_as_alpha_explicit_relocs=yes
24062     else
24063       echo "configure: failed program was" >&5
24064       cat conftest.s >&5
24065     fi
24066     rm -f conftest.o conftest.s
24067   fi
24068 fi
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24070 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24071 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24072
24073 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24074
24075 fi
24076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24077 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24078 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24079   $as_echo_n "(cached) " >&6
24080 else
24081   gcc_cv_as_alpha_jsrdirect_relocs=no
24082     if test $in_tree_gas = yes; then
24083     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24084   then gcc_cv_as_alpha_jsrdirect_relocs=yes
24085 fi
24086   elif test x$gcc_cv_as != x; then
24087     $as_echo '  .set nomacro
24088         .text
24089         ldq     $27, a($29)     !literal!1
24090         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
24091     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24092   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096   test $ac_status = 0; }; }
24097     then
24098         gcc_cv_as_alpha_jsrdirect_relocs=yes
24099     else
24100       echo "configure: failed program was" >&5
24101       cat conftest.s >&5
24102     fi
24103     rm -f conftest.o conftest.s
24104   fi
24105 fi
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24107 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24108 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24109
24110 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24111
24112 fi
24113     ;;
24114
24115   cris-*-*)
24116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24117 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24118 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24119   $as_echo_n "(cached) " >&6
24120 else
24121   gcc_cv_as_cris_no_mul_bug=no
24122     if test $in_tree_gas = yes; then
24123     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24124   then gcc_cv_as_cris_no_mul_bug=yes
24125 fi
24126   elif test x$gcc_cv_as != x; then
24127     $as_echo '.text' > conftest.s
24128     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24129   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133   test $ac_status = 0; }; }
24134     then
24135         gcc_cv_as_cris_no_mul_bug=yes
24136     else
24137       echo "configure: failed program was" >&5
24138       cat conftest.s >&5
24139     fi
24140     rm -f conftest.o conftest.s
24141   fi
24142 fi
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24144 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24145 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24146
24147 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24148
24149 fi
24150     ;;
24151
24152   sparc*-*-*)
24153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24154 $as_echo_n "checking assembler for .register... " >&6; }
24155 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24156   $as_echo_n "(cached) " >&6
24157 else
24158   gcc_cv_as_sparc_register_op=no
24159   if test x$gcc_cv_as != x; then
24160     $as_echo '.register %g2, #scratch' > conftest.s
24161     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24162   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24163   (eval $ac_try) 2>&5
24164   ac_status=$?
24165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24166   test $ac_status = 0; }; }
24167     then
24168         gcc_cv_as_sparc_register_op=yes
24169     else
24170       echo "configure: failed program was" >&5
24171       cat conftest.s >&5
24172     fi
24173     rm -f conftest.o conftest.s
24174   fi
24175 fi
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24177 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24178 if test $gcc_cv_as_sparc_register_op = yes; then
24179
24180 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24181
24182 fi
24183
24184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24185 $as_echo_n "checking assembler for -relax option... " >&6; }
24186 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24187   $as_echo_n "(cached) " >&6
24188 else
24189   gcc_cv_as_sparc_relax=no
24190   if test x$gcc_cv_as != x; then
24191     $as_echo '.text' > conftest.s
24192     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24193   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194   (eval $ac_try) 2>&5
24195   ac_status=$?
24196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197   test $ac_status = 0; }; }
24198     then
24199         gcc_cv_as_sparc_relax=yes
24200     else
24201       echo "configure: failed program was" >&5
24202       cat conftest.s >&5
24203     fi
24204     rm -f conftest.o conftest.s
24205   fi
24206 fi
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24208 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24209 if test $gcc_cv_as_sparc_relax = yes; then
24210
24211 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24212
24213 fi
24214
24215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24216 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24217 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24218   $as_echo_n "(cached) " >&6
24219 else
24220   gcc_cv_as_sparc_gotdata_op=no
24221   if test x$gcc_cv_as != x; then
24222     $as_echo '.text
24223 .align 4
24224 foo:
24225         nop
24226 bar:
24227         sethi %gdop_hix22(foo), %g1
24228         xor    %g1, %gdop_lox10(foo), %g1
24229         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24230     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24231   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24232   (eval $ac_try) 2>&5
24233   ac_status=$?
24234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24235   test $ac_status = 0; }; }
24236     then
24237         if test x$gcc_cv_ld != x \
24238        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24239          if test x$gcc_cv_objdump != x; then
24240            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24241               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24242                gcc_cv_as_sparc_gotdata_op=no
24243            else
24244                gcc_cv_as_sparc_gotdata_op=yes
24245            fi
24246          fi
24247        fi
24248        rm -f conftest
24249     else
24250       echo "configure: failed program was" >&5
24251       cat conftest.s >&5
24252     fi
24253     rm -f conftest.o conftest.s
24254   fi
24255 fi
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24257 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24258 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24259
24260 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24261
24262 fi
24263
24264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24265 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24266 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24267   $as_echo_n "(cached) " >&6
24268 else
24269   gcc_cv_as_sparc_ua_pcrel=no
24270   if test x$gcc_cv_as != x; then
24271     $as_echo '.text
24272 foo:
24273         nop
24274 .data
24275 .align 4
24276 .byte 0
24277 .uaword %r_disp32(foo)' > conftest.s
24278     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24279   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24280   (eval $ac_try) 2>&5
24281   ac_status=$?
24282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24283   test $ac_status = 0; }; }
24284     then
24285         if test x$gcc_cv_ld != x \
24286        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24287          gcc_cv_as_sparc_ua_pcrel=yes
24288        fi
24289        rm -f conftest
24290     else
24291       echo "configure: failed program was" >&5
24292       cat conftest.s >&5
24293     fi
24294     rm -f conftest.o conftest.s
24295   fi
24296 fi
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24298 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24299 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24300
24301 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24302
24303
24304       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24305 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24306 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24307   $as_echo_n "(cached) " >&6
24308 else
24309   gcc_cv_as_sparc_ua_pcrel_hidden=no
24310   if test x$gcc_cv_as != x; then
24311     $as_echo '.data
24312 .align 4
24313 .byte 0x31
24314 .uaword %r_disp32(foo)
24315 .byte 0x32, 0x33, 0x34
24316 .global foo
24317 .hidden foo
24318 foo:
24319 .skip 4' > conftest.s
24320     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24321   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322   (eval $ac_try) 2>&5
24323   ac_status=$?
24324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325   test $ac_status = 0; }; }
24326     then
24327         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24328          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24329          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24330             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24331             if $gcc_cv_objdump -R conftest 2> /dev/null \
24332                | grep 'DISP32' > /dev/null 2>&1; then
24333                 :
24334             else
24335                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24336             fi
24337          fi
24338          rm -f conftest
24339     else
24340       echo "configure: failed program was" >&5
24341       cat conftest.s >&5
24342     fi
24343     rm -f conftest.o conftest.s
24344   fi
24345 fi
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24347 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24348 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24349
24350 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24351
24352 fi
24353
24354 fi # unaligned pcrel relocs
24355
24356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24357 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24358 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24359   $as_echo_n "(cached) " >&6
24360 else
24361   gcc_cv_as_sparc_offsetable_lo10=no
24362   if test x$gcc_cv_as != x; then
24363     $as_echo '.text
24364         or %g1, %lo(ab) + 12, %g1
24365         or %g1, %lo(ab + 12), %g1' > conftest.s
24366     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24367   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24368   (eval $ac_try) 2>&5
24369   ac_status=$?
24370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24371   test $ac_status = 0; }; }
24372     then
24373         if test x$gcc_cv_objdump != x \
24374        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24375           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24376          gcc_cv_as_sparc_offsetable_lo10=yes
24377        fi
24378     else
24379       echo "configure: failed program was" >&5
24380       cat conftest.s >&5
24381     fi
24382     rm -f conftest.o conftest.s
24383   fi
24384 fi
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24386 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24387 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24388
24389 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24390
24391 fi
24392
24393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24394 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24395 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24396   $as_echo_n "(cached) " >&6
24397 else
24398   gcc_cv_as_sparc_fmaf=no
24399   if test x$gcc_cv_as != x; then
24400     $as_echo '.text
24401        .register %g2, #scratch
24402        .register %g3, #scratch
24403        .align 4
24404        fmaddd %f0, %f2, %f4, %f6
24405        addxccc %g1, %g2, %g3
24406        fsrl32 %f2, %f4, %f8
24407        fnaddd %f10, %f12, %f14' > conftest.s
24408     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24409   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413   test $ac_status = 0; }; }
24414     then
24415         gcc_cv_as_sparc_fmaf=yes
24416     else
24417       echo "configure: failed program was" >&5
24418       cat conftest.s >&5
24419     fi
24420     rm -f conftest.o conftest.s
24421   fi
24422 fi
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24424 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24425 if test $gcc_cv_as_sparc_fmaf = yes; then
24426
24427 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24428
24429 fi
24430     ;;
24431
24432   i[34567]86-*-* | x86_64-*-*)
24433     case $target_os in
24434       cygwin*)
24435         # Full C++ conformance when using a shared libstdc++-v3 requires some
24436         # support from the Cygwin DLL, which in more recent versions exports
24437         # wrappers to aid in interposing and redirecting operators new, delete,
24438         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24439         # are configuring for a version of Cygwin that exports the wrappers.
24440         if test x$host = x$target; then
24441           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24442 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24443   gcc_ac_cygwin_dll_wrappers=yes
24444 else
24445   gcc_ac_cygwin_dll_wrappers=no
24446 fi
24447
24448         else
24449           # Can't check presence of libc functions during cross-compile, so
24450           # we just have to assume we're building for an up-to-date target.
24451           gcc_ac_cygwin_dll_wrappers=yes
24452         fi
24453
24454 cat >>confdefs.h <<_ACEOF
24455 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24456 _ACEOF
24457
24458     esac
24459     case $target_os in
24460       cygwin* | pe | mingw32* | interix*)
24461         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24462         # definition is used unconditionally to initialise the default state of
24463         # the target option variable that governs usage of the feature.
24464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24465 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24466 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24467   $as_echo_n "(cached) " >&6
24468 else
24469   gcc_cv_as_comm_has_align=no
24470     if test $in_tree_gas = yes; then
24471     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24472   then gcc_cv_as_comm_has_align=yes
24473 fi
24474   elif test x$gcc_cv_as != x; then
24475     $as_echo '.comm foo,1,32' > conftest.s
24476     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24477   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481   test $ac_status = 0; }; }
24482     then
24483         gcc_cv_as_comm_has_align=yes
24484     else
24485       echo "configure: failed program was" >&5
24486       cat conftest.s >&5
24487     fi
24488     rm -f conftest.o conftest.s
24489   fi
24490 fi
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24492 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24493
24494
24495 cat >>confdefs.h <<_ACEOF
24496 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24497 _ACEOF
24498
24499         # Used for DWARF 2 in PE
24500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24501 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24502 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24503   $as_echo_n "(cached) " >&6
24504 else
24505   gcc_cv_as_ix86_pe_secrel32=no
24506     if test $in_tree_gas = yes; then
24507     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24508   then gcc_cv_as_ix86_pe_secrel32=yes
24509 fi
24510   elif test x$gcc_cv_as != x; then
24511     $as_echo '.text
24512 foo:    nop
24513 .data
24514         .secrel32 foo' > conftest.s
24515     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24516   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517   (eval $ac_try) 2>&5
24518   ac_status=$?
24519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520   test $ac_status = 0; }; }
24521     then
24522         if test x$gcc_cv_ld != x \
24523            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24524              gcc_cv_as_ix86_pe_secrel32=yes
24525            fi
24526            rm -f conftest
24527     else
24528       echo "configure: failed program was" >&5
24529       cat conftest.s >&5
24530     fi
24531     rm -f conftest.o conftest.s
24532   fi
24533 fi
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24535 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24536 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24537
24538 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24539
24540 fi
24541         # Test if the assembler supports the extended form of the .section
24542         # directive that specifies section alignment.  LTO support uses this,
24543         # but normally only after installation, so we warn but don't fail the
24544         # configure if LTO is enabled but the assembler does not support it.
24545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24546 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24547 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24548   $as_echo_n "(cached) " >&6
24549 else
24550   gcc_cv_as_section_has_align=no
24551     if test $in_tree_gas = yes; then
24552     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24553   then gcc_cv_as_section_has_align=yes
24554 fi
24555   elif test x$gcc_cv_as != x; then
24556     $as_echo '.section lto_test,"dr0"' > conftest.s
24557     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24558   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559   (eval $ac_try) 2>&5
24560   ac_status=$?
24561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562   test $ac_status = 0; }; }
24563     then
24564         gcc_cv_as_section_has_align=yes
24565     else
24566       echo "configure: failed program was" >&5
24567       cat conftest.s >&5
24568     fi
24569     rm -f conftest.o conftest.s
24570   fi
24571 fi
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24573 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24574
24575         if test x$gcc_cv_as_section_has_align != xyes; then
24576           case ",$enable_languages," in
24577             *,lto,*)
24578               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24579 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24580               ;;
24581           esac
24582         fi
24583         # Test if the assembler supports the section flag 'e' for specifying
24584         # an excluded section.
24585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24586 $as_echo_n "checking assembler for .section with e... " >&6; }
24587 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24588   $as_echo_n "(cached) " >&6
24589 else
24590   gcc_cv_as_section_has_e=no
24591     if test $in_tree_gas = yes; then
24592     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24593   then gcc_cv_as_section_has_e=yes
24594 fi
24595   elif test x$gcc_cv_as != x; then
24596     $as_echo '.section foo1,"e"
24597 .byte 0,0,0,0' > conftest.s
24598     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24599   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24600   (eval $ac_try) 2>&5
24601   ac_status=$?
24602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24603   test $ac_status = 0; }; }
24604     then
24605         gcc_cv_as_section_has_e=yes
24606     else
24607       echo "configure: failed program was" >&5
24608       cat conftest.s >&5
24609     fi
24610     rm -f conftest.o conftest.s
24611   fi
24612 fi
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24614 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24615
24616
24617 cat >>confdefs.h <<_ACEOF
24618 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24619 _ACEOF
24620
24621         ;;
24622     esac
24623
24624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24625 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24626 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24627   $as_echo_n "(cached) " >&6
24628 else
24629   gcc_cv_as_ix86_filds=no
24630   if test x$gcc_cv_as != x; then
24631     $as_echo 'filds mem; fists mem' > conftest.s
24632     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24633   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24634   (eval $ac_try) 2>&5
24635   ac_status=$?
24636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24637   test $ac_status = 0; }; }
24638     then
24639         gcc_cv_as_ix86_filds=yes
24640     else
24641       echo "configure: failed program was" >&5
24642       cat conftest.s >&5
24643     fi
24644     rm -f conftest.o conftest.s
24645   fi
24646 fi
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24648 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24649 if test $gcc_cv_as_ix86_filds = yes; then
24650
24651 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24652
24653 fi
24654
24655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24656 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24657 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24658   $as_echo_n "(cached) " >&6
24659 else
24660   gcc_cv_as_ix86_fildq=no
24661   if test x$gcc_cv_as != x; then
24662     $as_echo 'fildq mem; fistpq mem' > conftest.s
24663     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24664   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668   test $ac_status = 0; }; }
24669     then
24670         gcc_cv_as_ix86_fildq=yes
24671     else
24672       echo "configure: failed program was" >&5
24673       cat conftest.s >&5
24674     fi
24675     rm -f conftest.o conftest.s
24676   fi
24677 fi
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24679 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24680 if test $gcc_cv_as_ix86_fildq = yes; then
24681
24682 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24683
24684 fi
24685
24686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24687 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24688 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24689   $as_echo_n "(cached) " >&6
24690 else
24691   gcc_cv_as_ix86_cmov_sun_syntax=no
24692   if test x$gcc_cv_as != x; then
24693     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24694     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24695   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696   (eval $ac_try) 2>&5
24697   ac_status=$?
24698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699   test $ac_status = 0; }; }
24700     then
24701         gcc_cv_as_ix86_cmov_sun_syntax=yes
24702     else
24703       echo "configure: failed program was" >&5
24704       cat conftest.s >&5
24705     fi
24706     rm -f conftest.o conftest.s
24707   fi
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24710 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24711 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24712
24713 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24714
24715 fi
24716
24717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24718 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24719 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24720   $as_echo_n "(cached) " >&6
24721 else
24722   gcc_cv_as_ix86_ffreep=no
24723   if test x$gcc_cv_as != x; then
24724     $as_echo 'ffreep %st(1)' > conftest.s
24725     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24726   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727   (eval $ac_try) 2>&5
24728   ac_status=$?
24729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730   test $ac_status = 0; }; }
24731     then
24732         gcc_cv_as_ix86_ffreep=yes
24733     else
24734       echo "configure: failed program was" >&5
24735       cat conftest.s >&5
24736     fi
24737     rm -f conftest.o conftest.s
24738   fi
24739 fi
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24741 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24742 if test $gcc_cv_as_ix86_ffreep = yes; then
24743
24744 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24745
24746 fi
24747
24748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24749 $as_echo_n "checking assembler for .quad directive... " >&6; }
24750 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24751   $as_echo_n "(cached) " >&6
24752 else
24753   gcc_cv_as_ix86_quad=no
24754   if test x$gcc_cv_as != x; then
24755     $as_echo '.quad 0' > conftest.s
24756     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24757   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24758   (eval $ac_try) 2>&5
24759   ac_status=$?
24760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761   test $ac_status = 0; }; }
24762     then
24763         gcc_cv_as_ix86_quad=yes
24764     else
24765       echo "configure: failed program was" >&5
24766       cat conftest.s >&5
24767     fi
24768     rm -f conftest.o conftest.s
24769   fi
24770 fi
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24772 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24773 if test $gcc_cv_as_ix86_quad = yes; then
24774
24775 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24776
24777 fi
24778
24779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24780 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24781 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24782   $as_echo_n "(cached) " >&6
24783 else
24784   gcc_cv_as_ix86_sahf=no
24785   if test x$gcc_cv_as != x; then
24786     $as_echo '.code64
24787        sahf' > conftest.s
24788     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24789   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790   (eval $ac_try) 2>&5
24791   ac_status=$?
24792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793   test $ac_status = 0; }; }
24794     then
24795         gcc_cv_as_ix86_sahf=yes
24796     else
24797       echo "configure: failed program was" >&5
24798       cat conftest.s >&5
24799     fi
24800     rm -f conftest.o conftest.s
24801   fi
24802 fi
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24804 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24805 if test $gcc_cv_as_ix86_sahf = yes; then
24806
24807 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24808
24809 fi
24810
24811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24812 $as_echo_n "checking assembler for swap suffix... " >&6; }
24813 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24814   $as_echo_n "(cached) " >&6
24815 else
24816   gcc_cv_as_ix86_swap=no
24817   if test x$gcc_cv_as != x; then
24818     $as_echo 'movl.s %esp, %ebp' > conftest.s
24819     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24820   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821   (eval $ac_try) 2>&5
24822   ac_status=$?
24823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824   test $ac_status = 0; }; }
24825     then
24826         gcc_cv_as_ix86_swap=yes
24827     else
24828       echo "configure: failed program was" >&5
24829       cat conftest.s >&5
24830     fi
24831     rm -f conftest.o conftest.s
24832   fi
24833 fi
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24835 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24836 if test $gcc_cv_as_ix86_swap = yes; then
24837
24838 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24839
24840 fi
24841
24842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24843 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24844 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24845   $as_echo_n "(cached) " >&6
24846 else
24847   gcc_cv_as_ix86_diff_sect_delta=no
24848   if test x$gcc_cv_as != x; then
24849     $as_echo '.section .rodata
24850 .L1:
24851         .long .L2-.L1
24852         .long .L3-.L1
24853         .text
24854 .L3:    nop
24855 .L2:    nop' > conftest.s
24856     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24857   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858   (eval $ac_try) 2>&5
24859   ac_status=$?
24860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861   test $ac_status = 0; }; }
24862     then
24863         gcc_cv_as_ix86_diff_sect_delta=yes
24864     else
24865       echo "configure: failed program was" >&5
24866       cat conftest.s >&5
24867     fi
24868     rm -f conftest.o conftest.s
24869   fi
24870 fi
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24872 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24873 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24874
24875 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24876
24877 fi
24878
24879     # These two are used unconditionally by i386.[ch]; it is to be defined
24880     # to 1 if the feature is present, 0 otherwise.
24881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24882 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24883 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24884   $as_echo_n "(cached) " >&6
24885 else
24886   gcc_cv_as_ix86_gotoff_in_data=no
24887     if test $in_tree_gas = yes; then
24888     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24889   then gcc_cv_as_ix86_gotoff_in_data=yes
24890 fi
24891   elif test x$gcc_cv_as != x; then
24892     $as_echo '  .text
24893 .L0:
24894         nop
24895         .data
24896         .long .L0@GOTOFF' > conftest.s
24897     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24898   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899   (eval $ac_try) 2>&5
24900   ac_status=$?
24901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902   test $ac_status = 0; }; }
24903     then
24904         gcc_cv_as_ix86_gotoff_in_data=yes
24905     else
24906       echo "configure: failed program was" >&5
24907       cat conftest.s >&5
24908     fi
24909     rm -f conftest.o conftest.s
24910   fi
24911 fi
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24913 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24914
24915
24916 cat >>confdefs.h <<_ACEOF
24917 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24918 _ACEOF
24919
24920
24921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24922 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24923 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24924   $as_echo_n "(cached) " >&6
24925 else
24926   gcc_cv_as_ix86_rep_lock_prefix=no
24927   if test x$gcc_cv_as != x; then
24928     $as_echo 'rep movsl
24929          lock addl %edi, (%eax,%esi)
24930          lock orl $0, (%esp)' > conftest.s
24931     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24932   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24933   (eval $ac_try) 2>&5
24934   ac_status=$?
24935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24936   test $ac_status = 0; }; }
24937     then
24938         gcc_cv_as_ix86_rep_lock_prefix=yes
24939     else
24940       echo "configure: failed program was" >&5
24941       cat conftest.s >&5
24942     fi
24943     rm -f conftest.o conftest.s
24944   fi
24945 fi
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24947 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24948 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24949
24950 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24951
24952 fi
24953
24954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24955 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24956 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24957   $as_echo_n "(cached) " >&6
24958 else
24959   gcc_cv_as_ix86_tlsgdplt=no
24960   if test x$gcc_cv_as != x; then
24961     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24962     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24963   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24964   (eval $ac_try) 2>&5
24965   ac_status=$?
24966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24967   test $ac_status = 0; }; }
24968     then
24969         if test x$gcc_cv_ld != x \
24970          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24971            gcc_cv_as_ix86_tlsgdplt=yes
24972          fi
24973          rm -f conftest
24974     else
24975       echo "configure: failed program was" >&5
24976       cat conftest.s >&5
24977     fi
24978     rm -f conftest.o conftest.s
24979   fi
24980 fi
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24982 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24983 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24984
24985 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24986
24987 fi
24988
24989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24990 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24991 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24992   $as_echo_n "(cached) " >&6
24993 else
24994   gcc_cv_as_ix86_tlsldmplt=no
24995   if test x$gcc_cv_as != x; then
24996     $as_echo 'tls_ld:
24997          call    tls_ld@tlsldmplt' > conftest.s
24998     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24999   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000   (eval $ac_try) 2>&5
25001   ac_status=$?
25002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003   test $ac_status = 0; }; }
25004     then
25005         if test x$gcc_cv_ld != x \
25006          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25007            gcc_cv_as_ix86_tlsldmplt=yes
25008          fi
25009          rm -f conftest
25010     else
25011       echo "configure: failed program was" >&5
25012       cat conftest.s >&5
25013     fi
25014     rm -f conftest.o conftest.s
25015   fi
25016 fi
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25018 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25019 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25020
25021 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25022
25023 fi
25024
25025     ;;
25026
25027   ia64*-*-*)
25028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25029 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25030 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25031   $as_echo_n "(cached) " >&6
25032 else
25033   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25034     if test $in_tree_gas = yes; then
25035     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25036   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25037 fi
25038   elif test x$gcc_cv_as != x; then
25039     $as_echo '  .text
25040         addl r15 = @ltoffx(x#), gp
25041         ;;
25042         ld8.mov r16 = [r15], x#' > conftest.s
25043     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25044   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25048   test $ac_status = 0; }; }
25049     then
25050         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25051     else
25052       echo "configure: failed program was" >&5
25053       cat conftest.s >&5
25054     fi
25055     rm -f conftest.o conftest.s
25056   fi
25057 fi
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25059 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25060 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25061
25062 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25063
25064 fi
25065
25066     ;;
25067
25068   powerpc*-*-*)
25069     case $target in
25070       *-*-aix*) conftest_s='    .machine "pwr5"
25071         .csect .text[PR]
25072         mfcr 3,128';;
25073       *-*-darwin*)
25074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25075 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25076 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25077   $as_echo_n "(cached) " >&6
25078 else
25079   gcc_cv_as_machine_directive=no
25080   if test x$gcc_cv_as != x; then
25081     $as_echo '  .machine ppc7400' > conftest.s
25082     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25083   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25084   (eval $ac_try) 2>&5
25085   ac_status=$?
25086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087   test $ac_status = 0; }; }
25088     then
25089         gcc_cv_as_machine_directive=yes
25090     else
25091       echo "configure: failed program was" >&5
25092       cat conftest.s >&5
25093     fi
25094     rm -f conftest.o conftest.s
25095   fi
25096 fi
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25098 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25099
25100         if test x$gcc_cv_as_machine_directive != xyes; then
25101           echo "*** This target requires an assembler supporting \".machine\"" >&2
25102           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25103           test x$build = x$target && exit 1
25104         fi
25105         conftest_s='    .text
25106         mfcr r3,128';;
25107       *) conftest_s='   .machine power4
25108         .text
25109         mfcr 3,128';;
25110     esac
25111
25112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25113 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25114 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25115   $as_echo_n "(cached) " >&6
25116 else
25117   gcc_cv_as_powerpc_mfcrf=no
25118     if test $in_tree_gas = yes; then
25119     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25120   then gcc_cv_as_powerpc_mfcrf=yes
25121 fi
25122   elif test x$gcc_cv_as != x; then
25123     $as_echo "$conftest_s" > conftest.s
25124     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25125   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25126   (eval $ac_try) 2>&5
25127   ac_status=$?
25128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25129   test $ac_status = 0; }; }
25130     then
25131         gcc_cv_as_powerpc_mfcrf=yes
25132     else
25133       echo "configure: failed program was" >&5
25134       cat conftest.s >&5
25135     fi
25136     rm -f conftest.o conftest.s
25137   fi
25138 fi
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25140 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25141 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25142
25143 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25144
25145 fi
25146
25147     case $target in
25148       *-*-aix*) conftest_s='    .machine "pwr5"
25149         .csect .text[PR]
25150         popcntb 3,3';;
25151       *) conftest_s='   .machine power5
25152         .text
25153         popcntb 3,3';;
25154     esac
25155
25156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25157 $as_echo_n "checking assembler for popcntb support... " >&6; }
25158 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25159   $as_echo_n "(cached) " >&6
25160 else
25161   gcc_cv_as_powerpc_popcntb=no
25162     if test $in_tree_gas = yes; then
25163     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25164   then gcc_cv_as_powerpc_popcntb=yes
25165 fi
25166   elif test x$gcc_cv_as != x; then
25167     $as_echo "$conftest_s" > conftest.s
25168     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25169   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170   (eval $ac_try) 2>&5
25171   ac_status=$?
25172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173   test $ac_status = 0; }; }
25174     then
25175         gcc_cv_as_powerpc_popcntb=yes
25176     else
25177       echo "configure: failed program was" >&5
25178       cat conftest.s >&5
25179     fi
25180     rm -f conftest.o conftest.s
25181   fi
25182 fi
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25184 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25185 if test $gcc_cv_as_powerpc_popcntb = yes; then
25186
25187 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25188
25189 fi
25190
25191     case $target in
25192       *-*-aix*) conftest_s='    .machine "pwr5x"
25193         .csect .text[PR]
25194         frin 1,1';;
25195       *) conftest_s='   .machine power5
25196         .text
25197         frin 1,1';;
25198     esac
25199
25200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25201 $as_echo_n "checking assembler for fp round support... " >&6; }
25202 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25203   $as_echo_n "(cached) " >&6
25204 else
25205   gcc_cv_as_powerpc_fprnd=no
25206     if test $in_tree_gas = yes; then
25207     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25208   then gcc_cv_as_powerpc_fprnd=yes
25209 fi
25210   elif test x$gcc_cv_as != x; then
25211     $as_echo "$conftest_s" > conftest.s
25212     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25213   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214   (eval $ac_try) 2>&5
25215   ac_status=$?
25216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217   test $ac_status = 0; }; }
25218     then
25219         gcc_cv_as_powerpc_fprnd=yes
25220     else
25221       echo "configure: failed program was" >&5
25222       cat conftest.s >&5
25223     fi
25224     rm -f conftest.o conftest.s
25225   fi
25226 fi
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25228 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25229 if test $gcc_cv_as_powerpc_fprnd = yes; then
25230
25231 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25232
25233 fi
25234
25235     case $target in
25236       *-*-aix*) conftest_s='    .machine "pwr6"
25237         .csect .text[PR]
25238         mffgpr 1,3';;
25239       *) conftest_s='   .machine power6
25240         .text
25241         mffgpr 1,3';;
25242     esac
25243
25244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25245 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25246 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25247   $as_echo_n "(cached) " >&6
25248 else
25249   gcc_cv_as_powerpc_mfpgpr=no
25250     if test $in_tree_gas = yes; then
25251     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25252   then gcc_cv_as_powerpc_mfpgpr=yes
25253 fi
25254   elif test x$gcc_cv_as != x; then
25255     $as_echo "$conftest_s" > conftest.s
25256     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25257   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258   (eval $ac_try) 2>&5
25259   ac_status=$?
25260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261   test $ac_status = 0; }; }
25262     then
25263         gcc_cv_as_powerpc_mfpgpr=yes
25264     else
25265       echo "configure: failed program was" >&5
25266       cat conftest.s >&5
25267     fi
25268     rm -f conftest.o conftest.s
25269   fi
25270 fi
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25272 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25273 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25274
25275 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25276
25277 fi
25278
25279     case $target in
25280       *-*-aix*) conftest_s='    .csect .text[PR]
25281 LCF..0:
25282         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25283       *-*-darwin*)
25284         conftest_s='    .text
25285 LCF0:
25286         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25287       *) conftest_s='   .text
25288 .LCF0:
25289         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25290     esac
25291
25292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25293 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25294 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25295   $as_echo_n "(cached) " >&6
25296 else
25297   gcc_cv_as_powerpc_rel16=no
25298     if test $in_tree_gas = yes; then
25299     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25300   then gcc_cv_as_powerpc_rel16=yes
25301 fi
25302   elif test x$gcc_cv_as != x; then
25303     $as_echo "$conftest_s" > conftest.s
25304     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25305   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25306   (eval $ac_try) 2>&5
25307   ac_status=$?
25308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25309   test $ac_status = 0; }; }
25310     then
25311         gcc_cv_as_powerpc_rel16=yes
25312     else
25313       echo "configure: failed program was" >&5
25314       cat conftest.s >&5
25315     fi
25316     rm -f conftest.o conftest.s
25317   fi
25318 fi
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25320 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25321 if test $gcc_cv_as_powerpc_rel16 = yes; then
25322
25323 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25324
25325 fi
25326
25327     case $target in
25328       *-*-aix*) conftest_s='    .machine "pwr6"
25329         .csect .text[PR]
25330         cmpb 3,4,5';;
25331       *) conftest_s='   .machine power6
25332         .text
25333         cmpb 3,4,5';;
25334     esac
25335
25336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25337 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25338 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25339   $as_echo_n "(cached) " >&6
25340 else
25341   gcc_cv_as_powerpc_cmpb=no
25342     if test $in_tree_gas = yes; then
25343     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25344   then gcc_cv_as_powerpc_cmpb=yes
25345 fi
25346   elif test x$gcc_cv_as != x; then
25347     $as_echo "$conftest_s" > conftest.s
25348     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25349   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25350   (eval $ac_try) 2>&5
25351   ac_status=$?
25352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25353   test $ac_status = 0; }; }
25354     then
25355         gcc_cv_as_powerpc_cmpb=yes
25356     else
25357       echo "configure: failed program was" >&5
25358       cat conftest.s >&5
25359     fi
25360     rm -f conftest.o conftest.s
25361   fi
25362 fi
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25364 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25365 if test $gcc_cv_as_powerpc_cmpb = yes; then
25366
25367 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25368
25369 fi
25370
25371     case $target in
25372       *-*-aix*) conftest_s='    .machine "pwr6"
25373         .csect .text[PR]
25374         dadd 1,2,3';;
25375       *) conftest_s='   .machine power6
25376         .text
25377         dadd 1,2,3';;
25378     esac
25379
25380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25381 $as_echo_n "checking assembler for decimal float support... " >&6; }
25382 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25383   $as_echo_n "(cached) " >&6
25384 else
25385   gcc_cv_as_powerpc_dfp=no
25386     if test $in_tree_gas = yes; then
25387     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25388   then gcc_cv_as_powerpc_dfp=yes
25389 fi
25390   elif test x$gcc_cv_as != x; then
25391     $as_echo "$conftest_s" > conftest.s
25392     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25393   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25394   (eval $ac_try) 2>&5
25395   ac_status=$?
25396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25397   test $ac_status = 0; }; }
25398     then
25399         gcc_cv_as_powerpc_dfp=yes
25400     else
25401       echo "configure: failed program was" >&5
25402       cat conftest.s >&5
25403     fi
25404     rm -f conftest.o conftest.s
25405   fi
25406 fi
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25408 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25409 if test $gcc_cv_as_powerpc_dfp = yes; then
25410
25411 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25412
25413 fi
25414
25415     case $target in
25416       *-*-aix*) conftest_s='    .machine "pwr7"
25417         .csect .text[PR]
25418         lxvd2x 1,2,3';;
25419       *) conftest_s='   .machine power7
25420         .text
25421         lxvd2x 1,2,3';;
25422     esac
25423
25424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25425 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25426 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25427   $as_echo_n "(cached) " >&6
25428 else
25429   gcc_cv_as_powerpc_vsx=no
25430     if test $in_tree_gas = yes; then
25431     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25432   then gcc_cv_as_powerpc_vsx=yes
25433 fi
25434   elif test x$gcc_cv_as != x; then
25435     $as_echo "$conftest_s" > conftest.s
25436     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25437   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438   (eval $ac_try) 2>&5
25439   ac_status=$?
25440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441   test $ac_status = 0; }; }
25442     then
25443         gcc_cv_as_powerpc_vsx=yes
25444     else
25445       echo "configure: failed program was" >&5
25446       cat conftest.s >&5
25447     fi
25448     rm -f conftest.o conftest.s
25449   fi
25450 fi
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25452 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25453 if test $gcc_cv_as_powerpc_vsx = yes; then
25454
25455 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25456
25457 fi
25458
25459     case $target in
25460       *-*-aix*) conftest_s='    .machine "pwr7"
25461         .csect .text[PR]
25462         popcntd 3,3';;
25463       *) conftest_s='   .machine power7
25464         .text
25465         popcntd 3,3';;
25466     esac
25467
25468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25469 $as_echo_n "checking assembler for popcntd support... " >&6; }
25470 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25471   $as_echo_n "(cached) " >&6
25472 else
25473   gcc_cv_as_powerpc_popcntd=no
25474     if test $in_tree_gas = yes; then
25475     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25476   then gcc_cv_as_powerpc_popcntd=yes
25477 fi
25478   elif test x$gcc_cv_as != x; then
25479     $as_echo "$conftest_s" > conftest.s
25480     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25481   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25482   (eval $ac_try) 2>&5
25483   ac_status=$?
25484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25485   test $ac_status = 0; }; }
25486     then
25487         gcc_cv_as_powerpc_popcntd=yes
25488     else
25489       echo "configure: failed program was" >&5
25490       cat conftest.s >&5
25491     fi
25492     rm -f conftest.o conftest.s
25493   fi
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25496 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25497 if test $gcc_cv_as_powerpc_popcntd = yes; then
25498
25499 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25500
25501 fi
25502
25503     case $target in
25504       *-*-aix*) conftest_s='    .csect .text[PR]
25505         lwsync';;
25506       *) conftest_s='   .text
25507         lwsync';;
25508     esac
25509
25510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25511 $as_echo_n "checking assembler for lwsync support... " >&6; }
25512 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25513   $as_echo_n "(cached) " >&6
25514 else
25515   gcc_cv_as_powerpc_lwsync=no
25516     if test $in_tree_gas = yes; then
25517     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25518   then gcc_cv_as_powerpc_lwsync=yes
25519 fi
25520   elif test x$gcc_cv_as != x; then
25521     $as_echo "$conftest_s" > conftest.s
25522     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25523   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25524   (eval $ac_try) 2>&5
25525   ac_status=$?
25526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25527   test $ac_status = 0; }; }
25528     then
25529         gcc_cv_as_powerpc_lwsync=yes
25530     else
25531       echo "configure: failed program was" >&5
25532       cat conftest.s >&5
25533     fi
25534     rm -f conftest.o conftest.s
25535   fi
25536 fi
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25538 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25539 if test $gcc_cv_as_powerpc_lwsync = yes; then
25540
25541 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25542
25543 fi
25544
25545     case $target in
25546       *-*-aix*) conftest_s='    .machine "476"
25547         .csect .text[PR]
25548         dci 0';;
25549       *) conftest_s='   .machine "476"
25550         .text
25551         dci 0';;
25552     esac
25553
25554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25555 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25556 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25557   $as_echo_n "(cached) " >&6
25558 else
25559   gcc_cv_as_powerpc_dci=no
25560     if test $in_tree_gas = yes; then
25561     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25562   then gcc_cv_as_powerpc_dci=yes
25563 fi
25564   elif test x$gcc_cv_as != x; then
25565     $as_echo "$conftest_s" > conftest.s
25566     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25567   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25568   (eval $ac_try) 2>&5
25569   ac_status=$?
25570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25571   test $ac_status = 0; }; }
25572     then
25573         gcc_cv_as_powerpc_dci=yes
25574     else
25575       echo "configure: failed program was" >&5
25576       cat conftest.s >&5
25577     fi
25578     rm -f conftest.o conftest.s
25579   fi
25580 fi
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25582 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25583 if test $gcc_cv_as_powerpc_dci = yes; then
25584
25585 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25586
25587 fi
25588
25589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25590 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25591 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25592   $as_echo_n "(cached) " >&6
25593 else
25594   gcc_cv_as_powerpc_gnu_attribute=no
25595     if test $in_tree_gas = yes; then
25596     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25597   then gcc_cv_as_powerpc_gnu_attribute=yes
25598 fi
25599   elif test x$gcc_cv_as != x; then
25600     $as_echo '.gnu_attribute 4,1' > conftest.s
25601     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25602   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25603   (eval $ac_try) 2>&5
25604   ac_status=$?
25605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25606   test $ac_status = 0; }; }
25607     then
25608         gcc_cv_as_powerpc_gnu_attribute=yes
25609     else
25610       echo "configure: failed program was" >&5
25611       cat conftest.s >&5
25612     fi
25613     rm -f conftest.o conftest.s
25614   fi
25615 fi
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25617 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25618 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25619
25620 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25621
25622 fi
25623
25624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25625 $as_echo_n "checking assembler for tls marker support... " >&6; }
25626 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25627   $as_echo_n "(cached) " >&6
25628 else
25629   gcc_cv_as_powerpc_tls_markers=no
25630     if test $in_tree_gas = yes; then
25631     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25632   then gcc_cv_as_powerpc_tls_markers=yes
25633 fi
25634   elif test x$gcc_cv_as != x; then
25635     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25636     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25637   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25638   (eval $ac_try) 2>&5
25639   ac_status=$?
25640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25641   test $ac_status = 0; }; }
25642     then
25643         gcc_cv_as_powerpc_tls_markers=yes
25644     else
25645       echo "configure: failed program was" >&5
25646       cat conftest.s >&5
25647     fi
25648     rm -f conftest.o conftest.s
25649   fi
25650 fi
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25652 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25653 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25654
25655 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25656
25657 fi
25658
25659     case $target in
25660       *-*-aix*)
25661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25662 $as_echo_n "checking assembler for .ref support... " >&6; }
25663 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25664   $as_echo_n "(cached) " >&6
25665 else
25666   gcc_cv_as_aix_ref=no
25667     if test $in_tree_gas = yes; then
25668     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25669   then :
25670 fi
25671   elif test x$gcc_cv_as != x; then
25672     $as_echo '  .csect stuff[rw]
25673              stuff:
25674                 .long 1
25675                 .extern sym
25676                 .ref sym
25677           ' > conftest.s
25678     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25679   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25680   (eval $ac_try) 2>&5
25681   ac_status=$?
25682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25683   test $ac_status = 0; }; }
25684     then
25685         gcc_cv_as_aix_ref=yes
25686     else
25687       echo "configure: failed program was" >&5
25688       cat conftest.s >&5
25689     fi
25690     rm -f conftest.o conftest.s
25691   fi
25692 fi
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25694 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25695 if test $gcc_cv_as_aix_ref = yes; then
25696
25697 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25698
25699 fi
25700         ;;
25701     esac
25702     ;;
25703
25704   mips*-*-*)
25705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25706 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25707 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25708   $as_echo_n "(cached) " >&6
25709 else
25710   gcc_cv_as_mips_explicit_relocs=no
25711     if test $in_tree_gas = yes; then
25712     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25713   then gcc_cv_as_mips_explicit_relocs=yes
25714 fi
25715   elif test x$gcc_cv_as != x; then
25716     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25717     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25719   (eval $ac_try) 2>&5
25720   ac_status=$?
25721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25722   test $ac_status = 0; }; }
25723     then
25724         gcc_cv_as_mips_explicit_relocs=yes
25725     else
25726       echo "configure: failed program was" >&5
25727       cat conftest.s >&5
25728     fi
25729     rm -f conftest.o conftest.s
25730   fi
25731 fi
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25733 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25734 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25735   if test x$target_cpu_default = x
25736        then target_cpu_default=MASK_EXPLICIT_RELOCS
25737        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25738        fi
25739 fi
25740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25741 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25742 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25743   $as_echo_n "(cached) " >&6
25744 else
25745   gcc_cv_as_mips_no_shared=no
25746     if test $in_tree_gas = yes; then
25747     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25748   then gcc_cv_as_mips_no_shared=yes
25749 fi
25750   elif test x$gcc_cv_as != x; then
25751     $as_echo 'nop' > conftest.s
25752     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25753   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754   (eval $ac_try) 2>&5
25755   ac_status=$?
25756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757   test $ac_status = 0; }; }
25758     then
25759         gcc_cv_as_mips_no_shared=yes
25760     else
25761       echo "configure: failed program was" >&5
25762       cat conftest.s >&5
25763     fi
25764     rm -f conftest.o conftest.s
25765   fi
25766 fi
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25768 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25769 if test $gcc_cv_as_mips_no_shared = yes; then
25770
25771 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25772
25773 fi
25774
25775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25776 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25777 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25778   $as_echo_n "(cached) " >&6
25779 else
25780   gcc_cv_as_mips_gnu_attribute=no
25781     if test $in_tree_gas = yes; then
25782     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25783   then gcc_cv_as_mips_gnu_attribute=yes
25784 fi
25785   elif test x$gcc_cv_as != x; then
25786     $as_echo '.gnu_attribute 4,1' > conftest.s
25787     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25788   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792   test $ac_status = 0; }; }
25793     then
25794         gcc_cv_as_mips_gnu_attribute=yes
25795     else
25796       echo "configure: failed program was" >&5
25797       cat conftest.s >&5
25798     fi
25799     rm -f conftest.o conftest.s
25800   fi
25801 fi
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25803 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25804 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25805
25806 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25807
25808 fi
25809
25810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25811 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25812 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25813   $as_echo_n "(cached) " >&6
25814 else
25815   gcc_cv_as_mips_dtprelword=no
25816     if test $in_tree_gas = yes; then
25817     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25818   then gcc_cv_as_mips_dtprelword=yes
25819 fi
25820   elif test x$gcc_cv_as != x; then
25821     $as_echo '.section .tdata,"awT",@progbits
25822 x:
25823         .word 2
25824         .text
25825         .dtprelword x+0x8000' > conftest.s
25826     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25827   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25828   (eval $ac_try) 2>&5
25829   ac_status=$?
25830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25831   test $ac_status = 0; }; }
25832     then
25833         gcc_cv_as_mips_dtprelword=yes
25834     else
25835       echo "configure: failed program was" >&5
25836       cat conftest.s >&5
25837     fi
25838     rm -f conftest.o conftest.s
25839   fi
25840 fi
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25842 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25843 if test $gcc_cv_as_mips_dtprelword = yes; then
25844
25845 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25846
25847 fi
25848
25849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25850 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25851 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25852   $as_echo_n "(cached) " >&6
25853 else
25854   gcc_cv_as_mips_dspr1_mult=no
25855   if test x$gcc_cv_as != x; then
25856     $as_echo '  .set    mips32r2
25857         .set    nodspr2
25858         .set    dsp
25859         madd    $ac3,$4,$5
25860         maddu   $ac3,$4,$5
25861         msub    $ac3,$4,$5
25862         msubu   $ac3,$4,$5
25863         mult    $ac3,$4,$5
25864         multu   $ac3,$4,$5' > conftest.s
25865     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25866   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867   (eval $ac_try) 2>&5
25868   ac_status=$?
25869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870   test $ac_status = 0; }; }
25871     then
25872         gcc_cv_as_mips_dspr1_mult=yes
25873     else
25874       echo "configure: failed program was" >&5
25875       cat conftest.s >&5
25876     fi
25877     rm -f conftest.o conftest.s
25878   fi
25879 fi
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25881 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25882 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25883
25884 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25885
25886 fi
25887
25888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25889 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25890     gcc_cv_as_ld_jalr_reloc=no
25891     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25892       if test $in_tree_ld = yes ; then
25893         if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
25894            && test $in_tree_ld_is_elf = yes; then
25895           gcc_cv_as_ld_jalr_reloc=yes
25896         fi
25897       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25898         echo '  .ent x' > conftest.s
25899         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25900         echo '  ld $25,%call16(y)($28)' >> conftest.s
25901         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25902         echo '1:        jalr $25' >> conftest.s
25903         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25904         echo '1:        jalr $25' >> conftest.s
25905         echo '  .end x' >> conftest.s
25906         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25907            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25908           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25909              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25910             gcc_cv_as_ld_jalr_reloc=yes
25911           fi
25912         fi
25913         rm -f conftest.*
25914       fi
25915     fi
25916     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25917       if test x$target_cpu_default = x; then
25918         target_cpu_default=MASK_RELAX_PIC_CALLS
25919       else
25920         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25921       fi
25922     fi
25923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25924 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25925
25926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25927 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25928 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25929   $as_echo_n "(cached) " >&6
25930 else
25931   gcc_cv_ld_mips_personality_relaxation=no
25932        if test $in_tree_ld = yes ; then
25933          if test "$gcc_cv_gld_major_version" -eq 2 \
25934                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25935                  -o "$gcc_cv_gld_major_version" -gt 2; then
25936            gcc_cv_ld_mips_personality_relaxation=yes
25937          fi
25938        elif test x$gcc_cv_as != x \
25939                  -a x$gcc_cv_ld != x \
25940                  -a x$gcc_cv_readelf != x ; then
25941          cat > conftest.s <<EOF
25942         .cfi_startproc
25943         .cfi_personality 0x80,indirect_ptr
25944         .ent test
25945 test:
25946         nop
25947         .end test
25948         .cfi_endproc
25949
25950         .section .data,"aw",@progbits
25951 indirect_ptr:
25952         .dc.a personality
25953 EOF
25954          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25955             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25956            if $gcc_cv_readelf -d conftest 2>&1 \
25957               | grep TEXTREL > /dev/null 2>&1; then
25958              :
25959            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25960                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25961              :
25962            else
25963              gcc_cv_ld_mips_personality_relaxation=yes
25964            fi
25965          fi
25966        fi
25967        rm -f conftest.s conftest.o conftest
25968 fi
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25970 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25971     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25972
25973 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25974
25975     fi
25976     ;;
25977 esac
25978
25979 # Mips and HP-UX need the GNU assembler.
25980 # Linux on IA64 might be able to use the Intel assembler.
25981
25982 case "$target" in
25983   mips*-*-* | *-*-hpux* )
25984     if test x$gas_flag = xyes \
25985        || test x"$host" != x"$build" \
25986        || test ! -x "$gcc_cv_as" \
25987        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25988       :
25989     else
25990       echo "*** This configuration requires the GNU assembler" >&2
25991       exit 1
25992     fi
25993     ;;
25994 esac
25995
25996 # ??? Not all targets support dwarf2 debug_line, even within a version
25997 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25998 # info to the output file.  So, as supported targets are added to gas 2.11,
25999 # add some instruction here to (also) show we expect this might work.
26000 # ??? Once 2.11 is released, probably need to add first known working
26001 # version to the per-target configury.
26002 case "$cpu_type" in
26003   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26004   | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26005     insn="nop"
26006     ;;
26007   ia64 | s390)
26008     insn="nop 0"
26009     ;;
26010   mmix)
26011     insn="swym 0"
26012     ;;
26013 esac
26014 if test x"$insn" != x; then
26015  conftest_s="\
26016         .file 1 \"conftest.s\"
26017         .loc 1 3 0
26018         $insn"
26019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26020 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26021 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26022   $as_echo_n "(cached) " >&6
26023 else
26024   gcc_cv_as_dwarf2_debug_line=no
26025     if test $in_tree_gas = yes; then
26026     if test $in_tree_gas_is_elf = yes \
26027   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26028   then gcc_cv_as_dwarf2_debug_line=yes
26029 fi
26030   elif test x$gcc_cv_as != x; then
26031     $as_echo "$conftest_s" > conftest.s
26032     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26033   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26034   (eval $ac_try) 2>&5
26035   ac_status=$?
26036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26037   test $ac_status = 0; }; }
26038     then
26039         if test x$gcc_cv_objdump != x \
26040    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26041       | grep debug_line > /dev/null 2>&1; then
26042      gcc_cv_as_dwarf2_debug_line=yes
26043    fi
26044     else
26045       echo "configure: failed program was" >&5
26046       cat conftest.s >&5
26047     fi
26048     rm -f conftest.o conftest.s
26049   fi
26050 fi
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26052 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26053
26054
26055 # The .debug_line file table must be in the exact order that
26056 # we specified the files, since these indices are also used
26057 # by DW_AT_decl_file.  Approximate this test by testing if
26058 # the assembler bitches if the same index is assigned twice.
26059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26060 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26061 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26062   $as_echo_n "(cached) " >&6
26063 else
26064   gcc_cv_as_dwarf2_file_buggy=no
26065   if test x$gcc_cv_as != x; then
26066     $as_echo '  .file 1 "foo.s"
26067         .file 1 "bar.s"' > conftest.s
26068     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26069   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26070   (eval $ac_try) 2>&5
26071   ac_status=$?
26072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073   test $ac_status = 0; }; }
26074     then
26075         gcc_cv_as_dwarf2_file_buggy=yes
26076     else
26077       echo "configure: failed program was" >&5
26078       cat conftest.s >&5
26079     fi
26080     rm -f conftest.o conftest.s
26081   fi
26082 fi
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26084 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26085
26086
26087  if test $gcc_cv_as_dwarf2_debug_line = yes \
26088  && test $gcc_cv_as_dwarf2_file_buggy = no; then
26089
26090 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26091
26092  fi
26093
26094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26095 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26096 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26097   $as_echo_n "(cached) " >&6
26098 else
26099   gcc_cv_as_gdwarf2_flag=no
26100     if test $in_tree_gas = yes; then
26101     if test $in_tree_gas_is_elf = yes \
26102   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26103   then gcc_cv_as_gdwarf2_flag=yes
26104 fi
26105   elif test x$gcc_cv_as != x; then
26106     $as_echo "$insn" > conftest.s
26107     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26108   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26112   test $ac_status = 0; }; }
26113     then
26114         gcc_cv_as_gdwarf2_flag=yes
26115     else
26116       echo "configure: failed program was" >&5
26117       cat conftest.s >&5
26118     fi
26119     rm -f conftest.o conftest.s
26120   fi
26121 fi
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26123 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26124 if test $gcc_cv_as_gdwarf2_flag = yes; then
26125
26126 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26127
26128 fi
26129
26130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26131 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26132 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26133   $as_echo_n "(cached) " >&6
26134 else
26135   gcc_cv_as_gstabs_flag=no
26136     if test $in_tree_gas = yes; then
26137     if test $in_tree_gas_is_elf = yes \
26138   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26139   then gcc_cv_as_gstabs_flag=yes
26140 fi
26141   elif test x$gcc_cv_as != x; then
26142     $as_echo "$insn" > conftest.s
26143     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26144   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26145   (eval $ac_try) 2>&5
26146   ac_status=$?
26147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26148   test $ac_status = 0; }; }
26149     then
26150         # The native Solaris 9/Intel assembler doesn't understand --gstabs
26151    # and warns about it, but still exits successfully.  So check for
26152    # this.
26153    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26154   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155   (eval $ac_try) 2>&5
26156   ac_status=$?
26157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158   test $ac_status = 0; }; }
26159    then :
26160    else gcc_cv_as_gstabs_flag=yes
26161    fi
26162     else
26163       echo "configure: failed program was" >&5
26164       cat conftest.s >&5
26165     fi
26166     rm -f conftest.o conftest.s
26167   fi
26168 fi
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26170 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26171 if test $gcc_cv_as_gstabs_flag = yes; then
26172
26173 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26174
26175 fi
26176
26177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26178 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26179 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26180   $as_echo_n "(cached) " >&6
26181 else
26182   gcc_cv_as_debug_prefix_map_flag=no
26183     if test $in_tree_gas = yes; then
26184     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26185   then gcc_cv_as_debug_prefix_map_flag=yes
26186 fi
26187   elif test x$gcc_cv_as != x; then
26188     $as_echo "$insn" > conftest.s
26189     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26190   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191   (eval $ac_try) 2>&5
26192   ac_status=$?
26193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194   test $ac_status = 0; }; }
26195     then
26196         gcc_cv_as_debug_prefix_map_flag=yes
26197     else
26198       echo "configure: failed program was" >&5
26199       cat conftest.s >&5
26200     fi
26201     rm -f conftest.o conftest.s
26202   fi
26203 fi
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26205 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26206 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26207
26208 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26209
26210 fi
26211 fi
26212
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26214 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26215 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26216   $as_echo_n "(cached) " >&6
26217 else
26218   gcc_cv_as_lcomm_with_alignment=no
26219   if test x$gcc_cv_as != x; then
26220     $as_echo '.lcomm bar,4,16' > conftest.s
26221     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26222   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223   (eval $ac_try) 2>&5
26224   ac_status=$?
26225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226   test $ac_status = 0; }; }
26227     then
26228         gcc_cv_as_lcomm_with_alignment=yes
26229     else
26230       echo "configure: failed program was" >&5
26231       cat conftest.s >&5
26232     fi
26233     rm -f conftest.o conftest.s
26234   fi
26235 fi
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26237 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26238 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26239
26240 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26241
26242 fi
26243
26244 # Check whether --enable-gnu-unique-object was given.
26245 if test "${enable_gnu_unique_object+set}" = set; then :
26246   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26247     yes | no) ;;
26248     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26249 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26250   esac
26251 else
26252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26253 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26254 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26255   $as_echo_n "(cached) " >&6
26256 else
26257   gcc_cv_as_gnu_unique_object=no
26258     if test $in_tree_gas = yes; then
26259     if test $in_tree_gas_is_elf = yes \
26260   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26261   then gcc_cv_as_gnu_unique_object=yes
26262 fi
26263   elif test x$gcc_cv_as != x; then
26264     $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26265     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26266   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267   (eval $ac_try) 2>&5
26268   ac_status=$?
26269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270   test $ac_status = 0; }; }
26271     then
26272         gcc_cv_as_gnu_unique_object=yes
26273     else
26274       echo "configure: failed program was" >&5
26275       cat conftest.s >&5
26276     fi
26277     rm -f conftest.o conftest.s
26278   fi
26279 fi
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26281 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26282 if test $gcc_cv_as_gnu_unique_object = yes; then
26283   # We need to unquote above to to use the definition from config.gcc.
26284 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26285    if test x$host = x$build -a x$host = x$target &&
26286        ldd --version 2>/dev/null &&
26287        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26288       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26289       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26290       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26291       if test "$glibcnum" -ge 2011 ; then
26292         enable_gnu_unique_object=yes
26293       fi
26294     fi
26295 fi
26296 fi
26297
26298 if test x$enable_gnu_unique_object = xyes; then
26299
26300 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26301
26302 fi
26303
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26305 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26306 if test "${gcc_cv_as_line_zero+set}" = set; then :
26307   $as_echo_n "(cached) " >&6
26308 else
26309   gcc_cv_as_line_zero=no
26310   if test $in_tree_gas = yes; then
26311     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26312   then gcc_cv_as_line_zero=yes
26313 fi
26314   elif test "x$gcc_cv_as" != x; then
26315     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26316     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26317   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26318   (eval $ac_try) 2>&5
26319   ac_status=$?
26320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26321   test $ac_status = 0; }; } &&
26322        test "x`cat conftest.out`" = x
26323     then
26324       gcc_cv_as_line_zero=yes
26325     else
26326       echo "configure: failed program was" >&5
26327       cat conftest.s >&5
26328       echo "configure: error output was" >&5
26329       cat conftest.out >&5
26330     fi
26331     rm -f conftest.o conftest.s conftest.out
26332   fi
26333 fi
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26335 $as_echo "$gcc_cv_as_line_zero" >&6; }
26336 if test "x$gcc_cv_as_line_zero" = xyes; then
26337
26338 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26339
26340 fi
26341
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26343 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26344 gcc_cv_ld_eh_frame_hdr=no
26345 if test $in_tree_ld = yes ; then
26346   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
26347      && test $in_tree_ld_is_elf = yes; then
26348     gcc_cv_ld_eh_frame_hdr=yes
26349   fi
26350 elif test x$gcc_cv_ld != x; then
26351   if echo "$ld_ver" | grep GNU > /dev/null; then
26352     # Check if linker supports --eh-frame-hdr option
26353     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26354       gcc_cv_ld_eh_frame_hdr=yes
26355     fi
26356   else
26357     case "$target" in
26358       *-*-solaris2*)
26359         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26360         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26361           gcc_cv_ld_eh_frame_hdr=yes
26362         fi
26363         ;;
26364     esac
26365   fi
26366 fi
26367
26368 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26369
26370 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26371
26372 fi
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26374 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26375
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26377 $as_echo_n "checking linker position independent executable support... " >&6; }
26378 gcc_cv_ld_pie=no
26379 if test $in_tree_ld = yes ; then
26380   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26381      && test $in_tree_ld_is_elf = yes; then
26382     gcc_cv_ld_pie=yes
26383   fi
26384 elif test x$gcc_cv_ld != x; then
26385         # Check if linker supports -pie option
26386         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26387                 gcc_cv_ld_pie=yes
26388         fi
26389 fi
26390 if test x"$gcc_cv_ld_pie" = xyes; then
26391
26392 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26393
26394 fi
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26396 $as_echo "$gcc_cv_ld_pie" >&6; }
26397
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26399 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26400 gcc_cv_ld_eh_gc_sections=no
26401 if test $in_tree_ld = yes ; then
26402   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
26403      && test $in_tree_ld_is_elf = yes; then
26404     gcc_cv_ld_eh_gc_sections=yes
26405   fi
26406 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26407   cat > conftest.s <<EOF
26408         .section        .text
26409 .globl _start
26410         .type _start, @function
26411 _start:
26412         .long foo
26413         .size _start, .-_start
26414         .section        .text.foo,"ax",@progbits
26415         .type foo, @function
26416 foo:
26417         .long 0
26418         .size foo, .-foo
26419         .section        .gcc_except_table.foo,"a",@progbits
26420 .L0:
26421         .long 0
26422         .section        .eh_frame,"a",@progbits
26423         .long .L0
26424 EOF
26425   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26426     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26427          | grep "gc-sections option ignored" > /dev/null; then
26428       gcc_cv_ld_eh_gc_sections=no
26429     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26430          | grep gcc_except_table > /dev/null; then
26431       gcc_cv_ld_eh_gc_sections=yes
26432       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26433       if test x$gcc_cv_as_comdat_group != xyes; then
26434         gcc_cv_ld_eh_gc_sections=no
26435         cat > conftest.s <<EOF
26436         .section        .text
26437 .globl _start
26438         .type _start, @function
26439 _start:
26440         .long foo
26441         .size _start, .-_start
26442         .section        .gnu.linkonce.t.foo,"ax",@progbits
26443         .type foo, @function
26444 foo:
26445         .long 0
26446         .size foo, .-foo
26447         .section        .gcc_except_table.foo,"a",@progbits
26448 .L0:
26449         .long 0
26450         .section        .eh_frame,"a",@progbits
26451         .long .L0
26452 EOF
26453         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26454           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26455                | grep "gc-sections option ignored" > /dev/null; then
26456             gcc_cv_ld_eh_gc_sections=no
26457           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26458                | grep gcc_except_table > /dev/null; then
26459             gcc_cv_ld_eh_gc_sections=yes
26460           fi
26461         fi
26462       fi
26463     fi
26464   fi
26465   rm -f conftest.s conftest.o conftest
26466 fi
26467 case "$target" in
26468   hppa*-*-linux*)
26469     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26470     gcc_cv_ld_eh_gc_sections=no
26471     ;;
26472 esac
26473 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26474
26475 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26476
26477 fi
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26479 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26480
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26482 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26483 gcc_cv_ld_eh_gc_sections_bug=no
26484 if test $in_tree_ld = yes ; then
26485   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26486      && test $in_tree_ld_is_elf = yes; then
26487     gcc_cv_ld_eh_gc_sections_bug=yes
26488   fi
26489 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26490   gcc_cv_ld_eh_gc_sections_bug=yes
26491   cat > conftest.s <<EOF
26492         .section        .text
26493 .globl _start
26494         .type _start, @function
26495 _start:
26496         .long foo
26497         .size _start, .-_start
26498         .section        .text.startup.foo,"ax",@progbits
26499         .type foo, @function
26500 foo:
26501         .long 0
26502         .size foo, .-foo
26503         .section        .gcc_except_table.foo,"a",@progbits
26504 .L0:
26505         .long 0
26506         .section        .eh_frame,"a",@progbits
26507         .long .L0
26508 EOF
26509   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26510     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26511          | grep "gc-sections option ignored" > /dev/null; then
26512       :
26513     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26514          | grep gcc_except_table > /dev/null; then
26515       gcc_cv_ld_eh_gc_sections_bug=no
26516     fi
26517   fi
26518   rm -f conftest.s conftest.o conftest
26519 fi
26520 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26521
26522 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26523
26524 fi
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26526 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26527
26528 # --------
26529 # UNSORTED
26530 # --------
26531
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26533 $as_echo_n "checking linker --as-needed support... " >&6; }
26534 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26535   $as_echo_n "(cached) " >&6
26536 else
26537   gcc_cv_ld_as_needed=no
26538 if test $in_tree_ld = yes ; then
26539   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
26540      && test $in_tree_ld_is_elf = yes; then
26541     gcc_cv_ld_as_needed=yes
26542   fi
26543 elif test x$gcc_cv_ld != x; then
26544         # Check if linker supports --as-needed and --no-as-needed options
26545         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26546                 gcc_cv_ld_as_needed=yes
26547         fi
26548 fi
26549
26550 fi
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26552 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26553 if test x"$gcc_cv_ld_as_needed" = xyes; then
26554
26555 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26556
26557 fi
26558
26559 case "$target:$tm_file" in
26560   powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26561   case "$target" in
26562      *-*-linux*)
26563      emul_name="-melf64ppc"
26564       ;;
26565      *-*-freebsd*)
26566      emul_name="-melf64ppc_fbsd"
26567       ;;
26568   esac
26569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26570 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26571 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26572   $as_echo_n "(cached) " >&6
26573 else
26574   gcc_cv_ld_no_dot_syms=no
26575     if test x"$ld_is_gold" = xyes; then
26576       gcc_cv_ld_no_dot_syms=yes
26577     elif test $in_tree_ld = yes ; then
26578       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
26579         gcc_cv_ld_no_dot_syms=yes
26580       fi
26581     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26582       cat > conftest1.s <<EOF
26583         .text
26584         bl .foo
26585 EOF
26586       cat > conftest2.s <<EOF
26587         .section ".opd","aw"
26588         .align 3
26589         .globl foo
26590         .type foo,@function
26591 foo:
26592         .quad .LEfoo,.TOC.@tocbase,0
26593         .text
26594 .LEfoo:
26595         blr
26596         .size foo,.-.LEfoo
26597 EOF
26598       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26599          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26600          && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26601         gcc_cv_ld_no_dot_syms=yes
26602       fi
26603       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26604     fi
26605
26606 fi
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26608 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26609     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26610
26611 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26612
26613     fi
26614
26615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26616 $as_echo_n "checking linker large toc support... " >&6; }
26617 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26618   $as_echo_n "(cached) " >&6
26619 else
26620   gcc_cv_ld_large_toc=no
26621     if test x"$ld_is_gold" = xyes; then
26622       gcc_cv_ld_large_toc=yes
26623     elif test $in_tree_ld = yes ; then
26624       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
26625         gcc_cv_ld_large_toc=yes
26626       fi
26627     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26628       cat > conftest.s <<EOF
26629         .section ".tbss","awT",@nobits
26630         .align 3
26631 ie0:    .space 8
26632         .global _start
26633         .text
26634 _start:
26635         addis 9,13,ie0@got@tprel@ha
26636         ld 9,ie0@got@tprel@l(9)
26637 EOF
26638       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26639          && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26640         gcc_cv_ld_large_toc=yes
26641       fi
26642       rm -f conftest conftest.o conftest.s
26643     fi
26644
26645 fi
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26647 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26648     if test x"$gcc_cv_ld_large_toc" = xyes; then
26649
26650 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26651
26652     fi
26653     ;;
26654 esac
26655
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26657 $as_echo_n "checking linker --build-id support... " >&6; }
26658 if test "${gcc_cv_ld_buildid+set}" = set; then :
26659   $as_echo_n "(cached) " >&6
26660 else
26661   gcc_cv_ld_buildid=no
26662   if test $in_tree_ld = yes ; then
26663     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26664        "$gcc_cv_gld_minor_version" -ge 18 -o \
26665        "$gcc_cv_gld_major_version" -gt 2 \
26666        && test $in_tree_ld_is_elf = yes; then
26667       gcc_cv_ld_buildid=yes
26668     fi
26669   elif test x$gcc_cv_ld != x; then
26670     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26671       gcc_cv_ld_buildid=yes
26672     fi
26673   fi
26674 fi
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26676 $as_echo "$gcc_cv_ld_buildid" >&6; }
26677 if test x"$gcc_cv_ld_buildid" = xyes; then
26678
26679 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26680
26681 fi
26682
26683 # Check whether --enable-linker-build-id was given.
26684 if test "${enable_linker_build_id+set}" = set; then :
26685   enableval=$enable_linker_build_id;
26686 else
26687   enable_linker_build_id=no
26688 fi
26689
26690
26691 if test x"$enable_linker_build_id" = xyes; then
26692   if test x"$gcc_cv_ld_buildid" = xyes; then
26693
26694 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26695
26696   else
26697     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26698 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26699   fi
26700 fi
26701
26702 # In binutils 2.21, GNU ld gained support for new emulations fully
26703 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26705 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26706 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26707   $as_echo_n "(cached) " >&6
26708 else
26709   gcc_cv_ld_sol2_emulation=no
26710   if test $in_tree_ld = yes ; then
26711     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26712        "$gcc_cv_gld_minor_version" -ge 21 -o \
26713        "$gcc_cv_gld_major_version" -gt 2 \
26714        && test $in_tree_ld_is_elf = yes; then
26715       gcc_cv_ld_sol2_emulation=yes
26716     fi
26717   elif test x$gcc_cv_ld != x; then
26718     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26719        grep _sol2 > /dev/null; then
26720       gcc_cv_ld_sol2_emulation=yes
26721     fi
26722   fi
26723 fi
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26725 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26726 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26727
26728 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26729
26730 fi
26731
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26733 $as_echo_n "checking linker --sysroot support... " >&6; }
26734 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26735   $as_echo_n "(cached) " >&6
26736 else
26737   gcc_cv_ld_sysroot=no
26738   if test $in_tree_ld = yes ; then
26739       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
26740         gcc_cv_ld_sysroot=yes
26741       fi
26742   elif test x$gcc_cv_ld != x; then
26743     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26744       gcc_cv_ld_sysroot=yes
26745     fi
26746   fi
26747 fi
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26749 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26750 if test x"$gcc_cv_ld_sysroot" = xyes; then
26751
26752 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26753
26754 fi
26755
26756 if test x$with_sysroot = x && test x$host = x$target \
26757    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26758    && test "$prefix" != "NONE"; then
26759
26760 cat >>confdefs.h <<_ACEOF
26761 #define PREFIX_INCLUDE_DIR "$prefix/include"
26762 _ACEOF
26763
26764 fi
26765
26766 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26767   if test "x$with_headers" != x; then
26768     target_header_dir=$with_headers
26769   elif test "x$with_sysroot" = x; then
26770     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26771   elif test "x$with_build_sysroot" != "x"; then
26772     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26773   elif test "x$with_sysroot" = xyes; then
26774     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26775   else
26776     target_header_dir="${with_sysroot}${native_system_header_dir}"
26777   fi
26778 else
26779   target_header_dir=${native_system_header_dir}
26780 fi
26781
26782 # Test for stack protector support in target C library.
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26784 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26785 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26786   $as_echo_n "(cached) " >&6
26787 else
26788   gcc_cv_libc_provides_ssp=no
26789     case "$target" in
26790        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26791       # glibc 2.4 and later provides __stack_chk_fail and
26792       # either __stack_chk_guard, or TLS access to stack guard canary.
26793       if test -f $target_header_dir/features.h \
26794          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26795             $target_header_dir/features.h > /dev/null; then
26796         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26797            $target_header_dir/features.h > /dev/null; then
26798           gcc_cv_libc_provides_ssp=yes
26799         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26800              $target_header_dir/features.h > /dev/null \
26801              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26802              $target_header_dir/features.h > /dev/null; then
26803           gcc_cv_libc_provides_ssp=yes
26804         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26805              $target_header_dir/features.h > /dev/null && \
26806              test -f $target_header_dir/bits/uClibc_config.h && \
26807              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26808              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26809           gcc_cv_libc_provides_ssp=yes
26810         fi
26811       # all versions of Bionic support stack protector
26812       elif test -f $target_header_dir/sys/cdefs.h \
26813         && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
26814            $target_header_dir/sys/cdefs.h > /dev/null; then
26815          gcc_cv_libc_provides_ssp=yes
26816       fi
26817         ;;
26818        *-*-gnu*)
26819          # Avoid complicated tests (see
26820          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26821          # simply assert that glibc does provide this, which is true for all
26822          # realistically usable GNU/Hurd configurations.
26823          gcc_cv_libc_provides_ssp=yes;;
26824        *-*-darwin* | *-*-freebsd*)
26825          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26826 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26827   gcc_cv_libc_provides_ssp=yes
26828 else
26829   echo "no __stack_chk_fail on this target"
26830 fi
26831
26832         ;;
26833   *) gcc_cv_libc_provides_ssp=no ;;
26834     esac
26835 fi
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26837 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26838
26839 if test x$gcc_cv_libc_provides_ssp = xyes; then
26840
26841 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26842
26843 fi
26844
26845 # Test for <sys/sdt.h> on the target.
26846
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26848 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26849 have_sys_sdt_h=no
26850 if test -f $target_header_dir/sys/sdt.h; then
26851   have_sys_sdt_h=yes
26852
26853 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26854
26855 fi
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26857 $as_echo "$have_sys_sdt_h" >&6; }
26858
26859 # Check if TFmode long double should be used by default or not.
26860 # Some glibc targets used DFmode long double, but with glibc 2.4
26861 # and later they can use TFmode.
26862 case "$target" in
26863   powerpc*-*-linux* | \
26864   sparc*-*-linux* | \
26865   s390*-*-linux* | \
26866   alpha*-*-linux*)
26867
26868 # Check whether --with-long-double-128 was given.
26869 if test "${with_long_double_128+set}" = set; then :
26870   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26871 else
26872   gcc_cv_target_ldbl128=no
26873       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26874         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26875       && gcc_cv_target_ldbl128=yes
26876
26877 fi
26878
26879     ;;
26880 esac
26881 if test x$gcc_cv_target_ldbl128 = xyes; then
26882
26883 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26884
26885 fi
26886
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26888 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26889 gcc_cv_target_dl_iterate_phdr=unknown
26890 case "$target" in
26891   # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
26892   # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26893   # libdl there, both complicating its use and breaking compatibility
26894   # between Solaris 10 updates.
26895   *-*-solaris2.1[1-9]*)
26896     # <link.h> needs both a dl_iterate_phdr declaration and support for
26897     # compilation with largefile support.
26898     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26899       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26900       gcc_cv_target_dl_iterate_phdr=yes
26901     else
26902       gcc_cv_target_dl_iterate_phdr=no
26903     fi
26904     ;;
26905 esac
26906
26907 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26908
26909 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26910
26911 fi
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26913 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26914
26915 # Find out what GC implementation we want, or may, use.
26916
26917 # Check whether --with-gc was given.
26918 if test "${with_gc+set}" = set; then :
26919   withval=$with_gc; case "$withval" in
26920   page)
26921     GGC=ggc-$withval
26922     ;;
26923   zone)
26924     GGC=ggc-$withval
26925
26926 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26927
26928     ;;
26929   *)
26930     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26931     ;;
26932 esac
26933 else
26934   GGC=ggc-page
26935 fi
26936
26937
26938 echo "Using $GGC for garbage collection."
26939
26940 # Libraries to use on the host.  This will normally be set by the top
26941 # level Makefile.  Here we simply capture the value for our Makefile.
26942 if test -z "${HOST_LIBS+set}"; then
26943   HOST_LIBS=
26944 fi
26945
26946
26947 # Use the system's zlib library.
26948 zlibdir=-L../zlib
26949 zlibinc="-I\$(srcdir)/../zlib"
26950
26951 # Check whether --with-system-zlib was given.
26952 if test "${with_system_zlib+set}" = set; then :
26953   withval=$with_system_zlib; zlibdir=
26954 zlibinc=
26955
26956 fi
26957
26958
26959
26960
26961
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26964     # Check whether --enable-maintainer-mode was given.
26965 if test "${enable_maintainer_mode+set}" = set; then :
26966   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26967 else
26968   maintainer_mode=no
26969 fi
26970
26971
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26973 $as_echo "$maintainer_mode" >&6; }
26974
26975 if test "$maintainer_mode" = "yes"; then
26976   MAINT=''
26977 else
26978   MAINT='#'
26979 fi
26980
26981 # --------------
26982 # Language hooks
26983 # --------------
26984
26985 # Make empty files to contain the specs and options for each language.
26986 # Then add #include lines to for a compiler that has specs and/or options.
26987
26988 subdirs=
26989 lang_opt_files=
26990 lang_specs_files=
26991 lang_tree_files=
26992 # These (without "all_") are set in each config-lang.in.
26993 # `language' must be a single word so is spelled singularly.
26994 all_languages=
26995 all_compilers=
26996 all_outputs='Makefile'
26997 # List of language makefile fragments.
26998 all_lang_makefrags=
26999 # Additional files for gengtype
27000 all_gtfiles="$target_gtfiles"
27001
27002 # These are the languages that are set in --enable-languages,
27003 # and are available in the GCC tree.
27004 all_selected_languages=
27005
27006 # Add the language fragments.
27007 # Languages are added via two mechanisms.  Some information must be
27008 # recorded in makefile variables, these are defined in config-lang.in.
27009 # We accumulate them and plug them into the main Makefile.
27010 # The other mechanism is a set of hooks for each of the main targets
27011 # like `clean', `install', etc.
27012
27013 language_hooks="Make-hooks"
27014
27015 for lang in ${srcdir}/*/config-lang.in
27016 do
27017         test "$lang" = "${srcdir}/*/config-lang.in" && continue
27018
27019         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
27020         if test "x$lang_alias" = x
27021         then
27022               echo "$lang doesn't set \$language." 1>&2
27023               exit 1
27024         fi
27025         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27026         subdirs="$subdirs $subdir"
27027
27028         # $gcc_subdir is where the gcc integration files are to be found
27029         # for a language, both for internal compiler purposes (compiler
27030         # sources implementing front-end to GCC tree converters), and for
27031         # build infrastructure purposes (Make-lang.in, etc.)
27032         #
27033         # This will be <subdir> (relative to $srcdir) if a line like
27034         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27035         # is found in <langdir>/config-lang.in, and will remain <langdir>
27036         # otherwise.
27037         #
27038         # Except for the language alias (fetched above), the regular
27039         # "config-lang.in" contents are always retrieved from $gcc_subdir,
27040         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27041         # only this and the language alias.
27042
27043         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
27044         if [ "$gcc_subdir" = "" ]; then
27045            gcc_subdir="$subdir"
27046         fi
27047
27048         case ",$enable_languages," in
27049         *,$lang_alias,*)
27050             all_selected_languages="$all_selected_languages $lang_alias"
27051             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27052                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27053             fi
27054             ;;
27055         esac
27056
27057         language=
27058         boot_language=
27059         compilers=
27060         outputs=
27061         gtfiles=
27062         subdir_requires=
27063         . ${srcdir}/$gcc_subdir/config-lang.in
27064         if test "x$language" = x
27065         then
27066                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27067                 exit 1
27068         fi
27069
27070         ok=:
27071         case ",$enable_languages," in
27072                 *,$lang_alias,*) ;;
27073                 *)
27074                         for i in $subdir_requires; do
27075                                 test -f "${srcdir}/$i/config-lang.in" && continue
27076                                 ok=false
27077                                 break
27078                         done
27079                 ;;
27080         esac
27081         $ok || continue
27082
27083         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27084         if test -f $srcdir/$gcc_subdir/lang.opt; then
27085             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27086             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27087         fi
27088         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27089             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27090         fi
27091         all_languages="$all_languages $language"
27092         all_compilers="$all_compilers $compilers"
27093         all_outputs="$all_outputs $outputs"
27094         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27095         case ",$enable_languages," in
27096                 *,lto,*)
27097
27098 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27099
27100                     enable_lto=yes
27101
27102                     ;;
27103                 *) ;;
27104         esac
27105 done
27106
27107 # Pick up gtfiles for c
27108 gtfiles=
27109 . ${srcdir}/c-config-lang.in
27110 all_gtfiles="$all_gtfiles [c] $gtfiles"
27111
27112 check_languages=
27113 for language in $all_selected_languages
27114 do
27115         check_languages="$check_languages check-$language"
27116 done
27117
27118 # We link each language in with a set of hooks, reached indirectly via
27119 # lang.${target}.  Only do so for selected languages.
27120
27121 rm -f Make-hooks
27122 touch Make-hooks
27123 target_list="all.cross start.encap rest.encap tags \
27124         install-common install-man install-info install-pdf install-html dvi \
27125         pdf html uninstall info man srcextra srcman srcinfo \
27126         mostlyclean clean distclean maintainer-clean install-plugin"
27127
27128 for t in $target_list
27129 do
27130         x=
27131         for lang in $all_selected_languages
27132         do
27133                 x="$x $lang.$t"
27134         done
27135         echo "lang.$t: $x" >> Make-hooks
27136 done
27137
27138 # --------
27139 # Option include files
27140 # --------
27141
27142 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27143 option_includes="option-includes.mk"
27144
27145
27146 # --------
27147 # UNSORTED
27148 # --------
27149
27150 # Create .gdbinit.
27151
27152 echo "dir ." > .gdbinit
27153 echo "dir ${srcdir}" >> .gdbinit
27154 if test x$gdb_needs_out_file_path = xyes
27155 then
27156         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27157 fi
27158 if test "x$subdirs" != x; then
27159         for s in $subdirs
27160         do
27161                 echo "dir ${srcdir}/$s" >> .gdbinit
27162         done
27163 fi
27164 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27165
27166 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27167
27168
27169
27170 # Find a directory in which to install a shared libgcc.
27171
27172 # Check whether --enable-version-specific-runtime-libs was given.
27173 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27174   enableval=$enable_version_specific_runtime_libs;
27175 fi
27176
27177
27178 # Substitute configuration variables
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242 # Echo link setup.
27243 if test x${build} = x${host} ; then
27244   if test x${host} = x${target} ; then
27245     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27246   else
27247     echo "Links are now set up to build a cross-compiler" 1>&2
27248     echo " from ${host} to ${target}." 1>&2
27249   fi
27250 else
27251   if test x${host} = x${target} ; then
27252     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27253     echo " for ${target}." 1>&2
27254   else
27255     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27256     echo " from ${host} to ${target}." 1>&2
27257   fi
27258 fi
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268 if test "x${CLOOGLIBS}" != "x" ; then
27269
27270 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27271
27272 fi
27273
27274 # Check for plugin support
27275 # Check whether --enable-plugin was given.
27276 if test "${enable_plugin+set}" = set; then :
27277   enableval=$enable_plugin; enable_plugin=$enableval
27278 else
27279   enable_plugin=yes; default_plugin=yes
27280 fi
27281
27282
27283 pluginlibs=
27284
27285 case "${host}" in
27286   *-*-darwin*)
27287     if test x$build = x$host; then
27288       export_sym_check="nm${exeext} -g"
27289     elif test x$host = x$target; then
27290       export_sym_check="$gcc_cv_nm -g"
27291     else
27292       export_sym_check=
27293     fi
27294   ;;
27295   *)
27296     if test x$build = x$host; then
27297       export_sym_check="objdump${exeext} -T"
27298     elif test x$host = x$target; then
27299       export_sym_check="$gcc_cv_objdump -T"
27300     else
27301       export_sym_check=
27302     fi
27303   ;;
27304 esac
27305
27306 if test x"$enable_plugin" = x"yes"; then
27307
27308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27309 $as_echo_n "checking for exported symbols... " >&6; }
27310   if test "x$export_sym_check" != x; then
27311     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27312     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27313     if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27314       : # No need to use a flag
27315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27316 $as_echo "yes" >&6; }
27317     else
27318       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27319 $as_echo "yes" >&6; }
27320       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27321 $as_echo_n "checking for -rdynamic... " >&6; }
27322       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27323       if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27324         plugin_rdynamic=yes
27325         pluginlibs="-rdynamic"
27326       else
27327         plugin_rdynamic=no
27328         enable_plugin=no
27329       fi
27330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27331 $as_echo "$plugin_rdynamic" >&6; }
27332     fi
27333   else
27334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27335 $as_echo "unable to check" >&6; }
27336   fi
27337
27338   # Check -ldl
27339   saved_LIBS="$LIBS"
27340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27341 $as_echo_n "checking for library containing dlopen... " >&6; }
27342 if test "${ac_cv_search_dlopen+set}" = set; then :
27343   $as_echo_n "(cached) " >&6
27344 else
27345   ac_func_search_save_LIBS=$LIBS
27346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27347 /* end confdefs.h.  */
27348
27349 /* Override any GCC internal prototype to avoid an error.
27350    Use char because int might match the return type of a GCC
27351    builtin and then its argument prototype would still apply.  */
27352 #ifdef __cplusplus
27353 extern "C"
27354 #endif
27355 char dlopen ();
27356 int
27357 main ()
27358 {
27359 return dlopen ();
27360   ;
27361   return 0;
27362 }
27363 _ACEOF
27364 for ac_lib in '' dl; do
27365   if test -z "$ac_lib"; then
27366     ac_res="none required"
27367   else
27368     ac_res=-l$ac_lib
27369     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27370   fi
27371   if ac_fn_c_try_link "$LINENO"; then :
27372   ac_cv_search_dlopen=$ac_res
27373 fi
27374 rm -f core conftest.err conftest.$ac_objext \
27375     conftest$ac_exeext
27376   if test "${ac_cv_search_dlopen+set}" = set; then :
27377   break
27378 fi
27379 done
27380 if test "${ac_cv_search_dlopen+set}" = set; then :
27381
27382 else
27383   ac_cv_search_dlopen=no
27384 fi
27385 rm conftest.$ac_ext
27386 LIBS=$ac_func_search_save_LIBS
27387 fi
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27389 $as_echo "$ac_cv_search_dlopen" >&6; }
27390 ac_res=$ac_cv_search_dlopen
27391 if test "$ac_res" != no; then :
27392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27393
27394 fi
27395
27396   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27397     pluginlibs="$pluginlibs -ldl"
27398   fi
27399   LIBS="$saved_LIBS"
27400
27401   # Check that we can build shared objects with -fPIC -shared
27402   saved_LDFLAGS="$LDFLAGS"
27403   saved_CFLAGS="$CFLAGS"
27404   case "${host}" in
27405     *-*-darwin*)
27406       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27407       CFLAGS="$CFLAGS -fPIC"
27408       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27409     ;;
27410     *)
27411       CFLAGS="$CFLAGS -fPIC"
27412       LDFLAGS="$LDFLAGS -fPIC -shared"
27413     ;;
27414   esac
27415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27416 $as_echo_n "checking for -fPIC -shared... " >&6; }
27417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27418 /* end confdefs.h.  */
27419 extern int X;
27420 int
27421 main ()
27422 {
27423 return X == 0;
27424   ;
27425   return 0;
27426 }
27427 _ACEOF
27428 if ac_fn_c_try_link "$LINENO"; then :
27429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27430 $as_echo "yes" >&6; }; have_pic_shared=yes
27431 else
27432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27433 $as_echo "no" >&6; }; have_pic_shared=no
27434 fi
27435 rm -f core conftest.err conftest.$ac_objext \
27436     conftest$ac_exeext conftest.$ac_ext
27437   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27438     pluginlibs=
27439     enable_plugin=no
27440   fi
27441   LDFLAGS="$saved_LDFLAGS"
27442   CFLAGS="$saved_CFLAGS"
27443
27444   # If plugin support had been requested but not available, fail.
27445   if test x"$enable_plugin" = x"no" ; then
27446     if test x"$default_plugin" != x"yes"; then
27447       as_fn_error "
27448 Building GCC with plugin support requires a host that supports
27449 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27450     fi
27451   fi
27452 fi
27453
27454
27455
27456 if test x"$enable_plugin" = x"yes"; then
27457
27458 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27459
27460 fi
27461
27462
27463 # Check whether --enable-libquadmath-support was given.
27464 if test "${enable_libquadmath_support+set}" = set; then :
27465   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27466 else
27467   ENABLE_LIBQUADMATH_SUPPORT=yes
27468 fi
27469
27470 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27471
27472 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27473
27474 fi
27475
27476
27477 # Specify what hash style to use by default.
27478
27479 # Check whether --with-linker-hash-style was given.
27480 if test "${with_linker_hash_style+set}" = set; then :
27481   withval=$with_linker_hash_style; case x"$withval" in
27482    xsysv)
27483      LINKER_HASH_STYLE=sysv
27484      ;;
27485    xgnu)
27486      LINKER_HASH_STYLE=gnu
27487      ;;
27488    xboth)
27489      LINKER_HASH_STYLE=both
27490      ;;
27491    *)
27492      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27493      ;;
27494  esac
27495 else
27496   LINKER_HASH_STYLE=''
27497 fi
27498
27499 if test x"${LINKER_HASH_STYLE}" != x; then
27500
27501 cat >>confdefs.h <<_ACEOF
27502 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27503 _ACEOF
27504
27505 fi
27506
27507 # Configure the subdirectories
27508 # AC_CONFIG_SUBDIRS($subdirs)
27509
27510 # Create the Makefile
27511 # and configure language subdirectories
27512 ac_config_files="$ac_config_files $all_outputs"
27513
27514
27515 ac_config_commands="$ac_config_commands default"
27516
27517 cat >confcache <<\_ACEOF
27518 # This file is a shell script that caches the results of configure
27519 # tests run on this system so they can be shared between configure
27520 # scripts and configure runs, see configure's option --config-cache.
27521 # It is not useful on other systems.  If it contains results you don't
27522 # want to keep, you may remove or edit it.
27523 #
27524 # config.status only pays attention to the cache file if you give it
27525 # the --recheck option to rerun configure.
27526 #
27527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27529 # following values.
27530
27531 _ACEOF
27532
27533 # The following way of writing the cache mishandles newlines in values,
27534 # but we know of no workaround that is simple, portable, and efficient.
27535 # So, we kill variables containing newlines.
27536 # Ultrix sh set writes to stderr and can't be redirected directly,
27537 # and sets the high bit in the cache file unless we assign to the vars.
27538 (
27539   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27540     eval ac_val=\$$ac_var
27541     case $ac_val in #(
27542     *${as_nl}*)
27543       case $ac_var in #(
27544       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27546       esac
27547       case $ac_var in #(
27548       _ | IFS | as_nl) ;; #(
27549       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27550       *) { eval $ac_var=; unset $ac_var;} ;;
27551       esac ;;
27552     esac
27553   done
27554
27555   (set) 2>&1 |
27556     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27557     *${as_nl}ac_space=\ *)
27558       # `set' does not quote correctly, so add quotes: double-quote
27559       # substitution turns \\\\ into \\, and sed turns \\ into \.
27560       sed -n \
27561         "s/'/'\\\\''/g;
27562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27563       ;; #(
27564     *)
27565       # `set' quotes correctly as required by POSIX, so do not add quotes.
27566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27567       ;;
27568     esac |
27569     sort
27570 ) |
27571   sed '
27572      /^ac_cv_env_/b end
27573      t clear
27574      :clear
27575      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27576      t end
27577      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27578      :end' >>confcache
27579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27580   if test -w "$cache_file"; then
27581     test "x$cache_file" != "x/dev/null" &&
27582       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27583 $as_echo "$as_me: updating cache $cache_file" >&6;}
27584     cat confcache >$cache_file
27585   else
27586     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27588   fi
27589 fi
27590 rm -f confcache
27591
27592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27593 # Let make expand exec_prefix.
27594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27595
27596 DEFS=-DHAVE_CONFIG_H
27597
27598 ac_libobjs=
27599 ac_ltlibobjs=
27600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27601   # 1. Remove the extension, and $U if already installed.
27602   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27603   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27604   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27605   #    will be set to the directory where LIBOBJS objects are built.
27606   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27607   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27608 done
27609 LIBOBJS=$ac_libobjs
27610
27611 LTLIBOBJS=$ac_ltlibobjs
27612
27613
27614
27615
27616 : ${CONFIG_STATUS=./config.status}
27617 ac_write_fail=0
27618 ac_clean_files_save=$ac_clean_files
27619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27622 as_write_fail=0
27623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27624 #! $SHELL
27625 # Generated by $as_me.
27626 # Run this file to recreate the current configuration.
27627 # Compiler output produced by configure, useful for debugging
27628 # configure, is in config.log if it exists.
27629
27630 debug=false
27631 ac_cs_recheck=false
27632 ac_cs_silent=false
27633
27634 SHELL=\${CONFIG_SHELL-$SHELL}
27635 export SHELL
27636 _ASEOF
27637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27638 ## -------------------- ##
27639 ## M4sh Initialization. ##
27640 ## -------------------- ##
27641
27642 # Be more Bourne compatible
27643 DUALCASE=1; export DUALCASE # for MKS sh
27644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27645   emulate sh
27646   NULLCMD=:
27647   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27648   # is contrary to our usage.  Disable this feature.
27649   alias -g '${1+"$@"}'='"$@"'
27650   setopt NO_GLOB_SUBST
27651 else
27652   case `(set -o) 2>/dev/null` in #(
27653   *posix*) :
27654     set -o posix ;; #(
27655   *) :
27656      ;;
27657 esac
27658 fi
27659
27660
27661 as_nl='
27662 '
27663 export as_nl
27664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27668 # Prefer a ksh shell builtin over an external printf program on Solaris,
27669 # but without wasting forks for bash or zsh.
27670 if test -z "$BASH_VERSION$ZSH_VERSION" \
27671     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27672   as_echo='print -r --'
27673   as_echo_n='print -rn --'
27674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27675   as_echo='printf %s\n'
27676   as_echo_n='printf %s'
27677 else
27678   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27679     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27680     as_echo_n='/usr/ucb/echo -n'
27681   else
27682     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27683     as_echo_n_body='eval
27684       arg=$1;
27685       case $arg in #(
27686       *"$as_nl"*)
27687         expr "X$arg" : "X\\(.*\\)$as_nl";
27688         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27689       esac;
27690       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27691     '
27692     export as_echo_n_body
27693     as_echo_n='sh -c $as_echo_n_body as_echo'
27694   fi
27695   export as_echo_body
27696   as_echo='sh -c $as_echo_body as_echo'
27697 fi
27698
27699 # The user is always right.
27700 if test "${PATH_SEPARATOR+set}" != set; then
27701   PATH_SEPARATOR=:
27702   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27703     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27704       PATH_SEPARATOR=';'
27705   }
27706 fi
27707
27708
27709 # IFS
27710 # We need space, tab and new line, in precisely that order.  Quoting is
27711 # there to prevent editors from complaining about space-tab.
27712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27713 # splitting by setting IFS to empty value.)
27714 IFS=" ""        $as_nl"
27715
27716 # Find who we are.  Look in the path if we contain no directory separator.
27717 case $0 in #((
27718   *[\\/]* ) as_myself=$0 ;;
27719   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27720 for as_dir in $PATH
27721 do
27722   IFS=$as_save_IFS
27723   test -z "$as_dir" && as_dir=.
27724     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27725   done
27726 IFS=$as_save_IFS
27727
27728      ;;
27729 esac
27730 # We did not find ourselves, most probably we were run as `sh COMMAND'
27731 # in which case we are not to be found in the path.
27732 if test "x$as_myself" = x; then
27733   as_myself=$0
27734 fi
27735 if test ! -f "$as_myself"; then
27736   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27737   exit 1
27738 fi
27739
27740 # Unset variables that we do not need and which cause bugs (e.g. in
27741 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27742 # suppresses any "Segmentation fault" message there.  '((' could
27743 # trigger a bug in pdksh 5.2.14.
27744 for as_var in BASH_ENV ENV MAIL MAILPATH
27745 do eval test x\${$as_var+set} = xset \
27746   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27747 done
27748 PS1='$ '
27749 PS2='> '
27750 PS4='+ '
27751
27752 # NLS nuisances.
27753 LC_ALL=C
27754 export LC_ALL
27755 LANGUAGE=C
27756 export LANGUAGE
27757
27758 # CDPATH.
27759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27760
27761
27762 # as_fn_error ERROR [LINENO LOG_FD]
27763 # ---------------------------------
27764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27766 # script with status $?, using 1 if that was 0.
27767 as_fn_error ()
27768 {
27769   as_status=$?; test $as_status -eq 0 && as_status=1
27770   if test "$3"; then
27771     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27772     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27773   fi
27774   $as_echo "$as_me: error: $1" >&2
27775   as_fn_exit $as_status
27776 } # as_fn_error
27777
27778
27779 # as_fn_set_status STATUS
27780 # -----------------------
27781 # Set $? to STATUS, without forking.
27782 as_fn_set_status ()
27783 {
27784   return $1
27785 } # as_fn_set_status
27786
27787 # as_fn_exit STATUS
27788 # -----------------
27789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27790 as_fn_exit ()
27791 {
27792   set +e
27793   as_fn_set_status $1
27794   exit $1
27795 } # as_fn_exit
27796
27797 # as_fn_unset VAR
27798 # ---------------
27799 # Portably unset VAR.
27800 as_fn_unset ()
27801 {
27802   { eval $1=; unset $1;}
27803 }
27804 as_unset=as_fn_unset
27805 # as_fn_append VAR VALUE
27806 # ----------------------
27807 # Append the text in VALUE to the end of the definition contained in VAR. Take
27808 # advantage of any shell optimizations that allow amortized linear growth over
27809 # repeated appends, instead of the typical quadratic growth present in naive
27810 # implementations.
27811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27812   eval 'as_fn_append ()
27813   {
27814     eval $1+=\$2
27815   }'
27816 else
27817   as_fn_append ()
27818   {
27819     eval $1=\$$1\$2
27820   }
27821 fi # as_fn_append
27822
27823 # as_fn_arith ARG...
27824 # ------------------
27825 # Perform arithmetic evaluation on the ARGs, and store the result in the
27826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27827 # must be portable across $(()) and expr.
27828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27829   eval 'as_fn_arith ()
27830   {
27831     as_val=$(( $* ))
27832   }'
27833 else
27834   as_fn_arith ()
27835   {
27836     as_val=`expr "$@" || test $? -eq 1`
27837   }
27838 fi # as_fn_arith
27839
27840
27841 if expr a : '\(a\)' >/dev/null 2>&1 &&
27842    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27843   as_expr=expr
27844 else
27845   as_expr=false
27846 fi
27847
27848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27849   as_basename=basename
27850 else
27851   as_basename=false
27852 fi
27853
27854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27855   as_dirname=dirname
27856 else
27857   as_dirname=false
27858 fi
27859
27860 as_me=`$as_basename -- "$0" ||
27861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27862          X"$0" : 'X\(//\)$' \| \
27863          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27864 $as_echo X/"$0" |
27865     sed '/^.*\/\([^/][^/]*\)\/*$/{
27866             s//\1/
27867             q
27868           }
27869           /^X\/\(\/\/\)$/{
27870             s//\1/
27871             q
27872           }
27873           /^X\/\(\/\).*/{
27874             s//\1/
27875             q
27876           }
27877           s/.*/./; q'`
27878
27879 # Avoid depending upon Character Ranges.
27880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27883 as_cr_digits='0123456789'
27884 as_cr_alnum=$as_cr_Letters$as_cr_digits
27885
27886 ECHO_C= ECHO_N= ECHO_T=
27887 case `echo -n x` in #(((((
27888 -n*)
27889   case `echo 'xy\c'` in
27890   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27891   xy)  ECHO_C='\c';;
27892   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27893        ECHO_T=' ';;
27894   esac;;
27895 *)
27896   ECHO_N='-n';;
27897 esac
27898
27899 rm -f conf$$ conf$$.exe conf$$.file
27900 if test -d conf$$.dir; then
27901   rm -f conf$$.dir/conf$$.file
27902 else
27903   rm -f conf$$.dir
27904   mkdir conf$$.dir 2>/dev/null
27905 fi
27906 if (echo >conf$$.file) 2>/dev/null; then
27907   if ln -s conf$$.file conf$$ 2>/dev/null; then
27908     as_ln_s='ln -s'
27909     # ... but there are two gotchas:
27910     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27911     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27912     # In both cases, we have to default to `cp -p'.
27913     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27914       as_ln_s='cp -p'
27915   elif ln conf$$.file conf$$ 2>/dev/null; then
27916     as_ln_s=ln
27917   else
27918     as_ln_s='cp -p'
27919   fi
27920 else
27921   as_ln_s='cp -p'
27922 fi
27923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27924 rmdir conf$$.dir 2>/dev/null
27925
27926
27927 # as_fn_mkdir_p
27928 # -------------
27929 # Create "$as_dir" as a directory, including parents if necessary.
27930 as_fn_mkdir_p ()
27931 {
27932
27933   case $as_dir in #(
27934   -*) as_dir=./$as_dir;;
27935   esac
27936   test -d "$as_dir" || eval $as_mkdir_p || {
27937     as_dirs=
27938     while :; do
27939       case $as_dir in #(
27940       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27941       *) as_qdir=$as_dir;;
27942       esac
27943       as_dirs="'$as_qdir' $as_dirs"
27944       as_dir=`$as_dirname -- "$as_dir" ||
27945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27946          X"$as_dir" : 'X\(//\)[^/]' \| \
27947          X"$as_dir" : 'X\(//\)$' \| \
27948          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27949 $as_echo X"$as_dir" |
27950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27951             s//\1/
27952             q
27953           }
27954           /^X\(\/\/\)[^/].*/{
27955             s//\1/
27956             q
27957           }
27958           /^X\(\/\/\)$/{
27959             s//\1/
27960             q
27961           }
27962           /^X\(\/\).*/{
27963             s//\1/
27964             q
27965           }
27966           s/.*/./; q'`
27967       test -d "$as_dir" && break
27968     done
27969     test -z "$as_dirs" || eval "mkdir $as_dirs"
27970   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27971
27972
27973 } # as_fn_mkdir_p
27974 if mkdir -p . 2>/dev/null; then
27975   as_mkdir_p='mkdir -p "$as_dir"'
27976 else
27977   test -d ./-p && rmdir ./-p
27978   as_mkdir_p=false
27979 fi
27980
27981 if test -x / >/dev/null 2>&1; then
27982   as_test_x='test -x'
27983 else
27984   if ls -dL / >/dev/null 2>&1; then
27985     as_ls_L_option=L
27986   else
27987     as_ls_L_option=
27988   fi
27989   as_test_x='
27990     eval sh -c '\''
27991       if test -d "$1"; then
27992         test -d "$1/.";
27993       else
27994         case $1 in #(
27995         -*)set "./$1";;
27996         esac;
27997         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27998         ???[sx]*):;;*)false;;esac;fi
27999     '\'' sh
28000   '
28001 fi
28002 as_executable_p=$as_test_x
28003
28004 # Sed expression to map a string onto a valid CPP name.
28005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28006
28007 # Sed expression to map a string onto a valid variable name.
28008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28009
28010
28011 exec 6>&1
28012 ## ----------------------------------- ##
28013 ## Main body of $CONFIG_STATUS script. ##
28014 ## ----------------------------------- ##
28015 _ASEOF
28016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28017
28018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28019 # Save the log message, to keep $0 and so on meaningful, and to
28020 # report actual input values of CONFIG_FILES etc. instead of their
28021 # values after options handling.
28022 ac_log="
28023 This file was extended by $as_me, which was
28024 generated by GNU Autoconf 2.64.  Invocation command line was
28025
28026   CONFIG_FILES    = $CONFIG_FILES
28027   CONFIG_HEADERS  = $CONFIG_HEADERS
28028   CONFIG_LINKS    = $CONFIG_LINKS
28029   CONFIG_COMMANDS = $CONFIG_COMMANDS
28030   $ $0 $@
28031
28032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28033 "
28034
28035 _ACEOF
28036
28037 case $ac_config_files in *"
28038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28039 esac
28040
28041 case $ac_config_headers in *"
28042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28043 esac
28044
28045
28046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28047 # Files that config.status was made for.
28048 config_files="$ac_config_files"
28049 config_headers="$ac_config_headers"
28050 config_commands="$ac_config_commands"
28051
28052 _ACEOF
28053
28054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28055 ac_cs_usage="\
28056 \`$as_me' instantiates files and other configuration actions
28057 from templates according to the current configuration.  Unless the files
28058 and actions are specified as TAGs, all are instantiated by default.
28059
28060 Usage: $0 [OPTION]... [TAG]...
28061
28062   -h, --help       print this help, then exit
28063   -V, --version    print version number and configuration settings, then exit
28064   -q, --quiet, --silent
28065                    do not print progress messages
28066   -d, --debug      don't remove temporary files
28067       --recheck    update $as_me by reconfiguring in the same conditions
28068       --file=FILE[:TEMPLATE]
28069                    instantiate the configuration file FILE
28070       --header=FILE[:TEMPLATE]
28071                    instantiate the configuration header FILE
28072
28073 Configuration files:
28074 $config_files
28075
28076 Configuration headers:
28077 $config_headers
28078
28079 Configuration commands:
28080 $config_commands
28081
28082 Report bugs to the package provider."
28083
28084 _ACEOF
28085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28086 ac_cs_version="\\
28087 config.status
28088 configured by $0, generated by GNU Autoconf 2.64,
28089   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28090
28091 Copyright (C) 2009 Free Software Foundation, Inc.
28092 This config.status script is free software; the Free Software Foundation
28093 gives unlimited permission to copy, distribute and modify it."
28094
28095 ac_pwd='$ac_pwd'
28096 srcdir='$srcdir'
28097 AWK='$AWK'
28098 test -n "\$AWK" || AWK=awk
28099 _ACEOF
28100
28101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28102 # The default lists apply if the user does not specify any file.
28103 ac_need_defaults=:
28104 while test $# != 0
28105 do
28106   case $1 in
28107   --*=*)
28108     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28109     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28110     ac_shift=:
28111     ;;
28112   *)
28113     ac_option=$1
28114     ac_optarg=$2
28115     ac_shift=shift
28116     ;;
28117   esac
28118
28119   case $ac_option in
28120   # Handling of the options.
28121   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28122     ac_cs_recheck=: ;;
28123   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28124     $as_echo "$ac_cs_version"; exit ;;
28125   --debug | --debu | --deb | --de | --d | -d )
28126     debug=: ;;
28127   --file | --fil | --fi | --f )
28128     $ac_shift
28129     case $ac_optarg in
28130     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28131     esac
28132     as_fn_append CONFIG_FILES " '$ac_optarg'"
28133     ac_need_defaults=false;;
28134   --header | --heade | --head | --hea )
28135     $ac_shift
28136     case $ac_optarg in
28137     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28138     esac
28139     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28140     ac_need_defaults=false;;
28141   --he | --h)
28142     # Conflict between --help and --header
28143     as_fn_error "ambiguous option: \`$1'
28144 Try \`$0 --help' for more information.";;
28145   --help | --hel | -h )
28146     $as_echo "$ac_cs_usage"; exit ;;
28147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28149     ac_cs_silent=: ;;
28150
28151   # This is an error.
28152   -*) as_fn_error "unrecognized option: \`$1'
28153 Try \`$0 --help' for more information." ;;
28154
28155   *) as_fn_append ac_config_targets " $1"
28156      ac_need_defaults=false ;;
28157
28158   esac
28159   shift
28160 done
28161
28162 ac_configure_extra_args=
28163
28164 if $ac_cs_silent; then
28165   exec 6>/dev/null
28166   ac_configure_extra_args="$ac_configure_extra_args --silent"
28167 fi
28168
28169 _ACEOF
28170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28171 if \$ac_cs_recheck; then
28172   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28173   shift
28174   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28175   CONFIG_SHELL='$SHELL'
28176   export CONFIG_SHELL
28177   exec "\$@"
28178 fi
28179
28180 _ACEOF
28181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28182 exec 5>>config.log
28183 {
28184   echo
28185   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28186 ## Running $as_me. ##
28187 _ASBOX
28188   $as_echo "$ac_log"
28189 } >&5
28190
28191 _ACEOF
28192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28193 #
28194 # INIT-COMMANDS
28195 #
28196 subdirs='$subdirs'
28197
28198 _ACEOF
28199
28200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28201
28202 # Handling of arguments.
28203 for ac_config_target in $ac_config_targets
28204 do
28205   case $ac_config_target in
28206     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28207     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28208     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28209     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28210     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28211     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28212
28213   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28214   esac
28215 done
28216
28217
28218 # If the user did not use the arguments to specify the items to instantiate,
28219 # then the envvar interface is used.  Set only those that are not.
28220 # We use the long form for the default assignment because of an extremely
28221 # bizarre bug on SunOS 4.1.3.
28222 if $ac_need_defaults; then
28223   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28224   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28225   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28226 fi
28227
28228 # Have a temporary directory for convenience.  Make it in the build tree
28229 # simply because there is no reason against having it here, and in addition,
28230 # creating and moving files from /tmp can sometimes cause problems.
28231 # Hook for its removal unless debugging.
28232 # Note that there is a small window in which the directory will not be cleaned:
28233 # after its creation but before its name has been assigned to `$tmp'.
28234 $debug ||
28235 {
28236   tmp=
28237   trap 'exit_status=$?
28238   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28239 ' 0
28240   trap 'as_fn_exit 1' 1 2 13 15
28241 }
28242 # Create a (secure) tmp directory for tmp files.
28243
28244 {
28245   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28246   test -n "$tmp" && test -d "$tmp"
28247 }  ||
28248 {
28249   tmp=./conf$$-$RANDOM
28250   (umask 077 && mkdir "$tmp")
28251 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28252
28253 # Set up the scripts for CONFIG_FILES section.
28254 # No need to generate them if there are no CONFIG_FILES.
28255 # This happens for instance with `./config.status config.h'.
28256 if test -n "$CONFIG_FILES"; then
28257
28258 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28259   ac_cs_awk_getline=:
28260   ac_cs_awk_pipe_init=
28261   ac_cs_awk_read_file='
28262       while ((getline aline < (F[key])) > 0)
28263         print(aline)
28264       close(F[key])'
28265   ac_cs_awk_pipe_fini=
28266 else
28267   ac_cs_awk_getline=false
28268   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28269   ac_cs_awk_read_file='
28270       print "|#_!!_#|"
28271       print "cat " F[key] " &&"
28272       '$ac_cs_awk_pipe_init
28273   # The final `:' finishes the AND list.
28274   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28275 fi
28276 ac_cr=`echo X | tr X '\015'`
28277 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28278 # But we know of no other shell where ac_cr would be empty at this
28279 # point, so we can use a bashism as a fallback.
28280 if test "x$ac_cr" = x; then
28281   eval ac_cr=\$\'\\r\'
28282 fi
28283 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28284 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28285   ac_cs_awk_cr='\r'
28286 else
28287   ac_cs_awk_cr=$ac_cr
28288 fi
28289
28290 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28291 _ACEOF
28292
28293 # Create commands to substitute file output variables.
28294 {
28295   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28296   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28297   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28298   echo "_ACAWK" &&
28299   echo "_ACEOF"
28300 } >conf$$files.sh &&
28301 . ./conf$$files.sh ||
28302   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28303 rm -f conf$$files.sh
28304
28305 {
28306   echo "cat >conf$$subs.awk <<_ACEOF" &&
28307   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28308   echo "_ACEOF"
28309 } >conf$$subs.sh ||
28310   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28311 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28312 ac_delim='%!_!# '
28313 for ac_last_try in false false false false false :; do
28314   . ./conf$$subs.sh ||
28315     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28316
28317   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28318   if test $ac_delim_n = $ac_delim_num; then
28319     break
28320   elif $ac_last_try; then
28321     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28322   else
28323     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28324   fi
28325 done
28326 rm -f conf$$subs.sh
28327
28328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28329 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28330 _ACEOF
28331 sed -n '
28332 h
28333 s/^/S["/; s/!.*/"]=/
28334 p
28335 g
28336 s/^[^!]*!//
28337 :repl
28338 t repl
28339 s/'"$ac_delim"'$//
28340 t delim
28341 :nl
28342 h
28343 s/\(.\{148\}\).*/\1/
28344 t more1
28345 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28346 p
28347 n
28348 b repl
28349 :more1
28350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28351 p
28352 g
28353 s/.\{148\}//
28354 t nl
28355 :delim
28356 h
28357 s/\(.\{148\}\).*/\1/
28358 t more2
28359 s/["\\]/\\&/g; s/^/"/; s/$/"/
28360 p
28361 b
28362 :more2
28363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28364 p
28365 g
28366 s/.\{148\}//
28367 t delim
28368 ' <conf$$subs.awk | sed '
28369 /^[^""]/{
28370   N
28371   s/\n//
28372 }
28373 ' >>$CONFIG_STATUS || ac_write_fail=1
28374 rm -f conf$$subs.awk
28375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28376 _ACAWK
28377 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28378   for (key in S) S_is_set[key] = 1
28379   FS = "\a"
28380   \$ac_cs_awk_pipe_init
28381 }
28382 {
28383   line = $ 0
28384   nfields = split(line, field, "@")
28385   substed = 0
28386   len = length(field[1])
28387   for (i = 2; i < nfields; i++) {
28388     key = field[i]
28389     keylen = length(key)
28390     if (S_is_set[key]) {
28391       value = S[key]
28392       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28393       len += length(value) + length(field[++i])
28394       substed = 1
28395     } else
28396       len += 1 + keylen
28397   }
28398   if (nfields == 3 && !substed) {
28399     key = field[2]
28400     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28401       \$ac_cs_awk_read_file
28402       next
28403     }
28404   }
28405   print line
28406 }
28407 \$ac_cs_awk_pipe_fini
28408 _ACAWK
28409 _ACEOF
28410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28411 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28412   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28413 else
28414   cat
28415 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28416   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28417 _ACEOF
28418
28419 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28420 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28421 # trailing colons and then remove the whole line if VPATH becomes empty
28422 # (actually we leave an empty line to preserve line numbers).
28423 if test "x$srcdir" = x.; then
28424   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28425 s/:*\$(srcdir):*/:/
28426 s/:*\${srcdir}:*/:/
28427 s/:*@srcdir@:*/:/
28428 s/^\([^=]*=[     ]*\):*/\1/
28429 s/:*$//
28430 s/^[^=]*=[       ]*$//
28431 }'
28432 fi
28433
28434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28435 fi # test -n "$CONFIG_FILES"
28436
28437 # Set up the scripts for CONFIG_HEADERS section.
28438 # No need to generate them if there are no CONFIG_HEADERS.
28439 # This happens for instance with `./config.status Makefile'.
28440 if test -n "$CONFIG_HEADERS"; then
28441 cat >"$tmp/defines.awk" <<\_ACAWK ||
28442 BEGIN {
28443 _ACEOF
28444
28445 # Transform confdefs.h into an awk script `defines.awk', embedded as
28446 # here-document in config.status, that substitutes the proper values into
28447 # config.h.in to produce config.h.
28448
28449 # Create a delimiter string that does not exist in confdefs.h, to ease
28450 # handling of long lines.
28451 ac_delim='%!_!# '
28452 for ac_last_try in false false :; do
28453   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28454   if test -z "$ac_t"; then
28455     break
28456   elif $ac_last_try; then
28457     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28458   else
28459     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28460   fi
28461 done
28462
28463 # For the awk script, D is an array of macro values keyed by name,
28464 # likewise P contains macro parameters if any.  Preserve backslash
28465 # newline sequences.
28466
28467 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28468 sed -n '
28469 s/.\{148\}/&'"$ac_delim"'/g
28470 t rset
28471 :rset
28472 s/^[     ]*#[    ]*define[       ][      ]*/ /
28473 t def
28474 d
28475 :def
28476 s/\\$//
28477 t bsnl
28478 s/["\\]/\\&/g
28479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28480 D["\1"]=" \3"/p
28481 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28482 d
28483 :bsnl
28484 s/["\\]/\\&/g
28485 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28486 D["\1"]=" \3\\\\\\n"\\/p
28487 t cont
28488 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28489 t cont
28490 d
28491 :cont
28492 n
28493 s/.\{148\}/&'"$ac_delim"'/g
28494 t clear
28495 :clear
28496 s/\\$//
28497 t bsnlc
28498 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28499 d
28500 :bsnlc
28501 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28502 b cont
28503 ' <confdefs.h | sed '
28504 s/'"$ac_delim"'/"\\\
28505 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28506
28507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28508   for (key in D) D_is_set[key] = 1
28509   FS = "\a"
28510 }
28511 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28512   line = \$ 0
28513   split(line, arg, " ")
28514   if (arg[1] == "#") {
28515     defundef = arg[2]
28516     mac1 = arg[3]
28517   } else {
28518     defundef = substr(arg[1], 2)
28519     mac1 = arg[2]
28520   }
28521   split(mac1, mac2, "(") #)
28522   macro = mac2[1]
28523   prefix = substr(line, 1, index(line, defundef) - 1)
28524   if (D_is_set[macro]) {
28525     # Preserve the white space surrounding the "#".
28526     print prefix "define", macro P[macro] D[macro]
28527     next
28528   } else {
28529     # Replace #undef with comments.  This is necessary, for example,
28530     # in the case of _POSIX_SOURCE, which is predefined and required
28531     # on some systems where configure will not decide to define it.
28532     if (defundef == "undef") {
28533       print "/*", prefix defundef, macro, "*/"
28534       next
28535     }
28536   }
28537 }
28538 { print }
28539 _ACAWK
28540 _ACEOF
28541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28542   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28543 fi # test -n "$CONFIG_HEADERS"
28544
28545
28546 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28547 shift
28548 for ac_tag
28549 do
28550   case $ac_tag in
28551   :[FHLC]) ac_mode=$ac_tag; continue;;
28552   esac
28553   case $ac_mode$ac_tag in
28554   :[FHL]*:*);;
28555   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28556   :[FH]-) ac_tag=-:-;;
28557   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28558   esac
28559   ac_save_IFS=$IFS
28560   IFS=:
28561   set x $ac_tag
28562   IFS=$ac_save_IFS
28563   shift
28564   ac_file=$1
28565   shift
28566
28567   case $ac_mode in
28568   :L) ac_source=$1;;
28569   :[FH])
28570     ac_file_inputs=
28571     for ac_f
28572     do
28573       case $ac_f in
28574       -) ac_f="$tmp/stdin";;
28575       *) # Look for the file first in the build tree, then in the source tree
28576          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28577          # because $ac_f cannot contain `:'.
28578          test -f "$ac_f" ||
28579            case $ac_f in
28580            [\\/$]*) false;;
28581            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28582            esac ||
28583            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28584       esac
28585       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28586       as_fn_append ac_file_inputs " '$ac_f'"
28587     done
28588
28589     # Let's still pretend it is `configure' which instantiates (i.e., don't
28590     # use $as_me), people would be surprised to read:
28591     #    /* config.h.  Generated by config.status.  */
28592     configure_input='Generated from '`
28593           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28594         `' by configure.'
28595     if test x"$ac_file" != x-; then
28596       configure_input="$ac_file.  $configure_input"
28597       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28598 $as_echo "$as_me: creating $ac_file" >&6;}
28599     fi
28600     # Neutralize special characters interpreted by sed in replacement strings.
28601     case $configure_input in #(
28602     *\&* | *\|* | *\\* )
28603        ac_sed_conf_input=`$as_echo "$configure_input" |
28604        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28605     *) ac_sed_conf_input=$configure_input;;
28606     esac
28607
28608     case $ac_tag in
28609     *:-:* | *:-) cat >"$tmp/stdin" \
28610       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28611     esac
28612     ;;
28613   esac
28614
28615   ac_dir=`$as_dirname -- "$ac_file" ||
28616 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28617          X"$ac_file" : 'X\(//\)[^/]' \| \
28618          X"$ac_file" : 'X\(//\)$' \| \
28619          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28620 $as_echo X"$ac_file" |
28621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28622             s//\1/
28623             q
28624           }
28625           /^X\(\/\/\)[^/].*/{
28626             s//\1/
28627             q
28628           }
28629           /^X\(\/\/\)$/{
28630             s//\1/
28631             q
28632           }
28633           /^X\(\/\).*/{
28634             s//\1/
28635             q
28636           }
28637           s/.*/./; q'`
28638   as_dir="$ac_dir"; as_fn_mkdir_p
28639   ac_builddir=.
28640
28641 case "$ac_dir" in
28642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28643 *)
28644   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28645   # A ".." for each directory in $ac_dir_suffix.
28646   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28647   case $ac_top_builddir_sub in
28648   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28649   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28650   esac ;;
28651 esac
28652 ac_abs_top_builddir=$ac_pwd
28653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28654 # for backward compatibility:
28655 ac_top_builddir=$ac_top_build_prefix
28656
28657 case $srcdir in
28658   .)  # We are building in place.
28659     ac_srcdir=.
28660     ac_top_srcdir=$ac_top_builddir_sub
28661     ac_abs_top_srcdir=$ac_pwd ;;
28662   [\\/]* | ?:[\\/]* )  # Absolute name.
28663     ac_srcdir=$srcdir$ac_dir_suffix;
28664     ac_top_srcdir=$srcdir
28665     ac_abs_top_srcdir=$srcdir ;;
28666   *) # Relative name.
28667     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28668     ac_top_srcdir=$ac_top_build_prefix$srcdir
28669     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28670 esac
28671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28672
28673
28674   case $ac_mode in
28675   :F)
28676   #
28677   # CONFIG_FILE
28678   #
28679
28680 _ACEOF
28681
28682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28683 # If the template does not know about datarootdir, expand it.
28684 # FIXME: This hack should be removed a few years after 2.60.
28685 ac_datarootdir_hack=; ac_datarootdir_seen=
28686 ac_sed_dataroot='
28687 /datarootdir/ {
28688   p
28689   q
28690 }
28691 /@datadir@/p
28692 /@docdir@/p
28693 /@infodir@/p
28694 /@localedir@/p
28695 /@mandir@/p'
28696 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28697 *datarootdir*) ac_datarootdir_seen=yes;;
28698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28699   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28700 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28701 _ACEOF
28702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28703   ac_datarootdir_hack='
28704   s&@datadir@&$datadir&g
28705   s&@docdir@&$docdir&g
28706   s&@infodir@&$infodir&g
28707   s&@localedir@&$localedir&g
28708   s&@mandir@&$mandir&g
28709   s&\\\${datarootdir}&$datarootdir&g' ;;
28710 esac
28711 _ACEOF
28712
28713 # Neutralize VPATH when `$srcdir' = `.'.
28714 # Shell code in configure.ac might set extrasub.
28715 # FIXME: do we really want to maintain this feature?
28716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28717 ac_sed_extra="$ac_vpsub
28718 $extrasub
28719 _ACEOF
28720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28721 :t
28722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28723 s|@configure_input@|$ac_sed_conf_input|;t t
28724 s&@top_builddir@&$ac_top_builddir_sub&;t t
28725 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28726 s&@srcdir@&$ac_srcdir&;t t
28727 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28728 s&@top_srcdir@&$ac_top_srcdir&;t t
28729 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28730 s&@builddir@&$ac_builddir&;t t
28731 s&@abs_builddir@&$ac_abs_builddir&;t t
28732 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28733 $ac_datarootdir_hack
28734 "
28735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28736 if $ac_cs_awk_getline; then
28737   $AWK -f "$tmp/subs.awk"
28738 else
28739   $AWK -f "$tmp/subs.awk" | $SHELL
28740 fi >$tmp/out \
28741   || as_fn_error "could not create $ac_file" "$LINENO" 5
28742
28743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28744   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28745   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28747 which seems to be undefined.  Please make sure it is defined." >&5
28748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28749 which seems to be undefined.  Please make sure it is defined." >&2;}
28750
28751   rm -f "$tmp/stdin"
28752   case $ac_file in
28753   -) cat "$tmp/out" && rm -f "$tmp/out";;
28754   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28755   esac \
28756   || as_fn_error "could not create $ac_file" "$LINENO" 5
28757  ;;
28758   :H)
28759   #
28760   # CONFIG_HEADER
28761   #
28762   if test x"$ac_file" != x-; then
28763     {
28764       $as_echo "/* $configure_input  */" \
28765       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28766     } >"$tmp/config.h" \
28767       || as_fn_error "could not create $ac_file" "$LINENO" 5
28768     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28769       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28771     else
28772       rm -f "$ac_file"
28773       mv "$tmp/config.h" "$ac_file" \
28774         || as_fn_error "could not create $ac_file" "$LINENO" 5
28775     fi
28776   else
28777     $as_echo "/* $configure_input  */" \
28778       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28779       || as_fn_error "could not create -" "$LINENO" 5
28780   fi
28781  ;;
28782
28783   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28784 $as_echo "$as_me: executing $ac_file commands" >&6;}
28785  ;;
28786   esac
28787
28788
28789   case $ac_file$ac_mode in
28790     "as":F) chmod +x as ;;
28791     "collect-ld":F) chmod +x collect-ld ;;
28792     "nm":F) chmod +x nm ;;
28793     "default":C)
28794 case ${CONFIG_HEADERS} in
28795   *auto-host.h:config.in*)
28796   echo > cstamp-h ;;
28797 esac
28798 # Make sure all the subdirs exist.
28799 for d in $subdirs doc build common c-family
28800 do
28801     test -d $d || mkdir $d
28802 done
28803  ;;
28804
28805   esac
28806 done # for ac_tag
28807
28808
28809 as_fn_exit 0
28810 _ACEOF
28811 ac_clean_files=$ac_clean_files_save
28812
28813 test $ac_write_fail = 0 ||
28814   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28815
28816
28817 # configure is writing to config.log, and then calls config.status.
28818 # config.status does its own redirection, appending to config.log.
28819 # Unfortunately, on DOS this fails, as config.log is still kept open
28820 # by configure, so config.status won't be able to write to it; its
28821 # output is simply discarded.  So we exec the FD to /dev/null,
28822 # effectively closing config.log, so it can be properly (re)opened and
28823 # appended to by config.status.  When coming back to configure, we
28824 # need to make the FD available again.
28825 if test "$no_create" != yes; then
28826   ac_cs_success=:
28827   ac_config_status_args=
28828   test "$silent" = yes &&
28829     ac_config_status_args="$ac_config_status_args --quiet"
28830   exec 5>/dev/null
28831   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28832   exec 5>>config.log
28833   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28834   # would make configure fail if this is the last instruction.
28835   $ac_cs_success || as_fn_exit $?
28836 fi
28837 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28839 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28840 fi
28841
28842