OSDN Git Service

2012-01-05 Richard Guenther <rguenther@suse.de>
[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
641 gcc_config_arguments
642 float_h_file
643 extra_programs
644 extra_passes
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CFLAGS
707 CC_FOR_BUILD
708 inhibit_libc
709 SYSTEM_HEADER_DIR
710 ALL
711 CROSS
712 CATOBJEXT
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATALOGS
717 POSUB
718 GMSGFMT
719 XGETTEXT
720 INCINTL
721 LIBINTL_DEP
722 LIBINTL
723 USE_NLS
724 extra_opt_files
725 extra_modes_file
726 NATIVE_SYSTEM_HEADER_DIR
727 objext
728 manext
729 LIBICONV_DEP
730 LTLIBICONV
731 LIBICONV
732 LDEXP_LIB
733 EXTRA_GCC_LIBS
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 noexception_flags
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 PICFLAG_FOR_TARGET
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='option_includes
856 language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_largefile
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 enable_secureplt
898 enable_leading_mingw64_underscores
899 enable_cld
900 enable_frame_pointer
901 enable_win32_registry
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_libtool_lock
906 with_plugin_ld
907 enable_gnu_indirect_function
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 PPLLIBS
936 PPLINC
937 CLOOGLIBS
938 CLOOGINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       as_fn_error "invalid feature name: $ac_useropt"
1048     ac_useropt_orig=$ac_useropt
1049     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050     case $ac_user_opts in
1051       *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055          ac_unrecognized_sep=', ';;
1056     esac
1057     eval enable_$ac_useropt=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087   | --exec | --exe | --ex)
1088     ac_prev=exec_prefix ;;
1089   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091   | --exec=* | --exe=* | --ex=*)
1092     exec_prefix=$ac_optarg ;;
1093
1094   -gas | --gas | --ga | --g)
1095     # Obsolete; use --with-gas.
1096     with_gas=yes ;;
1097
1098   -help | --help | --hel | --he | -h)
1099     ac_init_help=long ;;
1100   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101     ac_init_help=recursive ;;
1102   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103     ac_init_help=short ;;
1104
1105   -host | --host | --hos | --ho)
1106     ac_prev=host_alias ;;
1107   -host=* | --host=* | --hos=* | --ho=*)
1108     host_alias=$ac_optarg ;;
1109
1110   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111     ac_prev=htmldir ;;
1112   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113   | --ht=*)
1114     htmldir=$ac_optarg ;;
1115
1116   -includedir | --includedir | --includedi | --included | --include \
1117   | --includ | --inclu | --incl | --inc)
1118     ac_prev=includedir ;;
1119   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120   | --includ=* | --inclu=* | --incl=* | --inc=*)
1121     includedir=$ac_optarg ;;
1122
1123   -infodir | --infodir | --infodi | --infod | --info | --inf)
1124     ac_prev=infodir ;;
1125   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126     infodir=$ac_optarg ;;
1127
1128   -libdir | --libdir | --libdi | --libd)
1129     ac_prev=libdir ;;
1130   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131     libdir=$ac_optarg ;;
1132
1133   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134   | --libexe | --libex | --libe)
1135     ac_prev=libexecdir ;;
1136   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137   | --libexe=* | --libex=* | --libe=*)
1138     libexecdir=$ac_optarg ;;
1139
1140   -localedir | --localedir | --localedi | --localed | --locale)
1141     ac_prev=localedir ;;
1142   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143     localedir=$ac_optarg ;;
1144
1145   -localstatedir | --localstatedir | --localstatedi | --localstated \
1146   | --localstate | --localstat | --localsta | --localst | --locals)
1147     ac_prev=localstatedir ;;
1148   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150     localstatedir=$ac_optarg ;;
1151
1152   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153     ac_prev=mandir ;;
1154   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155     mandir=$ac_optarg ;;
1156
1157   -nfp | --nfp | --nf)
1158     # Obsolete; use --without-fp.
1159     with_fp=no ;;
1160
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n)
1163     no_create=yes ;;
1164
1165   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167     no_recursion=yes ;;
1168
1169   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171   | --oldin | --oldi | --old | --ol | --o)
1172     ac_prev=oldincludedir ;;
1173   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176     oldincludedir=$ac_optarg ;;
1177
1178   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179     ac_prev=prefix ;;
1180   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181     prefix=$ac_optarg ;;
1182
1183   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184   | --program-pre | --program-pr | --program-p)
1185     ac_prev=program_prefix ;;
1186   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188     program_prefix=$ac_optarg ;;
1189
1190   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191   | --program-suf | --program-su | --program-s)
1192     ac_prev=program_suffix ;;
1193   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195     program_suffix=$ac_optarg ;;
1196
1197   -program-transform-name | --program-transform-name \
1198   | --program-transform-nam | --program-transform-na \
1199   | --program-transform-n | --program-transform- \
1200   | --program-transform | --program-transfor \
1201   | --program-transfo | --program-transf \
1202   | --program-trans | --program-tran \
1203   | --progr-tra | --program-tr | --program-t)
1204     ac_prev=program_transform_name ;;
1205   -program-transform-name=* | --program-transform-name=* \
1206   | --program-transform-nam=* | --program-transform-na=* \
1207   | --program-transform-n=* | --program-transform-=* \
1208   | --program-transform=* | --program-transfor=* \
1209   | --program-transfo=* | --program-transf=* \
1210   | --program-trans=* | --program-tran=* \
1211   | --progr-tra=* | --program-tr=* | --program-t=*)
1212     program_transform_name=$ac_optarg ;;
1213
1214   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215     ac_prev=pdfdir ;;
1216   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217     pdfdir=$ac_optarg ;;
1218
1219   -psdir | --psdir | --psdi | --psd | --ps)
1220     ac_prev=psdir ;;
1221   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222     psdir=$ac_optarg ;;
1223
1224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225   | -silent | --silent | --silen | --sile | --sil)
1226     silent=yes ;;
1227
1228   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229     ac_prev=sbindir ;;
1230   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231   | --sbi=* | --sb=*)
1232     sbindir=$ac_optarg ;;
1233
1234   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236   | --sharedst | --shareds | --shared | --share | --shar \
1237   | --sha | --sh)
1238     ac_prev=sharedstatedir ;;
1239   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242   | --sha=* | --sh=*)
1243     sharedstatedir=$ac_optarg ;;
1244
1245   -site | --site | --sit)
1246     ac_prev=site ;;
1247   -site=* | --site=* | --sit=*)
1248     site=$ac_optarg ;;
1249
1250   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251     ac_prev=srcdir ;;
1252   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253     srcdir=$ac_optarg ;;
1254
1255   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256   | --syscon | --sysco | --sysc | --sys | --sy)
1257     ac_prev=sysconfdir ;;
1258   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260     sysconfdir=$ac_optarg ;;
1261
1262   -target | --target | --targe | --targ | --tar | --ta | --t)
1263     ac_prev=target_alias ;;
1264   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265     target_alias=$ac_optarg ;;
1266
1267   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268     verbose=yes ;;
1269
1270   -version | --version | --versio | --versi | --vers | -V)
1271     ac_init_version=: ;;
1272
1273   -with-* | --with-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error "invalid package name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=\$ac_optarg ;;
1288
1289   -without-* | --without-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error "invalid package name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval with_$ac_useropt=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325     ;;
1326
1327   *=*)
1328     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329     # Reject names that are not valid shell variable names.
1330     case $ac_envvar in #(
1331       '' | [0-9]* | *[!_$as_cr_alnum]* )
1332       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333     esac
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354   case $enable_option_checking in
1355     no) ;;
1356     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358   esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   # Remove trailing slashes.
1369   case $ac_val in
1370     */ )
1371       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372       eval $ac_var=\$ac_val;;
1373   esac
1374   # Be sure to have absolute directory names.
1375   case $ac_val in
1376     [\\/$]* | ?:[\\/]* )  continue;;
1377     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378   esac
1379   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391   if test "x$build_alias" = x; then
1392     cross_compiling=maybe
1393     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394     If a cross compiler is detected then cross compile mode will be used." >&2
1395   elif test "x$build_alias" != "x$host_alias"; then
1396     cross_compiling=yes
1397   fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409   as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411   as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416   ac_srcdir_defaulted=yes
1417   # Try the directory containing this script, then the parent directory.
1418   ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420          X"$as_myself" : 'X\(//\)[^/]' \| \
1421          X"$as_myself" : 'X\(//\)$' \| \
1422          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)[^/].*/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\).*/{
1437             s//\1/
1438             q
1439           }
1440           s/.*/./; q'`
1441   srcdir=$ac_confdir
1442   if test ! -r "$srcdir/$ac_unique_file"; then
1443     srcdir=..
1444   fi
1445 else
1446   ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455         pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458   srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_env_${ac_var}_value=\$${ac_var}
1469   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477   # Omit some internal or obsolete options to make the list less imposing.
1478   # This message is too long to be a string in the A/UX 3.1 sh.
1479   cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490   -h, --help              display this help and exit
1491       --help=short        display options specific to this package
1492       --help=recursive    display the short help of all the included packages
1493   -V, --version           display version information and exit
1494   -q, --quiet, --silent   do not print \`checking...' messages
1495       --cache-file=FILE   cache test results in FILE [disabled]
1496   -C, --config-cache      alias for \`--cache-file=config.cache'
1497   -n, --no-create         do not create output files
1498       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501   --prefix=PREFIX         install architecture-independent files in PREFIX
1502                           [$ac_default_prefix]
1503   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                           [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514   --bindir=DIR            user executables [EPREFIX/bin]
1515   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516   --libexecdir=DIR        program executables [EPREFIX/libexec]
1517   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520   --libdir=DIR            object code libraries [EPREFIX/lib]
1521   --includedir=DIR        C header files [PREFIX/include]
1522   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525   --infodir=DIR           info documentation [DATAROOTDIR/info]
1526   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527   --mandir=DIR            man documentation [DATAROOTDIR/man]
1528   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1529   --htmldir=DIR           html documentation [DOCDIR]
1530   --dvidir=DIR            dvi documentation [DOCDIR]
1531   --pdfdir=DIR            pdf documentation [DOCDIR]
1532   --psdir=DIR             ps documentation [DOCDIR]
1533 _ACEOF
1534
1535   cat <<\_ACEOF
1536
1537 Program names:
1538   --program-prefix=PREFIX            prepend PREFIX to installed program names
1539   --program-suffix=SUFFIX            append SUFFIX to installed program names
1540   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545   --target=TARGET   configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --enable-generated-files-in-srcdir
1558                           put copies of generated files in source dir intended
1559                           for creating source tarballs for users without
1560                           texinfo bison or flex
1561   --disable-largefile     omit support for large files
1562   --enable-werror-always  enable -Werror despite compiler version
1563   --enable-checking[=LIST]
1564                           enable expensive run-time checks. With LIST, enable
1565                           only specific categories of checks. Categories are:
1566                           yes,no,all,none,release. Flags are:
1567                           assert,df,fold,gc,gcac,gimple,misc,
1568                           rtlflag,rtl,runtime,tree,valgrind,types
1569   --enable-coverage[=LEVEL]
1570                           enable compiler's code coverage collection. Use to
1571                           measure compiler performance and locate unused parts
1572                           of the compiler. With LEVEL, specify optimization.
1573                           Values are opt, noopt, default is noopt
1574   --enable-gather-detailed-mem-stats
1575                           enable detailed memory allocation stats gathering
1576   --enable-build-with-cxx build with C++ compiler instead of C compiler
1577   --enable-multilib       enable library support for multiple ABIs
1578   --enable-__cxa_atexit   enable __cxa_atexit for C++
1579   --enable-decimal-float={no,yes,bid,dpd}
1580                         enable decimal float extension to C.  Selecting 'bid'
1581                         or 'dpd' choses which decimal floating point format
1582                         to use
1583   --enable-fixed-point    enable fixed-point arithmetic extension to C
1584   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1585                           package
1586   --enable-tls            enable or disable generation of tls code overriding
1587                           the assembler check for tls support
1588   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1589                           GNU Objective-C runtime
1590   --disable-shared        don't provide a shared libgcc
1591   --enable-languages=LIST specify which front-ends to build
1592   --disable-rpath         do not hardcode runtime library paths
1593   --enable-initfini-array       use .init_array/.fini_array sections
1594   --enable-sjlj-exceptions
1595                           arrange to use setjmp/longjmp exception handling
1596   --enable-secureplt      enable -msecure-plt by default for PowerPC
1597   --enable-leading-mingw64-underscores
1598                           enable leading underscores on 64 bit mingw targets
1599   --enable-cld            enable -mcld by default for 32bit x86
1600   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1601                           x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the Registry
1604                           on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-gnu-indirect-function
1615                           enable the use of the @gnu_indirect_function to
1616                           glibc systems
1617   --enable-comdat         enable COMDAT group support
1618   --enable-gnu-unique-object
1619                           enable the use of the @gnu_unique_object ELF
1620                           extension on glibc systems
1621   --enable-linker-build-id
1622                           compiler will always pass --build-id to linker
1623   --enable-maintainer-mode
1624                           enable make rules and dependencies not useful (and
1625                           sometimes confusing) to the casual installer
1626   --enable-version-specific-runtime-libs
1627                           specify that runtime libraries should be installed
1628                           in a compiler-specific directory
1629   --enable-plugin         enable plugin support
1630   --disable-libquadmath-support
1631                           disable libquadmath support for Fortran
1632
1633 Optional Packages:
1634   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1637   --with-local-prefix=DIR specifies directory to put local include
1638   --with-gxx-include-dir=DIR
1639                           specifies directory to put g++ header files
1640   --with-cpp-install-dir=DIR
1641                           install the user visible C preprocessor in DIR
1642                           (relative to PREFIX) as well as PREFIX/bin
1643   --with-gnu-ld           arrange to work with GNU ld
1644   --with-ld               arrange to use the specified ld (full pathname)
1645   --with-demangler-in-ld  try to use demangler in GNU ld
1646   --with-gnu-as           arrange to work with GNU as
1647   --with-as               arrange to use the specified as (full pathname)
1648   --with-stabs            arrange to use stabs instead of host debug format
1649   --with-dwarf2           force the default debug format to be DWARF 2
1650   --with-native-system-header-dir=dir
1651                           use dir as the directory to look for standard
1652                           system header files in.  Defaults to /usr/include.
1653   --with-build-sysroot=sysroot
1654                           use sysroot as the system root during the build
1655   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1656   --with-specs=SPECS      add SPECS to driver command-line processing
1657   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1658   --with-bugurl=URL       Direct users to URL to report a bug
1659   --with-multilib-list    select multilibs (SH and x86-64 only)
1660   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1661   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1662   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-plugin-ld=[ARG]  specify the plugin linker
1667   --with-long-double-128  use 128-bit long double by default
1668   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1669                           the compiler
1670   --with-system-zlib      use installed libz
1671   --with-linker-hash-style={sysv,gnu,both}
1672                           specify the linker hash style
1673
1674 Some influential environment variables:
1675   CC          C compiler command
1676   CFLAGS      C compiler flags
1677   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1678               nonstandard directory <lib dir>
1679   LIBS        libraries to pass to the linker, e.g. -l<library>
1680   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1681               you have headers in a nonstandard directory <include dir>
1682   CXX         C++ compiler command
1683   CXXFLAGS    C++ compiler flags
1684   CPP         C preprocessor
1685   CXXCPP      C++ preprocessor
1686   GMPLIBS     How to link GMP
1687   GMPINC      How to find GMP include files
1688   PPLLIBS     How to link PPL
1689   PPLINC      How to find PPL include files
1690   CLOOGLIBS   How to link CLOOG
1691   CLOOGINC    How to find CLOOG include files
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702   # If there are subdirs, report their specific --help.
1703   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704     test -d "$ac_dir" ||
1705       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706       continue
1707     ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713   # A ".." for each directory in $ac_dir_suffix.
1714   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715   case $ac_top_builddir_sub in
1716   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718   esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726   .)  # We are building in place.
1727     ac_srcdir=.
1728     ac_top_srcdir=$ac_top_builddir_sub
1729     ac_abs_top_srcdir=$ac_pwd ;;
1730   [\\/]* | ?:[\\/]* )  # Absolute name.
1731     ac_srcdir=$srcdir$ac_dir_suffix;
1732     ac_top_srcdir=$srcdir
1733     ac_abs_top_srcdir=$srcdir ;;
1734   *) # Relative name.
1735     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736     ac_top_srcdir=$ac_top_build_prefix$srcdir
1737     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741     cd "$ac_dir" || { ac_status=$?; continue; }
1742     # Check for guested configure.
1743     if test -f "$ac_srcdir/configure.gnu"; then
1744       echo &&
1745       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746     elif test -f "$ac_srcdir/configure"; then
1747       echo &&
1748       $SHELL "$ac_srcdir/configure" --help=recursive
1749     else
1750       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751     fi || ac_status=$?
1752     cd "$ac_pwd" || { ac_status=$?; break; }
1753   done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758   cat <<\_ACEOF
1759 configure
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766   exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   rm -f conftest.$ac_objext
1780   if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_compile") 2>conftest.err
1788   ac_status=$?
1789   if test -s conftest.err; then
1790     grep -v '^ *+' conftest.err >conftest.er1
1791     cat conftest.er1 >&5
1792     mv -f conftest.er1 conftest.err
1793   fi
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; } && {
1796          test -z "$ac_c_werror_flag" ||
1797          test ! -s conftest.err
1798        } && test -s conftest.$ac_objext; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804         ac_retval=1
1805 fi
1806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807   return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   rm -f conftest.$ac_objext
1818   if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_compile") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && {
1834          test -z "$ac_cxx_werror_flag" ||
1835          test ! -s conftest.err
1836        } && test -s conftest.$ac_objext; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845   return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863   ac_status=$?
1864   if test -s conftest.err; then
1865     grep -v '^ *+' conftest.err >conftest.er1
1866     cat conftest.er1 >&5
1867     mv -f conftest.er1 conftest.err
1868   fi
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; } >/dev/null && {
1871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872          test ! -s conftest.err
1873        }; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879     ac_retval=1
1880 fi
1881   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882   return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898   $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904   # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   ac_header_compiler=yes
1914 else
1915   ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929   ac_header_preproc=yes
1930 else
1931   ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So?  What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939   yes:no: )
1940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944     ;;
1945   no:yes:* )
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956     ;;
1957 esac
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_link") 2>&5
1988   ac_status=$?
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991   { { case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_try") 2>&5
1998   ac_status=$?
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; }; }; then :
2001   ac_retval=0
2002 else
2003   $as_echo "$as_me: program exited with status $ac_status" >&5
2004        $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007        ac_retval=$ac_status
2008 fi
2009   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011   return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025   $as_echo_n "(cached) " >&6
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$3=yes"
2034 else
2035   eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 # computed
2051 ac_fn_c_compute_int ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   if test "$cross_compiling" = yes; then
2055     # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2063 test_array [0] = 0
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_lo=0 ac_mid=0
2071   while :; do
2072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086   ac_hi=$ac_mid; break
2087 else
2088   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2089                         if test $ac_lo -le $ac_mid; then
2090                           ac_lo= ac_hi=
2091                           break
2092                         fi
2093                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096   done
2097 else
2098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) < 0)];
2105 test_array [0] = 0
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112   ac_hi=-1 ac_mid=-1
2113   while :; do
2114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128   ac_lo=$ac_mid; break
2129 else
2130   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2131                         if test $ac_mid -le $ac_hi; then
2132                           ac_lo= ac_hi=
2133                           break
2134                         fi
2135                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138   done
2139 else
2140   ac_lo= ac_hi=
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 test_array [0] = 0
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   ac_hi=$ac_mid
2163 else
2164   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 case $ac_lo in #((
2169 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 '') ac_retval=1 ;;
2171 esac
2172   else
2173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2178 #include <stdio.h>
2179 #include <stdlib.h>
2180 int
2181 main ()
2182 {
2183
2184   FILE *f = fopen ("conftest.val", "w");
2185   if (! f)
2186     return 1;
2187   if (($2) < 0)
2188     {
2189       long int i = longval ();
2190       if (i != ($2))
2191         return 1;
2192       fprintf (f, "%ld", i);
2193     }
2194   else
2195     {
2196       unsigned long int i = ulongval ();
2197       if (i != ($2))
2198         return 1;
2199       fprintf (f, "%lu", i);
2200     }
2201   /* Do not output a trailing newline, as this causes \r\n confusion
2202      on some platforms.  */
2203   return ferror (f) || fclose (f) != 0;
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_run "$LINENO"; then :
2210   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 else
2212   ac_retval=1
2213 fi
2214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2215   conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 rm -f conftest.val
2217
2218   fi
2219   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220   return $ac_retval
2221
2222 } # ac_fn_c_compute_int
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   eval "$3=no"
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244          return 0;
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h.  */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257             return 0;
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265   eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_type
2277
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 # accordingly.
2282 ac_fn_c_find_intX_t ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   eval "$3=no"
2291      for ac_type in int$2_t 'int' 'long int' \
2292          'long long int' 'short int' 'signed char'; do
2293        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2300 test_array [0] = 0
2301
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h.  */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2315 test_array [0] = 0
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324   case $ac_type in #(
2325   int$2_t) :
2326     eval "$3=yes" ;; #(
2327   *) :
2328     eval "$3=\$ac_type" ;;
2329 esac
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334        eval as_val=\$$3
2335    if test "x$as_val" = x""no; then :
2336
2337 else
2338   break
2339 fi
2340      done
2341 fi
2342 eval ac_res=\$$3
2343                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_find_intX_t
2348
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 ac_fn_c_try_link ()
2353 {
2354   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355   rm -f conftest.$ac_objext conftest$ac_exeext
2356   if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363   (eval "$ac_link") 2>conftest.err
2364   ac_status=$?
2365   if test -s conftest.err; then
2366     grep -v '^ *+' conftest.err >conftest.er1
2367     cat conftest.er1 >&5
2368     mv -f conftest.er1 conftest.err
2369   fi
2370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371   test $ac_status = 0; } && {
2372          test -z "$ac_c_werror_flag" ||
2373          test ! -s conftest.err
2374        } && test -s conftest$ac_exeext && {
2375          test "$cross_compiling" = yes ||
2376          $as_test_x conftest$ac_exeext
2377        }; then :
2378   ac_retval=0
2379 else
2380   $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383         ac_retval=1
2384 fi
2385   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387   # interfere with the next link command; also delete a directory that is
2388   # left behind by Apple's compiler.  We do this before executing the actions.
2389   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391   return $ac_retval
2392
2393 } # ac_fn_c_try_link
2394
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_uintX_t ()
2400 {
2401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   eval "$3=no"
2408      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417 test_array [0] = 0
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424   case $ac_type in #(
2425   uint$2_t) :
2426     eval "$3=yes" ;; #(
2427   *) :
2428     eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432        eval as_val=\$$3
2433    if test "x$as_val" = x""no; then :
2434
2435 else
2436   break
2437 fi
2438      done
2439 fi
2440 eval ac_res=\$$3
2441                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_find_uintX_t
2446
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2451 {
2452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463   eval "$3=yes"
2464 else
2465   eval "$3=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_preproc
2475
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2480 {
2481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482   if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490   ac_status=$?
2491   if test -s conftest.err; then
2492     grep -v '^ *+' conftest.err >conftest.er1
2493     cat conftest.er1 >&5
2494     mv -f conftest.er1 conftest.err
2495   fi
2496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497   test $ac_status = 0; } >/dev/null && {
2498          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499          test ! -s conftest.err
2500        }; then :
2501   ac_retval=0
2502 else
2503   $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506     ac_retval=1
2507 fi
2508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509   return $ac_retval
2510
2511 } # ac_fn_cxx_try_cpp
2512
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc ()
2517 {
2518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_cxx_try_cpp "$LINENO"; then :
2529   eval "$3=yes"
2530 else
2531   eval "$3=no"
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539
2540 } # ac_fn_cxx_check_header_preproc
2541
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func ()
2546 {
2547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2557 #define $2 innocuous_$2
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560     which can conflict with char $2 (); below.
2561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562     <limits.h> exists even on freestanding compilers.  */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $2
2571
2572 /* Override any GCC internal prototype to avoid an error.
2573    Use char because int might match the return type of a GCC
2574    builtin and then its argument prototype would still apply.  */
2575 #ifdef __cplusplus
2576 extern "C"
2577 #endif
2578 char $2 ();
2579 /* The GNU C library defines this for functions which it implements
2580     to always fail with ENOSYS.  Some functions are actually named
2581     something starting with __ and the normal name is an alias.  */
2582 #if defined __stub_$2 || defined __stub___$2
2583 choke me
2584 #endif
2585
2586 int
2587 main ()
2588 {
2589 return $2 ();
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_link "$LINENO"; then :
2595   eval "$3=yes"
2596 else
2597   eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext \
2600     conftest$ac_exeext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_c_check_func
2608
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link ()
2613 {
2614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615   rm -f conftest.$ac_objext conftest$ac_exeext
2616   if { { ac_try="$ac_link"
2617 case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623   (eval "$ac_link") 2>conftest.err
2624   ac_status=$?
2625   if test -s conftest.err; then
2626     grep -v '^ *+' conftest.err >conftest.er1
2627     cat conftest.er1 >&5
2628     mv -f conftest.er1 conftest.err
2629   fi
2630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631   test $ac_status = 0; } && {
2632          test -z "$ac_cxx_werror_flag" ||
2633          test ! -s conftest.err
2634        } && test -s conftest$ac_exeext && {
2635          test "$cross_compiling" = yes ||
2636          $as_test_x conftest$ac_exeext
2637        }; then :
2638   ac_retval=0
2639 else
2640   $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643         ac_retval=1
2644 fi
2645   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647   # interfere with the next link command; also delete a directory that is
2648   # left behind by Apple's compiler.  We do this before executing the actions.
2649   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651   return $ac_retval
2652
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2657
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64.  Invocation command line was
2660
2661   $ $0 $@
2662
2663 _ACEOF
2664 exec 5>>config.log
2665 {
2666 cat <<_ASUNAME
2667 ## --------- ##
2668 ## Platform. ##
2669 ## --------- ##
2670
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2679
2680 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2681 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2684 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2685 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2686 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2687
2688 _ASUNAME
2689
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695     $as_echo "PATH: $as_dir"
2696   done
2697 IFS=$as_save_IFS
2698
2699 } >&5
2700
2701 cat >&5 <<_ACEOF
2702
2703
2704 ## ----------- ##
2705 ## Core tests. ##
2706 ## ----------- ##
2707
2708 _ACEOF
2709
2710
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2716 ac_configure_args=
2717 ac_configure_args0=
2718 ac_configure_args1=
2719 ac_must_keep_next=false
2720 for ac_pass in 1 2
2721 do
2722   for ac_arg
2723   do
2724     case $ac_arg in
2725     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727     | -silent | --silent | --silen | --sile | --sil)
2728       continue ;;
2729     *\'*)
2730       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2731     esac
2732     case $ac_pass in
2733     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734     2)
2735       as_fn_append ac_configure_args1 " '$ac_arg'"
2736       if test $ac_must_keep_next = true; then
2737         ac_must_keep_next=false # Got value, back to normal.
2738       else
2739         case $ac_arg in
2740           *=* | --config-cache | -C | -disable-* | --disable-* \
2741           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743           | -with-* | --with-* | -without-* | --without-* | --x)
2744             case "$ac_configure_args0 " in
2745               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2746             esac
2747             ;;
2748           -* ) ac_must_keep_next=true ;;
2749         esac
2750       fi
2751       as_fn_append ac_configure_args " '$ac_arg'"
2752       ;;
2753     esac
2754   done
2755 done
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2758
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log.  We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765   # Save into config.log some information that might help in debugging.
2766   {
2767     echo
2768
2769     cat <<\_ASBOX
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2773 _ASBOX
2774     echo
2775     # The following way of writing the cache mishandles newlines in values,
2776 (
2777   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2778     eval ac_val=\$$ac_var
2779     case $ac_val in #(
2780     *${as_nl}*)
2781       case $ac_var in #(
2782       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784       esac
2785       case $ac_var in #(
2786       _ | IFS | as_nl) ;; #(
2787       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788       *) { eval $ac_var=; unset $ac_var;} ;;
2789       esac ;;
2790     esac
2791   done
2792   (set) 2>&1 |
2793     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2794     *${as_nl}ac_space=\ *)
2795       sed -n \
2796         "s/'\''/'\''\\\\'\'''\''/g;
2797           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798       ;; #(
2799     *)
2800       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801       ;;
2802     esac |
2803     sort
2804 )
2805     echo
2806
2807     cat <<\_ASBOX
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2811 _ASBOX
2812     echo
2813     for ac_var in $ac_subst_vars
2814     do
2815       eval ac_val=\$$ac_var
2816       case $ac_val in
2817       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818       esac
2819       $as_echo "$ac_var='\''$ac_val'\''"
2820     done | sort
2821     echo
2822
2823     if test -n "$ac_subst_files"; then
2824       cat <<\_ASBOX
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2828 _ASBOX
2829       echo
2830       for ac_var in $ac_subst_files
2831       do
2832         eval ac_val=\$$ac_var
2833         case $ac_val in
2834         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835         esac
2836         $as_echo "$ac_var='\''$ac_val'\''"
2837       done | sort
2838       echo
2839     fi
2840
2841     if test -s confdefs.h; then
2842       cat <<\_ASBOX
2843 ## ----------- ##
2844 ## confdefs.h. ##
2845 ## ----------- ##
2846 _ASBOX
2847       echo
2848       cat confdefs.h
2849       echo
2850     fi
2851     test "$ac_signal" != 0 &&
2852       $as_echo "$as_me: caught signal $ac_signal"
2853     $as_echo "$as_me: exit $exit_status"
2854   } >&5
2855   rm -f core *.core core.conftest.* &&
2856     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2857     exit $exit_status
2858 ' 0
2859 for ac_signal in 1 2 13 15; do
2860   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 done
2862 ac_signal=0
2863
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2866
2867 $as_echo "/* confdefs.h */" > confdefs.h
2868
2869 # Predefined preprocessor variables.
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2873 _ACEOF
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2877 _ACEOF
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2893 _ACEOF
2894
2895
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2898 ac_site_file1=NONE
2899 ac_site_file2=NONE
2900 if test -n "$CONFIG_SITE"; then
2901   ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903   ac_site_file1=$prefix/share/config.site
2904   ac_site_file2=$prefix/etc/config.site
2905 else
2906   ac_site_file1=$ac_default_prefix/share/config.site
2907   ac_site_file2=$ac_default_prefix/etc/config.site
2908 fi
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 do
2911   test "x$ac_site_file" = xNONE && continue
2912   if test -r "$ac_site_file"; then
2913     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915     sed 's/^/| /' "$ac_site_file" >&5
2916     . "$ac_site_file"
2917   fi
2918 done
2919
2920 if test -r "$cache_file"; then
2921   # Some versions of bash will fail to source /dev/null (special
2922   # files actually), so we avoid doing that.
2923   if test -f "$cache_file"; then
2924     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926     case $cache_file in
2927       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928       *)                      . "./$cache_file";;
2929     esac
2930   fi
2931 else
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934   >$cache_file
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942   eval ac_new_set=\$ac_env_${ac_var}_set
2943   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944   eval ac_new_val=\$ac_env_${ac_var}_value
2945   case $ac_old_set,$ac_new_set in
2946     set,)
2947       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949       ac_cache_corrupted=: ;;
2950     ,set)
2951       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953       ac_cache_corrupted=: ;;
2954     ,);;
2955     *)
2956       if test "x$ac_old_val" != "x$ac_new_val"; then
2957         # differences in whitespace do not lead to failure.
2958         ac_old_val_w=`echo x $ac_old_val`
2959         ac_new_val_w=`echo x $ac_new_val`
2960         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963           ac_cache_corrupted=:
2964         else
2965           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967           eval $ac_var=\$ac_old_val
2968         fi
2969         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2970 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2971         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2973       fi;;
2974   esac
2975   # Pass precious variables to config.status.
2976   if test "$ac_new_set" = set; then
2977     case $ac_new_val in
2978     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979     *) ac_arg=$ac_var=$ac_new_val ;;
2980     esac
2981     case " $ac_configure_args " in
2982       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2983       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984     esac
2985   fi
2986 done
2987 if $ac_cache_corrupted; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 fi
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005
3006
3007
3008
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3010
3011
3012 gcc_version=`cat $srcdir/BASE-VER`
3013
3014 # Determine the host, build, and target systems
3015 ac_aux_dir=
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017   for ac_t in install-sh install.sh shtool; do
3018     if test -f "$ac_dir/$ac_t"; then
3019       ac_aux_dir=$ac_dir
3020       ac_install_sh="$ac_aux_dir/$ac_t -c"
3021       break 2
3022     fi
3023   done
3024 done
3025 if test -z "$ac_aux_dir"; then
3026   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 fi
3028
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3036
3037
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3059 *-*-*) ;;
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3061 esac
3062 build=$ac_cv_build
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_build
3065 shift
3066 build_cpu=$1
3067 build_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 build_os=$*
3072 IFS=$ac_save_IFS
3073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test "x$host_alias" = x; then
3082   ac_cv_host=$ac_cv_build
3083 else
3084   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3086 fi
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3091 case $ac_cv_host in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3094 esac
3095 host=$ac_cv_host
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_host
3098 shift
3099 host_cpu=$1
3100 host_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 host_os=$*
3105 IFS=$ac_save_IFS
3106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if test "x$target_alias" = x; then
3115   ac_cv_target=$ac_cv_host
3116 else
3117   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 esac
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_target
3131 shift
3132 target_cpu=$1
3133 target_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 target_os=$*
3138 IFS=$ac_save_IFS
3139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145   test "$program_prefix$program_suffix$program_transform_name" = \
3146     NONENONEs,x,x, &&
3147   program_prefix=${target_alias}-
3148
3149 # Determine the noncanonical target name, for directory use.
3150  case ${build_alias} in
3151   "") build_noncanonical=${build} ;;
3152   *) build_noncanonical=${build_alias} ;;
3153 esac
3154
3155  case ${host_alias} in
3156   "") host_noncanonical=${build_noncanonical} ;;
3157   *) host_noncanonical=${host_alias} ;;
3158 esac
3159
3160  case ${target_alias} in
3161   "") target_noncanonical=${host_noncanonical} ;;
3162   *) target_noncanonical=${target_alias} ;;
3163 esac
3164
3165
3166
3167
3168 # Determine the target- and build-specific subdirectories
3169
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # finishes. So:
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3178
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3181
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184   withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 else
3186   build_libsubdir="$build_subdir"
3187 fi
3188
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191    || test -d $srcdir/../host-${host_noncanonical}; then
3192   host_subdir="host-${host_noncanonical}"
3193 else
3194   host_subdir=.
3195 fi
3196 # No prefix.
3197 target_subdir=${target_noncanonical}
3198
3199
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s,x,x', remove it if useless.
3208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3210
3211
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3216 # is true:
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224     library_path_setting="contains current directory"
3225     ;;
3226   *)
3227     library_path_setting="ok"
3228     ;;
3229 esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3233 as_fn_error "
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again." "$LINENO" 5
3237 fi
3238
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250     gcc_exec_prefix_setting="contains current directory"
3251     ;;
3252   *)
3253     gcc_exec_prefix_setting="ok"
3254     ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 as_fn_error "
3260 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # -----------
3266 # Directories
3267 # -----------
3268
3269 # Specify the local prefix
3270 local_prefix=
3271
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274   withval=$with_local_prefix; case "${withval}" in
3275 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 no)     ;;
3277 *)      local_prefix=$with_local_prefix ;;
3278 esac
3279 fi
3280
3281
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284         local_prefix=/usr/local
3285 fi
3286
3287 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir=
3291 # Specify the g++ header file directory
3292
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295   withval=$with_gxx_include_dir; case "${withval}" in
3296 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 no)     ;;
3298 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3299 esac
3300 fi
3301
3302
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x${gcc_gxx_include_dir} = x; then
3305   if test x${enable_version_specific_runtime_libs} = xyes; then
3306     gcc_gxx_include_dir='${libsubdir}/include/c++'
3307   else
3308     libstdcxx_incdir='include/c++/$(version)'
3309     if test x$host != x$target; then
3310        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311     fi
3312     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3313   fi
3314 fi
3315
3316
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3320   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x$withval != xno; then
3322   cpp_install_dir=$withval
3323 fi
3324 fi
3325
3326
3327 # We would like to our source tree to be readonly.  However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3331 # just that.
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335     # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3338 else
3339   generated_files_in_srcdir=no
3340 fi
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3345
3346 if test "$generated_files_in_srcdir" = "yes"; then
3347   GENINSRC=''
3348 else
3349   GENINSRC='#'
3350 fi
3351
3352
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3356
3357 # With GNU ld
3358
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3362 else
3363   gnu_ld_flag=no
3364 fi
3365
3366
3367 # With pre-defined ld
3368
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3372 fi
3373
3374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3375   if test ! -x "$DEFAULT_LINKER"; then
3376     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3378     gnu_ld_flag=yes
3379   fi
3380
3381 cat >>confdefs.h <<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3383 _ACEOF
3384
3385 fi
3386
3387 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3388
3389 cat >>confdefs.h <<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3391 _ACEOF
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3397   if test x"$gnu_ld_flag" = x"no"; then
3398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3400   else
3401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3403   fi
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409 # With demangler in GNU ld
3410
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3414 else
3415   demangler_in_ld=yes
3416 fi
3417
3418
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3422
3423 # With GNU as
3424
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3428 else
3429   gas_flag=no
3430 fi
3431
3432
3433
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3437 fi
3438
3439 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3440   if test ! -x "$DEFAULT_ASSEMBLER"; then
3441     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3443     gas_flag=yes
3444   fi
3445
3446 cat >>confdefs.h <<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3448 _ACEOF
3449
3450 fi
3451
3452 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3456 _ACEOF
3457
3458
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462   if test x"$gas_flag" = x"no"; then
3463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465   else
3466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3468   fi
3469 else
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474 # ---------------
3475 # Find C compiler
3476 # ---------------
3477
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3482 #
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3486
3487 # Find the native compiler
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$CC"; then
3502   ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$ac_cv_prog_CC"; then
3533   ac_ct_CC=$CC
3534   # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   if test -n "$ac_ct_CC"; then
3542   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551     ac_cv_prog_ac_ct_CC="gcc"
3552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556   done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570   if test "x$ac_ct_CC" = x; then
3571     CC=""
3572   else
3573     case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579     CC=$ac_ct_CC
3580   fi
3581 else
3582   CC="$ac_cv_prog_CC"
3583 fi
3584
3585 if test -z "$CC"; then
3586           if test -n "$ac_tool_prefix"; then
3587     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   if test -n "$CC"; then
3595   ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602     for ac_exec_ext in '' $ac_executable_extensions; do
3603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604     ac_cv_prog_CC="${ac_tool_prefix}cc"
3605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606     break 2
3607   fi
3608 done
3609   done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623
3624   fi
3625 fi
3626 if test -z "$CC"; then
3627   # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if test -n "$CC"; then
3635   ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637   ac_prog_rejected=no
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643     for ac_exec_ext in '' $ac_executable_extensions; do
3644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646        ac_prog_rejected=yes
3647        continue
3648      fi
3649     ac_cv_prog_CC="cc"
3650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654   done
3655 IFS=$as_save_IFS
3656
3657 if test $ac_prog_rejected = yes; then
3658   # We found a bogon in the path, so make sure we never use it.
3659   set dummy $ac_cv_prog_CC
3660   shift
3661   if test $# != 0; then
3662     # We chose a different compiler from the bogus one.
3663     # However, it has the same basename, so the bogon will be chosen
3664     # first if we set CC to just the basename; use the full file name.
3665     shift
3666     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667   fi
3668 fi
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 if test -z "$CC"; then
3683   if test -n "$ac_tool_prefix"; then
3684   for ac_prog in cl.exe
3685   do
3686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   if test -n "$CC"; then
3694   ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701     for ac_exec_ext in '' $ac_executable_extensions; do
3702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705     break 2
3706   fi
3707 done
3708   done
3709 IFS=$as_save_IFS
3710
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722
3723     test -n "$CC" && break
3724   done
3725 fi
3726 if test -z "$CC"; then
3727   ac_ct_CC=$CC
3728   for ac_prog in cl.exe
3729 do
3730   # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   if test -n "$ac_ct_CC"; then
3738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745     for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_ac_ct_CC="$ac_prog"
3748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752   done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767   test -n "$ac_ct_CC" && break
3768 done
3769
3770   if test "x$ac_ct_CC" = x; then
3771     CC=""
3772   else
3773     case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779     CC=$ac_ct_CC
3780   fi
3781 fi
3782
3783 fi
3784
3785
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3790
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796   { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804   ac_status=$?
3805   if test -s conftest.err; then
3806     sed '10a\
3807 ... rest of stderr output deleted ...
3808          10q' conftest.err >conftest.er1
3809     cat conftest.er1 >&5
3810     rm -f conftest.er1 conftest.err
3811   fi
3812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813   test $ac_status = 0; }
3814 done
3815
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3841 do
3842   case $ac_file in
3843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845   esac
3846 done
3847 rm -f $ac_rmfiles
3848
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856   (eval "$ac_link_default") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859   test $ac_status = 0; }; then :
3860   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3866 do
3867   test -f "$ac_file" || continue
3868   case $ac_file in
3869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870         ;;
3871     [ab].out )
3872         # We found the default executable, but exeext='' is most
3873         # certainly right.
3874         break;;
3875     *.* )
3876         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877         then :; else
3878            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879         fi
3880         # We set ac_cv_exeext here because the later test for it is not
3881         # safe: cross compilers may not add the suffix if given an `-o'
3882         # argument, so we may need to know it at that point already.
3883         # Even if this section looks crufty: it has the advantage of
3884         # actually working.
3885         break;;
3886     * )
3887         break;;
3888   esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3891
3892 else
3893   ac_file=''
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898   $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3906 fi
3907 ac_exeext=$ac_cv_exeext
3908
3909 # Check that the compiler produces executables we can run.  If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915   if { ac_try='./$ac_file'
3916   { { case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922   (eval "$ac_try") 2>&5
3923   ac_status=$?
3924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925   test $ac_status = 0; }; }; then
3926     cross_compiling=no
3927   else
3928     if test "$cross_compiling" = maybe; then
3929         cross_compiling=yes
3930     else
3931         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3936     fi
3937   fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3941
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run.  If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960   (eval "$ac_link") 2>&5
3961   ac_status=$?
3962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963   test $ac_status = 0; }; then :
3964   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969   test -f "$ac_file" || continue
3970   case $ac_file in
3971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973           break;;
3974     * ) break;;
3975   esac
3976 done
3977 else
3978   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3982 fi
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014   (eval "$ac_compile") 2>&5
4015   ac_status=$?
4016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017   test $ac_status = 0; }; then :
4018   for ac_file in conftest.o conftest.obj conftest.*; do
4019   test -f "$ac_file" || continue;
4020   case $ac_file in
4021     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023        break;;
4024   esac
4025 done
4026 else
4027   $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details." "$LINENO" 5; }
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044   $as_echo_n "(cached) " >&6
4045 else
4046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048
4049 int
4050 main ()
4051 {
4052 #ifndef __GNUC__
4053        choke me
4054 #endif
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061   ac_compiler_gnu=yes
4062 else
4063   ac_compiler_gnu=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072   GCC=yes
4073 else
4074   GCC=
4075 fi
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   ac_save_c_werror_flag=$ac_c_werror_flag
4084    ac_c_werror_flag=yes
4085    ac_cv_prog_cc_g=no
4086    CFLAGS="-g"
4087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h.  */
4089
4090 int
4091 main ()
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099   ac_cv_prog_cc_g=yes
4100 else
4101   CFLAGS=""
4102       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114
4115 else
4116   ac_c_werror_flag=$ac_save_c_werror_flag
4117          CFLAGS="-g"
4118          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h.  */
4120
4121 int
4122 main ()
4123 {
4124
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130   ac_cv_prog_cc_g=yes
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137    ac_c_werror_flag=$ac_save_c_werror_flag
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142   CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144   if test "$GCC" = yes; then
4145     CFLAGS="-g -O2"
4146   else
4147     CFLAGS="-g"
4148   fi
4149 else
4150   if test "$GCC" = yes; then
4151     CFLAGS="-O2"
4152   else
4153     CFLAGS=
4154   fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173      char **p;
4174      int i;
4175 {
4176   return p[i];
4177 }
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4179 {
4180   char *s;
4181   va_list v;
4182   va_start (v,p);
4183   s = g (p, va_arg (v,int));
4184   va_end (v);
4185   return s;
4186 }
4187
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4189    function prototypes and stuff, but not '\xHH' hex character constants.
4190    These don't provoke an error unfortunately, instead are silently treated
4191    as 'x'.  The following induces an error, until -std is added to get
4192    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4193    array size at least.  It's necessary to write '\x00'==0 to get something
4194    that's true only with -std.  */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198    inside strings and character constants.  */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4208 int
4209 main ()
4210 {
4211 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 do
4219   CC="$ac_save_CC $ac_arg"
4220   if ac_fn_c_try_compile "$LINENO"; then :
4221   ac_cv_prog_cc_c89=$ac_arg
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext
4224   test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4228
4229 fi
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4232   x)
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235   xno)
4236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4238   *)
4239     CC="$CC $ac_cv_prog_cc_c89"
4240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 if test "x$CC" != xcc; then
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 fi
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287   (eval "$ac_try") 2>&5
4288   ac_status=$?
4289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290   test $ac_status = 0; } &&
4291    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300   test $ac_status = 0; };
4301 then
4302   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303   if test "x$CC" != xcc; then
4304     # Test first that cc exists at all.
4305     if { ac_try='cc -c conftest.$ac_ext >&5'
4306   { { case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312   (eval "$ac_try") 2>&5
4313   ac_status=$?
4314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315   test $ac_status = 0; }; }; then
4316       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317       rm -f conftest2.*
4318       if { { case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324   (eval "$ac_try") 2>&5
4325   ac_status=$?
4326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327   test $ac_status = 0; } &&
4328          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337   test $ac_status = 0; };
4338       then
4339         # cc works too.
4340         :
4341       else
4342         # cc exists but doesn't like -o.
4343         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344       fi
4345     fi
4346   fi
4347 else
4348   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 fi
4350 rm -f core conftest*
4351
4352 fi
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4361
4362 fi
4363
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir=`cd $ac_aux_dir && pwd`
4366
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4369 set dummy $CC
4370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373    # Losing compiler, so override with the script.
4374    # FIXME: It is wrong to rewrite CC.
4375    # But if we don't then we get into trouble of one sort or another.
4376    # A longer-term fix would be to have automake use am__CC in this case,
4377    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378    CC="$am_aux_dir/compile $CC"
4379 fi
4380
4381
4382 ac_ext=cpp
4383 ac_cpp='$CXXCPP $CPPFLAGS'
4384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388   if test -n "$CCC"; then
4389     CXX=$CCC
4390   else
4391     if test -n "$ac_tool_prefix"; then
4392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4393   do
4394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$CXX"; then
4402   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416   done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CXX=$ac_cv_prog_CXX
4422 if test -n "$CXX"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431     test -n "$CXX" && break
4432   done
4433 fi
4434 if test -z "$CXX"; then
4435   ac_ct_CXX=$CXX
4436   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4437 do
4438   # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   if test -n "$ac_ct_CXX"; then
4446   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453     for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_ac_ct_CXX="$ac_prog"
4456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460   done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475   test -n "$ac_ct_CXX" && break
4476 done
4477
4478   if test "x$ac_ct_CXX" = x; then
4479     CXX="g++"
4480   else
4481     case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487     CXX=$ac_ct_CXX
4488   fi
4489 fi
4490
4491   fi
4492 fi
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 for ac_option in --version -v -V -qversion; do
4498   { { ac_try="$ac_compiler $ac_option >&5"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506   ac_status=$?
4507   if test -s conftest.err; then
4508     sed '10a\
4509 ... rest of stderr output deleted ...
4510          10q' conftest.err >conftest.er1
4511     cat conftest.er1 >&5
4512     rm -f conftest.er1 conftest.err
4513   fi
4514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515   test $ac_status = 0; }
4516 done
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h.  */
4525
4526 int
4527 main ()
4528 {
4529 #ifndef __GNUC__
4530        choke me
4531 #endif
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538   ac_compiler_gnu=yes
4539 else
4540   ac_compiler_gnu=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4549   GXX=yes
4550 else
4551   GXX=
4552 fi
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561    ac_cxx_werror_flag=yes
4562    ac_cv_prog_cxx_g=no
4563    CXXFLAGS="-g"
4564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576   ac_cv_prog_cxx_g=yes
4577 else
4578   CXXFLAGS=""
4579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581
4582 int
4583 main ()
4584 {
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4591
4592 else
4593   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594          CXXFLAGS="-g"
4595          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h.  */
4597
4598 int
4599 main ()
4600 {
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607   ac_cv_prog_cxx_g=yes
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619   CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621   if test "$GXX" = yes; then
4622     CXXFLAGS="-g -O2"
4623   else
4624     CXXFLAGS="-g"
4625   fi
4626 else
4627   if test "$GXX" = yes; then
4628     CXXFLAGS="-O2"
4629   else
4630     CXXFLAGS=
4631   fi
4632 fi
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639
4640
4641
4642 if test -n "$ac_tool_prefix"; then
4643   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$GNATBIND"; then
4651   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 fi
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682   ac_ct_GNATBIND=$GNATBIND
4683   # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if test -n "$ac_ct_GNATBIND"; then
4691   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 else
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719   if test "x$ac_ct_GNATBIND" = x; then
4720     GNATBIND="no"
4721   else
4722     case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728     GNATBIND=$ac_ct_GNATBIND
4729   fi
4730 else
4731   GNATBIND="$ac_cv_prog_GNATBIND"
4732 fi
4733
4734 if test -n "$ac_tool_prefix"; then
4735   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$GNATMAKE"; then
4743   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 fi
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774   ac_ct_GNATMAKE=$GNATMAKE
4775   # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   if test -n "$ac_ct_GNATMAKE"; then
4783   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797   done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811   if test "x$ac_ct_GNATMAKE" = x; then
4812     GNATMAKE="no"
4813   else
4814     case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820     GNATMAKE=$ac_ct_GNATMAKE
4821   fi
4822 else
4823   GNATMAKE="$ac_cv_prog_GNATMAKE"
4824 fi
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4833 EOF
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file.  So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845   acx_cv_cc_gcc_supports_ada=yes
4846 fi
4847 rm -f conftest.*
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851
4852 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853   have_gnat=yes
4854 else
4855   have_gnat=no
4856 fi
4857
4858
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4861   NO_MINUS_C_MINUS_O=yes
4862 else
4863   OUTPUT_OPTION='-o $@'
4864 fi
4865
4866
4867
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4870 case "$CC" in
4871   */prev-gcc/xgcc*) ;;
4872   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4873 esac
4874
4875
4876 # Determine PICFLAG for target gnatlib.
4877
4878
4879
4880
4881 case "${target}" in
4882     # PIC is the default on some targets or must not be used.
4883     *-*-darwin*)
4884         # PIC is the default on this platform
4885         # Common symbols not allowed in MH_DYLIB files
4886         PICFLAG_FOR_TARGET=-fno-common
4887         ;;
4888     alpha*-dec-osf5*)
4889         # PIC is the default.
4890         ;;
4891     hppa*64*-*-hpux*)
4892         # PIC is the default for 64-bit PA HP-UX.
4893         ;;
4894     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4895         ;;
4896     i[34567]86-*-interix3*)
4897         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898         # Instead, we relocate shared libraries at runtime.
4899         ;;
4900     i[34567]86-*-nto-qnx*)
4901         # QNX uses GNU C++, but need to define -shared option too, otherwise
4902         # it will coredump.
4903         PICFLAG_FOR_TARGET='-fPIC -shared'
4904         ;;
4905     i[34567]86-pc-msdosdjgpp*)
4906         # DJGPP does not support shared libraries at all.
4907         ;;
4908     ia64*-*-hpux*)
4909         # On IA64 HP-UX, PIC is the default but the pic flag
4910         # sets the default TLS model and affects inlining.
4911         PICFLAG_FOR_TARGET=-fPIC
4912         ;;
4913     mips-sgi-irix6*)
4914         # PIC is the default.
4915         ;;
4916     rs6000-ibm-aix* | powerpc-ibm-aix*)
4917         # All AIX code is PIC.
4918         ;;
4919
4920     # Some targets support both -fPIC and -fpic, but prefer the latter.
4921     # FIXME: Why?
4922     i[34567]86-*-* | x86_64-*-*)
4923         PICFLAG_FOR_TARGET=-fpic
4924         ;;
4925     m68k-*-*)
4926         PICFLAG_FOR_TARGET=-fpic
4927         ;;
4928     # FIXME: Override -fPIC default in libgcc only?
4929     sh-*-linux* | sh[2346lbe]*-*-linux*)
4930         PICFLAG_FOR_TARGET=-fpic
4931         ;;
4932     # FIXME: Simplify to sh*-*-netbsd*?
4933     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4934       sh64-*-netbsd* | sh64l*-*-netbsd*)
4935         PICFLAG_FOR_TARGET=-fpic
4936         ;;
4937     # Default to -fPIC unless specified otherwise.
4938     *)
4939         PICFLAG_FOR_TARGET=-fPIC
4940         ;;
4941 esac
4942
4943 # If the user explicitly uses -fpic/-fPIC, keep that.
4944 case "${CFLAGS_FOR_TARGET}" in
4945     *-fpic*)
4946         PICFLAG_FOR_TARGET=-fpic
4947         ;;
4948     *-fPIC*)
4949         PICFLAG_FOR_TARGET=-fPIC
4950         ;;
4951 esac
4952
4953
4954
4955 # -------------------------
4956 # Check C compiler features
4957 # -------------------------
4958
4959
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4967 # On Suns, sometimes $CPP names a directory.
4968 if test -n "$CPP" && test -d "$CPP"; then
4969   CPP=
4970 fi
4971 if test -z "$CPP"; then
4972   if test "${ac_cv_prog_CPP+set}" = set; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975       # Double quotes because CPP needs to be expanded
4976     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4977     do
4978       ac_preproc_ok=false
4979 for ac_c_preproc_warn_flag in '' yes
4980 do
4981   # Use a header file that comes with gcc, so configuring glibc
4982   # with a fresh cross-compiler works.
4983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984   # <limits.h> exists even on freestanding compilers.
4985   # On the NeXT, cc -E runs the code through the compiler's parser,
4986   # not just through cpp. "Syntax error" is here to catch this case.
4987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h.  */
4989 #ifdef __STDC__
4990 # include <limits.h>
4991 #else
4992 # include <assert.h>
4993 #endif
4994                      Syntax error
4995 _ACEOF
4996 if ac_fn_c_try_cpp "$LINENO"; then :
4997
4998 else
4999   # Broken: fails on valid input.
5000 continue
5001 fi
5002 rm -f conftest.err conftest.$ac_ext
5003
5004   # OK, works on sane cases.  Now check whether nonexistent headers
5005   # can be detected and how.
5006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h.  */
5008 #include <ac_nonexistent.h>
5009 _ACEOF
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5011   # Broken: success on invalid input.
5012 continue
5013 else
5014   # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5017 fi
5018 rm -f conftest.err conftest.$ac_ext
5019
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then :
5024   break
5025 fi
5026
5027     done
5028     ac_cv_prog_CPP=$CPP
5029
5030 fi
5031   CPP=$ac_cv_prog_CPP
5032 else
5033   ac_cv_prog_CPP=$CPP
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5036 $as_echo "$CPP" >&6; }
5037 ac_preproc_ok=false
5038 for ac_c_preproc_warn_flag in '' yes
5039 do
5040   # Use a header file that comes with gcc, so configuring glibc
5041   # with a fresh cross-compiler works.
5042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043   # <limits.h> exists even on freestanding compilers.
5044   # On the NeXT, cc -E runs the code through the compiler's parser,
5045   # not just through cpp. "Syntax error" is here to catch this case.
5046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h.  */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053                      Syntax error
5054 _ACEOF
5055 if ac_fn_c_try_cpp "$LINENO"; then :
5056
5057 else
5058   # Broken: fails on valid input.
5059 continue
5060 fi
5061 rm -f conftest.err conftest.$ac_ext
5062
5063   # OK, works on sane cases.  Now check whether nonexistent headers
5064   # can be detected and how.
5065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h.  */
5067 #include <ac_nonexistent.h>
5068 _ACEOF
5069 if ac_fn_c_try_cpp "$LINENO"; then :
5070   # Broken: success on invalid input.
5071 continue
5072 else
5073   # Passes both tests.
5074 ac_preproc_ok=:
5075 break
5076 fi
5077 rm -f conftest.err conftest.$ac_ext
5078
5079 done
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then :
5083
5084 else
5085   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5088 See \`config.log' for more details." "$LINENO" 5; }
5089 fi
5090
5091 ac_ext=c
5092 ac_cpp='$CPP $CPPFLAGS'
5093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5100 if test "${ac_cv_path_GREP+set}" = set; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103   if test -z "$GREP"; then
5104   ac_path_GREP_found=false
5105   # Loop through the user's path and test for each of PROGNAME-LIST
5106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111     for ac_prog in grep ggrep; do
5112     for ac_exec_ext in '' $ac_executable_extensions; do
5113       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5114       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5115 # Check for GNU ac_path_GREP and select it if it is found.
5116   # Check for GNU $ac_path_GREP
5117 case `"$ac_path_GREP" --version 2>&1` in
5118 *GNU*)
5119   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5120 *)
5121   ac_count=0
5122   $as_echo_n 0123456789 >"conftest.in"
5123   while :
5124   do
5125     cat "conftest.in" "conftest.in" >"conftest.tmp"
5126     mv "conftest.tmp" "conftest.in"
5127     cp "conftest.in" "conftest.nl"
5128     $as_echo 'GREP' >> "conftest.nl"
5129     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5130     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5131     as_fn_arith $ac_count + 1 && ac_count=$as_val
5132     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5133       # Best one so far, save it but keep looking for a better one
5134       ac_cv_path_GREP="$ac_path_GREP"
5135       ac_path_GREP_max=$ac_count
5136     fi
5137     # 10*(2^10) chars as input seems more than enough
5138     test $ac_count -gt 10 && break
5139   done
5140   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 esac
5142
5143       $ac_path_GREP_found && break 3
5144     done
5145   done
5146   done
5147 IFS=$as_save_IFS
5148   if test -z "$ac_cv_path_GREP"; then
5149     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150   fi
5151 else
5152   ac_cv_path_GREP=$GREP
5153 fi
5154
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5157 $as_echo "$ac_cv_path_GREP" >&6; }
5158  GREP="$ac_cv_path_GREP"
5159
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5162 $as_echo_n "checking for egrep... " >&6; }
5163 if test "${ac_cv_path_EGREP+set}" = set; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5167    then ac_cv_path_EGREP="$GREP -E"
5168    else
5169      if test -z "$EGREP"; then
5170   ac_path_EGREP_found=false
5171   # Loop through the user's path and test for each of PROGNAME-LIST
5172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5174 do
5175   IFS=$as_save_IFS
5176   test -z "$as_dir" && as_dir=.
5177     for ac_prog in egrep; do
5178     for ac_exec_ext in '' $ac_executable_extensions; do
5179       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5180       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5181 # Check for GNU ac_path_EGREP and select it if it is found.
5182   # Check for GNU $ac_path_EGREP
5183 case `"$ac_path_EGREP" --version 2>&1` in
5184 *GNU*)
5185   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5186 *)
5187   ac_count=0
5188   $as_echo_n 0123456789 >"conftest.in"
5189   while :
5190   do
5191     cat "conftest.in" "conftest.in" >"conftest.tmp"
5192     mv "conftest.tmp" "conftest.in"
5193     cp "conftest.in" "conftest.nl"
5194     $as_echo 'EGREP' >> "conftest.nl"
5195     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5196     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5197     as_fn_arith $ac_count + 1 && ac_count=$as_val
5198     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5199       # Best one so far, save it but keep looking for a better one
5200       ac_cv_path_EGREP="$ac_path_EGREP"
5201       ac_path_EGREP_max=$ac_count
5202     fi
5203     # 10*(2^10) chars as input seems more than enough
5204     test $ac_count -gt 10 && break
5205   done
5206   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207 esac
5208
5209       $ac_path_EGREP_found && break 3
5210     done
5211   done
5212   done
5213 IFS=$as_save_IFS
5214   if test -z "$ac_cv_path_EGREP"; then
5215     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5216   fi
5217 else
5218   ac_cv_path_EGREP=$EGREP
5219 fi
5220
5221    fi
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5224 $as_echo "$ac_cv_path_EGREP" >&6; }
5225  EGREP="$ac_cv_path_EGREP"
5226
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5229 $as_echo_n "checking for ANSI C header files... " >&6; }
5230 if test "${ac_cv_header_stdc+set}" = set; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h.  */
5235 #include <stdlib.h>
5236 #include <stdarg.h>
5237 #include <string.h>
5238 #include <float.h>
5239
5240 int
5241 main ()
5242 {
5243
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249   ac_cv_header_stdc=yes
5250 else
5251   ac_cv_header_stdc=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254
5255 if test $ac_cv_header_stdc = yes; then
5256   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h.  */
5259 #include <string.h>
5260
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263   $EGREP "memchr" >/dev/null 2>&1; then :
5264
5265 else
5266   ac_cv_header_stdc=no
5267 fi
5268 rm -f conftest*
5269
5270 fi
5271
5272 if test $ac_cv_header_stdc = yes; then
5273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h.  */
5276 #include <stdlib.h>
5277
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280   $EGREP "free" >/dev/null 2>&1; then :
5281
5282 else
5283   ac_cv_header_stdc=no
5284 fi
5285 rm -f conftest*
5286
5287 fi
5288
5289 if test $ac_cv_header_stdc = yes; then
5290   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291   if test "$cross_compiling" = yes; then :
5292   :
5293 else
5294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h.  */
5296 #include <ctype.h>
5297 #include <stdlib.h>
5298 #if ((' ' & 0x0FF) == 0x020)
5299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5301 #else
5302 # define ISLOWER(c) \
5303                    (('a' <= (c) && (c) <= 'i') \
5304                      || ('j' <= (c) && (c) <= 'r') \
5305                      || ('s' <= (c) && (c) <= 'z'))
5306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5307 #endif
5308
5309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5310 int
5311 main ()
5312 {
5313   int i;
5314   for (i = 0; i < 256; i++)
5315     if (XOR (islower (i), ISLOWER (i))
5316         || toupper (i) != TOUPPER (i))
5317       return 2;
5318   return 0;
5319 }
5320 _ACEOF
5321 if ac_fn_c_try_run "$LINENO"; then :
5322
5323 else
5324   ac_cv_header_stdc=no
5325 fi
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327   conftest.$ac_objext conftest.beam conftest.$ac_ext
5328 fi
5329
5330 fi
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5333 $as_echo "$ac_cv_header_stdc" >&6; }
5334 if test $ac_cv_header_stdc = yes; then
5335
5336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5337
5338 fi
5339
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5342                   inttypes.h stdint.h unistd.h
5343 do :
5344   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5346 "
5347 eval as_val=\$$as_ac_Header
5348    if test "x$as_val" = x""yes; then :
5349   cat >>confdefs.h <<_ACEOF
5350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5351 _ACEOF
5352
5353 fi
5354
5355 done
5356
5357
5358
5359   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5360 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5361   MINIX=yes
5362 else
5363   MINIX=
5364 fi
5365
5366
5367   if test "$MINIX" = yes; then
5368
5369 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5370
5371
5372 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5373
5374
5375 $as_echo "#define _MINIX 1" >>confdefs.h
5376
5377   fi
5378
5379
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5382 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h.  */
5387
5388 #         define __EXTENSIONS__ 1
5389           $ac_includes_default
5390 int
5391 main ()
5392 {
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399   ac_cv_safe_to_define___extensions__=yes
5400 else
5401   ac_cv_safe_to_define___extensions__=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5406 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5407   test $ac_cv_safe_to_define___extensions__ = yes &&
5408     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5409
5410   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5411
5412   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5413
5414   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5415
5416   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5417
5418
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5425 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5426 # On Suns, sometimes $CPP names a directory.
5427 if test -n "$CPP" && test -d "$CPP"; then
5428   CPP=
5429 fi
5430 if test -z "$CPP"; then
5431   if test "${ac_cv_prog_CPP+set}" = set; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434       # Double quotes because CPP needs to be expanded
5435     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5436     do
5437       ac_preproc_ok=false
5438 for ac_c_preproc_warn_flag in '' yes
5439 do
5440   # Use a header file that comes with gcc, so configuring glibc
5441   # with a fresh cross-compiler works.
5442   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443   # <limits.h> exists even on freestanding compilers.
5444   # On the NeXT, cc -E runs the code through the compiler's parser,
5445   # not just through cpp. "Syntax error" is here to catch this case.
5446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 #ifdef __STDC__
5449 # include <limits.h>
5450 #else
5451 # include <assert.h>
5452 #endif
5453                      Syntax error
5454 _ACEOF
5455 if ac_fn_c_try_cpp "$LINENO"; then :
5456
5457 else
5458   # Broken: fails on valid input.
5459 continue
5460 fi
5461 rm -f conftest.err conftest.$ac_ext
5462
5463   # OK, works on sane cases.  Now check whether nonexistent headers
5464   # can be detected and how.
5465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h.  */
5467 #include <ac_nonexistent.h>
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5470   # Broken: success on invalid input.
5471 continue
5472 else
5473   # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5476 fi
5477 rm -f conftest.err conftest.$ac_ext
5478
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then :
5483   break
5484 fi
5485
5486     done
5487     ac_cv_prog_CPP=$CPP
5488
5489 fi
5490   CPP=$ac_cv_prog_CPP
5491 else
5492   ac_cv_prog_CPP=$CPP
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5495 $as_echo "$CPP" >&6; }
5496 ac_preproc_ok=false
5497 for ac_c_preproc_warn_flag in '' yes
5498 do
5499   # Use a header file that comes with gcc, so configuring glibc
5500   # with a fresh cross-compiler works.
5501   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5502   # <limits.h> exists even on freestanding compilers.
5503   # On the NeXT, cc -E runs the code through the compiler's parser,
5504   # not just through cpp. "Syntax error" is here to catch this case.
5505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h.  */
5507 #ifdef __STDC__
5508 # include <limits.h>
5509 #else
5510 # include <assert.h>
5511 #endif
5512                      Syntax error
5513 _ACEOF
5514 if ac_fn_c_try_cpp "$LINENO"; then :
5515
5516 else
5517   # Broken: fails on valid input.
5518 continue
5519 fi
5520 rm -f conftest.err conftest.$ac_ext
5521
5522   # OK, works on sane cases.  Now check whether nonexistent headers
5523   # can be detected and how.
5524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526 #include <ac_nonexistent.h>
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5529   # Broken: success on invalid input.
5530 continue
5531 else
5532   # Passes both tests.
5533 ac_preproc_ok=:
5534 break
5535 fi
5536 rm -f conftest.err conftest.$ac_ext
5537
5538 done
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then :
5542
5543 else
5544   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5546 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5547 See \`config.log' for more details." "$LINENO" 5; }
5548 fi
5549
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5557 $as_echo_n "checking for inline... " >&6; }
5558 if test "${ac_cv_c_inline+set}" = set; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   ac_cv_c_inline=no
5562 for ac_kw in inline __inline__ __inline; do
5563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h.  */
5565 #ifndef __cplusplus
5566 typedef int foo_t;
5567 static $ac_kw foo_t static_foo () {return 0; }
5568 $ac_kw foo_t foo () {return 0; }
5569 #endif
5570
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573   ac_cv_c_inline=$ac_kw
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576   test "$ac_cv_c_inline" != no && break
5577 done
5578
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5581 $as_echo "$ac_cv_c_inline" >&6; }
5582
5583 case $ac_cv_c_inline in
5584   inline | yes) ;;
5585   *)
5586     case $ac_cv_c_inline in
5587       no) ac_val=;;
5588       *) ac_val=$ac_cv_c_inline;;
5589     esac
5590     cat >>confdefs.h <<_ACEOF
5591 #ifndef __cplusplus
5592 #define inline $ac_val
5593 #endif
5594 _ACEOF
5595     ;;
5596 esac
5597
5598
5599 # Check whether --enable-largefile was given.
5600 if test "${enable_largefile+set}" = set; then :
5601   enableval=$enable_largefile;
5602 fi
5603
5604 if test "$enable_largefile" != no; then
5605
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5607 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5608 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   ac_cv_sys_largefile_CC=no
5612      if test "$GCC" != yes; then
5613        ac_save_CC=$CC
5614        while :; do
5615          # IRIX 6.2 and later do not support large files by default,
5616          # so use the C compiler's -n32 option if that helps.
5617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h.  */
5619 #include <sys/types.h>
5620  /* Check that off_t can represent 2**63 - 1 correctly.
5621     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5622     since some C++ compilers masquerading as C compilers
5623     incorrectly reject 9223372036854775807.  */
5624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5625   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5626                        && LARGE_OFF_T % 2147483647 == 1)
5627                       ? 1 : -1];
5628 int
5629 main ()
5630 {
5631
5632   ;
5633   return 0;
5634 }
5635 _ACEOF
5636          if ac_fn_c_try_compile "$LINENO"; then :
5637   break
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext
5640          CC="$CC -n32"
5641          if ac_fn_c_try_compile "$LINENO"; then :
5642   ac_cv_sys_largefile_CC=' -n32'; break
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext
5645          break
5646        done
5647        CC=$ac_save_CC
5648        rm -f conftest.$ac_ext
5649     fi
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5652 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5653   if test "$ac_cv_sys_largefile_CC" != no; then
5654     CC=$CC$ac_cv_sys_largefile_CC
5655   fi
5656
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5658 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5659 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   while :; do
5663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h.  */
5665 #include <sys/types.h>
5666  /* Check that off_t can represent 2**63 - 1 correctly.
5667     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668     since some C++ compilers masquerading as C compilers
5669     incorrectly reject 9223372036854775807.  */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672                        && LARGE_OFF_T % 2147483647 == 1)
5673                       ? 1 : -1];
5674 int
5675 main ()
5676 {
5677
5678   ;
5679   return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683   ac_cv_sys_file_offset_bits=no; break
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h.  */
5688 #define _FILE_OFFSET_BITS 64
5689 #include <sys/types.h>
5690  /* Check that off_t can represent 2**63 - 1 correctly.
5691     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5692     since some C++ compilers masquerading as C compilers
5693     incorrectly reject 9223372036854775807.  */
5694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5695   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5696                        && LARGE_OFF_T % 2147483647 == 1)
5697                       ? 1 : -1];
5698 int
5699 main ()
5700 {
5701
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707   ac_cv_sys_file_offset_bits=64; break
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710   ac_cv_sys_file_offset_bits=unknown
5711   break
5712 done
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5715 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5716 case $ac_cv_sys_file_offset_bits in #(
5717   no | unknown) ;;
5718   *)
5719 cat >>confdefs.h <<_ACEOF
5720 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5721 _ACEOF
5722 ;;
5723 esac
5724 rm -rf conftest*
5725   if test $ac_cv_sys_file_offset_bits = unknown; then
5726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5727 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5728 if test "${ac_cv_sys_large_files+set}" = set; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   while :; do
5732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h.  */
5734 #include <sys/types.h>
5735  /* Check that off_t can represent 2**63 - 1 correctly.
5736     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737     since some C++ compilers masquerading as C compilers
5738     incorrectly reject 9223372036854775807.  */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741                        && LARGE_OFF_T % 2147483647 == 1)
5742                       ? 1 : -1];
5743 int
5744 main ()
5745 {
5746
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752   ac_cv_sys_large_files=no; break
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h.  */
5757 #define _LARGE_FILES 1
5758 #include <sys/types.h>
5759  /* Check that off_t can represent 2**63 - 1 correctly.
5760     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761     since some C++ compilers masquerading as C compilers
5762     incorrectly reject 9223372036854775807.  */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765                        && LARGE_OFF_T % 2147483647 == 1)
5766                       ? 1 : -1];
5767 int
5768 main ()
5769 {
5770
5771   ;
5772   return 0;
5773 }
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776   ac_cv_sys_large_files=1; break
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779   ac_cv_sys_large_files=unknown
5780   break
5781 done
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5784 $as_echo "$ac_cv_sys_large_files" >&6; }
5785 case $ac_cv_sys_large_files in #(
5786   no | unknown) ;;
5787   *)
5788 cat >>confdefs.h <<_ACEOF
5789 #define _LARGE_FILES $ac_cv_sys_large_files
5790 _ACEOF
5791 ;;
5792 esac
5793 rm -rf conftest*
5794   fi
5795 fi
5796
5797
5798 # sizeof(char) is 1 by definition.
5799 # The cast to long int works around a bug in the HP C Compiler
5800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5802 # This bug is HP SR number 8606223364.
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5804 $as_echo_n "checking size of void *... " >&6; }
5805 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5809
5810 else
5811   if test "$ac_cv_type_void_p" = yes; then
5812      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5814 { as_fn_set_status 77
5815 as_fn_error "cannot compute sizeof (void *)
5816 See \`config.log' for more details." "$LINENO" 5; }; }
5817    else
5818      ac_cv_sizeof_void_p=0
5819    fi
5820 fi
5821
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5824 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5825
5826
5827
5828 cat >>confdefs.h <<_ACEOF
5829 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5830 _ACEOF
5831
5832
5833 # The cast to long int works around a bug in the HP C Compiler
5834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5836 # This bug is HP SR number 8606223364.
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5838 $as_echo_n "checking size of short... " >&6; }
5839 if test "${ac_cv_sizeof_short+set}" = set; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5843
5844 else
5845   if test "$ac_cv_type_short" = yes; then
5846      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 { as_fn_set_status 77
5849 as_fn_error "cannot compute sizeof (short)
5850 See \`config.log' for more details." "$LINENO" 5; }; }
5851    else
5852      ac_cv_sizeof_short=0
5853    fi
5854 fi
5855
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5858 $as_echo "$ac_cv_sizeof_short" >&6; }
5859
5860
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define SIZEOF_SHORT $ac_cv_sizeof_short
5864 _ACEOF
5865
5866
5867 # The cast to long int works around a bug in the HP C Compiler
5868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5870 # This bug is HP SR number 8606223364.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5872 $as_echo_n "checking size of int... " >&6; }
5873 if test "${ac_cv_sizeof_int+set}" = set; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5877
5878 else
5879   if test "$ac_cv_type_int" = yes; then
5880      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5882 { as_fn_set_status 77
5883 as_fn_error "cannot compute sizeof (int)
5884 See \`config.log' for more details." "$LINENO" 5; }; }
5885    else
5886      ac_cv_sizeof_int=0
5887    fi
5888 fi
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5892 $as_echo "$ac_cv_sizeof_int" >&6; }
5893
5894
5895
5896 cat >>confdefs.h <<_ACEOF
5897 #define SIZEOF_INT $ac_cv_sizeof_int
5898 _ACEOF
5899
5900
5901 # The cast to long int works around a bug in the HP C Compiler
5902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5904 # This bug is HP SR number 8606223364.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5906 $as_echo_n "checking size of long... " >&6; }
5907 if test "${ac_cv_sizeof_long+set}" = set; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5911
5912 else
5913   if test "$ac_cv_type_long" = yes; then
5914      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5916 { as_fn_set_status 77
5917 as_fn_error "cannot compute sizeof (long)
5918 See \`config.log' for more details." "$LINENO" 5; }; }
5919    else
5920      ac_cv_sizeof_long=0
5921    fi
5922 fi
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5926 $as_echo "$ac_cv_sizeof_long" >&6; }
5927
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define SIZEOF_LONG $ac_cv_sizeof_long
5932 _ACEOF
5933
5934
5935 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5936 if test "x$ac_cv_type_long_long" = x""yes; then :
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LONG_LONG 1
5940 _ACEOF
5941
5942 # The cast to long int works around a bug in the HP C Compiler
5943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5945 # This bug is HP SR number 8606223364.
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5947 $as_echo_n "checking size of long long... " >&6; }
5948 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5952
5953 else
5954   if test "$ac_cv_type_long_long" = yes; then
5955      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5957 { as_fn_set_status 77
5958 as_fn_error "cannot compute sizeof (long long)
5959 See \`config.log' for more details." "$LINENO" 5; }; }
5960    else
5961      ac_cv_sizeof_long_long=0
5962    fi
5963 fi
5964
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5967 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5968
5969
5970
5971 cat >>confdefs.h <<_ACEOF
5972 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5973 _ACEOF
5974
5975
5976 fi
5977
5978 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5979 if test "x$ac_cv_type___int64" = x""yes; then :
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define HAVE___INT64 1
5983 _ACEOF
5984
5985 # The cast to long int works around a bug in the HP C Compiler
5986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5988 # This bug is HP SR number 8606223364.
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5990 $as_echo_n "checking size of __int64... " >&6; }
5991 if test "${ac_cv_sizeof___int64+set}" = set; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5995
5996 else
5997   if test "$ac_cv_type___int64" = yes; then
5998      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000 { as_fn_set_status 77
6001 as_fn_error "cannot compute sizeof (__int64)
6002 See \`config.log' for more details." "$LINENO" 5; }; }
6003    else
6004      ac_cv_sizeof___int64=0
6005    fi
6006 fi
6007
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6010 $as_echo "$ac_cv_sizeof___int64" >&6; }
6011
6012
6013
6014 cat >>confdefs.h <<_ACEOF
6015 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6016 _ACEOF
6017
6018
6019 fi
6020
6021 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6022 case $ac_cv_c_int8_t in #(
6023   no|yes) ;; #(
6024   *)
6025
6026 cat >>confdefs.h <<_ACEOF
6027 #define int8_t $ac_cv_c_int8_t
6028 _ACEOF
6029 ;;
6030 esac
6031
6032 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6033 case $ac_cv_c_int16_t in #(
6034   no|yes) ;; #(
6035   *)
6036
6037 cat >>confdefs.h <<_ACEOF
6038 #define int16_t $ac_cv_c_int16_t
6039 _ACEOF
6040 ;;
6041 esac
6042
6043 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6044 case $ac_cv_c_int32_t in #(
6045   no|yes) ;; #(
6046   *)
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define int32_t $ac_cv_c_int32_t
6050 _ACEOF
6051 ;;
6052 esac
6053
6054 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6055 case $ac_cv_c_int64_t in #(
6056   no|yes) ;; #(
6057   *)
6058
6059 cat >>confdefs.h <<_ACEOF
6060 #define int64_t $ac_cv_c_int64_t
6061 _ACEOF
6062 ;;
6063 esac
6064
6065
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6067 $as_echo_n "checking for long long int... " >&6; }
6068 if test "${ac_cv_type_long_long_int+set}" = set; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073
6074   /* For now, do not test the preprocessor; as of 2007 there are too many
6075          implementations with broken preprocessors.  Perhaps this can
6076          be revisited in 2012.  In the meantime, code should not expect
6077          #if to work with literals wider than 32 bits.  */
6078       /* Test literals.  */
6079       long long int ll = 9223372036854775807ll;
6080       long long int nll = -9223372036854775807LL;
6081       unsigned long long int ull = 18446744073709551615ULL;
6082       /* Test constant expressions.   */
6083       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6084                      ? 1 : -1)];
6085       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6086                      ? 1 : -1)];
6087       int i = 63;
6088 int
6089 main ()
6090 {
6091 /* Test availability of runtime routines for shift and division.  */
6092       long long int llmax = 9223372036854775807ll;
6093       unsigned long long int ullmax = 18446744073709551615ull;
6094       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6095               | (llmax / ll) | (llmax % ll)
6096               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6097               | (ullmax / ull) | (ullmax % ull));
6098   ;
6099   return 0;
6100 }
6101
6102 _ACEOF
6103 if ac_fn_c_try_link "$LINENO"; then :
6104                         if test "$cross_compiling" = yes; then :
6105   ac_cv_type_long_long_int=yes
6106 else
6107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h.  */
6109 #include <limits.h>
6110                #ifndef LLONG_MAX
6111                # define HALF \
6112                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6113                # define LLONG_MAX (HALF - 1 + HALF)
6114                #endif
6115 int
6116 main ()
6117 {
6118 long long int n = 1;
6119                int i;
6120                for (i = 0; ; i++)
6121                  {
6122                    long long int m = n << i;
6123                    if (m >> i != n)
6124                      return 1;
6125                    if (LLONG_MAX / 2 < m)
6126                      break;
6127                  }
6128                return 0;
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_run "$LINENO"; then :
6134   ac_cv_type_long_long_int=yes
6135 else
6136   ac_cv_type_long_long_int=no
6137 fi
6138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6139   conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 fi
6141
6142 else
6143   ac_cv_type_long_long_int=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146     conftest$ac_exeext conftest.$ac_ext
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6149 $as_echo "$ac_cv_type_long_long_int" >&6; }
6150   if test $ac_cv_type_long_long_int = yes; then
6151
6152 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6153
6154   fi
6155
6156
6157
6158   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6159 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6160
6161 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6162
6163 else
6164   test $ac_cv_type_long_long_int = yes \
6165        && ac_type='long long int' \
6166        || ac_type='long int'
6167
6168 cat >>confdefs.h <<_ACEOF
6169 #define intmax_t $ac_type
6170 _ACEOF
6171
6172 fi
6173
6174
6175
6176   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6177 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6178
6179 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6180
6181 else
6182   for ac_type in 'int' 'long int' 'long long int'; do
6183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h.  */
6185 $ac_includes_default
6186 int
6187 main ()
6188 {
6189 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6190 test_array [0] = 0
6191
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197
6198 cat >>confdefs.h <<_ACEOF
6199 #define intptr_t $ac_type
6200 _ACEOF
6201
6202           ac_type=
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205        test -z "$ac_type" && break
6206      done
6207 fi
6208
6209
6210 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6211 case $ac_cv_c_uint8_t in #(
6212   no|yes) ;; #(
6213   *)
6214
6215 $as_echo "#define _UINT8_T 1" >>confdefs.h
6216
6217
6218 cat >>confdefs.h <<_ACEOF
6219 #define uint8_t $ac_cv_c_uint8_t
6220 _ACEOF
6221 ;;
6222   esac
6223
6224 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6225 case $ac_cv_c_uint16_t in #(
6226   no|yes) ;; #(
6227   *)
6228
6229
6230 cat >>confdefs.h <<_ACEOF
6231 #define uint16_t $ac_cv_c_uint16_t
6232 _ACEOF
6233 ;;
6234   esac
6235
6236 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6237 case $ac_cv_c_uint32_t in #(
6238   no|yes) ;; #(
6239   *)
6240
6241 $as_echo "#define _UINT32_T 1" >>confdefs.h
6242
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define uint32_t $ac_cv_c_uint32_t
6246 _ACEOF
6247 ;;
6248   esac
6249
6250 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6251 case $ac_cv_c_uint64_t in #(
6252   no|yes) ;; #(
6253   *)
6254
6255 $as_echo "#define _UINT64_T 1" >>confdefs.h
6256
6257
6258 cat >>confdefs.h <<_ACEOF
6259 #define uint64_t $ac_cv_c_uint64_t
6260 _ACEOF
6261 ;;
6262   esac
6263
6264
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6266 $as_echo_n "checking for unsigned long long int... " >&6; }
6267 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h.  */
6272
6273   /* For now, do not test the preprocessor; as of 2007 there are too many
6274          implementations with broken preprocessors.  Perhaps this can
6275          be revisited in 2012.  In the meantime, code should not expect
6276          #if to work with literals wider than 32 bits.  */
6277       /* Test literals.  */
6278       long long int ll = 9223372036854775807ll;
6279       long long int nll = -9223372036854775807LL;
6280       unsigned long long int ull = 18446744073709551615ULL;
6281       /* Test constant expressions.   */
6282       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6283                      ? 1 : -1)];
6284       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6285                      ? 1 : -1)];
6286       int i = 63;
6287 int
6288 main ()
6289 {
6290 /* Test availability of runtime routines for shift and division.  */
6291       long long int llmax = 9223372036854775807ll;
6292       unsigned long long int ullmax = 18446744073709551615ull;
6293       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6294               | (llmax / ll) | (llmax % ll)
6295               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6296               | (ullmax / ull) | (ullmax % ull));
6297   ;
6298   return 0;
6299 }
6300
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"; then :
6303   ac_cv_type_unsigned_long_long_int=yes
6304 else
6305   ac_cv_type_unsigned_long_long_int=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext \
6308     conftest$ac_exeext conftest.$ac_ext
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6311 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6312   if test $ac_cv_type_unsigned_long_long_int = yes; then
6313
6314 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6315
6316   fi
6317
6318
6319
6320   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6321 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6322
6323 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6324
6325 else
6326   test $ac_cv_type_unsigned_long_long_int = yes \
6327        && ac_type='unsigned long long int' \
6328        || ac_type='unsigned long int'
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define uintmax_t $ac_type
6332 _ACEOF
6333
6334 fi
6335
6336
6337
6338   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6339 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6340
6341 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6342
6343 else
6344   for ac_type in 'unsigned int' 'unsigned long int' \
6345         'unsigned long long int'; do
6346        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h.  */
6348 $ac_includes_default
6349 int
6350 main ()
6351 {
6352 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6353 test_array [0] = 0
6354
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6360
6361 cat >>confdefs.h <<_ACEOF
6362 #define uintptr_t $ac_type
6363 _ACEOF
6364
6365           ac_type=
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368        test -z "$ac_type" && break
6369      done
6370 fi
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 # ---------------------
6387 # Warnings and checking
6388 # ---------------------
6389
6390 # Check $CC warning features (if it's GCC).
6391 # We want to use -pedantic, but we don't want warnings about
6392 # * 'long long'
6393 # * variadic macros
6394 # * overlong strings
6395 # * C++11 narrowing conversions in { }
6396 # So, we only use -pedantic if we can disable those warnings.
6397
6398 loose_warn=
6399 save_CFLAGS="$CFLAGS"
6400 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6401   # Do the check with the no- prefix removed since gcc silently
6402   # accepts any -Wno-* option on purpose
6403   case $real_option in
6404     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6405     *) option=$real_option ;;
6406   esac
6407   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6408
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6410 $as_echo_n "checking whether $CC supports $option... " >&6; }
6411 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6412   $as_echo_n "(cached) " >&6
6413 else
6414   CFLAGS="$option"
6415     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h.  */
6417
6418 int
6419 main ()
6420 {
6421
6422   ;
6423   return 0;
6424 }
6425 _ACEOF
6426 if ac_fn_c_try_compile "$LINENO"; then :
6427   eval "$as_acx_Woption=yes"
6428 else
6429   eval "$as_acx_Woption=no"
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432
6433 fi
6434 eval ac_res=\$$as_acx_Woption
6435                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6438   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6439 fi
6440   done
6441 CFLAGS="$save_CFLAGS"
6442
6443 c_loose_warn=
6444 save_CFLAGS="$CFLAGS"
6445 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6446   # Do the check with the no- prefix removed since gcc silently
6447   # accepts any -Wno-* option on purpose
6448   case $real_option in
6449     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6450     *) option=$real_option ;;
6451   esac
6452   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6453
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6455 $as_echo_n "checking whether $CC supports $option... " >&6; }
6456 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459   CFLAGS="$option"
6460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h.  */
6462
6463 int
6464 main ()
6465 {
6466
6467   ;
6468   return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472   eval "$as_acx_Woption=yes"
6473 else
6474   eval "$as_acx_Woption=no"
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477
6478 fi
6479 eval ac_res=\$$as_acx_Woption
6480                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6481 $as_echo "$ac_res" >&6; }
6482   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6483   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6484 fi
6485   done
6486 CFLAGS="$save_CFLAGS"
6487
6488 strict_warn=
6489 save_CFLAGS="$CFLAGS"
6490 for real_option in -Wmissing-format-attribute; do
6491   # Do the check with the no- prefix removed since gcc silently
6492   # accepts any -Wno-* option on purpose
6493   case $real_option in
6494     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6495     *) option=$real_option ;;
6496   esac
6497   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6498
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6500 $as_echo_n "checking whether $CC supports $option... " >&6; }
6501 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6502   $as_echo_n "(cached) " >&6
6503 else
6504   CFLAGS="$option"
6505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h.  */
6507
6508 int
6509 main ()
6510 {
6511
6512   ;
6513   return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517   eval "$as_acx_Woption=yes"
6518 else
6519   eval "$as_acx_Woption=no"
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522
6523 fi
6524 eval ac_res=\$$as_acx_Woption
6525                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6526 $as_echo "$ac_res" >&6; }
6527   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6528   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6529 fi
6530   done
6531 CFLAGS="$save_CFLAGS"
6532
6533 c_strict_warn=
6534 save_CFLAGS="$CFLAGS"
6535 for real_option in -Wold-style-definition -Wc++-compat; do
6536   # Do the check with the no- prefix removed since gcc silently
6537   # accepts any -Wno-* option on purpose
6538   case $real_option in
6539     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6540     *) option=$real_option ;;
6541   esac
6542   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6543
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6545 $as_echo_n "checking whether $CC supports $option... " >&6; }
6546 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   CFLAGS="$option"
6550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h.  */
6552
6553 int
6554 main ()
6555 {
6556
6557   ;
6558   return 0;
6559 }
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"; then :
6562   eval "$as_acx_Woption=yes"
6563 else
6564   eval "$as_acx_Woption=no"
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567
6568 fi
6569 eval ac_res=\$$as_acx_Woption
6570                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6571 $as_echo "$ac_res" >&6; }
6572   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6573   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6574 fi
6575   done
6576 CFLAGS="$save_CFLAGS"
6577
6578 # Do the check with the no- prefix removed from the warning options
6579 # since gcc silently accepts any -Wno-* option on purpose
6580 if test "$GCC" = yes; then :
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6582 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6583 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   save_CFLAGS="$CFLAGS"
6587 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h.  */
6590
6591 int
6592 main ()
6593 {
6594
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6601 else
6602   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 CFLAGS="$save_CFLAGS"
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6608 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6609 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6610   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6611 fi
6612
6613 fi
6614
6615 # Check whether --enable-werror-always was given.
6616 if test "${enable_werror_always+set}" = set; then :
6617   enableval=$enable_werror_always;
6618 else
6619   enable_werror_always=no
6620 fi
6621
6622 if test $enable_werror_always = yes; then :
6623   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6624 fi
6625
6626
6627
6628 # The above macros do nothing if the compiler is not GCC.  However, the
6629 # Makefile has more goo to add other flags, so these variables are used
6630 # to enable warnings only for GCC.
6631 warn_cflags=
6632 warn_cxxflags=
6633 if test "x$GCC" = "xyes"; then
6634   warn_cflags='$(GCC_WARN_CFLAGS)'
6635   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6636 fi
6637
6638
6639
6640 # Disable exceptions and RTTI if building with g++
6641 noexception_flags=
6642 save_CFLAGS="$CFLAGS"
6643 for real_option in -fno-exceptions -fno-rtti; do
6644   # Do the check with the no- prefix removed since gcc silently
6645   # accepts any -Wno-* option on purpose
6646   case $real_option in
6647     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6648     *) option=$real_option ;;
6649   esac
6650   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6651
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6653 $as_echo_n "checking whether $CC supports $option... " >&6; }
6654 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   CFLAGS="$option"
6658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h.  */
6660
6661 int
6662 main ()
6663 {
6664
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670   eval "$as_acx_Woption=yes"
6671 else
6672   eval "$as_acx_Woption=no"
6673 fi
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675
6676 fi
6677 eval ac_res=\$$as_acx_Woption
6678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6681   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6682 fi
6683   done
6684 CFLAGS="$save_CFLAGS"
6685
6686
6687 # Enable expensive internal checks
6688 is_release=
6689 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6690   is_release=yes
6691 fi
6692
6693 # Check whether --enable-checking was given.
6694 if test "${enable_checking+set}" = set; then :
6695   enableval=$enable_checking; ac_checking_flags="${enableval}"
6696 else
6697
6698 # Determine the default checks.
6699 if test x$is_release = x ; then
6700   ac_checking_flags=yes
6701 else
6702   ac_checking_flags=release
6703 fi
6704 fi
6705
6706 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6707 for check in release $ac_checking_flags
6708 do
6709         case $check in
6710         # these set all the flags to specific states
6711         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6712                         ac_fold_checking= ; ac_gc_checking=1 ;
6713                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6714                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6715                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6716                         ac_types_checking=1 ;;
6717         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6718                         ac_fold_checking= ; ac_gc_checking= ;
6719                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6720                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6721                         ac_tree_checking= ; ac_valgrind_checking= ;
6722                         ac_types_checking= ;;
6723         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6724                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6725                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6726                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6727                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6728                         ac_types_checking=1 ;;
6729         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6730                         ac_fold_checking= ; ac_gc_checking= ;
6731                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6732                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6733                         ac_tree_checking= ; ac_valgrind_checking= ;
6734                         ac_types_checking= ;;
6735         # these enable particular checks
6736         assert)         ac_assert_checking=1 ;;
6737         df)             ac_df_checking=1 ;;
6738         fold)           ac_fold_checking=1 ;;
6739         gc)             ac_gc_checking=1 ;;
6740         gcac)           ac_gc_always_collect=1 ;;
6741         gimple)         ac_gimple_checking=1 ;;
6742         misc)           ac_checking=1 ;;
6743         rtl)            ac_rtl_checking=1 ;;
6744         rtlflag)        ac_rtlflag_checking=1 ;;
6745         runtime)        ac_runtime_checking=1 ;;
6746         tree)           ac_tree_checking=1 ;;
6747         types)          ac_types_checking=1 ;;
6748         valgrind)       ac_valgrind_checking=1 ;;
6749         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6750         esac
6751 done
6752 IFS="$ac_save_IFS"
6753
6754 nocommon_flag=""
6755 if test x$ac_checking != x ; then
6756
6757 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6758
6759   nocommon_flag=-fno-common
6760 fi
6761
6762 if test x$ac_df_checking != x ; then
6763
6764 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6765
6766 fi
6767 if test x$ac_assert_checking != x ; then
6768
6769 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6770
6771 fi
6772 if test x$ac_gimple_checking != x ; then
6773
6774 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6775
6776 fi
6777
6778 if test x$ac_runtime_checking != x ; then
6779
6780 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6781
6782 fi
6783 if test x$ac_tree_checking != x ; then
6784
6785 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6786
6787   TREEBROWSER=tree-browser.o
6788 fi
6789 if test x$ac_types_checking != x ; then
6790
6791 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6792
6793 fi
6794
6795 if test x$ac_rtl_checking != x ; then
6796
6797 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6798
6799 fi
6800 if test x$ac_rtlflag_checking != x ; then
6801
6802 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6803
6804 fi
6805 if test x$ac_gc_checking != x ; then
6806
6807 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6808
6809 fi
6810 if test x$ac_gc_always_collect != x ; then
6811
6812 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6813
6814 fi
6815 if test x$ac_fold_checking != x ; then
6816
6817 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6818
6819 fi
6820 valgrind_path_defines=
6821 valgrind_command=
6822
6823 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6824 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6825   have_valgrind_h=yes
6826 else
6827   have_valgrind_h=no
6828 fi
6829
6830
6831
6832 if test x$ac_valgrind_checking != x ; then
6833   # It is certainly possible that there's valgrind but no valgrind.h.
6834   # GCC relies on making annotations so we must have both.
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6836 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h.  */
6839 #include <valgrind/memcheck.h>
6840 #ifndef VALGRIND_DISCARD
6841 #error VALGRIND_DISCARD not defined
6842 #endif
6843 _ACEOF
6844 if ac_fn_c_try_cpp "$LINENO"; then :
6845   gcc_cv_header_valgrind_memcheck_h=yes
6846 else
6847   gcc_cv_header_valgrind_memcheck_h=no
6848 fi
6849 rm -f conftest.err conftest.$ac_ext
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6851 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6853 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h.  */
6856 #include <memcheck.h>
6857 #ifndef VALGRIND_DISCARD
6858 #error VALGRIND_DISCARD not defined
6859 #endif
6860 _ACEOF
6861 if ac_fn_c_try_cpp "$LINENO"; then :
6862   gcc_cv_header_memcheck_h=yes
6863 else
6864   gcc_cv_header_memcheck_h=no
6865 fi
6866 rm -f conftest.err conftest.$ac_ext
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6868 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6869
6870 # Prepare PATH_SEPARATOR.
6871 # The user is always right.
6872 if test "${PATH_SEPARATOR+set}" != set; then
6873   echo "#! /bin/sh" >conf$$.sh
6874   echo  "exit 0"   >>conf$$.sh
6875   chmod +x conf$$.sh
6876   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6877     PATH_SEPARATOR=';'
6878   else
6879     PATH_SEPARATOR=:
6880   fi
6881   rm -f conf$$.sh
6882 fi
6883
6884 # Find out how to test for executable files. Don't use a zero-byte file,
6885 # as systems may use methods other than mode bits to determine executability.
6886 cat >conf$$.file <<_ASEOF
6887 #! /bin/sh
6888 exit 0
6889 _ASEOF
6890 chmod +x conf$$.file
6891 if test -x conf$$.file >/dev/null 2>&1; then
6892   ac_executable_p="test -x"
6893 else
6894   ac_executable_p="test -f"
6895 fi
6896 rm -f conf$$.file
6897
6898 # Extract the first word of "valgrind", so it can be a program name with args.
6899 set dummy valgrind; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   case "$valgrind_path" in
6906   [\\/]* | ?:[\\/]*)
6907     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6908     ;;
6909   *)
6910     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6911     for ac_dir in $PATH; do
6912       IFS="$ac_save_IFS"
6913       test -z "$ac_dir" && ac_dir=.
6914       for ac_exec_ext in '' $ac_executable_extensions; do
6915         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6916           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6917             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6918             break 2
6919           fi
6920         fi
6921       done
6922     done
6923     IFS="$ac_save_IFS"
6924     ;;
6925 esac
6926 fi
6927 valgrind_path="$ac_cv_path_valgrind_path"
6928 if test -n "$valgrind_path"; then
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6930 $as_echo "$valgrind_path" >&6; }
6931 else
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936   if test "x$valgrind_path" = "x" \
6937     || (test $have_valgrind_h = no \
6938         && test $gcc_cv_header_memcheck_h = no \
6939         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6940         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6941   fi
6942   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6943   valgrind_command="$valgrind_path -q"
6944
6945 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6946
6947   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6948
6949 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6950
6951   fi
6952   if test $gcc_cv_header_memcheck_h = yes; then
6953
6954 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6955
6956   fi
6957 fi
6958
6959
6960
6961 # Enable code coverage collection
6962 # Check whether --enable-coverage was given.
6963 if test "${enable_coverage+set}" = set; then :
6964   enableval=$enable_coverage; case "${enableval}" in
6965   yes|noopt)
6966     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6967     ;;
6968   opt)
6969     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6970     ;;
6971   no)
6972     # a.k.a. --disable-coverage
6973     coverage_flags=""
6974     ;;
6975   *)
6976     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6977     ;;
6978 esac
6979 else
6980   coverage_flags=""
6981 fi
6982
6983
6984
6985 # Check whether --enable-gather-detailed-mem-stats was given.
6986 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6987   enableval=$enable_gather_detailed_mem_stats;
6988 else
6989   enable_gather_detailed_mem_stats=no
6990 fi
6991
6992 if test x$enable_gather_detailed_mem_stats = xyes ; then
6993
6994 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6995
6996 fi
6997
6998 # -------------------------------
6999 # Miscenalleous configure options
7000 # -------------------------------
7001
7002 # See if we are building gcc with C++.
7003 # Check whether --enable-build-with-cxx was given.
7004 if test "${enable_build_with_cxx+set}" = set; then :
7005   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7006 else
7007   ENABLE_BUILD_WITH_CXX=no
7008 fi
7009
7010
7011 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7012
7013 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7014
7015 fi
7016
7017 # With stabs
7018
7019 # Check whether --with-stabs was given.
7020 if test "${with_stabs+set}" = set; then :
7021   withval=$with_stabs; stabs="$with_stabs"
7022 else
7023   stabs=no
7024 fi
7025
7026
7027 # Determine whether or not multilibs are enabled.
7028 # Check whether --enable-multilib was given.
7029 if test "${enable_multilib+set}" = set; then :
7030   enableval=$enable_multilib;
7031 else
7032   enable_multilib=yes
7033 fi
7034
7035
7036
7037 # Enable __cxa_atexit for C++.
7038 # Check whether --enable-__cxa_atexit was given.
7039 if test "${enable___cxa_atexit+set}" = set; then :
7040   enableval=$enable___cxa_atexit;
7041 fi
7042
7043
7044 # Enable C extension for decimal float if target supports it.
7045
7046 # Check whether --enable-decimal-float was given.
7047 if test "${enable_decimal_float+set}" = set; then :
7048   enableval=$enable_decimal_float;
7049   case $enable_decimal_float in
7050     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7051     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7052 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7053   esac
7054
7055 else
7056
7057   case $target in
7058     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7059     i?86*-*-mingw* | x86_64*-*-mingw* | \
7060     i?86*-*-cygwin*)
7061       enable_decimal_float=yes
7062       ;;
7063     *)
7064       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7065 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7066       enable_decimal_float=no
7067       ;;
7068   esac
7069
7070 fi
7071
7072
7073 # x86's use BID format instead of DPD
7074 case x$enable_decimal_float in
7075   xyes)
7076     case $target in
7077       i?86*-*-* | x86_64*-*-*)
7078         enable_decimal_float=bid
7079         ;;
7080       *)
7081         enable_decimal_float=dpd
7082         ;;
7083     esac
7084     default_decimal_float=$enable_decimal_float
7085     ;;
7086   xno)
7087     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7088     # dependency on libdecnumber.
7089     default_decimal_float=dpd
7090     ;;
7091 esac
7092
7093
7094
7095
7096 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7097
7098 cat >>confdefs.h <<_ACEOF
7099 #define ENABLE_DECIMAL_FLOAT $dfp
7100 _ACEOF
7101
7102
7103 # Use default_decimal_float for dependency.
7104 enable_decimal_float=$default_decimal_float
7105
7106 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7107
7108 cat >>confdefs.h <<_ACEOF
7109 #define ENABLE_DECIMAL_BID_FORMAT $bid
7110 _ACEOF
7111
7112
7113 # Enable C extension for fixed-point arithmetic.
7114 # Check whether --enable-fixed-point was given.
7115 if test "${enable_fixed_point+set}" = set; then :
7116   enableval=$enable_fixed_point;
7117 else
7118
7119   case $target in
7120     arm*)
7121       enable_fixed_point=yes
7122       ;;
7123
7124     mips*-*-*)
7125       case $host in
7126         mips*-sgi-irix*)
7127           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7128 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7129           enable_fixed_point=no
7130           ;;
7131         *)
7132           enable_fixed_point=yes
7133           ;;
7134       esac
7135       ;;
7136     *)
7137       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7138 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7139       enable_fixed_point=no
7140       ;;
7141   esac
7142
7143 fi
7144
7145
7146
7147 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7148
7149 cat >>confdefs.h <<_ACEOF
7150 #define ENABLE_FIXED_POINT $fixedpoint
7151 _ACEOF
7152
7153
7154 # Enable threads
7155 # Pass with no value to take the default
7156 # Pass with a value to specify a thread package
7157 # Check whether --enable-threads was given.
7158 if test "${enable_threads+set}" = set; then :
7159   enableval=$enable_threads;
7160 else
7161   enable_threads=''
7162 fi
7163
7164
7165 # Check whether --enable-tls was given.
7166 if test "${enable_tls+set}" = set; then :
7167   enableval=$enable_tls;
7168   case $enable_tls in
7169     yes | no) ;;
7170     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7171 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7172   esac
7173
7174 else
7175   enable_tls=''
7176 fi
7177
7178
7179 # Check whether --enable-objc-gc was given.
7180 if test "${enable_objc_gc+set}" = set; then :
7181   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7182         objc_boehm_gc=''
7183 else
7184         objc_boehm_gc=1
7185 fi
7186 else
7187   objc_boehm_gc=''
7188 fi
7189
7190
7191
7192 # Check whether --with-dwarf2 was given.
7193 if test "${with_dwarf2+set}" = set; then :
7194   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7195 else
7196   dwarf2=no
7197 fi
7198
7199
7200 # Check whether --enable-shared was given.
7201 if test "${enable_shared+set}" = set; then :
7202   enableval=$enable_shared;
7203   case $enable_shared in
7204   yes | no) ;;
7205   *)
7206     enable_shared=no
7207     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7208     for pkg in $enableval; do
7209       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7210         enable_shared=yes
7211       fi
7212     done
7213     IFS="$ac_save_ifs"
7214     ;;
7215   esac
7216
7217 else
7218   enable_shared=yes
7219 fi
7220
7221
7222
7223
7224 # Check whether --with-native-system-header-dir was given.
7225 if test "${with_native_system_header_dir+set}" = set; then :
7226   withval=$with_native_system_header_dir;
7227  case ${with_native_system_header_dir} in
7228  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7229  /* | [A-Za-z]:[\\/]*) ;;
7230  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7231  esac
7232  configured_native_system_header_dir="${withval}"
7233
7234 else
7235   configured_native_system_header_dir=
7236 fi
7237
7238
7239
7240 # Check whether --with-build-sysroot was given.
7241 if test "${with_build_sysroot+set}" = set; then :
7242   withval=$with_build_sysroot; if test x"$withval" != x ; then
7243      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7244    fi
7245 else
7246   SYSROOT_CFLAGS_FOR_TARGET=
7247 fi
7248
7249
7250
7251
7252 # Check whether --with-sysroot was given.
7253 if test "${with_sysroot+set}" = set; then :
7254   withval=$with_sysroot;
7255  case ${with_sysroot} in
7256  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7257  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7258  esac
7259
7260  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7261  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7262
7263  if test "x$prefix" = xNONE; then
7264   test_prefix=/usr/local
7265  else
7266   test_prefix=$prefix
7267  fi
7268  if test "x$exec_prefix" = xNONE; then
7269   test_exec_prefix=$test_prefix
7270  else
7271   test_exec_prefix=$exec_prefix
7272  fi
7273  case ${TARGET_SYSTEM_ROOT} in
7274  "${test_prefix}"|"${test_prefix}/"*|\
7275  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7276  '${prefix}'|'${prefix}/'*|\
7277  '${exec_prefix}'|'${exec_prefix}/'*)
7278    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7279    TARGET_SYSTEM_ROOT_DEFINE="$t"
7280    ;;
7281  esac
7282
7283 else
7284
7285  TARGET_SYSTEM_ROOT=
7286  TARGET_SYSTEM_ROOT_DEFINE=
7287  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7288
7289 fi
7290
7291
7292
7293
7294
7295
7296 # Check whether --with-specs was given.
7297 if test "${with_specs+set}" = set; then :
7298   withval=$with_specs; CONFIGURE_SPECS=$withval
7299 else
7300   CONFIGURE_SPECS=
7301
7302 fi
7303
7304
7305
7306
7307
7308 # Check whether --with-pkgversion was given.
7309 if test "${with_pkgversion+set}" = set; then :
7310   withval=$with_pkgversion; case "$withval" in
7311       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7312       no)  PKGVERSION= ;;
7313       *)   PKGVERSION="($withval) " ;;
7314      esac
7315 else
7316   PKGVERSION="(GCC) "
7317
7318 fi
7319
7320
7321
7322
7323
7324 # Check whether --with-bugurl was given.
7325 if test "${with_bugurl+set}" = set; then :
7326   withval=$with_bugurl; case "$withval" in
7327       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7328       no)  BUGURL=
7329            ;;
7330       *)   BUGURL="$withval"
7331            ;;
7332      esac
7333 else
7334   BUGURL="http://gcc.gnu.org/bugs.html"
7335
7336 fi
7337
7338   case ${BUGURL} in
7339   "")
7340     REPORT_BUGS_TO=
7341     REPORT_BUGS_TEXI=
7342     ;;
7343   *)
7344     REPORT_BUGS_TO="<$BUGURL>"
7345     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7346     ;;
7347   esac;
7348
7349
7350
7351
7352 # Sanity check enable_languages in case someone does not run the toplevel
7353 # configure # script.
7354 # Check whether --enable-languages was given.
7355 if test "${enable_languages+set}" = set; then :
7356   enableval=$enable_languages; case ,${enable_languages}, in
7357        ,,|,yes,)
7358                 # go safe -- we cannot be much sure without the toplevel
7359                 # configure's
7360                 # analysis of which target libs are present and usable
7361                 enable_languages=c
7362                 ;;
7363          *,all,*)
7364                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7365                 ;;
7366         *,c,*)
7367                 ;;
7368         *)
7369                 enable_languages=c,${enable_languages}
7370                 ;;
7371 esac
7372 else
7373   enable_languages=c
7374 fi
7375
7376
7377
7378 # Check whether --with-multilib-list was given.
7379 if test "${with_multilib_list+set}" = set; then :
7380   withval=$with_multilib_list; :
7381 else
7382   with_multilib_list=default
7383 fi
7384
7385
7386 # -------------------------
7387 # Checks for other programs
7388 # -------------------------
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7391 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7392 set x ${MAKE-make}
7393 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7394 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   cat >conftest.make <<\_ACEOF
7398 SHELL = /bin/sh
7399 all:
7400         @echo '@@@%%%=$(MAKE)=@@@%%%'
7401 _ACEOF
7402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7403 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7404   *@@@%%%=?*=@@@%%%*)
7405     eval ac_cv_prog_make_${ac_make}_set=yes;;
7406   *)
7407     eval ac_cv_prog_make_${ac_make}_set=no;;
7408 esac
7409 rm -f conftest.make
7410 fi
7411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7413 $as_echo "yes" >&6; }
7414   SET_MAKE=
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418   SET_MAKE="MAKE=${MAKE-make}"
7419 fi
7420
7421
7422 # Find some useful tools
7423 for ac_prog in gawk mawk nawk awk
7424 do
7425   # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if test "${ac_cv_prog_AWK+set}" = set; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   if test -n "$AWK"; then
7433   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442     ac_cv_prog_AWK="$ac_prog"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 AWK=$ac_cv_prog_AWK
7453 if test -n "$AWK"; then
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7455 $as_echo "$AWK" >&6; }
7456 else
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462   test -n "$AWK" && break
7463 done
7464
7465 # We need awk to create options.c and options.h.
7466 # Bail out if it's missing.
7467 case ${AWK} in
7468   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7469 esac
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7472 $as_echo_n "checking whether ln -s works... " >&6; }
7473 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   rm -f conftestdata_t
7477 echo >conftestdata_f
7478 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7479 then
7480   gcc_cv_prog_LN_S="ln -s"
7481 else
7482   if ln conftestdata_f conftestdata_t 2>/dev/null
7483   then
7484     gcc_cv_prog_LN_S=ln
7485   else
7486     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7487     then
7488       gcc_cv_prog_LN_S="cp -p"
7489     else
7490       gcc_cv_prog_LN_S=cp
7491     fi
7492   fi
7493 fi
7494 rm -f conftestdata_f conftestdata_t
7495
7496 fi
7497 LN_S="$gcc_cv_prog_LN_S"
7498 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7500 $as_echo "yes" >&6; }
7501 else
7502   if test "$gcc_cv_prog_LN_S" = "ln"; then
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7504 $as_echo "no, using ln" >&6; }
7505   else
7506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7507 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7508   fi
7509 fi
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7512 $as_echo_n "checking whether ln works... " >&6; }
7513 if test "${acx_cv_prog_LN+set}" = set; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   rm -f conftestdata_t
7517 echo >conftestdata_f
7518 if ln conftestdata_f conftestdata_t 2>/dev/null
7519 then
7520   acx_cv_prog_LN=ln
7521 else
7522   acx_cv_prog_LN=no
7523 fi
7524 rm -f conftestdata_f conftestdata_t
7525
7526 fi
7527 if test $acx_cv_prog_LN = no; then
7528   LN="$LN_S"
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7530 $as_echo "no, using $LN" >&6; }
7531 else
7532   LN="$acx_cv_prog_LN"
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7534 $as_echo "yes" >&6; }
7535 fi
7536
7537 if test -n "$ac_tool_prefix"; then
7538   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   if test -n "$RANLIB"; then
7546   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 RANLIB=$ac_cv_prog_RANLIB
7566 if test -n "$RANLIB"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7568 $as_echo "$RANLIB" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 fi
7576 if test -z "$ac_cv_prog_RANLIB"; then
7577   ac_ct_RANLIB=$RANLIB
7578   # Extract the first word of "ranlib", so it can be a program name with args.
7579 set dummy ranlib; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$ac_ct_RANLIB"; then
7586   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595     ac_cv_prog_ac_ct_RANLIB="ranlib"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7606 if test -n "$ac_ct_RANLIB"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7608 $as_echo "$ac_ct_RANLIB" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614   if test "x$ac_ct_RANLIB" = x; then
7615     RANLIB=":"
7616   else
7617     case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623     RANLIB=$ac_ct_RANLIB
7624   fi
7625 else
7626   RANLIB="$ac_cv_prog_RANLIB"
7627 fi
7628
7629 ranlib_flags=""
7630
7631
7632 # Find a good install program.  We prefer a C program (faster),
7633 # so one script is as good as another.  But avoid the broken or
7634 # incompatible versions:
7635 # SysV /etc/install, /usr/sbin/install
7636 # SunOS /usr/etc/install
7637 # IRIX /sbin/install
7638 # AIX /bin/install
7639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7641 # ./install, which can be erroneously created by make from ./install.sh.
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7643 $as_echo_n "checking for a BSD compatible install... " >&6; }
7644 if test -z "$INSTALL"; then
7645 if test "${ac_cv_path_install+set}" = set; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7649   for ac_dir in $PATH; do
7650     # Account for people who put trailing slashes in PATH elements.
7651     case "$ac_dir/" in
7652     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7653     *)
7654       # OSF1 and SCO ODT 3.0 have their own names for install.
7655       for ac_prog in ginstall scoinst install; do
7656         if test -f $ac_dir/$ac_prog; then
7657           if test $ac_prog = install &&
7658             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7659             # AIX install.  It has an incompatible calling convention.
7660             # OSF/1 installbsd also uses dspmsg, but is usable.
7661             :
7662           else
7663             ac_cv_path_install="$ac_dir/$ac_prog -c"
7664             break 2
7665           fi
7666         fi
7667       done
7668       ;;
7669     esac
7670   done
7671   IFS="$ac_save_IFS"
7672
7673 fi
7674   if test "${ac_cv_path_install+set}" = set; then
7675     INSTALL="$ac_cv_path_install"
7676   else
7677     # As a last resort, use the slow shell script.  We don't cache a
7678     # path for INSTALL within a source directory, because that will
7679     # break other packages using the cache if that directory is
7680     # removed, or if the path is relative.
7681     INSTALL="$ac_install_sh"
7682   fi
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7685 $as_echo "$INSTALL" >&6; }
7686
7687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7688 # It thinks the first close brace ends the variable substitution.
7689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7690
7691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7692
7693
7694 # See if cmp has --ignore-initial.
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7696 $as_echo_n "checking for cmp's capabilities... " >&6; }
7697 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700    echo abfoo >t1
7701   echo cdfoo >t2
7702   gcc_cv_prog_cmp_skip=slowcompare
7703   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7704     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7705       :
7706     else
7707       gcc_cv_prog_cmp_skip=gnucompare
7708     fi
7709   fi
7710   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7711     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7712       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7713         :
7714       else
7715         gcc_cv_prog_cmp_skip=fastcompare
7716       fi
7717     fi
7718   fi
7719   rm t1 t2
7720
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7723 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7724 make_compare_target=$gcc_cv_prog_cmp_skip
7725
7726
7727
7728 # See if we have the mktemp command.
7729 # Extract the first word of "mktemp", so it can be a program name with args.
7730 set dummy mktemp; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   if test -n "$have_mktemp_command"; then
7737   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744     for ac_exec_ext in '' $ac_executable_extensions; do
7745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746     ac_cv_prog_have_mktemp_command="yes"
7747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751   done
7752 IFS=$as_save_IFS
7753
7754   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7755 fi
7756 fi
7757 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7758 if test -n "$have_mktemp_command"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7760 $as_echo "$have_mktemp_command" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767
7768 # See if makeinfo has been installed and is modern enough
7769 # that we can use it.
7770
7771   # Extract the first word of "makeinfo", so it can be a program name with args.
7772 set dummy makeinfo; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   if test -n "$MAKEINFO"; then
7779   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784   IFS=$as_save_IFS
7785   test -z "$as_dir" && as_dir=.
7786     for ac_exec_ext in '' $ac_executable_extensions; do
7787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788     ac_cv_prog_MAKEINFO="makeinfo"
7789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790     break 2
7791   fi
7792 done
7793   done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 MAKEINFO=$ac_cv_prog_MAKEINFO
7799 if test -n "$MAKEINFO"; then
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7801 $as_echo "$MAKEINFO" >&6; }
7802 else
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808   if test -n "$MAKEINFO"; then
7809     # Found it, now check the version.
7810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7811 $as_echo_n "checking for modern makeinfo... " >&6; }
7812 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7813   $as_echo_n "(cached) " >&6
7814 else
7815   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7816                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7817
7818                     case $ac_prog_version in
7819                       '')  gcc_cv_prog_makeinfo_modern=no;;
7820                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7821                       *)   gcc_cv_prog_makeinfo_modern=no;;
7822                     esac
7823
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7826 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7827   else
7828     gcc_cv_prog_makeinfo_modern=no
7829   fi
7830   if test $gcc_cv_prog_makeinfo_modern = no; then
7831     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7832   fi
7833
7834 if test $gcc_cv_prog_makeinfo_modern = no; then
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7836 *** Makeinfo is missing or too old.
7837 *** Info documentation will not be built." >&5
7838 $as_echo "$as_me: WARNING:
7839 *** Makeinfo is missing or too old.
7840 *** Info documentation will not be built." >&2;}
7841   BUILD_INFO=
7842 else
7843   BUILD_INFO=info
7844 fi
7845
7846
7847 # Is pod2man recent enough to regenerate manpages?
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7849 $as_echo_n "checking for recent Pod::Man... " >&6; }
7850 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7852 $as_echo "yes" >&6; }
7853   GENERATED_MANPAGES=generated-manpages
7854 else
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857   GENERATED_MANPAGES=
7858 fi
7859
7860
7861 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7862
7863 # How about lex?
7864 for ac_prog in flex
7865 do
7866   # Extract the first word of "$ac_prog", so it can be a program name with args.
7867 set dummy $ac_prog; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_FLEX+set}" = set; then :
7871   $as_echo_n "(cached) " >&6
7872 else
7873   if test -n "$FLEX"; then
7874   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881     for ac_exec_ext in '' $ac_executable_extensions; do
7882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883     ac_cv_prog_FLEX="$ac_prog"
7884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888   done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 FLEX=$ac_cv_prog_FLEX
7894 if test -n "$FLEX"; then
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7896 $as_echo "$FLEX" >&6; }
7897 else
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902
7903   test -n "$FLEX" && break
7904 done
7905 test -n "$FLEX" || FLEX="$MISSING flex"
7906
7907
7908 # Bison?
7909 for ac_prog in bison
7910 do
7911   # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_BISON+set}" = set; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   if test -n "$BISON"; then
7919   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924   IFS=$as_save_IFS
7925   test -z "$as_dir" && as_dir=.
7926     for ac_exec_ext in '' $ac_executable_extensions; do
7927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928     ac_cv_prog_BISON="$ac_prog"
7929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930     break 2
7931   fi
7932 done
7933   done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 BISON=$ac_cv_prog_BISON
7939 if test -n "$BISON"; then
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7941 $as_echo "$BISON" >&6; }
7942 else
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946
7947
7948   test -n "$BISON" && break
7949 done
7950 test -n "$BISON" || BISON="$MISSING bison"
7951
7952
7953 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7954 # check for build == host before using them.
7955
7956 # NM
7957 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7958   && test -d ../binutils ; then
7959   NM='${objdir}/../binutils/nm-new'
7960 else
7961   # Extract the first word of "nm", so it can be a program name with args.
7962 set dummy nm; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_NM+set}" = set; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   if test -n "$NM"; then
7969   ac_cv_prog_NM="$NM" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976     for ac_exec_ext in '' $ac_executable_extensions; do
7977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978     ac_cv_prog_NM="nm"
7979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983   done
7984 IFS=$as_save_IFS
7985
7986   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7987 fi
7988 fi
7989 NM=$ac_cv_prog_NM
7990 if test -n "$NM"; then
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7992 $as_echo "$NM" >&6; }
7993 else
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998
7999 fi
8000
8001 # AR
8002 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8003   && test -d ../binutils ; then
8004   AR='${objdir}/../binutils/ar'
8005 else
8006   # Extract the first word of "ar", so it can be a program name with args.
8007 set dummy ar; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if test "${ac_cv_prog_AR+set}" = set; then :
8011   $as_echo_n "(cached) " >&6
8012 else
8013   if test -n "$AR"; then
8014   ac_cv_prog_AR="$AR" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021     for ac_exec_ext in '' $ac_executable_extensions; do
8022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023     ac_cv_prog_AR="ar"
8024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028   done
8029 IFS=$as_save_IFS
8030
8031   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8032 fi
8033 fi
8034 AR=$ac_cv_prog_AR
8035 if test -n "$AR"; then
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8037 $as_echo "$AR" >&6; }
8038 else
8039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043
8044 fi
8045
8046
8047 # --------------------
8048 # Checks for C headers
8049 # --------------------
8050
8051 # Need to reject headers which give warnings, so that the -Werror bootstrap
8052 # works later. *sigh*  This needs to come before all header checks.
8053
8054 ac_c_preproc_warn_flag=yes
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8057 $as_echo_n "checking for ANSI C header files... " >&6; }
8058 if test "${ac_cv_header_stdc+set}" = set; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h.  */
8063 #include <stdlib.h>
8064 #include <stdarg.h>
8065 #include <string.h>
8066 #include <float.h>
8067
8068 int
8069 main ()
8070 {
8071
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"; then :
8077   ac_cv_header_stdc=yes
8078 else
8079   ac_cv_header_stdc=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082
8083 if test $ac_cv_header_stdc = yes; then
8084   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h.  */
8087 #include <string.h>
8088
8089 _ACEOF
8090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8091   $EGREP "memchr" >/dev/null 2>&1; then :
8092
8093 else
8094   ac_cv_header_stdc=no
8095 fi
8096 rm -f conftest*
8097
8098 fi
8099
8100 if test $ac_cv_header_stdc = yes; then
8101   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h.  */
8104 #include <stdlib.h>
8105
8106 _ACEOF
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108   $EGREP "free" >/dev/null 2>&1; then :
8109
8110 else
8111   ac_cv_header_stdc=no
8112 fi
8113 rm -f conftest*
8114
8115 fi
8116
8117 if test $ac_cv_header_stdc = yes; then
8118   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8119   if test "$cross_compiling" = yes; then :
8120   :
8121 else
8122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h.  */
8124 #include <ctype.h>
8125 #include <stdlib.h>
8126 #if ((' ' & 0x0FF) == 0x020)
8127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8129 #else
8130 # define ISLOWER(c) \
8131                    (('a' <= (c) && (c) <= 'i') \
8132                      || ('j' <= (c) && (c) <= 'r') \
8133                      || ('s' <= (c) && (c) <= 'z'))
8134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8135 #endif
8136
8137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8138 int
8139 main ()
8140 {
8141   int i;
8142   for (i = 0; i < 256; i++)
8143     if (XOR (islower (i), ISLOWER (i))
8144         || toupper (i) != TOUPPER (i))
8145       return 2;
8146   return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_run "$LINENO"; then :
8150
8151 else
8152   ac_cv_header_stdc=no
8153 fi
8154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8155   conftest.$ac_objext conftest.beam conftest.$ac_ext
8156 fi
8157
8158 fi
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8161 $as_echo "$ac_cv_header_stdc" >&6; }
8162 if test $ac_cv_header_stdc = yes; then
8163
8164 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8165
8166 fi
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8169 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8170 if test "${ac_cv_header_time+set}" = set; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h.  */
8175 #include <sys/types.h>
8176 #include <sys/time.h>
8177 #include <time.h>
8178
8179 int
8180 main ()
8181 {
8182 if ((struct tm *) 0)
8183 return 0;
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189   ac_cv_header_time=yes
8190 else
8191   ac_cv_header_time=no
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8196 $as_echo "$ac_cv_header_time" >&6; }
8197 if test $ac_cv_header_time = yes; then
8198
8199 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8200
8201 fi
8202
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8204 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8205 if test "${gcc_cv_header_string+set}" = set; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h.  */
8210 #include <string.h>
8211 #include <strings.h>
8212 int
8213 main ()
8214 {
8215
8216   ;
8217   return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221   gcc_cv_header_string=yes
8222 else
8223   gcc_cv_header_string=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: $gcc_cv_header_string" >&5
8228 $as_echo "$gcc_cv_header_string" >&6; }
8229 if test $gcc_cv_header_string = yes; then
8230
8231 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8232
8233 fi
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8236 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8237 if test "${ac_cv_header_sys_wait_h+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 <sys/types.h>
8243 #include <sys/wait.h>
8244 #ifndef WEXITSTATUS
8245 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8246 #endif
8247 #ifndef WIFEXITED
8248 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8249 #endif
8250
8251 int
8252 main ()
8253 {
8254   int s;
8255   wait (&s);
8256   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8257   ;
8258   return 0;
8259 }
8260 _ACEOF
8261 if ac_fn_c_try_compile "$LINENO"; then :
8262   ac_cv_header_sys_wait_h=yes
8263 else
8264   ac_cv_header_sys_wait_h=no
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8269 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8270 if test $ac_cv_header_sys_wait_h = yes; then
8271
8272 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8273
8274 fi
8275
8276 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8277                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8278                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8279                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8280 do :
8281   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8283 eval as_val=\$$as_ac_Header
8284    if test "x$as_val" = x""yes; then :
8285   cat >>confdefs.h <<_ACEOF
8286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8287 _ACEOF
8288
8289 fi
8290 done
8291
8292
8293 # Check for thread headers.
8294 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8295 if test "x$ac_cv_header_thread_h" = x""yes; then :
8296   have_thread_h=yes
8297 else
8298   have_thread_h=
8299 fi
8300
8301 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8302 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8303   have_pthread_h=yes
8304 else
8305   have_pthread_h=
8306 fi
8307
8308
8309 # These tests can't be done till we know if we have limits.h.
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8311 $as_echo_n "checking for CHAR_BIT... " >&6; }
8312 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h.  */
8317 #ifdef HAVE_LIMITS_H
8318 #include <limits.h>
8319 #endif
8320 #ifdef CHAR_BIT
8321 found
8322 #endif
8323 _ACEOF
8324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8325   $EGREP "found" >/dev/null 2>&1; then :
8326   gcc_cv_decl_char_bit=yes
8327 else
8328   gcc_cv_decl_char_bit=no
8329 fi
8330 rm -f conftest*
8331
8332
8333 fi
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8335 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8336 if test $gcc_cv_decl_char_bit = no; then
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8338 $as_echo_n "checking number of bits in a byte... " >&6; }
8339 if test "${gcc_cv_c_nbby+set}" = set; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   i=8
8343  gcc_cv_c_nbby=
8344  while test $i -lt 65; do
8345    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h.  */
8347
8348 int
8349 main ()
8350 {
8351 switch(0) {
8352   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8353   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8354   ; }
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360   gcc_cv_c_nbby=$i; break
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363    i=`expr $i + 1`
8364  done
8365  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8366
8367 fi
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8369 $as_echo "$gcc_cv_c_nbby" >&6; }
8370 if test $gcc_cv_c_nbby = failed; then
8371   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8372 else
8373
8374 cat >>confdefs.h <<_ACEOF
8375 #define CHAR_BIT $gcc_cv_c_nbby
8376 _ACEOF
8377
8378 fi
8379 fi
8380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8381 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8382 if test "${ac_cv_c_bigendian+set}" = set; then :
8383   $as_echo_n "(cached) " >&6
8384 else
8385   ac_cv_c_bigendian=unknown
8386     # See if we're dealing with a universal compiler.
8387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h.  */
8389 #ifndef __APPLE_CC__
8390                not a universal capable compiler
8391              #endif
8392              typedef int dummy;
8393
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396
8397         # Check for potential -arch flags.  It is not universal unless
8398         # there are at least two -arch flags with different values.
8399         ac_arch=
8400         ac_prev=
8401         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8402          if test -n "$ac_prev"; then
8403            case $ac_word in
8404              i?86 | x86_64 | ppc | ppc64)
8405                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8406                  ac_arch=$ac_word
8407                else
8408                  ac_cv_c_bigendian=universal
8409                  break
8410                fi
8411                ;;
8412            esac
8413            ac_prev=
8414          elif test "x$ac_word" = "x-arch"; then
8415            ac_prev=arch
8416          fi
8417        done
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420     if test $ac_cv_c_bigendian = unknown; then
8421       # See if sys/param.h defines the BYTE_ORDER macro.
8422       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h.  */
8424 #include <sys/types.h>
8425              #include <sys/param.h>
8426
8427 int
8428 main ()
8429 {
8430 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8431                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8432                      && LITTLE_ENDIAN)
8433               bogus endian macros
8434              #endif
8435
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_compile "$LINENO"; then :
8441   # It does; now see whether it defined to BIG_ENDIAN or not.
8442          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h.  */
8444 #include <sys/types.h>
8445                 #include <sys/param.h>
8446
8447 int
8448 main ()
8449 {
8450 #if BYTE_ORDER != BIG_ENDIAN
8451                  not big endian
8452                 #endif
8453
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_compile "$LINENO"; then :
8459   ac_cv_c_bigendian=yes
8460 else
8461   ac_cv_c_bigendian=no
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466     fi
8467     if test $ac_cv_c_bigendian = unknown; then
8468       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h.  */
8471 #include <limits.h>
8472
8473 int
8474 main ()
8475 {
8476 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8477               bogus endian macros
8478              #endif
8479
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485   # It does; now see whether it defined to _BIG_ENDIAN or not.
8486          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h.  */
8488 #include <limits.h>
8489
8490 int
8491 main ()
8492 {
8493 #ifndef _BIG_ENDIAN
8494                  not big endian
8495                 #endif
8496
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502   ac_cv_c_bigendian=yes
8503 else
8504   ac_cv_c_bigendian=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509     fi
8510     if test $ac_cv_c_bigendian = unknown; then
8511       # Compile a test program.
8512       if test "$cross_compiling" = yes; then :
8513   # Try to guess by grepping values from an object file.
8514          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h.  */
8516 short int ascii_mm[] =
8517                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8518                 short int ascii_ii[] =
8519                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8520                 int use_ascii (int i) {
8521                   return ascii_mm[i] + ascii_ii[i];
8522                 }
8523                 short int ebcdic_ii[] =
8524                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8525                 short int ebcdic_mm[] =
8526                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8527                 int use_ebcdic (int i) {
8528                   return ebcdic_mm[i] + ebcdic_ii[i];
8529                 }
8530                 extern int foo;
8531
8532 int
8533 main ()
8534 {
8535 return use_ascii (foo) == use_ebcdic (foo);
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_compile "$LINENO"; then :
8541   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8542               ac_cv_c_bigendian=yes
8543             fi
8544             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8545               if test "$ac_cv_c_bigendian" = unknown; then
8546                 ac_cv_c_bigendian=no
8547               else
8548                 # finding both strings is unlikely to happen, but who knows?
8549                 ac_cv_c_bigendian=unknown
8550               fi
8551             fi
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 else
8555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h.  */
8557 $ac_includes_default
8558 int
8559 main ()
8560 {
8561
8562              /* Are we little or big endian?  From Harbison&Steele.  */
8563              union
8564              {
8565                long int l;
8566                char c[sizeof (long int)];
8567              } u;
8568              u.l = 1;
8569              return u.c[sizeof (long int) - 1] == 1;
8570
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_run "$LINENO"; then :
8576   ac_cv_c_bigendian=no
8577 else
8578   ac_cv_c_bigendian=yes
8579 fi
8580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8581   conftest.$ac_objext conftest.beam conftest.$ac_ext
8582 fi
8583
8584     fi
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8587 $as_echo "$ac_cv_c_bigendian" >&6; }
8588  case $ac_cv_c_bigendian in #(
8589    yes)
8590      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8591 ;; #(
8592    no)
8593       ;; #(
8594    universal)
8595
8596 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8597
8598      ;; #(
8599    *)
8600      as_fn_error "unknown endianness
8601  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8602  esac
8603
8604
8605 # ----------------------
8606 # Checks for C++ headers
8607 # ----------------------
8608
8609 ac_ext=cpp
8610 ac_cpp='$CXXCPP $CPPFLAGS'
8611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8615 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8616 if test -z "$CXXCPP"; then
8617   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8618   $as_echo_n "(cached) " >&6
8619 else
8620       # Double quotes because CXXCPP needs to be expanded
8621     for CXXCPP in "$CXX -E" "/lib/cpp"
8622     do
8623       ac_preproc_ok=false
8624 for ac_cxx_preproc_warn_flag in '' yes
8625 do
8626   # Use a header file that comes with gcc, so configuring glibc
8627   # with a fresh cross-compiler works.
8628   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629   # <limits.h> exists even on freestanding compilers.
8630   # On the NeXT, cc -E runs the code through the compiler's parser,
8631   # not just through cpp. "Syntax error" is here to catch this case.
8632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h.  */
8634 #ifdef __STDC__
8635 # include <limits.h>
8636 #else
8637 # include <assert.h>
8638 #endif
8639                      Syntax error
8640 _ACEOF
8641 if ac_fn_cxx_try_cpp "$LINENO"; then :
8642
8643 else
8644   # Broken: fails on valid input.
8645 continue
8646 fi
8647 rm -f conftest.err conftest.$ac_ext
8648
8649   # OK, works on sane cases.  Now check whether nonexistent headers
8650   # can be detected and how.
8651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h.  */
8653 #include <ac_nonexistent.h>
8654 _ACEOF
8655 if ac_fn_cxx_try_cpp "$LINENO"; then :
8656   # Broken: success on invalid input.
8657 continue
8658 else
8659   # Passes both tests.
8660 ac_preproc_ok=:
8661 break
8662 fi
8663 rm -f conftest.err conftest.$ac_ext
8664
8665 done
8666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8667 rm -f conftest.err conftest.$ac_ext
8668 if $ac_preproc_ok; then :
8669   break
8670 fi
8671
8672     done
8673     ac_cv_prog_CXXCPP=$CXXCPP
8674
8675 fi
8676   CXXCPP=$ac_cv_prog_CXXCPP
8677 else
8678   ac_cv_prog_CXXCPP=$CXXCPP
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8681 $as_echo "$CXXCPP" >&6; }
8682 ac_preproc_ok=false
8683 for ac_cxx_preproc_warn_flag in '' yes
8684 do
8685   # Use a header file that comes with gcc, so configuring glibc
8686   # with a fresh cross-compiler works.
8687   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8688   # <limits.h> exists even on freestanding compilers.
8689   # On the NeXT, cc -E runs the code through the compiler's parser,
8690   # not just through cpp. "Syntax error" is here to catch this case.
8691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h.  */
8693 #ifdef __STDC__
8694 # include <limits.h>
8695 #else
8696 # include <assert.h>
8697 #endif
8698                      Syntax error
8699 _ACEOF
8700 if ac_fn_cxx_try_cpp "$LINENO"; then :
8701
8702 else
8703   # Broken: fails on valid input.
8704 continue
8705 fi
8706 rm -f conftest.err conftest.$ac_ext
8707
8708   # OK, works on sane cases.  Now check whether nonexistent headers
8709   # can be detected and how.
8710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h.  */
8712 #include <ac_nonexistent.h>
8713 _ACEOF
8714 if ac_fn_cxx_try_cpp "$LINENO"; then :
8715   # Broken: success on invalid input.
8716 continue
8717 else
8718   # Passes both tests.
8719 ac_preproc_ok=:
8720 break
8721 fi
8722 rm -f conftest.err conftest.$ac_ext
8723
8724 done
8725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8726 rm -f conftest.err conftest.$ac_ext
8727 if $ac_preproc_ok; then :
8728
8729 else
8730   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8733 See \`config.log' for more details." >&5
8734 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8735 See \`config.log' for more details." >&2;}; }
8736 fi
8737
8738 ac_ext=c
8739 ac_cpp='$CPP $CPPFLAGS'
8740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743
8744
8745 ac_ext=cpp
8746 ac_cpp='$CXXCPP $CPPFLAGS'
8747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8750
8751
8752
8753
8754 for ac_header in unordered_map
8755 do :
8756   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8757 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8758   cat >>confdefs.h <<_ACEOF
8759 #define HAVE_UNORDERED_MAP 1
8760 _ACEOF
8761
8762 fi
8763 done
8764
8765 for ac_header in tr1/unordered_map
8766 do :
8767   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8768 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8769   cat >>confdefs.h <<_ACEOF
8770 #define HAVE_TR1_UNORDERED_MAP 1
8771 _ACEOF
8772
8773 fi
8774 done
8775
8776 for ac_header in ext/hash_map
8777 do :
8778   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8779 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8780   cat >>confdefs.h <<_ACEOF
8781 #define HAVE_EXT_HASH_MAP 1
8782 _ACEOF
8783
8784 fi
8785 done
8786
8787
8788 ac_ext=c
8789 ac_cpp='$CPP $CPPFLAGS'
8790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794
8795 # --------
8796 # UNSORTED
8797 # --------
8798
8799
8800 # These libraries may be used by collect2.
8801 # We may need a special search path to get them linked.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8803 $as_echo_n "checking for collect2 libraries... " >&6; }
8804 if test "${gcc_cv_collect2_libs+set}" = set; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   save_LIBS="$LIBS"
8808 for libs in '' -lld -lmld \
8809                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8810                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8811 do
8812         LIBS="$libs"
8813         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h.  */
8815
8816 /* Override any GCC internal prototype to avoid an error.
8817    Use char because int might match the return type of a GCC
8818    builtin and then its argument prototype would still apply.  */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 char ldopen ();
8823 int
8824 main ()
8825 {
8826 return ldopen ();
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832   gcc_cv_collect2_libs="$libs"; break
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext \
8835     conftest$ac_exeext conftest.$ac_ext
8836 done
8837 LIBS="$save_LIBS"
8838 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8841 $as_echo "$gcc_cv_collect2_libs" >&6; }
8842 case $gcc_cv_collect2_libs in
8843         "none required")        ;;
8844         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8845 esac
8846
8847
8848 # When building Ada code on Alpha, we need exc_resume which is usually in
8849 # -lexc.  So test for it.
8850 save_LIBS="$LIBS"
8851 LIBS=
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8853 $as_echo_n "checking for library containing exc_resume... " >&6; }
8854 if test "${ac_cv_search_exc_resume+set}" = set; then :
8855   $as_echo_n "(cached) " >&6
8856 else
8857   ac_func_search_save_LIBS=$LIBS
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h.  */
8860
8861 /* Override any GCC internal prototype to avoid an error.
8862    Use char because int might match the return type of a GCC
8863    builtin and then its argument prototype would still apply.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 char exc_resume ();
8868 int
8869 main ()
8870 {
8871 return exc_resume ();
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 for ac_lib in '' exc; do
8877   if test -z "$ac_lib"; then
8878     ac_res="none required"
8879   else
8880     ac_res=-l$ac_lib
8881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8882   fi
8883   if ac_fn_c_try_link "$LINENO"; then :
8884   ac_cv_search_exc_resume=$ac_res
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887     conftest$ac_exeext
8888   if test "${ac_cv_search_exc_resume+set}" = set; then :
8889   break
8890 fi
8891 done
8892 if test "${ac_cv_search_exc_resume+set}" = set; then :
8893
8894 else
8895   ac_cv_search_exc_resume=no
8896 fi
8897 rm conftest.$ac_ext
8898 LIBS=$ac_func_search_save_LIBS
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8901 $as_echo "$ac_cv_search_exc_resume" >&6; }
8902 ac_res=$ac_cv_search_exc_resume
8903 if test "$ac_res" != no; then :
8904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8905
8906 fi
8907
8908 GNAT_LIBEXC="$LIBS"
8909 LIBS="$save_LIBS"
8910
8911
8912 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8913 save_LIBS="$LIBS"
8914 LIBS=
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8916 $as_echo_n "checking for library containing kstat_open... " >&6; }
8917 if test "${ac_cv_search_kstat_open+set}" = set; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   ac_func_search_save_LIBS=$LIBS
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h.  */
8923
8924 /* Override any GCC internal prototype to avoid an error.
8925    Use char because int might match the return type of a GCC
8926    builtin and then its argument prototype would still apply.  */
8927 #ifdef __cplusplus
8928 extern "C"
8929 #endif
8930 char kstat_open ();
8931 int
8932 main ()
8933 {
8934 return kstat_open ();
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 for ac_lib in '' kstat; do
8940   if test -z "$ac_lib"; then
8941     ac_res="none required"
8942   else
8943     ac_res=-l$ac_lib
8944     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8945   fi
8946   if ac_fn_c_try_link "$LINENO"; then :
8947   ac_cv_search_kstat_open=$ac_res
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext \
8950     conftest$ac_exeext
8951   if test "${ac_cv_search_kstat_open+set}" = set; then :
8952   break
8953 fi
8954 done
8955 if test "${ac_cv_search_kstat_open+set}" = set; then :
8956
8957 else
8958   ac_cv_search_kstat_open=no
8959 fi
8960 rm conftest.$ac_ext
8961 LIBS=$ac_func_search_save_LIBS
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8964 $as_echo "$ac_cv_search_kstat_open" >&6; }
8965 ac_res=$ac_cv_search_kstat_open
8966 if test "$ac_res" != no; then :
8967   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8968
8969 fi
8970
8971 EXTRA_GCC_LIBS="$LIBS"
8972 LIBS="$save_LIBS"
8973
8974
8975 # Some systems put ldexp and frexp in libm instead of libc; assume
8976 # they're both in the same place.  jcf-dump needs them.
8977 save_LIBS="$LIBS"
8978 LIBS=
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8980 $as_echo_n "checking for library containing ldexp... " >&6; }
8981 if test "${ac_cv_search_ldexp+set}" = set; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   ac_func_search_save_LIBS=$LIBS
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h.  */
8987
8988 /* Override any GCC internal prototype to avoid an error.
8989    Use char because int might match the return type of a GCC
8990    builtin and then its argument prototype would still apply.  */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 char ldexp ();
8995 int
8996 main ()
8997 {
8998 return ldexp ();
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 for ac_lib in '' m; do
9004   if test -z "$ac_lib"; then
9005     ac_res="none required"
9006   else
9007     ac_res=-l$ac_lib
9008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9009   fi
9010   if ac_fn_c_try_link "$LINENO"; then :
9011   ac_cv_search_ldexp=$ac_res
9012 fi
9013 rm -f core conftest.err conftest.$ac_objext \
9014     conftest$ac_exeext
9015   if test "${ac_cv_search_ldexp+set}" = set; then :
9016   break
9017 fi
9018 done
9019 if test "${ac_cv_search_ldexp+set}" = set; then :
9020
9021 else
9022   ac_cv_search_ldexp=no
9023 fi
9024 rm conftest.$ac_ext
9025 LIBS=$ac_func_search_save_LIBS
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9028 $as_echo "$ac_cv_search_ldexp" >&6; }
9029 ac_res=$ac_cv_search_ldexp
9030 if test "$ac_res" != no; then :
9031   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9032
9033 fi
9034
9035 LDEXP_LIB="$LIBS"
9036 LIBS="$save_LIBS"
9037
9038
9039 # Use <inttypes.h> only if it exists,
9040 # doesn't clash with <sys/types.h>, and declares intmax_t.
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9042 $as_echo_n "checking for inttypes.h... " >&6; }
9043 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9044   $as_echo_n "(cached) " >&6
9045 else
9046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h.  */
9048 #include <sys/types.h>
9049 #include <inttypes.h>
9050 int
9051 main ()
9052 {
9053 intmax_t i = -1;
9054   ;
9055   return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059   gcc_cv_header_inttypes_h=yes
9060 else
9061   gcc_cv_header_inttypes_h=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 fi
9065
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9067 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9068 if test $gcc_cv_header_inttypes_h = yes; then
9069
9070 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9071
9072 fi
9073
9074
9075
9076 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9077         sysconf strsignal getrusage nl_langinfo \
9078         gettimeofday mbstowcs wcswidth mmap setlocale \
9079         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
9080 do :
9081   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9083 eval as_val=\$$as_ac_var
9084    if test "x$as_val" = x""yes; then :
9085   cat >>confdefs.h <<_ACEOF
9086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9087 _ACEOF
9088
9089 fi
9090 done
9091
9092
9093 if test x$ac_cv_func_mbstowcs = xyes; then
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9095 $as_echo_n "checking whether mbstowcs works... " >&6; }
9096 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9097   $as_echo_n "(cached) " >&6
9098 else
9099       if test "$cross_compiling" = yes; then :
9100   gcc_cv_func_mbstowcs_works=yes
9101 else
9102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h.  */
9104 #include <stdlib.h>
9105 int main()
9106 {
9107   mbstowcs(0, "", 0);
9108   return 0;
9109 }
9110 _ACEOF
9111 if ac_fn_c_try_run "$LINENO"; then :
9112   gcc_cv_func_mbstowcs_works=yes
9113 else
9114   gcc_cv_func_mbstowcs_works=no
9115 fi
9116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9117   conftest.$ac_objext conftest.beam conftest.$ac_ext
9118 fi
9119
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9122 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9123   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9124
9125 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9126
9127   fi
9128 fi
9129
9130 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9131 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9132
9133 else
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define ssize_t int
9137 _ACEOF
9138
9139 fi
9140
9141 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9142 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9143
9144 else
9145
9146 cat >>confdefs.h <<_ACEOF
9147 #define caddr_t char *
9148 _ACEOF
9149
9150 fi
9151
9152
9153
9154 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9155 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9156   gcc_header_sys_mman_h=yes
9157 else
9158   gcc_header_sys_mman_h=no
9159 fi
9160
9161 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9162 if test "x$ac_cv_func_mmap" = x""yes; then :
9163   gcc_func_mmap=yes
9164 else
9165   gcc_func_mmap=no
9166 fi
9167
9168 if test "$gcc_header_sys_mman_h" != yes \
9169  || test "$gcc_func_mmap" != yes; then
9170    gcc_cv_func_mmap_file=no
9171    gcc_cv_func_mmap_dev_zero=no
9172    gcc_cv_func_mmap_anon=no
9173 else
9174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9175 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9176 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9177   $as_echo_n "(cached) " >&6
9178 else
9179   # Add a system to this blacklist if
9180    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9181    # memory area containing the same data that you'd get if you applied
9182    # read() to the same fd.  The only system known to have a problem here
9183    # is VMS, where text files have record structure.
9184    case "$host_os" in
9185      vms* | ultrix*)
9186         gcc_cv_func_mmap_file=no ;;
9187      *)
9188         gcc_cv_func_mmap_file=yes;;
9189    esac
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9192 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9194 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9195 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   # Add a system to this blacklist if it has mmap() but /dev/zero
9199    # does not exist, or if mmapping /dev/zero does not give anonymous
9200    # zeroed pages with both the following properties:
9201    # 1. If you map N consecutive pages in with one call, and then
9202    #    unmap any subset of those pages, the pages that were not
9203    #    explicitly unmapped remain accessible.
9204    # 2. If you map two adjacent blocks of memory and then unmap them
9205    #    both at once, they must both go away.
9206    # Systems known to be in this category are Windows (all variants),
9207    # VMS, and Darwin.
9208    case "$host_os" in
9209      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9210         gcc_cv_func_mmap_dev_zero=no ;;
9211      *)
9212         gcc_cv_func_mmap_dev_zero=yes;;
9213    esac
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9216 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9217
9218    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9220 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9221 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9222   $as_echo_n "(cached) " >&6
9223 else
9224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h.  */
9226 #include <sys/types.h>
9227 #include <sys/mman.h>
9228 #include <unistd.h>
9229
9230 #ifndef MAP_ANONYMOUS
9231 #define MAP_ANONYMOUS MAP_ANON
9232 #endif
9233
9234 int
9235 main ()
9236 {
9237 int n = MAP_ANONYMOUS;
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243   gcc_cv_decl_map_anon=yes
9244 else
9245   gcc_cv_decl_map_anon=no
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9250 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9251
9252    if test $gcc_cv_decl_map_anon = no; then
9253      gcc_cv_func_mmap_anon=no
9254    else
9255      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9256 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9257 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9258   $as_echo_n "(cached) " >&6
9259 else
9260   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9261    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9262    # doesn't give anonymous zeroed pages with the same properties listed
9263    # above for use of /dev/zero.
9264    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9265    case "$host_os" in
9266      vms* | cygwin* | pe | mingw* | sco* | udk* )
9267         gcc_cv_func_mmap_anon=no ;;
9268      *)
9269         gcc_cv_func_mmap_anon=yes;;
9270    esac
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9273 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9274    fi
9275 fi
9276
9277 if test $gcc_cv_func_mmap_file = yes; then
9278
9279 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9280
9281 fi
9282 if test $gcc_cv_func_mmap_dev_zero = yes; then
9283
9284 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9285
9286 fi
9287 if test $gcc_cv_func_mmap_anon = yes; then
9288
9289 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9290
9291 fi
9292
9293
9294 case "${host}" in
9295 *-*-*vms*)
9296   # Under VMS, vfork works very differently than on Unix. The standard test
9297   # won't work, and it isn't easily adaptable. It makes more sense to
9298   # just force it.
9299   ac_cv_func_vfork_works=yes
9300   ;;
9301 esac
9302 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9303 if test "x$ac_cv_type_pid_t" = x""yes; then :
9304
9305 else
9306
9307 cat >>confdefs.h <<_ACEOF
9308 #define pid_t int
9309 _ACEOF
9310
9311 fi
9312
9313 for ac_header in vfork.h
9314 do :
9315   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9316 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9317   cat >>confdefs.h <<_ACEOF
9318 #define HAVE_VFORK_H 1
9319 _ACEOF
9320
9321 fi
9322 done
9323
9324 for ac_func in fork vfork
9325 do :
9326   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9328 eval as_val=\$$as_ac_var
9329    if test "x$as_val" = x""yes; then :
9330   cat >>confdefs.h <<_ACEOF
9331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9332 _ACEOF
9333
9334 fi
9335 done
9336
9337 if test "x$ac_cv_func_fork" = xyes; then
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9339 $as_echo_n "checking for working fork... " >&6; }
9340 if test "${ac_cv_func_fork_works+set}" = set; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   if test "$cross_compiling" = yes; then :
9344   ac_cv_func_fork_works=cross
9345 else
9346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h.  */
9348 $ac_includes_default
9349 int
9350 main ()
9351 {
9352
9353           /* By Ruediger Kuhlmann. */
9354           return fork () < 0;
9355
9356   ;
9357   return 0;
9358 }
9359 _ACEOF
9360 if ac_fn_c_try_run "$LINENO"; then :
9361   ac_cv_func_fork_works=yes
9362 else
9363   ac_cv_func_fork_works=no
9364 fi
9365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9366   conftest.$ac_objext conftest.beam conftest.$ac_ext
9367 fi
9368
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9371 $as_echo "$ac_cv_func_fork_works" >&6; }
9372
9373 else
9374   ac_cv_func_fork_works=$ac_cv_func_fork
9375 fi
9376 if test "x$ac_cv_func_fork_works" = xcross; then
9377   case $host in
9378     *-*-amigaos* | *-*-msdosdjgpp*)
9379       # Override, as these systems have only a dummy fork() stub
9380       ac_cv_func_fork_works=no
9381       ;;
9382     *)
9383       ac_cv_func_fork_works=yes
9384       ;;
9385   esac
9386   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9387 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9388 fi
9389 ac_cv_func_vfork_works=$ac_cv_func_vfork
9390 if test "x$ac_cv_func_vfork" = xyes; then
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9392 $as_echo_n "checking for working vfork... " >&6; }
9393 if test "${ac_cv_func_vfork_works+set}" = set; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   if test "$cross_compiling" = yes; then :
9397   ac_cv_func_vfork_works=cross
9398 else
9399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h.  */
9401 /* Thanks to Paul Eggert for this test.  */
9402 $ac_includes_default
9403 #include <sys/wait.h>
9404 #ifdef HAVE_VFORK_H
9405 # include <vfork.h>
9406 #endif
9407 /* On some sparc systems, changes by the child to local and incoming
9408    argument registers are propagated back to the parent.  The compiler
9409    is told about this with #include <vfork.h>, but some compilers
9410    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9411    static variable whose address is put into a register that is
9412    clobbered by the vfork.  */
9413 static void
9414 #ifdef __cplusplus
9415 sparc_address_test (int arg)
9416 # else
9417 sparc_address_test (arg) int arg;
9418 #endif
9419 {
9420   static pid_t child;
9421   if (!child) {
9422     child = vfork ();
9423     if (child < 0) {
9424       perror ("vfork");
9425       _exit(2);
9426     }
9427     if (!child) {
9428       arg = getpid();
9429       write(-1, "", 0);
9430       _exit (arg);
9431     }
9432   }
9433 }
9434
9435 int
9436 main ()
9437 {
9438   pid_t parent = getpid ();
9439   pid_t child;
9440
9441   sparc_address_test (0);
9442
9443   child = vfork ();
9444
9445   if (child == 0) {
9446     /* Here is another test for sparc vfork register problems.  This
9447        test uses lots of local variables, at least as many local
9448        variables as main has allocated so far including compiler
9449        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9450        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9451        reuse the register of parent for one of the local variables,
9452        since it will think that parent can't possibly be used any more
9453        in this routine.  Assigning to the local variable will thus
9454        munge parent in the parent process.  */
9455     pid_t
9456       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9457       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9458     /* Convince the compiler that p..p7 are live; otherwise, it might
9459        use the same hardware register for all 8 local variables.  */
9460     if (p != p1 || p != p2 || p != p3 || p != p4
9461         || p != p5 || p != p6 || p != p7)
9462       _exit(1);
9463
9464     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9465        from child file descriptors.  If the child closes a descriptor
9466        before it execs or exits, this munges the parent's descriptor
9467        as well.  Test for this by closing stdout in the child.  */
9468     _exit(close(fileno(stdout)) != 0);
9469   } else {
9470     int status;
9471     struct stat st;
9472
9473     while (wait(&status) != child)
9474       ;
9475     return (
9476          /* Was there some problem with vforking?  */
9477          child < 0
9478
9479          /* Did the child fail?  (This shouldn't happen.)  */
9480          || status
9481
9482          /* Did the vfork/compiler bug occur?  */
9483          || parent != getpid()
9484
9485          /* Did the file descriptor bug occur?  */
9486          || fstat(fileno(stdout), &st) != 0
9487          );
9488   }
9489 }
9490 _ACEOF
9491 if ac_fn_c_try_run "$LINENO"; then :
9492   ac_cv_func_vfork_works=yes
9493 else
9494   ac_cv_func_vfork_works=no
9495 fi
9496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9497   conftest.$ac_objext conftest.beam conftest.$ac_ext
9498 fi
9499
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9502 $as_echo "$ac_cv_func_vfork_works" >&6; }
9503
9504 fi;
9505 if test "x$ac_cv_func_fork_works" = xcross; then
9506   ac_cv_func_vfork_works=$ac_cv_func_vfork
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9508 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9509 fi
9510
9511 if test "x$ac_cv_func_vfork_works" = xyes; then
9512
9513 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9514
9515 else
9516
9517 $as_echo "#define vfork fork" >>confdefs.h
9518
9519 fi
9520 if test "x$ac_cv_func_fork_works" = xyes; then
9521
9522 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9523
9524 fi
9525
9526
9527 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9528 # iconv() prototype.
9529
9530       if test "X$prefix" = "XNONE"; then
9531     acl_final_prefix="$ac_default_prefix"
9532   else
9533     acl_final_prefix="$prefix"
9534   fi
9535   if test "X$exec_prefix" = "XNONE"; then
9536     acl_final_exec_prefix='${prefix}'
9537   else
9538     acl_final_exec_prefix="$exec_prefix"
9539   fi
9540   acl_save_prefix="$prefix"
9541   prefix="$acl_final_prefix"
9542   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9543   prefix="$acl_save_prefix"
9544
9545
9546 # Check whether --with-gnu-ld was given.
9547 if test "${with_gnu_ld+set}" = set; then :
9548   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9549 else
9550   with_gnu_ld=no
9551 fi
9552
9553 # Prepare PATH_SEPARATOR.
9554 # The user is always right.
9555 if test "${PATH_SEPARATOR+set}" != set; then
9556   echo "#! /bin/sh" >conf$$.sh
9557   echo  "exit 0"   >>conf$$.sh
9558   chmod +x conf$$.sh
9559   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9560     PATH_SEPARATOR=';'
9561   else
9562     PATH_SEPARATOR=:
9563   fi
9564   rm -f conf$$.sh
9565 fi
9566 ac_prog=ld
9567 if test "$GCC" = yes; then
9568   # Check if gcc -print-prog-name=ld gives a path.
9569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9570 $as_echo_n "checking for ld used by GCC... " >&6; }
9571   case $host in
9572   *-*-mingw*)
9573     # gcc leaves a trailing carriage return which upsets mingw
9574     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9575   *)
9576     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9577   esac
9578   case $ac_prog in
9579     # Accept absolute paths.
9580     [\\/]* | [A-Za-z]:[\\/]*)
9581       re_direlt='/[^/][^/]*/\.\./'
9582       # Canonicalize the path of ld
9583       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9584       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9585         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9586       done
9587       test -z "$LD" && LD="$ac_prog"
9588       ;;
9589   "")
9590     # If it fails, then pretend we aren't using GCC.
9591     ac_prog=ld
9592     ;;
9593   *)
9594     # If it is relative, then search for the first ld in PATH.
9595     with_gnu_ld=unknown
9596     ;;
9597   esac
9598 elif test "$with_gnu_ld" = yes; then
9599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9600 $as_echo_n "checking for GNU ld... " >&6; }
9601 else
9602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9603 $as_echo_n "checking for non-GNU ld... " >&6; }
9604 fi
9605 if test "${acl_cv_path_LD+set}" = set; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608   if test -z "$LD"; then
9609   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9610   for ac_dir in $PATH; do
9611     test -z "$ac_dir" && ac_dir=.
9612     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9613       acl_cv_path_LD="$ac_dir/$ac_prog"
9614       # Check to see if the program is GNU ld.  I'd rather use --version,
9615       # but apparently some GNU ld's only accept -v.
9616       # Break only if it was the GNU/non-GNU ld that we prefer.
9617       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9618         test "$with_gnu_ld" != no && break
9619       else
9620         test "$with_gnu_ld" != yes && break
9621       fi
9622     fi
9623   done
9624   IFS="$ac_save_ifs"
9625 else
9626   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9627 fi
9628 fi
9629
9630 LD="$acl_cv_path_LD"
9631 if test -n "$LD"; then
9632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9633 $as_echo "$LD" >&6; }
9634 else
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9641 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9642   $as_echo_n "(cached) " >&6
9643 else
9644   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9645 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9646   acl_cv_prog_gnu_ld=yes
9647 else
9648   acl_cv_prog_gnu_ld=no
9649 fi
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9652 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9653 with_gnu_ld=$acl_cv_prog_gnu_ld
9654
9655
9656
9657                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9658 $as_echo_n "checking for shared library run path origin... " >&6; }
9659 if test "${acl_cv_rpath+set}" = set; then :
9660   $as_echo_n "(cached) " >&6
9661 else
9662
9663     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9664     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9665     . ./conftest.sh
9666     rm -f ./conftest.sh
9667     acl_cv_rpath=done
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9671 $as_echo "$acl_cv_rpath" >&6; }
9672   wl="$acl_cv_wl"
9673   libext="$acl_cv_libext"
9674   shlibext="$acl_cv_shlibext"
9675   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9676   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9677   hardcode_direct="$acl_cv_hardcode_direct"
9678   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9679     # Check whether --enable-rpath was given.
9680 if test "${enable_rpath+set}" = set; then :
9681   enableval=$enable_rpath; :
9682 else
9683   enable_rpath=yes
9684 fi
9685
9686
9687
9688
9689
9690
9691
9692
9693     use_additional=yes
9694
9695   acl_save_prefix="$prefix"
9696   prefix="$acl_final_prefix"
9697   acl_save_exec_prefix="$exec_prefix"
9698   exec_prefix="$acl_final_exec_prefix"
9699
9700     eval additional_includedir=\"$includedir\"
9701     eval additional_libdir=\"$libdir\"
9702
9703   exec_prefix="$acl_save_exec_prefix"
9704   prefix="$acl_save_prefix"
9705
9706
9707 # Check whether --with-libiconv-prefix was given.
9708 if test "${with_libiconv_prefix+set}" = set; then :
9709   withval=$with_libiconv_prefix;
9710     if test "X$withval" = "Xno"; then
9711       use_additional=no
9712     else
9713       if test "X$withval" = "X"; then
9714
9715   acl_save_prefix="$prefix"
9716   prefix="$acl_final_prefix"
9717   acl_save_exec_prefix="$exec_prefix"
9718   exec_prefix="$acl_final_exec_prefix"
9719
9720           eval additional_includedir=\"$includedir\"
9721           eval additional_libdir=\"$libdir\"
9722
9723   exec_prefix="$acl_save_exec_prefix"
9724   prefix="$acl_save_prefix"
9725
9726       else
9727         additional_includedir="$withval/include"
9728         additional_libdir="$withval/lib"
9729       fi
9730     fi
9731
9732 fi
9733
9734       LIBICONV=
9735   LTLIBICONV=
9736   INCICONV=
9737   rpathdirs=
9738   ltrpathdirs=
9739   names_already_handled=
9740   names_next_round='iconv '
9741   while test -n "$names_next_round"; do
9742     names_this_round="$names_next_round"
9743     names_next_round=
9744     for name in $names_this_round; do
9745       already_handled=
9746       for n in $names_already_handled; do
9747         if test "$n" = "$name"; then
9748           already_handled=yes
9749           break
9750         fi
9751       done
9752       if test -z "$already_handled"; then
9753         names_already_handled="$names_already_handled $name"
9754                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9755         eval value=\"\$HAVE_LIB$uppername\"
9756         if test -n "$value"; then
9757           if test "$value" = yes; then
9758             eval value=\"\$LIB$uppername\"
9759             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9760             eval value=\"\$LTLIB$uppername\"
9761             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9762           else
9763                                     :
9764           fi
9765         else
9766                               found_dir=
9767           found_la=
9768           found_so=
9769           found_a=
9770           if test $use_additional = yes; then
9771             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9772               found_dir="$additional_libdir"
9773               found_so="$additional_libdir/lib$name.$shlibext"
9774               if test -f "$additional_libdir/lib$name.la"; then
9775                 found_la="$additional_libdir/lib$name.la"
9776               fi
9777             else
9778               if test -f "$additional_libdir/lib$name.$libext"; then
9779                 found_dir="$additional_libdir"
9780                 found_a="$additional_libdir/lib$name.$libext"
9781                 if test -f "$additional_libdir/lib$name.la"; then
9782                   found_la="$additional_libdir/lib$name.la"
9783                 fi
9784               fi
9785             fi
9786           fi
9787           if test "X$found_dir" = "X"; then
9788             for x in $LDFLAGS $LTLIBICONV; do
9789
9790   acl_save_prefix="$prefix"
9791   prefix="$acl_final_prefix"
9792   acl_save_exec_prefix="$exec_prefix"
9793   exec_prefix="$acl_final_exec_prefix"
9794   eval x=\"$x\"
9795   exec_prefix="$acl_save_exec_prefix"
9796   prefix="$acl_save_prefix"
9797
9798               case "$x" in
9799                 -L*)
9800                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9801                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9802                     found_dir="$dir"
9803                     found_so="$dir/lib$name.$shlibext"
9804                     if test -f "$dir/lib$name.la"; then
9805                       found_la="$dir/lib$name.la"
9806                     fi
9807                   else
9808                     if test -f "$dir/lib$name.$libext"; then
9809                       found_dir="$dir"
9810                       found_a="$dir/lib$name.$libext"
9811                       if test -f "$dir/lib$name.la"; then
9812                         found_la="$dir/lib$name.la"
9813                       fi
9814                     fi
9815                   fi
9816                   ;;
9817               esac
9818               if test "X$found_dir" != "X"; then
9819                 break
9820               fi
9821             done
9822           fi
9823           if test "X$found_dir" != "X"; then
9824                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9825             if test "X$found_so" != "X"; then
9826                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9827                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9828               else
9829                                                                                 haveit=
9830                 for x in $ltrpathdirs; do
9831                   if test "X$x" = "X$found_dir"; then
9832                     haveit=yes
9833                     break
9834                   fi
9835                 done
9836                 if test -z "$haveit"; then
9837                   ltrpathdirs="$ltrpathdirs $found_dir"
9838                 fi
9839                                 if test "$hardcode_direct" = yes; then
9840                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9841                 else
9842                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9843                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9844                                                             haveit=
9845                     for x in $rpathdirs; do
9846                       if test "X$x" = "X$found_dir"; then
9847                         haveit=yes
9848                         break
9849                       fi
9850                     done
9851                     if test -z "$haveit"; then
9852                       rpathdirs="$rpathdirs $found_dir"
9853                     fi
9854                   else
9855                                                                                 haveit=
9856                     for x in $LDFLAGS $LIBICONV; do
9857
9858   acl_save_prefix="$prefix"
9859   prefix="$acl_final_prefix"
9860   acl_save_exec_prefix="$exec_prefix"
9861   exec_prefix="$acl_final_exec_prefix"
9862   eval x=\"$x\"
9863   exec_prefix="$acl_save_exec_prefix"
9864   prefix="$acl_save_prefix"
9865
9866                       if test "X$x" = "X-L$found_dir"; then
9867                         haveit=yes
9868                         break
9869                       fi
9870                     done
9871                     if test -z "$haveit"; then
9872                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9873                     fi
9874                     if test "$hardcode_minus_L" != no; then
9875                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9876                     else
9877                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9878                     fi
9879                   fi
9880                 fi
9881               fi
9882             else
9883               if test "X$found_a" != "X"; then
9884                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9885               else
9886                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9887               fi
9888             fi
9889                         additional_includedir=
9890             case "$found_dir" in
9891               */lib | */lib/)
9892                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9893                 additional_includedir="$basedir/include"
9894                 ;;
9895             esac
9896             if test "X$additional_includedir" != "X"; then
9897                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9898                 haveit=
9899                 if test "X$additional_includedir" = "X/usr/local/include"; then
9900                   if test -n "$GCC"; then
9901                     case $host_os in
9902                       linux*) haveit=yes;;
9903                     esac
9904                   fi
9905                 fi
9906                 if test -z "$haveit"; then
9907                   for x in $CPPFLAGS $INCICONV; do
9908
9909   acl_save_prefix="$prefix"
9910   prefix="$acl_final_prefix"
9911   acl_save_exec_prefix="$exec_prefix"
9912   exec_prefix="$acl_final_exec_prefix"
9913   eval x=\"$x\"
9914   exec_prefix="$acl_save_exec_prefix"
9915   prefix="$acl_save_prefix"
9916
9917                     if test "X$x" = "X-I$additional_includedir"; then
9918                       haveit=yes
9919                       break
9920                     fi
9921                   done
9922                   if test -z "$haveit"; then
9923                     if test -d "$additional_includedir"; then
9924                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9925                     fi
9926                   fi
9927                 fi
9928               fi
9929             fi
9930                         if test -n "$found_la"; then
9931                                                         save_libdir="$libdir"
9932               case "$found_la" in
9933                 */* | *\\*) . "$found_la" ;;
9934                 *) . "./$found_la" ;;
9935               esac
9936               libdir="$save_libdir"
9937                             for dep in $dependency_libs; do
9938                 case "$dep" in
9939                   -L*)
9940                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9941                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9942                       haveit=
9943                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9944                         if test -n "$GCC"; then
9945                           case $host_os in
9946                             linux*) haveit=yes;;
9947                           esac
9948                         fi
9949                       fi
9950                       if test -z "$haveit"; then
9951                         haveit=
9952                         for x in $LDFLAGS $LIBICONV; do
9953
9954   acl_save_prefix="$prefix"
9955   prefix="$acl_final_prefix"
9956   acl_save_exec_prefix="$exec_prefix"
9957   exec_prefix="$acl_final_exec_prefix"
9958   eval x=\"$x\"
9959   exec_prefix="$acl_save_exec_prefix"
9960   prefix="$acl_save_prefix"
9961
9962                           if test "X$x" = "X-L$additional_libdir"; then
9963                             haveit=yes
9964                             break
9965                           fi
9966                         done
9967                         if test -z "$haveit"; then
9968                           if test -d "$additional_libdir"; then
9969                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9970                           fi
9971                         fi
9972                         haveit=
9973                         for x in $LDFLAGS $LTLIBICONV; do
9974
9975   acl_save_prefix="$prefix"
9976   prefix="$acl_final_prefix"
9977   acl_save_exec_prefix="$exec_prefix"
9978   exec_prefix="$acl_final_exec_prefix"
9979   eval x=\"$x\"
9980   exec_prefix="$acl_save_exec_prefix"
9981   prefix="$acl_save_prefix"
9982
9983                           if test "X$x" = "X-L$additional_libdir"; then
9984                             haveit=yes
9985                             break
9986                           fi
9987                         done
9988                         if test -z "$haveit"; then
9989                           if test -d "$additional_libdir"; then
9990                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9991                           fi
9992                         fi
9993                       fi
9994                     fi
9995                     ;;
9996                   -R*)
9997                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9998                     if test "$enable_rpath" != no; then
9999                                                                   haveit=
10000                       for x in $rpathdirs; do
10001                         if test "X$x" = "X$dir"; then
10002                           haveit=yes
10003                           break
10004                         fi
10005                       done
10006                       if test -z "$haveit"; then
10007                         rpathdirs="$rpathdirs $dir"
10008                       fi
10009                                                                   haveit=
10010                       for x in $ltrpathdirs; do
10011                         if test "X$x" = "X$dir"; then
10012                           haveit=yes
10013                           break
10014                         fi
10015                       done
10016                       if test -z "$haveit"; then
10017                         ltrpathdirs="$ltrpathdirs $dir"
10018                       fi
10019                     fi
10020                     ;;
10021                   -l*)
10022                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10023                     ;;
10024                   *.la)
10025                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10026                     ;;
10027                   *)
10028                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10029                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10030                     ;;
10031                 esac
10032               done
10033             fi
10034           else
10035                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10036             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10037           fi
10038         fi
10039       fi
10040     done
10041   done
10042   if test "X$rpathdirs" != "X"; then
10043     if test -n "$hardcode_libdir_separator"; then
10044                         alldirs=
10045       for found_dir in $rpathdirs; do
10046         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10047       done
10048             acl_save_libdir="$libdir"
10049       libdir="$alldirs"
10050       eval flag=\"$hardcode_libdir_flag_spec\"
10051       libdir="$acl_save_libdir"
10052       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10053     else
10054             for found_dir in $rpathdirs; do
10055         acl_save_libdir="$libdir"
10056         libdir="$found_dir"
10057         eval flag=\"$hardcode_libdir_flag_spec\"
10058         libdir="$acl_save_libdir"
10059         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10060       done
10061     fi
10062   fi
10063   if test "X$ltrpathdirs" != "X"; then
10064             for found_dir in $ltrpathdirs; do
10065       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10066     done
10067   fi
10068
10069
10070 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10071   ac_ext=cpp
10072 ac_cpp='$CXXCPP $CPPFLAGS'
10073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10076
10077
10078
10079
10080
10081
10082           am_save_CPPFLAGS="$CPPFLAGS"
10083
10084   for element in $INCICONV; do
10085     haveit=
10086     for x in $CPPFLAGS; do
10087
10088   acl_save_prefix="$prefix"
10089   prefix="$acl_final_prefix"
10090   acl_save_exec_prefix="$exec_prefix"
10091   exec_prefix="$acl_final_exec_prefix"
10092   eval x=\"$x\"
10093   exec_prefix="$acl_save_exec_prefix"
10094   prefix="$acl_save_prefix"
10095
10096       if test "X$x" = "X$element"; then
10097         haveit=yes
10098         break
10099       fi
10100     done
10101     if test -z "$haveit"; then
10102       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10103     fi
10104   done
10105
10106
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10108 $as_echo_n "checking for iconv... " >&6; }
10109 if test "${am_cv_func_iconv+set}" = set; then :
10110   $as_echo_n "(cached) " >&6
10111 else
10112
10113     am_cv_func_iconv="no, consider installing GNU libiconv"
10114     am_cv_lib_iconv=no
10115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h.  */
10117 #include <stdlib.h>
10118 #include <iconv.h>
10119 int
10120 main ()
10121 {
10122 iconv_t cd = iconv_open("","");
10123        iconv(cd,NULL,NULL,NULL,NULL);
10124        iconv_close(cd);
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_cxx_try_link "$LINENO"; then :
10130   am_cv_func_iconv=yes
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133     conftest$ac_exeext conftest.$ac_ext
10134     if test "$am_cv_func_iconv" != yes; then
10135       am_save_LIBS="$LIBS"
10136       LIBS="$LIBS $LIBICONV"
10137       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h.  */
10139 #include <stdlib.h>
10140 #include <iconv.h>
10141 int
10142 main ()
10143 {
10144 iconv_t cd = iconv_open("","");
10145          iconv(cd,NULL,NULL,NULL,NULL);
10146          iconv_close(cd);
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_cxx_try_link "$LINENO"; then :
10152   am_cv_lib_iconv=yes
10153         am_cv_func_iconv=yes
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156     conftest$ac_exeext conftest.$ac_ext
10157       LIBS="$am_save_LIBS"
10158     fi
10159
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10162 $as_echo "$am_cv_func_iconv" >&6; }
10163   if test "$am_cv_func_iconv" = yes; then
10164
10165 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10166
10167   fi
10168   if test "$am_cv_lib_iconv" = yes; then
10169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10170 $as_echo_n "checking how to link with libiconv... " >&6; }
10171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10172 $as_echo "$LIBICONV" >&6; }
10173   else
10174             CPPFLAGS="$am_save_CPPFLAGS"
10175     LIBICONV=
10176     LTLIBICONV=
10177   fi
10178
10179
10180
10181   if test "$am_cv_func_iconv" = yes; then
10182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10183 $as_echo_n "checking for iconv declaration... " >&6; }
10184     if test "${am_cv_proto_iconv+set}" = set; then :
10185   $as_echo_n "(cached) " >&6
10186 else
10187
10188       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h.  */
10190
10191 #include <stdlib.h>
10192 #include <iconv.h>
10193 extern
10194 #ifdef __cplusplus
10195 "C"
10196 #endif
10197 #if defined(__STDC__) || defined(__cplusplus)
10198 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10199 #else
10200 size_t iconv();
10201 #endif
10202
10203 int
10204 main ()
10205 {
10206
10207   ;
10208   return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_cxx_try_compile "$LINENO"; then :
10212   am_cv_proto_iconv_arg1=""
10213 else
10214   am_cv_proto_iconv_arg1="const"
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217       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);"
10218 fi
10219
10220     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10222          }$am_cv_proto_iconv" >&5
10223 $as_echo "${ac_t:-
10224          }$am_cv_proto_iconv" >&6; }
10225
10226 cat >>confdefs.h <<_ACEOF
10227 #define ICONV_CONST $am_cv_proto_iconv_arg1
10228 _ACEOF
10229
10230   fi
10231
10232    ac_ext=c
10233 ac_cpp='$CPP $CPPFLAGS'
10234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10237
10238 else
10239
10240
10241
10242
10243
10244           am_save_CPPFLAGS="$CPPFLAGS"
10245
10246   for element in $INCICONV; do
10247     haveit=
10248     for x in $CPPFLAGS; do
10249
10250   acl_save_prefix="$prefix"
10251   prefix="$acl_final_prefix"
10252   acl_save_exec_prefix="$exec_prefix"
10253   exec_prefix="$acl_final_exec_prefix"
10254   eval x=\"$x\"
10255   exec_prefix="$acl_save_exec_prefix"
10256   prefix="$acl_save_prefix"
10257
10258       if test "X$x" = "X$element"; then
10259         haveit=yes
10260         break
10261       fi
10262     done
10263     if test -z "$haveit"; then
10264       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10265     fi
10266   done
10267
10268
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10270 $as_echo_n "checking for iconv... " >&6; }
10271 if test "${am_cv_func_iconv+set}" = set; then :
10272   $as_echo_n "(cached) " >&6
10273 else
10274
10275     am_cv_func_iconv="no, consider installing GNU libiconv"
10276     am_cv_lib_iconv=no
10277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h.  */
10279 #include <stdlib.h>
10280 #include <iconv.h>
10281 int
10282 main ()
10283 {
10284 iconv_t cd = iconv_open("","");
10285        iconv(cd,NULL,NULL,NULL,NULL);
10286        iconv_close(cd);
10287   ;
10288   return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"; then :
10292   am_cv_func_iconv=yes
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext \
10295     conftest$ac_exeext conftest.$ac_ext
10296     if test "$am_cv_func_iconv" != yes; then
10297       am_save_LIBS="$LIBS"
10298       LIBS="$LIBS $LIBICONV"
10299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h.  */
10301 #include <stdlib.h>
10302 #include <iconv.h>
10303 int
10304 main ()
10305 {
10306 iconv_t cd = iconv_open("","");
10307          iconv(cd,NULL,NULL,NULL,NULL);
10308          iconv_close(cd);
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314   am_cv_lib_iconv=yes
10315         am_cv_func_iconv=yes
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext \
10318     conftest$ac_exeext conftest.$ac_ext
10319       LIBS="$am_save_LIBS"
10320     fi
10321
10322 fi
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10324 $as_echo "$am_cv_func_iconv" >&6; }
10325   if test "$am_cv_func_iconv" = yes; then
10326
10327 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10328
10329   fi
10330   if test "$am_cv_lib_iconv" = yes; then
10331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10332 $as_echo_n "checking how to link with libiconv... " >&6; }
10333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10334 $as_echo "$LIBICONV" >&6; }
10335   else
10336             CPPFLAGS="$am_save_CPPFLAGS"
10337     LIBICONV=
10338     LTLIBICONV=
10339   fi
10340
10341
10342
10343   if test "$am_cv_func_iconv" = yes; then
10344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10345 $as_echo_n "checking for iconv declaration... " >&6; }
10346     if test "${am_cv_proto_iconv+set}" = set; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349
10350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h.  */
10352
10353 #include <stdlib.h>
10354 #include <iconv.h>
10355 extern
10356 #ifdef __cplusplus
10357 "C"
10358 #endif
10359 #if defined(__STDC__) || defined(__cplusplus)
10360 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10361 #else
10362 size_t iconv();
10363 #endif
10364
10365 int
10366 main ()
10367 {
10368
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_compile "$LINENO"; then :
10374   am_cv_proto_iconv_arg1=""
10375 else
10376   am_cv_proto_iconv_arg1="const"
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379       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);"
10380 fi
10381
10382     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10384          }$am_cv_proto_iconv" >&5
10385 $as_echo "${ac_t:-
10386          }$am_cv_proto_iconv" >&6; }
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define ICONV_CONST $am_cv_proto_iconv_arg1
10390 _ACEOF
10391
10392   fi
10393
10394 fi
10395
10396 # Until we have in-tree GNU iconv:
10397 LIBICONV_DEP=
10398
10399
10400
10401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10402 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10403 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10404   $as_echo_n "(cached) " >&6
10405 else
10406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h.  */
10408 #include <locale.h>
10409 int
10410 main ()
10411 {
10412 return LC_MESSAGES
10413   ;
10414   return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_link "$LINENO"; then :
10418   am_cv_val_LC_MESSAGES=yes
10419 else
10420   am_cv_val_LC_MESSAGES=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423     conftest$ac_exeext conftest.$ac_ext
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10426 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10427   if test $am_cv_val_LC_MESSAGES = yes; then
10428
10429 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10430
10431   fi
10432
10433
10434
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10436 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10437 if test "${am_cv_langinfo_codeset+set}" = set; then :
10438   $as_echo_n "(cached) " >&6
10439 else
10440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h.  */
10442 #include <langinfo.h>
10443 int
10444 main ()
10445 {
10446 char* cs = nl_langinfo(CODESET);
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452   am_cv_langinfo_codeset=yes
10453 else
10454   am_cv_langinfo_codeset=no
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext \
10457     conftest$ac_exeext conftest.$ac_ext
10458
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10461 $as_echo "$am_cv_langinfo_codeset" >&6; }
10462   if test $am_cv_langinfo_codeset = yes; then
10463
10464 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10465
10466   fi
10467
10468
10469 # We will need to find libiberty.h and ansidecl.h
10470 saved_CFLAGS="$CFLAGS"
10471 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10472 saved_CXXFLAGS="$CXXFLAGS"
10473 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10474 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10475         strsignal strstr stpcpy strverscmp \
10476         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10477         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
10478 do
10479   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10481 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10482 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h.  */
10487 #undef $ac_tr_decl
10488 #define $ac_tr_decl 1
10489
10490 #include "ansidecl.h"
10491 #include "system.h"
10492
10493 int
10494 main ()
10495 {
10496 #ifndef $ac_func
10497 char *(*pfn) = (char *(*)) $ac_func ;
10498 #endif
10499   ;
10500   return 0;
10501 }
10502 _ACEOF
10503 if ac_fn_c_try_compile "$LINENO"; then :
10504   eval "gcc_cv_have_decl_$ac_func=yes"
10505 else
10506   eval "gcc_cv_have_decl_$ac_func=no"
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 fi
10510
10511 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10514 #define $ac_tr_decl 1
10515 _ACEOF
10516
10517 else
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10520 #define $ac_tr_decl 0
10521 _ACEOF
10522
10523 fi
10524
10525 done
10526
10527
10528 for ac_func in getrlimit setrlimit getrusage
10529 do
10530   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10532 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10533 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10534   $as_echo_n "(cached) " >&6
10535 else
10536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h.  */
10538 #undef $ac_tr_decl
10539 #define $ac_tr_decl 1
10540
10541 #include "ansidecl.h"
10542 #include "system.h"
10543 #ifdef HAVE_SYS_RESOURCE_H
10544 #include <sys/resource.h>
10545 #endif
10546
10547
10548 int
10549 main ()
10550 {
10551 #ifndef $ac_func
10552 char *(*pfn) = (char *(*)) $ac_func ;
10553 #endif
10554   ;
10555   return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_compile "$LINENO"; then :
10559   eval "gcc_cv_have_decl_$ac_func=yes"
10560 else
10561   eval "gcc_cv_have_decl_$ac_func=no"
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564 fi
10565
10566 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10569 #define $ac_tr_decl 1
10570 _ACEOF
10571
10572 else
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10575 #define $ac_tr_decl 0
10576 _ACEOF
10577
10578 fi
10579
10580 done
10581
10582
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h.  */
10585
10586 #include "ansidecl.h"
10587 #include "system.h"
10588 #ifdef HAVE_SYS_RESOURCE_H
10589 #include <sys/resource.h>
10590 #endif
10591
10592 int
10593 main ()
10594 {
10595 rlim_t l = 0;
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 if ac_fn_c_try_compile "$LINENO"; then :
10601
10602 else
10603
10604 $as_echo "#define rlim_t long" >>confdefs.h
10605
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608
10609 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10610 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10611 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10612 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10613 for ac_func in ldgetname
10614 do
10615   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10617 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10618 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10619   $as_echo_n "(cached) " >&6
10620 else
10621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h.  */
10623 #undef $ac_tr_decl
10624 #define $ac_tr_decl 1
10625
10626 #include "ansidecl.h"
10627 #include "system.h"
10628 #ifdef HAVE_LDFCN_H
10629 #undef FREAD
10630 #undef FWRITE
10631 #include <ldfcn.h>
10632 #endif
10633
10634
10635 int
10636 main ()
10637 {
10638 #ifndef $ac_func
10639 char *(*pfn) = (char *(*)) $ac_func ;
10640 #endif
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 if ac_fn_c_try_compile "$LINENO"; then :
10646   eval "gcc_cv_have_decl_$ac_func=yes"
10647 else
10648   eval "gcc_cv_have_decl_$ac_func=no"
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 fi
10652
10653 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10655 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10656 #define $ac_tr_decl 1
10657 _ACEOF
10658
10659 else
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10662 #define $ac_tr_decl 0
10663 _ACEOF
10664
10665 fi
10666
10667 done
10668
10669
10670 for ac_func in times
10671 do
10672   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10674 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10675 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h.  */
10680 #undef $ac_tr_decl
10681 #define $ac_tr_decl 1
10682
10683 #include "ansidecl.h"
10684 #include "system.h"
10685 #ifdef HAVE_SYS_TIMES_H
10686 #include <sys/times.h>
10687 #endif
10688
10689
10690 int
10691 main ()
10692 {
10693 #ifndef $ac_func
10694 char *(*pfn) = (char *(*)) $ac_func ;
10695 #endif
10696   ;
10697   return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_compile "$LINENO"; then :
10701   eval "gcc_cv_have_decl_$ac_func=yes"
10702 else
10703   eval "gcc_cv_have_decl_$ac_func=no"
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 fi
10707
10708 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10710 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10711 #define $ac_tr_decl 1
10712 _ACEOF
10713
10714 else
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10717 #define $ac_tr_decl 0
10718 _ACEOF
10719
10720 fi
10721
10722 done
10723
10724
10725 for ac_func in sigaltstack
10726 do
10727   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10729 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10730 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10731   $as_echo_n "(cached) " >&6
10732 else
10733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h.  */
10735 #undef $ac_tr_decl
10736 #define $ac_tr_decl 1
10737
10738 #include "ansidecl.h"
10739 #include "system.h"
10740 #include <signal.h>
10741
10742
10743 int
10744 main ()
10745 {
10746 #ifndef $ac_func
10747 char *(*pfn) = (char *(*)) $ac_func ;
10748 #endif
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754   eval "gcc_cv_have_decl_$ac_func=yes"
10755 else
10756   eval "gcc_cv_have_decl_$ac_func=no"
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 fi
10760
10761 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10764 #define $ac_tr_decl 1
10765 _ACEOF
10766
10767 else
10768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10770 #define $ac_tr_decl 0
10771 _ACEOF
10772
10773 fi
10774
10775 done
10776
10777
10778 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10779 # prototype.
10780 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10781   ac_ext=cpp
10782 ac_cpp='$CXXCPP $CPPFLAGS'
10783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10786
10787    for ac_func in madvise
10788 do
10789   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10791 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10792 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10793   $as_echo_n "(cached) " >&6
10794 else
10795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h.  */
10797 #undef $ac_tr_decl
10798 #define $ac_tr_decl 1
10799
10800      #include "ansidecl.h"
10801      #include "system.h"
10802
10803
10804 int
10805 main ()
10806 {
10807 #ifndef $ac_func
10808 char *(*pfn) = (char *(*)) $ac_func ;
10809 #endif
10810   ;
10811   return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_cxx_try_compile "$LINENO"; then :
10815   eval "gcc_cv_have_decl_$ac_func=yes"
10816 else
10817   eval "gcc_cv_have_decl_$ac_func=no"
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 fi
10821
10822 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10824 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10825 #define $ac_tr_decl 1
10826 _ACEOF
10827
10828 else
10829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10831 #define $ac_tr_decl 0
10832 _ACEOF
10833
10834 fi
10835
10836 done
10837
10838    ac_ext=c
10839 ac_cpp='$CPP $CPPFLAGS'
10840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10843
10844 else
10845   for ac_func in madvise
10846 do
10847   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10849 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10850 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10851   $as_echo_n "(cached) " >&6
10852 else
10853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h.  */
10855 #undef $ac_tr_decl
10856 #define $ac_tr_decl 1
10857
10858      #include "ansidecl.h"
10859      #include "system.h"
10860
10861
10862 int
10863 main ()
10864 {
10865 #ifndef $ac_func
10866 char *(*pfn) = (char *(*)) $ac_func ;
10867 #endif
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_compile "$LINENO"; then :
10873   eval "gcc_cv_have_decl_$ac_func=yes"
10874 else
10875   eval "gcc_cv_have_decl_$ac_func=no"
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878 fi
10879
10880 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10882 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10883 #define $ac_tr_decl 1
10884 _ACEOF
10885
10886 else
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10889 #define $ac_tr_decl 0
10890 _ACEOF
10891
10892 fi
10893
10894 done
10895
10896
10897 fi
10898
10899 # More time-related stuff.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10901 $as_echo_n "checking for struct tms... " >&6; }
10902 if test "${ac_cv_struct_tms+set}" = set; then :
10903   $as_echo_n "(cached) " >&6
10904 else
10905
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h.  */
10908
10909 #include "ansidecl.h"
10910 #include "system.h"
10911 #ifdef HAVE_SYS_TIMES_H
10912 #include <sys/times.h>
10913 #endif
10914
10915 int
10916 main ()
10917 {
10918 struct tms tms;
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_compile "$LINENO"; then :
10924   ac_cv_struct_tms=yes
10925 else
10926   ac_cv_struct_tms=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10931 $as_echo "$ac_cv_struct_tms" >&6; }
10932 if test $ac_cv_struct_tms = yes; then
10933
10934 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10935
10936 fi
10937
10938 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10939 # revisit after autoconf 2.50.
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10941 $as_echo_n "checking for clock_t... " >&6; }
10942 if test "${gcc_cv_type_clock_t+set}" = set; then :
10943   $as_echo_n "(cached) " >&6
10944 else
10945
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h.  */
10948
10949 #include "ansidecl.h"
10950 #include "system.h"
10951
10952 int
10953 main ()
10954 {
10955 clock_t x;
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 if ac_fn_c_try_compile "$LINENO"; then :
10961   gcc_cv_type_clock_t=yes
10962 else
10963   gcc_cv_type_clock_t=no
10964 fi
10965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10968 $as_echo "$gcc_cv_type_clock_t" >&6; }
10969 if test $gcc_cv_type_clock_t = yes; then
10970
10971 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10972
10973 fi
10974
10975 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10976 CFLAGS="$saved_CFLAGS"
10977 CXXFLAGS="$saved_CXXFLAGS"
10978
10979 # Check whether --enable-initfini-array was given.
10980 if test "${enable_initfini_array+set}" = set; then :
10981   enableval=$enable_initfini_array;
10982 else
10983
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10985 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10986 if test "${gcc_cv_initfini_array+set}" = set; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10990     if test "$cross_compiling" = yes; then :
10991   gcc_cv_initfini_array=no
10992 else
10993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h.  */
10995
10996 #ifndef __ELF__
10997 #error Not an ELF OS
10998 #endif
10999 #ifdef __ia64__
11000 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
11001    if it can be used.  */
11002 static int x = -1;
11003 int main (void) { return x; }
11004 int foo (void) { x = 0; }
11005 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11006 #else
11007 extern void abort ();
11008 static int count;
11009
11010 static void
11011 init1005 ()
11012 {
11013   if (count != 0)
11014     abort ();
11015   count = 1005;
11016 }
11017 void (*const init_array1005) ()
11018   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
11019   = { init1005 };
11020 static void
11021 fini1005 ()
11022 {
11023   if (count != 1005)
11024     abort ();
11025 }
11026 void (*const fini_array1005) ()
11027   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
11028   = { fini1005 };
11029
11030 static void
11031 ctor1007 ()
11032 {
11033   if (count != 1005)
11034     abort ();
11035   count = 1007;
11036 }
11037 void (*const ctors1007) ()
11038   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
11039   = { ctor1007 };
11040 static void
11041 dtor1007 ()
11042 {
11043   if (count != 1007)
11044     abort ();
11045   count = 1005;
11046 }
11047 void (*const dtors1007) ()
11048   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11049   = { dtor1007 };
11050
11051 static void
11052 init65530 ()
11053 {
11054   if (count != 1007)
11055     abort ();
11056   count = 65530;
11057 }
11058 void (*const init_array65530) ()
11059   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11060   = { init65530 };
11061 static void
11062 fini65530 ()
11063 {
11064   if (count != 65530)
11065     abort ();
11066   count = 1007;
11067 }
11068 void (*const fini_array65530) ()
11069   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11070   = { fini65530 };
11071
11072 static void
11073 ctor65535 ()
11074 {
11075   if (count != 65530)
11076     abort ();
11077   count = 65535;
11078 }
11079 void (*const ctors65535) ()
11080   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11081   = { ctor65535 };
11082 static void
11083 dtor65535 ()
11084 {
11085   if (count != 65535)
11086     abort ();
11087   count = 65530;
11088 }
11089 void (*const dtors65535) ()
11090   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11091   = { dtor65535 };
11092
11093 int
11094 main ()
11095 {
11096   if (count != 65535)
11097     abort ();
11098   return 0;
11099 }
11100 #endif
11101
11102 _ACEOF
11103 if ac_fn_c_try_run "$LINENO"; then :
11104   gcc_cv_initfini_array=yes
11105 else
11106   gcc_cv_initfini_array=no
11107 fi
11108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11109   conftest.$ac_objext conftest.beam conftest.$ac_ext
11110 fi
11111
11112    else
11113      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11114 $as_echo_n "checking cross compile... guessing... " >&6; }
11115      gcc_cv_initfini_array=no
11116    fi
11117 fi
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11119 $as_echo "$gcc_cv_initfini_array" >&6; }
11120   enable_initfini_array=$gcc_cv_initfini_array
11121
11122 fi
11123
11124 if test $enable_initfini_array = yes; then
11125
11126 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11127
11128 fi
11129
11130 # mkdir takes a single argument on some systems.
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11132 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11133 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11134   $as_echo_n "(cached) " >&6
11135 else
11136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h.  */
11138
11139 #include <sys/types.h>
11140 #ifdef HAVE_SYS_STAT_H
11141 # include <sys/stat.h>
11142 #endif
11143 #ifdef HAVE_UNISTD_H
11144 # include <unistd.h>
11145 #endif
11146 #ifdef HAVE_DIRECT_H
11147 # include <direct.h>
11148 #endif
11149 int
11150 main ()
11151 {
11152 mkdir ("foo", 0);
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 if ac_fn_c_try_compile "$LINENO"; then :
11158   gcc_cv_mkdir_takes_one_arg=no
11159 else
11160   gcc_cv_mkdir_takes_one_arg=yes
11161 fi
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11165 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11166 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11167
11168 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11169
11170 fi
11171
11172
11173 # File extensions
11174 manext='.1'
11175 objext='.o'
11176
11177
11178
11179 # With Setjmp/Longjmp based exception handling.
11180 # Check whether --enable-sjlj-exceptions was given.
11181 if test "${enable_sjlj_exceptions+set}" = set; then :
11182   enableval=$enable_sjlj_exceptions; case $target in
11183   *-*-hpux10*)
11184     if test $enableval != yes; then
11185       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11186 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11187       enableval=yes
11188     fi
11189     ;;
11190 esac
11191 force_sjlj_exceptions=yes
11192 else
11193   case $target in
11194   *-*-hpux10*)
11195     force_sjlj_exceptions=yes
11196     enableval=yes
11197     ;;
11198   *)
11199     force_sjlj_exceptions=no
11200     ;;
11201 esac
11202 fi
11203
11204 if test $force_sjlj_exceptions = yes; then
11205   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11206
11207 cat >>confdefs.h <<_ACEOF
11208 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11209 _ACEOF
11210
11211 fi
11212
11213 # --------------------------------------------------------
11214 # Build, host, and target specific configuration fragments
11215 # --------------------------------------------------------
11216
11217 # Collect build-machine-specific information.
11218 . ${srcdir}/config.build
11219
11220 # Collect host-machine-specific information.
11221 . ${srcdir}/config.host
11222
11223 target_gtfiles=
11224
11225 # Collect target-machine-specific information.
11226 . ${srcdir}/config.gcc
11227
11228 extra_objs="${host_extra_objs} ${extra_objs}"
11229 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11230
11231 # Default the target-machine variables that were not explicitly set.
11232 if test x"$tm_file" = x
11233 then tm_file=$cpu_type/$cpu_type.h; fi
11234
11235 if test x"$extra_headers" = x
11236 then extra_headers=; fi
11237
11238 if test x$md_file = x
11239 then md_file=$cpu_type/$cpu_type.md; fi
11240
11241 if test x$out_file = x
11242 then out_file=$cpu_type/$cpu_type.c; fi
11243
11244 if test x"$tmake_file" = x
11245 then tmake_file=$cpu_type/t-$cpu_type
11246 fi
11247
11248 if test x"$dwarf2" = xyes
11249 then tm_file="$tm_file tm-dwarf2.h"
11250 fi
11251
11252 # Say what files are being used for the output code and MD file.
11253 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11254 echo "Using \`$srcdir/config/$md_file' as machine description file."
11255
11256 # If any of the xm_file variables contain nonexistent files, warn
11257 # about them and drop them.
11258
11259 bx=
11260 for x in $build_xm_file; do
11261   if    test -f $srcdir/config/$x
11262   then      bx="$bx $x"
11263   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11264 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11265   fi
11266 done
11267 build_xm_file="$bx"
11268
11269 hx=
11270 for x in $host_xm_file; do
11271   if    test -f $srcdir/config/$x
11272   then      hx="$hx $x"
11273   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11274 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11275   fi
11276 done
11277 host_xm_file="$hx"
11278
11279 tx=
11280 for x in $xm_file; do
11281   if    test -f $srcdir/config/$x
11282   then      tx="$tx $x"
11283   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11284 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11285   fi
11286 done
11287 xm_file="$tx"
11288
11289 count=a
11290 for f in $tm_file; do
11291         count=${count}x
11292 done
11293 if test $count = ax; then
11294         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11295 else
11296         echo "Using the following target machine macro files:"
11297         for f in $tm_file; do
11298                 echo "  $srcdir/config/$f"
11299         done
11300 fi
11301
11302 if test x$need_64bit_hwint = xyes; then
11303
11304 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11305
11306 fi
11307
11308 if test x$use_long_long_for_widest_fast_int = xyes; then
11309
11310 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11311
11312 fi
11313
11314 count=a
11315 for f in $host_xm_file; do
11316         count=${count}x
11317 done
11318 if test $count = a; then
11319         :
11320 elif test $count = ax; then
11321         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11322 else
11323         echo "Using the following host machine macro files:"
11324         for f in $host_xm_file; do
11325                 echo "  $srcdir/config/$f"
11326         done
11327 fi
11328 echo "Using ${out_host_hook_obj} for host machine hooks."
11329
11330 if test "$host_xm_file" != "$build_xm_file"; then
11331         count=a
11332         for f in $build_xm_file; do
11333                 count=${count}x
11334         done
11335         if test $count = a; then
11336                 :
11337         elif test $count = ax; then
11338                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11339         else
11340                 echo "Using the following build machine macro files:"
11341                 for f in $build_xm_file; do
11342                         echo "  $srcdir/config/$f"
11343                 done
11344         fi
11345 fi
11346
11347 if test -n "$configured_native_system_header_dir"; then
11348   native_system_header_dir=$configured_native_system_header_dir
11349 fi
11350 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11351
11352
11353 case ${host} in
11354   powerpc*-*-darwin*)
11355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11356 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11357 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11358   $as_echo_n "(cached) " >&6
11359 else
11360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 #include <sys/cdefs.h>
11364 #include <sys/signal.h>
11365 #include <ucontext.h>
11366 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11367
11368 _ACEOF
11369 if ac_fn_c_try_compile "$LINENO"; then :
11370   gcc_cv_mcontext_underscores=no
11371 else
11372   gcc_cv_mcontext_underscores=yes
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11377 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11378       if test $gcc_cv_mcontext_underscores = yes; then
11379
11380 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11381
11382       fi
11383     ;;
11384 esac
11385
11386 # ---------
11387 # Threading
11388 # ---------
11389
11390 # Check if a valid thread package
11391 case ${enable_threads} in
11392   "" | no)
11393     # No threads
11394     target_thread_file='single'
11395     ;;
11396   yes)
11397     # default
11398     target_thread_file='single'
11399     ;;
11400   aix | dce | lynx | mipssde | posix | rtems | \
11401   single | tpf | vxworks | win32)
11402     target_thread_file=${enable_threads}
11403     ;;
11404   *)
11405     echo "${enable_threads} is an unknown thread package" 1>&2
11406     exit 1
11407     ;;
11408 esac
11409
11410 if test x${thread_file} = x; then
11411   # No thread file set by target-specific clauses in config.gcc,
11412   # so use file chosen by default logic above
11413   thread_file=${target_thread_file}
11414 fi
11415
11416 # --------
11417 # UNSORTED
11418 # --------
11419
11420 use_cxa_atexit=no
11421 if test x$enable___cxa_atexit = xyes || \
11422    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11423   if test x$host = x$target; then
11424     case $host in
11425       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11426       # keyed to flag_use_cxa_atexit
11427       *-*-mingw32*)
11428         use_cxa_atexit=yes
11429         ;;
11430       *)
11431         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11432 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11433   use_cxa_atexit=yes
11434 else
11435   echo "__cxa_atexit can't be enabled on this target"
11436 fi
11437
11438         ;;
11439     esac
11440   else
11441     # We can't check for __cxa_atexit when building a cross, so assume
11442     # it is available
11443     use_cxa_atexit=yes
11444   fi
11445   if test x$use_cxa_atexit = xyes; then
11446
11447 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11448
11449   fi
11450 fi
11451
11452 # Look for a file containing extra machine modes.
11453 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11454   extra_modes_file='$(srcdir)'/config/${extra_modes}
11455
11456
11457 cat >>confdefs.h <<_ACEOF
11458 #define EXTRA_MODES_FILE "config/$extra_modes"
11459 _ACEOF
11460
11461 fi
11462
11463 # Convert extra_options into a form suitable for Makefile use.
11464 extra_opt_files=
11465 all_opt_files=
11466 for f in $extra_options; do
11467   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11468   all_opt_files="$all_opt_files $srcdir/config/$f"
11469 done
11470
11471
11472 # auto-host.h is the file containing items generated by autoconf and is
11473 # the first file included by config.h.
11474 # If host=build, it is correct to have bconfig include auto-host.h
11475 # as well.  If host!=build, we are in error and need to do more
11476 # work to find out the build config parameters.
11477 if test x$host = x$build
11478 then
11479         build_auto=auto-host.h
11480 else
11481         # We create a subdir, then run autoconf in the subdir.
11482         # To prevent recursion we set host and build for the new
11483         # invocation of configure to the build for this invocation
11484         # of configure.
11485         tempdir=build.$$
11486         rm -rf $tempdir
11487         mkdir $tempdir
11488         cd $tempdir
11489         case ${srcdir} in
11490         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11491         *) realsrcdir=../${srcdir};;
11492         esac
11493         saved_CFLAGS="${CFLAGS}"
11494         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11495         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11496         ${realsrcdir}/configure \
11497                 --enable-languages=${enable_languages-all} \
11498                 --target=$target_alias --host=$build_alias --build=$build_alias
11499         CFLAGS="${saved_CFLAGS}"
11500
11501         # We just finished tests for the build machine, so rename
11502         # the file auto-build.h in the gcc directory.
11503         mv auto-host.h ../auto-build.h
11504         cd ..
11505         rm -rf $tempdir
11506         build_auto=auto-build.h
11507 fi
11508
11509
11510 tm_file="${tm_file} defaults.h"
11511 tm_p_file="${tm_p_file} tm-preds.h"
11512 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11513 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11514 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11515 # put this back in temporarily.
11516 xm_file="auto-host.h ansidecl.h ${xm_file}"
11517
11518 # --------
11519 # UNSORTED
11520 # --------
11521
11522 # Compile in configure arguments.
11523 if test -f configargs.h ; then
11524         # Being re-configured.
11525         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11526         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11527 else
11528         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11529 fi
11530
11531 # Double all backslashes and backslash all quotes to turn
11532 # gcc_config_arguments into a C string.
11533 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11534 $gcc_config_arguments
11535 EOF
11536 gcc_config_arguments_str=`cat conftest.out`
11537 rm -f conftest.out
11538
11539 cat > configargs.h <<EOF
11540 /* Generated automatically. */
11541 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11542 static const char thread_model[] = "$thread_file";
11543
11544 static const struct {
11545   const char *name, *value;
11546 } configure_default_options[] = $configure_default_options;
11547 EOF
11548
11549 gcc_BASEVER=`cat $srcdir/BASE-VER`
11550 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11551 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11552 if test -f $srcdir/REVISION ; then
11553         gcc_REVISION=`cat $srcdir/REVISION`
11554 else
11555         gcc_REVISION=""
11556 fi
11557 cat > plugin-version.h <<EOF
11558 #include "configargs.h"
11559
11560 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11561 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11562 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11563 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11564
11565 static char basever[] = "$gcc_BASEVER";
11566 static char datestamp[] = "$gcc_DATESTAMP";
11567 static char devphase[] = "$gcc_DEVPHASE";
11568 static char revision[] = "$gcc_REVISION";
11569
11570 /* FIXME plugins: We should make the version information more precise.
11571    One way to do is to add a checksum. */
11572
11573 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11574                                                 devphase, revision,
11575                                                 configuration_arguments};
11576 EOF
11577
11578 # Internationalization
11579 # If we haven't got the data from the intl directory,
11580 # assume NLS is disabled.
11581 USE_NLS=no
11582 LIBINTL=
11583 LIBINTL_DEP=
11584 INCINTL=
11585 XGETTEXT=
11586 GMSGFMT=
11587 POSUB=
11588
11589 if test -f  ../intl/config.intl; then
11590   .  ../intl/config.intl
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11593 $as_echo_n "checking whether NLS is requested... " >&6; }
11594 if test x"$USE_NLS" != xyes; then
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597 else
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; }
11600
11601 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11602
11603
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11605 $as_echo_n "checking for catalogs to be installed... " >&6; }
11606   # Look for .po and .gmo files in the source directory.
11607   CATALOGS=
11608   XLINGUAS=
11609   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11610     # If there aren't any .gmo files the shell will give us the
11611     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11612     # weeded out.
11613     case "$cat" in *\**)
11614       continue;;
11615     esac
11616     # The quadruple backslash is collapsed to a double backslash
11617     # by the backticks, then collapsed again by the double quotes,
11618     # leaving us with one backslash in the sed expression (right
11619     # before the dot that mustn't act as a wildcard).
11620     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11621     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11622     # The user is allowed to set LINGUAS to a list of languages to
11623     # install catalogs for.  If it's empty that means "all of them."
11624     if test "x$LINGUAS" = x; then
11625       CATALOGS="$CATALOGS $cat"
11626       XLINGUAS="$XLINGUAS $lang"
11627     else
11628       case "$LINGUAS" in *$lang*)
11629         CATALOGS="$CATALOGS $cat"
11630         XLINGUAS="$XLINGUAS $lang"
11631         ;;
11632       esac
11633     fi
11634   done
11635   LINGUAS="$XLINGUAS"
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11637 $as_echo "$LINGUAS" >&6; }
11638
11639
11640     DATADIRNAME=share
11641
11642   INSTOBJEXT=.mo
11643
11644   GENCAT=gencat
11645
11646   CATOBJEXT=.gmo
11647
11648 fi
11649
11650 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11651 # -liconv on the link line twice.
11652 case "$LIBINTL" in *$LIBICONV*)
11653         LIBICONV= ;;
11654 esac
11655
11656 # Check whether --enable-secureplt was given.
11657 if test "${enable_secureplt+set}" = set; then :
11658   enableval=$enable_secureplt;
11659 fi
11660
11661
11662 # Check whether --enable-leading-mingw64-underscores was given.
11663 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11664   enableval=$enable_leading_mingw64_underscores;
11665 fi
11666
11667 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11668
11669 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11670
11671 fi
11672
11673 # Check whether --enable-cld was given.
11674 if test "${enable_cld+set}" = set; then :
11675   enableval=$enable_cld;
11676 else
11677   enable_cld=no
11678 fi
11679
11680
11681 # Check whether --enable-frame-pointer was given.
11682 if test "${enable_frame_pointer+set}" = set; then :
11683   enableval=$enable_frame_pointer;
11684 else
11685
11686 case $target_os in
11687 linux* | darwin[8912]*)
11688   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11689   # DWARF2.
11690   enable_frame_pointer=no
11691   ;;
11692 *)
11693   enable_frame_pointer=yes
11694   ;;
11695 esac
11696
11697 fi
11698
11699
11700 # Windows32 Registry support for specifying GCC installation paths.
11701 # Check whether --enable-win32-registry was given.
11702 if test "${enable_win32_registry+set}" = set; then :
11703   enableval=$enable_win32_registry;
11704 fi
11705
11706
11707 case $host_os in
11708   win32 | pe | cygwin* | mingw32* | uwin*)
11709     if test "x$enable_win32_registry" != xno; then
11710       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11711 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11712 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11713   $as_echo_n "(cached) " >&6
11714 else
11715   ac_func_search_save_LIBS=$LIBS
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h.  */
11718
11719 /* Override any GCC internal prototype to avoid an error.
11720    Use char because int might match the return type of a GCC
11721    builtin and then its argument prototype would still apply.  */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 char RegOpenKeyExA ();
11726 int
11727 main ()
11728 {
11729 return RegOpenKeyExA ();
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 for ac_lib in '' advapi32; do
11735   if test -z "$ac_lib"; then
11736     ac_res="none required"
11737   else
11738     ac_res=-l$ac_lib
11739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11740   fi
11741   if ac_fn_c_try_link "$LINENO"; then :
11742   ac_cv_search_RegOpenKeyExA=$ac_res
11743 fi
11744 rm -f core conftest.err conftest.$ac_objext \
11745     conftest$ac_exeext
11746   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11747   break
11748 fi
11749 done
11750 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11751
11752 else
11753   ac_cv_search_RegOpenKeyExA=no
11754 fi
11755 rm conftest.$ac_ext
11756 LIBS=$ac_func_search_save_LIBS
11757 fi
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11759 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11760 ac_res=$ac_cv_search_RegOpenKeyExA
11761 if test "$ac_res" != no; then :
11762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11763
11764 else
11765   enable_win32_registry=no
11766 fi
11767
11768     fi
11769
11770     if test "x$enable_win32_registry" != xno; then
11771
11772 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11773
11774
11775       if test "x$enable_win32_registry" != xyes \
11776          && test "x$enable_win32_registry" != x; then
11777
11778 cat >>confdefs.h <<_ACEOF
11779 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11780 _ACEOF
11781
11782       fi
11783     fi
11784   ;;
11785 esac
11786
11787 # Get an absolute path to the GCC top-level source directory
11788 holddir=`${PWDCMD-pwd}`
11789 cd $srcdir
11790 topdir=`${PWDCMD-pwd}`
11791 cd $holddir
11792
11793 # Conditionalize the makefile for this host machine.
11794 xmake_file=
11795 for f in ${host_xmake_file}
11796 do
11797         if test -f ${srcdir}/config/$f
11798         then
11799                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11800         fi
11801 done
11802
11803 # Conditionalize the makefile for this target machine.
11804 tmake_file_=
11805 for f in ${tmake_file}
11806 do
11807         if test -f ${srcdir}/config/$f
11808         then
11809                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11810         fi
11811 done
11812 tmake_file="${tmake_file_}"
11813
11814 out_object_file=`basename $out_file .c`.o
11815 common_out_object_file=`basename $common_out_file .c`.o
11816
11817 tm_file_list="options.h"
11818 tm_include_list="options.h insn-constants.h"
11819 for f in $tm_file; do
11820   case $f in
11821     ./* )
11822        f=`echo $f | sed 's/^..//'`
11823        tm_file_list="${tm_file_list} $f"
11824        tm_include_list="${tm_include_list} $f"
11825        ;;
11826     defaults.h )
11827        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11828        tm_include_list="${tm_include_list} $f"
11829        ;;
11830     * )
11831        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11832        tm_include_list="${tm_include_list} config/$f"
11833        ;;
11834   esac
11835 done
11836
11837 tm_p_file_list=
11838 tm_p_include_list=
11839 for f in $tm_p_file; do
11840   case $f in
11841     tm-preds.h )
11842        tm_p_file_list="${tm_p_file_list} $f"
11843        tm_p_include_list="${tm_p_include_list} $f"
11844        ;;
11845     * )
11846        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11847        tm_p_include_list="${tm_p_include_list} config/$f"
11848   esac
11849 done
11850
11851 xm_file_list=
11852 xm_include_list=
11853 for f in $xm_file; do
11854   case $f in
11855     ansidecl.h )
11856        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11857        xm_include_list="${xm_include_list} $f"
11858        ;;
11859     auto-host.h )
11860        xm_file_list="${xm_file_list} $f"
11861        xm_include_list="${xm_include_list} $f"
11862        ;;
11863     * )
11864        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11865        xm_include_list="${xm_include_list} config/$f"
11866        ;;
11867   esac
11868 done
11869
11870 host_xm_file_list=
11871 host_xm_include_list=
11872 for f in $host_xm_file; do
11873   case $f in
11874     ansidecl.h )
11875        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11876        host_xm_include_list="${host_xm_include_list} $f"
11877        ;;
11878     auto-host.h )
11879        host_xm_file_list="${host_xm_file_list} $f"
11880        host_xm_include_list="${host_xm_include_list} $f"
11881        ;;
11882     * )
11883        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11884        host_xm_include_list="${host_xm_include_list} config/$f"
11885        ;;
11886   esac
11887 done
11888
11889 build_xm_file_list=
11890 for f in $build_xm_file; do
11891   case $f in
11892     ansidecl.h )
11893        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11894        build_xm_include_list="${build_xm_include_list} $f"
11895        ;;
11896     auto-build.h | auto-host.h )
11897        build_xm_file_list="${build_xm_file_list} $f"
11898        build_xm_include_list="${build_xm_include_list} $f"
11899        ;;
11900     * )
11901        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11902        build_xm_include_list="${build_xm_include_list} config/$f"
11903        ;;
11904   esac
11905 done
11906
11907 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11908 # cross-compiler which does not use the native headers and libraries.
11909 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11910 CROSS=
11911 ALL=all.internal
11912 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11913
11914 if test "x$with_build_sysroot" != x; then
11915   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11916 else
11917   # This value is used, even on a native system, because
11918   # CROSS_SYSTEM_HEADER_DIR is just
11919   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11920   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11921 fi
11922
11923 if test x$host != x$target
11924 then
11925         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11926         ALL=all.cross
11927         SYSTEM_HEADER_DIR=$build_system_header_dir
11928         case "$host","$target" in
11929         # Darwin crosses can use the host system's libraries and headers,
11930         # because of the fat library support.  Of course, it must be the
11931         # same version of Darwin on both sides.  Allow the user to
11932         # just say --target=foo-darwin without a version number to mean
11933         # "the version on this system".
11934             *-*-darwin*,*-*-darwin*)
11935                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11936                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11937                 if test $hostos = $targetos -o $targetos = darwin ; then
11938                     CROSS=
11939                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11940                     with_headers=yes
11941                 fi
11942                 ;;
11943
11944             i?86-*-*,x86_64-*-* \
11945             | powerpc*-*-*,powerpc64*-*-*)
11946                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11947         esac
11948
11949         case $target in
11950                 *-*-mingw*)
11951                         if test "x$with_headers" = x; then
11952                                 with_headers=yes
11953                         fi
11954                         ;;
11955                 *)
11956                         ;;
11957         esac
11958 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11959         SYSTEM_HEADER_DIR=$build_system_header_dir
11960 fi
11961
11962 # If this is a cross-compiler that does not
11963 # have its own set of headers then define
11964 # inhibit_libc
11965
11966 # If this is using newlib, without having the headers available now,
11967 # then define inhibit_libc in LIBGCC2_CFLAGS.
11968 # This prevents libgcc2 from containing any code which requires libc
11969 # support.
11970 : ${inhibit_libc=false}
11971 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11972        test x$with_newlib = xyes ; } &&
11973      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11974        inhibit_libc=true
11975 fi
11976
11977
11978 # When building gcc with a cross-compiler, we need to adjust things so
11979 # that the generator programs are still built with the native compiler.
11980 # Also, we cannot run fixincludes.
11981
11982 # These are the normal (build=host) settings:
11983 CC_FOR_BUILD='$(CC)'
11984 BUILD_CFLAGS='$(ALL_CFLAGS)'
11985 BUILD_LDFLAGS='$(LDFLAGS)'
11986 STMP_FIXINC=stmp-fixinc
11987
11988 # And these apply if build != host, or we are generating coverage data
11989 if test x$build != x$host || test "x$coverage_flags" != x
11990 then
11991     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11992     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11993 fi
11994
11995 # Expand extra_headers to include complete path.
11996 # This substitutes for lots of t-* files.
11997 extra_headers_list=
11998 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11999 for file in ${extra_headers} ; do
12000   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12001 done
12002
12003 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12004 if test x"$use_gcc_tgmath" = xyes
12005 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12006 fi
12007
12008 # Define collect2 in Makefile.
12009 case $host_can_use_collect2 in
12010   no) collect2= ;;
12011   *) collect2='collect2$(exeext)' ;;
12012 esac
12013
12014
12015 # Add a definition of USE_COLLECT2 if system wants one.
12016 case $use_collect2 in
12017   no) use_collect2= ;;
12018   "") ;;
12019   *)
12020     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12021     xm_defines="${xm_defines} USE_COLLECT2"
12022     case $host_can_use_collect2 in
12023       no)
12024         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12025         ;;
12026     esac
12027     ;;
12028 esac
12029
12030
12031 cat >>confdefs.h <<_ACEOF
12032 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12033 _ACEOF
12034
12035
12036 # ---------------------------
12037 # Assembler & linker features
12038 # ---------------------------
12039
12040 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12041 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12042 # However when ld-new is first executed from the build tree, libtool will
12043 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12044 # to the build tree.  While doing this we need to use the previous-stage
12045 # linker, or we have an infinite loop.  The presence of a shell script as
12046 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12047 # the gcc/collect-ld script.  So we need to know how libtool works, or
12048 # exec-tool will fail.
12049
12050
12051 case `pwd` in
12052   *\ * | *\     *)
12053     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12054 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12055 esac
12056
12057
12058
12059 macro_version='2.2.7a'
12060 macro_revision='1.3134'
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074 ltmain="$ac_aux_dir/ltmain.sh"
12075
12076 # Backslashify metacharacters that are still active within
12077 # double-quoted strings.
12078 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12079
12080 # Same as above, but do not quote variable references.
12081 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12082
12083 # Sed substitution to delay expansion of an escaped shell variable in a
12084 # double_quote_subst'ed string.
12085 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12086
12087 # Sed substitution to delay expansion of an escaped single quote.
12088 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12089
12090 # Sed substitution to avoid accidental globbing in evaled expressions
12091 no_glob_subst='s/\*/\\\*/g'
12092
12093 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12094 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12095 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12096
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12098 $as_echo_n "checking how to print strings... " >&6; }
12099 # Test print first, because it will be a builtin if present.
12100 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12101    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12102   ECHO='print -r --'
12103 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12104   ECHO='printf %s\n'
12105 else
12106   # Use this function as a fallback that always works.
12107   func_fallback_echo ()
12108   {
12109     eval 'cat <<_LTECHO_EOF
12110 $1
12111 _LTECHO_EOF'
12112   }
12113   ECHO='func_fallback_echo'
12114 fi
12115
12116 # func_echo_all arg...
12117 # Invoke $ECHO with all args, space-separated.
12118 func_echo_all ()
12119 {
12120     $ECHO ""
12121 }
12122
12123 case "$ECHO" in
12124   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12125 $as_echo "printf" >&6; } ;;
12126   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12127 $as_echo "print -r" >&6; } ;;
12128   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12129 $as_echo "cat" >&6; } ;;
12130 esac
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12146 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12147 if test "${ac_cv_path_SED+set}" = set; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12151      for ac_i in 1 2 3 4 5 6 7; do
12152        ac_script="$ac_script$as_nl$ac_script"
12153      done
12154      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12155      { ac_script=; unset ac_script;}
12156      if test -z "$SED"; then
12157   ac_path_SED_found=false
12158   # Loop through the user's path and test for each of PROGNAME-LIST
12159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12161 do
12162   IFS=$as_save_IFS
12163   test -z "$as_dir" && as_dir=.
12164     for ac_prog in sed gsed; do
12165     for ac_exec_ext in '' $ac_executable_extensions; do
12166       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12167       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12168 # Check for GNU ac_path_SED and select it if it is found.
12169   # Check for GNU $ac_path_SED
12170 case `"$ac_path_SED" --version 2>&1` in
12171 *GNU*)
12172   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12173 *)
12174   ac_count=0
12175   $as_echo_n 0123456789 >"conftest.in"
12176   while :
12177   do
12178     cat "conftest.in" "conftest.in" >"conftest.tmp"
12179     mv "conftest.tmp" "conftest.in"
12180     cp "conftest.in" "conftest.nl"
12181     $as_echo '' >> "conftest.nl"
12182     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12184     as_fn_arith $ac_count + 1 && ac_count=$as_val
12185     if test $ac_count -gt ${ac_path_SED_max-0}; then
12186       # Best one so far, save it but keep looking for a better one
12187       ac_cv_path_SED="$ac_path_SED"
12188       ac_path_SED_max=$ac_count
12189     fi
12190     # 10*(2^10) chars as input seems more than enough
12191     test $ac_count -gt 10 && break
12192   done
12193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12194 esac
12195
12196       $ac_path_SED_found && break 3
12197     done
12198   done
12199   done
12200 IFS=$as_save_IFS
12201   if test -z "$ac_cv_path_SED"; then
12202     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12203   fi
12204 else
12205   ac_cv_path_SED=$SED
12206 fi
12207
12208 fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12210 $as_echo "$ac_cv_path_SED" >&6; }
12211  SED="$ac_cv_path_SED"
12212   rm -f conftest.sed
12213
12214 test -z "$SED" && SED=sed
12215 Xsed="$SED -e 1s/^X//"
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12228 $as_echo_n "checking for fgrep... " >&6; }
12229 if test "${ac_cv_path_FGREP+set}" = set; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12233    then ac_cv_path_FGREP="$GREP -F"
12234    else
12235      if test -z "$FGREP"; then
12236   ac_path_FGREP_found=false
12237   # Loop through the user's path and test for each of PROGNAME-LIST
12238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12240 do
12241   IFS=$as_save_IFS
12242   test -z "$as_dir" && as_dir=.
12243     for ac_prog in fgrep; do
12244     for ac_exec_ext in '' $ac_executable_extensions; do
12245       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12246       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12247 # Check for GNU ac_path_FGREP and select it if it is found.
12248   # Check for GNU $ac_path_FGREP
12249 case `"$ac_path_FGREP" --version 2>&1` in
12250 *GNU*)
12251   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12252 *)
12253   ac_count=0
12254   $as_echo_n 0123456789 >"conftest.in"
12255   while :
12256   do
12257     cat "conftest.in" "conftest.in" >"conftest.tmp"
12258     mv "conftest.tmp" "conftest.in"
12259     cp "conftest.in" "conftest.nl"
12260     $as_echo 'FGREP' >> "conftest.nl"
12261     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12262     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12263     as_fn_arith $ac_count + 1 && ac_count=$as_val
12264     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12265       # Best one so far, save it but keep looking for a better one
12266       ac_cv_path_FGREP="$ac_path_FGREP"
12267       ac_path_FGREP_max=$ac_count
12268     fi
12269     # 10*(2^10) chars as input seems more than enough
12270     test $ac_count -gt 10 && break
12271   done
12272   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12273 esac
12274
12275       $ac_path_FGREP_found && break 3
12276     done
12277   done
12278   done
12279 IFS=$as_save_IFS
12280   if test -z "$ac_cv_path_FGREP"; then
12281     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12282   fi
12283 else
12284   ac_cv_path_FGREP=$FGREP
12285 fi
12286
12287    fi
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12290 $as_echo "$ac_cv_path_FGREP" >&6; }
12291  FGREP="$ac_cv_path_FGREP"
12292
12293
12294 test -z "$GREP" && GREP=grep
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314 # Check whether --with-gnu-ld was given.
12315 if test "${with_gnu_ld+set}" = set; then :
12316   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12317 else
12318   with_gnu_ld=no
12319 fi
12320
12321 ac_prog=ld
12322 if test "$GCC" = yes; then
12323   # Check if gcc -print-prog-name=ld gives a path.
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12325 $as_echo_n "checking for ld used by $CC... " >&6; }
12326   case $host in
12327   *-*-mingw*)
12328     # gcc leaves a trailing carriage return which upsets mingw
12329     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12330   *)
12331     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12332   esac
12333   case $ac_prog in
12334     # Accept absolute paths.
12335     [\\/]* | ?:[\\/]*)
12336       re_direlt='/[^/][^/]*/\.\./'
12337       # Canonicalize the pathname of ld
12338       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12339       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12340         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12341       done
12342       test -z "$LD" && LD="$ac_prog"
12343       ;;
12344   "")
12345     # If it fails, then pretend we aren't using GCC.
12346     ac_prog=ld
12347     ;;
12348   *)
12349     # If it is relative, then search for the first ld in PATH.
12350     with_gnu_ld=unknown
12351     ;;
12352   esac
12353 elif test "$with_gnu_ld" = yes; then
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12355 $as_echo_n "checking for GNU ld... " >&6; }
12356 else
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12358 $as_echo_n "checking for non-GNU ld... " >&6; }
12359 fi
12360 if test "${lt_cv_path_LD+set}" = set; then :
12361   $as_echo_n "(cached) " >&6
12362 else
12363   if test -z "$LD"; then
12364   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12365   for ac_dir in $PATH; do
12366     IFS="$lt_save_ifs"
12367     test -z "$ac_dir" && ac_dir=.
12368     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12369       lt_cv_path_LD="$ac_dir/$ac_prog"
12370       # Check to see if the program is GNU ld.  I'd rather use --version,
12371       # but apparently some variants of GNU ld only accept -v.
12372       # Break only if it was the GNU/non-GNU ld that we prefer.
12373       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12374       *GNU* | *'with BFD'*)
12375         test "$with_gnu_ld" != no && break
12376         ;;
12377       *)
12378         test "$with_gnu_ld" != yes && break
12379         ;;
12380       esac
12381     fi
12382   done
12383   IFS="$lt_save_ifs"
12384 else
12385   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12386 fi
12387 fi
12388
12389 LD="$lt_cv_path_LD"
12390 if test -n "$LD"; then
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12392 $as_echo "$LD" >&6; }
12393 else
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12399 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12400 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12401   $as_echo_n "(cached) " >&6
12402 else
12403   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12404 case `$LD -v 2>&1 </dev/null` in
12405 *GNU* | *'with BFD'*)
12406   lt_cv_prog_gnu_ld=yes
12407   ;;
12408 *)
12409   lt_cv_prog_gnu_ld=no
12410   ;;
12411 esac
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12414 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12415 with_gnu_ld=$lt_cv_prog_gnu_ld
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12426 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12427 if test "${lt_cv_path_NM+set}" = set; then :
12428   $as_echo_n "(cached) " >&6
12429 else
12430   if test -n "$NM"; then
12431   # Let the user override the test.
12432   lt_cv_path_NM="$NM"
12433 else
12434   lt_nm_to_check="${ac_tool_prefix}nm"
12435   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12436     lt_nm_to_check="$lt_nm_to_check nm"
12437   fi
12438   for lt_tmp_nm in $lt_nm_to_check; do
12439     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12440     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12441       IFS="$lt_save_ifs"
12442       test -z "$ac_dir" && ac_dir=.
12443       tmp_nm="$ac_dir/$lt_tmp_nm"
12444       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12445         # Check to see if the nm accepts a BSD-compat flag.
12446         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12447         #   nm: unknown option "B" ignored
12448         # Tru64's nm complains that /dev/null is an invalid object file
12449         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12450         */dev/null* | *'Invalid file or object type'*)
12451           lt_cv_path_NM="$tmp_nm -B"
12452           break
12453           ;;
12454         *)
12455           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12456           */dev/null*)
12457             lt_cv_path_NM="$tmp_nm -p"
12458             break
12459             ;;
12460           *)
12461             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12462             continue # so that we can try to find one that supports BSD flags
12463             ;;
12464           esac
12465           ;;
12466         esac
12467       fi
12468     done
12469     IFS="$lt_save_ifs"
12470   done
12471   : ${lt_cv_path_NM=no}
12472 fi
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12475 $as_echo "$lt_cv_path_NM" >&6; }
12476 if test "$lt_cv_path_NM" != "no"; then
12477   NM="$lt_cv_path_NM"
12478 else
12479   # Didn't find any BSD compatible name lister, look for dumpbin.
12480   if test -n "$DUMPBIN"; then :
12481     # Let the user override the test.
12482   else
12483     if test -n "$ac_tool_prefix"; then
12484   for ac_prog in dumpbin "link -dump"
12485   do
12486     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489 $as_echo_n "checking for $ac_word... " >&6; }
12490 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12491   $as_echo_n "(cached) " >&6
12492 else
12493   if test -n "$DUMPBIN"; then
12494   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12495 else
12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497 for as_dir in $PATH
12498 do
12499   IFS=$as_save_IFS
12500   test -z "$as_dir" && as_dir=.
12501     for ac_exec_ext in '' $ac_executable_extensions; do
12502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12503     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505     break 2
12506   fi
12507 done
12508   done
12509 IFS=$as_save_IFS
12510
12511 fi
12512 fi
12513 DUMPBIN=$ac_cv_prog_DUMPBIN
12514 if test -n "$DUMPBIN"; then
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12516 $as_echo "$DUMPBIN" >&6; }
12517 else
12518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12520 fi
12521
12522
12523     test -n "$DUMPBIN" && break
12524   done
12525 fi
12526 if test -z "$DUMPBIN"; then
12527   ac_ct_DUMPBIN=$DUMPBIN
12528   for ac_prog in dumpbin "link -dump"
12529 do
12530   # Extract the first word of "$ac_prog", so it can be a program name with args.
12531 set dummy $ac_prog; ac_word=$2
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533 $as_echo_n "checking for $ac_word... " >&6; }
12534 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12535   $as_echo_n "(cached) " >&6
12536 else
12537   if test -n "$ac_ct_DUMPBIN"; then
12538   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12539 else
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12542 do
12543   IFS=$as_save_IFS
12544   test -z "$as_dir" && as_dir=.
12545     for ac_exec_ext in '' $ac_executable_extensions; do
12546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12547     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549     break 2
12550   fi
12551 done
12552   done
12553 IFS=$as_save_IFS
12554
12555 fi
12556 fi
12557 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12558 if test -n "$ac_ct_DUMPBIN"; then
12559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12560 $as_echo "$ac_ct_DUMPBIN" >&6; }
12561 else
12562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12564 fi
12565
12566
12567   test -n "$ac_ct_DUMPBIN" && break
12568 done
12569
12570   if test "x$ac_ct_DUMPBIN" = x; then
12571     DUMPBIN=":"
12572   else
12573     case $cross_compiling:$ac_tool_warned in
12574 yes:)
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12577 ac_tool_warned=yes ;;
12578 esac
12579     DUMPBIN=$ac_ct_DUMPBIN
12580   fi
12581 fi
12582
12583     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12584     *COFF*)
12585       DUMPBIN="$DUMPBIN -symbols"
12586       ;;
12587     *)
12588       DUMPBIN=:
12589       ;;
12590     esac
12591   fi
12592
12593   if test "$DUMPBIN" != ":"; then
12594     NM="$DUMPBIN"
12595   fi
12596 fi
12597 test -z "$NM" && NM=nm
12598
12599
12600
12601
12602
12603
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12605 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12606 if test "${lt_cv_nm_interface+set}" = set; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609   lt_cv_nm_interface="BSD nm"
12610   echo "int some_variable = 0;" > conftest.$ac_ext
12611   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12612   (eval "$ac_compile" 2>conftest.err)
12613   cat conftest.err >&5
12614   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12615   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12616   cat conftest.err >&5
12617   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12618   cat conftest.out >&5
12619   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12620     lt_cv_nm_interface="MS dumpbin"
12621   fi
12622   rm -f conftest*
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12625 $as_echo "$lt_cv_nm_interface" >&6; }
12626
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12628 $as_echo_n "checking whether ln -s works... " >&6; }
12629 LN_S=$as_ln_s
12630 if test "$LN_S" = "ln -s"; then
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12632 $as_echo "yes" >&6; }
12633 else
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12635 $as_echo "no, using $LN_S" >&6; }
12636 fi
12637
12638 # find the maximum length of command line arguments
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12640 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12641 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12642   $as_echo_n "(cached) " >&6
12643 else
12644     i=0
12645   teststring="ABCD"
12646
12647   case $build_os in
12648   msdosdjgpp*)
12649     # On DJGPP, this test can blow up pretty badly due to problems in libc
12650     # (any single argument exceeding 2000 bytes causes a buffer overrun
12651     # during glob expansion).  Even if it were fixed, the result of this
12652     # check would be larger than it should be.
12653     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12654     ;;
12655
12656   gnu*)
12657     # Under GNU Hurd, this test is not required because there is
12658     # no limit to the length of command line arguments.
12659     # Libtool will interpret -1 as no limit whatsoever
12660     lt_cv_sys_max_cmd_len=-1;
12661     ;;
12662
12663   cygwin* | mingw* | cegcc*)
12664     # On Win9x/ME, this test blows up -- it succeeds, but takes
12665     # about 5 minutes as the teststring grows exponentially.
12666     # Worse, since 9x/ME are not pre-emptively multitasking,
12667     # you end up with a "frozen" computer, even though with patience
12668     # the test eventually succeeds (with a max line length of 256k).
12669     # Instead, let's just punt: use the minimum linelength reported by
12670     # all of the supported platforms: 8192 (on NT/2K/XP).
12671     lt_cv_sys_max_cmd_len=8192;
12672     ;;
12673
12674   mint*)
12675     # On MiNT this can take a long time and run out of memory.
12676     lt_cv_sys_max_cmd_len=8192;
12677     ;;
12678
12679   amigaos*)
12680     # On AmigaOS with pdksh, this test takes hours, literally.
12681     # So we just punt and use a minimum line length of 8192.
12682     lt_cv_sys_max_cmd_len=8192;
12683     ;;
12684
12685   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12686     # This has been around since 386BSD, at least.  Likely further.
12687     if test -x /sbin/sysctl; then
12688       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12689     elif test -x /usr/sbin/sysctl; then
12690       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12691     else
12692       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12693     fi
12694     # And add a safety zone
12695     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12696     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12697     ;;
12698
12699   interix*)
12700     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12701     lt_cv_sys_max_cmd_len=196608
12702     ;;
12703
12704   osf*)
12705     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12706     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12707     # nice to cause kernel panics so lets avoid the loop below.
12708     # First set a reasonable default.
12709     lt_cv_sys_max_cmd_len=16384
12710     #
12711     if test -x /sbin/sysconfig; then
12712       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12713         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12714       esac
12715     fi
12716     ;;
12717   sco3.2v5*)
12718     lt_cv_sys_max_cmd_len=102400
12719     ;;
12720   sysv5* | sco5v6* | sysv4.2uw2*)
12721     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12722     if test -n "$kargmax"; then
12723       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12724     else
12725       lt_cv_sys_max_cmd_len=32768
12726     fi
12727     ;;
12728   *)
12729     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12730     if test -n "$lt_cv_sys_max_cmd_len"; then
12731       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12732       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12733     else
12734       # Make teststring a little bigger before we do anything with it.
12735       # a 1K string should be a reasonable start.
12736       for i in 1 2 3 4 5 6 7 8 ; do
12737         teststring=$teststring$teststring
12738       done
12739       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12740       # If test is not a shell built-in, we'll probably end up computing a
12741       # maximum length that is only half of the actual maximum length, but
12742       # we can't tell.
12743       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12744                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12745               test $i != 17 # 1/2 MB should be enough
12746       do
12747         i=`expr $i + 1`
12748         teststring=$teststring$teststring
12749       done
12750       # Only check the string length outside the loop.
12751       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12752       teststring=
12753       # Add a significant safety factor because C++ compilers can tack on
12754       # massive amounts of additional arguments before passing them to the
12755       # linker.  It appears as though 1/2 is a usable value.
12756       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12757     fi
12758     ;;
12759   esac
12760
12761 fi
12762
12763 if test -n $lt_cv_sys_max_cmd_len ; then
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12765 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12766 else
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12768 $as_echo "none" >&6; }
12769 fi
12770 max_cmd_len=$lt_cv_sys_max_cmd_len
12771
12772
12773
12774
12775
12776
12777 : ${CP="cp -f"}
12778 : ${MV="mv -f"}
12779 : ${RM="rm -f"}
12780
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12782 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12783 # Try some XSI features
12784 xsi_shell=no
12785 ( _lt_dummy="a/b/c"
12786   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12787       = c,a/b,, \
12788     && eval 'test $(( 1 + 1 )) -eq 2 \
12789     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12790   && xsi_shell=yes
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12792 $as_echo "$xsi_shell" >&6; }
12793
12794
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12796 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12797 lt_shell_append=no
12798 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12799     >/dev/null 2>&1 \
12800   && lt_shell_append=yes
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12802 $as_echo "$lt_shell_append" >&6; }
12803
12804
12805 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12806   lt_unset=unset
12807 else
12808   lt_unset=false
12809 fi
12810
12811
12812
12813
12814
12815 # test EBCDIC or ASCII
12816 case `echo X|tr X '\101'` in
12817  A) # ASCII based system
12818     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12819   lt_SP2NL='tr \040 \012'
12820   lt_NL2SP='tr \015\012 \040\040'
12821   ;;
12822  *) # EBCDIC based system
12823   lt_SP2NL='tr \100 \n'
12824   lt_NL2SP='tr \r\n \100\100'
12825   ;;
12826 esac
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12837 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12838 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12839   $as_echo_n "(cached) " >&6
12840 else
12841   lt_cv_ld_reload_flag='-r'
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12844 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12845 reload_flag=$lt_cv_ld_reload_flag
12846 case $reload_flag in
12847 "" | " "*) ;;
12848 *) reload_flag=" $reload_flag" ;;
12849 esac
12850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12851 case $host_os in
12852   darwin*)
12853     if test "$GCC" = yes; then
12854       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12855     else
12856       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12857     fi
12858     ;;
12859 esac
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869 if test -n "$ac_tool_prefix"; then
12870   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12871 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12875   $as_echo_n "(cached) " >&6
12876 else
12877   if test -n "$OBJDUMP"; then
12878   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883   IFS=$as_save_IFS
12884   test -z "$as_dir" && as_dir=.
12885     for ac_exec_ext in '' $ac_executable_extensions; do
12886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889     break 2
12890   fi
12891 done
12892   done
12893 IFS=$as_save_IFS
12894
12895 fi
12896 fi
12897 OBJDUMP=$ac_cv_prog_OBJDUMP
12898 if test -n "$OBJDUMP"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12900 $as_echo "$OBJDUMP" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905
12906
12907 fi
12908 if test -z "$ac_cv_prog_OBJDUMP"; then
12909   ac_ct_OBJDUMP=$OBJDUMP
12910   # Extract the first word of "objdump", so it can be a program name with args.
12911 set dummy objdump; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12915   $as_echo_n "(cached) " >&6
12916 else
12917   if test -n "$ac_ct_OBJDUMP"; then
12918   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12919 else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12922 do
12923   IFS=$as_save_IFS
12924   test -z "$as_dir" && as_dir=.
12925     for ac_exec_ext in '' $ac_executable_extensions; do
12926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12927     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12929     break 2
12930   fi
12931 done
12932   done
12933 IFS=$as_save_IFS
12934
12935 fi
12936 fi
12937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12938 if test -n "$ac_ct_OBJDUMP"; then
12939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12940 $as_echo "$ac_ct_OBJDUMP" >&6; }
12941 else
12942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12944 fi
12945
12946   if test "x$ac_ct_OBJDUMP" = x; then
12947     OBJDUMP="false"
12948   else
12949     case $cross_compiling:$ac_tool_warned in
12950 yes:)
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12953 ac_tool_warned=yes ;;
12954 esac
12955     OBJDUMP=$ac_ct_OBJDUMP
12956   fi
12957 else
12958   OBJDUMP="$ac_cv_prog_OBJDUMP"
12959 fi
12960
12961 test -z "$OBJDUMP" && OBJDUMP=objdump
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12972 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12973 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12974   $as_echo_n "(cached) " >&6
12975 else
12976   lt_cv_file_magic_cmd='$MAGIC_CMD'
12977 lt_cv_file_magic_test_file=
12978 lt_cv_deplibs_check_method='unknown'
12979 # Need to set the preceding variable on all platforms that support
12980 # interlibrary dependencies.
12981 # 'none' -- dependencies not supported.
12982 # `unknown' -- same as none, but documents that we really don't know.
12983 # 'pass_all' -- all dependencies passed with no checks.
12984 # 'test_compile' -- check by making test program.
12985 # 'file_magic [[regex]]' -- check by looking for files in library path
12986 # which responds to the $file_magic_cmd with a given extended regex.
12987 # If you have `file' or equivalent on your system and you're not sure
12988 # whether `pass_all' will *always* work, you probably want this one.
12989
12990 case $host_os in
12991 aix[4-9]*)
12992   lt_cv_deplibs_check_method=pass_all
12993   ;;
12994
12995 beos*)
12996   lt_cv_deplibs_check_method=pass_all
12997   ;;
12998
12999 bsdi[45]*)
13000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13001   lt_cv_file_magic_cmd='/usr/bin/file -L'
13002   lt_cv_file_magic_test_file=/shlib/libc.so
13003   ;;
13004
13005 cygwin*)
13006   # func_win32_libid is a shell function defined in ltmain.sh
13007   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13008   lt_cv_file_magic_cmd='func_win32_libid'
13009   ;;
13010
13011 mingw* | pw32*)
13012   # Base MSYS/MinGW do not provide the 'file' command needed by
13013   # func_win32_libid shell function, so use a weaker test based on 'objdump',
13014   # unless we find 'file', for example because we are cross-compiling.
13015   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13016   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13017     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13018     lt_cv_file_magic_cmd='func_win32_libid'
13019   else
13020     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13021     lt_cv_file_magic_cmd='$OBJDUMP -f'
13022   fi
13023   ;;
13024
13025 cegcc*)
13026   # use the weaker test based on 'objdump'. See mingw*.
13027   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13028   lt_cv_file_magic_cmd='$OBJDUMP -f'
13029   ;;
13030
13031 darwin* | rhapsody*)
13032   lt_cv_deplibs_check_method=pass_all
13033   ;;
13034
13035 freebsd* | dragonfly*)
13036   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13037     case $host_cpu in
13038     i*86 )
13039       # Not sure whether the presence of OpenBSD here was a mistake.
13040       # Let's accept both of them until this is cleared up.
13041       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13042       lt_cv_file_magic_cmd=/usr/bin/file
13043       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13044       ;;
13045     esac
13046   else
13047     lt_cv_deplibs_check_method=pass_all
13048   fi
13049   ;;
13050
13051 gnu*)
13052   lt_cv_deplibs_check_method=pass_all
13053   ;;
13054
13055 haiku*)
13056   lt_cv_deplibs_check_method=pass_all
13057   ;;
13058
13059 hpux10.20* | hpux11*)
13060   lt_cv_file_magic_cmd=/usr/bin/file
13061   case $host_cpu in
13062   ia64*)
13063     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13064     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13065     ;;
13066   hppa*64*)
13067     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]'
13068     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13069     ;;
13070   *)
13071     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13072     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13073     ;;
13074   esac
13075   ;;
13076
13077 interix[3-9]*)
13078   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13079   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13080   ;;
13081
13082 irix5* | irix6* | nonstopux*)
13083   case $LD in
13084   *-32|*"-32 ") libmagic=32-bit;;
13085   *-n32|*"-n32 ") libmagic=N32;;
13086   *-64|*"-64 ") libmagic=64-bit;;
13087   *) libmagic=never-match;;
13088   esac
13089   lt_cv_deplibs_check_method=pass_all
13090   ;;
13091
13092 # This must be Linux ELF.
13093 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13094   lt_cv_deplibs_check_method=pass_all
13095   ;;
13096
13097 netbsd*)
13098   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13099     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13100   else
13101     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13102   fi
13103   ;;
13104
13105 newos6*)
13106   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13107   lt_cv_file_magic_cmd=/usr/bin/file
13108   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13109   ;;
13110
13111 *nto* | *qnx*)
13112   lt_cv_deplibs_check_method=pass_all
13113   ;;
13114
13115 openbsd*)
13116   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13117     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13118   else
13119     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13120   fi
13121   ;;
13122
13123 osf3* | osf4* | osf5*)
13124   lt_cv_deplibs_check_method=pass_all
13125   ;;
13126
13127 rdos*)
13128   lt_cv_deplibs_check_method=pass_all
13129   ;;
13130
13131 solaris*)
13132   lt_cv_deplibs_check_method=pass_all
13133   ;;
13134
13135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13136   lt_cv_deplibs_check_method=pass_all
13137   ;;
13138
13139 sysv4 | sysv4.3*)
13140   case $host_vendor in
13141   motorola)
13142     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]'
13143     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13144     ;;
13145   ncr)
13146     lt_cv_deplibs_check_method=pass_all
13147     ;;
13148   sequent)
13149     lt_cv_file_magic_cmd='/bin/file'
13150     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13151     ;;
13152   sni)
13153     lt_cv_file_magic_cmd='/bin/file'
13154     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13155     lt_cv_file_magic_test_file=/lib/libc.so
13156     ;;
13157   siemens)
13158     lt_cv_deplibs_check_method=pass_all
13159     ;;
13160   pc)
13161     lt_cv_deplibs_check_method=pass_all
13162     ;;
13163   esac
13164   ;;
13165
13166 tpf*)
13167   lt_cv_deplibs_check_method=pass_all
13168   ;;
13169 esac
13170
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13173 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13174 file_magic_cmd=$lt_cv_file_magic_cmd
13175 deplibs_check_method=$lt_cv_deplibs_check_method
13176 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189 if test -n "$ac_tool_prefix"; then
13190   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13191 set dummy ${ac_tool_prefix}ar; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 $as_echo_n "checking for $ac_word... " >&6; }
13194 if test "${ac_cv_prog_AR+set}" = set; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   if test -n "$AR"; then
13198   ac_cv_prog_AR="$AR" # Let the user override the test.
13199 else
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13202 do
13203   IFS=$as_save_IFS
13204   test -z "$as_dir" && as_dir=.
13205     for ac_exec_ext in '' $ac_executable_extensions; do
13206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207     ac_cv_prog_AR="${ac_tool_prefix}ar"
13208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209     break 2
13210   fi
13211 done
13212   done
13213 IFS=$as_save_IFS
13214
13215 fi
13216 fi
13217 AR=$ac_cv_prog_AR
13218 if test -n "$AR"; then
13219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13220 $as_echo "$AR" >&6; }
13221 else
13222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13224 fi
13225
13226
13227 fi
13228 if test -z "$ac_cv_prog_AR"; then
13229   ac_ct_AR=$AR
13230   # Extract the first word of "ar", so it can be a program name with args.
13231 set dummy ar; ac_word=$2
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13233 $as_echo_n "checking for $ac_word... " >&6; }
13234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13235   $as_echo_n "(cached) " >&6
13236 else
13237   if test -n "$ac_ct_AR"; then
13238   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13239 else
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   test -z "$as_dir" && as_dir=.
13245     for ac_exec_ext in '' $ac_executable_extensions; do
13246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13247     ac_cv_prog_ac_ct_AR="ar"
13248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13249     break 2
13250   fi
13251 done
13252   done
13253 IFS=$as_save_IFS
13254
13255 fi
13256 fi
13257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13258 if test -n "$ac_ct_AR"; then
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13260 $as_echo "$ac_ct_AR" >&6; }
13261 else
13262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264 fi
13265
13266   if test "x$ac_ct_AR" = x; then
13267     AR="false"
13268   else
13269     case $cross_compiling:$ac_tool_warned in
13270 yes:)
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13273 ac_tool_warned=yes ;;
13274 esac
13275     AR=$ac_ct_AR
13276   fi
13277 else
13278   AR="$ac_cv_prog_AR"
13279 fi
13280
13281 test -z "$AR" && AR=ar
13282 test -z "$AR_FLAGS" && AR_FLAGS=cru
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294 if test -n "$ac_tool_prefix"; then
13295   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13296 set dummy ${ac_tool_prefix}strip; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if test "${ac_cv_prog_STRIP+set}" = set; then :
13300   $as_echo_n "(cached) " >&6
13301 else
13302   if test -n "$STRIP"; then
13303   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13304 else
13305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306 for as_dir in $PATH
13307 do
13308   IFS=$as_save_IFS
13309   test -z "$as_dir" && as_dir=.
13310     for ac_exec_ext in '' $ac_executable_extensions; do
13311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13312     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13314     break 2
13315   fi
13316 done
13317   done
13318 IFS=$as_save_IFS
13319
13320 fi
13321 fi
13322 STRIP=$ac_cv_prog_STRIP
13323 if test -n "$STRIP"; then
13324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13325 $as_echo "$STRIP" >&6; }
13326 else
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13329 fi
13330
13331
13332 fi
13333 if test -z "$ac_cv_prog_STRIP"; then
13334   ac_ct_STRIP=$STRIP
13335   # Extract the first word of "strip", so it can be a program name with args.
13336 set dummy strip; ac_word=$2
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338 $as_echo_n "checking for $ac_word... " >&6; }
13339 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13340   $as_echo_n "(cached) " >&6
13341 else
13342   if test -n "$ac_ct_STRIP"; then
13343   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13344 else
13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13347 do
13348   IFS=$as_save_IFS
13349   test -z "$as_dir" && as_dir=.
13350     for ac_exec_ext in '' $ac_executable_extensions; do
13351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13352     ac_cv_prog_ac_ct_STRIP="strip"
13353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354     break 2
13355   fi
13356 done
13357   done
13358 IFS=$as_save_IFS
13359
13360 fi
13361 fi
13362 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13363 if test -n "$ac_ct_STRIP"; then
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13365 $as_echo "$ac_ct_STRIP" >&6; }
13366 else
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369 fi
13370
13371   if test "x$ac_ct_STRIP" = x; then
13372     STRIP=":"
13373   else
13374     case $cross_compiling:$ac_tool_warned in
13375 yes:)
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13378 ac_tool_warned=yes ;;
13379 esac
13380     STRIP=$ac_ct_STRIP
13381   fi
13382 else
13383   STRIP="$ac_cv_prog_STRIP"
13384 fi
13385
13386 test -z "$STRIP" && STRIP=:
13387
13388
13389
13390
13391
13392
13393 if test -n "$ac_tool_prefix"; then
13394   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13395 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   if test -n "$RANLIB"; then
13402   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407   IFS=$as_save_IFS
13408   test -z "$as_dir" && as_dir=.
13409     for ac_exec_ext in '' $ac_executable_extensions; do
13410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13411     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413     break 2
13414   fi
13415 done
13416   done
13417 IFS=$as_save_IFS
13418
13419 fi
13420 fi
13421 RANLIB=$ac_cv_prog_RANLIB
13422 if test -n "$RANLIB"; then
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13424 $as_echo "$RANLIB" >&6; }
13425 else
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430
13431 fi
13432 if test -z "$ac_cv_prog_RANLIB"; then
13433   ac_ct_RANLIB=$RANLIB
13434   # Extract the first word of "ranlib", so it can be a program name with args.
13435 set dummy ranlib; ac_word=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437 $as_echo_n "checking for $ac_word... " >&6; }
13438 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441   if test -n "$ac_ct_RANLIB"; then
13442   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13443 else
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13446 do
13447   IFS=$as_save_IFS
13448   test -z "$as_dir" && as_dir=.
13449     for ac_exec_ext in '' $ac_executable_extensions; do
13450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13451     ac_cv_prog_ac_ct_RANLIB="ranlib"
13452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453     break 2
13454   fi
13455 done
13456   done
13457 IFS=$as_save_IFS
13458
13459 fi
13460 fi
13461 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13462 if test -n "$ac_ct_RANLIB"; then
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13464 $as_echo "$ac_ct_RANLIB" >&6; }
13465 else
13466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13468 fi
13469
13470   if test "x$ac_ct_RANLIB" = x; then
13471     RANLIB=":"
13472   else
13473     case $cross_compiling:$ac_tool_warned in
13474 yes:)
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13477 ac_tool_warned=yes ;;
13478 esac
13479     RANLIB=$ac_ct_RANLIB
13480   fi
13481 else
13482   RANLIB="$ac_cv_prog_RANLIB"
13483 fi
13484
13485 test -z "$RANLIB" && RANLIB=:
13486
13487
13488
13489
13490
13491
13492 # Determine commands to create old-style static archives.
13493 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13494 old_postinstall_cmds='chmod 644 $oldlib'
13495 old_postuninstall_cmds=
13496
13497 if test -n "$RANLIB"; then
13498   case $host_os in
13499   openbsd*)
13500     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13501     ;;
13502   *)
13503     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13504     ;;
13505   esac
13506   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13507 fi
13508
13509 case $host_os in
13510   darwin*)
13511     lock_old_archive_extraction=yes ;;
13512   *)
13513     lock_old_archive_extraction=no ;;
13514 esac
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554 # If no C compiler was specified, use CC.
13555 LTCC=${LTCC-"$CC"}
13556
13557 # If no C compiler flags were specified, use CFLAGS.
13558 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13559
13560 # Allow CC to be a program name with arguments.
13561 compiler=$CC
13562
13563
13564 # Check for command to grab the raw symbol name followed by C symbol from nm.
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13566 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13567 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13568   $as_echo_n "(cached) " >&6
13569 else
13570
13571 # These are sane defaults that work on at least a few old systems.
13572 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13573
13574 # Character class describing NM global symbol codes.
13575 symcode='[BCDEGRST]'
13576
13577 # Regexp to match symbols that can be accessed directly from C.
13578 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13579
13580 # Define system-specific variables.
13581 case $host_os in
13582 aix*)
13583   symcode='[BCDT]'
13584   ;;
13585 cygwin* | mingw* | pw32* | cegcc*)
13586   symcode='[ABCDGISTW]'
13587   ;;
13588 hpux*)
13589   if test "$host_cpu" = ia64; then
13590     symcode='[ABCDEGRST]'
13591   fi
13592   ;;
13593 irix* | nonstopux*)
13594   symcode='[BCDEGRST]'
13595   ;;
13596 osf*)
13597   symcode='[BCDEGQRST]'
13598   ;;
13599 solaris*)
13600   symcode='[BDRT]'
13601   ;;
13602 sco3.2v5*)
13603   symcode='[DT]'
13604   ;;
13605 sysv4.2uw2*)
13606   symcode='[DT]'
13607   ;;
13608 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13609   symcode='[ABDT]'
13610   ;;
13611 sysv4)
13612   symcode='[DFNSTU]'
13613   ;;
13614 esac
13615
13616 # If we're using GNU nm, then use its standard symbol codes.
13617 case `$NM -V 2>&1` in
13618 *GNU* | *'with BFD'*)
13619   symcode='[ABCDGIRSTW]' ;;
13620 esac
13621
13622 # Transform an extracted symbol line into a proper C declaration.
13623 # Some systems (esp. on ia64) link data and code symbols differently,
13624 # so use this general approach.
13625 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13626
13627 # Transform an extracted symbol line into symbol name and symbol address
13628 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13629 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'"
13630
13631 # Handle CRLF in mingw tool chain
13632 opt_cr=
13633 case $build_os in
13634 mingw*)
13635   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13636   ;;
13637 esac
13638
13639 # Try without a prefix underscore, then with it.
13640 for ac_symprfx in "" "_"; do
13641
13642   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13643   symxfrm="\\1 $ac_symprfx\\2 \\2"
13644
13645   # Write the raw and C identifiers.
13646   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13647     # Fake it for dumpbin and say T for any non-static function
13648     # and D for any global variable.
13649     # Also find C++ and __fastcall symbols from MSVC++,
13650     # which start with @ or ?.
13651     lt_cv_sys_global_symbol_pipe="$AWK '"\
13652 "     {last_section=section; section=\$ 3};"\
13653 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13654 "     \$ 0!~/External *\|/{next};"\
13655 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13656 "     {if(hide[section]) next};"\
13657 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13658 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13659 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13660 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13661 "     ' prfx=^$ac_symprfx"
13662   else
13663     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13664   fi
13665
13666   # Check to see that the pipe works correctly.
13667   pipe_works=no
13668
13669   rm -f conftest*
13670   cat > conftest.$ac_ext <<_LT_EOF
13671 #ifdef __cplusplus
13672 extern "C" {
13673 #endif
13674 char nm_test_var;
13675 void nm_test_func(void);
13676 void nm_test_func(void){}
13677 #ifdef __cplusplus
13678 }
13679 #endif
13680 int main(){nm_test_var='a';nm_test_func();return(0);}
13681 _LT_EOF
13682
13683   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13684   (eval $ac_compile) 2>&5
13685   ac_status=$?
13686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687   test $ac_status = 0; }; then
13688     # Now try to grab the symbols.
13689     nlist=conftest.nm
13690     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13691   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13692   ac_status=$?
13693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13694   test $ac_status = 0; } && test -s "$nlist"; then
13695       # Try sorting and uniquifying the output.
13696       if sort "$nlist" | uniq > "$nlist"T; then
13697         mv -f "$nlist"T "$nlist"
13698       else
13699         rm -f "$nlist"T
13700       fi
13701
13702       # Make sure that we snagged all the symbols we need.
13703       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13704         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13705           cat <<_LT_EOF > conftest.$ac_ext
13706 #ifdef __cplusplus
13707 extern "C" {
13708 #endif
13709
13710 _LT_EOF
13711           # Now generate the symbol file.
13712           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13713
13714           cat <<_LT_EOF >> conftest.$ac_ext
13715
13716 /* The mapping between symbol names and symbols.  */
13717 const struct {
13718   const char *name;
13719   void       *address;
13720 }
13721 lt__PROGRAM__LTX_preloaded_symbols[] =
13722 {
13723   { "@PROGRAM@", (void *) 0 },
13724 _LT_EOF
13725           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13726           cat <<\_LT_EOF >> conftest.$ac_ext
13727   {0, (void *) 0}
13728 };
13729
13730 /* This works around a problem in FreeBSD linker */
13731 #ifdef FREEBSD_WORKAROUND
13732 static const void *lt_preloaded_setup() {
13733   return lt__PROGRAM__LTX_preloaded_symbols;
13734 }
13735 #endif
13736
13737 #ifdef __cplusplus
13738 }
13739 #endif
13740 _LT_EOF
13741           # Now try linking the two files.
13742           mv conftest.$ac_objext conftstm.$ac_objext
13743           lt_save_LIBS="$LIBS"
13744           lt_save_CFLAGS="$CFLAGS"
13745           LIBS="conftstm.$ac_objext"
13746           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13747           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13748   (eval $ac_link) 2>&5
13749   ac_status=$?
13750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13752             pipe_works=yes
13753           fi
13754           LIBS="$lt_save_LIBS"
13755           CFLAGS="$lt_save_CFLAGS"
13756         else
13757           echo "cannot find nm_test_func in $nlist" >&5
13758         fi
13759       else
13760         echo "cannot find nm_test_var in $nlist" >&5
13761       fi
13762     else
13763       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13764     fi
13765   else
13766     echo "$progname: failed program was:" >&5
13767     cat conftest.$ac_ext >&5
13768   fi
13769   rm -rf conftest* conftst*
13770
13771   # Do not use the global_symbol_pipe unless it works.
13772   if test "$pipe_works" = yes; then
13773     break
13774   else
13775     lt_cv_sys_global_symbol_pipe=
13776   fi
13777 done
13778
13779 fi
13780
13781 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13782   lt_cv_sys_global_symbol_to_cdecl=
13783 fi
13784 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13786 $as_echo "failed" >&6; }
13787 else
13788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13789 $as_echo "ok" >&6; }
13790 fi
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813 # Check whether --enable-libtool-lock was given.
13814 if test "${enable_libtool_lock+set}" = set; then :
13815   enableval=$enable_libtool_lock;
13816 fi
13817
13818 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13819
13820 # Some flags need to be propagated to the compiler or linker for good
13821 # libtool support.
13822 case $host in
13823 ia64-*-hpux*)
13824   # Find out which ABI we are using.
13825   echo 'int i;' > conftest.$ac_ext
13826   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13827   (eval $ac_compile) 2>&5
13828   ac_status=$?
13829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13830   test $ac_status = 0; }; then
13831     case `/usr/bin/file conftest.$ac_objext` in
13832       *ELF-32*)
13833         HPUX_IA64_MODE="32"
13834         ;;
13835       *ELF-64*)
13836         HPUX_IA64_MODE="64"
13837         ;;
13838     esac
13839   fi
13840   rm -rf conftest*
13841   ;;
13842 *-*-irix6*)
13843   # Find out which ABI we are using.
13844   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13845   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13846   (eval $ac_compile) 2>&5
13847   ac_status=$?
13848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13849   test $ac_status = 0; }; then
13850     if test "$lt_cv_prog_gnu_ld" = yes; then
13851       case `/usr/bin/file conftest.$ac_objext` in
13852         *32-bit*)
13853           LD="${LD-ld} -melf32bsmip"
13854           ;;
13855         *N32*)
13856           LD="${LD-ld} -melf32bmipn32"
13857           ;;
13858         *64-bit*)
13859           LD="${LD-ld} -melf64bmip"
13860         ;;
13861       esac
13862     else
13863       case `/usr/bin/file conftest.$ac_objext` in
13864         *32-bit*)
13865           LD="${LD-ld} -32"
13866           ;;
13867         *N32*)
13868           LD="${LD-ld} -n32"
13869           ;;
13870         *64-bit*)
13871           LD="${LD-ld} -64"
13872           ;;
13873       esac
13874     fi
13875   fi
13876   rm -rf conftest*
13877   ;;
13878
13879 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13880 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13881   # Find out which ABI we are using.
13882   echo 'int i;' > conftest.$ac_ext
13883   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13884   (eval $ac_compile) 2>&5
13885   ac_status=$?
13886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13887   test $ac_status = 0; }; then
13888     case `/usr/bin/file conftest.o` in
13889       *32-bit*)
13890         case $host in
13891           x86_64-*kfreebsd*-gnu)
13892             LD="${LD-ld} -m elf_i386_fbsd"
13893             ;;
13894           x86_64-*linux*)
13895             LD="${LD-ld} -m elf_i386"
13896             ;;
13897           ppc64-*linux*|powerpc64-*linux*)
13898             LD="${LD-ld} -m elf32ppclinux"
13899             ;;
13900           s390x-*linux*)
13901             LD="${LD-ld} -m elf_s390"
13902             ;;
13903           sparc64-*linux*)
13904             LD="${LD-ld} -m elf32_sparc"
13905             ;;
13906         esac
13907         ;;
13908       *64-bit*)
13909         case $host in
13910           x86_64-*kfreebsd*-gnu)
13911             LD="${LD-ld} -m elf_x86_64_fbsd"
13912             ;;
13913           x86_64-*linux*)
13914             LD="${LD-ld} -m elf_x86_64"
13915             ;;
13916           ppc*-*linux*|powerpc*-*linux*)
13917             LD="${LD-ld} -m elf64ppc"
13918             ;;
13919           s390*-*linux*|s390*-*tpf*)
13920             LD="${LD-ld} -m elf64_s390"
13921             ;;
13922           sparc*-*linux*)
13923             LD="${LD-ld} -m elf64_sparc"
13924             ;;
13925         esac
13926         ;;
13927     esac
13928   fi
13929   rm -rf conftest*
13930   ;;
13931
13932 *-*-sco3.2v5*)
13933   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13934   SAVE_CFLAGS="$CFLAGS"
13935   CFLAGS="$CFLAGS -belf"
13936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13937 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13938 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   ac_ext=c
13942 ac_cpp='$CPP $CPPFLAGS'
13943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13946
13947      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949
13950 int
13951 main ()
13952 {
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959   lt_cv_cc_needs_belf=yes
13960 else
13961   lt_cv_cc_needs_belf=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext \
13964     conftest$ac_exeext conftest.$ac_ext
13965      ac_ext=c
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971 fi
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13973 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13974   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13975     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13976     CFLAGS="$SAVE_CFLAGS"
13977   fi
13978   ;;
13979 sparc*-*solaris*)
13980   # Find out which ABI we are using.
13981   echo 'int i;' > conftest.$ac_ext
13982   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13983   (eval $ac_compile) 2>&5
13984   ac_status=$?
13985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986   test $ac_status = 0; }; then
13987     case `/usr/bin/file conftest.o` in
13988     *64-bit*)
13989       case $lt_cv_prog_gnu_ld in
13990       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13991       *)
13992         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13993           LD="${LD-ld} -64"
13994         fi
13995         ;;
13996       esac
13997       ;;
13998     esac
13999   fi
14000   rm -rf conftest*
14001   ;;
14002 esac
14003
14004 need_locks="$enable_libtool_lock"
14005
14006
14007   case $host_os in
14008     rhapsody* | darwin*)
14009     if test -n "$ac_tool_prefix"; then
14010   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14011 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14015   $as_echo_n "(cached) " >&6
14016 else
14017   if test -n "$DSYMUTIL"; then
14018   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14019 else
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023   IFS=$as_save_IFS
14024   test -z "$as_dir" && as_dir=.
14025     for ac_exec_ext in '' $ac_executable_extensions; do
14026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14027     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14029     break 2
14030   fi
14031 done
14032   done
14033 IFS=$as_save_IFS
14034
14035 fi
14036 fi
14037 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14038 if test -n "$DSYMUTIL"; then
14039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14040 $as_echo "$DSYMUTIL" >&6; }
14041 else
14042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14044 fi
14045
14046
14047 fi
14048 if test -z "$ac_cv_prog_DSYMUTIL"; then
14049   ac_ct_DSYMUTIL=$DSYMUTIL
14050   # Extract the first word of "dsymutil", so it can be a program name with args.
14051 set dummy dsymutil; ac_word=$2
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 $as_echo_n "checking for $ac_word... " >&6; }
14054 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14055   $as_echo_n "(cached) " >&6
14056 else
14057   if test -n "$ac_ct_DSYMUTIL"; then
14058   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14059 else
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14062 do
14063   IFS=$as_save_IFS
14064   test -z "$as_dir" && as_dir=.
14065     for ac_exec_ext in '' $ac_executable_extensions; do
14066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14067     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069     break 2
14070   fi
14071 done
14072   done
14073 IFS=$as_save_IFS
14074
14075 fi
14076 fi
14077 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14078 if test -n "$ac_ct_DSYMUTIL"; then
14079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14080 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14081 else
14082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14084 fi
14085
14086   if test "x$ac_ct_DSYMUTIL" = x; then
14087     DSYMUTIL=":"
14088   else
14089     case $cross_compiling:$ac_tool_warned in
14090 yes:)
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14093 ac_tool_warned=yes ;;
14094 esac
14095     DSYMUTIL=$ac_ct_DSYMUTIL
14096   fi
14097 else
14098   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14099 fi
14100
14101     if test -n "$ac_tool_prefix"; then
14102   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14103 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105 $as_echo_n "checking for $ac_word... " >&6; }
14106 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14107   $as_echo_n "(cached) " >&6
14108 else
14109   if test -n "$NMEDIT"; then
14110   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14111 else
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14114 do
14115   IFS=$as_save_IFS
14116   test -z "$as_dir" && as_dir=.
14117     for ac_exec_ext in '' $ac_executable_extensions; do
14118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14121     break 2
14122   fi
14123 done
14124   done
14125 IFS=$as_save_IFS
14126
14127 fi
14128 fi
14129 NMEDIT=$ac_cv_prog_NMEDIT
14130 if test -n "$NMEDIT"; then
14131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14132 $as_echo "$NMEDIT" >&6; }
14133 else
14134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 $as_echo "no" >&6; }
14136 fi
14137
14138
14139 fi
14140 if test -z "$ac_cv_prog_NMEDIT"; then
14141   ac_ct_NMEDIT=$NMEDIT
14142   # Extract the first word of "nmedit", so it can be a program name with args.
14143 set dummy nmedit; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14147   $as_echo_n "(cached) " >&6
14148 else
14149   if test -n "$ac_ct_NMEDIT"; then
14150   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155   IFS=$as_save_IFS
14156   test -z "$as_dir" && as_dir=.
14157     for ac_exec_ext in '' $ac_executable_extensions; do
14158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14159     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161     break 2
14162   fi
14163 done
14164   done
14165 IFS=$as_save_IFS
14166
14167 fi
14168 fi
14169 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14170 if test -n "$ac_ct_NMEDIT"; then
14171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14172 $as_echo "$ac_ct_NMEDIT" >&6; }
14173 else
14174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177
14178   if test "x$ac_ct_NMEDIT" = x; then
14179     NMEDIT=":"
14180   else
14181     case $cross_compiling:$ac_tool_warned in
14182 yes:)
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14185 ac_tool_warned=yes ;;
14186 esac
14187     NMEDIT=$ac_ct_NMEDIT
14188   fi
14189 else
14190   NMEDIT="$ac_cv_prog_NMEDIT"
14191 fi
14192
14193     if test -n "$ac_tool_prefix"; then
14194   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14195 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if test "${ac_cv_prog_LIPO+set}" = set; then :
14199   $as_echo_n "(cached) " >&6
14200 else
14201   if test -n "$LIPO"; then
14202   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14206 do
14207   IFS=$as_save_IFS
14208   test -z "$as_dir" && as_dir=.
14209     for ac_exec_ext in '' $ac_executable_extensions; do
14210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14211     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213     break 2
14214   fi
14215 done
14216   done
14217 IFS=$as_save_IFS
14218
14219 fi
14220 fi
14221 LIPO=$ac_cv_prog_LIPO
14222 if test -n "$LIPO"; then
14223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14224 $as_echo "$LIPO" >&6; }
14225 else
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14228 fi
14229
14230
14231 fi
14232 if test -z "$ac_cv_prog_LIPO"; then
14233   ac_ct_LIPO=$LIPO
14234   # Extract the first word of "lipo", so it can be a program name with args.
14235 set dummy lipo; ac_word=$2
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237 $as_echo_n "checking for $ac_word... " >&6; }
14238 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14239   $as_echo_n "(cached) " >&6
14240 else
14241   if test -n "$ac_ct_LIPO"; then
14242   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14243 else
14244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245 for as_dir in $PATH
14246 do
14247   IFS=$as_save_IFS
14248   test -z "$as_dir" && as_dir=.
14249     for ac_exec_ext in '' $ac_executable_extensions; do
14250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14251     ac_cv_prog_ac_ct_LIPO="lipo"
14252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253     break 2
14254   fi
14255 done
14256   done
14257 IFS=$as_save_IFS
14258
14259 fi
14260 fi
14261 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14262 if test -n "$ac_ct_LIPO"; then
14263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14264 $as_echo "$ac_ct_LIPO" >&6; }
14265 else
14266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14268 fi
14269
14270   if test "x$ac_ct_LIPO" = x; then
14271     LIPO=":"
14272   else
14273     case $cross_compiling:$ac_tool_warned in
14274 yes:)
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14277 ac_tool_warned=yes ;;
14278 esac
14279     LIPO=$ac_ct_LIPO
14280   fi
14281 else
14282   LIPO="$ac_cv_prog_LIPO"
14283 fi
14284
14285     if test -n "$ac_tool_prefix"; then
14286   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14287 set dummy ${ac_tool_prefix}otool; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289 $as_echo_n "checking for $ac_word... " >&6; }
14290 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14291   $as_echo_n "(cached) " >&6
14292 else
14293   if test -n "$OTOOL"; then
14294   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14295 else
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14298 do
14299   IFS=$as_save_IFS
14300   test -z "$as_dir" && as_dir=.
14301     for ac_exec_ext in '' $ac_executable_extensions; do
14302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14303     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14305     break 2
14306   fi
14307 done
14308   done
14309 IFS=$as_save_IFS
14310
14311 fi
14312 fi
14313 OTOOL=$ac_cv_prog_OTOOL
14314 if test -n "$OTOOL"; then
14315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14316 $as_echo "$OTOOL" >&6; }
14317 else
14318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14320 fi
14321
14322
14323 fi
14324 if test -z "$ac_cv_prog_OTOOL"; then
14325   ac_ct_OTOOL=$OTOOL
14326   # Extract the first word of "otool", so it can be a program name with args.
14327 set dummy otool; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   if test -n "$ac_ct_OTOOL"; then
14334   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14335 else
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14338 do
14339   IFS=$as_save_IFS
14340   test -z "$as_dir" && as_dir=.
14341     for ac_exec_ext in '' $ac_executable_extensions; do
14342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14343     ac_cv_prog_ac_ct_OTOOL="otool"
14344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345     break 2
14346   fi
14347 done
14348   done
14349 IFS=$as_save_IFS
14350
14351 fi
14352 fi
14353 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14354 if test -n "$ac_ct_OTOOL"; then
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14356 $as_echo "$ac_ct_OTOOL" >&6; }
14357 else
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362   if test "x$ac_ct_OTOOL" = x; then
14363     OTOOL=":"
14364   else
14365     case $cross_compiling:$ac_tool_warned in
14366 yes:)
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14369 ac_tool_warned=yes ;;
14370 esac
14371     OTOOL=$ac_ct_OTOOL
14372   fi
14373 else
14374   OTOOL="$ac_cv_prog_OTOOL"
14375 fi
14376
14377     if test -n "$ac_tool_prefix"; then
14378   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14379 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14383   $as_echo_n "(cached) " >&6
14384 else
14385   if test -n "$OTOOL64"; then
14386   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14390 do
14391   IFS=$as_save_IFS
14392   test -z "$as_dir" && as_dir=.
14393     for ac_exec_ext in '' $ac_executable_extensions; do
14394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397     break 2
14398   fi
14399 done
14400   done
14401 IFS=$as_save_IFS
14402
14403 fi
14404 fi
14405 OTOOL64=$ac_cv_prog_OTOOL64
14406 if test -n "$OTOOL64"; then
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14408 $as_echo "$OTOOL64" >&6; }
14409 else
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14412 fi
14413
14414
14415 fi
14416 if test -z "$ac_cv_prog_OTOOL64"; then
14417   ac_ct_OTOOL64=$OTOOL64
14418   # Extract the first word of "otool64", so it can be a program name with args.
14419 set dummy otool64; ac_word=$2
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14421 $as_echo_n "checking for $ac_word... " >&6; }
14422 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14423   $as_echo_n "(cached) " >&6
14424 else
14425   if test -n "$ac_ct_OTOOL64"; then
14426   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14427 else
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $PATH
14430 do
14431   IFS=$as_save_IFS
14432   test -z "$as_dir" && as_dir=.
14433     for ac_exec_ext in '' $ac_executable_extensions; do
14434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14435     ac_cv_prog_ac_ct_OTOOL64="otool64"
14436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14437     break 2
14438   fi
14439 done
14440   done
14441 IFS=$as_save_IFS
14442
14443 fi
14444 fi
14445 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14446 if test -n "$ac_ct_OTOOL64"; then
14447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14448 $as_echo "$ac_ct_OTOOL64" >&6; }
14449 else
14450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 $as_echo "no" >&6; }
14452 fi
14453
14454   if test "x$ac_ct_OTOOL64" = x; then
14455     OTOOL64=":"
14456   else
14457     case $cross_compiling:$ac_tool_warned in
14458 yes:)
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14461 ac_tool_warned=yes ;;
14462 esac
14463     OTOOL64=$ac_ct_OTOOL64
14464   fi
14465 else
14466   OTOOL64="$ac_cv_prog_OTOOL64"
14467 fi
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14496 $as_echo_n "checking for -single_module linker flag... " >&6; }
14497 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14498   $as_echo_n "(cached) " >&6
14499 else
14500   lt_cv_apple_cc_single_mod=no
14501       if test -z "${LT_MULTI_MODULE}"; then
14502         # By default we will add the -single_module flag. You can override
14503         # by either setting the environment variable LT_MULTI_MODULE
14504         # non-empty at configure time, or by adding -multi_module to the
14505         # link flags.
14506         rm -rf libconftest.dylib*
14507         echo "int foo(void){return 1;}" > conftest.c
14508         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14509 -dynamiclib -Wl,-single_module conftest.c" >&5
14510         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14511           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14512         _lt_result=$?
14513         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14514           lt_cv_apple_cc_single_mod=yes
14515         else
14516           cat conftest.err >&5
14517         fi
14518         rm -rf libconftest.dylib*
14519         rm -f conftest.*
14520       fi
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14523 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14525 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14526 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14527   $as_echo_n "(cached) " >&6
14528 else
14529   lt_cv_ld_exported_symbols_list=no
14530       save_LDFLAGS=$LDFLAGS
14531       echo "_main" > conftest.sym
14532       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h.  */
14535
14536 int
14537 main ()
14538 {
14539
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 if ac_fn_c_try_link "$LINENO"; then :
14545   lt_cv_ld_exported_symbols_list=yes
14546 else
14547   lt_cv_ld_exported_symbols_list=no
14548 fi
14549 rm -f core conftest.err conftest.$ac_objext \
14550     conftest$ac_exeext conftest.$ac_ext
14551         LDFLAGS="$save_LDFLAGS"
14552
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14555 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14557 $as_echo_n "checking for -force_load linker flag... " >&6; }
14558 if test "${lt_cv_ld_force_load+set}" = set; then :
14559   $as_echo_n "(cached) " >&6
14560 else
14561   lt_cv_ld_force_load=no
14562       cat > conftest.c << _LT_EOF
14563 int forced_loaded() { return 2;}
14564 _LT_EOF
14565       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14566       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14567       echo "$AR cru libconftest.a conftest.o" >&5
14568       $AR cru libconftest.a conftest.o 2>&5
14569       cat > conftest.c << _LT_EOF
14570 int main() { return 0;}
14571 _LT_EOF
14572       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14573       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14574       _lt_result=$?
14575       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14576         lt_cv_ld_force_load=yes
14577       else
14578         cat conftest.err >&5
14579       fi
14580         rm -f conftest.err libconftest.a conftest conftest.c
14581         rm -rf conftest.dSYM
14582
14583 fi
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14585 $as_echo "$lt_cv_ld_force_load" >&6; }
14586     case $host_os in
14587     rhapsody* | darwin1.[012])
14588       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14589     darwin1.*)
14590       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14591     darwin*) # darwin 5.x on
14592       # if running on 10.5 or later, the deployment target defaults
14593       # to the OS version, if on x86, and 10.4, the deployment
14594       # target defaults to 10.4. Don't you love it?
14595       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14596         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14597           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14598         10.[012]*)
14599           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14600         10.*)
14601           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14602       esac
14603     ;;
14604   esac
14605     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14606       _lt_dar_single_mod='$single_module'
14607     fi
14608     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14609       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14610     else
14611       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14612     fi
14613     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14614       _lt_dsymutil='~$DSYMUTIL $lib || :'
14615     else
14616       _lt_dsymutil=
14617     fi
14618     ;;
14619   esac
14620
14621 for ac_header in dlfcn.h
14622 do :
14623   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14624 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14625   cat >>confdefs.h <<_ACEOF
14626 #define HAVE_DLFCN_H 1
14627 _ACEOF
14628
14629 fi
14630 done
14631
14632
14633
14634
14635
14636 # Set options
14637
14638
14639
14640         enable_dlopen=no
14641
14642
14643   enable_win32_dll=no
14644
14645
14646             # Check whether --enable-shared was given.
14647 if test "${enable_shared+set}" = set; then :
14648   enableval=$enable_shared; p=${PACKAGE-default}
14649     case $enableval in
14650     yes) enable_shared=yes ;;
14651     no) enable_shared=no ;;
14652     *)
14653       enable_shared=no
14654       # Look at the argument we got.  We use all the common list separators.
14655       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14656       for pkg in $enableval; do
14657         IFS="$lt_save_ifs"
14658         if test "X$pkg" = "X$p"; then
14659           enable_shared=yes
14660         fi
14661       done
14662       IFS="$lt_save_ifs"
14663       ;;
14664     esac
14665 else
14666   enable_shared=yes
14667 fi
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677   # Check whether --enable-static was given.
14678 if test "${enable_static+set}" = set; then :
14679   enableval=$enable_static; p=${PACKAGE-default}
14680     case $enableval in
14681     yes) enable_static=yes ;;
14682     no) enable_static=no ;;
14683     *)
14684      enable_static=no
14685       # Look at the argument we got.  We use all the common list separators.
14686       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14687       for pkg in $enableval; do
14688         IFS="$lt_save_ifs"
14689         if test "X$pkg" = "X$p"; then
14690           enable_static=yes
14691         fi
14692       done
14693       IFS="$lt_save_ifs"
14694       ;;
14695     esac
14696 else
14697   enable_static=yes
14698 fi
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709 # Check whether --with-pic was given.
14710 if test "${with_pic+set}" = set; then :
14711   withval=$with_pic; pic_mode="$withval"
14712 else
14713   pic_mode=default
14714 fi
14715
14716
14717 test -z "$pic_mode" && pic_mode=default
14718
14719
14720
14721
14722
14723
14724
14725   # Check whether --enable-fast-install was given.
14726 if test "${enable_fast_install+set}" = set; then :
14727   enableval=$enable_fast_install; p=${PACKAGE-default}
14728     case $enableval in
14729     yes) enable_fast_install=yes ;;
14730     no) enable_fast_install=no ;;
14731     *)
14732       enable_fast_install=no
14733       # Look at the argument we got.  We use all the common list separators.
14734       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14735       for pkg in $enableval; do
14736         IFS="$lt_save_ifs"
14737         if test "X$pkg" = "X$p"; then
14738           enable_fast_install=yes
14739         fi
14740       done
14741       IFS="$lt_save_ifs"
14742       ;;
14743     esac
14744 else
14745   enable_fast_install=yes
14746 fi
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758 # This can be used to rebuild libtool when needed
14759 LIBTOOL_DEPS="$ltmain"
14760
14761 # Always use our own libtool.
14762 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789 test -z "$LN_S" && LN_S="ln -s"
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804 if test -n "${ZSH_VERSION+set}" ; then
14805    setopt NO_GLOB_SUBST
14806 fi
14807
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14809 $as_echo_n "checking for objdir... " >&6; }
14810 if test "${lt_cv_objdir+set}" = set; then :
14811   $as_echo_n "(cached) " >&6
14812 else
14813   rm -f .libs 2>/dev/null
14814 mkdir .libs 2>/dev/null
14815 if test -d .libs; then
14816   lt_cv_objdir=.libs
14817 else
14818   # MS-DOS does not allow filenames that begin with a dot.
14819   lt_cv_objdir=_libs
14820 fi
14821 rmdir .libs 2>/dev/null
14822 fi
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14824 $as_echo "$lt_cv_objdir" >&6; }
14825 objdir=$lt_cv_objdir
14826
14827
14828
14829
14830
14831 cat >>confdefs.h <<_ACEOF
14832 #define LT_OBJDIR "$lt_cv_objdir/"
14833 _ACEOF
14834
14835
14836
14837
14838 case $host_os in
14839 aix3*)
14840   # AIX sometimes has problems with the GCC collect2 program.  For some
14841   # reason, if we set the COLLECT_NAMES environment variable, the problems
14842   # vanish in a puff of smoke.
14843   if test "X${COLLECT_NAMES+set}" != Xset; then
14844     COLLECT_NAMES=
14845     export COLLECT_NAMES
14846   fi
14847   ;;
14848 esac
14849
14850 # Global variables:
14851 ofile=libtool
14852 can_build_shared=yes
14853
14854 # All known linkers require a `.a' archive for static linking (except MSVC,
14855 # which needs '.lib').
14856 libext=a
14857
14858 with_gnu_ld="$lt_cv_prog_gnu_ld"
14859
14860 old_CC="$CC"
14861 old_CFLAGS="$CFLAGS"
14862
14863 # Set sane defaults for various variables
14864 test -z "$CC" && CC=cc
14865 test -z "$LTCC" && LTCC=$CC
14866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14867 test -z "$LD" && LD=ld
14868 test -z "$ac_objext" && ac_objext=o
14869
14870 for cc_temp in $compiler""; do
14871   case $cc_temp in
14872     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14873     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14874     \-*) ;;
14875     *) break;;
14876   esac
14877 done
14878 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14879
14880
14881 # Only perform the check for file, if the check method requires it
14882 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14883 case $deplibs_check_method in
14884 file_magic*)
14885   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14887 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14889   $as_echo_n "(cached) " >&6
14890 else
14891   case $MAGIC_CMD in
14892 [\\/*] |  ?:[\\/]*)
14893   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14894   ;;
14895 *)
14896   lt_save_MAGIC_CMD="$MAGIC_CMD"
14897   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14898   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14899   for ac_dir in $ac_dummy; do
14900     IFS="$lt_save_ifs"
14901     test -z "$ac_dir" && ac_dir=.
14902     if test -f $ac_dir/${ac_tool_prefix}file; then
14903       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14904       if test -n "$file_magic_test_file"; then
14905         case $deplibs_check_method in
14906         "file_magic "*)
14907           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14908           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14909           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14910             $EGREP "$file_magic_regex" > /dev/null; then
14911             :
14912           else
14913             cat <<_LT_EOF 1>&2
14914
14915 *** Warning: the command libtool uses to detect shared libraries,
14916 *** $file_magic_cmd, produces output that libtool cannot recognize.
14917 *** The result is that libtool may fail to recognize shared libraries
14918 *** as such.  This will affect the creation of libtool libraries that
14919 *** depend on shared libraries, but programs linked with such libtool
14920 *** libraries will work regardless of this problem.  Nevertheless, you
14921 *** may want to report the problem to your system manager and/or to
14922 *** bug-libtool@gnu.org
14923
14924 _LT_EOF
14925           fi ;;
14926         esac
14927       fi
14928       break
14929     fi
14930   done
14931   IFS="$lt_save_ifs"
14932   MAGIC_CMD="$lt_save_MAGIC_CMD"
14933   ;;
14934 esac
14935 fi
14936
14937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14938 if test -n "$MAGIC_CMD"; then
14939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14940 $as_echo "$MAGIC_CMD" >&6; }
14941 else
14942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14944 fi
14945
14946
14947
14948
14949
14950 if test -z "$lt_cv_path_MAGIC_CMD"; then
14951   if test -n "$ac_tool_prefix"; then
14952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14953 $as_echo_n "checking for file... " >&6; }
14954 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14955   $as_echo_n "(cached) " >&6
14956 else
14957   case $MAGIC_CMD in
14958 [\\/*] |  ?:[\\/]*)
14959   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14960   ;;
14961 *)
14962   lt_save_MAGIC_CMD="$MAGIC_CMD"
14963   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14964   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14965   for ac_dir in $ac_dummy; do
14966     IFS="$lt_save_ifs"
14967     test -z "$ac_dir" && ac_dir=.
14968     if test -f $ac_dir/file; then
14969       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14970       if test -n "$file_magic_test_file"; then
14971         case $deplibs_check_method in
14972         "file_magic "*)
14973           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14974           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14975           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14976             $EGREP "$file_magic_regex" > /dev/null; then
14977             :
14978           else
14979             cat <<_LT_EOF 1>&2
14980
14981 *** Warning: the command libtool uses to detect shared libraries,
14982 *** $file_magic_cmd, produces output that libtool cannot recognize.
14983 *** The result is that libtool may fail to recognize shared libraries
14984 *** as such.  This will affect the creation of libtool libraries that
14985 *** depend on shared libraries, but programs linked with such libtool
14986 *** libraries will work regardless of this problem.  Nevertheless, you
14987 *** may want to report the problem to your system manager and/or to
14988 *** bug-libtool@gnu.org
14989
14990 _LT_EOF
14991           fi ;;
14992         esac
14993       fi
14994       break
14995     fi
14996   done
14997   IFS="$lt_save_ifs"
14998   MAGIC_CMD="$lt_save_MAGIC_CMD"
14999   ;;
15000 esac
15001 fi
15002
15003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15004 if test -n "$MAGIC_CMD"; then
15005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15006 $as_echo "$MAGIC_CMD" >&6; }
15007 else
15008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009 $as_echo "no" >&6; }
15010 fi
15011
15012
15013   else
15014     MAGIC_CMD=:
15015   fi
15016 fi
15017
15018   fi
15019   ;;
15020 esac
15021
15022 # Use C for the default configuration in the libtool script
15023
15024 lt_save_CC="$CC"
15025 ac_ext=c
15026 ac_cpp='$CPP $CPPFLAGS'
15027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15030
15031
15032 # Source file extension for C test sources.
15033 ac_ext=c
15034
15035 # Object file extension for compiled C test sources.
15036 objext=o
15037 objext=$objext
15038
15039 # Code to be used in simple compile tests
15040 lt_simple_compile_test_code="int some_variable = 0;"
15041
15042 # Code to be used in simple link tests
15043 lt_simple_link_test_code='int main(){return(0);}'
15044
15045
15046
15047
15048
15049
15050
15051 # If no C compiler was specified, use CC.
15052 LTCC=${LTCC-"$CC"}
15053
15054 # If no C compiler flags were specified, use CFLAGS.
15055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15056
15057 # Allow CC to be a program name with arguments.
15058 compiler=$CC
15059
15060 # Save the default compiler, since it gets overwritten when the other
15061 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15062 compiler_DEFAULT=$CC
15063
15064 # save warnings/boilerplate of simple test code
15065 ac_outfile=conftest.$ac_objext
15066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15068 _lt_compiler_boilerplate=`cat conftest.err`
15069 $RM conftest*
15070
15071 ac_outfile=conftest.$ac_objext
15072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15074 _lt_linker_boilerplate=`cat conftest.err`
15075 $RM -r conftest*
15076
15077
15078 ## CAVEAT EMPTOR:
15079 ## There is no encapsulation within the following macros, do not change
15080 ## the running order or otherwise move them around unless you know exactly
15081 ## what you are doing...
15082 if test -n "$compiler"; then
15083
15084 lt_prog_compiler_no_builtin_flag=
15085
15086 if test "$GCC" = yes; then
15087   case $cc_basename in
15088   nvcc*)
15089     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15090   *)
15091     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15092   esac
15093
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15095 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15096 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15097   $as_echo_n "(cached) " >&6
15098 else
15099   lt_cv_prog_compiler_rtti_exceptions=no
15100    ac_outfile=conftest.$ac_objext
15101    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15102    lt_compiler_flag="-fno-rtti -fno-exceptions"
15103    # Insert the option either (1) after the last *FLAGS variable, or
15104    # (2) before a word containing "conftest.", or (3) at the end.
15105    # Note that $ac_compile itself does not contain backslashes and begins
15106    # with a dollar sign (not a hyphen), so the echo should work correctly.
15107    # The option is referenced via a variable to avoid confusing sed.
15108    lt_compile=`echo "$ac_compile" | $SED \
15109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15111    -e 's:$: $lt_compiler_flag:'`
15112    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15113    (eval "$lt_compile" 2>conftest.err)
15114    ac_status=$?
15115    cat conftest.err >&5
15116    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117    if (exit $ac_status) && test -s "$ac_outfile"; then
15118      # The compiler can only warn and ignore the option if not recognized
15119      # So say no if there are warnings other than the usual output.
15120      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15121      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15122      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15123        lt_cv_prog_compiler_rtti_exceptions=yes
15124      fi
15125    fi
15126    $RM conftest*
15127
15128 fi
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15130 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15131
15132 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15133     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15134 else
15135     :
15136 fi
15137
15138 fi
15139
15140
15141
15142
15143
15144
15145   lt_prog_compiler_wl=
15146 lt_prog_compiler_pic=
15147 lt_prog_compiler_static=
15148
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15150 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15151
15152   if test "$GCC" = yes; then
15153     lt_prog_compiler_wl='-Wl,'
15154     lt_prog_compiler_static='-static'
15155
15156     case $host_os in
15157       aix*)
15158       # All AIX code is PIC.
15159       if test "$host_cpu" = ia64; then
15160         # AIX 5 now supports IA64 processor
15161         lt_prog_compiler_static='-Bstatic'
15162       fi
15163       ;;
15164
15165     amigaos*)
15166       case $host_cpu in
15167       powerpc)
15168             # see comment about AmigaOS4 .so support
15169             lt_prog_compiler_pic='-fPIC'
15170         ;;
15171       m68k)
15172             # FIXME: we need at least 68020 code to build shared libraries, but
15173             # adding the `-m68020' flag to GCC prevents building anything better,
15174             # like `-m68040'.
15175             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15176         ;;
15177       esac
15178       ;;
15179
15180     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15181       # PIC is the default for these OSes.
15182       ;;
15183
15184     mingw* | cygwin* | pw32* | os2* | cegcc*)
15185       # This hack is so that the source file can tell whether it is being
15186       # built for inclusion in a dll (and should export symbols for example).
15187       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15188       # (--disable-auto-import) libraries
15189       lt_prog_compiler_pic='-DDLL_EXPORT'
15190       ;;
15191
15192     darwin* | rhapsody*)
15193       # PIC is the default on this platform
15194       # Common symbols not allowed in MH_DYLIB files
15195       lt_prog_compiler_pic='-fno-common'
15196       ;;
15197
15198     haiku*)
15199       # PIC is the default for Haiku.
15200       # The "-static" flag exists, but is broken.
15201       lt_prog_compiler_static=
15202       ;;
15203
15204     hpux*)
15205       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15206       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15207       # sets the default TLS model and affects inlining.
15208       case $host_cpu in
15209       hppa*64*)
15210         # +Z the default
15211         ;;
15212       *)
15213         lt_prog_compiler_pic='-fPIC'
15214         ;;
15215       esac
15216       ;;
15217
15218     interix[3-9]*)
15219       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15220       # Instead, we relocate shared libraries at runtime.
15221       ;;
15222
15223     msdosdjgpp*)
15224       # Just because we use GCC doesn't mean we suddenly get shared libraries
15225       # on systems that don't support them.
15226       lt_prog_compiler_can_build_shared=no
15227       enable_shared=no
15228       ;;
15229
15230     *nto* | *qnx*)
15231       # QNX uses GNU C++, but need to define -shared option too, otherwise
15232       # it will coredump.
15233       lt_prog_compiler_pic='-fPIC -shared'
15234       ;;
15235
15236     sysv4*MP*)
15237       if test -d /usr/nec; then
15238         lt_prog_compiler_pic=-Kconform_pic
15239       fi
15240       ;;
15241
15242     *)
15243       lt_prog_compiler_pic='-fPIC'
15244       ;;
15245     esac
15246
15247     case $cc_basename in
15248     nvcc*) # Cuda Compiler Driver 2.2
15249       lt_prog_compiler_wl='-Xlinker '
15250       lt_prog_compiler_pic='-Xcompiler -fPIC'
15251       ;;
15252     esac
15253   else
15254     # PORTME Check for flag to pass linker flags through the system compiler.
15255     case $host_os in
15256     aix*)
15257       lt_prog_compiler_wl='-Wl,'
15258       if test "$host_cpu" = ia64; then
15259         # AIX 5 now supports IA64 processor
15260         lt_prog_compiler_static='-Bstatic'
15261       else
15262         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15263       fi
15264       ;;
15265
15266     mingw* | cygwin* | pw32* | os2* | cegcc*)
15267       # This hack is so that the source file can tell whether it is being
15268       # built for inclusion in a dll (and should export symbols for example).
15269       lt_prog_compiler_pic='-DDLL_EXPORT'
15270       ;;
15271
15272     hpux9* | hpux10* | hpux11*)
15273       lt_prog_compiler_wl='-Wl,'
15274       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15275       # not for PA HP-UX.
15276       case $host_cpu in
15277       hppa*64*|ia64*)
15278         # +Z the default
15279         ;;
15280       *)
15281         lt_prog_compiler_pic='+Z'
15282         ;;
15283       esac
15284       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15285       lt_prog_compiler_static='${wl}-a ${wl}archive'
15286       ;;
15287
15288     irix5* | irix6* | nonstopux*)
15289       lt_prog_compiler_wl='-Wl,'
15290       # PIC (with -KPIC) is the default.
15291       lt_prog_compiler_static='-non_shared'
15292       ;;
15293
15294     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15295       case $cc_basename in
15296       # old Intel for x86_64 which still supported -KPIC.
15297       ecc*)
15298         lt_prog_compiler_wl='-Wl,'
15299         lt_prog_compiler_pic='-KPIC'
15300         lt_prog_compiler_static='-static'
15301         ;;
15302       # icc used to be incompatible with GCC.
15303       # ICC 10 doesn't accept -KPIC any more.
15304       icc* | ifort*)
15305         lt_prog_compiler_wl='-Wl,'
15306         lt_prog_compiler_pic='-fPIC'
15307         lt_prog_compiler_static='-static'
15308         ;;
15309       # Lahey Fortran 8.1.
15310       lf95*)
15311         lt_prog_compiler_wl='-Wl,'
15312         lt_prog_compiler_pic='--shared'
15313         lt_prog_compiler_static='--static'
15314         ;;
15315       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15316         # Portland Group compilers (*not* the Pentium gcc compiler,
15317         # which looks to be a dead project)
15318         lt_prog_compiler_wl='-Wl,'
15319         lt_prog_compiler_pic='-fpic'
15320         lt_prog_compiler_static='-Bstatic'
15321         ;;
15322       ccc*)
15323         lt_prog_compiler_wl='-Wl,'
15324         # All Alpha code is PIC.
15325         lt_prog_compiler_static='-non_shared'
15326         ;;
15327       xl* | bgxl* | bgf* | mpixl*)
15328         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15329         lt_prog_compiler_wl='-Wl,'
15330         lt_prog_compiler_pic='-qpic'
15331         lt_prog_compiler_static='-qstaticlink'
15332         ;;
15333       *)
15334         case `$CC -V 2>&1 | sed 5q` in
15335         *Sun\ F* | *Sun*Fortran*)
15336           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15337           lt_prog_compiler_pic='-KPIC'
15338           lt_prog_compiler_static='-Bstatic'
15339           lt_prog_compiler_wl=''
15340           ;;
15341         *Sun\ C*)
15342           # Sun C 5.9
15343           lt_prog_compiler_pic='-KPIC'
15344           lt_prog_compiler_static='-Bstatic'
15345           lt_prog_compiler_wl='-Wl,'
15346           ;;
15347         esac
15348         ;;
15349       esac
15350       ;;
15351
15352     newsos6)
15353       lt_prog_compiler_pic='-KPIC'
15354       lt_prog_compiler_static='-Bstatic'
15355       ;;
15356
15357     *nto* | *qnx*)
15358       # QNX uses GNU C++, but need to define -shared option too, otherwise
15359       # it will coredump.
15360       lt_prog_compiler_pic='-fPIC -shared'
15361       ;;
15362
15363     osf3* | osf4* | osf5*)
15364       lt_prog_compiler_wl='-Wl,'
15365       # All OSF/1 code is PIC.
15366       lt_prog_compiler_static='-non_shared'
15367       ;;
15368
15369     rdos*)
15370       lt_prog_compiler_static='-non_shared'
15371       ;;
15372
15373     solaris*)
15374       lt_prog_compiler_pic='-KPIC'
15375       lt_prog_compiler_static='-Bstatic'
15376       case $cc_basename in
15377       f77* | f90* | f95*)
15378         lt_prog_compiler_wl='-Qoption ld ';;
15379       *)
15380         lt_prog_compiler_wl='-Wl,';;
15381       esac
15382       ;;
15383
15384     sunos4*)
15385       lt_prog_compiler_wl='-Qoption ld '
15386       lt_prog_compiler_pic='-PIC'
15387       lt_prog_compiler_static='-Bstatic'
15388       ;;
15389
15390     sysv4 | sysv4.2uw2* | sysv4.3*)
15391       lt_prog_compiler_wl='-Wl,'
15392       lt_prog_compiler_pic='-KPIC'
15393       lt_prog_compiler_static='-Bstatic'
15394       ;;
15395
15396     sysv4*MP*)
15397       if test -d /usr/nec ;then
15398         lt_prog_compiler_pic='-Kconform_pic'
15399         lt_prog_compiler_static='-Bstatic'
15400       fi
15401       ;;
15402
15403     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15404       lt_prog_compiler_wl='-Wl,'
15405       lt_prog_compiler_pic='-KPIC'
15406       lt_prog_compiler_static='-Bstatic'
15407       ;;
15408
15409     unicos*)
15410       lt_prog_compiler_wl='-Wl,'
15411       lt_prog_compiler_can_build_shared=no
15412       ;;
15413
15414     uts4*)
15415       lt_prog_compiler_pic='-pic'
15416       lt_prog_compiler_static='-Bstatic'
15417       ;;
15418
15419     *)
15420       lt_prog_compiler_can_build_shared=no
15421       ;;
15422     esac
15423   fi
15424
15425 case $host_os in
15426   # For platforms which do not support PIC, -DPIC is meaningless:
15427   *djgpp*)
15428     lt_prog_compiler_pic=
15429     ;;
15430   *)
15431     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15432     ;;
15433 esac
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15435 $as_echo "$lt_prog_compiler_pic" >&6; }
15436
15437
15438
15439
15440
15441
15442 #
15443 # Check to make sure the PIC flag actually works.
15444 #
15445 if test -n "$lt_prog_compiler_pic"; then
15446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15447 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15448 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15449   $as_echo_n "(cached) " >&6
15450 else
15451   lt_cv_prog_compiler_pic_works=no
15452    ac_outfile=conftest.$ac_objext
15453    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15454    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15455    # Insert the option either (1) after the last *FLAGS variable, or
15456    # (2) before a word containing "conftest.", or (3) at the end.
15457    # Note that $ac_compile itself does not contain backslashes and begins
15458    # with a dollar sign (not a hyphen), so the echo should work correctly.
15459    # The option is referenced via a variable to avoid confusing sed.
15460    lt_compile=`echo "$ac_compile" | $SED \
15461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463    -e 's:$: $lt_compiler_flag:'`
15464    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15465    (eval "$lt_compile" 2>conftest.err)
15466    ac_status=$?
15467    cat conftest.err >&5
15468    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469    if (exit $ac_status) && test -s "$ac_outfile"; then
15470      # The compiler can only warn and ignore the option if not recognized
15471      # So say no if there are warnings other than the usual output.
15472      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15473      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15474      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15475        lt_cv_prog_compiler_pic_works=yes
15476      fi
15477    fi
15478    $RM conftest*
15479
15480 fi
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15482 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15483
15484 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15485     case $lt_prog_compiler_pic in
15486      "" | " "*) ;;
15487      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15488      esac
15489 else
15490     lt_prog_compiler_pic=
15491      lt_prog_compiler_can_build_shared=no
15492 fi
15493
15494 fi
15495
15496
15497
15498
15499
15500
15501 #
15502 # Check to make sure the static flag actually works.
15503 #
15504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15506 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15507 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15508   $as_echo_n "(cached) " >&6
15509 else
15510   lt_cv_prog_compiler_static_works=no
15511    save_LDFLAGS="$LDFLAGS"
15512    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15513    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15514    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15515      # The linker can only warn and ignore the option if not recognized
15516      # So say no if there are warnings
15517      if test -s conftest.err; then
15518        # Append any errors to the config.log.
15519        cat conftest.err 1>&5
15520        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15521        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522        if diff conftest.exp conftest.er2 >/dev/null; then
15523          lt_cv_prog_compiler_static_works=yes
15524        fi
15525      else
15526        lt_cv_prog_compiler_static_works=yes
15527      fi
15528    fi
15529    $RM -r conftest*
15530    LDFLAGS="$save_LDFLAGS"
15531
15532 fi
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15534 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15535
15536 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15537     :
15538 else
15539     lt_prog_compiler_static=
15540 fi
15541
15542
15543
15544
15545
15546
15547
15548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15551   $as_echo_n "(cached) " >&6
15552 else
15553   lt_cv_prog_compiler_c_o=no
15554    $RM -r conftest 2>/dev/null
15555    mkdir conftest
15556    cd conftest
15557    mkdir out
15558    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15559
15560    lt_compiler_flag="-o out/conftest2.$ac_objext"
15561    # Insert the option either (1) after the last *FLAGS variable, or
15562    # (2) before a word containing "conftest.", or (3) at the end.
15563    # Note that $ac_compile itself does not contain backslashes and begins
15564    # with a dollar sign (not a hyphen), so the echo should work correctly.
15565    lt_compile=`echo "$ac_compile" | $SED \
15566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15568    -e 's:$: $lt_compiler_flag:'`
15569    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15570    (eval "$lt_compile" 2>out/conftest.err)
15571    ac_status=$?
15572    cat out/conftest.err >&5
15573    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15575    then
15576      # The compiler can only warn and ignore the option if not recognized
15577      # So say no if there are warnings
15578      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15579      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15580      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15581        lt_cv_prog_compiler_c_o=yes
15582      fi
15583    fi
15584    chmod u+w . 2>&5
15585    $RM conftest*
15586    # SGI C++ compiler will create directory out/ii_files/ for
15587    # template instantiation
15588    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15589    $RM out/* && rmdir out
15590    cd ..
15591    $RM -r conftest
15592    $RM conftest*
15593
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15597
15598
15599
15600
15601
15602
15603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15604 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15605 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15606   $as_echo_n "(cached) " >&6
15607 else
15608   lt_cv_prog_compiler_c_o=no
15609    $RM -r conftest 2>/dev/null
15610    mkdir conftest
15611    cd conftest
15612    mkdir out
15613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15614
15615    lt_compiler_flag="-o out/conftest2.$ac_objext"
15616    # Insert the option either (1) after the last *FLAGS variable, or
15617    # (2) before a word containing "conftest.", or (3) at the end.
15618    # Note that $ac_compile itself does not contain backslashes and begins
15619    # with a dollar sign (not a hyphen), so the echo should work correctly.
15620    lt_compile=`echo "$ac_compile" | $SED \
15621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15623    -e 's:$: $lt_compiler_flag:'`
15624    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15625    (eval "$lt_compile" 2>out/conftest.err)
15626    ac_status=$?
15627    cat out/conftest.err >&5
15628    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15630    then
15631      # The compiler can only warn and ignore the option if not recognized
15632      # So say no if there are warnings
15633      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15634      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15635      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15636        lt_cv_prog_compiler_c_o=yes
15637      fi
15638    fi
15639    chmod u+w . 2>&5
15640    $RM conftest*
15641    # SGI C++ compiler will create directory out/ii_files/ for
15642    # template instantiation
15643    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15644    $RM out/* && rmdir out
15645    cd ..
15646    $RM -r conftest
15647    $RM conftest*
15648
15649 fi
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15651 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15652
15653
15654
15655
15656 hard_links="nottested"
15657 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15658   # do not overwrite the value of need_locks provided by the user
15659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15660 $as_echo_n "checking if we can lock with hard links... " >&6; }
15661   hard_links=yes
15662   $RM conftest*
15663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15664   touch conftest.a
15665   ln conftest.a conftest.b 2>&5 || hard_links=no
15666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15668 $as_echo "$hard_links" >&6; }
15669   if test "$hard_links" = no; then
15670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15671 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15672     need_locks=warn
15673   fi
15674 else
15675   need_locks=no
15676 fi
15677
15678
15679
15680
15681
15682
15683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15685
15686   runpath_var=
15687   allow_undefined_flag=
15688   always_export_symbols=no
15689   archive_cmds=
15690   archive_expsym_cmds=
15691   compiler_needs_object=no
15692   enable_shared_with_static_runtimes=no
15693   export_dynamic_flag_spec=
15694   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15695   hardcode_automatic=no
15696   hardcode_direct=no
15697   hardcode_direct_absolute=no
15698   hardcode_libdir_flag_spec=
15699   hardcode_libdir_flag_spec_ld=
15700   hardcode_libdir_separator=
15701   hardcode_minus_L=no
15702   hardcode_shlibpath_var=unsupported
15703   inherit_rpath=no
15704   link_all_deplibs=unknown
15705   module_cmds=
15706   module_expsym_cmds=
15707   old_archive_from_new_cmds=
15708   old_archive_from_expsyms_cmds=
15709   thread_safe_flag_spec=
15710   whole_archive_flag_spec=
15711   # include_expsyms should be a list of space-separated symbols to be *always*
15712   # included in the symbol list
15713   include_expsyms=
15714   # exclude_expsyms can be an extended regexp of symbols to exclude
15715   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15716   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15717   # as well as any symbol that contains `d'.
15718   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15719   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15720   # platforms (ab)use it in PIC code, but their linkers get confused if
15721   # the symbol is explicitly referenced.  Since portable code cannot
15722   # rely on this symbol name, it's probably fine to never include it in
15723   # preloaded symbol tables.
15724   # Exclude shared library initialization/finalization symbols.
15725   extract_expsyms_cmds=
15726
15727   case $host_os in
15728   cygwin* | mingw* | pw32* | cegcc*)
15729     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15730     # When not using gcc, we currently assume that we are using
15731     # Microsoft Visual C++.
15732     if test "$GCC" != yes; then
15733       with_gnu_ld=no
15734     fi
15735     ;;
15736   interix*)
15737     # we just hope/assume this is gcc and not c89 (= MSVC++)
15738     with_gnu_ld=yes
15739     ;;
15740   openbsd*)
15741     with_gnu_ld=no
15742     ;;
15743   esac
15744
15745   ld_shlibs=yes
15746
15747   # On some targets, GNU ld is compatible enough with the native linker
15748   # that we're better off using the native interface for both.
15749   lt_use_gnu_ld_interface=no
15750   if test "$with_gnu_ld" = yes; then
15751     case $host_os in
15752       aix*)
15753         # The AIX port of GNU ld has always aspired to compatibility
15754         # with the native linker.  However, as the warning in the GNU ld
15755         # block says, versions before 2.19.5* couldn't really create working
15756         # shared libraries, regardless of the interface used.
15757         case `$LD -v 2>&1` in
15758           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15759           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15760           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15761           *)
15762             lt_use_gnu_ld_interface=yes
15763             ;;
15764         esac
15765         ;;
15766       *)
15767         lt_use_gnu_ld_interface=yes
15768         ;;
15769     esac
15770   fi
15771
15772   if test "$lt_use_gnu_ld_interface" = yes; then
15773     # If archive_cmds runs LD, not CC, wlarc should be empty
15774     wlarc='${wl}'
15775
15776     # Set some defaults for GNU ld with shared library support. These
15777     # are reset later if shared libraries are not supported. Putting them
15778     # here allows them to be overridden if necessary.
15779     runpath_var=LD_RUN_PATH
15780     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15781     export_dynamic_flag_spec='${wl}--export-dynamic'
15782     # ancient GNU ld didn't support --whole-archive et. al.
15783     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15784       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15785     else
15786       whole_archive_flag_spec=
15787     fi
15788     supports_anon_versioning=no
15789     case `$LD -v 2>&1` in
15790       *GNU\ gold*) supports_anon_versioning=yes ;;
15791       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15792       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15793       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15794       *\ 2.11.*) ;; # other 2.11 versions
15795       *) supports_anon_versioning=yes ;;
15796     esac
15797
15798     # See if GNU ld supports shared libraries.
15799     case $host_os in
15800     aix[3-9]*)
15801       # On AIX/PPC, the GNU linker is very broken
15802       if test "$host_cpu" != ia64; then
15803         ld_shlibs=no
15804         cat <<_LT_EOF 1>&2
15805
15806 *** Warning: the GNU linker, at least up to release 2.19, is reported
15807 *** to be unable to reliably create shared libraries on AIX.
15808 *** Therefore, libtool is disabling shared libraries support.  If you
15809 *** really care for shared libraries, you may want to install binutils
15810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15811 *** You will then need to restart the configuration process.
15812
15813 _LT_EOF
15814       fi
15815       ;;
15816
15817     amigaos*)
15818       case $host_cpu in
15819       powerpc)
15820             # see comment about AmigaOS4 .so support
15821             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15822             archive_expsym_cmds=''
15823         ;;
15824       m68k)
15825             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)'
15826             hardcode_libdir_flag_spec='-L$libdir'
15827             hardcode_minus_L=yes
15828         ;;
15829       esac
15830       ;;
15831
15832     beos*)
15833       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15834         allow_undefined_flag=unsupported
15835         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15836         # support --undefined.  This deserves some investigation.  FIXME
15837         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15838       else
15839         ld_shlibs=no
15840       fi
15841       ;;
15842
15843     cygwin* | mingw* | pw32* | cegcc*)
15844       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15845       # as there is no search path for DLLs.
15846       hardcode_libdir_flag_spec='-L$libdir'
15847       export_dynamic_flag_spec='${wl}--export-all-symbols'
15848       allow_undefined_flag=unsupported
15849       always_export_symbols=no
15850       enable_shared_with_static_runtimes=yes
15851       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15852
15853       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15854         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15855         # If the export-symbols file already is a .def file (1st line
15856         # is EXPORTS), use it as is; otherwise, prepend...
15857         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15858           cp $export_symbols $output_objdir/$soname.def;
15859         else
15860           echo EXPORTS > $output_objdir/$soname.def;
15861           cat $export_symbols >> $output_objdir/$soname.def;
15862         fi~
15863         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15864       else
15865         ld_shlibs=no
15866       fi
15867       ;;
15868
15869     haiku*)
15870       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15871       link_all_deplibs=yes
15872       ;;
15873
15874     interix[3-9]*)
15875       hardcode_direct=no
15876       hardcode_shlibpath_var=no
15877       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15878       export_dynamic_flag_spec='${wl}-E'
15879       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15880       # Instead, shared libraries are loaded at an image base (0x10000000 by
15881       # default) and relocated if they conflict, which is a slow very memory
15882       # consuming and fragmenting process.  To avoid this, we pick a random,
15883       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15884       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15885       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15886       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'
15887       ;;
15888
15889     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15890       tmp_diet=no
15891       if test "$host_os" = linux-dietlibc; then
15892         case $cc_basename in
15893           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15894         esac
15895       fi
15896       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15897          && test "$tmp_diet" = no
15898       then
15899         tmp_addflag=
15900         tmp_sharedflag='-shared'
15901         case $cc_basename,$host_cpu in
15902         pgcc*)                          # Portland Group C compiler
15903           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'
15904           tmp_addflag=' $pic_flag'
15905           ;;
15906         pgf77* | pgf90* | pgf95* | pgfortran*)
15907                                         # Portland Group f77 and f90 compilers
15908           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'
15909           tmp_addflag=' $pic_flag -Mnomain' ;;
15910         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15911           tmp_addflag=' -i_dynamic' ;;
15912         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15913           tmp_addflag=' -i_dynamic -nofor_main' ;;
15914         ifc* | ifort*)                  # Intel Fortran compiler
15915           tmp_addflag=' -nofor_main' ;;
15916         lf95*)                          # Lahey Fortran 8.1
15917           whole_archive_flag_spec=
15918           tmp_sharedflag='--shared' ;;
15919         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15920           tmp_sharedflag='-qmkshrobj'
15921           tmp_addflag= ;;
15922         nvcc*)  # Cuda Compiler Driver 2.2
15923           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'
15924           compiler_needs_object=yes
15925           ;;
15926         esac
15927         case `$CC -V 2>&1 | sed 5q` in
15928         *Sun\ C*)                       # Sun C 5.9
15929           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'
15930           compiler_needs_object=yes
15931           tmp_sharedflag='-G' ;;
15932         *Sun\ F*)                       # Sun Fortran 8.3
15933           tmp_sharedflag='-G' ;;
15934         esac
15935         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936
15937         if test "x$supports_anon_versioning" = xyes; then
15938           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15939             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15940             echo "local: *; };" >> $output_objdir/$libname.ver~
15941             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15942         fi
15943
15944         case $cc_basename in
15945         xlf* | bgf* | bgxlf* | mpixlf*)
15946           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15947           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15948           hardcode_libdir_flag_spec=
15949           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15950           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15951           if test "x$supports_anon_versioning" = xyes; then
15952             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15953               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15954               echo "local: *; };" >> $output_objdir/$libname.ver~
15955               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15956           fi
15957           ;;
15958         esac
15959       else
15960         ld_shlibs=no
15961       fi
15962       ;;
15963
15964     netbsd*)
15965       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15966         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15967         wlarc=
15968       else
15969         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15971       fi
15972       ;;
15973
15974     solaris*)
15975       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15976         ld_shlibs=no
15977         cat <<_LT_EOF 1>&2
15978
15979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15980 *** create shared libraries on Solaris systems.  Therefore, libtool
15981 *** is disabling shared libraries support.  We urge you to upgrade GNU
15982 *** binutils to release 2.9.1 or newer.  Another option is to modify
15983 *** your PATH or compiler configuration so that the native linker is
15984 *** used, and then restart.
15985
15986 _LT_EOF
15987       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15988         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15990       else
15991         ld_shlibs=no
15992       fi
15993       ;;
15994
15995     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15996       case `$LD -v 2>&1` in
15997         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15998         ld_shlibs=no
15999         cat <<_LT_EOF 1>&2
16000
16001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16002 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16003 *** is disabling shared libraries support.  We urge you to upgrade GNU
16004 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16005 *** your PATH or compiler configuration so that the native linker is
16006 *** used, and then restart.
16007
16008 _LT_EOF
16009         ;;
16010         *)
16011           # For security reasons, it is highly recommended that you always
16012           # use absolute paths for naming shared libraries, and exclude the
16013           # DT_RUNPATH tag from executables and libraries.  But doing so
16014           # requires that you compile everything twice, which is a pain.
16015           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16016             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16017             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16018             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16019           else
16020             ld_shlibs=no
16021           fi
16022         ;;
16023       esac
16024       ;;
16025
16026     sunos4*)
16027       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16028       wlarc=
16029       hardcode_direct=yes
16030       hardcode_shlibpath_var=no
16031       ;;
16032
16033     *)
16034       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16035         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16036         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16037       else
16038         ld_shlibs=no
16039       fi
16040       ;;
16041     esac
16042
16043     if test "$ld_shlibs" = no; then
16044       runpath_var=
16045       hardcode_libdir_flag_spec=
16046       export_dynamic_flag_spec=
16047       whole_archive_flag_spec=
16048     fi
16049   else
16050     # PORTME fill in a description of your system's linker (not GNU ld)
16051     case $host_os in
16052     aix3*)
16053       allow_undefined_flag=unsupported
16054       always_export_symbols=yes
16055       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'
16056       # Note: this linker hardcodes the directories in LIBPATH if there
16057       # are no directories specified by -L.
16058       hardcode_minus_L=yes
16059       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16060         # Neither direct hardcoding nor static linking is supported with a
16061         # broken collect2.
16062         hardcode_direct=unsupported
16063       fi
16064       ;;
16065
16066     aix[4-9]*)
16067       if test "$host_cpu" = ia64; then
16068         # On IA64, the linker does run time linking by default, so we don't
16069         # have to do anything special.
16070         aix_use_runtimelinking=no
16071         exp_sym_flag='-Bexport'
16072         no_entry_flag=""
16073       else
16074         # If we're using GNU nm, then we don't want the "-C" option.
16075         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16076         # Also, AIX nm treats weak defined symbols like other global
16077         # defined symbols, whereas GNU nm marks them as "W".
16078         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16079           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'
16080         else
16081           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'
16082         fi
16083         aix_use_runtimelinking=no
16084
16085         # Test if we are trying to use run time linking or normal
16086         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16087         # need to do runtime linking.
16088         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16089           for ld_flag in $LDFLAGS; do
16090           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16091             aix_use_runtimelinking=yes
16092             break
16093           fi
16094           done
16095           ;;
16096         esac
16097
16098         exp_sym_flag='-bexport'
16099         no_entry_flag='-bnoentry'
16100       fi
16101
16102       # When large executables or shared objects are built, AIX ld can
16103       # have problems creating the table of contents.  If linking a library
16104       # or program results in "error TOC overflow" add -mminimal-toc to
16105       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16106       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16107
16108       archive_cmds=''
16109       hardcode_direct=yes
16110       hardcode_direct_absolute=yes
16111       hardcode_libdir_separator=':'
16112       link_all_deplibs=yes
16113       file_list_spec='${wl}-f,'
16114
16115       if test "$GCC" = yes; then
16116         case $host_os in aix4.[012]|aix4.[012].*)
16117         # We only want to do this on AIX 4.2 and lower, the check
16118         # below for broken collect2 doesn't work under 4.3+
16119           collect2name=`${CC} -print-prog-name=collect2`
16120           if test -f "$collect2name" &&
16121            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16122           then
16123           # We have reworked collect2
16124           :
16125           else
16126           # We have old collect2
16127           hardcode_direct=unsupported
16128           # It fails to find uninstalled libraries when the uninstalled
16129           # path is not listed in the libpath.  Setting hardcode_minus_L
16130           # to unsupported forces relinking
16131           hardcode_minus_L=yes
16132           hardcode_libdir_flag_spec='-L$libdir'
16133           hardcode_libdir_separator=
16134           fi
16135           ;;
16136         esac
16137         shared_flag='-shared'
16138         if test "$aix_use_runtimelinking" = yes; then
16139           shared_flag="$shared_flag "'${wl}-G'
16140         fi
16141       else
16142         # not using gcc
16143         if test "$host_cpu" = ia64; then
16144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16145         # chokes on -Wl,-G. The following line is correct:
16146           shared_flag='-G'
16147         else
16148           if test "$aix_use_runtimelinking" = yes; then
16149             shared_flag='${wl}-G'
16150           else
16151             shared_flag='${wl}-bM:SRE'
16152           fi
16153         fi
16154       fi
16155
16156       export_dynamic_flag_spec='${wl}-bexpall'
16157       # It seems that -bexpall does not export symbols beginning with
16158       # underscore (_), so it is better to generate a list of symbols to export.
16159       always_export_symbols=yes
16160       if test "$aix_use_runtimelinking" = yes; then
16161         # Warning - without using the other runtime loading flags (-brtl),
16162         # -berok will link without error, but may produce a broken library.
16163         allow_undefined_flag='-berok'
16164         # Determine the default libpath from the value encoded in an
16165         # empty executable.
16166         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h.  */
16168
16169 int
16170 main ()
16171 {
16172
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_c_try_link "$LINENO"; then :
16178
16179 lt_aix_libpath_sed='
16180     /Import File Strings/,/^$/ {
16181         /^0/ {
16182             s/^0  *\(.*\)$/\1/
16183             p
16184         }
16185     }'
16186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16187 # Check for a 64-bit object if we didn't find anything.
16188 if test -z "$aix_libpath"; then
16189   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16190 fi
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext \
16193     conftest$ac_exeext conftest.$ac_ext
16194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16195
16196         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16197         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"
16198       else
16199         if test "$host_cpu" = ia64; then
16200           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16201           allow_undefined_flag="-z nodefs"
16202           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"
16203         else
16204          # Determine the default libpath from the value encoded in an
16205          # empty executable.
16206          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h.  */
16208
16209 int
16210 main ()
16211 {
16212
16213   ;
16214   return 0;
16215 }
16216 _ACEOF
16217 if ac_fn_c_try_link "$LINENO"; then :
16218
16219 lt_aix_libpath_sed='
16220     /Import File Strings/,/^$/ {
16221         /^0/ {
16222             s/^0  *\(.*\)$/\1/
16223             p
16224         }
16225     }'
16226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16227 # Check for a 64-bit object if we didn't find anything.
16228 if test -z "$aix_libpath"; then
16229   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16230 fi
16231 fi
16232 rm -f core conftest.err conftest.$ac_objext \
16233     conftest$ac_exeext conftest.$ac_ext
16234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16235
16236          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16237           # Warning - without using the other run time loading flags,
16238           # -berok will link without error, but may produce a broken library.
16239           no_undefined_flag=' ${wl}-bernotok'
16240           allow_undefined_flag=' ${wl}-berok'
16241           if test "$with_gnu_ld" = yes; then
16242             # We only use this code for GNU lds that support --whole-archive.
16243             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16244           else
16245             # Exported symbols can be pulled into shared objects from archives
16246             whole_archive_flag_spec='$convenience'
16247           fi
16248           archive_cmds_need_lc=yes
16249           # This is similar to how AIX traditionally builds its shared libraries.
16250           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'
16251         fi
16252       fi
16253       ;;
16254
16255     amigaos*)
16256       case $host_cpu in
16257       powerpc)
16258             # see comment about AmigaOS4 .so support
16259             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16260             archive_expsym_cmds=''
16261         ;;
16262       m68k)
16263             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)'
16264             hardcode_libdir_flag_spec='-L$libdir'
16265             hardcode_minus_L=yes
16266         ;;
16267       esac
16268       ;;
16269
16270     bsdi[45]*)
16271       export_dynamic_flag_spec=-rdynamic
16272       ;;
16273
16274     cygwin* | mingw* | pw32* | cegcc*)
16275       # When not using gcc, we currently assume that we are using
16276       # Microsoft Visual C++.
16277       # hardcode_libdir_flag_spec is actually meaningless, as there is
16278       # no search path for DLLs.
16279       hardcode_libdir_flag_spec=' '
16280       allow_undefined_flag=unsupported
16281       # Tell ltmain to make .lib files, not .a files.
16282       libext=lib
16283       # Tell ltmain to make .dll files, not .so files.
16284       shrext_cmds=".dll"
16285       # FIXME: Setting linknames here is a bad hack.
16286       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16287       # The linker will automatically build a .lib file if we build a DLL.
16288       old_archive_from_new_cmds='true'
16289       # FIXME: Should let the user specify the lib program.
16290       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16291       fix_srcfile_path='`cygpath -w "$srcfile"`'
16292       enable_shared_with_static_runtimes=yes
16293       ;;
16294
16295     darwin* | rhapsody*)
16296
16297
16298   archive_cmds_need_lc=no
16299   hardcode_direct=no
16300   hardcode_automatic=yes
16301   hardcode_shlibpath_var=unsupported
16302   if test "$lt_cv_ld_force_load" = "yes"; then
16303     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\"`'
16304   else
16305     whole_archive_flag_spec=''
16306   fi
16307   link_all_deplibs=yes
16308   allow_undefined_flag="$_lt_dar_allow_undefined"
16309   case $cc_basename in
16310      ifort*) _lt_dar_can_shared=yes ;;
16311      *) _lt_dar_can_shared=$GCC ;;
16312   esac
16313   if test "$_lt_dar_can_shared" = "yes"; then
16314     output_verbose_link_cmd=func_echo_all
16315     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16316     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16317     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}"
16318     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}"
16319
16320   else
16321   ld_shlibs=no
16322   fi
16323
16324       ;;
16325
16326     dgux*)
16327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328       hardcode_libdir_flag_spec='-L$libdir'
16329       hardcode_shlibpath_var=no
16330       ;;
16331
16332     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16333     # support.  Future versions do this automatically, but an explicit c++rt0.o
16334     # does not break anything, and helps significantly (at the cost of a little
16335     # extra space).
16336     freebsd2.2*)
16337       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16338       hardcode_libdir_flag_spec='-R$libdir'
16339       hardcode_direct=yes
16340       hardcode_shlibpath_var=no
16341       ;;
16342
16343     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16344     freebsd2.*)
16345       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16346       hardcode_direct=yes
16347       hardcode_minus_L=yes
16348       hardcode_shlibpath_var=no
16349       ;;
16350
16351     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16352     freebsd* | dragonfly*)
16353       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16354       hardcode_libdir_flag_spec='-R$libdir'
16355       hardcode_direct=yes
16356       hardcode_shlibpath_var=no
16357       ;;
16358
16359     hpux9*)
16360       if test "$GCC" = yes; then
16361         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'
16362       else
16363         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'
16364       fi
16365       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16366       hardcode_libdir_separator=:
16367       hardcode_direct=yes
16368
16369       # hardcode_minus_L: Not really in the search PATH,
16370       # but as the default location of the library.
16371       hardcode_minus_L=yes
16372       export_dynamic_flag_spec='${wl}-E'
16373       ;;
16374
16375     hpux10*)
16376       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16377         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16378       else
16379         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16380       fi
16381       if test "$with_gnu_ld" = no; then
16382         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16383         hardcode_libdir_flag_spec_ld='+b $libdir'
16384         hardcode_libdir_separator=:
16385         hardcode_direct=yes
16386         hardcode_direct_absolute=yes
16387         export_dynamic_flag_spec='${wl}-E'
16388         # hardcode_minus_L: Not really in the search PATH,
16389         # but as the default location of the library.
16390         hardcode_minus_L=yes
16391       fi
16392       ;;
16393
16394     hpux11*)
16395       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16396         case $host_cpu in
16397         hppa*64*)
16398           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16399           ;;
16400         ia64*)
16401           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16402           ;;
16403         *)
16404           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16405           ;;
16406         esac
16407       else
16408         case $host_cpu in
16409         hppa*64*)
16410           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16411           ;;
16412         ia64*)
16413           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16414           ;;
16415         *)
16416
16417           # Older versions of the 11.00 compiler do not understand -b yet
16418           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16420 $as_echo_n "checking if $CC understands -b... " >&6; }
16421 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16422   $as_echo_n "(cached) " >&6
16423 else
16424   lt_cv_prog_compiler__b=no
16425    save_LDFLAGS="$LDFLAGS"
16426    LDFLAGS="$LDFLAGS -b"
16427    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16428    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16429      # The linker can only warn and ignore the option if not recognized
16430      # So say no if there are warnings
16431      if test -s conftest.err; then
16432        # Append any errors to the config.log.
16433        cat conftest.err 1>&5
16434        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16435        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16436        if diff conftest.exp conftest.er2 >/dev/null; then
16437          lt_cv_prog_compiler__b=yes
16438        fi
16439      else
16440        lt_cv_prog_compiler__b=yes
16441      fi
16442    fi
16443    $RM -r conftest*
16444    LDFLAGS="$save_LDFLAGS"
16445
16446 fi
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16449
16450 if test x"$lt_cv_prog_compiler__b" = xyes; then
16451     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16452 else
16453     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16454 fi
16455
16456           ;;
16457         esac
16458       fi
16459       if test "$with_gnu_ld" = no; then
16460         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16461         hardcode_libdir_separator=:
16462
16463         case $host_cpu in
16464         hppa*64*|ia64*)
16465           hardcode_direct=no
16466           hardcode_shlibpath_var=no
16467           ;;
16468         *)
16469           hardcode_direct=yes
16470           hardcode_direct_absolute=yes
16471           export_dynamic_flag_spec='${wl}-E'
16472
16473           # hardcode_minus_L: Not really in the search PATH,
16474           # but as the default location of the library.
16475           hardcode_minus_L=yes
16476           ;;
16477         esac
16478       fi
16479       ;;
16480
16481     irix5* | irix6* | nonstopux*)
16482       if test "$GCC" = yes; then
16483         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'
16484         # Try to use the -exported_symbol ld option, if it does not
16485         # work, assume that -exports_file does not work either and
16486         # implicitly export all symbols.
16487         save_LDFLAGS="$LDFLAGS"
16488         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16489         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h.  */
16491 int foo(void) {}
16492 _ACEOF
16493 if ac_fn_c_try_link "$LINENO"; then :
16494   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'
16495
16496 fi
16497 rm -f core conftest.err conftest.$ac_objext \
16498     conftest$ac_exeext conftest.$ac_ext
16499         LDFLAGS="$save_LDFLAGS"
16500       else
16501         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'
16502         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'
16503       fi
16504       archive_cmds_need_lc='no'
16505       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16506       hardcode_libdir_separator=:
16507       inherit_rpath=yes
16508       link_all_deplibs=yes
16509       ;;
16510
16511     netbsd*)
16512       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16513         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16514       else
16515         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16516       fi
16517       hardcode_libdir_flag_spec='-R$libdir'
16518       hardcode_direct=yes
16519       hardcode_shlibpath_var=no
16520       ;;
16521
16522     newsos6)
16523       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524       hardcode_direct=yes
16525       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16526       hardcode_libdir_separator=:
16527       hardcode_shlibpath_var=no
16528       ;;
16529
16530     *nto* | *qnx*)
16531       ;;
16532
16533     openbsd*)
16534       if test -f /usr/libexec/ld.so; then
16535         hardcode_direct=yes
16536         hardcode_shlibpath_var=no
16537         hardcode_direct_absolute=yes
16538         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16539           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16540           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16541           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16542           export_dynamic_flag_spec='${wl}-E'
16543         else
16544           case $host_os in
16545            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16546              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16547              hardcode_libdir_flag_spec='-R$libdir'
16548              ;;
16549            *)
16550              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16551              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16552              ;;
16553           esac
16554         fi
16555       else
16556         ld_shlibs=no
16557       fi
16558       ;;
16559
16560     os2*)
16561       hardcode_libdir_flag_spec='-L$libdir'
16562       hardcode_minus_L=yes
16563       allow_undefined_flag=unsupported
16564       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'
16565       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16566       ;;
16567
16568     osf3*)
16569       if test "$GCC" = yes; then
16570         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16571         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'
16572       else
16573         allow_undefined_flag=' -expect_unresolved \*'
16574         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'
16575       fi
16576       archive_cmds_need_lc='no'
16577       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16578       hardcode_libdir_separator=:
16579       ;;
16580
16581     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16582       if test "$GCC" = yes; then
16583         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16584         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'
16585         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16586       else
16587         allow_undefined_flag=' -expect_unresolved \*'
16588         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'
16589         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~
16590         $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'
16591
16592         # Both c and cxx compiler support -rpath directly
16593         hardcode_libdir_flag_spec='-rpath $libdir'
16594       fi
16595       archive_cmds_need_lc='no'
16596       hardcode_libdir_separator=:
16597       ;;
16598
16599     solaris*)
16600       no_undefined_flag=' -z defs'
16601       if test "$GCC" = yes; then
16602         wlarc='${wl}'
16603         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16604         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16605           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16606       else
16607         case `$CC -V 2>&1` in
16608         *"Compilers 5.0"*)
16609           wlarc=''
16610           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16612           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16613           ;;
16614         *)
16615           wlarc='${wl}'
16616           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16617           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16618           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16619           ;;
16620         esac
16621       fi
16622       hardcode_libdir_flag_spec='-R$libdir'
16623       hardcode_shlibpath_var=no
16624       case $host_os in
16625       solaris2.[0-5] | solaris2.[0-5].*) ;;
16626       *)
16627         # The compiler driver will combine and reorder linker options,
16628         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16629         # but is careful enough not to reorder.
16630         # Supported since Solaris 2.6 (maybe 2.5.1?)
16631         if test "$GCC" = yes; then
16632           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16633         else
16634           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16635         fi
16636         ;;
16637       esac
16638       link_all_deplibs=yes
16639       ;;
16640
16641     sunos4*)
16642       if test "x$host_vendor" = xsequent; then
16643         # Use $CC to link under sequent, because it throws in some extra .o
16644         # files that make .init and .fini sections work.
16645         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16646       else
16647         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16648       fi
16649       hardcode_libdir_flag_spec='-L$libdir'
16650       hardcode_direct=yes
16651       hardcode_minus_L=yes
16652       hardcode_shlibpath_var=no
16653       ;;
16654
16655     sysv4)
16656       case $host_vendor in
16657         sni)
16658           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16659           hardcode_direct=yes # is this really true???
16660         ;;
16661         siemens)
16662           ## LD is ld it makes a PLAMLIB
16663           ## CC just makes a GrossModule.
16664           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16665           reload_cmds='$CC -r -o $output$reload_objs'
16666           hardcode_direct=no
16667         ;;
16668         motorola)
16669           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16671         ;;
16672       esac
16673       runpath_var='LD_RUN_PATH'
16674       hardcode_shlibpath_var=no
16675       ;;
16676
16677     sysv4.3*)
16678       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679       hardcode_shlibpath_var=no
16680       export_dynamic_flag_spec='-Bexport'
16681       ;;
16682
16683     sysv4*MP*)
16684       if test -d /usr/nec; then
16685         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16686         hardcode_shlibpath_var=no
16687         runpath_var=LD_RUN_PATH
16688         hardcode_runpath_var=yes
16689         ld_shlibs=yes
16690       fi
16691       ;;
16692
16693     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16694       no_undefined_flag='${wl}-z,text'
16695       archive_cmds_need_lc=no
16696       hardcode_shlibpath_var=no
16697       runpath_var='LD_RUN_PATH'
16698
16699       if test "$GCC" = yes; then
16700         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16701         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16702       else
16703         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16704         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16705       fi
16706       ;;
16707
16708     sysv5* | sco3.2v5* | sco5v6*)
16709       # Note: We can NOT use -z defs as we might desire, because we do not
16710       # link with -lc, and that would cause any symbols used from libc to
16711       # always be unresolved, which means just about no library would
16712       # ever link correctly.  If we're not using GNU ld we use -z text
16713       # though, which does catch some bad symbols but isn't as heavy-handed
16714       # as -z defs.
16715       no_undefined_flag='${wl}-z,text'
16716       allow_undefined_flag='${wl}-z,nodefs'
16717       archive_cmds_need_lc=no
16718       hardcode_shlibpath_var=no
16719       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16720       hardcode_libdir_separator=':'
16721       link_all_deplibs=yes
16722       export_dynamic_flag_spec='${wl}-Bexport'
16723       runpath_var='LD_RUN_PATH'
16724
16725       if test "$GCC" = yes; then
16726         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16727         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16728       else
16729         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16730         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16731       fi
16732       ;;
16733
16734     uts4*)
16735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736       hardcode_libdir_flag_spec='-L$libdir'
16737       hardcode_shlibpath_var=no
16738       ;;
16739
16740     *)
16741       ld_shlibs=no
16742       ;;
16743     esac
16744
16745     if test x$host_vendor = xsni; then
16746       case $host in
16747       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16748         export_dynamic_flag_spec='${wl}-Blargedynsym'
16749         ;;
16750       esac
16751     fi
16752   fi
16753
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16755 $as_echo "$ld_shlibs" >&6; }
16756 test "$ld_shlibs" = no && can_build_shared=no
16757
16758 with_gnu_ld=$with_gnu_ld
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774 #
16775 # Do we need to explicitly link libc?
16776 #
16777 case "x$archive_cmds_need_lc" in
16778 x|xyes)
16779   # Assume -lc should be added
16780   archive_cmds_need_lc=yes
16781
16782   if test "$enable_shared" = yes && test "$GCC" = yes; then
16783     case $archive_cmds in
16784     *'~'*)
16785       # FIXME: we may have to deal with multi-command sequences.
16786       ;;
16787     '$CC '*)
16788       # Test whether the compiler implicitly links with -lc since on some
16789       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16790       # to ld, don't add -lc before -lgcc.
16791       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16792 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16793 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16794   $as_echo_n "(cached) " >&6
16795 else
16796   $RM conftest*
16797         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16798
16799         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16800   (eval $ac_compile) 2>&5
16801   ac_status=$?
16802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16803   test $ac_status = 0; } 2>conftest.err; then
16804           soname=conftest
16805           lib=conftest
16806           libobjs=conftest.$ac_objext
16807           deplibs=
16808           wl=$lt_prog_compiler_wl
16809           pic_flag=$lt_prog_compiler_pic
16810           compiler_flags=-v
16811           linker_flags=-v
16812           verstring=
16813           output_objdir=.
16814           libname=conftest
16815           lt_save_allow_undefined_flag=$allow_undefined_flag
16816           allow_undefined_flag=
16817           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16818   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16819   ac_status=$?
16820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16821   test $ac_status = 0; }
16822           then
16823             lt_cv_archive_cmds_need_lc=no
16824           else
16825             lt_cv_archive_cmds_need_lc=yes
16826           fi
16827           allow_undefined_flag=$lt_save_allow_undefined_flag
16828         else
16829           cat conftest.err 1>&5
16830         fi
16831         $RM conftest*
16832
16833 fi
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16835 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16836       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16837       ;;
16838     esac
16839   fi
16840   ;;
16841 esac
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
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17000 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17001
17002 if test "$GCC" = yes; then
17003   case $host_os in
17004     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17005     *) lt_awk_arg="/^libraries:/" ;;
17006   esac
17007   case $host_os in
17008     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17009     *) lt_sed_strip_eq="s,=/,/,g" ;;
17010   esac
17011   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17012   case $lt_search_path_spec in
17013   *\;*)
17014     # if the path contains ";" then we assume it to be the separator
17015     # otherwise default to the standard path separator (i.e. ":") - it is
17016     # assumed that no part of a normal pathname contains ";" but that should
17017     # okay in the real world where ";" in dirpaths is itself problematic.
17018     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17019     ;;
17020   *)
17021     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17022     ;;
17023   esac
17024   # Ok, now we have the path, separated by spaces, we can step through it
17025   # and add multilib dir if necessary.
17026   lt_tmp_lt_search_path_spec=
17027   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17028   for lt_sys_path in $lt_search_path_spec; do
17029     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17030       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17031     else
17032       test -d "$lt_sys_path" && \
17033         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17034     fi
17035   done
17036   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17037 BEGIN {RS=" "; FS="/|\n";} {
17038   lt_foo="";
17039   lt_count=0;
17040   for (lt_i = NF; lt_i > 0; lt_i--) {
17041     if ($lt_i != "" && $lt_i != ".") {
17042       if ($lt_i == "..") {
17043         lt_count++;
17044       } else {
17045         if (lt_count == 0) {
17046           lt_foo="/" $lt_i lt_foo;
17047         } else {
17048           lt_count--;
17049         }
17050       }
17051     }
17052   }
17053   if (lt_foo != "") { lt_freq[lt_foo]++; }
17054   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17055 }'`
17056   # AWK program above erroneously prepends '/' to C:/dos/paths
17057   # for these hosts.
17058   case $host_os in
17059     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17060       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17061   esac
17062   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17063 else
17064   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17065 fi
17066 library_names_spec=
17067 libname_spec='lib$name'
17068 soname_spec=
17069 shrext_cmds=".so"
17070 postinstall_cmds=
17071 postuninstall_cmds=
17072 finish_cmds=
17073 finish_eval=
17074 shlibpath_var=
17075 shlibpath_overrides_runpath=unknown
17076 version_type=none
17077 dynamic_linker="$host_os ld.so"
17078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17079 need_lib_prefix=unknown
17080 hardcode_into_libs=no
17081
17082 # when you set need_version to no, make sure it does not cause -set_version
17083 # flags to be left without arguments
17084 need_version=unknown
17085
17086 case $host_os in
17087 aix3*)
17088   version_type=linux
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17090   shlibpath_var=LIBPATH
17091
17092   # AIX 3 has no versioning support, so we append a major version to the name.
17093   soname_spec='${libname}${release}${shared_ext}$major'
17094   ;;
17095
17096 aix[4-9]*)
17097   version_type=linux
17098   need_lib_prefix=no
17099   need_version=no
17100   hardcode_into_libs=yes
17101   if test "$host_cpu" = ia64; then
17102     # AIX 5 supports IA64
17103     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17104     shlibpath_var=LD_LIBRARY_PATH
17105   else
17106     # With GCC up to 2.95.x, collect2 would create an import file
17107     # for dependence libraries.  The import file would start with
17108     # the line `#! .'.  This would cause the generated library to
17109     # depend on `.', always an invalid library.  This was fixed in
17110     # development snapshots of GCC prior to 3.0.
17111     case $host_os in
17112       aix4 | aix4.[01] | aix4.[01].*)
17113       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17114            echo ' yes '
17115            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17116         :
17117       else
17118         can_build_shared=no
17119       fi
17120       ;;
17121     esac
17122     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17123     # soname into executable. Probably we can add versioning support to
17124     # collect2, so additional links can be useful in future.
17125     if test "$aix_use_runtimelinking" = yes; then
17126       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17127       # instead of lib<name>.a to let people know that these are not
17128       # typical AIX shared libraries.
17129       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130     else
17131       # We preserve .a as extension for shared libraries through AIX4.2
17132       # and later when we are not doing run time linking.
17133       library_names_spec='${libname}${release}.a $libname.a'
17134       soname_spec='${libname}${release}${shared_ext}$major'
17135     fi
17136     shlibpath_var=LIBPATH
17137   fi
17138   ;;
17139
17140 amigaos*)
17141   case $host_cpu in
17142   powerpc)
17143     # Since July 2007 AmigaOS4 officially supports .so libraries.
17144     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146     ;;
17147   m68k)
17148     library_names_spec='$libname.ixlibrary $libname.a'
17149     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17150     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'
17151     ;;
17152   esac
17153   ;;
17154
17155 beos*)
17156   library_names_spec='${libname}${shared_ext}'
17157   dynamic_linker="$host_os ld.so"
17158   shlibpath_var=LIBRARY_PATH
17159   ;;
17160
17161 bsdi[45]*)
17162   version_type=linux
17163   need_version=no
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17169   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17170   # the default ld.so.conf also contains /usr/contrib/lib and
17171   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17172   # libtool to hard-code these into programs
17173   ;;
17174
17175 cygwin* | mingw* | pw32* | cegcc*)
17176   version_type=windows
17177   shrext_cmds=".dll"
17178   need_version=no
17179   need_lib_prefix=no
17180
17181   case $GCC,$host_os in
17182   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17183     library_names_spec='$libname.dll.a'
17184     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17185     postinstall_cmds='base_file=`basename \${file}`~
17186       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17187       dldir=$destdir/`dirname \$dlpath`~
17188       test -d \$dldir || mkdir -p \$dldir~
17189       $install_prog $dir/$dlname \$dldir/$dlname~
17190       chmod a+x \$dldir/$dlname~
17191       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17192         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17193       fi'
17194     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17195       dlpath=$dir/\$dldll~
17196        $RM \$dlpath'
17197     shlibpath_overrides_runpath=yes
17198
17199     case $host_os in
17200     cygwin*)
17201       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17202       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17203
17204       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17205       ;;
17206     mingw* | cegcc*)
17207       # MinGW DLLs use traditional 'lib' prefix
17208       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17209       ;;
17210     pw32*)
17211       # pw32 DLLs use 'pw' prefix rather than 'lib'
17212       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17213       ;;
17214     esac
17215     ;;
17216
17217   *)
17218     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17219     ;;
17220   esac
17221   dynamic_linker='Win32 ld.exe'
17222   # FIXME: first we should search . and the directory the executable is in
17223   shlibpath_var=PATH
17224   ;;
17225
17226 darwin* | rhapsody*)
17227   dynamic_linker="$host_os dyld"
17228   version_type=darwin
17229   need_lib_prefix=no
17230   need_version=no
17231   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17232   soname_spec='${libname}${release}${major}$shared_ext'
17233   shlibpath_overrides_runpath=yes
17234   shlibpath_var=DYLD_LIBRARY_PATH
17235   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17236
17237   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17238   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17239   ;;
17240
17241 dgux*)
17242   version_type=linux
17243   need_lib_prefix=no
17244   need_version=no
17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17246   soname_spec='${libname}${release}${shared_ext}$major'
17247   shlibpath_var=LD_LIBRARY_PATH
17248   ;;
17249
17250 freebsd* | dragonfly*)
17251   # DragonFly does not have aout.  When/if they implement a new
17252   # versioning mechanism, adjust this.
17253   if test -x /usr/bin/objformat; then
17254     objformat=`/usr/bin/objformat`
17255   else
17256     case $host_os in
17257     freebsd[23].*) objformat=aout ;;
17258     *) objformat=elf ;;
17259     esac
17260   fi
17261   version_type=freebsd-$objformat
17262   case $version_type in
17263     freebsd-elf*)
17264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17265       need_version=no
17266       need_lib_prefix=no
17267       ;;
17268     freebsd-*)
17269       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17270       need_version=yes
17271       ;;
17272   esac
17273   shlibpath_var=LD_LIBRARY_PATH
17274   case $host_os in
17275   freebsd2.*)
17276     shlibpath_overrides_runpath=yes
17277     ;;
17278   freebsd3.[01]* | freebsdelf3.[01]*)
17279     shlibpath_overrides_runpath=yes
17280     hardcode_into_libs=yes
17281     ;;
17282   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17283   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17284     shlibpath_overrides_runpath=no
17285     hardcode_into_libs=yes
17286     ;;
17287   *) # from 4.6 on, and DragonFly
17288     shlibpath_overrides_runpath=yes
17289     hardcode_into_libs=yes
17290     ;;
17291   esac
17292   ;;
17293
17294 gnu*)
17295   version_type=linux
17296   need_lib_prefix=no
17297   need_version=no
17298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17299   soname_spec='${libname}${release}${shared_ext}$major'
17300   shlibpath_var=LD_LIBRARY_PATH
17301   hardcode_into_libs=yes
17302   ;;
17303
17304 haiku*)
17305   version_type=linux
17306   need_lib_prefix=no
17307   need_version=no
17308   dynamic_linker="$host_os runtime_loader"
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   shlibpath_var=LIBRARY_PATH
17312   shlibpath_overrides_runpath=yes
17313   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17314   hardcode_into_libs=yes
17315   ;;
17316
17317 hpux9* | hpux10* | hpux11*)
17318   # Give a soname corresponding to the major version so that dld.sl refuses to
17319   # link against other versions.
17320   version_type=sunos
17321   need_lib_prefix=no
17322   need_version=no
17323   case $host_cpu in
17324   ia64*)
17325     shrext_cmds='.so'
17326     hardcode_into_libs=yes
17327     dynamic_linker="$host_os dld.so"
17328     shlibpath_var=LD_LIBRARY_PATH
17329     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331     soname_spec='${libname}${release}${shared_ext}$major'
17332     if test "X$HPUX_IA64_MODE" = X32; then
17333       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17334     else
17335       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17336     fi
17337     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17338     ;;
17339   hppa*64*)
17340     shrext_cmds='.sl'
17341     hardcode_into_libs=yes
17342     dynamic_linker="$host_os dld.sl"
17343     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17344     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346     soname_spec='${libname}${release}${shared_ext}$major'
17347     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17348     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17349     ;;
17350   *)
17351     shrext_cmds='.sl'
17352     dynamic_linker="$host_os dld.sl"
17353     shlibpath_var=SHLIB_PATH
17354     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356     soname_spec='${libname}${release}${shared_ext}$major'
17357     ;;
17358   esac
17359   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17360   postinstall_cmds='chmod 555 $lib'
17361   # or fails outright, so override atomically:
17362   install_override_mode=555
17363   ;;
17364
17365 interix[3-9]*)
17366   version_type=linux
17367   need_lib_prefix=no
17368   need_version=no
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17372   shlibpath_var=LD_LIBRARY_PATH
17373   shlibpath_overrides_runpath=no
17374   hardcode_into_libs=yes
17375   ;;
17376
17377 irix5* | irix6* | nonstopux*)
17378   case $host_os in
17379     nonstopux*) version_type=nonstopux ;;
17380     *)
17381         if test "$lt_cv_prog_gnu_ld" = yes; then
17382                 version_type=linux
17383         else
17384                 version_type=irix
17385         fi ;;
17386   esac
17387   need_lib_prefix=no
17388   need_version=no
17389   soname_spec='${libname}${release}${shared_ext}$major'
17390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17391   case $host_os in
17392   irix5* | nonstopux*)
17393     libsuff= shlibsuff=
17394     ;;
17395   *)
17396     case $LD in # libtool.m4 will add one of these switches to LD
17397     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17398       libsuff= shlibsuff= libmagic=32-bit;;
17399     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17400       libsuff=32 shlibsuff=N32 libmagic=N32;;
17401     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17402       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17403     *) libsuff= shlibsuff= libmagic=never-match;;
17404     esac
17405     ;;
17406   esac
17407   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17408   shlibpath_overrides_runpath=no
17409   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17410   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17411   hardcode_into_libs=yes
17412   ;;
17413
17414 # No shared lib support for Linux oldld, aout, or coff.
17415 linux*oldld* | linux*aout* | linux*coff*)
17416   dynamic_linker=no
17417   ;;
17418
17419 # This must be Linux ELF.
17420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17421   version_type=linux
17422   need_lib_prefix=no
17423   need_version=no
17424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425   soname_spec='${libname}${release}${shared_ext}$major'
17426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17427   shlibpath_var=LD_LIBRARY_PATH
17428   shlibpath_overrides_runpath=no
17429
17430   # Some binutils ld are patched to set DT_RUNPATH
17431   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17432   $as_echo_n "(cached) " >&6
17433 else
17434   lt_cv_shlibpath_overrides_runpath=no
17435     save_LDFLAGS=$LDFLAGS
17436     save_libdir=$libdir
17437     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17438          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h.  */
17441
17442 int
17443 main ()
17444 {
17445
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 if ac_fn_c_try_link "$LINENO"; then :
17451   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17452   lt_cv_shlibpath_overrides_runpath=yes
17453 fi
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext \
17456     conftest$ac_exeext conftest.$ac_ext
17457     LDFLAGS=$save_LDFLAGS
17458     libdir=$save_libdir
17459
17460 fi
17461
17462   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17463
17464   # This implies no fast_install, which is unacceptable.
17465   # Some rework will be needed to allow for fast_install
17466   # before this can be enabled.
17467   hardcode_into_libs=yes
17468
17469   # Append ld.so.conf contents to the search path
17470   if test -f /etc/ld.so.conf; then
17471     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' ' '`
17472     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17473   fi
17474
17475   # We used to test for /lib/ld.so.1 and disable shared libraries on
17476   # powerpc, because MkLinux only supported shared libraries with the
17477   # GNU dynamic linker.  Since this was broken with cross compilers,
17478   # most powerpc-linux boxes support dynamic linking these days and
17479   # people can always --disable-shared, the test was removed, and we
17480   # assume the GNU/Linux dynamic linker is in use.
17481   dynamic_linker='GNU/Linux ld.so'
17482   ;;
17483
17484 netbsd*)
17485   version_type=sunos
17486   need_lib_prefix=no
17487   need_version=no
17488   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17490     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17491     dynamic_linker='NetBSD (a.out) ld.so'
17492   else
17493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17494     soname_spec='${libname}${release}${shared_ext}$major'
17495     dynamic_linker='NetBSD ld.elf_so'
17496   fi
17497   shlibpath_var=LD_LIBRARY_PATH
17498   shlibpath_overrides_runpath=yes
17499   hardcode_into_libs=yes
17500   ;;
17501
17502 newsos6)
17503   version_type=linux
17504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505   shlibpath_var=LD_LIBRARY_PATH
17506   shlibpath_overrides_runpath=yes
17507   ;;
17508
17509 *nto* | *qnx*)
17510   version_type=qnx
17511   need_lib_prefix=no
17512   need_version=no
17513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514   soname_spec='${libname}${release}${shared_ext}$major'
17515   shlibpath_var=LD_LIBRARY_PATH
17516   shlibpath_overrides_runpath=no
17517   hardcode_into_libs=yes
17518   dynamic_linker='ldqnx.so'
17519   ;;
17520
17521 openbsd*)
17522   version_type=sunos
17523   sys_lib_dlsearch_path_spec="/usr/lib"
17524   need_lib_prefix=no
17525   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17526   case $host_os in
17527     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17528     *)                          need_version=no  ;;
17529   esac
17530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17532   shlibpath_var=LD_LIBRARY_PATH
17533   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17534     case $host_os in
17535       openbsd2.[89] | openbsd2.[89].*)
17536         shlibpath_overrides_runpath=no
17537         ;;
17538       *)
17539         shlibpath_overrides_runpath=yes
17540         ;;
17541       esac
17542   else
17543     shlibpath_overrides_runpath=yes
17544   fi
17545   ;;
17546
17547 os2*)
17548   libname_spec='$name'
17549   shrext_cmds=".dll"
17550   need_lib_prefix=no
17551   library_names_spec='$libname${shared_ext} $libname.a'
17552   dynamic_linker='OS/2 ld.exe'
17553   shlibpath_var=LIBPATH
17554   ;;
17555
17556 osf3* | osf4* | osf5*)
17557   version_type=osf
17558   need_lib_prefix=no
17559   need_version=no
17560   soname_spec='${libname}${release}${shared_ext}$major'
17561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562   shlibpath_var=LD_LIBRARY_PATH
17563   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17564   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17565   ;;
17566
17567 rdos*)
17568   dynamic_linker=no
17569   ;;
17570
17571 solaris*)
17572   version_type=linux
17573   need_lib_prefix=no
17574   need_version=no
17575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576   soname_spec='${libname}${release}${shared_ext}$major'
17577   shlibpath_var=LD_LIBRARY_PATH
17578   shlibpath_overrides_runpath=yes
17579   hardcode_into_libs=yes
17580   # ldd complains unless libraries are executable
17581   postinstall_cmds='chmod +x $lib'
17582   ;;
17583
17584 sunos4*)
17585   version_type=sunos
17586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17587   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17588   shlibpath_var=LD_LIBRARY_PATH
17589   shlibpath_overrides_runpath=yes
17590   if test "$with_gnu_ld" = yes; then
17591     need_lib_prefix=no
17592   fi
17593   need_version=yes
17594   ;;
17595
17596 sysv4 | sysv4.3*)
17597   version_type=linux
17598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599   soname_spec='${libname}${release}${shared_ext}$major'
17600   shlibpath_var=LD_LIBRARY_PATH
17601   case $host_vendor in
17602     sni)
17603       shlibpath_overrides_runpath=no
17604       need_lib_prefix=no
17605       runpath_var=LD_RUN_PATH
17606       ;;
17607     siemens)
17608       need_lib_prefix=no
17609       ;;
17610     motorola)
17611       need_lib_prefix=no
17612       need_version=no
17613       shlibpath_overrides_runpath=no
17614       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17615       ;;
17616   esac
17617   ;;
17618
17619 sysv4*MP*)
17620   if test -d /usr/nec ;then
17621     version_type=linux
17622     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17623     soname_spec='$libname${shared_ext}.$major'
17624     shlibpath_var=LD_LIBRARY_PATH
17625   fi
17626   ;;
17627
17628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17629   version_type=freebsd-elf
17630   need_lib_prefix=no
17631   need_version=no
17632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17633   soname_spec='${libname}${release}${shared_ext}$major'
17634   shlibpath_var=LD_LIBRARY_PATH
17635   shlibpath_overrides_runpath=yes
17636   hardcode_into_libs=yes
17637   if test "$with_gnu_ld" = yes; then
17638     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17639   else
17640     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17641     case $host_os in
17642       sco3.2v5*)
17643         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17644         ;;
17645     esac
17646   fi
17647   sys_lib_dlsearch_path_spec='/usr/lib'
17648   ;;
17649
17650 tpf*)
17651   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17652   version_type=linux
17653   need_lib_prefix=no
17654   need_version=no
17655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17656   shlibpath_var=LD_LIBRARY_PATH
17657   shlibpath_overrides_runpath=no
17658   hardcode_into_libs=yes
17659   ;;
17660
17661 uts4*)
17662   version_type=linux
17663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664   soname_spec='${libname}${release}${shared_ext}$major'
17665   shlibpath_var=LD_LIBRARY_PATH
17666   ;;
17667
17668 *)
17669   dynamic_linker=no
17670   ;;
17671 esac
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17673 $as_echo "$dynamic_linker" >&6; }
17674 test "$dynamic_linker" = no && can_build_shared=no
17675
17676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17677 if test "$GCC" = yes; then
17678   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17679 fi
17680
17681 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17682   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17683 fi
17684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17685   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17686 fi
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
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17781 hardcode_action=
17782 if test -n "$hardcode_libdir_flag_spec" ||
17783    test -n "$runpath_var" ||
17784    test "X$hardcode_automatic" = "Xyes" ; then
17785
17786   # We can hardcode non-existent directories.
17787   if test "$hardcode_direct" != no &&
17788      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17789      # have to relink, otherwise we might link with an installed library
17790      # when we should be linking with a yet-to-be-installed one
17791      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17792      test "$hardcode_minus_L" != no; then
17793     # Linking always hardcodes the temporary library directory.
17794     hardcode_action=relink
17795   else
17796     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17797     hardcode_action=immediate
17798   fi
17799 else
17800   # We cannot hardcode anything, or else we can only hardcode existing
17801   # directories.
17802   hardcode_action=unsupported
17803 fi
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17805 $as_echo "$hardcode_action" >&6; }
17806
17807 if test "$hardcode_action" = relink ||
17808    test "$inherit_rpath" = yes; then
17809   # Fast installation is not supported
17810   enable_fast_install=no
17811 elif test "$shlibpath_overrides_runpath" = yes ||
17812      test "$enable_shared" = no; then
17813   # Fast installation is not necessary
17814   enable_fast_install=needless
17815 fi
17816
17817
17818
17819
17820
17821
17822   if test "x$enable_dlopen" != xyes; then
17823   enable_dlopen=unknown
17824   enable_dlopen_self=unknown
17825   enable_dlopen_self_static=unknown
17826 else
17827   lt_cv_dlopen=no
17828   lt_cv_dlopen_libs=
17829
17830   case $host_os in
17831   beos*)
17832     lt_cv_dlopen="load_add_on"
17833     lt_cv_dlopen_libs=
17834     lt_cv_dlopen_self=yes
17835     ;;
17836
17837   mingw* | pw32* | cegcc*)
17838     lt_cv_dlopen="LoadLibrary"
17839     lt_cv_dlopen_libs=
17840     ;;
17841
17842   cygwin*)
17843     lt_cv_dlopen="dlopen"
17844     lt_cv_dlopen_libs=
17845     ;;
17846
17847   darwin*)
17848   # if libdl is installed we need to link against it
17849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17852   $as_echo_n "(cached) " >&6
17853 else
17854   ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-ldl  $LIBS"
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h.  */
17858
17859 /* Override any GCC internal prototype to avoid an error.
17860    Use char because int might match the return type of a GCC
17861    builtin and then its argument prototype would still apply.  */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char dlopen ();
17866 int
17867 main ()
17868 {
17869 return dlopen ();
17870   ;
17871   return 0;
17872 }
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875   ac_cv_lib_dl_dlopen=yes
17876 else
17877   ac_cv_lib_dl_dlopen=no
17878 fi
17879 rm -f core conftest.err conftest.$ac_objext \
17880     conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17885 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17886   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17887 else
17888
17889     lt_cv_dlopen="dyld"
17890     lt_cv_dlopen_libs=
17891     lt_cv_dlopen_self=yes
17892
17893 fi
17894
17895     ;;
17896
17897   *)
17898     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17899 if test "x$ac_cv_func_shl_load" = x""yes; then :
17900   lt_cv_dlopen="shl_load"
17901 else
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17903 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17904 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17905   $as_echo_n "(cached) " >&6
17906 else
17907   ac_check_lib_save_LIBS=$LIBS
17908 LIBS="-ldld  $LIBS"
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h.  */
17911
17912 /* Override any GCC internal prototype to avoid an error.
17913    Use char because int might match the return type of a GCC
17914    builtin and then its argument prototype would still apply.  */
17915 #ifdef __cplusplus
17916 extern "C"
17917 #endif
17918 char shl_load ();
17919 int
17920 main ()
17921 {
17922 return shl_load ();
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 if ac_fn_c_try_link "$LINENO"; then :
17928   ac_cv_lib_dld_shl_load=yes
17929 else
17930   ac_cv_lib_dld_shl_load=no
17931 fi
17932 rm -f core conftest.err conftest.$ac_objext \
17933     conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17935 fi
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17937 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17938 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17939   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17940 else
17941   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17942 if test "x$ac_cv_func_dlopen" = x""yes; then :
17943   lt_cv_dlopen="dlopen"
17944 else
17945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17946 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17948   $as_echo_n "(cached) " >&6
17949 else
17950   ac_check_lib_save_LIBS=$LIBS
17951 LIBS="-ldl  $LIBS"
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h.  */
17954
17955 /* Override any GCC internal prototype to avoid an error.
17956    Use char because int might match the return type of a GCC
17957    builtin and then its argument prototype would still apply.  */
17958 #ifdef __cplusplus
17959 extern "C"
17960 #endif
17961 char dlopen ();
17962 int
17963 main ()
17964 {
17965 return dlopen ();
17966   ;
17967   return 0;
17968 }
17969 _ACEOF
17970 if ac_fn_c_try_link "$LINENO"; then :
17971   ac_cv_lib_dl_dlopen=yes
17972 else
17973   ac_cv_lib_dl_dlopen=no
17974 fi
17975 rm -f core conftest.err conftest.$ac_objext \
17976     conftest$ac_exeext conftest.$ac_ext
17977 LIBS=$ac_check_lib_save_LIBS
17978 fi
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17980 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17981 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17982   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17983 else
17984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17985 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17986 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17987   $as_echo_n "(cached) " >&6
17988 else
17989   ac_check_lib_save_LIBS=$LIBS
17990 LIBS="-lsvld  $LIBS"
17991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h.  */
17993
17994 /* Override any GCC internal prototype to avoid an error.
17995    Use char because int might match the return type of a GCC
17996    builtin and then its argument prototype would still apply.  */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char dlopen ();
18001 int
18002 main ()
18003 {
18004 return dlopen ();
18005   ;
18006   return 0;
18007 }
18008 _ACEOF
18009 if ac_fn_c_try_link "$LINENO"; then :
18010   ac_cv_lib_svld_dlopen=yes
18011 else
18012   ac_cv_lib_svld_dlopen=no
18013 fi
18014 rm -f core conftest.err conftest.$ac_objext \
18015     conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18017 fi
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18019 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18020 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18022 else
18023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18024 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18025 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18026   $as_echo_n "(cached) " >&6
18027 else
18028   ac_check_lib_save_LIBS=$LIBS
18029 LIBS="-ldld  $LIBS"
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h.  */
18032
18033 /* Override any GCC internal prototype to avoid an error.
18034    Use char because int might match the return type of a GCC
18035    builtin and then its argument prototype would still apply.  */
18036 #ifdef __cplusplus
18037 extern "C"
18038 #endif
18039 char dld_link ();
18040 int
18041 main ()
18042 {
18043 return dld_link ();
18044   ;
18045   return 0;
18046 }
18047 _ACEOF
18048 if ac_fn_c_try_link "$LINENO"; then :
18049   ac_cv_lib_dld_dld_link=yes
18050 else
18051   ac_cv_lib_dld_dld_link=no
18052 fi
18053 rm -f core conftest.err conftest.$ac_objext \
18054     conftest$ac_exeext conftest.$ac_ext
18055 LIBS=$ac_check_lib_save_LIBS
18056 fi
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18058 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18059 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18060   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18061 fi
18062
18063
18064 fi
18065
18066
18067 fi
18068
18069
18070 fi
18071
18072
18073 fi
18074
18075
18076 fi
18077
18078     ;;
18079   esac
18080
18081   if test "x$lt_cv_dlopen" != xno; then
18082     enable_dlopen=yes
18083   else
18084     enable_dlopen=no
18085   fi
18086
18087   case $lt_cv_dlopen in
18088   dlopen)
18089     save_CPPFLAGS="$CPPFLAGS"
18090     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18091
18092     save_LDFLAGS="$LDFLAGS"
18093     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18094
18095     save_LIBS="$LIBS"
18096     LIBS="$lt_cv_dlopen_libs $LIBS"
18097
18098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18099 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18100 if test "${lt_cv_dlopen_self+set}" = set; then :
18101   $as_echo_n "(cached) " >&6
18102 else
18103           if test "$cross_compiling" = yes; then :
18104   lt_cv_dlopen_self=cross
18105 else
18106   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18107   lt_status=$lt_dlunknown
18108   cat > conftest.$ac_ext <<_LT_EOF
18109 #line 18109 "configure"
18110 #include "confdefs.h"
18111
18112 #if HAVE_DLFCN_H
18113 #include <dlfcn.h>
18114 #endif
18115
18116 #include <stdio.h>
18117
18118 #ifdef RTLD_GLOBAL
18119 #  define LT_DLGLOBAL           RTLD_GLOBAL
18120 #else
18121 #  ifdef DL_GLOBAL
18122 #    define LT_DLGLOBAL         DL_GLOBAL
18123 #  else
18124 #    define LT_DLGLOBAL         0
18125 #  endif
18126 #endif
18127
18128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18129    find out it does not work in some platform. */
18130 #ifndef LT_DLLAZY_OR_NOW
18131 #  ifdef RTLD_LAZY
18132 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18133 #  else
18134 #    ifdef DL_LAZY
18135 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18136 #    else
18137 #      ifdef RTLD_NOW
18138 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18139 #      else
18140 #        ifdef DL_NOW
18141 #          define LT_DLLAZY_OR_NOW      DL_NOW
18142 #        else
18143 #          define LT_DLLAZY_OR_NOW      0
18144 #        endif
18145 #      endif
18146 #    endif
18147 #  endif
18148 #endif
18149
18150 /* When -fvisbility=hidden is used, assume the code has been annotated
18151    correspondingly for the symbols needed.  */
18152 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18153 void fnord () __attribute__((visibility("default")));
18154 #endif
18155
18156 void fnord () { int i=42; }
18157 int main ()
18158 {
18159   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18160   int status = $lt_dlunknown;
18161
18162   if (self)
18163     {
18164       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18165       else
18166         {
18167           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18168           else puts (dlerror ());
18169         }
18170       /* dlclose (self); */
18171     }
18172   else
18173     puts (dlerror ());
18174
18175   return status;
18176 }
18177 _LT_EOF
18178   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18179   (eval $ac_link) 2>&5
18180   ac_status=$?
18181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18183     (./conftest; exit; ) >&5 2>/dev/null
18184     lt_status=$?
18185     case x$lt_status in
18186       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18187       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18188       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18189     esac
18190   else :
18191     # compilation failed
18192     lt_cv_dlopen_self=no
18193   fi
18194 fi
18195 rm -fr conftest*
18196
18197
18198 fi
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18200 $as_echo "$lt_cv_dlopen_self" >&6; }
18201
18202     if test "x$lt_cv_dlopen_self" = xyes; then
18203       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18204       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18205 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18206 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18207   $as_echo_n "(cached) " >&6
18208 else
18209           if test "$cross_compiling" = yes; then :
18210   lt_cv_dlopen_self_static=cross
18211 else
18212   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18213   lt_status=$lt_dlunknown
18214   cat > conftest.$ac_ext <<_LT_EOF
18215 #line 18215 "configure"
18216 #include "confdefs.h"
18217
18218 #if HAVE_DLFCN_H
18219 #include <dlfcn.h>
18220 #endif
18221
18222 #include <stdio.h>
18223
18224 #ifdef RTLD_GLOBAL
18225 #  define LT_DLGLOBAL           RTLD_GLOBAL
18226 #else
18227 #  ifdef DL_GLOBAL
18228 #    define LT_DLGLOBAL         DL_GLOBAL
18229 #  else
18230 #    define LT_DLGLOBAL         0
18231 #  endif
18232 #endif
18233
18234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18235    find out it does not work in some platform. */
18236 #ifndef LT_DLLAZY_OR_NOW
18237 #  ifdef RTLD_LAZY
18238 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18239 #  else
18240 #    ifdef DL_LAZY
18241 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18242 #    else
18243 #      ifdef RTLD_NOW
18244 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18245 #      else
18246 #        ifdef DL_NOW
18247 #          define LT_DLLAZY_OR_NOW      DL_NOW
18248 #        else
18249 #          define LT_DLLAZY_OR_NOW      0
18250 #        endif
18251 #      endif
18252 #    endif
18253 #  endif
18254 #endif
18255
18256 /* When -fvisbility=hidden is used, assume the code has been annotated
18257    correspondingly for the symbols needed.  */
18258 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18259 void fnord () __attribute__((visibility("default")));
18260 #endif
18261
18262 void fnord () { int i=42; }
18263 int main ()
18264 {
18265   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18266   int status = $lt_dlunknown;
18267
18268   if (self)
18269     {
18270       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18271       else
18272         {
18273           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18274           else puts (dlerror ());
18275         }
18276       /* dlclose (self); */
18277     }
18278   else
18279     puts (dlerror ());
18280
18281   return status;
18282 }
18283 _LT_EOF
18284   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18285   (eval $ac_link) 2>&5
18286   ac_status=$?
18287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18288   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18289     (./conftest; exit; ) >&5 2>/dev/null
18290     lt_status=$?
18291     case x$lt_status in
18292       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18293       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18294       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18295     esac
18296   else :
18297     # compilation failed
18298     lt_cv_dlopen_self_static=no
18299   fi
18300 fi
18301 rm -fr conftest*
18302
18303
18304 fi
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18306 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18307     fi
18308
18309     CPPFLAGS="$save_CPPFLAGS"
18310     LDFLAGS="$save_LDFLAGS"
18311     LIBS="$save_LIBS"
18312     ;;
18313   esac
18314
18315   case $lt_cv_dlopen_self in
18316   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18317   *) enable_dlopen_self=unknown ;;
18318   esac
18319
18320   case $lt_cv_dlopen_self_static in
18321   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18322   *) enable_dlopen_self_static=unknown ;;
18323   esac
18324 fi
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342 striplib=
18343 old_striplib=
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18345 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18346 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18347   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18348   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18350 $as_echo "yes" >&6; }
18351 else
18352 # FIXME - insert some real tests, host_os isn't really good enough
18353   case $host_os in
18354   darwin*)
18355     if test -n "$STRIP" ; then
18356       striplib="$STRIP -x"
18357       old_striplib="$STRIP -S"
18358       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359 $as_echo "yes" >&6; }
18360     else
18361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362 $as_echo "no" >&6; }
18363     fi
18364     ;;
18365   *)
18366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18367 $as_echo "no" >&6; }
18368     ;;
18369   esac
18370 fi
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383   # Report which library types will actually be built
18384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18385 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18387 $as_echo "$can_build_shared" >&6; }
18388
18389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18390 $as_echo_n "checking whether to build shared libraries... " >&6; }
18391   test "$can_build_shared" = "no" && enable_shared=no
18392
18393   # On AIX, shared libraries and static libraries use the same namespace, and
18394   # are all built from PIC.
18395   case $host_os in
18396   aix3*)
18397     test "$enable_shared" = yes && enable_static=no
18398     if test -n "$RANLIB"; then
18399       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18400       postinstall_cmds='$RANLIB $lib'
18401     fi
18402     ;;
18403
18404   aix[4-9]*)
18405     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18406       test "$enable_shared" = yes && enable_static=no
18407     fi
18408     ;;
18409   esac
18410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18411 $as_echo "$enable_shared" >&6; }
18412
18413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18414 $as_echo_n "checking whether to build static libraries... " >&6; }
18415   # Make sure either enable_shared or enable_static is yes.
18416   test "$enable_shared" = yes || enable_static=yes
18417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18418 $as_echo "$enable_static" >&6; }
18419
18420
18421
18422
18423 fi
18424 ac_ext=c
18425 ac_cpp='$CPP $CPPFLAGS'
18426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18429
18430 CC="$lt_save_CC"
18431
18432       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18433     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18434     (test "X$CXX" != "Xg++"))) ; then
18435   ac_ext=cpp
18436 ac_cpp='$CXXCPP $CPPFLAGS'
18437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18441 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18442 if test -z "$CXXCPP"; then
18443   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18444   $as_echo_n "(cached) " >&6
18445 else
18446       # Double quotes because CXXCPP needs to be expanded
18447     for CXXCPP in "$CXX -E" "/lib/cpp"
18448     do
18449       ac_preproc_ok=false
18450 for ac_cxx_preproc_warn_flag in '' yes
18451 do
18452   # Use a header file that comes with gcc, so configuring glibc
18453   # with a fresh cross-compiler works.
18454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18455   # <limits.h> exists even on freestanding compilers.
18456   # On the NeXT, cc -E runs the code through the compiler's parser,
18457   # not just through cpp. "Syntax error" is here to catch this case.
18458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h.  */
18460 #ifdef __STDC__
18461 # include <limits.h>
18462 #else
18463 # include <assert.h>
18464 #endif
18465                      Syntax error
18466 _ACEOF
18467 if ac_fn_cxx_try_cpp "$LINENO"; then :
18468
18469 else
18470   # Broken: fails on valid input.
18471 continue
18472 fi
18473 rm -f conftest.err conftest.$ac_ext
18474
18475   # OK, works on sane cases.  Now check whether nonexistent headers
18476   # can be detected and how.
18477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h.  */
18479 #include <ac_nonexistent.h>
18480 _ACEOF
18481 if ac_fn_cxx_try_cpp "$LINENO"; then :
18482   # Broken: success on invalid input.
18483 continue
18484 else
18485   # Passes both tests.
18486 ac_preproc_ok=:
18487 break
18488 fi
18489 rm -f conftest.err conftest.$ac_ext
18490
18491 done
18492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18493 rm -f conftest.err conftest.$ac_ext
18494 if $ac_preproc_ok; then :
18495   break
18496 fi
18497
18498     done
18499     ac_cv_prog_CXXCPP=$CXXCPP
18500
18501 fi
18502   CXXCPP=$ac_cv_prog_CXXCPP
18503 else
18504   ac_cv_prog_CXXCPP=$CXXCPP
18505 fi
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18507 $as_echo "$CXXCPP" >&6; }
18508 ac_preproc_ok=false
18509 for ac_cxx_preproc_warn_flag in '' yes
18510 do
18511   # Use a header file that comes with gcc, so configuring glibc
18512   # with a fresh cross-compiler works.
18513   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18514   # <limits.h> exists even on freestanding compilers.
18515   # On the NeXT, cc -E runs the code through the compiler's parser,
18516   # not just through cpp. "Syntax error" is here to catch this case.
18517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h.  */
18519 #ifdef __STDC__
18520 # include <limits.h>
18521 #else
18522 # include <assert.h>
18523 #endif
18524                      Syntax error
18525 _ACEOF
18526 if ac_fn_cxx_try_cpp "$LINENO"; then :
18527
18528 else
18529   # Broken: fails on valid input.
18530 continue
18531 fi
18532 rm -f conftest.err conftest.$ac_ext
18533
18534   # OK, works on sane cases.  Now check whether nonexistent headers
18535   # can be detected and how.
18536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h.  */
18538 #include <ac_nonexistent.h>
18539 _ACEOF
18540 if ac_fn_cxx_try_cpp "$LINENO"; then :
18541   # Broken: success on invalid input.
18542 continue
18543 else
18544   # Passes both tests.
18545 ac_preproc_ok=:
18546 break
18547 fi
18548 rm -f conftest.err conftest.$ac_ext
18549
18550 done
18551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18552 rm -f conftest.err conftest.$ac_ext
18553 if $ac_preproc_ok; then :
18554
18555 else
18556   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18558 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18559 See \`config.log' for more details." "$LINENO" 5; }
18560 fi
18561
18562 ac_ext=c
18563 ac_cpp='$CPP $CPPFLAGS'
18564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18567
18568 else
18569   _lt_caught_CXX_error=yes
18570 fi
18571
18572 ac_ext=cpp
18573 ac_cpp='$CXXCPP $CPPFLAGS'
18574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18577
18578 archive_cmds_need_lc_CXX=no
18579 allow_undefined_flag_CXX=
18580 always_export_symbols_CXX=no
18581 archive_expsym_cmds_CXX=
18582 compiler_needs_object_CXX=no
18583 export_dynamic_flag_spec_CXX=
18584 hardcode_direct_CXX=no
18585 hardcode_direct_absolute_CXX=no
18586 hardcode_libdir_flag_spec_CXX=
18587 hardcode_libdir_flag_spec_ld_CXX=
18588 hardcode_libdir_separator_CXX=
18589 hardcode_minus_L_CXX=no
18590 hardcode_shlibpath_var_CXX=unsupported
18591 hardcode_automatic_CXX=no
18592 inherit_rpath_CXX=no
18593 module_cmds_CXX=
18594 module_expsym_cmds_CXX=
18595 link_all_deplibs_CXX=unknown
18596 old_archive_cmds_CXX=$old_archive_cmds
18597 reload_flag_CXX=$reload_flag
18598 reload_cmds_CXX=$reload_cmds
18599 no_undefined_flag_CXX=
18600 whole_archive_flag_spec_CXX=
18601 enable_shared_with_static_runtimes_CXX=no
18602
18603 # Source file extension for C++ test sources.
18604 ac_ext=cpp
18605
18606 # Object file extension for compiled C++ test sources.
18607 objext=o
18608 objext_CXX=$objext
18609
18610 # No sense in running all these tests if we already determined that
18611 # the CXX compiler isn't working.  Some variables (like enable_shared)
18612 # are currently assumed to apply to all compilers on this platform,
18613 # and will be corrupted by setting them based on a non-working compiler.
18614 if test "$_lt_caught_CXX_error" != yes; then
18615   # Code to be used in simple compile tests
18616   lt_simple_compile_test_code="int some_variable = 0;"
18617
18618   # Code to be used in simple link tests
18619   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18620
18621   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18622
18623
18624
18625
18626
18627
18628 # If no C compiler was specified, use CC.
18629 LTCC=${LTCC-"$CC"}
18630
18631 # If no C compiler flags were specified, use CFLAGS.
18632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18633
18634 # Allow CC to be a program name with arguments.
18635 compiler=$CC
18636
18637
18638   # save warnings/boilerplate of simple test code
18639   ac_outfile=conftest.$ac_objext
18640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18642 _lt_compiler_boilerplate=`cat conftest.err`
18643 $RM conftest*
18644
18645   ac_outfile=conftest.$ac_objext
18646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18648 _lt_linker_boilerplate=`cat conftest.err`
18649 $RM -r conftest*
18650
18651
18652   # Allow CC to be a program name with arguments.
18653   lt_save_CC=$CC
18654   lt_save_LD=$LD
18655   lt_save_GCC=$GCC
18656   GCC=$GXX
18657   lt_save_with_gnu_ld=$with_gnu_ld
18658   lt_save_path_LD=$lt_cv_path_LD
18659   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18660     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18661   else
18662     $as_unset lt_cv_prog_gnu_ld
18663   fi
18664   if test -n "${lt_cv_path_LDCXX+set}"; then
18665     lt_cv_path_LD=$lt_cv_path_LDCXX
18666   else
18667     $as_unset lt_cv_path_LD
18668   fi
18669   test -z "${LDCXX+set}" || LD=$LDCXX
18670   CC=${CXX-"c++"}
18671   compiler=$CC
18672   compiler_CXX=$CC
18673   for cc_temp in $compiler""; do
18674   case $cc_temp in
18675     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18676     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18677     \-*) ;;
18678     *) break;;
18679   esac
18680 done
18681 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18682
18683
18684   if test -n "$compiler"; then
18685     # We don't want -fno-exception when compiling C++ code, so set the
18686     # no_builtin_flag separately
18687     if test "$GXX" = yes; then
18688       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18689     else
18690       lt_prog_compiler_no_builtin_flag_CXX=
18691     fi
18692
18693     if test "$GXX" = yes; then
18694       # Set up default GNU C++ configuration
18695
18696
18697
18698 # Check whether --with-gnu-ld was given.
18699 if test "${with_gnu_ld+set}" = set; then :
18700   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18701 else
18702   with_gnu_ld=no
18703 fi
18704
18705 ac_prog=ld
18706 if test "$GCC" = yes; then
18707   # Check if gcc -print-prog-name=ld gives a path.
18708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18709 $as_echo_n "checking for ld used by $CC... " >&6; }
18710   case $host in
18711   *-*-mingw*)
18712     # gcc leaves a trailing carriage return which upsets mingw
18713     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18714   *)
18715     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18716   esac
18717   case $ac_prog in
18718     # Accept absolute paths.
18719     [\\/]* | ?:[\\/]*)
18720       re_direlt='/[^/][^/]*/\.\./'
18721       # Canonicalize the pathname of ld
18722       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18723       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18724         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18725       done
18726       test -z "$LD" && LD="$ac_prog"
18727       ;;
18728   "")
18729     # If it fails, then pretend we aren't using GCC.
18730     ac_prog=ld
18731     ;;
18732   *)
18733     # If it is relative, then search for the first ld in PATH.
18734     with_gnu_ld=unknown
18735     ;;
18736   esac
18737 elif test "$with_gnu_ld" = yes; then
18738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18739 $as_echo_n "checking for GNU ld... " >&6; }
18740 else
18741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18742 $as_echo_n "checking for non-GNU ld... " >&6; }
18743 fi
18744 if test "${lt_cv_path_LD+set}" = set; then :
18745   $as_echo_n "(cached) " >&6
18746 else
18747   if test -z "$LD"; then
18748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18749   for ac_dir in $PATH; do
18750     IFS="$lt_save_ifs"
18751     test -z "$ac_dir" && ac_dir=.
18752     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18753       lt_cv_path_LD="$ac_dir/$ac_prog"
18754       # Check to see if the program is GNU ld.  I'd rather use --version,
18755       # but apparently some variants of GNU ld only accept -v.
18756       # Break only if it was the GNU/non-GNU ld that we prefer.
18757       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18758       *GNU* | *'with BFD'*)
18759         test "$with_gnu_ld" != no && break
18760         ;;
18761       *)
18762         test "$with_gnu_ld" != yes && break
18763         ;;
18764       esac
18765     fi
18766   done
18767   IFS="$lt_save_ifs"
18768 else
18769   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18770 fi
18771 fi
18772
18773 LD="$lt_cv_path_LD"
18774 if test -n "$LD"; then
18775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18776 $as_echo "$LD" >&6; }
18777 else
18778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18779 $as_echo "no" >&6; }
18780 fi
18781 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18783 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18784 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18785   $as_echo_n "(cached) " >&6
18786 else
18787   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18788 case `$LD -v 2>&1 </dev/null` in
18789 *GNU* | *'with BFD'*)
18790   lt_cv_prog_gnu_ld=yes
18791   ;;
18792 *)
18793   lt_cv_prog_gnu_ld=no
18794   ;;
18795 esac
18796 fi
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18798 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18799 with_gnu_ld=$lt_cv_prog_gnu_ld
18800
18801
18802
18803
18804
18805
18806
18807       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18808       # archiving commands below assume that GNU ld is being used.
18809       if test "$with_gnu_ld" = yes; then
18810         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18811         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'
18812
18813         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18815
18816         # If archive_cmds runs LD, not CC, wlarc should be empty
18817         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18818         #     investigate it a little bit more. (MM)
18819         wlarc='${wl}'
18820
18821         # ancient GNU ld didn't support --whole-archive et. al.
18822         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18823           $GREP 'no-whole-archive' > /dev/null; then
18824           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18825         else
18826           whole_archive_flag_spec_CXX=
18827         fi
18828       else
18829         with_gnu_ld=no
18830         wlarc=
18831
18832         # A generic and very simple default shared library creation
18833         # command for GNU C++ for the case where it uses the native
18834         # linker, instead of GNU ld.  If possible, this setting should
18835         # overridden to take advantage of the native linker features on
18836         # the platform it is being used on.
18837         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18838       fi
18839
18840       # Commands to make compiler produce verbose output that lists
18841       # what "hidden" libraries, object files and flags are used when
18842       # linking a shared library.
18843       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18844
18845     else
18846       GXX=no
18847       with_gnu_ld=no
18848       wlarc=
18849     fi
18850
18851     # PORTME: fill in a description of your system's C++ link characteristics
18852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18853 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18854     ld_shlibs_CXX=yes
18855     case $host_os in
18856       aix3*)
18857         # FIXME: insert proper C++ library support
18858         ld_shlibs_CXX=no
18859         ;;
18860       aix[4-9]*)
18861         if test "$host_cpu" = ia64; then
18862           # On IA64, the linker does run time linking by default, so we don't
18863           # have to do anything special.
18864           aix_use_runtimelinking=no
18865           exp_sym_flag='-Bexport'
18866           no_entry_flag=""
18867         else
18868           aix_use_runtimelinking=no
18869
18870           # Test if we are trying to use run time linking or normal
18871           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18872           # need to do runtime linking.
18873           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18874             for ld_flag in $LDFLAGS; do
18875               case $ld_flag in
18876               *-brtl*)
18877                 aix_use_runtimelinking=yes
18878                 break
18879                 ;;
18880               esac
18881             done
18882             ;;
18883           esac
18884
18885           exp_sym_flag='-bexport'
18886           no_entry_flag='-bnoentry'
18887         fi
18888
18889         # When large executables or shared objects are built, AIX ld can
18890         # have problems creating the table of contents.  If linking a library
18891         # or program results in "error TOC overflow" add -mminimal-toc to
18892         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18893         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18894
18895         archive_cmds_CXX=''
18896         hardcode_direct_CXX=yes
18897         hardcode_direct_absolute_CXX=yes
18898         hardcode_libdir_separator_CXX=':'
18899         link_all_deplibs_CXX=yes
18900         file_list_spec_CXX='${wl}-f,'
18901
18902         if test "$GXX" = yes; then
18903           case $host_os in aix4.[012]|aix4.[012].*)
18904           # We only want to do this on AIX 4.2 and lower, the check
18905           # below for broken collect2 doesn't work under 4.3+
18906           collect2name=`${CC} -print-prog-name=collect2`
18907           if test -f "$collect2name" &&
18908              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18909           then
18910             # We have reworked collect2
18911             :
18912           else
18913             # We have old collect2
18914             hardcode_direct_CXX=unsupported
18915             # It fails to find uninstalled libraries when the uninstalled
18916             # path is not listed in the libpath.  Setting hardcode_minus_L
18917             # to unsupported forces relinking
18918             hardcode_minus_L_CXX=yes
18919             hardcode_libdir_flag_spec_CXX='-L$libdir'
18920             hardcode_libdir_separator_CXX=
18921           fi
18922           esac
18923           shared_flag='-shared'
18924           if test "$aix_use_runtimelinking" = yes; then
18925             shared_flag="$shared_flag "'${wl}-G'
18926           fi
18927         else
18928           # not using gcc
18929           if test "$host_cpu" = ia64; then
18930           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18931           # chokes on -Wl,-G. The following line is correct:
18932           shared_flag='-G'
18933           else
18934             if test "$aix_use_runtimelinking" = yes; then
18935               shared_flag='${wl}-G'
18936             else
18937               shared_flag='${wl}-bM:SRE'
18938             fi
18939           fi
18940         fi
18941
18942         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18943         # It seems that -bexpall does not export symbols beginning with
18944         # underscore (_), so it is better to generate a list of symbols to
18945         # export.
18946         always_export_symbols_CXX=yes
18947         if test "$aix_use_runtimelinking" = yes; then
18948           # Warning - without using the other runtime loading flags (-brtl),
18949           # -berok will link without error, but may produce a broken library.
18950           allow_undefined_flag_CXX='-berok'
18951           # Determine the default libpath from the value encoded in an empty
18952           # executable.
18953           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18954 /* end confdefs.h.  */
18955
18956 int
18957 main ()
18958 {
18959
18960   ;
18961   return 0;
18962 }
18963 _ACEOF
18964 if ac_fn_cxx_try_link "$LINENO"; then :
18965
18966 lt_aix_libpath_sed='
18967     /Import File Strings/,/^$/ {
18968         /^0/ {
18969             s/^0  *\(.*\)$/\1/
18970             p
18971         }
18972     }'
18973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18974 # Check for a 64-bit object if we didn't find anything.
18975 if test -z "$aix_libpath"; then
18976   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18977 fi
18978 fi
18979 rm -f core conftest.err conftest.$ac_objext \
18980     conftest$ac_exeext conftest.$ac_ext
18981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18982
18983           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18984
18985           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"
18986         else
18987           if test "$host_cpu" = ia64; then
18988             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18989             allow_undefined_flag_CXX="-z nodefs"
18990             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"
18991           else
18992             # Determine the default libpath from the value encoded in an
18993             # empty executable.
18994             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h.  */
18996
18997 int
18998 main ()
18999 {
19000
19001   ;
19002   return 0;
19003 }
19004 _ACEOF
19005 if ac_fn_cxx_try_link "$LINENO"; then :
19006
19007 lt_aix_libpath_sed='
19008     /Import File Strings/,/^$/ {
19009         /^0/ {
19010             s/^0  *\(.*\)$/\1/
19011             p
19012         }
19013     }'
19014 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19015 # Check for a 64-bit object if we didn't find anything.
19016 if test -z "$aix_libpath"; then
19017   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19018 fi
19019 fi
19020 rm -f core conftest.err conftest.$ac_objext \
19021     conftest$ac_exeext conftest.$ac_ext
19022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19023
19024             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19025             # Warning - without using the other run time loading flags,
19026             # -berok will link without error, but may produce a broken library.
19027             no_undefined_flag_CXX=' ${wl}-bernotok'
19028             allow_undefined_flag_CXX=' ${wl}-berok'
19029             if test "$with_gnu_ld" = yes; then
19030               # We only use this code for GNU lds that support --whole-archive.
19031               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19032             else
19033               # Exported symbols can be pulled into shared objects from archives
19034               whole_archive_flag_spec_CXX='$convenience'
19035             fi
19036             archive_cmds_need_lc_CXX=yes
19037             # This is similar to how AIX traditionally builds its shared
19038             # libraries.
19039             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'
19040           fi
19041         fi
19042         ;;
19043
19044       beos*)
19045         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19046           allow_undefined_flag_CXX=unsupported
19047           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19048           # support --undefined.  This deserves some investigation.  FIXME
19049           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19050         else
19051           ld_shlibs_CXX=no
19052         fi
19053         ;;
19054
19055       chorus*)
19056         case $cc_basename in
19057           *)
19058           # FIXME: insert proper C++ library support
19059           ld_shlibs_CXX=no
19060           ;;
19061         esac
19062         ;;
19063
19064       cygwin* | mingw* | pw32* | cegcc*)
19065         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19066         # as there is no search path for DLLs.
19067         hardcode_libdir_flag_spec_CXX='-L$libdir'
19068         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19069         allow_undefined_flag_CXX=unsupported
19070         always_export_symbols_CXX=no
19071         enable_shared_with_static_runtimes_CXX=yes
19072
19073         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19074           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'
19075           # If the export-symbols file already is a .def file (1st line
19076           # is EXPORTS), use it as is; otherwise, prepend...
19077           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19078             cp $export_symbols $output_objdir/$soname.def;
19079           else
19080             echo EXPORTS > $output_objdir/$soname.def;
19081             cat $export_symbols >> $output_objdir/$soname.def;
19082           fi~
19083           $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'
19084         else
19085           ld_shlibs_CXX=no
19086         fi
19087         ;;
19088       darwin* | rhapsody*)
19089
19090
19091   archive_cmds_need_lc_CXX=no
19092   hardcode_direct_CXX=no
19093   hardcode_automatic_CXX=yes
19094   hardcode_shlibpath_var_CXX=unsupported
19095   if test "$lt_cv_ld_force_load" = "yes"; then
19096     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\"`'
19097   else
19098     whole_archive_flag_spec_CXX=''
19099   fi
19100   link_all_deplibs_CXX=yes
19101   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19102   case $cc_basename in
19103      ifort*) _lt_dar_can_shared=yes ;;
19104      *) _lt_dar_can_shared=$GCC ;;
19105   esac
19106   if test "$_lt_dar_can_shared" = "yes"; then
19107     output_verbose_link_cmd=func_echo_all
19108     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}"
19109     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19110     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}"
19111     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}"
19112        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19113       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}"
19114       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}"
19115     fi
19116
19117   else
19118   ld_shlibs_CXX=no
19119   fi
19120
19121         ;;
19122
19123       dgux*)
19124         case $cc_basename in
19125           ec++*)
19126             # FIXME: insert proper C++ library support
19127             ld_shlibs_CXX=no
19128             ;;
19129           ghcx*)
19130             # Green Hills C++ Compiler
19131             # FIXME: insert proper C++ library support
19132             ld_shlibs_CXX=no
19133             ;;
19134           *)
19135             # FIXME: insert proper C++ library support
19136             ld_shlibs_CXX=no
19137             ;;
19138         esac
19139         ;;
19140
19141       freebsd2.*)
19142         # C++ shared libraries reported to be fairly broken before
19143         # switch to ELF
19144         ld_shlibs_CXX=no
19145         ;;
19146
19147       freebsd-elf*)
19148         archive_cmds_need_lc_CXX=no
19149         ;;
19150
19151       freebsd* | dragonfly*)
19152         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19153         # conventions
19154         ld_shlibs_CXX=yes
19155         ;;
19156
19157       gnu*)
19158         ;;
19159
19160       haiku*)
19161         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19162         link_all_deplibs_CXX=yes
19163         ;;
19164
19165       hpux9*)
19166         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19167         hardcode_libdir_separator_CXX=:
19168         export_dynamic_flag_spec_CXX='${wl}-E'
19169         hardcode_direct_CXX=yes
19170         hardcode_minus_L_CXX=yes # Not in the search PATH,
19171                                              # but as the default
19172                                              # location of the library.
19173
19174         case $cc_basename in
19175           CC*)
19176             # FIXME: insert proper C++ library support
19177             ld_shlibs_CXX=no
19178             ;;
19179           aCC*)
19180             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'
19181             # Commands to make compiler produce verbose output that lists
19182             # what "hidden" libraries, object files and flags are used when
19183             # linking a shared library.
19184             #
19185             # There doesn't appear to be a way to prevent this compiler from
19186             # explicitly linking system object files so we need to strip them
19187             # from the output so that they don't get included in the library
19188             # dependencies.
19189             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"'
19190             ;;
19191           *)
19192             if test "$GXX" = yes; then
19193               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'
19194             else
19195               # FIXME: insert proper C++ library support
19196               ld_shlibs_CXX=no
19197             fi
19198             ;;
19199         esac
19200         ;;
19201
19202       hpux10*|hpux11*)
19203         if test $with_gnu_ld = no; then
19204           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19205           hardcode_libdir_separator_CXX=:
19206
19207           case $host_cpu in
19208             hppa*64*|ia64*)
19209               ;;
19210             *)
19211               export_dynamic_flag_spec_CXX='${wl}-E'
19212               ;;
19213           esac
19214         fi
19215         case $host_cpu in
19216           hppa*64*|ia64*)
19217             hardcode_direct_CXX=no
19218             hardcode_shlibpath_var_CXX=no
19219             ;;
19220           *)
19221             hardcode_direct_CXX=yes
19222             hardcode_direct_absolute_CXX=yes
19223             hardcode_minus_L_CXX=yes # Not in the search PATH,
19224                                                  # but as the default
19225                                                  # location of the library.
19226             ;;
19227         esac
19228
19229         case $cc_basename in
19230           CC*)
19231             # FIXME: insert proper C++ library support
19232             ld_shlibs_CXX=no
19233             ;;
19234           aCC*)
19235             case $host_cpu in
19236               hppa*64*)
19237                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19238                 ;;
19239               ia64*)
19240                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19241                 ;;
19242               *)
19243                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19244                 ;;
19245             esac
19246             # Commands to make compiler produce verbose output that lists
19247             # what "hidden" libraries, object files and flags are used when
19248             # linking a shared library.
19249             #
19250             # There doesn't appear to be a way to prevent this compiler from
19251             # explicitly linking system object files so we need to strip them
19252             # from the output so that they don't get included in the library
19253             # dependencies.
19254             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"'
19255             ;;
19256           *)
19257             if test "$GXX" = yes; then
19258               if test $with_gnu_ld = no; then
19259                 case $host_cpu in
19260                   hppa*64*)
19261                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19262                     ;;
19263                   ia64*)
19264                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19265                     ;;
19266                   *)
19267                     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'
19268                     ;;
19269                 esac
19270               fi
19271             else
19272               # FIXME: insert proper C++ library support
19273               ld_shlibs_CXX=no
19274             fi
19275             ;;
19276         esac
19277         ;;
19278
19279       interix[3-9]*)
19280         hardcode_direct_CXX=no
19281         hardcode_shlibpath_var_CXX=no
19282         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19283         export_dynamic_flag_spec_CXX='${wl}-E'
19284         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19285         # Instead, shared libraries are loaded at an image base (0x10000000 by
19286         # default) and relocated if they conflict, which is a slow very memory
19287         # consuming and fragmenting process.  To avoid this, we pick a random,
19288         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19289         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19290         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'
19291         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'
19292         ;;
19293       irix5* | irix6*)
19294         case $cc_basename in
19295           CC*)
19296             # SGI C++
19297             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'
19298
19299             # Archives containing C++ object files must be created using
19300             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19301             # necessary to make sure instantiated templates are included
19302             # in the archive.
19303             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19304             ;;
19305           *)
19306             if test "$GXX" = yes; then
19307               if test "$with_gnu_ld" = no; then
19308                 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'
19309               else
19310                 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'
19311               fi
19312             fi
19313             link_all_deplibs_CXX=yes
19314             ;;
19315         esac
19316         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19317         hardcode_libdir_separator_CXX=:
19318         inherit_rpath_CXX=yes
19319         ;;
19320
19321       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19322         case $cc_basename in
19323           KCC*)
19324             # Kuck and Associates, Inc. (KAI) C++ Compiler
19325
19326             # KCC will only create a shared library if the output file
19327             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19328             # to its proper name (with version) after linking.
19329             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'
19330             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'
19331             # Commands to make compiler produce verbose output that lists
19332             # what "hidden" libraries, object files and flags are used when
19333             # linking a shared library.
19334             #
19335             # There doesn't appear to be a way to prevent this compiler from
19336             # explicitly linking system object files so we need to strip them
19337             # from the output so that they don't get included in the library
19338             # dependencies.
19339             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"'
19340
19341             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19342             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19343
19344             # Archives containing C++ object files must be created using
19345             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19346             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19347             ;;
19348           icpc* | ecpc* )
19349             # Intel C++
19350             with_gnu_ld=yes
19351             # version 8.0 and above of icpc choke on multiply defined symbols
19352             # if we add $predep_objects and $postdep_objects, however 7.1 and
19353             # earlier do not add the objects themselves.
19354             case `$CC -V 2>&1` in
19355               *"Version 7."*)
19356                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19357                 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'
19358                 ;;
19359               *)  # Version 8.0 or newer
19360                 tmp_idyn=
19361                 case $host_cpu in
19362                   ia64*) tmp_idyn=' -i_dynamic';;
19363                 esac
19364                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19365                 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'
19366                 ;;
19367             esac
19368             archive_cmds_need_lc_CXX=no
19369             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19370             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19371             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19372             ;;
19373           pgCC* | pgcpp*)
19374             # Portland Group C++ compiler
19375             case `$CC -V` in
19376             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19377               prelink_cmds_CXX='tpldir=Template.dir~
19378                 rm -rf $tpldir~
19379                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19380                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19381               old_archive_cmds_CXX='tpldir=Template.dir~
19382                 rm -rf $tpldir~
19383                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19384                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19385                 $RANLIB $oldlib'
19386               archive_cmds_CXX='tpldir=Template.dir~
19387                 rm -rf $tpldir~
19388                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19389                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19390               archive_expsym_cmds_CXX='tpldir=Template.dir~
19391                 rm -rf $tpldir~
19392                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19393                 $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'
19394               ;;
19395             *) # Version 6 and above use weak symbols
19396               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19397               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'
19398               ;;
19399             esac
19400
19401             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19402             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19403             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'
19404             ;;
19405           cxx*)
19406             # Compaq C++
19407             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19408             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'
19409
19410             runpath_var=LD_RUN_PATH
19411             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19412             hardcode_libdir_separator_CXX=:
19413
19414             # Commands to make compiler produce verbose output that lists
19415             # what "hidden" libraries, object files and flags are used when
19416             # linking a shared library.
19417             #
19418             # There doesn't appear to be a way to prevent this compiler from
19419             # explicitly linking system object files so we need to strip them
19420             # from the output so that they don't get included in the library
19421             # dependencies.
19422             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'
19423             ;;
19424           xl* | mpixl* | bgxl*)
19425             # IBM XL 8.0 on PPC, with GNU ld
19426             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19427             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19428             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19429             if test "x$supports_anon_versioning" = xyes; then
19430               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19431                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19432                 echo "local: *; };" >> $output_objdir/$libname.ver~
19433                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19434             fi
19435             ;;
19436           *)
19437             case `$CC -V 2>&1 | sed 5q` in
19438             *Sun\ C*)
19439               # Sun C++ 5.9
19440               no_undefined_flag_CXX=' -zdefs'
19441               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19442               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'
19443               hardcode_libdir_flag_spec_CXX='-R$libdir'
19444               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'
19445               compiler_needs_object_CXX=yes
19446
19447               # Not sure whether something based on
19448               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19449               # would be better.
19450               output_verbose_link_cmd='func_echo_all'
19451
19452               # Archives containing C++ object files must be created using
19453               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19454               # necessary to make sure instantiated templates are included
19455               # in the archive.
19456               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19457               ;;
19458             esac
19459             ;;
19460         esac
19461         ;;
19462
19463       lynxos*)
19464         # FIXME: insert proper C++ library support
19465         ld_shlibs_CXX=no
19466         ;;
19467
19468       m88k*)
19469         # FIXME: insert proper C++ library support
19470         ld_shlibs_CXX=no
19471         ;;
19472
19473       mvs*)
19474         case $cc_basename in
19475           cxx*)
19476             # FIXME: insert proper C++ library support
19477             ld_shlibs_CXX=no
19478             ;;
19479           *)
19480             # FIXME: insert proper C++ library support
19481             ld_shlibs_CXX=no
19482             ;;
19483         esac
19484         ;;
19485
19486       netbsd*)
19487         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19488           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19489           wlarc=
19490           hardcode_libdir_flag_spec_CXX='-R$libdir'
19491           hardcode_direct_CXX=yes
19492           hardcode_shlibpath_var_CXX=no
19493         fi
19494         # Workaround some broken pre-1.5 toolchains
19495         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19496         ;;
19497
19498       *nto* | *qnx*)
19499         ld_shlibs_CXX=yes
19500         ;;
19501
19502       openbsd2*)
19503         # C++ shared libraries are fairly broken
19504         ld_shlibs_CXX=no
19505         ;;
19506
19507       openbsd*)
19508         if test -f /usr/libexec/ld.so; then
19509           hardcode_direct_CXX=yes
19510           hardcode_shlibpath_var_CXX=no
19511           hardcode_direct_absolute_CXX=yes
19512           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19513           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19514           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19515             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19516             export_dynamic_flag_spec_CXX='${wl}-E'
19517             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19518           fi
19519           output_verbose_link_cmd=func_echo_all
19520         else
19521           ld_shlibs_CXX=no
19522         fi
19523         ;;
19524
19525       osf3* | osf4* | osf5*)
19526         case $cc_basename in
19527           KCC*)
19528             # Kuck and Associates, Inc. (KAI) C++ Compiler
19529
19530             # KCC will only create a shared library if the output file
19531             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19532             # to its proper name (with version) after linking.
19533             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'
19534
19535             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19536             hardcode_libdir_separator_CXX=:
19537
19538             # Archives containing C++ object files must be created using
19539             # the KAI C++ compiler.
19540             case $host in
19541               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19542               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19543             esac
19544             ;;
19545           RCC*)
19546             # Rational C++ 2.4.1
19547             # FIXME: insert proper C++ library support
19548             ld_shlibs_CXX=no
19549             ;;
19550           cxx*)
19551             case $host in
19552               osf3*)
19553                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19554                 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'
19555                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19556                 ;;
19557               *)
19558                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19559                 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'
19560                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19561                   echo "-hidden">> $lib.exp~
19562                   $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~
19563                   $RM $lib.exp'
19564                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19565                 ;;
19566             esac
19567
19568             hardcode_libdir_separator_CXX=:
19569
19570             # Commands to make compiler produce verbose output that lists
19571             # what "hidden" libraries, object files and flags are used when
19572             # linking a shared library.
19573             #
19574             # There doesn't appear to be a way to prevent this compiler from
19575             # explicitly linking system object files so we need to strip them
19576             # from the output so that they don't get included in the library
19577             # dependencies.
19578             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"'
19579             ;;
19580           *)
19581             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19582               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19583               case $host in
19584                 osf3*)
19585                   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'
19586                   ;;
19587                 *)
19588                   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'
19589                   ;;
19590               esac
19591
19592               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19593               hardcode_libdir_separator_CXX=:
19594
19595               # Commands to make compiler produce verbose output that lists
19596               # what "hidden" libraries, object files and flags are used when
19597               # linking a shared library.
19598               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19599
19600             else
19601               # FIXME: insert proper C++ library support
19602               ld_shlibs_CXX=no
19603             fi
19604             ;;
19605         esac
19606         ;;
19607
19608       psos*)
19609         # FIXME: insert proper C++ library support
19610         ld_shlibs_CXX=no
19611         ;;
19612
19613       sunos4*)
19614         case $cc_basename in
19615           CC*)
19616             # Sun C++ 4.x
19617             # FIXME: insert proper C++ library support
19618             ld_shlibs_CXX=no
19619             ;;
19620           lcc*)
19621             # Lucid
19622             # FIXME: insert proper C++ library support
19623             ld_shlibs_CXX=no
19624             ;;
19625           *)
19626             # FIXME: insert proper C++ library support
19627             ld_shlibs_CXX=no
19628             ;;
19629         esac
19630         ;;
19631
19632       solaris*)
19633         case $cc_basename in
19634           CC*)
19635             # Sun C++ 4.2, 5.x and Centerline C++
19636             archive_cmds_need_lc_CXX=yes
19637             no_undefined_flag_CXX=' -zdefs'
19638             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19639             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19640               $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'
19641
19642             hardcode_libdir_flag_spec_CXX='-R$libdir'
19643             hardcode_shlibpath_var_CXX=no
19644             case $host_os in
19645               solaris2.[0-5] | solaris2.[0-5].*) ;;
19646               *)
19647                 # The compiler driver will combine and reorder linker options,
19648                 # but understands `-z linker_flag'.
19649                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19650                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19651                 ;;
19652             esac
19653             link_all_deplibs_CXX=yes
19654
19655             output_verbose_link_cmd='func_echo_all'
19656
19657             # Archives containing C++ object files must be created using
19658             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19659             # necessary to make sure instantiated templates are included
19660             # in the archive.
19661             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19662             ;;
19663           gcx*)
19664             # Green Hills C++ Compiler
19665             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19666
19667             # The C++ compiler must be used to create the archive.
19668             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19669             ;;
19670           *)
19671             # GNU C++ compiler with Solaris linker
19672             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19673               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19674               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19675                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19676                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19677                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19678
19679                 # Commands to make compiler produce verbose output that lists
19680                 # what "hidden" libraries, object files and flags are used when
19681                 # linking a shared library.
19682                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19683               else
19684                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19685                 # platform.
19686                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19687                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19688                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19689
19690                 # Commands to make compiler produce verbose output that lists
19691                 # what "hidden" libraries, object files and flags are used when
19692                 # linking a shared library.
19693                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19694               fi
19695
19696               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19697               case $host_os in
19698                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19699                 *)
19700                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19701                   ;;
19702               esac
19703             fi
19704             ;;
19705         esac
19706         ;;
19707
19708     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19709       no_undefined_flag_CXX='${wl}-z,text'
19710       archive_cmds_need_lc_CXX=no
19711       hardcode_shlibpath_var_CXX=no
19712       runpath_var='LD_RUN_PATH'
19713
19714       case $cc_basename in
19715         CC*)
19716           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19717           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19718           ;;
19719         *)
19720           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19721           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19722           ;;
19723       esac
19724       ;;
19725
19726       sysv5* | sco3.2v5* | sco5v6*)
19727         # Note: We can NOT use -z defs as we might desire, because we do not
19728         # link with -lc, and that would cause any symbols used from libc to
19729         # always be unresolved, which means just about no library would
19730         # ever link correctly.  If we're not using GNU ld we use -z text
19731         # though, which does catch some bad symbols but isn't as heavy-handed
19732         # as -z defs.
19733         no_undefined_flag_CXX='${wl}-z,text'
19734         allow_undefined_flag_CXX='${wl}-z,nodefs'
19735         archive_cmds_need_lc_CXX=no
19736         hardcode_shlibpath_var_CXX=no
19737         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19738         hardcode_libdir_separator_CXX=':'
19739         link_all_deplibs_CXX=yes
19740         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19741         runpath_var='LD_RUN_PATH'
19742
19743         case $cc_basename in
19744           CC*)
19745             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19746             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19747             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19748               '"$old_archive_cmds_CXX"
19749             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19750               '"$reload_cmds_CXX"
19751             ;;
19752           *)
19753             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19754             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19755             ;;
19756         esac
19757       ;;
19758
19759       tandem*)
19760         case $cc_basename in
19761           NCC*)
19762             # NonStop-UX NCC 3.20
19763             # FIXME: insert proper C++ library support
19764             ld_shlibs_CXX=no
19765             ;;
19766           *)
19767             # FIXME: insert proper C++ library support
19768             ld_shlibs_CXX=no
19769             ;;
19770         esac
19771         ;;
19772
19773       vxworks*)
19774         # FIXME: insert proper C++ library support
19775         ld_shlibs_CXX=no
19776         ;;
19777
19778       *)
19779         # FIXME: insert proper C++ library support
19780         ld_shlibs_CXX=no
19781         ;;
19782     esac
19783
19784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19785 $as_echo "$ld_shlibs_CXX" >&6; }
19786     test "$ld_shlibs_CXX" = no && can_build_shared=no
19787
19788     GCC_CXX="$GXX"
19789     LD_CXX="$LD"
19790
19791     ## CAVEAT EMPTOR:
19792     ## There is no encapsulation within the following macros, do not change
19793     ## the running order or otherwise move them around unless you know exactly
19794     ## what you are doing...
19795     # Dependencies to place before and after the object being linked:
19796 predep_objects_CXX=
19797 postdep_objects_CXX=
19798 predeps_CXX=
19799 postdeps_CXX=
19800 compiler_lib_search_path_CXX=
19801
19802 cat > conftest.$ac_ext <<_LT_EOF
19803 class Foo
19804 {
19805 public:
19806   Foo (void) { a = 0; }
19807 private:
19808   int a;
19809 };
19810 _LT_EOF
19811
19812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19813   (eval $ac_compile) 2>&5
19814   ac_status=$?
19815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19816   test $ac_status = 0; }; then
19817   # Parse the compiler output and extract the necessary
19818   # objects, libraries and library flags.
19819
19820   # Sentinel used to keep track of whether or not we are before
19821   # the conftest object file.
19822   pre_test_object_deps_done=no
19823
19824   for p in `eval "$output_verbose_link_cmd"`; do
19825     case $p in
19826
19827     -L* | -R* | -l*)
19828        # Some compilers place space between "-{L,R}" and the path.
19829        # Remove the space.
19830        if test $p = "-L" ||
19831           test $p = "-R"; then
19832          prev=$p
19833          continue
19834        else
19835          prev=
19836        fi
19837
19838        if test "$pre_test_object_deps_done" = no; then
19839          case $p in
19840          -L* | -R*)
19841            # Internal compiler library paths should come after those
19842            # provided the user.  The postdeps already come after the
19843            # user supplied libs so there is no need to process them.
19844            if test -z "$compiler_lib_search_path_CXX"; then
19845              compiler_lib_search_path_CXX="${prev}${p}"
19846            else
19847              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19848            fi
19849            ;;
19850          # The "-l" case would never come before the object being
19851          # linked, so don't bother handling this case.
19852          esac
19853        else
19854          if test -z "$postdeps_CXX"; then
19855            postdeps_CXX="${prev}${p}"
19856          else
19857            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19858          fi
19859        fi
19860        ;;
19861
19862     *.$objext)
19863        # This assumes that the test object file only shows up
19864        # once in the compiler output.
19865        if test "$p" = "conftest.$objext"; then
19866          pre_test_object_deps_done=yes
19867          continue
19868        fi
19869
19870        if test "$pre_test_object_deps_done" = no; then
19871          if test -z "$predep_objects_CXX"; then
19872            predep_objects_CXX="$p"
19873          else
19874            predep_objects_CXX="$predep_objects_CXX $p"
19875          fi
19876        else
19877          if test -z "$postdep_objects_CXX"; then
19878            postdep_objects_CXX="$p"
19879          else
19880            postdep_objects_CXX="$postdep_objects_CXX $p"
19881          fi
19882        fi
19883        ;;
19884
19885     *) ;; # Ignore the rest.
19886
19887     esac
19888   done
19889
19890   # Clean up.
19891   rm -f a.out a.exe
19892 else
19893   echo "libtool.m4: error: problem compiling CXX test program"
19894 fi
19895
19896 $RM -f confest.$objext
19897
19898 # PORTME: override above test on systems where it is broken
19899 case $host_os in
19900 interix[3-9]*)
19901   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19902   # hack all around it, let's just trust "g++" to DTRT.
19903   predep_objects_CXX=
19904   postdep_objects_CXX=
19905   postdeps_CXX=
19906   ;;
19907
19908 linux*)
19909   case `$CC -V 2>&1 | sed 5q` in
19910   *Sun\ C*)
19911     # Sun C++ 5.9
19912
19913     # The more standards-conforming stlport4 library is
19914     # incompatible with the Cstd library. Avoid specifying
19915     # it if it's in CXXFLAGS. Ignore libCrun as
19916     # -library=stlport4 depends on it.
19917     case " $CXX $CXXFLAGS " in
19918     *" -library=stlport4 "*)
19919       solaris_use_stlport4=yes
19920       ;;
19921     esac
19922
19923     if test "$solaris_use_stlport4" != yes; then
19924       postdeps_CXX='-library=Cstd -library=Crun'
19925     fi
19926     ;;
19927   esac
19928   ;;
19929
19930 solaris*)
19931   case $cc_basename in
19932   CC*)
19933     # The more standards-conforming stlport4 library is
19934     # incompatible with the Cstd library. Avoid specifying
19935     # it if it's in CXXFLAGS. Ignore libCrun as
19936     # -library=stlport4 depends on it.
19937     case " $CXX $CXXFLAGS " in
19938     *" -library=stlport4 "*)
19939       solaris_use_stlport4=yes
19940       ;;
19941     esac
19942
19943     # Adding this requires a known-good setup of shared libraries for
19944     # Sun compiler versions before 5.6, else PIC objects from an old
19945     # archive will be linked into the output, leading to subtle bugs.
19946     if test "$solaris_use_stlport4" != yes; then
19947       postdeps_CXX='-library=Cstd -library=Crun'
19948     fi
19949     ;;
19950   esac
19951   ;;
19952 esac
19953
19954
19955 case " $postdeps_CXX " in
19956 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19957 esac
19958  compiler_lib_search_dirs_CXX=
19959 if test -n "${compiler_lib_search_path_CXX}"; then
19960  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19961 fi
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993     lt_prog_compiler_wl_CXX=
19994 lt_prog_compiler_pic_CXX=
19995 lt_prog_compiler_static_CXX=
19996
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19998 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19999
20000   # C++ specific cases for pic, static, wl, etc.
20001   if test "$GXX" = yes; then
20002     lt_prog_compiler_wl_CXX='-Wl,'
20003     lt_prog_compiler_static_CXX='-static'
20004
20005     case $host_os in
20006     aix*)
20007       # All AIX code is PIC.
20008       if test "$host_cpu" = ia64; then
20009         # AIX 5 now supports IA64 processor
20010         lt_prog_compiler_static_CXX='-Bstatic'
20011       fi
20012       ;;
20013
20014     amigaos*)
20015       case $host_cpu in
20016       powerpc)
20017             # see comment about AmigaOS4 .so support
20018             lt_prog_compiler_pic_CXX='-fPIC'
20019         ;;
20020       m68k)
20021             # FIXME: we need at least 68020 code to build shared libraries, but
20022             # adding the `-m68020' flag to GCC prevents building anything better,
20023             # like `-m68040'.
20024             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20025         ;;
20026       esac
20027       ;;
20028
20029     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20030       # PIC is the default for these OSes.
20031       ;;
20032     mingw* | cygwin* | os2* | pw32* | cegcc*)
20033       # This hack is so that the source file can tell whether it is being
20034       # built for inclusion in a dll (and should export symbols for example).
20035       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20036       # (--disable-auto-import) libraries
20037       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20038       ;;
20039     darwin* | rhapsody*)
20040       # PIC is the default on this platform
20041       # Common symbols not allowed in MH_DYLIB files
20042       lt_prog_compiler_pic_CXX='-fno-common'
20043       ;;
20044     *djgpp*)
20045       # DJGPP does not support shared libraries at all
20046       lt_prog_compiler_pic_CXX=
20047       ;;
20048     haiku*)
20049       # PIC is the default for Haiku.
20050       # The "-static" flag exists, but is broken.
20051       lt_prog_compiler_static_CXX=
20052       ;;
20053     interix[3-9]*)
20054       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20055       # Instead, we relocate shared libraries at runtime.
20056       ;;
20057     sysv4*MP*)
20058       if test -d /usr/nec; then
20059         lt_prog_compiler_pic_CXX=-Kconform_pic
20060       fi
20061       ;;
20062     hpux*)
20063       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20064       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20065       # sets the default TLS model and affects inlining.
20066       case $host_cpu in
20067       hppa*64*)
20068         ;;
20069       *)
20070         lt_prog_compiler_pic_CXX='-fPIC'
20071         ;;
20072       esac
20073       ;;
20074     *qnx* | *nto*)
20075       # QNX uses GNU C++, but need to define -shared option too, otherwise
20076       # it will coredump.
20077       lt_prog_compiler_pic_CXX='-fPIC -shared'
20078       ;;
20079     *)
20080       lt_prog_compiler_pic_CXX='-fPIC'
20081       ;;
20082     esac
20083   else
20084     case $host_os in
20085       aix[4-9]*)
20086         # All AIX code is PIC.
20087         if test "$host_cpu" = ia64; then
20088           # AIX 5 now supports IA64 processor
20089           lt_prog_compiler_static_CXX='-Bstatic'
20090         else
20091           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20092         fi
20093         ;;
20094       chorus*)
20095         case $cc_basename in
20096         cxch68*)
20097           # Green Hills C++ Compiler
20098           # _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"
20099           ;;
20100         esac
20101         ;;
20102       dgux*)
20103         case $cc_basename in
20104           ec++*)
20105             lt_prog_compiler_pic_CXX='-KPIC'
20106             ;;
20107           ghcx*)
20108             # Green Hills C++ Compiler
20109             lt_prog_compiler_pic_CXX='-pic'
20110             ;;
20111           *)
20112             ;;
20113         esac
20114         ;;
20115       freebsd* | dragonfly*)
20116         # FreeBSD uses GNU C++
20117         ;;
20118       hpux9* | hpux10* | hpux11*)
20119         case $cc_basename in
20120           CC*)
20121             lt_prog_compiler_wl_CXX='-Wl,'
20122             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20123             if test "$host_cpu" != ia64; then
20124               lt_prog_compiler_pic_CXX='+Z'
20125             fi
20126             ;;
20127           aCC*)
20128             lt_prog_compiler_wl_CXX='-Wl,'
20129             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20130             case $host_cpu in
20131             hppa*64*|ia64*)
20132               # +Z the default
20133               ;;
20134             *)
20135               lt_prog_compiler_pic_CXX='+Z'
20136               ;;
20137             esac
20138             ;;
20139           *)
20140             ;;
20141         esac
20142         ;;
20143       interix*)
20144         # This is c89, which is MS Visual C++ (no shared libs)
20145         # Anyone wants to do a port?
20146         ;;
20147       irix5* | irix6* | nonstopux*)
20148         case $cc_basename in
20149           CC*)
20150             lt_prog_compiler_wl_CXX='-Wl,'
20151             lt_prog_compiler_static_CXX='-non_shared'
20152             # CC pic flag -KPIC is the default.
20153             ;;
20154           *)
20155             ;;
20156         esac
20157         ;;
20158       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20159         case $cc_basename in
20160           KCC*)
20161             # KAI C++ Compiler
20162             lt_prog_compiler_wl_CXX='--backend -Wl,'
20163             lt_prog_compiler_pic_CXX='-fPIC'
20164             ;;
20165           ecpc* )
20166             # old Intel C++ for x86_64 which still supported -KPIC.
20167             lt_prog_compiler_wl_CXX='-Wl,'
20168             lt_prog_compiler_pic_CXX='-KPIC'
20169             lt_prog_compiler_static_CXX='-static'
20170             ;;
20171           icpc* )
20172             # Intel C++, used to be incompatible with GCC.
20173             # ICC 10 doesn't accept -KPIC any more.
20174             lt_prog_compiler_wl_CXX='-Wl,'
20175             lt_prog_compiler_pic_CXX='-fPIC'
20176             lt_prog_compiler_static_CXX='-static'
20177             ;;
20178           pgCC* | pgcpp*)
20179             # Portland Group C++ compiler
20180             lt_prog_compiler_wl_CXX='-Wl,'
20181             lt_prog_compiler_pic_CXX='-fpic'
20182             lt_prog_compiler_static_CXX='-Bstatic'
20183             ;;
20184           cxx*)
20185             # Compaq C++
20186             # Make sure the PIC flag is empty.  It appears that all Alpha
20187             # Linux and Compaq Tru64 Unix objects are PIC.
20188             lt_prog_compiler_pic_CXX=
20189             lt_prog_compiler_static_CXX='-non_shared'
20190             ;;
20191           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20192             # IBM XL 8.0, 9.0 on PPC and BlueGene
20193             lt_prog_compiler_wl_CXX='-Wl,'
20194             lt_prog_compiler_pic_CXX='-qpic'
20195             lt_prog_compiler_static_CXX='-qstaticlink'
20196             ;;
20197           *)
20198             case `$CC -V 2>&1 | sed 5q` in
20199             *Sun\ C*)
20200               # Sun C++ 5.9
20201               lt_prog_compiler_pic_CXX='-KPIC'
20202               lt_prog_compiler_static_CXX='-Bstatic'
20203               lt_prog_compiler_wl_CXX='-Qoption ld '
20204               ;;
20205             esac
20206             ;;
20207         esac
20208         ;;
20209       lynxos*)
20210         ;;
20211       m88k*)
20212         ;;
20213       mvs*)
20214         case $cc_basename in
20215           cxx*)
20216             lt_prog_compiler_pic_CXX='-W c,exportall'
20217             ;;
20218           *)
20219             ;;
20220         esac
20221         ;;
20222       netbsd*)
20223         ;;
20224       *qnx* | *nto*)
20225         # QNX uses GNU C++, but need to define -shared option too, otherwise
20226         # it will coredump.
20227         lt_prog_compiler_pic_CXX='-fPIC -shared'
20228         ;;
20229       osf3* | osf4* | osf5*)
20230         case $cc_basename in
20231           KCC*)
20232             lt_prog_compiler_wl_CXX='--backend -Wl,'
20233             ;;
20234           RCC*)
20235             # Rational C++ 2.4.1
20236             lt_prog_compiler_pic_CXX='-pic'
20237             ;;
20238           cxx*)
20239             # Digital/Compaq C++
20240             lt_prog_compiler_wl_CXX='-Wl,'
20241             # Make sure the PIC flag is empty.  It appears that all Alpha
20242             # Linux and Compaq Tru64 Unix objects are PIC.
20243             lt_prog_compiler_pic_CXX=
20244             lt_prog_compiler_static_CXX='-non_shared'
20245             ;;
20246           *)
20247             ;;
20248         esac
20249         ;;
20250       psos*)
20251         ;;
20252       solaris*)
20253         case $cc_basename in
20254           CC*)
20255             # Sun C++ 4.2, 5.x and Centerline C++
20256             lt_prog_compiler_pic_CXX='-KPIC'
20257             lt_prog_compiler_static_CXX='-Bstatic'
20258             lt_prog_compiler_wl_CXX='-Qoption ld '
20259             ;;
20260           gcx*)
20261             # Green Hills C++ Compiler
20262             lt_prog_compiler_pic_CXX='-PIC'
20263             ;;
20264           *)
20265             ;;
20266         esac
20267         ;;
20268       sunos4*)
20269         case $cc_basename in
20270           CC*)
20271             # Sun C++ 4.x
20272             lt_prog_compiler_pic_CXX='-pic'
20273             lt_prog_compiler_static_CXX='-Bstatic'
20274             ;;
20275           lcc*)
20276             # Lucid
20277             lt_prog_compiler_pic_CXX='-pic'
20278             ;;
20279           *)
20280             ;;
20281         esac
20282         ;;
20283       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20284         case $cc_basename in
20285           CC*)
20286             lt_prog_compiler_wl_CXX='-Wl,'
20287             lt_prog_compiler_pic_CXX='-KPIC'
20288             lt_prog_compiler_static_CXX='-Bstatic'
20289             ;;
20290         esac
20291         ;;
20292       tandem*)
20293         case $cc_basename in
20294           NCC*)
20295             # NonStop-UX NCC 3.20
20296             lt_prog_compiler_pic_CXX='-KPIC'
20297             ;;
20298           *)
20299             ;;
20300         esac
20301         ;;
20302       vxworks*)
20303         ;;
20304       *)
20305         lt_prog_compiler_can_build_shared_CXX=no
20306         ;;
20307     esac
20308   fi
20309
20310 case $host_os in
20311   # For platforms which do not support PIC, -DPIC is meaningless:
20312   *djgpp*)
20313     lt_prog_compiler_pic_CXX=
20314     ;;
20315   *)
20316     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20317     ;;
20318 esac
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20320 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20321
20322
20323
20324 #
20325 # Check to make sure the PIC flag actually works.
20326 #
20327 if test -n "$lt_prog_compiler_pic_CXX"; then
20328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20329 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20330 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20331   $as_echo_n "(cached) " >&6
20332 else
20333   lt_cv_prog_compiler_pic_works_CXX=no
20334    ac_outfile=conftest.$ac_objext
20335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20336    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20337    # Insert the option either (1) after the last *FLAGS variable, or
20338    # (2) before a word containing "conftest.", or (3) at the end.
20339    # Note that $ac_compile itself does not contain backslashes and begins
20340    # with a dollar sign (not a hyphen), so the echo should work correctly.
20341    # The option is referenced via a variable to avoid confusing sed.
20342    lt_compile=`echo "$ac_compile" | $SED \
20343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20345    -e 's:$: $lt_compiler_flag:'`
20346    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20347    (eval "$lt_compile" 2>conftest.err)
20348    ac_status=$?
20349    cat conftest.err >&5
20350    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351    if (exit $ac_status) && test -s "$ac_outfile"; then
20352      # The compiler can only warn and ignore the option if not recognized
20353      # So say no if there are warnings other than the usual output.
20354      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20357        lt_cv_prog_compiler_pic_works_CXX=yes
20358      fi
20359    fi
20360    $RM conftest*
20361
20362 fi
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20364 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20365
20366 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20367     case $lt_prog_compiler_pic_CXX in
20368      "" | " "*) ;;
20369      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20370      esac
20371 else
20372     lt_prog_compiler_pic_CXX=
20373      lt_prog_compiler_can_build_shared_CXX=no
20374 fi
20375
20376 fi
20377
20378
20379
20380 #
20381 # Check to make sure the static flag actually works.
20382 #
20383 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20385 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20386 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20387   $as_echo_n "(cached) " >&6
20388 else
20389   lt_cv_prog_compiler_static_works_CXX=no
20390    save_LDFLAGS="$LDFLAGS"
20391    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20392    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20393    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20394      # The linker can only warn and ignore the option if not recognized
20395      # So say no if there are warnings
20396      if test -s conftest.err; then
20397        # Append any errors to the config.log.
20398        cat conftest.err 1>&5
20399        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20400        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20401        if diff conftest.exp conftest.er2 >/dev/null; then
20402          lt_cv_prog_compiler_static_works_CXX=yes
20403        fi
20404      else
20405        lt_cv_prog_compiler_static_works_CXX=yes
20406      fi
20407    fi
20408    $RM -r conftest*
20409    LDFLAGS="$save_LDFLAGS"
20410
20411 fi
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20413 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20414
20415 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20416     :
20417 else
20418     lt_prog_compiler_static_CXX=
20419 fi
20420
20421
20422
20423
20424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20425 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20426 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20427   $as_echo_n "(cached) " >&6
20428 else
20429   lt_cv_prog_compiler_c_o_CXX=no
20430    $RM -r conftest 2>/dev/null
20431    mkdir conftest
20432    cd conftest
20433    mkdir out
20434    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20435
20436    lt_compiler_flag="-o out/conftest2.$ac_objext"
20437    # Insert the option either (1) after the last *FLAGS variable, or
20438    # (2) before a word containing "conftest.", or (3) at the end.
20439    # Note that $ac_compile itself does not contain backslashes and begins
20440    # with a dollar sign (not a hyphen), so the echo should work correctly.
20441    lt_compile=`echo "$ac_compile" | $SED \
20442    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20444    -e 's:$: $lt_compiler_flag:'`
20445    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20446    (eval "$lt_compile" 2>out/conftest.err)
20447    ac_status=$?
20448    cat out/conftest.err >&5
20449    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20451    then
20452      # The compiler can only warn and ignore the option if not recognized
20453      # So say no if there are warnings
20454      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20455      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20456      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20457        lt_cv_prog_compiler_c_o_CXX=yes
20458      fi
20459    fi
20460    chmod u+w . 2>&5
20461    $RM conftest*
20462    # SGI C++ compiler will create directory out/ii_files/ for
20463    # template instantiation
20464    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20465    $RM out/* && rmdir out
20466    cd ..
20467    $RM -r conftest
20468    $RM conftest*
20469
20470 fi
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20472 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20473
20474
20475
20476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20477 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20478 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20479   $as_echo_n "(cached) " >&6
20480 else
20481   lt_cv_prog_compiler_c_o_CXX=no
20482    $RM -r conftest 2>/dev/null
20483    mkdir conftest
20484    cd conftest
20485    mkdir out
20486    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20487
20488    lt_compiler_flag="-o out/conftest2.$ac_objext"
20489    # Insert the option either (1) after the last *FLAGS variable, or
20490    # (2) before a word containing "conftest.", or (3) at the end.
20491    # Note that $ac_compile itself does not contain backslashes and begins
20492    # with a dollar sign (not a hyphen), so the echo should work correctly.
20493    lt_compile=`echo "$ac_compile" | $SED \
20494    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20495    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20496    -e 's:$: $lt_compiler_flag:'`
20497    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20498    (eval "$lt_compile" 2>out/conftest.err)
20499    ac_status=$?
20500    cat out/conftest.err >&5
20501    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20503    then
20504      # The compiler can only warn and ignore the option if not recognized
20505      # So say no if there are warnings
20506      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20507      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20508      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20509        lt_cv_prog_compiler_c_o_CXX=yes
20510      fi
20511    fi
20512    chmod u+w . 2>&5
20513    $RM conftest*
20514    # SGI C++ compiler will create directory out/ii_files/ for
20515    # template instantiation
20516    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20517    $RM out/* && rmdir out
20518    cd ..
20519    $RM -r conftest
20520    $RM conftest*
20521
20522 fi
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20524 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20525
20526
20527
20528
20529 hard_links="nottested"
20530 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20531   # do not overwrite the value of need_locks provided by the user
20532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20533 $as_echo_n "checking if we can lock with hard links... " >&6; }
20534   hard_links=yes
20535   $RM conftest*
20536   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20537   touch conftest.a
20538   ln conftest.a conftest.b 2>&5 || hard_links=no
20539   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20541 $as_echo "$hard_links" >&6; }
20542   if test "$hard_links" = no; then
20543     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20544 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20545     need_locks=warn
20546   fi
20547 else
20548   need_locks=no
20549 fi
20550
20551
20552
20553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20554 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20555
20556   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20557   case $host_os in
20558   aix[4-9]*)
20559     # If we're using GNU nm, then we don't want the "-C" option.
20560     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20561     # Also, AIX nm treats weak defined symbols like other global defined
20562     # symbols, whereas GNU nm marks them as "W".
20563     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20564       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'
20565     else
20566       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'
20567     fi
20568     ;;
20569   pw32*)
20570     export_symbols_cmds_CXX="$ltdll_cmds"
20571   ;;
20572   cygwin* | mingw* | cegcc*)
20573     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'
20574   ;;
20575   *)
20576     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20577   ;;
20578   esac
20579   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20580
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20582 $as_echo "$ld_shlibs_CXX" >&6; }
20583 test "$ld_shlibs_CXX" = no && can_build_shared=no
20584
20585 with_gnu_ld_CXX=$with_gnu_ld
20586
20587
20588
20589
20590
20591
20592 #
20593 # Do we need to explicitly link libc?
20594 #
20595 case "x$archive_cmds_need_lc_CXX" in
20596 x|xyes)
20597   # Assume -lc should be added
20598   archive_cmds_need_lc_CXX=yes
20599
20600   if test "$enable_shared" = yes && test "$GCC" = yes; then
20601     case $archive_cmds_CXX in
20602     *'~'*)
20603       # FIXME: we may have to deal with multi-command sequences.
20604       ;;
20605     '$CC '*)
20606       # Test whether the compiler implicitly links with -lc since on some
20607       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20608       # to ld, don't add -lc before -lgcc.
20609       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20610 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20611 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20612   $as_echo_n "(cached) " >&6
20613 else
20614   $RM conftest*
20615         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20616
20617         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20618   (eval $ac_compile) 2>&5
20619   ac_status=$?
20620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20621   test $ac_status = 0; } 2>conftest.err; then
20622           soname=conftest
20623           lib=conftest
20624           libobjs=conftest.$ac_objext
20625           deplibs=
20626           wl=$lt_prog_compiler_wl_CXX
20627           pic_flag=$lt_prog_compiler_pic_CXX
20628           compiler_flags=-v
20629           linker_flags=-v
20630           verstring=
20631           output_objdir=.
20632           libname=conftest
20633           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20634           allow_undefined_flag_CXX=
20635           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20636   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20637   ac_status=$?
20638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20639   test $ac_status = 0; }
20640           then
20641             lt_cv_archive_cmds_need_lc_CXX=no
20642           else
20643             lt_cv_archive_cmds_need_lc_CXX=yes
20644           fi
20645           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20646         else
20647           cat conftest.err 1>&5
20648         fi
20649         $RM conftest*
20650
20651 fi
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20653 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20654       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20655       ;;
20656     esac
20657   fi
20658   ;;
20659 esac
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20725 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20726
20727 library_names_spec=
20728 libname_spec='lib$name'
20729 soname_spec=
20730 shrext_cmds=".so"
20731 postinstall_cmds=
20732 postuninstall_cmds=
20733 finish_cmds=
20734 finish_eval=
20735 shlibpath_var=
20736 shlibpath_overrides_runpath=unknown
20737 version_type=none
20738 dynamic_linker="$host_os ld.so"
20739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20740 need_lib_prefix=unknown
20741 hardcode_into_libs=no
20742
20743 # when you set need_version to no, make sure it does not cause -set_version
20744 # flags to be left without arguments
20745 need_version=unknown
20746
20747 case $host_os in
20748 aix3*)
20749   version_type=linux
20750   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20751   shlibpath_var=LIBPATH
20752
20753   # AIX 3 has no versioning support, so we append a major version to the name.
20754   soname_spec='${libname}${release}${shared_ext}$major'
20755   ;;
20756
20757 aix[4-9]*)
20758   version_type=linux
20759   need_lib_prefix=no
20760   need_version=no
20761   hardcode_into_libs=yes
20762   if test "$host_cpu" = ia64; then
20763     # AIX 5 supports IA64
20764     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20765     shlibpath_var=LD_LIBRARY_PATH
20766   else
20767     # With GCC up to 2.95.x, collect2 would create an import file
20768     # for dependence libraries.  The import file would start with
20769     # the line `#! .'.  This would cause the generated library to
20770     # depend on `.', always an invalid library.  This was fixed in
20771     # development snapshots of GCC prior to 3.0.
20772     case $host_os in
20773       aix4 | aix4.[01] | aix4.[01].*)
20774       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20775            echo ' yes '
20776            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20777         :
20778       else
20779         can_build_shared=no
20780       fi
20781       ;;
20782     esac
20783     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20784     # soname into executable. Probably we can add versioning support to
20785     # collect2, so additional links can be useful in future.
20786     if test "$aix_use_runtimelinking" = yes; then
20787       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20788       # instead of lib<name>.a to let people know that these are not
20789       # typical AIX shared libraries.
20790       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20791     else
20792       # We preserve .a as extension for shared libraries through AIX4.2
20793       # and later when we are not doing run time linking.
20794       library_names_spec='${libname}${release}.a $libname.a'
20795       soname_spec='${libname}${release}${shared_ext}$major'
20796     fi
20797     shlibpath_var=LIBPATH
20798   fi
20799   ;;
20800
20801 amigaos*)
20802   case $host_cpu in
20803   powerpc)
20804     # Since July 2007 AmigaOS4 officially supports .so libraries.
20805     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20807     ;;
20808   m68k)
20809     library_names_spec='$libname.ixlibrary $libname.a'
20810     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20811     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'
20812     ;;
20813   esac
20814   ;;
20815
20816 beos*)
20817   library_names_spec='${libname}${shared_ext}'
20818   dynamic_linker="$host_os ld.so"
20819   shlibpath_var=LIBRARY_PATH
20820   ;;
20821
20822 bsdi[45]*)
20823   version_type=linux
20824   need_version=no
20825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826   soname_spec='${libname}${release}${shared_ext}$major'
20827   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20828   shlibpath_var=LD_LIBRARY_PATH
20829   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20830   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20831   # the default ld.so.conf also contains /usr/contrib/lib and
20832   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20833   # libtool to hard-code these into programs
20834   ;;
20835
20836 cygwin* | mingw* | pw32* | cegcc*)
20837   version_type=windows
20838   shrext_cmds=".dll"
20839   need_version=no
20840   need_lib_prefix=no
20841
20842   case $GCC,$host_os in
20843   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20844     library_names_spec='$libname.dll.a'
20845     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20846     postinstall_cmds='base_file=`basename \${file}`~
20847       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20848       dldir=$destdir/`dirname \$dlpath`~
20849       test -d \$dldir || mkdir -p \$dldir~
20850       $install_prog $dir/$dlname \$dldir/$dlname~
20851       chmod a+x \$dldir/$dlname~
20852       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20853         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20854       fi'
20855     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20856       dlpath=$dir/\$dldll~
20857        $RM \$dlpath'
20858     shlibpath_overrides_runpath=yes
20859
20860     case $host_os in
20861     cygwin*)
20862       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20863       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20864
20865       ;;
20866     mingw* | cegcc*)
20867       # MinGW DLLs use traditional 'lib' prefix
20868       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20869       ;;
20870     pw32*)
20871       # pw32 DLLs use 'pw' prefix rather than 'lib'
20872       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20873       ;;
20874     esac
20875     ;;
20876
20877   *)
20878     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20879     ;;
20880   esac
20881   dynamic_linker='Win32 ld.exe'
20882   # FIXME: first we should search . and the directory the executable is in
20883   shlibpath_var=PATH
20884   ;;
20885
20886 darwin* | rhapsody*)
20887   dynamic_linker="$host_os dyld"
20888   version_type=darwin
20889   need_lib_prefix=no
20890   need_version=no
20891   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20892   soname_spec='${libname}${release}${major}$shared_ext'
20893   shlibpath_overrides_runpath=yes
20894   shlibpath_var=DYLD_LIBRARY_PATH
20895   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20896
20897   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20898   ;;
20899
20900 dgux*)
20901   version_type=linux
20902   need_lib_prefix=no
20903   need_version=no
20904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20905   soname_spec='${libname}${release}${shared_ext}$major'
20906   shlibpath_var=LD_LIBRARY_PATH
20907   ;;
20908
20909 freebsd* | dragonfly*)
20910   # DragonFly does not have aout.  When/if they implement a new
20911   # versioning mechanism, adjust this.
20912   if test -x /usr/bin/objformat; then
20913     objformat=`/usr/bin/objformat`
20914   else
20915     case $host_os in
20916     freebsd[23].*) objformat=aout ;;
20917     *) objformat=elf ;;
20918     esac
20919   fi
20920   version_type=freebsd-$objformat
20921   case $version_type in
20922     freebsd-elf*)
20923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20924       need_version=no
20925       need_lib_prefix=no
20926       ;;
20927     freebsd-*)
20928       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20929       need_version=yes
20930       ;;
20931   esac
20932   shlibpath_var=LD_LIBRARY_PATH
20933   case $host_os in
20934   freebsd2.*)
20935     shlibpath_overrides_runpath=yes
20936     ;;
20937   freebsd3.[01]* | freebsdelf3.[01]*)
20938     shlibpath_overrides_runpath=yes
20939     hardcode_into_libs=yes
20940     ;;
20941   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20942   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20943     shlibpath_overrides_runpath=no
20944     hardcode_into_libs=yes
20945     ;;
20946   *) # from 4.6 on, and DragonFly
20947     shlibpath_overrides_runpath=yes
20948     hardcode_into_libs=yes
20949     ;;
20950   esac
20951   ;;
20952
20953 gnu*)
20954   version_type=linux
20955   need_lib_prefix=no
20956   need_version=no
20957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20958   soname_spec='${libname}${release}${shared_ext}$major'
20959   shlibpath_var=LD_LIBRARY_PATH
20960   hardcode_into_libs=yes
20961   ;;
20962
20963 haiku*)
20964   version_type=linux
20965   need_lib_prefix=no
20966   need_version=no
20967   dynamic_linker="$host_os runtime_loader"
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   shlibpath_var=LIBRARY_PATH
20971   shlibpath_overrides_runpath=yes
20972   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20973   hardcode_into_libs=yes
20974   ;;
20975
20976 hpux9* | hpux10* | hpux11*)
20977   # Give a soname corresponding to the major version so that dld.sl refuses to
20978   # link against other versions.
20979   version_type=sunos
20980   need_lib_prefix=no
20981   need_version=no
20982   case $host_cpu in
20983   ia64*)
20984     shrext_cmds='.so'
20985     hardcode_into_libs=yes
20986     dynamic_linker="$host_os dld.so"
20987     shlibpath_var=LD_LIBRARY_PATH
20988     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990     soname_spec='${libname}${release}${shared_ext}$major'
20991     if test "X$HPUX_IA64_MODE" = X32; then
20992       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20993     else
20994       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20995     fi
20996     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20997     ;;
20998   hppa*64*)
20999     shrext_cmds='.sl'
21000     hardcode_into_libs=yes
21001     dynamic_linker="$host_os dld.sl"
21002     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21003     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005     soname_spec='${libname}${release}${shared_ext}$major'
21006     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21007     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21008     ;;
21009   *)
21010     shrext_cmds='.sl'
21011     dynamic_linker="$host_os dld.sl"
21012     shlibpath_var=SHLIB_PATH
21013     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21015     soname_spec='${libname}${release}${shared_ext}$major'
21016     ;;
21017   esac
21018   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21019   postinstall_cmds='chmod 555 $lib'
21020   # or fails outright, so override atomically:
21021   install_override_mode=555
21022   ;;
21023
21024 interix[3-9]*)
21025   version_type=linux
21026   need_lib_prefix=no
21027   need_version=no
21028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21029   soname_spec='${libname}${release}${shared_ext}$major'
21030   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21031   shlibpath_var=LD_LIBRARY_PATH
21032   shlibpath_overrides_runpath=no
21033   hardcode_into_libs=yes
21034   ;;
21035
21036 irix5* | irix6* | nonstopux*)
21037   case $host_os in
21038     nonstopux*) version_type=nonstopux ;;
21039     *)
21040         if test "$lt_cv_prog_gnu_ld" = yes; then
21041                 version_type=linux
21042         else
21043                 version_type=irix
21044         fi ;;
21045   esac
21046   need_lib_prefix=no
21047   need_version=no
21048   soname_spec='${libname}${release}${shared_ext}$major'
21049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21050   case $host_os in
21051   irix5* | nonstopux*)
21052     libsuff= shlibsuff=
21053     ;;
21054   *)
21055     case $LD in # libtool.m4 will add one of these switches to LD
21056     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21057       libsuff= shlibsuff= libmagic=32-bit;;
21058     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21059       libsuff=32 shlibsuff=N32 libmagic=N32;;
21060     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21061       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21062     *) libsuff= shlibsuff= libmagic=never-match;;
21063     esac
21064     ;;
21065   esac
21066   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21067   shlibpath_overrides_runpath=no
21068   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21069   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21070   hardcode_into_libs=yes
21071   ;;
21072
21073 # No shared lib support for Linux oldld, aout, or coff.
21074 linux*oldld* | linux*aout* | linux*coff*)
21075   dynamic_linker=no
21076   ;;
21077
21078 # This must be Linux ELF.
21079 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21080   version_type=linux
21081   need_lib_prefix=no
21082   need_version=no
21083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21084   soname_spec='${libname}${release}${shared_ext}$major'
21085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21086   shlibpath_var=LD_LIBRARY_PATH
21087   shlibpath_overrides_runpath=no
21088
21089   # Some binutils ld are patched to set DT_RUNPATH
21090   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21091   $as_echo_n "(cached) " >&6
21092 else
21093   lt_cv_shlibpath_overrides_runpath=no
21094     save_LDFLAGS=$LDFLAGS
21095     save_libdir=$libdir
21096     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21097          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h.  */
21100
21101 int
21102 main ()
21103 {
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 if ac_fn_cxx_try_link "$LINENO"; then :
21110   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21111   lt_cv_shlibpath_overrides_runpath=yes
21112 fi
21113 fi
21114 rm -f core conftest.err conftest.$ac_objext \
21115     conftest$ac_exeext conftest.$ac_ext
21116     LDFLAGS=$save_LDFLAGS
21117     libdir=$save_libdir
21118
21119 fi
21120
21121   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21122
21123   # This implies no fast_install, which is unacceptable.
21124   # Some rework will be needed to allow for fast_install
21125   # before this can be enabled.
21126   hardcode_into_libs=yes
21127
21128   # Append ld.so.conf contents to the search path
21129   if test -f /etc/ld.so.conf; then
21130     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' ' '`
21131     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21132   fi
21133
21134   # We used to test for /lib/ld.so.1 and disable shared libraries on
21135   # powerpc, because MkLinux only supported shared libraries with the
21136   # GNU dynamic linker.  Since this was broken with cross compilers,
21137   # most powerpc-linux boxes support dynamic linking these days and
21138   # people can always --disable-shared, the test was removed, and we
21139   # assume the GNU/Linux dynamic linker is in use.
21140   dynamic_linker='GNU/Linux ld.so'
21141   ;;
21142
21143 netbsd*)
21144   version_type=sunos
21145   need_lib_prefix=no
21146   need_version=no
21147   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21149     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21150     dynamic_linker='NetBSD (a.out) ld.so'
21151   else
21152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21153     soname_spec='${libname}${release}${shared_ext}$major'
21154     dynamic_linker='NetBSD ld.elf_so'
21155   fi
21156   shlibpath_var=LD_LIBRARY_PATH
21157   shlibpath_overrides_runpath=yes
21158   hardcode_into_libs=yes
21159   ;;
21160
21161 newsos6)
21162   version_type=linux
21163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21164   shlibpath_var=LD_LIBRARY_PATH
21165   shlibpath_overrides_runpath=yes
21166   ;;
21167
21168 *nto* | *qnx*)
21169   version_type=qnx
21170   need_lib_prefix=no
21171   need_version=no
21172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21173   soname_spec='${libname}${release}${shared_ext}$major'
21174   shlibpath_var=LD_LIBRARY_PATH
21175   shlibpath_overrides_runpath=no
21176   hardcode_into_libs=yes
21177   dynamic_linker='ldqnx.so'
21178   ;;
21179
21180 openbsd*)
21181   version_type=sunos
21182   sys_lib_dlsearch_path_spec="/usr/lib"
21183   need_lib_prefix=no
21184   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21185   case $host_os in
21186     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21187     *)                          need_version=no  ;;
21188   esac
21189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21191   shlibpath_var=LD_LIBRARY_PATH
21192   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21193     case $host_os in
21194       openbsd2.[89] | openbsd2.[89].*)
21195         shlibpath_overrides_runpath=no
21196         ;;
21197       *)
21198         shlibpath_overrides_runpath=yes
21199         ;;
21200       esac
21201   else
21202     shlibpath_overrides_runpath=yes
21203   fi
21204   ;;
21205
21206 os2*)
21207   libname_spec='$name'
21208   shrext_cmds=".dll"
21209   need_lib_prefix=no
21210   library_names_spec='$libname${shared_ext} $libname.a'
21211   dynamic_linker='OS/2 ld.exe'
21212   shlibpath_var=LIBPATH
21213   ;;
21214
21215 osf3* | osf4* | osf5*)
21216   version_type=osf
21217   need_lib_prefix=no
21218   need_version=no
21219   soname_spec='${libname}${release}${shared_ext}$major'
21220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21221   shlibpath_var=LD_LIBRARY_PATH
21222   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21223   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21224   ;;
21225
21226 rdos*)
21227   dynamic_linker=no
21228   ;;
21229
21230 solaris*)
21231   version_type=linux
21232   need_lib_prefix=no
21233   need_version=no
21234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21235   soname_spec='${libname}${release}${shared_ext}$major'
21236   shlibpath_var=LD_LIBRARY_PATH
21237   shlibpath_overrides_runpath=yes
21238   hardcode_into_libs=yes
21239   # ldd complains unless libraries are executable
21240   postinstall_cmds='chmod +x $lib'
21241   ;;
21242
21243 sunos4*)
21244   version_type=sunos
21245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21246   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21247   shlibpath_var=LD_LIBRARY_PATH
21248   shlibpath_overrides_runpath=yes
21249   if test "$with_gnu_ld" = yes; then
21250     need_lib_prefix=no
21251   fi
21252   need_version=yes
21253   ;;
21254
21255 sysv4 | sysv4.3*)
21256   version_type=linux
21257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21258   soname_spec='${libname}${release}${shared_ext}$major'
21259   shlibpath_var=LD_LIBRARY_PATH
21260   case $host_vendor in
21261     sni)
21262       shlibpath_overrides_runpath=no
21263       need_lib_prefix=no
21264       runpath_var=LD_RUN_PATH
21265       ;;
21266     siemens)
21267       need_lib_prefix=no
21268       ;;
21269     motorola)
21270       need_lib_prefix=no
21271       need_version=no
21272       shlibpath_overrides_runpath=no
21273       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21274       ;;
21275   esac
21276   ;;
21277
21278 sysv4*MP*)
21279   if test -d /usr/nec ;then
21280     version_type=linux
21281     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21282     soname_spec='$libname${shared_ext}.$major'
21283     shlibpath_var=LD_LIBRARY_PATH
21284   fi
21285   ;;
21286
21287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21288   version_type=freebsd-elf
21289   need_lib_prefix=no
21290   need_version=no
21291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21292   soname_spec='${libname}${release}${shared_ext}$major'
21293   shlibpath_var=LD_LIBRARY_PATH
21294   shlibpath_overrides_runpath=yes
21295   hardcode_into_libs=yes
21296   if test "$with_gnu_ld" = yes; then
21297     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21298   else
21299     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21300     case $host_os in
21301       sco3.2v5*)
21302         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21303         ;;
21304     esac
21305   fi
21306   sys_lib_dlsearch_path_spec='/usr/lib'
21307   ;;
21308
21309 tpf*)
21310   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21311   version_type=linux
21312   need_lib_prefix=no
21313   need_version=no
21314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21315   shlibpath_var=LD_LIBRARY_PATH
21316   shlibpath_overrides_runpath=no
21317   hardcode_into_libs=yes
21318   ;;
21319
21320 uts4*)
21321   version_type=linux
21322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21323   soname_spec='${libname}${release}${shared_ext}$major'
21324   shlibpath_var=LD_LIBRARY_PATH
21325   ;;
21326
21327 *)
21328   dynamic_linker=no
21329   ;;
21330 esac
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21332 $as_echo "$dynamic_linker" >&6; }
21333 test "$dynamic_linker" = no && can_build_shared=no
21334
21335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21336 if test "$GCC" = yes; then
21337   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21338 fi
21339
21340 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21341   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21342 fi
21343 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21344   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21345 fi
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21385 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21386 hardcode_action_CXX=
21387 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21388    test -n "$runpath_var_CXX" ||
21389    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21390
21391   # We can hardcode non-existent directories.
21392   if test "$hardcode_direct_CXX" != no &&
21393      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21394      # have to relink, otherwise we might link with an installed library
21395      # when we should be linking with a yet-to-be-installed one
21396      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21397      test "$hardcode_minus_L_CXX" != no; then
21398     # Linking always hardcodes the temporary library directory.
21399     hardcode_action_CXX=relink
21400   else
21401     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21402     hardcode_action_CXX=immediate
21403   fi
21404 else
21405   # We cannot hardcode anything, or else we can only hardcode existing
21406   # directories.
21407   hardcode_action_CXX=unsupported
21408 fi
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21410 $as_echo "$hardcode_action_CXX" >&6; }
21411
21412 if test "$hardcode_action_CXX" = relink ||
21413    test "$inherit_rpath_CXX" = yes; then
21414   # Fast installation is not supported
21415   enable_fast_install=no
21416 elif test "$shlibpath_overrides_runpath" = yes ||
21417      test "$enable_shared" = no; then
21418   # Fast installation is not necessary
21419   enable_fast_install=needless
21420 fi
21421
21422
21423
21424
21425
21426
21427
21428   fi # test -n "$compiler"
21429
21430   CC=$lt_save_CC
21431   LDCXX=$LD
21432   LD=$lt_save_LD
21433   GCC=$lt_save_GCC
21434   with_gnu_ld=$lt_save_with_gnu_ld
21435   lt_cv_path_LDCXX=$lt_cv_path_LD
21436   lt_cv_path_LD=$lt_save_path_LD
21437   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21438   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21439 fi # test "$_lt_caught_CXX_error" != yes
21440
21441 ac_ext=c
21442 ac_cpp='$CPP $CPPFLAGS'
21443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462 # Only expand once:
21463
21464
21465
21466
21467
21468 # Identify the assembler which will work hand-in-glove with the newly
21469 # built GCC, so that we can examine its features.  This is the assembler
21470 # which will be driven by the driver program.
21471 #
21472 # If build != host, and we aren't building gas in-tree, we identify a
21473 # build->target assembler and hope that it will have the same features
21474 # as the host->target assembler we'll be using.
21475 gcc_cv_gas_major_version=
21476 gcc_cv_gas_minor_version=
21477 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21478
21479 if test "${gcc_cv_as+set}" = set; then :
21480
21481 else
21482
21483 if test -x "$DEFAULT_ASSEMBLER"; then
21484         gcc_cv_as="$DEFAULT_ASSEMBLER"
21485 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21486      && test -f ../gas/Makefile \
21487      && test x$build = x$host; then
21488         gcc_cv_as=../gas/as-new$build_exeext
21489 elif test -x as$build_exeext; then
21490         # Build using assembler in the current directory.
21491         gcc_cv_as=./as$build_exeext
21492 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21493         gcc_cv_as="$AS_FOR_TARGET"
21494 else
21495         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21496 set dummy $AS_FOR_TARGET; ac_word=$2
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21498 $as_echo_n "checking for $ac_word... " >&6; }
21499 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21500   $as_echo_n "(cached) " >&6
21501 else
21502   case $gcc_cv_as in
21503   [\\/]* | ?:[\\/]*)
21504   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21505   ;;
21506   *)
21507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21508 for as_dir in $PATH
21509 do
21510   IFS=$as_save_IFS
21511   test -z "$as_dir" && as_dir=.
21512     for ac_exec_ext in '' $ac_executable_extensions; do
21513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21514     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21516     break 2
21517   fi
21518 done
21519   done
21520 IFS=$as_save_IFS
21521
21522   ;;
21523 esac
21524 fi
21525 gcc_cv_as=$ac_cv_path_gcc_cv_as
21526 if test -n "$gcc_cv_as"; then
21527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21528 $as_echo "$gcc_cv_as" >&6; }
21529 else
21530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21531 $as_echo "no" >&6; }
21532 fi
21533
21534
21535 fi
21536 fi
21537
21538 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21539
21540 case "$ORIGINAL_AS_FOR_TARGET" in
21541   ./as | ./as$build_exeext) ;;
21542   *) ac_config_files="$ac_config_files as:exec-tool.in"
21543  ;;
21544 esac
21545
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21547 $as_echo_n "checking what assembler to use... " >&6; }
21548 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21549   # Single tree build which includes gas.  We want to prefer it
21550   # over whatever linker top-level may have detected, since
21551   # we'll use what we're building after installation anyway.
21552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21553 $as_echo "newly built gas" >&6; }
21554   in_tree_gas=yes
21555   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21556 for f in $gcc_cv_as_bfd_srcdir/configure \
21557          $gcc_cv_as_gas_srcdir/configure \
21558          $gcc_cv_as_gas_srcdir/configure.in \
21559          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21560   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21561   if test x$gcc_cv_gas_version != x; then
21562     break
21563   fi
21564 done
21565 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21566 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21567 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21568 case $gcc_cv_gas_patch_version in
21569   "") gcc_cv_gas_patch_version="0" ;;
21570 esac
21571 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21572                             + $gcc_cv_gas_minor_version \) \* 1000 \
21573                             + $gcc_cv_gas_patch_version`
21574
21575   in_tree_gas_is_elf=no
21576   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21577      || (grep 'obj_format = multi' ../gas/Makefile \
21578          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21579   then
21580     in_tree_gas_is_elf=yes
21581   fi
21582 else
21583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21584 $as_echo "$gcc_cv_as" >&6; }
21585   in_tree_gas=no
21586 fi
21587
21588 # Identify the linker which will work hand-in-glove with the newly
21589 # built GCC, so that we can examine its features.  This is the linker
21590 # which will be driven by the driver program.
21591 #
21592 # If build != host, and we aren't building gas in-tree, we identify a
21593 # build->target linker and hope that it will have the same features
21594 # as the host->target linker we'll be using.
21595 gcc_cv_gld_major_version=
21596 gcc_cv_gld_minor_version=
21597 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21598 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21599
21600 if test "${gcc_cv_ld+set}" = set; then :
21601
21602 else
21603
21604 if test -x "$DEFAULT_LINKER"; then
21605         gcc_cv_ld="$DEFAULT_LINKER"
21606 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21607      && test -f ../ld/Makefile \
21608      && test x$build = x$host; then
21609         gcc_cv_ld=../ld/ld-new$build_exeext
21610 elif test -x collect-ld$build_exeext; then
21611         # Build using linker in the current directory.
21612         gcc_cv_ld=./collect-ld$build_exeext
21613 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21614         gcc_cv_ld="$LD_FOR_TARGET"
21615 else
21616         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21617 set dummy $LD_FOR_TARGET; ac_word=$2
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21619 $as_echo_n "checking for $ac_word... " >&6; }
21620 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21621   $as_echo_n "(cached) " >&6
21622 else
21623   case $gcc_cv_ld in
21624   [\\/]* | ?:[\\/]*)
21625   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21626   ;;
21627   *)
21628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629 for as_dir in $PATH
21630 do
21631   IFS=$as_save_IFS
21632   test -z "$as_dir" && as_dir=.
21633     for ac_exec_ext in '' $ac_executable_extensions; do
21634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21635     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21637     break 2
21638   fi
21639 done
21640   done
21641 IFS=$as_save_IFS
21642
21643   ;;
21644 esac
21645 fi
21646 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21647 if test -n "$gcc_cv_ld"; then
21648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21649 $as_echo "$gcc_cv_ld" >&6; }
21650 else
21651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21652 $as_echo "no" >&6; }
21653 fi
21654
21655
21656 fi
21657 fi
21658
21659 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21660 PLUGIN_LD=`basename $gcc_cv_ld`
21661
21662 # Check whether --with-plugin-ld was given.
21663 if test "${with_plugin_ld+set}" = set; then :
21664   withval=$with_plugin_ld; if test x"$withval" != x; then
21665    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21666    PLUGIN_LD="$withval"
21667  fi
21668 fi
21669
21670
21671
21672 cat >>confdefs.h <<_ACEOF
21673 #define PLUGIN_LD "$PLUGIN_LD"
21674 _ACEOF
21675
21676
21677 # Check to see if we are using gold instead of ld
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21679 $as_echo_n "checking whether we are using gold... " >&6; }
21680 ld_is_gold=no
21681 if test x$gcc_cv_ld != x; then
21682   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21683      | grep "GNU gold" > /dev/null; then
21684     ld_is_gold=yes
21685   fi
21686 fi
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21688 $as_echo "$ld_is_gold" >&6; }
21689
21690 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21691
21692 case "$ORIGINAL_LD_FOR_TARGET" in
21693   ./collect-ld | ./collect-ld$build_exeext) ;;
21694   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21695  ;;
21696 esac
21697
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21699 $as_echo_n "checking what linker to use... " >&6; }
21700 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21701    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21702         # Single tree build which includes ld.  We want to prefer it
21703         # over whatever linker top-level may have detected, since
21704         # we'll use what we're building after installation anyway.
21705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21706 $as_echo "newly built ld" >&6; }
21707         in_tree_ld=yes
21708         in_tree_ld_is_elf=no
21709         if (grep 'EMUL = .*elf' ../ld/Makefile \
21710             || grep 'EMUL = .*linux' ../ld/Makefile \
21711             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21712           in_tree_ld_is_elf=yes
21713         elif test "$ld_is_gold" = yes; then
21714           in_tree_ld_is_elf=yes
21715         fi
21716         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
21717         do
21718                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21719                 if test x$gcc_cv_gld_version != x; then
21720                         break
21721                 fi
21722         done
21723         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21724         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21725 else
21726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21727 $as_echo "$gcc_cv_ld" >&6; }
21728         in_tree_ld=no
21729 fi
21730
21731 # Figure out what nm we will be using.
21732 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21733 if test "${gcc_cv_nm+set}" = set; then :
21734
21735 else
21736
21737 if test -f $gcc_cv_binutils_srcdir/configure.in \
21738      && test -f ../binutils/Makefile \
21739      && test x$build = x$host; then
21740         gcc_cv_nm=../binutils/nm-new$build_exeext
21741 elif test -x nm$build_exeext; then
21742         gcc_cv_nm=./nm$build_exeext
21743 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21744         gcc_cv_nm="$NM_FOR_TARGET"
21745 else
21746         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21747 set dummy $NM_FOR_TARGET; ac_word=$2
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21749 $as_echo_n "checking for $ac_word... " >&6; }
21750 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21751   $as_echo_n "(cached) " >&6
21752 else
21753   case $gcc_cv_nm in
21754   [\\/]* | ?:[\\/]*)
21755   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21756   ;;
21757   *)
21758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21759 for as_dir in $PATH
21760 do
21761   IFS=$as_save_IFS
21762   test -z "$as_dir" && as_dir=.
21763     for ac_exec_ext in '' $ac_executable_extensions; do
21764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21765     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21767     break 2
21768   fi
21769 done
21770   done
21771 IFS=$as_save_IFS
21772
21773   ;;
21774 esac
21775 fi
21776 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21777 if test -n "$gcc_cv_nm"; then
21778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21779 $as_echo "$gcc_cv_nm" >&6; }
21780 else
21781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21782 $as_echo "no" >&6; }
21783 fi
21784
21785
21786 fi
21787 fi
21788
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21790 $as_echo_n "checking what nm to use... " >&6; }
21791 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21792         # Single tree build which includes binutils.
21793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21794 $as_echo "newly built nm" >&6; }
21795         in_tree_nm=yes
21796 else
21797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21798 $as_echo "$gcc_cv_nm" >&6; }
21799         in_tree_nm=no
21800 fi
21801
21802 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21803
21804 case "$ORIGINAL_NM_FOR_TARGET" in
21805   ./nm | ./nm$build_exeext) ;;
21806   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21807  ;;
21808 esac
21809
21810
21811 # Figure out what objdump we will be using.
21812 if test "${gcc_cv_objdump+set}" = set; then :
21813
21814 else
21815
21816 if test -f $gcc_cv_binutils_srcdir/configure.in \
21817      && test -f ../binutils/Makefile \
21818      && test x$build = x$host; then
21819         # Single tree build which includes binutils.
21820         gcc_cv_objdump=../binutils/objdump$build_exeext
21821 elif test -x objdump$build_exeext; then
21822         gcc_cv_objdump=./objdump$build_exeext
21823 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21824         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21825 else
21826         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21827 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21829 $as_echo_n "checking for $ac_word... " >&6; }
21830 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21831   $as_echo_n "(cached) " >&6
21832 else
21833   case $gcc_cv_objdump in
21834   [\\/]* | ?:[\\/]*)
21835   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21836   ;;
21837   *)
21838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21839 for as_dir in $PATH
21840 do
21841   IFS=$as_save_IFS
21842   test -z "$as_dir" && as_dir=.
21843     for ac_exec_ext in '' $ac_executable_extensions; do
21844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21845     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21847     break 2
21848   fi
21849 done
21850   done
21851 IFS=$as_save_IFS
21852
21853   ;;
21854 esac
21855 fi
21856 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21857 if test -n "$gcc_cv_objdump"; then
21858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21859 $as_echo "$gcc_cv_objdump" >&6; }
21860 else
21861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21862 $as_echo "no" >&6; }
21863 fi
21864
21865
21866 fi
21867 fi
21868
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21870 $as_echo_n "checking what objdump to use... " >&6; }
21871 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21872         # Single tree build which includes binutils.
21873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21874 $as_echo "newly built objdump" >&6; }
21875 elif test x$gcc_cv_objdump = x; then
21876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21877 $as_echo "not found" >&6; }
21878 else
21879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21880 $as_echo "$gcc_cv_objdump" >&6; }
21881 fi
21882
21883 # Figure out what readelf we will be using.
21884 if test "${gcc_cv_readelf+set}" = set; then :
21885
21886 else
21887
21888 if test -f $gcc_cv_binutils_srcdir/configure.in \
21889      && test -f ../binutils/Makefile \
21890      && test x$build = x$host; then
21891         # Single tree build which includes binutils.
21892         gcc_cv_readelf=../binutils/readelf$build_exeext
21893 elif test -x readelf$build_exeext; then
21894         gcc_cv_readelf=./readelf$build_exeext
21895 else
21896         # Extract the first word of "readelf", so it can be a program name with args.
21897 set dummy readelf; ac_word=$2
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21899 $as_echo_n "checking for $ac_word... " >&6; }
21900 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21901   $as_echo_n "(cached) " >&6
21902 else
21903   case $gcc_cv_readelf in
21904   [\\/]* | ?:[\\/]*)
21905   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21906   ;;
21907   *)
21908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21909 for as_dir in $PATH
21910 do
21911   IFS=$as_save_IFS
21912   test -z "$as_dir" && as_dir=.
21913     for ac_exec_ext in '' $ac_executable_extensions; do
21914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21915     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21917     break 2
21918   fi
21919 done
21920   done
21921 IFS=$as_save_IFS
21922
21923   ;;
21924 esac
21925 fi
21926 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21927 if test -n "$gcc_cv_readelf"; then
21928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21929 $as_echo "$gcc_cv_readelf" >&6; }
21930 else
21931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21932 $as_echo "no" >&6; }
21933 fi
21934
21935
21936 fi
21937 fi
21938
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21940 $as_echo_n "checking what readelf to use... " >&6; }
21941 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21942         # Single tree build which includes binutils.
21943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21944 $as_echo "newly built readelf" >&6; }
21945 elif test x$gcc_cv_readelf = x; then
21946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21947 $as_echo "not found" >&6; }
21948 else
21949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21950 $as_echo "$gcc_cv_readelf" >&6; }
21951 fi
21952
21953 # Figure out what assembler alignment features are present.
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21955 $as_echo_n "checking assembler flags... " >&6; }
21956 if test "${gcc_cv_as_flags+set}" = set; then :
21957   $as_echo_n "(cached) " >&6
21958 else
21959    case "$target" in
21960   i[34567]86-*-linux*)
21961         gcc_cv_as_flags="--32"
21962     ;;
21963   powerpc*-*-darwin*)
21964         gcc_cv_as_flags="-arch ppc"
21965     ;;
21966   *)
21967     gcc_cv_as_flags=" "
21968     ;;
21969   esac
21970 fi
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21972 $as_echo "$gcc_cv_as_flags" >&6; }
21973
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21975 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21976 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21977   $as_echo_n "(cached) " >&6
21978 else
21979   gcc_cv_as_balign_and_p2align=no
21980     if test $in_tree_gas = yes; then
21981     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21982   then gcc_cv_as_balign_and_p2align=yes
21983 fi
21984   elif test x$gcc_cv_as != x; then
21985     $as_echo '.balign 4
21986 .p2align 2' > conftest.s
21987     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21988   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21989   (eval $ac_try) 2>&5
21990   ac_status=$?
21991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21992   test $ac_status = 0; }; }
21993     then
21994         gcc_cv_as_balign_and_p2align=yes
21995     else
21996       echo "configure: failed program was" >&5
21997       cat conftest.s >&5
21998     fi
21999     rm -f conftest.o conftest.s
22000   fi
22001 fi
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22003 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22004 if test $gcc_cv_as_balign_and_p2align = yes; then
22005
22006 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22007
22008 fi
22009
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22011 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22012 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22013   $as_echo_n "(cached) " >&6
22014 else
22015   gcc_cv_as_max_skip_p2align=no
22016     if test $in_tree_gas = yes; then
22017     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22018   then gcc_cv_as_max_skip_p2align=yes
22019 fi
22020   elif test x$gcc_cv_as != x; then
22021     $as_echo '.p2align 4,,7' > conftest.s
22022     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22023   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22024   (eval $ac_try) 2>&5
22025   ac_status=$?
22026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22027   test $ac_status = 0; }; }
22028     then
22029         gcc_cv_as_max_skip_p2align=yes
22030     else
22031       echo "configure: failed program was" >&5
22032       cat conftest.s >&5
22033     fi
22034     rm -f conftest.o conftest.s
22035   fi
22036 fi
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22038 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22039 if test $gcc_cv_as_max_skip_p2align = yes; then
22040
22041 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22042
22043 fi
22044
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22046 $as_echo_n "checking assembler for .literal16... " >&6; }
22047 if test "${gcc_cv_as_literal16+set}" = set; then :
22048   $as_echo_n "(cached) " >&6
22049 else
22050   gcc_cv_as_literal16=no
22051     if test $in_tree_gas = yes; then
22052     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22053   then gcc_cv_as_literal16=yes
22054 fi
22055   elif test x$gcc_cv_as != x; then
22056     $as_echo '.literal16' > conftest.s
22057     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22058   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22059   (eval $ac_try) 2>&5
22060   ac_status=$?
22061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22062   test $ac_status = 0; }; }
22063     then
22064         gcc_cv_as_literal16=yes
22065     else
22066       echo "configure: failed program was" >&5
22067       cat conftest.s >&5
22068     fi
22069     rm -f conftest.o conftest.s
22070   fi
22071 fi
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22073 $as_echo "$gcc_cv_as_literal16" >&6; }
22074 if test $gcc_cv_as_literal16 = yes; then
22075
22076 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22077
22078 fi
22079
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22081 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22082 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22083   $as_echo_n "(cached) " >&6
22084 else
22085   gcc_cv_as_subsection_m1=no
22086     if test $in_tree_gas = yes; then
22087     if test $in_tree_gas_is_elf = yes \
22088   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22089   then gcc_cv_as_subsection_m1=yes
22090 fi
22091   elif test x$gcc_cv_as != x; then
22092     $as_echo 'conftest_label1: .word 0
22093 .subsection -1
22094 conftest_label2: .word 0
22095 .previous' > conftest.s
22096     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22097   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22098   (eval $ac_try) 2>&5
22099   ac_status=$?
22100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22101   test $ac_status = 0; }; }
22102     then
22103         if test x$gcc_cv_nm != x; then
22104     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22105     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22106     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22107     then :
22108     else gcc_cv_as_subsection_m1=yes
22109     fi
22110     rm -f conftest.nm1 conftest.nm2
22111   fi
22112     else
22113       echo "configure: failed program was" >&5
22114       cat conftest.s >&5
22115     fi
22116     rm -f conftest.o conftest.s
22117   fi
22118 fi
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22120 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22121 if test $gcc_cv_as_subsection_m1 = yes; then
22122
22123 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22124
22125 fi
22126
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22128 $as_echo_n "checking assembler for .weak... " >&6; }
22129 if test "${gcc_cv_as_weak+set}" = set; then :
22130   $as_echo_n "(cached) " >&6
22131 else
22132   gcc_cv_as_weak=no
22133     if test $in_tree_gas = yes; then
22134     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22135   then gcc_cv_as_weak=yes
22136 fi
22137   elif test x$gcc_cv_as != x; then
22138     $as_echo '  .weak foobar' > conftest.s
22139     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22140   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22141   (eval $ac_try) 2>&5
22142   ac_status=$?
22143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22144   test $ac_status = 0; }; }
22145     then
22146         gcc_cv_as_weak=yes
22147     else
22148       echo "configure: failed program was" >&5
22149       cat conftest.s >&5
22150     fi
22151     rm -f conftest.o conftest.s
22152   fi
22153 fi
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22155 $as_echo "$gcc_cv_as_weak" >&6; }
22156 if test $gcc_cv_as_weak = yes; then
22157
22158 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22159
22160 fi
22161
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22163 $as_echo_n "checking assembler for .weakref... " >&6; }
22164 if test "${gcc_cv_as_weakref+set}" = set; then :
22165   $as_echo_n "(cached) " >&6
22166 else
22167   gcc_cv_as_weakref=no
22168     if test $in_tree_gas = yes; then
22169     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22170   then gcc_cv_as_weakref=yes
22171 fi
22172   elif test x$gcc_cv_as != x; then
22173     $as_echo '  .weakref foobar, barfnot' > conftest.s
22174     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22175   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22176   (eval $ac_try) 2>&5
22177   ac_status=$?
22178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22179   test $ac_status = 0; }; }
22180     then
22181         gcc_cv_as_weakref=yes
22182     else
22183       echo "configure: failed program was" >&5
22184       cat conftest.s >&5
22185     fi
22186     rm -f conftest.o conftest.s
22187   fi
22188 fi
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22190 $as_echo "$gcc_cv_as_weakref" >&6; }
22191 if test $gcc_cv_as_weakref = yes; then
22192
22193 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22194
22195 fi
22196
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22198 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22199 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22200   $as_echo_n "(cached) " >&6
22201 else
22202   gcc_cv_as_nsubspa_comdat=no
22203     if test $in_tree_gas = yes; then
22204     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22205   then gcc_cv_as_nsubspa_comdat=yes
22206 fi
22207   elif test x$gcc_cv_as != x; then
22208     $as_echo '  .SPACE $TEXT$
22209         .NSUBSPA $CODE$,COMDAT' > conftest.s
22210     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22211   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22215   test $ac_status = 0; }; }
22216     then
22217         gcc_cv_as_nsubspa_comdat=yes
22218     else
22219       echo "configure: failed program was" >&5
22220       cat conftest.s >&5
22221     fi
22222     rm -f conftest.o conftest.s
22223   fi
22224 fi
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22226 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22227 if test $gcc_cv_as_nsubspa_comdat = yes; then
22228
22229 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22230
22231 fi
22232
22233 # .hidden needs to be supported in both the assembler and the linker,
22234 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22235 # This is irritatingly difficult to feature test for; we have to check the
22236 # date string after the version number.  If we've got an in-tree
22237 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22238 # to be safe.
22239 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22241 $as_echo_n "checking assembler for .hidden... " >&6; }
22242 if test "${gcc_cv_as_hidden+set}" = set; then :
22243   $as_echo_n "(cached) " >&6
22244 else
22245   gcc_cv_as_hidden=no
22246     if test $in_tree_gas = yes; then
22247     if test $in_tree_gas_is_elf = yes \
22248   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22249   then gcc_cv_as_hidden=yes
22250 fi
22251   elif test x$gcc_cv_as != x; then
22252     $as_echo '  .hidden foobar
22253 foobar:' > conftest.s
22254     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22255   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22256   (eval $ac_try) 2>&5
22257   ac_status=$?
22258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22259   test $ac_status = 0; }; }
22260     then
22261
22262 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22263 # STV_HIDDEN, so disable .hidden support if so.
22264 case "${target}" in
22265   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22266     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22267       cat > conftest.s <<EOF
22268 .globl hidden
22269         .hidden hidden
22270 hidden:
22271 .globl default
22272         .set    default,hidden
22273 EOF
22274       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22275         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22276         grep '\.hidden default' > /dev/null; then
22277         gcc_cv_as_hidden=no
22278       else
22279         gcc_cv_as_hidden=yes
22280       fi
22281     else
22282       # Assume bug is present if objdump is missing.
22283       gcc_cv_as_hidden=no
22284     fi
22285     ;;
22286   *)
22287     gcc_cv_as_hidden=yes
22288     ;;
22289 esac
22290     else
22291       echo "configure: failed program was" >&5
22292       cat conftest.s >&5
22293     fi
22294     rm -f conftest.o conftest.s
22295   fi
22296 fi
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22298 $as_echo "$gcc_cv_as_hidden" >&6; }
22299
22300 case "${target}" in
22301   *-*-darwin*)
22302     # Darwin as has some visibility support, though with a different syntax.
22303     gcc_cv_as_hidden=yes
22304     ;;
22305 esac
22306
22307 # gnu_indirect_function type is an extension proposed at
22308 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22309 # selection of function implementation
22310 # Check whether --enable-gnu-indirect-function was given.
22311 if test "${enable_gnu_indirect_function+set}" = set; then :
22312   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22313     yes | no) ;;
22314     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22315 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22316   esac
22317 else
22318   enable_gnu_indirect_function="$default_gnu_indirect_function"
22319 fi
22320
22321 if test x$enable_gnu_indirect_function = xyes; then
22322
22323 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22324
22325 fi
22326
22327 if test $in_tree_ld != yes ; then
22328   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22329   if echo "$ld_ver" | grep GNU > /dev/null; then
22330     if test x"$ld_is_gold" = xyes; then
22331       # GNU gold --version looks like this:
22332       #
22333       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22334       #
22335       # We extract the binutils version which is more familiar and specific
22336       # than the gold version.
22337       ld_vers=`echo $ld_ver | sed -n \
22338           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22339     else
22340       # GNU ld --version looks like this:
22341       #
22342       # GNU ld (GNU Binutils) 2.21.51.20110225
22343       ld_vers=`echo $ld_ver | sed -n \
22344           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22345     fi
22346     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'`
22347     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22348     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22349     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22350   else
22351     case "${target}" in
22352       *-*-solaris2*)
22353         #
22354         # Solaris 2 ld -V output looks like this for a regular version:
22355         #
22356         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22357         #
22358         # but test versions add stuff at the end:
22359         #
22360         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22361         #
22362         ld_ver=`$gcc_cv_ld -V 2>&1`
22363         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22364           ld_vers=`echo $ld_ver | sed -n \
22365             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22366           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22367           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22368         fi
22369         ;;
22370     esac
22371   fi
22372 fi
22373
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22375 $as_echo_n "checking linker for .hidden support... " >&6; }
22376 if test "${gcc_cv_ld_hidden+set}" = set; then :
22377   $as_echo_n "(cached) " >&6
22378 else
22379   if test $in_tree_ld = yes ; then
22380   gcc_cv_ld_hidden=no
22381   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 \
22382      && test $in_tree_ld_is_elf = yes; then
22383      gcc_cv_ld_hidden=yes
22384   fi
22385 else
22386   gcc_cv_ld_hidden=yes
22387   if test x"$ld_is_gold" = xyes; then
22388     :
22389   elif echo "$ld_ver" | grep GNU > /dev/null; then
22390     if test 0"$ld_date" -lt 20020404; then
22391       if test -n "$ld_date"; then
22392         # If there was date string, but was earlier than 2002-04-04, fail
22393         gcc_cv_ld_hidden=no
22394       elif test -z "$ld_vers"; then
22395         # If there was no date string nor ld version number, something is wrong
22396         gcc_cv_ld_hidden=no
22397       else
22398         test -z "$ld_vers_patch" && ld_vers_patch=0
22399         if test "$ld_vers_major" -lt 2; then
22400           gcc_cv_ld_hidden=no
22401         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22402           gcc_cv_ld_hidden="no"
22403         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22404           gcc_cv_ld_hidden=no
22405         fi
22406       fi
22407     fi
22408   else
22409     case "${target}" in
22410       *-*-darwin*)
22411         # Darwin ld has some visibility support.
22412         gcc_cv_ld_hidden=yes
22413         ;;
22414       hppa64*-*-hpux* | ia64*-*-hpux*)
22415         gcc_cv_ld_hidden=yes
22416         ;;
22417       *-*-solaris2.8*)
22418         # .hidden support was backported to Solaris 8, starting with ld
22419         # version 1.276.
22420         if test "$ld_vers_minor" -ge 276; then
22421           gcc_cv_ld_hidden=yes
22422         else
22423           gcc_cv_ld_hidden=no
22424         fi
22425         ;;
22426       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22427         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22428         # .symbolic was only added in Solaris 9 12/02.
22429         gcc_cv_ld_hidden=yes
22430         ;;
22431       *)
22432         gcc_cv_ld_hidden=no
22433         ;;
22434     esac
22435   fi
22436 fi
22437 fi
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22439 $as_echo "$gcc_cv_ld_hidden" >&6; }
22440 libgcc_visibility=no
22441
22442
22443 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22444   libgcc_visibility=yes
22445
22446 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22447
22448 fi
22449
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22451 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22452 gcc_cv_ld_ro_rw_mix=unknown
22453 if test $in_tree_ld = yes ; then
22454   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 \
22455      && test $in_tree_ld_is_elf = yes; then
22456     gcc_cv_ld_ro_rw_mix=read-write
22457   fi
22458 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22459   echo '.section myfoosect, "a"' > conftest1.s
22460   echo '.section myfoosect, "aw"' > conftest2.s
22461   echo '.byte 1' >> conftest2.s
22462   echo '.section myfoosect, "a"' > conftest3.s
22463   echo '.byte 0' >> conftest3.s
22464   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22465      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22466      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22467      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22468         conftest2.o conftest3.o > /dev/null 2>&1; then
22469     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22470                          | sed -e '/myfoosect/!d' -e N`
22471     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22472       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22473         gcc_cv_ld_ro_rw_mix=read-only
22474       else
22475         gcc_cv_ld_ro_rw_mix=read-write
22476       fi
22477     fi
22478   fi
22479   rm -f conftest.* conftest[123].*
22480 fi
22481 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22482
22483 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22484
22485 fi
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22487 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22488
22489 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22491 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22492 if test "${gcc_cv_as_leb128+set}" = set; then :
22493   $as_echo_n "(cached) " >&6
22494 else
22495   gcc_cv_as_leb128=no
22496     if test $in_tree_gas = yes; then
22497     if test $in_tree_gas_is_elf = yes \
22498   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22499   then gcc_cv_as_leb128=yes
22500 fi
22501   elif test x$gcc_cv_as != x; then
22502     $as_echo '  .data
22503         .uleb128 L2 - L1
22504 L1:
22505         .uleb128 1280
22506         .sleb128 -1010
22507 L2:' > conftest.s
22508     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22509   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22510   (eval $ac_try) 2>&5
22511   ac_status=$?
22512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22513   test $ac_status = 0; }; }
22514     then
22515         # GAS versions before 2.11 do not support uleb128,
22516   # despite appearing to.
22517   # ??? There exists an elf-specific test that will crash
22518   # the assembler.  Perhaps it's better to figure out whether
22519   # arbitrary sections are supported and try the test.
22520   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22521   if echo "$as_ver" | grep GNU > /dev/null; then
22522     as_vers=`echo $as_ver | sed -n \
22523         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22524     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22525     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22526     if test $as_major -eq 2 && test $as_minor -lt 11
22527     then :
22528     else gcc_cv_as_leb128=yes
22529     fi
22530   fi
22531     else
22532       echo "configure: failed program was" >&5
22533       cat conftest.s >&5
22534     fi
22535     rm -f conftest.o conftest.s
22536   fi
22537 fi
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22539 $as_echo "$gcc_cv_as_leb128" >&6; }
22540 if test $gcc_cv_as_leb128 = yes; then
22541
22542 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22543
22544 fi
22545
22546 # Check if we have assembler support for unwind directives.
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22548 $as_echo_n "checking assembler for cfi directives... " >&6; }
22549 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22550   $as_echo_n "(cached) " >&6
22551 else
22552   gcc_cv_as_cfi_directive=no
22553   if test x$gcc_cv_as != x; then
22554     $as_echo '  .text
22555         .cfi_startproc
22556         .cfi_offset 0, 0
22557         .cfi_same_value 1
22558         .cfi_def_cfa 1, 2
22559         .cfi_escape 1, 2, 3, 4, 5
22560         .cfi_endproc' > conftest.s
22561     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22562   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563   (eval $ac_try) 2>&5
22564   ac_status=$?
22565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566   test $ac_status = 0; }; }
22567     then
22568         case "$target" in
22569   *-*-solaris*)
22570     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22571     # read-only and read-write sections, we need to make sure that the
22572     # assembler used emits read-write .eh_frame sections.
22573     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22574       if test "x$gcc_cv_objdump" != x; then
22575         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22576                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22577           gcc_cv_as_cfi_directive=no
22578         else
22579           case "$target" in
22580             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22581               # On Solaris/x86, make sure that GCC and gas agree on using
22582               # read-only .eh_frame sections for 64-bit.
22583               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22584                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22585                         sed -e /.eh_frame/!d -e N | \
22586                         grep READONLY > /dev/null; then
22587                 gcc_cv_as_cfi_directive=yes
22588               else
22589                 gcc_cv_as_cfi_directive=no
22590               fi
22591               ;;
22592             *)
22593               gcc_cv_as_cfi_directive=yes
22594               ;;
22595           esac
22596         fi
22597       else
22598         # no objdump, err on the side of caution
22599         gcc_cv_as_cfi_directive=no
22600       fi
22601     else
22602       gcc_cv_as_cfi_directive=yes
22603     fi
22604     ;;
22605   *-*-*)
22606     gcc_cv_as_cfi_directive=yes
22607     ;;
22608 esac
22609     else
22610       echo "configure: failed program was" >&5
22611       cat conftest.s >&5
22612     fi
22613     rm -f conftest.o conftest.s
22614   fi
22615 fi
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22617 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22618
22619 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22621 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22622 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22623   $as_echo_n "(cached) " >&6
22624 else
22625   gcc_cv_as_cfi_advance_working=no
22626   if test x$gcc_cv_as != x; then
22627     $as_echo '  .text
22628         .cfi_startproc
22629         .cfi_adjust_cfa_offset 64
22630         .skip 75040, 0
22631         .cfi_adjust_cfa_offset 128
22632         .cfi_endproc' > conftest.s
22633     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22634   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635   (eval $ac_try) 2>&5
22636   ac_status=$?
22637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638   test $ac_status = 0; }; }
22639     then
22640
22641 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22642     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22643    gcc_cv_as_cfi_advance_working=yes
22644 fi
22645
22646     else
22647       echo "configure: failed program was" >&5
22648       cat conftest.s >&5
22649     fi
22650     rm -f conftest.o conftest.s
22651   fi
22652 fi
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22654 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22655
22656 else
22657   # no objdump, err on the side of caution
22658   gcc_cv_as_cfi_advance_working=no
22659 fi
22660
22661
22662 cat >>confdefs.h <<_ACEOF
22663 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22664        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22665 _ACEOF
22666
22667
22668
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22670 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22671 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22672   $as_echo_n "(cached) " >&6
22673 else
22674   gcc_cv_as_cfi_personality_directive=no
22675   if test x$gcc_cv_as != x; then
22676     $as_echo '  .text
22677         .cfi_startproc
22678         .cfi_personality 0, symbol
22679         .cfi_endproc' > conftest.s
22680     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22681   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22682   (eval $ac_try) 2>&5
22683   ac_status=$?
22684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22685   test $ac_status = 0; }; }
22686     then
22687         gcc_cv_as_cfi_personality_directive=yes
22688     else
22689       echo "configure: failed program was" >&5
22690       cat conftest.s >&5
22691     fi
22692     rm -f conftest.o conftest.s
22693   fi
22694 fi
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22696 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22697
22698
22699 cat >>confdefs.h <<_ACEOF
22700 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22701     then echo 1; else echo 0; fi`
22702 _ACEOF
22703
22704
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22706 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22707 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22708   $as_echo_n "(cached) " >&6
22709 else
22710   gcc_cv_as_cfi_sections_directive=no
22711   if test x$gcc_cv_as != x; then
22712     $as_echo '  .text
22713         .cfi_sections .debug_frame, .eh_frame
22714         .cfi_startproc
22715         .cfi_endproc' > conftest.s
22716     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22717   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22718   (eval $ac_try) 2>&5
22719   ac_status=$?
22720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22721   test $ac_status = 0; }; }
22722     then
22723         case $target_os in
22724   win32 | pe | cygwin* | mingw32* | uwin*)
22725     # Need to check that we generated the correct relocation for the
22726     # .debug_frame section.  This was fixed for binutils 2.21.
22727     gcc_cv_as_cfi_sections_directive=no
22728     if test "x$gcc_cv_objdump" != x; then
22729      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22730         grep secrel > /dev/null; then
22731       gcc_cv_as_cfi_sections_directive=yes
22732      fi
22733     fi
22734     ;;
22735   *)
22736     gcc_cv_as_cfi_sections_directive=yes
22737     ;;
22738 esac
22739     else
22740       echo "configure: failed program was" >&5
22741       cat conftest.s >&5
22742     fi
22743     rm -f conftest.o conftest.s
22744   fi
22745 fi
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22747 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22748
22749
22750
22751 cat >>confdefs.h <<_ACEOF
22752 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22753     then echo 1; else echo 0; fi`
22754 _ACEOF
22755
22756
22757 # GAS versions up to and including 2.11.0 may mis-optimize
22758 # .eh_frame data.
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22760 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22761 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22762   $as_echo_n "(cached) " >&6
22763 else
22764   gcc_cv_as_eh_frame=no
22765     if test $in_tree_gas = yes; then
22766     if test $in_tree_gas_is_elf = yes \
22767   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22768   then gcc_cv_as_eh_frame=yes
22769 fi
22770   elif test x$gcc_cv_as != x; then
22771     $as_echo '  .text
22772 .LFB1:
22773         .4byte  0
22774 .L1:
22775         .4byte  0
22776 .LFE1:
22777         .section        .eh_frame,"aw",@progbits
22778 __FRAME_BEGIN__:
22779         .4byte  .LECIE1-.LSCIE1
22780 .LSCIE1:
22781         .4byte  0x0
22782         .byte   0x1
22783         .ascii "z\0"
22784         .byte   0x1
22785         .byte   0x78
22786         .byte   0x1a
22787         .byte   0x0
22788         .byte   0x4
22789         .4byte  1
22790         .p2align 1
22791 .LECIE1:
22792 .LSFDE1:
22793         .4byte  .LEFDE1-.LASFDE1
22794 .LASFDE1:
22795         .4byte  .LASFDE1-__FRAME_BEGIN__
22796         .4byte  .LFB1
22797         .4byte  .LFE1-.LFB1
22798         .byte   0x4
22799         .4byte  .LFE1-.LFB1
22800         .byte   0x4
22801         .4byte  .L1-.LFB1
22802 .LEFDE1:' > conftest.s
22803     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22804   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22805   (eval $ac_try) 2>&5
22806   ac_status=$?
22807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22808   test $ac_status = 0; }; }
22809     then
22810           cat > conftest.lit <<EOF
22811  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22812  0010 01000000 12000000 18000000 00000000  ................
22813  0020 08000000 04080000 0044               .........D      
22814 EOF
22815 cat > conftest.big <<EOF
22816  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22817  0010 00000001 00000012 00000018 00000000  ................
22818  0020 00000008 04000000 0844               .........D      
22819 EOF
22820   # If the assembler didn't choke, and we can objdump,
22821   # and we got the correct data, then succeed.
22822   # The text in the here-document typically retains its unix-style line
22823   # endings, while the output of objdump will use host line endings.
22824   # Therefore, use diff -b for the comparisons.
22825   if test x$gcc_cv_objdump != x \
22826   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22827      | tail -3 > conftest.got \
22828   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22829     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22830   then
22831     gcc_cv_as_eh_frame=yes
22832   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22833   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22834   (eval $ac_try) 2>&5
22835   ac_status=$?
22836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22837   test $ac_status = 0; }; }; then
22838     gcc_cv_as_eh_frame=buggy
22839   else
22840     # Uh oh, what do we do now?
22841     gcc_cv_as_eh_frame=no
22842   fi
22843     else
22844       echo "configure: failed program was" >&5
22845       cat conftest.s >&5
22846     fi
22847     rm -f conftest.o conftest.s
22848   fi
22849 fi
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22851 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22852
22853
22854 if test $gcc_cv_as_eh_frame = buggy; then
22855
22856 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22857
22858 fi
22859
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22861 $as_echo_n "checking assembler for section merging support... " >&6; }
22862 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22863   $as_echo_n "(cached) " >&6
22864 else
22865   gcc_cv_as_shf_merge=no
22866     if test $in_tree_gas = yes; then
22867     if test $in_tree_gas_is_elf = yes \
22868   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22869   then gcc_cv_as_shf_merge=yes
22870 fi
22871   elif test x$gcc_cv_as != x; then
22872     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22873     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22874   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22875   (eval $ac_try) 2>&5
22876   ac_status=$?
22877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22878   test $ac_status = 0; }; }
22879     then
22880         gcc_cv_as_shf_merge=yes
22881     else
22882       echo "configure: failed program was" >&5
22883       cat conftest.s >&5
22884     fi
22885     rm -f conftest.o conftest.s
22886   fi
22887 fi
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22889 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22890
22891 if test $gcc_cv_as_shf_merge = no; then
22892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22893 $as_echo_n "checking assembler for section merging support... " >&6; }
22894 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22895   $as_echo_n "(cached) " >&6
22896 else
22897   gcc_cv_as_shf_merge=no
22898     if test $in_tree_gas = yes; then
22899     if test $in_tree_gas_is_elf = yes \
22900   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22901   then gcc_cv_as_shf_merge=yes
22902 fi
22903   elif test x$gcc_cv_as != x; then
22904     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22905     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907   (eval $ac_try) 2>&5
22908   ac_status=$?
22909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910   test $ac_status = 0; }; }
22911     then
22912         gcc_cv_as_shf_merge=yes
22913     else
22914       echo "configure: failed program was" >&5
22915       cat conftest.s >&5
22916     fi
22917     rm -f conftest.o conftest.s
22918   fi
22919 fi
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22921 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22922
22923 fi
22924
22925 cat >>confdefs.h <<_ACEOF
22926 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22927 _ACEOF
22928
22929
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22931 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22932 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22933   $as_echo_n "(cached) " >&6
22934 else
22935   gcc_cv_as_comdat_group=no
22936     if test $in_tree_gas = yes; then
22937     if test $in_tree_gas_is_elf = yes \
22938   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22939   then gcc_cv_as_comdat_group=yes
22940 fi
22941   elif test x$gcc_cv_as != x; then
22942     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22943     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22944   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948   test $ac_status = 0; }; }
22949     then
22950         gcc_cv_as_comdat_group=yes
22951     else
22952       echo "configure: failed program was" >&5
22953       cat conftest.s >&5
22954     fi
22955     rm -f conftest.o conftest.s
22956   fi
22957 fi
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22959 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22960
22961 if test $gcc_cv_as_comdat_group = yes; then
22962   gcc_cv_as_comdat_group_percent=no
22963   gcc_cv_as_comdat_group_group=no
22964 else
22965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22966 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22967 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22968   $as_echo_n "(cached) " >&6
22969 else
22970   gcc_cv_as_comdat_group_percent=no
22971     if test $in_tree_gas = yes; then
22972     if test $in_tree_gas_is_elf = yes \
22973   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22974   then gcc_cv_as_comdat_group_percent=yes
22975 fi
22976   elif test x$gcc_cv_as != x; then
22977     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22978     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22979   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22980   (eval $ac_try) 2>&5
22981   ac_status=$?
22982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22983   test $ac_status = 0; }; }
22984     then
22985         gcc_cv_as_comdat_group_percent=yes
22986     else
22987       echo "configure: failed program was" >&5
22988       cat conftest.s >&5
22989     fi
22990     rm -f conftest.o conftest.s
22991   fi
22992 fi
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22994 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22995
22996  if test $gcc_cv_as_comdat_group_percent = yes; then
22997    gcc_cv_as_comdat_group_group=no
22998  else
22999    case "${target}" in
23000      # Sun as uses a completely different syntax.
23001      *-*-solaris2*)
23002        case "${target}" in
23003          sparc*-*-solaris2*)
23004            conftest_s='
23005                .group foo,".text%foo",#comdat
23006                .section ".text%foo", #alloc,#execinstr,#progbits
23007                .globl foo
23008              foo:
23009              '
23010            ;;
23011          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23012            conftest_s='
23013                .group foo,.text%foo,#comdat
23014                .section .text%foo, "ax", @progbits
23015                .globl  foo
23016              foo:
23017              '
23018            ;;
23019        esac
23020        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23021 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23022 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23023   $as_echo_n "(cached) " >&6
23024 else
23025   gcc_cv_as_comdat_group_group=no
23026   if test x$gcc_cv_as != x; then
23027     $as_echo "$conftest_s" > conftest.s
23028     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23029   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23030   (eval $ac_try) 2>&5
23031   ac_status=$?
23032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23033   test $ac_status = 0; }; }
23034     then
23035         gcc_cv_as_comdat_group_group=yes
23036     else
23037       echo "configure: failed program was" >&5
23038       cat conftest.s >&5
23039     fi
23040     rm -f conftest.o conftest.s
23041   fi
23042 fi
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23044 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23045
23046        ;;
23047    esac
23048  fi
23049 fi
23050 if test x"$ld_is_gold" = xyes; then
23051   comdat_group=yes
23052 elif test $in_tree_ld = yes ; then
23053   comdat_group=no
23054   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 \
23055      && test $in_tree_ld_is_elf = yes; then
23056      comdat_group=yes
23057   fi
23058 elif echo "$ld_ver" | grep GNU > /dev/null; then
23059   comdat_group=yes
23060   if test 0"$ld_date" -lt 20050308; then
23061     if test -n "$ld_date"; then
23062       # If there was date string, but was earlier than 2005-03-08, fail
23063       comdat_group=no
23064     elif test "$ld_vers_major" -lt 2; then
23065       comdat_group=no
23066     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23067       comdat_group=no
23068     fi
23069   fi
23070 else
23071   case "${target}" in
23072     *-*-solaris2.1[1-9]*)
23073       comdat_group=no
23074       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23075       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23076       # version 1.688.
23077       #
23078       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23079       # least ld version 1.2267.
23080       if test "$ld_vers_major" -gt 1; then
23081         comdat_group=yes
23082       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23083         comdat_group=yes
23084       elif test "$ld_vers_minor" -ge 2267; then
23085         comdat_group=yes
23086       fi
23087       ;;
23088     *)
23089       # Assume linkers other than GNU ld don't support COMDAT group.
23090       comdat_group=no
23091       ;;
23092   esac
23093 fi
23094 # Allow overriding the automatic COMDAT group tests above.
23095 # Check whether --enable-comdat was given.
23096 if test "${enable_comdat+set}" = set; then :
23097   enableval=$enable_comdat; comdat_group="$enable_comdat"
23098 fi
23099
23100 if test $comdat_group = no; then
23101   gcc_cv_as_comdat_group=no
23102   gcc_cv_as_comdat_group_percent=no
23103   gcc_cv_as_comdat_group_group=no
23104 fi
23105
23106 cat >>confdefs.h <<_ACEOF
23107 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23108     || test $gcc_cv_as_comdat_group_percent = yes \
23109     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23110 _ACEOF
23111
23112
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23114 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23115 if test "${gcc_cv_as_discriminator+set}" = set; then :
23116   $as_echo_n "(cached) " >&6
23117 else
23118   gcc_cv_as_discriminator=no
23119     if test $in_tree_gas = yes; then
23120     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23121   then gcc_cv_as_discriminator=yes
23122 fi
23123   elif test x$gcc_cv_as != x; then
23124     $as_echo '  .text
23125         .file 1 "conf.c"
23126         .loc 1 1 0 discriminator 1' > conftest.s
23127     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23128   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23129   (eval $ac_try) 2>&5
23130   ac_status=$?
23131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132   test $ac_status = 0; }; }
23133     then
23134         gcc_cv_as_discriminator=yes
23135     else
23136       echo "configure: failed program was" >&5
23137       cat conftest.s >&5
23138     fi
23139     rm -f conftest.o conftest.s
23140   fi
23141 fi
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23143 $as_echo "$gcc_cv_as_discriminator" >&6; }
23144 if test $gcc_cv_as_discriminator = yes; then
23145
23146 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23147
23148 fi
23149
23150 # Thread-local storage - the check is heavily parameterized.
23151 conftest_s=
23152 tls_first_major=
23153 tls_first_minor=
23154 tls_as_opt=
23155 case "$target" in
23156   alpha*-*-*)
23157     conftest_s='
23158         .section ".tdata","awT",@progbits
23159 foo:    .long   25
23160         .text
23161         ldq     $27,__tls_get_addr($29)         !literal!1
23162         lda     $16,foo($29)                    !tlsgd!1
23163         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23164         ldq     $27,__tls_get_addr($29)         !literal!2
23165         lda     $16,foo($29)                    !tlsldm!2
23166         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23167         ldq     $1,foo($29)                     !gotdtprel
23168         ldah    $2,foo($29)                     !dtprelhi
23169         lda     $3,foo($2)                      !dtprello
23170         lda     $4,foo($29)                     !dtprel
23171         ldq     $1,foo($29)                     !gottprel
23172         ldah    $2,foo($29)                     !tprelhi
23173         lda     $3,foo($2)                      !tprello
23174         lda     $4,foo($29)                     !tprel'
23175         tls_first_major=2
23176         tls_first_minor=13
23177         tls_as_opt=--fatal-warnings
23178         ;;
23179   cris-*-*|crisv32-*-*)
23180     conftest_s='
23181         .section ".tdata","awT",@progbits
23182 x:      .long   25
23183         .text
23184         move.d x:IE,$r10
23185         nop'
23186         tls_first_major=2
23187         tls_first_minor=20
23188         tls_as_opt=--fatal-warnings
23189         ;;
23190   frv*-*-*)
23191     conftest_s='
23192         .section ".tdata","awT",@progbits
23193 x:      .long   25
23194         .text
23195         call    #gettlsoff(x)'
23196         tls_first_major=2
23197         tls_first_minor=14
23198         ;;
23199   hppa*-*-linux*)
23200     conftest_s='
23201 t1:     .reg    %r20
23202 t2:     .reg    %r21
23203 gp:     .reg    %r19
23204         .section ".tdata","awT",@progbits
23205 foo:    .long   25
23206         .text
23207         .align  4
23208         addil LT%foo-$tls_gdidx$,gp
23209         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23210         b __tls_get_addr
23211         nop
23212         addil LT%foo-$tls_ldidx$,gp
23213         b __tls_get_addr
23214         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23215         addil LR%foo-$tls_dtpoff$,%ret0
23216         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23217         mfctl %cr27,%t1
23218         addil LT%foo-$tls_ieoff$,gp
23219         ldw RT%foo-$tls_ieoff$(%r1),%t2
23220         add %t1,%t2,%t3
23221         mfctl %cr27,%t1
23222         addil LR%foo-$tls_leoff$,%t1
23223         ldo RR%foo-$tls_leoff$(%r1),%t2'
23224         tls_first_major=2
23225         tls_first_minor=15
23226         tls_as_opt=--fatal-warnings
23227         ;;
23228   arm*-*-*)
23229     conftest_s='
23230         .section ".tdata","awT",%progbits
23231 foo:    .long   25
23232         .text
23233 .word foo(gottpoff)
23234 .word foo(tpoff)
23235 .word foo(tlsgd)
23236 .word foo(tlsldm)
23237 .word foo(tlsldo)'
23238         tls_first_major=2
23239         tls_first_minor=17
23240         ;;
23241   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23242     case "$target" in
23243       i[34567]86-*-solaris2.*)
23244         on_solaris=yes
23245         tga_func=___tls_get_addr
23246         ;;
23247       x86_64-*-solaris2.1[0-9]*)
23248         on_solaris=yes
23249         tga_func=__tls_get_addr
23250         ;;
23251       *)
23252         on_solaris=no
23253         ;;
23254     esac
23255     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23256       conftest_s='
23257         .section .tdata,"awt",@progbits'
23258       tls_first_major=0
23259       tls_first_minor=0
23260
23261 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23262
23263     else
23264       conftest_s='
23265         .section ".tdata","awT",@progbits'
23266       tls_first_major=2
23267       tls_first_minor=14
23268       tls_as_opt="--fatal-warnings"
23269     fi
23270     conftest_s="$conftest_s
23271 foo:    .long   25
23272         .text
23273         movl    %gs:0, %eax
23274         leal    foo@tlsgd(,%ebx,1), %eax
23275         leal    foo@tlsldm(%ebx), %eax
23276         leal    foo@dtpoff(%eax), %edx
23277         movl    foo@gottpoff(%ebx), %eax
23278         subl    foo@gottpoff(%ebx), %eax
23279         addl    foo@gotntpoff(%ebx), %eax
23280         movl    foo@indntpoff, %eax
23281         movl    \$foo@tpoff, %eax
23282         subl    \$foo@tpoff, %eax
23283         leal    foo@ntpoff(%ecx), %eax"
23284     ;;
23285   x86_64-*-*)
23286     conftest_s='
23287         .section ".tdata","awT",@progbits
23288 foo:    .long   25
23289         .text
23290         movq    %fs:0, %rax
23291         leaq    foo@TLSGD(%rip), %rdi
23292         leaq    foo@TLSLD(%rip), %rdi
23293         leaq    foo@DTPOFF(%rax), %rdx
23294         movq    foo@GOTTPOFF(%rip), %rax
23295         movq    $foo@TPOFF, %rax'
23296         tls_first_major=2
23297         tls_first_minor=14
23298         tls_as_opt=--fatal-warnings
23299         ;;
23300   ia64-*-*)
23301     conftest_s='
23302         .section ".tdata","awT",@progbits
23303 foo:    data8   25
23304         .text
23305         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23306         addl    r17 = @ltoff(@dtprel(foo#)), gp
23307         addl    r18 = @ltoff(@tprel(foo#)), gp
23308         addl    r19 = @dtprel(foo#), gp
23309         adds    r21 = @dtprel(foo#), r13
23310         movl    r23 = @dtprel(foo#)
23311         addl    r20 = @tprel(foo#), gp
23312         adds    r22 = @tprel(foo#), r13
23313         movl    r24 = @tprel(foo#)'
23314         tls_first_major=2
23315         tls_first_minor=13
23316         tls_as_opt=--fatal-warnings
23317         ;;
23318   mips*-*-*)
23319     conftest_s='
23320         .section .tdata,"awT",@progbits
23321 x:
23322         .word 2
23323         .text
23324         addiu $4, $28, %tlsgd(x)
23325         addiu $4, $28, %tlsldm(x)
23326         lui $4, %dtprel_hi(x)
23327         addiu $4, $4, %dtprel_lo(x)
23328         lw $4, %gottprel(x)($28)
23329         lui $4, %tprel_hi(x)
23330         addiu $4, $4, %tprel_lo(x)'
23331         tls_first_major=2
23332         tls_first_minor=16
23333         tls_as_opt='-32 --fatal-warnings'
23334         ;;
23335   m68k-*-*)
23336     conftest_s='
23337         .section .tdata,"awT",@progbits
23338 x:
23339         .word 2
23340         .text
23341 foo:
23342         move.l x@TLSGD(%a5),%a0
23343         move.l x@TLSLDM(%a5),%a0
23344         move.l x@TLSLDO(%a5),%a0
23345         move.l x@TLSIE(%a5),%a0
23346         move.l x@TLSLE(%a5),%a0'
23347         tls_first_major=2
23348         tls_first_minor=19
23349         tls_as_opt='--fatal-warnings'
23350         ;;
23351   powerpc-*-*)
23352     conftest_s='
23353         .section ".tdata","awT",@progbits
23354         .align 2
23355 ld0:    .space 4
23356 ld1:    .space 4
23357 x1:     .space 4
23358 x2:     .space 4
23359 x3:     .space 4
23360         .text
23361         addi 3,31,ld0@got@tlsgd
23362         bl __tls_get_addr
23363         addi 3,31,x1@got@tlsld
23364         bl __tls_get_addr
23365         addi 9,3,x1@dtprel
23366         addis 9,3,x2@dtprel@ha
23367         addi 9,9,x2@dtprel@l
23368         lwz 9,x3@got@tprel(31)
23369         add 9,9,x@tls
23370         addi 9,2,x1@tprel
23371         addis 9,2,x2@tprel@ha
23372         addi 9,9,x2@tprel@l'
23373         tls_first_major=2
23374         tls_first_minor=14
23375         tls_as_opt="-a32 --fatal-warnings"
23376         ;;
23377   powerpc64-*-*)
23378     conftest_s='
23379         .section ".tdata","awT",@progbits
23380         .align 3
23381 ld0:    .space 8
23382 ld1:    .space 8
23383 x1:     .space 8
23384 x2:     .space 8
23385 x3:     .space 8
23386         .text
23387         addi 3,2,ld0@got@tlsgd
23388         bl .__tls_get_addr
23389         nop
23390         addi 3,2,ld1@toc
23391         bl .__tls_get_addr
23392         nop
23393         addi 3,2,x1@got@tlsld
23394         bl .__tls_get_addr
23395         nop
23396         addi 9,3,x1@dtprel
23397         bl .__tls_get_addr
23398         nop
23399         addis 9,3,x2@dtprel@ha
23400         addi 9,9,x2@dtprel@l
23401         bl .__tls_get_addr
23402         nop
23403         ld 9,x3@got@dtprel(2)
23404         add 9,9,3
23405         bl .__tls_get_addr
23406         nop'
23407         tls_first_major=2
23408         tls_first_minor=14
23409         tls_as_opt="-a64 --fatal-warnings"
23410         ;;
23411   s390-*-*)
23412     conftest_s='
23413         .section ".tdata","awT",@progbits
23414 foo:    .long   25
23415         .text
23416         .long   foo@TLSGD
23417         .long   foo@TLSLDM
23418         .long   foo@DTPOFF
23419         .long   foo@NTPOFF
23420         .long   foo@GOTNTPOFF
23421         .long   foo@INDNTPOFF
23422         l       %r1,foo@GOTNTPOFF(%r12)
23423         l       %r1,0(%r1):tls_load:foo
23424         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23425         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23426         tls_first_major=2
23427         tls_first_minor=14
23428         tls_as_opt="-m31 --fatal-warnings"
23429         ;;
23430   s390x-*-*)
23431     conftest_s='
23432         .section ".tdata","awT",@progbits
23433 foo:    .long   25
23434         .text
23435         .quad   foo@TLSGD
23436         .quad   foo@TLSLDM
23437         .quad   foo@DTPOFF
23438         .quad   foo@NTPOFF
23439         .quad   foo@GOTNTPOFF
23440         lg      %r1,foo@GOTNTPOFF(%r12)
23441         larl    %r1,foo@INDNTPOFF
23442         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23443         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23444         tls_first_major=2
23445         tls_first_minor=14
23446         tls_as_opt="-m64 -Aesame --fatal-warnings"
23447         ;;
23448   sh-*-* | sh[34]-*-*)
23449     conftest_s='
23450         .section ".tdata","awT",@progbits
23451 foo:    .long   25
23452         .text
23453         .long   foo@TLSGD
23454         .long   foo@TLSLDM
23455         .long   foo@DTPOFF
23456         .long   foo@GOTTPOFF
23457         .long   foo@TPOFF'
23458         tls_first_major=2
23459         tls_first_minor=13
23460         tls_as_opt=--fatal-warnings
23461         ;;
23462   sparc*-*-*)
23463     case "$target" in
23464       sparc*-sun-solaris2.*)
23465         on_solaris=yes
23466         tga_func=__tls_get_addr
23467         ;;
23468       *)
23469         on_solaris=no
23470         ;;
23471     esac
23472     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23473       conftest_s='
23474         .section ".tdata",#alloc,#write,#tls'
23475         tls_first_major=0
23476         tls_first_minor=0
23477     else
23478       conftest_s='
23479         .section ".tdata","awT",@progbits'
23480         tls_first_major=2
23481         tls_first_minor=14
23482         tls_as_opt="-32 --fatal-warnings"
23483     fi
23484     conftest_s="$conftest_s
23485 foo:    .long   25
23486         .text
23487         sethi   %tgd_hi22(foo), %o0
23488         add     %o0, %tgd_lo10(foo), %o1
23489         add     %l7, %o1, %o0, %tgd_add(foo)
23490         call    __tls_get_addr, %tgd_call(foo)
23491         sethi   %tldm_hi22(foo), %l1
23492         add     %l1, %tldm_lo10(foo), %l2
23493         add     %l7, %l2, %o0, %tldm_add(foo)
23494         call    __tls_get_addr, %tldm_call(foo)
23495         sethi   %tldo_hix22(foo), %l3
23496         xor     %l3, %tldo_lox10(foo), %l4
23497         add     %o0, %l4, %l5, %tldo_add(foo)
23498         sethi   %tie_hi22(foo), %o3
23499         add     %o3, %tie_lo10(foo), %o3
23500         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23501         add     %g7, %o2, %o4, %tie_add(foo)
23502         sethi   %tle_hix22(foo), %l1
23503         xor     %l1, %tle_lox10(foo), %o5
23504         ld      [%g7 + %o5], %o1"
23505         ;;
23506   xtensa*-*-*)
23507     conftest_s='
23508         .section ".tdata","awT",@progbits
23509 foo:    .long   25
23510         .text
23511         movi    a8, foo@TLSFUNC
23512         movi    a10, foo@TLSARG
23513         callx8.tls a8, foo@TLSCALL'
23514         tls_first_major=2
23515         tls_first_minor=19
23516         ;;
23517 esac
23518 set_have_as_tls=no
23519 if test "x$enable_tls" = xno ; then
23520   : # TLS explicitly disabled.
23521 elif test "x$enable_tls" = xyes ; then
23522   set_have_as_tls=yes # TLS explicitly enabled.
23523 elif test -z "$tls_first_major"; then
23524   : # If we don't have a check, assume no support.
23525 else
23526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23527 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23528 if test "${gcc_cv_as_tls+set}" = set; then :
23529   $as_echo_n "(cached) " >&6
23530 else
23531   gcc_cv_as_tls=no
23532     if test $in_tree_gas = yes; then
23533     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23534   then gcc_cv_as_tls=yes
23535 fi
23536   elif test x$gcc_cv_as != x; then
23537     $as_echo "$conftest_s" > conftest.s
23538     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23539   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23540   (eval $ac_try) 2>&5
23541   ac_status=$?
23542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23543   test $ac_status = 0; }; }
23544     then
23545         gcc_cv_as_tls=yes
23546     else
23547       echo "configure: failed program was" >&5
23548       cat conftest.s >&5
23549     fi
23550     rm -f conftest.o conftest.s
23551   fi
23552 fi
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23554 $as_echo "$gcc_cv_as_tls" >&6; }
23555 if test $gcc_cv_as_tls = yes; then
23556   set_have_as_tls=yes
23557 fi
23558 fi
23559 case "$target" in
23560   *-*-irix6*)
23561     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23562     # with TLS support are in use, native TLS cannot work.
23563     set_have_as_tls=no
23564     ;;
23565   *-*-osf*)
23566     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23567     # gld with TLS support are in use, native TLS cannot work.
23568     set_have_as_tls=no
23569     ;;
23570   # TLS was introduced in the Solaris 9 FCS release and backported to
23571   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23572   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23573   # ld and GCC don't support any longer.
23574   *-*-solaris2.*)
23575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23576 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23577     ld_tls_support=no
23578     # Check ld and ld.so.1 TLS support.
23579     if echo "$ld_ver" | grep GNU > /dev/null; then
23580       # Assume all interesting versions of GNU ld have TLS support.
23581       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23582       ld_tls_support=yes
23583     else
23584       case "$target" in
23585         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23586         i?86-*-solaris2.8)
23587           min_tls_ld_vers_minor=280
23588           ;;
23589         # Solaris 8/SPARC ld has TLS support since version 1.272.
23590         sparc*-*-solaris2.8)
23591           min_tls_ld_vers_minor=272
23592           ;;
23593         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23594         i?86-*-solaris2.9)
23595           min_tls_ld_vers_minor=374
23596           ;;
23597         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23598         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23599           min_tls_ld_vers_minor=343
23600           ;;
23601       esac
23602       if test "$ld_vers_major" -gt 1 || \
23603         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23604         ld_tls_support=yes
23605       else
23606         set_have_as_tls=no
23607       fi
23608     fi
23609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23610 $as_echo "$ld_tls_support" >&6; }
23611
23612     save_LIBS="$LIBS"
23613     save_LDFLAGS="$LDFLAGS"
23614     LIBS=
23615     LDFLAGS=
23616
23617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23618 $as_echo_n "checking alternate thread library... " >&6; }
23619     case "$target" in
23620       # TLS support was backported to Solaris 8 patches, but only lives in
23621       # the alternate thread library which became the default in Solaris 9.
23622       # We want to always use that, irrespective of TLS support.
23623       *-*-solaris2.8)
23624         # Take multilib subdir into account.  There's no spec to handle
23625         # this.  The 64 symlink exists since Solaris 8.
23626         lwp_dir=/usr/lib/lwp
23627         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23628         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23629         ;;
23630       *-*-solaris2*)
23631         lwp_dir="none"
23632         lwp_spec=""
23633         ;;
23634     esac
23635     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23636
23637 cat >>confdefs.h <<_ACEOF
23638 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23639 _ACEOF
23640
23641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23642 $as_echo "$lwp_dir" >&6; }
23643
23644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23645 $as_echo_n "checking library containing $tga_func... " >&6; }
23646     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23647     # (32-bit x86) only lived in libthread, so check for that.  Keep
23648     # set_have_as_tls if found, disable if not.
23649     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23651 $as_echo_n "checking for library containing $tga_func... " >&6; }
23652 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23653   $as_echo_n "(cached) " >&6
23654 else
23655   ac_func_search_save_LIBS=$LIBS
23656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23657 /* end confdefs.h.  */
23658
23659 /* Override any GCC internal prototype to avoid an error.
23660    Use char because int might match the return type of a GCC
23661    builtin and then its argument prototype would still apply.  */
23662 #ifdef __cplusplus
23663 extern "C"
23664 #endif
23665 char $tga_func ();
23666 int
23667 main ()
23668 {
23669 return $tga_func ();
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 for ac_lib in '' thread; do
23675   if test -z "$ac_lib"; then
23676     ac_res="none required"
23677   else
23678     ac_res=-l$ac_lib
23679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23680   fi
23681   if ac_fn_c_try_link "$LINENO"; then :
23682   eval "$as_ac_Search=\$ac_res"
23683 fi
23684 rm -f core conftest.err conftest.$ac_objext \
23685     conftest$ac_exeext
23686   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23687   break
23688 fi
23689 done
23690 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23691
23692 else
23693   eval "$as_ac_Search=no"
23694 fi
23695 rm conftest.$ac_ext
23696 LIBS=$ac_func_search_save_LIBS
23697 fi
23698 eval ac_res=\$$as_ac_Search
23699                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23700 $as_echo "$ac_res" >&6; }
23701 eval ac_res=\$$as_ac_Search
23702 if test "$ac_res" != no; then :
23703   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23704
23705 else
23706   set_have_as_tls=no
23707 fi
23708
23709     # Clear LIBS if we cannot support TLS.
23710     if test $set_have_as_tls = no; then
23711       LIBS=
23712     fi
23713     # Always define LIB_TLS_SPEC, even without TLS support.
23714
23715 cat >>confdefs.h <<_ACEOF
23716 #define LIB_TLS_SPEC "$LIBS"
23717 _ACEOF
23718
23719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23720 $as_echo "$LIBS" >&6; }
23721
23722     LIBS="$save_LIBS"
23723     LDFLAGS="$save_LDFLAGS"
23724     ;;
23725 esac
23726 if test $set_have_as_tls = yes ; then
23727
23728 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23729
23730 fi
23731
23732 # Target-specific assembler checks.
23733
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23735 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23736 gcc_cv_ld_static_dynamic=no
23737 gcc_cv_ld_static_option='-Bstatic'
23738 gcc_cv_ld_dynamic_option='-Bdynamic'
23739 if test $in_tree_ld = yes ; then
23740   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
23741     gcc_cv_ld_static_dynamic=yes
23742   fi
23743 elif test x$gcc_cv_ld != x; then
23744   # Check if linker supports -Bstatic/-Bdynamic option
23745   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23746      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23747       gcc_cv_ld_static_dynamic=yes
23748   else
23749     case "$target" in
23750       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23751       alpha*-dec-osf*)
23752         gcc_cv_ld_static_dynamic=yes
23753         gcc_cv_ld_static_option="-noso"
23754         gcc_cv_ld_dynamic_option="-so_archive"
23755         ;;
23756       # HP-UX ld uses -a flags to select between shared and archive.
23757       *-*-hpux*)
23758         if test x"$gnu_ld" = xno; then
23759           gcc_cv_ld_static_dynamic=yes
23760           gcc_cv_ld_static_option="-aarchive_shared"
23761           gcc_cv_ld_dynamic_option="-adefault"
23762         fi
23763         ;;
23764       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23765       mips-sgi-irix6*)
23766         gcc_cv_ld_static_dynamic=yes
23767         ;;
23768       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23769       *-*-solaris2*)
23770         gcc_cv_ld_static_dynamic=yes
23771         ;;
23772     esac
23773   fi
23774 fi
23775 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23776
23777 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23778
23779
23780 cat >>confdefs.h <<_ACEOF
23781 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23782 _ACEOF
23783
23784
23785 cat >>confdefs.h <<_ACEOF
23786 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23787 _ACEOF
23788
23789 fi
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23791 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23792
23793 if test x"$demangler_in_ld" = xyes; then
23794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23795 $as_echo_n "checking linker --demangle support... " >&6; }
23796   gcc_cv_ld_demangle=no
23797   if test $in_tree_ld = yes; then
23798     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 \
23799       gcc_cv_ld_demangle=yes
23800     fi
23801   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23802     # Check if the GNU linker supports --demangle option
23803     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23804       gcc_cv_ld_demangle=yes
23805     fi
23806   fi
23807   if test x"$gcc_cv_ld_demangle" = xyes; then
23808
23809 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23810
23811   fi
23812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23813 $as_echo "$gcc_cv_ld_demangle" >&6; }
23814 fi
23815
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23817 $as_echo_n "checking linker plugin support... " >&6; }
23818 gcc_cv_lto_plugin=0
23819 if test -f liblto_plugin.la; then
23820   save_ld_ver="$ld_ver"
23821   save_ld_vers_major="$ld_vers_major"
23822   save_ld_vers_minor="$ld_vers_minor"
23823   save_ld_is_gold="$ld_is_gold"
23824
23825   ld_is_gold=no
23826
23827   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23828     ld_ver="GNU ld"
23829     # FIXME: ld_is_gold?
23830     ld_vers_major="$gcc_cv_gld_major_version"
23831     ld_vers_minor="$gcc_cv_gld_minor_version"
23832   else
23833     # Determine plugin linker version.
23834     # FIXME: Partial duplicate from above, generalize.
23835     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23836     if echo "$ld_ver" | grep GNU > /dev/null; then
23837       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23838         ld_is_gold=yes
23839         ld_vers=`echo $ld_ver | sed -n \
23840             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23841       else
23842         ld_vers=`echo $ld_ver | sed -n \
23843             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23844       fi
23845       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23846       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23847     fi
23848   fi
23849
23850   # Determine plugin support.
23851   if echo "$ld_ver" | grep GNU > /dev/null; then
23852     # Require GNU ld or gold 2.21+ for plugin support by default.
23853     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23854       gcc_cv_lto_plugin=2
23855     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23856     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23857       gcc_cv_lto_plugin=1
23858     fi
23859   fi
23860
23861   ld_ver="$save_ld_ver"
23862   ld_vers_major="$save_ld_vers_major"
23863   ld_vers_minor="$save_ld_vers_minor"
23864   ld_is_gold="$save_ld_is_gold"
23865 fi
23866
23867 cat >>confdefs.h <<_ACEOF
23868 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23869 _ACEOF
23870
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23872 $as_echo "$gcc_cv_lto_plugin" >&6; }
23873
23874 case "$target" in
23875   # All TARGET_ABI_OSF targets.
23876   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23878 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23879 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23880   $as_echo_n "(cached) " >&6
23881 else
23882   gcc_cv_as_alpha_explicit_relocs=no
23883     if test $in_tree_gas = yes; then
23884     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23885   then gcc_cv_as_alpha_explicit_relocs=yes
23886 fi
23887   elif test x$gcc_cv_as != x; then
23888     $as_echo '  .set nomacro
23889         .text
23890         extbl   $3, $2, $3      !lituse_bytoff!1
23891         ldq     $2, a($29)      !literal!1
23892         ldq     $4, b($29)      !literal!2
23893         ldq_u   $3, 0($2)       !lituse_base!1
23894         ldq     $27, f($29)     !literal!5
23895         jsr     $26, ($27), f   !lituse_jsr!5
23896         ldah    $29, 0($26)     !gpdisp!3
23897         lda     $0, c($29)      !gprel
23898         ldah    $1, d($29)      !gprelhigh
23899         lda     $1, d($1)       !gprellow
23900         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23901     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23902   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23903   (eval $ac_try) 2>&5
23904   ac_status=$?
23905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23906   test $ac_status = 0; }; }
23907     then
23908         gcc_cv_as_alpha_explicit_relocs=yes
23909     else
23910       echo "configure: failed program was" >&5
23911       cat conftest.s >&5
23912     fi
23913     rm -f conftest.o conftest.s
23914   fi
23915 fi
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23917 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23918 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23919
23920 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23921
23922 fi
23923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23924 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23925 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23926   $as_echo_n "(cached) " >&6
23927 else
23928   gcc_cv_as_alpha_jsrdirect_relocs=no
23929     if test $in_tree_gas = yes; then
23930     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23931   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23932 fi
23933   elif test x$gcc_cv_as != x; then
23934     $as_echo '  .set nomacro
23935         .text
23936         ldq     $27, a($29)     !literal!1
23937         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23938     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23939   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23940   (eval $ac_try) 2>&5
23941   ac_status=$?
23942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23943   test $ac_status = 0; }; }
23944     then
23945         gcc_cv_as_alpha_jsrdirect_relocs=yes
23946     else
23947       echo "configure: failed program was" >&5
23948       cat conftest.s >&5
23949     fi
23950     rm -f conftest.o conftest.s
23951   fi
23952 fi
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23954 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23955 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23956
23957 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23958
23959 fi
23960     ;;
23961
23962   cris-*-*)
23963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23964 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23965 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23966   $as_echo_n "(cached) " >&6
23967 else
23968   gcc_cv_as_cris_no_mul_bug=no
23969     if test $in_tree_gas = yes; then
23970     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23971   then gcc_cv_as_cris_no_mul_bug=yes
23972 fi
23973   elif test x$gcc_cv_as != x; then
23974     $as_echo '.text' > conftest.s
23975     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23976   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23977   (eval $ac_try) 2>&5
23978   ac_status=$?
23979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23980   test $ac_status = 0; }; }
23981     then
23982         gcc_cv_as_cris_no_mul_bug=yes
23983     else
23984       echo "configure: failed program was" >&5
23985       cat conftest.s >&5
23986     fi
23987     rm -f conftest.o conftest.s
23988   fi
23989 fi
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23991 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23992 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23993
23994 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23995
23996 fi
23997     ;;
23998
23999   sparc*-*-*)
24000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24001 $as_echo_n "checking assembler for .register... " >&6; }
24002 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24003   $as_echo_n "(cached) " >&6
24004 else
24005   gcc_cv_as_sparc_register_op=no
24006   if test x$gcc_cv_as != x; then
24007     $as_echo '.register %g2, #scratch' > conftest.s
24008     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24009   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010   (eval $ac_try) 2>&5
24011   ac_status=$?
24012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013   test $ac_status = 0; }; }
24014     then
24015         gcc_cv_as_sparc_register_op=yes
24016     else
24017       echo "configure: failed program was" >&5
24018       cat conftest.s >&5
24019     fi
24020     rm -f conftest.o conftest.s
24021   fi
24022 fi
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24024 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24025 if test $gcc_cv_as_sparc_register_op = yes; then
24026
24027 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24028
24029 fi
24030
24031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24032 $as_echo_n "checking assembler for -relax option... " >&6; }
24033 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24034   $as_echo_n "(cached) " >&6
24035 else
24036   gcc_cv_as_sparc_relax=no
24037   if test x$gcc_cv_as != x; then
24038     $as_echo '.text' > conftest.s
24039     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24040   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24041   (eval $ac_try) 2>&5
24042   ac_status=$?
24043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24044   test $ac_status = 0; }; }
24045     then
24046         gcc_cv_as_sparc_relax=yes
24047     else
24048       echo "configure: failed program was" >&5
24049       cat conftest.s >&5
24050     fi
24051     rm -f conftest.o conftest.s
24052   fi
24053 fi
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24055 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24056 if test $gcc_cv_as_sparc_relax = yes; then
24057
24058 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24059
24060 fi
24061
24062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24063 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24064 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24065   $as_echo_n "(cached) " >&6
24066 else
24067   gcc_cv_as_sparc_gotdata_op=no
24068   if test x$gcc_cv_as != x; then
24069     $as_echo '.text
24070 .align 4
24071 foo:
24072         nop
24073 bar:
24074         sethi %gdop_hix22(foo), %g1
24075         xor    %g1, %gdop_lox10(foo), %g1
24076         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24079   (eval $ac_try) 2>&5
24080   ac_status=$?
24081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24082   test $ac_status = 0; }; }
24083     then
24084         if test x$gcc_cv_ld != x \
24085        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24086          if test x$gcc_cv_objdump != x; then
24087            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24088               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24089                gcc_cv_as_sparc_gotdata_op=no
24090            else
24091                gcc_cv_as_sparc_gotdata_op=yes
24092            fi
24093          fi
24094        fi
24095        rm -f conftest
24096     else
24097       echo "configure: failed program was" >&5
24098       cat conftest.s >&5
24099     fi
24100     rm -f conftest.o conftest.s
24101   fi
24102 fi
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24104 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24105 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24106
24107 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24108
24109 fi
24110
24111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24112 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24113 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24114   $as_echo_n "(cached) " >&6
24115 else
24116   gcc_cv_as_sparc_ua_pcrel=no
24117   if test x$gcc_cv_as != x; then
24118     $as_echo '.text
24119 foo:
24120         nop
24121 .data
24122 .align 4
24123 .byte 0
24124 .uaword %r_disp32(foo)' > conftest.s
24125     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24126   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130   test $ac_status = 0; }; }
24131     then
24132         if test x$gcc_cv_ld != x \
24133        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24134          gcc_cv_as_sparc_ua_pcrel=yes
24135        fi
24136        rm -f conftest
24137     else
24138       echo "configure: failed program was" >&5
24139       cat conftest.s >&5
24140     fi
24141     rm -f conftest.o conftest.s
24142   fi
24143 fi
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24145 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24146 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24147
24148 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24149
24150
24151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24152 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24153 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24154   $as_echo_n "(cached) " >&6
24155 else
24156   gcc_cv_as_sparc_ua_pcrel_hidden=no
24157   if test x$gcc_cv_as != x; then
24158     $as_echo '.data
24159 .align 4
24160 .byte 0x31
24161 .uaword %r_disp32(foo)
24162 .byte 0x32, 0x33, 0x34
24163 .global foo
24164 .hidden foo
24165 foo:
24166 .skip 4' > conftest.s
24167     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24168   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169   (eval $ac_try) 2>&5
24170   ac_status=$?
24171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172   test $ac_status = 0; }; }
24173     then
24174         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24175          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24176          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24177             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24178             if $gcc_cv_objdump -R conftest 2> /dev/null \
24179                | grep 'DISP32' > /dev/null 2>&1; then
24180                 :
24181             else
24182                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24183             fi
24184          fi
24185          rm -f conftest
24186     else
24187       echo "configure: failed program was" >&5
24188       cat conftest.s >&5
24189     fi
24190     rm -f conftest.o conftest.s
24191   fi
24192 fi
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24194 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24195 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24196
24197 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24198
24199 fi
24200
24201 fi # unaligned pcrel relocs
24202
24203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24204 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24205 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24206   $as_echo_n "(cached) " >&6
24207 else
24208   gcc_cv_as_sparc_offsetable_lo10=no
24209   if test x$gcc_cv_as != x; then
24210     $as_echo '.text
24211         or %g1, %lo(ab) + 12, %g1
24212         or %g1, %lo(ab + 12), %g1' > conftest.s
24213     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24214   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24215   (eval $ac_try) 2>&5
24216   ac_status=$?
24217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24218   test $ac_status = 0; }; }
24219     then
24220         if test x$gcc_cv_objdump != x \
24221        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24222           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24223          gcc_cv_as_sparc_offsetable_lo10=yes
24224        fi
24225     else
24226       echo "configure: failed program was" >&5
24227       cat conftest.s >&5
24228     fi
24229     rm -f conftest.o conftest.s
24230   fi
24231 fi
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24233 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24234 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24235
24236 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24237
24238 fi
24239
24240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24241 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24242 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24243   $as_echo_n "(cached) " >&6
24244 else
24245   gcc_cv_as_sparc_fmaf=no
24246   if test x$gcc_cv_as != x; then
24247     $as_echo '.text
24248        .register %g2, #scratch
24249        .register %g3, #scratch
24250        .align 4
24251        fmaddd %f0, %f2, %f4, %f6
24252        addxccc %g1, %g2, %g3
24253        fsrl32 %f2, %f4, %f8
24254        fnaddd %f10, %f12, %f14' > conftest.s
24255     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24256   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257   (eval $ac_try) 2>&5
24258   ac_status=$?
24259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260   test $ac_status = 0; }; }
24261     then
24262         gcc_cv_as_sparc_fmaf=yes
24263     else
24264       echo "configure: failed program was" >&5
24265       cat conftest.s >&5
24266     fi
24267     rm -f conftest.o conftest.s
24268   fi
24269 fi
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24271 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24272 if test $gcc_cv_as_sparc_fmaf = yes; then
24273
24274 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24275
24276 fi
24277     ;;
24278
24279   i[34567]86-*-* | x86_64-*-*)
24280     case $target_os in
24281       cygwin*)
24282         # Full C++ conformance when using a shared libstdc++-v3 requires some
24283         # support from the Cygwin DLL, which in more recent versions exports
24284         # wrappers to aid in interposing and redirecting operators new, delete,
24285         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24286         # are configuring for a version of Cygwin that exports the wrappers.
24287         if test x$host = x$target; then
24288           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24289 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24290   gcc_ac_cygwin_dll_wrappers=yes
24291 else
24292   gcc_ac_cygwin_dll_wrappers=no
24293 fi
24294
24295         else
24296           # Can't check presence of libc functions during cross-compile, so
24297           # we just have to assume we're building for an up-to-date target.
24298           gcc_ac_cygwin_dll_wrappers=yes
24299         fi
24300
24301 cat >>confdefs.h <<_ACEOF
24302 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24303 _ACEOF
24304
24305     esac
24306     case $target_os in
24307       cygwin* | pe | mingw32*)
24308         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24309         # definition is used unconditionally to initialise the default state of
24310         # the target option variable that governs usage of the feature.
24311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24312 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24313 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24314   $as_echo_n "(cached) " >&6
24315 else
24316   gcc_cv_as_comm_has_align=no
24317     if test $in_tree_gas = yes; then
24318     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24319   then gcc_cv_as_comm_has_align=yes
24320 fi
24321   elif test x$gcc_cv_as != x; then
24322     $as_echo '.comm foo,1,32' > conftest.s
24323     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24324   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24325   (eval $ac_try) 2>&5
24326   ac_status=$?
24327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24328   test $ac_status = 0; }; }
24329     then
24330         gcc_cv_as_comm_has_align=yes
24331     else
24332       echo "configure: failed program was" >&5
24333       cat conftest.s >&5
24334     fi
24335     rm -f conftest.o conftest.s
24336   fi
24337 fi
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24339 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24340
24341
24342 cat >>confdefs.h <<_ACEOF
24343 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24344 _ACEOF
24345
24346         # Used for DWARF 2 in PE
24347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24348 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24349 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24350   $as_echo_n "(cached) " >&6
24351 else
24352   gcc_cv_as_ix86_pe_secrel32=no
24353     if test $in_tree_gas = yes; then
24354     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24355   then gcc_cv_as_ix86_pe_secrel32=yes
24356 fi
24357   elif test x$gcc_cv_as != x; then
24358     $as_echo '.text
24359 foo:    nop
24360 .data
24361         .secrel32 foo' > conftest.s
24362     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24363   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24364   (eval $ac_try) 2>&5
24365   ac_status=$?
24366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24367   test $ac_status = 0; }; }
24368     then
24369         if test x$gcc_cv_ld != x \
24370            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24371              gcc_cv_as_ix86_pe_secrel32=yes
24372            fi
24373            rm -f conftest
24374     else
24375       echo "configure: failed program was" >&5
24376       cat conftest.s >&5
24377     fi
24378     rm -f conftest.o conftest.s
24379   fi
24380 fi
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24382 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24383 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24384
24385 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24386
24387 fi
24388         # Test if the assembler supports the extended form of the .section
24389         # directive that specifies section alignment.  LTO support uses this,
24390         # but normally only after installation, so we warn but don't fail the
24391         # configure if LTO is enabled but the assembler does not support it.
24392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24393 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24394 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24395   $as_echo_n "(cached) " >&6
24396 else
24397   gcc_cv_as_section_has_align=no
24398     if test $in_tree_gas = yes; then
24399     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24400   then gcc_cv_as_section_has_align=yes
24401 fi
24402   elif test x$gcc_cv_as != x; then
24403     $as_echo '.section lto_test,"dr0"' > conftest.s
24404     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24405   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24406   (eval $ac_try) 2>&5
24407   ac_status=$?
24408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24409   test $ac_status = 0; }; }
24410     then
24411         gcc_cv_as_section_has_align=yes
24412     else
24413       echo "configure: failed program was" >&5
24414       cat conftest.s >&5
24415     fi
24416     rm -f conftest.o conftest.s
24417   fi
24418 fi
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24420 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24421
24422         if test x$gcc_cv_as_section_has_align != xyes; then
24423           case ",$enable_languages," in
24424             *,lto,*)
24425               { $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
24426 $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;}
24427               ;;
24428           esac
24429         fi
24430         # Test if the assembler supports the section flag 'e' for specifying
24431         # an excluded section.
24432         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24433 $as_echo_n "checking assembler for .section with e... " >&6; }
24434 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24435   $as_echo_n "(cached) " >&6
24436 else
24437   gcc_cv_as_section_has_e=no
24438     if test $in_tree_gas = yes; then
24439     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24440   then gcc_cv_as_section_has_e=yes
24441 fi
24442   elif test x$gcc_cv_as != x; then
24443     $as_echo '.section foo1,"e"
24444 .byte 0,0,0,0' > conftest.s
24445     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24446   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447   (eval $ac_try) 2>&5
24448   ac_status=$?
24449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450   test $ac_status = 0; }; }
24451     then
24452         gcc_cv_as_section_has_e=yes
24453     else
24454       echo "configure: failed program was" >&5
24455       cat conftest.s >&5
24456     fi
24457     rm -f conftest.o conftest.s
24458   fi
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24461 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24462
24463
24464 cat >>confdefs.h <<_ACEOF
24465 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24466 _ACEOF
24467
24468         ;;
24469     esac
24470
24471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24472 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24473 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24474   $as_echo_n "(cached) " >&6
24475 else
24476   gcc_cv_as_ix86_filds=no
24477   if test x$gcc_cv_as != x; then
24478     $as_echo 'filds mem; fists mem' > conftest.s
24479     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481   (eval $ac_try) 2>&5
24482   ac_status=$?
24483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484   test $ac_status = 0; }; }
24485     then
24486         gcc_cv_as_ix86_filds=yes
24487     else
24488       echo "configure: failed program was" >&5
24489       cat conftest.s >&5
24490     fi
24491     rm -f conftest.o conftest.s
24492   fi
24493 fi
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24495 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24496 if test $gcc_cv_as_ix86_filds = yes; then
24497
24498 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24499
24500 fi
24501
24502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24503 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24504 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24505   $as_echo_n "(cached) " >&6
24506 else
24507   gcc_cv_as_ix86_fildq=no
24508   if test x$gcc_cv_as != x; then
24509     $as_echo 'fildq mem; fistpq mem' > conftest.s
24510     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24511   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24512   (eval $ac_try) 2>&5
24513   ac_status=$?
24514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24515   test $ac_status = 0; }; }
24516     then
24517         gcc_cv_as_ix86_fildq=yes
24518     else
24519       echo "configure: failed program was" >&5
24520       cat conftest.s >&5
24521     fi
24522     rm -f conftest.o conftest.s
24523   fi
24524 fi
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24526 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24527 if test $gcc_cv_as_ix86_fildq = yes; then
24528
24529 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24530
24531 fi
24532
24533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24534 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24535 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24536   $as_echo_n "(cached) " >&6
24537 else
24538   gcc_cv_as_ix86_cmov_sun_syntax=no
24539   if test x$gcc_cv_as != x; then
24540     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24541     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24542   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24546   test $ac_status = 0; }; }
24547     then
24548         gcc_cv_as_ix86_cmov_sun_syntax=yes
24549     else
24550       echo "configure: failed program was" >&5
24551       cat conftest.s >&5
24552     fi
24553     rm -f conftest.o conftest.s
24554   fi
24555 fi
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24557 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24558 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24559
24560 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24561
24562 fi
24563
24564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24565 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24566 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24567   $as_echo_n "(cached) " >&6
24568 else
24569   gcc_cv_as_ix86_ffreep=no
24570   if test x$gcc_cv_as != x; then
24571     $as_echo 'ffreep %st(1)' > conftest.s
24572     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24573   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24574   (eval $ac_try) 2>&5
24575   ac_status=$?
24576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577   test $ac_status = 0; }; }
24578     then
24579         gcc_cv_as_ix86_ffreep=yes
24580     else
24581       echo "configure: failed program was" >&5
24582       cat conftest.s >&5
24583     fi
24584     rm -f conftest.o conftest.s
24585   fi
24586 fi
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24588 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24589 if test $gcc_cv_as_ix86_ffreep = yes; then
24590
24591 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24592
24593 fi
24594
24595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24596 $as_echo_n "checking assembler for .quad directive... " >&6; }
24597 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24598   $as_echo_n "(cached) " >&6
24599 else
24600   gcc_cv_as_ix86_quad=no
24601   if test x$gcc_cv_as != x; then
24602     $as_echo '.quad 0' > conftest.s
24603     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24604   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24605   (eval $ac_try) 2>&5
24606   ac_status=$?
24607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24608   test $ac_status = 0; }; }
24609     then
24610         gcc_cv_as_ix86_quad=yes
24611     else
24612       echo "configure: failed program was" >&5
24613       cat conftest.s >&5
24614     fi
24615     rm -f conftest.o conftest.s
24616   fi
24617 fi
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24619 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24620 if test $gcc_cv_as_ix86_quad = yes; then
24621
24622 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24623
24624 fi
24625
24626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24627 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24628 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24629   $as_echo_n "(cached) " >&6
24630 else
24631   gcc_cv_as_ix86_sahf=no
24632   if test x$gcc_cv_as != x; then
24633     $as_echo '.code64
24634        sahf' > conftest.s
24635     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24636   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24637   (eval $ac_try) 2>&5
24638   ac_status=$?
24639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24640   test $ac_status = 0; }; }
24641     then
24642         gcc_cv_as_ix86_sahf=yes
24643     else
24644       echo "configure: failed program was" >&5
24645       cat conftest.s >&5
24646     fi
24647     rm -f conftest.o conftest.s
24648   fi
24649 fi
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24651 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24652 if test $gcc_cv_as_ix86_sahf = yes; then
24653
24654 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24655
24656 fi
24657
24658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24659 $as_echo_n "checking assembler for swap suffix... " >&6; }
24660 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24661   $as_echo_n "(cached) " >&6
24662 else
24663   gcc_cv_as_ix86_swap=no
24664   if test x$gcc_cv_as != x; then
24665     $as_echo 'movl.s %esp, %ebp' > conftest.s
24666     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24667   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668   (eval $ac_try) 2>&5
24669   ac_status=$?
24670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671   test $ac_status = 0; }; }
24672     then
24673         gcc_cv_as_ix86_swap=yes
24674     else
24675       echo "configure: failed program was" >&5
24676       cat conftest.s >&5
24677     fi
24678     rm -f conftest.o conftest.s
24679   fi
24680 fi
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24682 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24683 if test $gcc_cv_as_ix86_swap = yes; then
24684
24685 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24686
24687 fi
24688
24689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24690 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24691 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24692   $as_echo_n "(cached) " >&6
24693 else
24694   gcc_cv_as_ix86_diff_sect_delta=no
24695   if test x$gcc_cv_as != x; then
24696     $as_echo '.section .rodata
24697 .L1:
24698         .long .L2-.L1
24699         .long .L3-.L1
24700         .text
24701 .L3:    nop
24702 .L2:    nop' > conftest.s
24703     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24704   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24705   (eval $ac_try) 2>&5
24706   ac_status=$?
24707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24708   test $ac_status = 0; }; }
24709     then
24710         gcc_cv_as_ix86_diff_sect_delta=yes
24711     else
24712       echo "configure: failed program was" >&5
24713       cat conftest.s >&5
24714     fi
24715     rm -f conftest.o conftest.s
24716   fi
24717 fi
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24719 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24720 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24721
24722 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24723
24724 fi
24725
24726     # These two are used unconditionally by i386.[ch]; it is to be defined
24727     # to 1 if the feature is present, 0 otherwise.
24728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24729 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24730 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24731   $as_echo_n "(cached) " >&6
24732 else
24733   gcc_cv_as_ix86_gotoff_in_data=no
24734     if test $in_tree_gas = yes; then
24735     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24736   then gcc_cv_as_ix86_gotoff_in_data=yes
24737 fi
24738   elif test x$gcc_cv_as != x; then
24739     $as_echo '  .text
24740 .L0:
24741         nop
24742         .data
24743         .long .L0@GOTOFF' > conftest.s
24744     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24745   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24746   (eval $ac_try) 2>&5
24747   ac_status=$?
24748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24749   test $ac_status = 0; }; }
24750     then
24751         gcc_cv_as_ix86_gotoff_in_data=yes
24752     else
24753       echo "configure: failed program was" >&5
24754       cat conftest.s >&5
24755     fi
24756     rm -f conftest.o conftest.s
24757   fi
24758 fi
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24760 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24761
24762
24763 cat >>confdefs.h <<_ACEOF
24764 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24765 _ACEOF
24766
24767
24768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24769 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24770 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24771   $as_echo_n "(cached) " >&6
24772 else
24773   gcc_cv_as_ix86_rep_lock_prefix=no
24774   if test x$gcc_cv_as != x; then
24775     $as_echo 'rep movsl
24776          lock addl %edi, (%eax,%esi)
24777          lock orl $0, (%esp)' > conftest.s
24778     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24779   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780   (eval $ac_try) 2>&5
24781   ac_status=$?
24782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783   test $ac_status = 0; }; }
24784     then
24785         gcc_cv_as_ix86_rep_lock_prefix=yes
24786     else
24787       echo "configure: failed program was" >&5
24788       cat conftest.s >&5
24789     fi
24790     rm -f conftest.o conftest.s
24791   fi
24792 fi
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24794 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24795 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24796
24797 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24798
24799 fi
24800
24801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24802 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24803 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24804   $as_echo_n "(cached) " >&6
24805 else
24806   gcc_cv_as_ix86_tlsgdplt=no
24807   if test x$gcc_cv_as != x; then
24808     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24809     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24810   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24811   (eval $ac_try) 2>&5
24812   ac_status=$?
24813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814   test $ac_status = 0; }; }
24815     then
24816         gcc_cv_as_ix86_tlsgdplt=yes
24817     else
24818       echo "configure: failed program was" >&5
24819       cat conftest.s >&5
24820     fi
24821     rm -f conftest.o conftest.s
24822   fi
24823 fi
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24825 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24826 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24827
24828 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24829
24830 fi
24831
24832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24833 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24834 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24835   $as_echo_n "(cached) " >&6
24836 else
24837   gcc_cv_as_ix86_tlsldmplt=no
24838   if test x$gcc_cv_as != x; then
24839     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24840     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24841   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845   test $ac_status = 0; }; }
24846     then
24847         gcc_cv_as_ix86_tlsldmplt=yes
24848     else
24849       echo "configure: failed program was" >&5
24850       cat conftest.s >&5
24851     fi
24852     rm -f conftest.o conftest.s
24853   fi
24854 fi
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24856 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24857 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24858
24859 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24860
24861 fi
24862
24863     ;;
24864
24865   ia64*-*-*)
24866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24867 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24868 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24869   $as_echo_n "(cached) " >&6
24870 else
24871   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24872     if test $in_tree_gas = yes; then
24873     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24874   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24875 fi
24876   elif test x$gcc_cv_as != x; then
24877     $as_echo '  .text
24878         addl r15 = @ltoffx(x#), gp
24879         ;;
24880         ld8.mov r16 = [r15], x#' > conftest.s
24881     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24882   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883   (eval $ac_try) 2>&5
24884   ac_status=$?
24885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886   test $ac_status = 0; }; }
24887     then
24888         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24889     else
24890       echo "configure: failed program was" >&5
24891       cat conftest.s >&5
24892     fi
24893     rm -f conftest.o conftest.s
24894   fi
24895 fi
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24897 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24898 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24899
24900 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24901
24902 fi
24903
24904     ;;
24905
24906   powerpc*-*-*)
24907     case $target in
24908       *-*-aix*) conftest_s='    .machine "pwr5"
24909         .csect .text[PR]
24910         mfcr 3,128';;
24911       *-*-darwin*)
24912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24913 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24914 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24915   $as_echo_n "(cached) " >&6
24916 else
24917   gcc_cv_as_machine_directive=no
24918   if test x$gcc_cv_as != x; then
24919     $as_echo '  .machine ppc7400' > conftest.s
24920     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24921   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922   (eval $ac_try) 2>&5
24923   ac_status=$?
24924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925   test $ac_status = 0; }; }
24926     then
24927         gcc_cv_as_machine_directive=yes
24928     else
24929       echo "configure: failed program was" >&5
24930       cat conftest.s >&5
24931     fi
24932     rm -f conftest.o conftest.s
24933   fi
24934 fi
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24936 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24937
24938         if test x$gcc_cv_as_machine_directive != xyes; then
24939           echo "*** This target requires an assembler supporting \".machine\"" >&2
24940           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24941           test x$build = x$target && exit 1
24942         fi
24943         conftest_s='    .text
24944         mfcr r3,128';;
24945       *) conftest_s='   .machine power4
24946         .text
24947         mfcr 3,128';;
24948     esac
24949
24950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24951 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24952 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24953   $as_echo_n "(cached) " >&6
24954 else
24955   gcc_cv_as_powerpc_mfcrf=no
24956     if test $in_tree_gas = yes; then
24957     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24958   then gcc_cv_as_powerpc_mfcrf=yes
24959 fi
24960   elif test x$gcc_cv_as != x; then
24961     $as_echo "$conftest_s" > 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         gcc_cv_as_powerpc_mfcrf=yes
24970     else
24971       echo "configure: failed program was" >&5
24972       cat conftest.s >&5
24973     fi
24974     rm -f conftest.o conftest.s
24975   fi
24976 fi
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24978 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24979 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24980
24981 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24982
24983 fi
24984
24985     case $target in
24986       *-*-aix*) conftest_s='    .machine "pwr5"
24987         .csect .text[PR]
24988         popcntb 3,3';;
24989       *) conftest_s='   .machine power5
24990         .text
24991         popcntb 3,3';;
24992     esac
24993
24994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24995 $as_echo_n "checking assembler for popcntb support... " >&6; }
24996 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24997   $as_echo_n "(cached) " >&6
24998 else
24999   gcc_cv_as_powerpc_popcntb=no
25000     if test $in_tree_gas = yes; then
25001     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25002   then gcc_cv_as_powerpc_popcntb=yes
25003 fi
25004   elif test x$gcc_cv_as != x; then
25005     $as_echo "$conftest_s" > conftest.s
25006     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25007   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008   (eval $ac_try) 2>&5
25009   ac_status=$?
25010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011   test $ac_status = 0; }; }
25012     then
25013         gcc_cv_as_powerpc_popcntb=yes
25014     else
25015       echo "configure: failed program was" >&5
25016       cat conftest.s >&5
25017     fi
25018     rm -f conftest.o conftest.s
25019   fi
25020 fi
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25022 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25023 if test $gcc_cv_as_powerpc_popcntb = yes; then
25024
25025 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25026
25027 fi
25028
25029     case $target in
25030       *-*-aix*) conftest_s='    .machine "pwr5x"
25031         .csect .text[PR]
25032         frin 1,1';;
25033       *) conftest_s='   .machine power5
25034         .text
25035         frin 1,1';;
25036     esac
25037
25038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25039 $as_echo_n "checking assembler for fp round support... " >&6; }
25040 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25041   $as_echo_n "(cached) " >&6
25042 else
25043   gcc_cv_as_powerpc_fprnd=no
25044     if test $in_tree_gas = yes; then
25045     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25046   then gcc_cv_as_powerpc_fprnd=yes
25047 fi
25048   elif test x$gcc_cv_as != x; then
25049     $as_echo "$conftest_s" > conftest.s
25050     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25051   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25052   (eval $ac_try) 2>&5
25053   ac_status=$?
25054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25055   test $ac_status = 0; }; }
25056     then
25057         gcc_cv_as_powerpc_fprnd=yes
25058     else
25059       echo "configure: failed program was" >&5
25060       cat conftest.s >&5
25061     fi
25062     rm -f conftest.o conftest.s
25063   fi
25064 fi
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25066 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25067 if test $gcc_cv_as_powerpc_fprnd = yes; then
25068
25069 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25070
25071 fi
25072
25073     case $target in
25074       *-*-aix*) conftest_s='    .machine "pwr6"
25075         .csect .text[PR]
25076         mffgpr 1,3';;
25077       *) conftest_s='   .machine power6
25078         .text
25079         mffgpr 1,3';;
25080     esac
25081
25082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25083 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25084 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25085   $as_echo_n "(cached) " >&6
25086 else
25087   gcc_cv_as_powerpc_mfpgpr=no
25088     if test $in_tree_gas = yes; then
25089     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25090   then gcc_cv_as_powerpc_mfpgpr=yes
25091 fi
25092   elif test x$gcc_cv_as != x; then
25093     $as_echo "$conftest_s" > conftest.s
25094     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25095   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25096   (eval $ac_try) 2>&5
25097   ac_status=$?
25098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25099   test $ac_status = 0; }; }
25100     then
25101         gcc_cv_as_powerpc_mfpgpr=yes
25102     else
25103       echo "configure: failed program was" >&5
25104       cat conftest.s >&5
25105     fi
25106     rm -f conftest.o conftest.s
25107   fi
25108 fi
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25110 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25111 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25112
25113 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25114
25115 fi
25116
25117     case $target in
25118       *-*-aix*) conftest_s='    .csect .text[PR]
25119 LCF..0:
25120         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25121       *-*-darwin*)
25122         conftest_s='    .text
25123 LCF0:
25124         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25125       *) conftest_s='   .text
25126 .LCF0:
25127         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25128     esac
25129
25130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25131 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25132 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25133   $as_echo_n "(cached) " >&6
25134 else
25135   gcc_cv_as_powerpc_rel16=no
25136     if test $in_tree_gas = yes; then
25137     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25138   then gcc_cv_as_powerpc_rel16=yes
25139 fi
25140   elif test x$gcc_cv_as != x; then
25141     $as_echo "$conftest_s" > conftest.s
25142     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25143   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25144   (eval $ac_try) 2>&5
25145   ac_status=$?
25146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25147   test $ac_status = 0; }; }
25148     then
25149         gcc_cv_as_powerpc_rel16=yes
25150     else
25151       echo "configure: failed program was" >&5
25152       cat conftest.s >&5
25153     fi
25154     rm -f conftest.o conftest.s
25155   fi
25156 fi
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25158 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25159 if test $gcc_cv_as_powerpc_rel16 = yes; then
25160
25161 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25162
25163 fi
25164
25165     case $target in
25166       *-*-aix*) conftest_s='    .machine "pwr6"
25167         .csect .text[PR]
25168         cmpb 3,4,5';;
25169       *) conftest_s='   .machine power6
25170         .text
25171         cmpb 3,4,5';;
25172     esac
25173
25174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25175 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25176 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25177   $as_echo_n "(cached) " >&6
25178 else
25179   gcc_cv_as_powerpc_cmpb=no
25180     if test $in_tree_gas = yes; then
25181     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25182   then gcc_cv_as_powerpc_cmpb=yes
25183 fi
25184   elif test x$gcc_cv_as != x; then
25185     $as_echo "$conftest_s" > conftest.s
25186     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25187   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188   (eval $ac_try) 2>&5
25189   ac_status=$?
25190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191   test $ac_status = 0; }; }
25192     then
25193         gcc_cv_as_powerpc_cmpb=yes
25194     else
25195       echo "configure: failed program was" >&5
25196       cat conftest.s >&5
25197     fi
25198     rm -f conftest.o conftest.s
25199   fi
25200 fi
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25202 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25203 if test $gcc_cv_as_powerpc_cmpb = yes; then
25204
25205 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25206
25207 fi
25208
25209     case $target in
25210       *-*-aix*) conftest_s='    .machine "pwr6"
25211         .csect .text[PR]
25212         dadd 1,2,3';;
25213       *) conftest_s='   .machine power6
25214         .text
25215         dadd 1,2,3';;
25216     esac
25217
25218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25219 $as_echo_n "checking assembler for decimal float support... " >&6; }
25220 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25221   $as_echo_n "(cached) " >&6
25222 else
25223   gcc_cv_as_powerpc_dfp=no
25224     if test $in_tree_gas = yes; then
25225     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25226   then gcc_cv_as_powerpc_dfp=yes
25227 fi
25228   elif test x$gcc_cv_as != x; then
25229     $as_echo "$conftest_s" > conftest.s
25230     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25231   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25232   (eval $ac_try) 2>&5
25233   ac_status=$?
25234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25235   test $ac_status = 0; }; }
25236     then
25237         gcc_cv_as_powerpc_dfp=yes
25238     else
25239       echo "configure: failed program was" >&5
25240       cat conftest.s >&5
25241     fi
25242     rm -f conftest.o conftest.s
25243   fi
25244 fi
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25246 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25247 if test $gcc_cv_as_powerpc_dfp = yes; then
25248
25249 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25250
25251 fi
25252
25253     case $target in
25254       *-*-aix*) conftest_s='    .machine "pwr7"
25255         .csect .text[PR]
25256         lxvd2x 1,2,3';;
25257       *) conftest_s='   .machine power7
25258         .text
25259         lxvd2x 1,2,3';;
25260     esac
25261
25262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25263 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25264 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25265   $as_echo_n "(cached) " >&6
25266 else
25267   gcc_cv_as_powerpc_vsx=no
25268     if test $in_tree_gas = yes; then
25269     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25270   then gcc_cv_as_powerpc_vsx=yes
25271 fi
25272   elif test x$gcc_cv_as != x; then
25273     $as_echo "$conftest_s" > conftest.s
25274     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25275   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25276   (eval $ac_try) 2>&5
25277   ac_status=$?
25278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25279   test $ac_status = 0; }; }
25280     then
25281         gcc_cv_as_powerpc_vsx=yes
25282     else
25283       echo "configure: failed program was" >&5
25284       cat conftest.s >&5
25285     fi
25286     rm -f conftest.o conftest.s
25287   fi
25288 fi
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25290 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25291 if test $gcc_cv_as_powerpc_vsx = yes; then
25292
25293 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25294
25295 fi
25296
25297     case $target in
25298       *-*-aix*) conftest_s='    .machine "pwr7"
25299         .csect .text[PR]
25300         popcntd 3,3';;
25301       *) conftest_s='   .machine power7
25302         .text
25303         popcntd 3,3';;
25304     esac
25305
25306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25307 $as_echo_n "checking assembler for popcntd support... " >&6; }
25308 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25309   $as_echo_n "(cached) " >&6
25310 else
25311   gcc_cv_as_powerpc_popcntd=no
25312     if test $in_tree_gas = yes; then
25313     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25314   then gcc_cv_as_powerpc_popcntd=yes
25315 fi
25316   elif test x$gcc_cv_as != x; then
25317     $as_echo "$conftest_s" > conftest.s
25318     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25319   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320   (eval $ac_try) 2>&5
25321   ac_status=$?
25322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323   test $ac_status = 0; }; }
25324     then
25325         gcc_cv_as_powerpc_popcntd=yes
25326     else
25327       echo "configure: failed program was" >&5
25328       cat conftest.s >&5
25329     fi
25330     rm -f conftest.o conftest.s
25331   fi
25332 fi
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25334 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25335 if test $gcc_cv_as_powerpc_popcntd = yes; then
25336
25337 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25338
25339 fi
25340
25341     case $target in
25342       *-*-aix*) conftest_s='    .csect .text[PR]
25343         lwsync';;
25344       *) conftest_s='   .text
25345         lwsync';;
25346     esac
25347
25348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25349 $as_echo_n "checking assembler for lwsync support... " >&6; }
25350 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25351   $as_echo_n "(cached) " >&6
25352 else
25353   gcc_cv_as_powerpc_lwsync=no
25354     if test $in_tree_gas = yes; then
25355     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25356   then gcc_cv_as_powerpc_lwsync=yes
25357 fi
25358   elif test x$gcc_cv_as != x; then
25359     $as_echo "$conftest_s" > conftest.s
25360     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25361   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362   (eval $ac_try) 2>&5
25363   ac_status=$?
25364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365   test $ac_status = 0; }; }
25366     then
25367         gcc_cv_as_powerpc_lwsync=yes
25368     else
25369       echo "configure: failed program was" >&5
25370       cat conftest.s >&5
25371     fi
25372     rm -f conftest.o conftest.s
25373   fi
25374 fi
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25376 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25377 if test $gcc_cv_as_powerpc_lwsync = yes; then
25378
25379 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25380
25381 fi
25382
25383     case $target in
25384       *-*-aix*) conftest_s='    .machine "476"
25385         .csect .text[PR]
25386         dci 0';;
25387       *) conftest_s='   .machine "476"
25388         .text
25389         dci 0';;
25390     esac
25391
25392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25393 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25394 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25395   $as_echo_n "(cached) " >&6
25396 else
25397   gcc_cv_as_powerpc_dci=no
25398     if test $in_tree_gas = yes; then
25399     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25400   then gcc_cv_as_powerpc_dci=yes
25401 fi
25402   elif test x$gcc_cv_as != x; then
25403     $as_echo "$conftest_s" > conftest.s
25404     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25405   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25406   (eval $ac_try) 2>&5
25407   ac_status=$?
25408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25409   test $ac_status = 0; }; }
25410     then
25411         gcc_cv_as_powerpc_dci=yes
25412     else
25413       echo "configure: failed program was" >&5
25414       cat conftest.s >&5
25415     fi
25416     rm -f conftest.o conftest.s
25417   fi
25418 fi
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25420 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25421 if test $gcc_cv_as_powerpc_dci = yes; then
25422
25423 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25424
25425 fi
25426
25427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25428 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25429 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25430   $as_echo_n "(cached) " >&6
25431 else
25432   gcc_cv_as_powerpc_gnu_attribute=no
25433     if test $in_tree_gas = yes; then
25434     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25435   then gcc_cv_as_powerpc_gnu_attribute=yes
25436 fi
25437   elif test x$gcc_cv_as != x; then
25438     $as_echo '.gnu_attribute 4,1' > conftest.s
25439     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25440   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441   (eval $ac_try) 2>&5
25442   ac_status=$?
25443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444   test $ac_status = 0; }; }
25445     then
25446         gcc_cv_as_powerpc_gnu_attribute=yes
25447     else
25448       echo "configure: failed program was" >&5
25449       cat conftest.s >&5
25450     fi
25451     rm -f conftest.o conftest.s
25452   fi
25453 fi
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25455 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25456 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25457
25458 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25459
25460 fi
25461
25462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25463 $as_echo_n "checking assembler for tls marker support... " >&6; }
25464 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25465   $as_echo_n "(cached) " >&6
25466 else
25467   gcc_cv_as_powerpc_tls_markers=no
25468     if test $in_tree_gas = yes; then
25469     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25470   then gcc_cv_as_powerpc_tls_markers=yes
25471 fi
25472   elif test x$gcc_cv_as != x; then
25473     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25474     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25475   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476   (eval $ac_try) 2>&5
25477   ac_status=$?
25478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479   test $ac_status = 0; }; }
25480     then
25481         gcc_cv_as_powerpc_tls_markers=yes
25482     else
25483       echo "configure: failed program was" >&5
25484       cat conftest.s >&5
25485     fi
25486     rm -f conftest.o conftest.s
25487   fi
25488 fi
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25490 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25491 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25492
25493 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25494
25495 fi
25496
25497     case $target in
25498       *-*-aix*)
25499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25500 $as_echo_n "checking assembler for .ref support... " >&6; }
25501 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25502   $as_echo_n "(cached) " >&6
25503 else
25504   gcc_cv_as_aix_ref=no
25505     if test $in_tree_gas = yes; then
25506     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25507   then :
25508 fi
25509   elif test x$gcc_cv_as != x; then
25510     $as_echo '  .csect stuff[rw]
25511              stuff:
25512                 .long 1
25513                 .extern sym
25514                 .ref sym
25515           ' > conftest.s
25516     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25517   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521   test $ac_status = 0; }; }
25522     then
25523         gcc_cv_as_aix_ref=yes
25524     else
25525       echo "configure: failed program was" >&5
25526       cat conftest.s >&5
25527     fi
25528     rm -f conftest.o conftest.s
25529   fi
25530 fi
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25532 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25533 if test $gcc_cv_as_aix_ref = yes; then
25534
25535 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25536
25537 fi
25538         ;;
25539     esac
25540     ;;
25541
25542   mips*-*-*)
25543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25544 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25545 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25546   $as_echo_n "(cached) " >&6
25547 else
25548   gcc_cv_as_mips_explicit_relocs=no
25549     if test $in_tree_gas = yes; then
25550     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25551   then gcc_cv_as_mips_explicit_relocs=yes
25552 fi
25553   elif test x$gcc_cv_as != x; then
25554     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25555     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25556   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557   (eval $ac_try) 2>&5
25558   ac_status=$?
25559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560   test $ac_status = 0; }; }
25561     then
25562         gcc_cv_as_mips_explicit_relocs=yes
25563     else
25564       echo "configure: failed program was" >&5
25565       cat conftest.s >&5
25566     fi
25567     rm -f conftest.o conftest.s
25568   fi
25569 fi
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25571 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25572 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25573   if test x$target_cpu_default = x
25574        then target_cpu_default=MASK_EXPLICIT_RELOCS
25575        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25576        fi
25577 fi
25578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25579 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25580 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25581   $as_echo_n "(cached) " >&6
25582 else
25583   gcc_cv_as_mips_no_shared=no
25584     if test $in_tree_gas = yes; then
25585     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25586   then gcc_cv_as_mips_no_shared=yes
25587 fi
25588   elif test x$gcc_cv_as != x; then
25589     $as_echo 'nop' > conftest.s
25590     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25591   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592   (eval $ac_try) 2>&5
25593   ac_status=$?
25594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595   test $ac_status = 0; }; }
25596     then
25597         gcc_cv_as_mips_no_shared=yes
25598     else
25599       echo "configure: failed program was" >&5
25600       cat conftest.s >&5
25601     fi
25602     rm -f conftest.o conftest.s
25603   fi
25604 fi
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25606 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25607 if test $gcc_cv_as_mips_no_shared = yes; then
25608
25609 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25610
25611 fi
25612
25613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25614 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25615 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25616   $as_echo_n "(cached) " >&6
25617 else
25618   gcc_cv_as_mips_gnu_attribute=no
25619     if test $in_tree_gas = yes; then
25620     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25621   then gcc_cv_as_mips_gnu_attribute=yes
25622 fi
25623   elif test x$gcc_cv_as != x; then
25624     $as_echo '.gnu_attribute 4,1' > conftest.s
25625     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25626   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627   (eval $ac_try) 2>&5
25628   ac_status=$?
25629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630   test $ac_status = 0; }; }
25631     then
25632         gcc_cv_as_mips_gnu_attribute=yes
25633     else
25634       echo "configure: failed program was" >&5
25635       cat conftest.s >&5
25636     fi
25637     rm -f conftest.o conftest.s
25638   fi
25639 fi
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25641 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25642 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25643
25644 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25645
25646 fi
25647
25648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25649 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25650 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25651   $as_echo_n "(cached) " >&6
25652 else
25653   gcc_cv_as_mips_dtprelword=no
25654     if test $in_tree_gas = yes; then
25655     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25656   then gcc_cv_as_mips_dtprelword=yes
25657 fi
25658   elif test x$gcc_cv_as != x; then
25659     $as_echo '.section .tdata,"awT",@progbits
25660 x:
25661         .word 2
25662         .text
25663         .dtprelword x+0x8000' > conftest.s
25664     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25665   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666   (eval $ac_try) 2>&5
25667   ac_status=$?
25668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669   test $ac_status = 0; }; }
25670     then
25671         gcc_cv_as_mips_dtprelword=yes
25672     else
25673       echo "configure: failed program was" >&5
25674       cat conftest.s >&5
25675     fi
25676     rm -f conftest.o conftest.s
25677   fi
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25680 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25681 if test $gcc_cv_as_mips_dtprelword = yes; then
25682
25683 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25684
25685 fi
25686
25687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25688 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25689 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25690   $as_echo_n "(cached) " >&6
25691 else
25692   gcc_cv_as_mips_dspr1_mult=no
25693   if test x$gcc_cv_as != x; then
25694     $as_echo '  .set    mips32r2
25695         .set    nodspr2
25696         .set    dsp
25697         madd    $ac3,$4,$5
25698         maddu   $ac3,$4,$5
25699         msub    $ac3,$4,$5
25700         msubu   $ac3,$4,$5
25701         mult    $ac3,$4,$5
25702         multu   $ac3,$4,$5' > conftest.s
25703     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25704   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705   (eval $ac_try) 2>&5
25706   ac_status=$?
25707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708   test $ac_status = 0; }; }
25709     then
25710         gcc_cv_as_mips_dspr1_mult=yes
25711     else
25712       echo "configure: failed program was" >&5
25713       cat conftest.s >&5
25714     fi
25715     rm -f conftest.o conftest.s
25716   fi
25717 fi
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25719 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25720 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25721
25722 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25723
25724 fi
25725
25726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25727 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25728     gcc_cv_as_ld_jalr_reloc=no
25729     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25730       if test $in_tree_ld = yes ; then
25731         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 \
25732            && test $in_tree_ld_is_elf = yes; then
25733           gcc_cv_as_ld_jalr_reloc=yes
25734         fi
25735       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25736         echo '  .ent x' > conftest.s
25737         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25738         echo '  ld $25,%call16(y)($28)' >> conftest.s
25739         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25740         echo '1:        jalr $25' >> conftest.s
25741         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25742         echo '1:        jalr $25' >> conftest.s
25743         echo '  .end x' >> conftest.s
25744         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25745            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25746           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25747              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25748             gcc_cv_as_ld_jalr_reloc=yes
25749           fi
25750         fi
25751         rm -f conftest.*
25752       fi
25753     fi
25754     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25755       if test x$target_cpu_default = x; then
25756         target_cpu_default=MASK_RELAX_PIC_CALLS
25757       else
25758         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25759       fi
25760     fi
25761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25762 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25763
25764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25765 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25766 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25767   $as_echo_n "(cached) " >&6
25768 else
25769   gcc_cv_ld_mips_personality_relaxation=no
25770        if test $in_tree_ld = yes ; then
25771          if test "$gcc_cv_gld_major_version" -eq 2 \
25772                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25773                  -o "$gcc_cv_gld_major_version" -gt 2; then
25774            gcc_cv_ld_mips_personality_relaxation=yes
25775          fi
25776        elif test x$gcc_cv_as != x \
25777                  -a x$gcc_cv_ld != x \
25778                  -a x$gcc_cv_readelf != x ; then
25779          cat > conftest.s <<EOF
25780         .cfi_startproc
25781         .cfi_personality 0x80,indirect_ptr
25782         .ent test
25783 test:
25784         nop
25785         .end test
25786         .cfi_endproc
25787
25788         .section .data,"aw",@progbits
25789 indirect_ptr:
25790         .dc.a personality
25791 EOF
25792          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25793             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25794            if $gcc_cv_readelf -d conftest 2>&1 \
25795               | grep TEXTREL > /dev/null 2>&1; then
25796              :
25797            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25798                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25799              :
25800            else
25801              gcc_cv_ld_mips_personality_relaxation=yes
25802            fi
25803          fi
25804        fi
25805        rm -f conftest.s conftest.o conftest
25806 fi
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25808 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25809     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25810
25811 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25812
25813     fi
25814     ;;
25815 esac
25816
25817 # Mips and HP-UX need the GNU assembler.
25818 # Linux on IA64 might be able to use the Intel assembler.
25819
25820 case "$target" in
25821   mips*-*-* | *-*-hpux* )
25822     if test x$gas_flag = xyes \
25823        || test x"$host" != x"$build" \
25824        || test ! -x "$gcc_cv_as" \
25825        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25826       :
25827     else
25828       echo "*** This configuration requires the GNU assembler" >&2
25829       exit 1
25830     fi
25831     ;;
25832 esac
25833
25834 # ??? Not all targets support dwarf2 debug_line, even within a version
25835 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25836 # info to the output file.  So, as supported targets are added to gas 2.11,
25837 # add some instruction here to (also) show we expect this might work.
25838 # ??? Once 2.11 is released, probably need to add first known working
25839 # version to the per-target configury.
25840 case "$cpu_type" in
25841   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25842   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25843     insn="nop"
25844     ;;
25845   ia64 | s390)
25846     insn="nop 0"
25847     ;;
25848   mmix)
25849     insn="swym 0"
25850     ;;
25851 esac
25852 if test x"$insn" != x; then
25853  conftest_s="\
25854         .file 1 \"conftest.s\"
25855         .loc 1 3 0
25856         $insn"
25857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25858 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25859 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25860   $as_echo_n "(cached) " >&6
25861 else
25862   gcc_cv_as_dwarf2_debug_line=no
25863     if test $in_tree_gas = yes; then
25864     if test $in_tree_gas_is_elf = yes \
25865   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25866   then gcc_cv_as_dwarf2_debug_line=yes
25867 fi
25868   elif test x$gcc_cv_as != x; then
25869     $as_echo "$conftest_s" > conftest.s
25870     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25871   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25872   (eval $ac_try) 2>&5
25873   ac_status=$?
25874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25875   test $ac_status = 0; }; }
25876     then
25877         if test x$gcc_cv_objdump != x \
25878    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25879       | grep debug_line > /dev/null 2>&1; then
25880      gcc_cv_as_dwarf2_debug_line=yes
25881    fi
25882     else
25883       echo "configure: failed program was" >&5
25884       cat conftest.s >&5
25885     fi
25886     rm -f conftest.o conftest.s
25887   fi
25888 fi
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25890 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25891
25892
25893 # The .debug_line file table must be in the exact order that
25894 # we specified the files, since these indices are also used
25895 # by DW_AT_decl_file.  Approximate this test by testing if
25896 # the assembler bitches if the same index is assigned twice.
25897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25898 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25899 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25900   $as_echo_n "(cached) " >&6
25901 else
25902   gcc_cv_as_dwarf2_file_buggy=no
25903   if test x$gcc_cv_as != x; then
25904     $as_echo '  .file 1 "foo.s"
25905         .file 1 "bar.s"' > conftest.s
25906     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25907   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908   (eval $ac_try) 2>&5
25909   ac_status=$?
25910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911   test $ac_status = 0; }; }
25912     then
25913         gcc_cv_as_dwarf2_file_buggy=yes
25914     else
25915       echo "configure: failed program was" >&5
25916       cat conftest.s >&5
25917     fi
25918     rm -f conftest.o conftest.s
25919   fi
25920 fi
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25922 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25923
25924
25925  if test $gcc_cv_as_dwarf2_debug_line = yes \
25926  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25927
25928 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25929
25930  fi
25931
25932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25933 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25934 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25935   $as_echo_n "(cached) " >&6
25936 else
25937   gcc_cv_as_gdwarf2_flag=no
25938     if test $in_tree_gas = yes; then
25939     if test $in_tree_gas_is_elf = yes \
25940   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25941   then gcc_cv_as_gdwarf2_flag=yes
25942 fi
25943   elif test x$gcc_cv_as != x; then
25944     $as_echo "$insn" > conftest.s
25945     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25946   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947   (eval $ac_try) 2>&5
25948   ac_status=$?
25949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950   test $ac_status = 0; }; }
25951     then
25952         gcc_cv_as_gdwarf2_flag=yes
25953     else
25954       echo "configure: failed program was" >&5
25955       cat conftest.s >&5
25956     fi
25957     rm -f conftest.o conftest.s
25958   fi
25959 fi
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25961 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25962 if test $gcc_cv_as_gdwarf2_flag = yes; then
25963
25964 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25965
25966 fi
25967
25968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25969 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25970 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25971   $as_echo_n "(cached) " >&6
25972 else
25973   gcc_cv_as_gstabs_flag=no
25974     if test $in_tree_gas = yes; then
25975     if test $in_tree_gas_is_elf = yes \
25976   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25977   then gcc_cv_as_gstabs_flag=yes
25978 fi
25979   elif test x$gcc_cv_as != x; then
25980     $as_echo "$insn" > conftest.s
25981     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25982   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986   test $ac_status = 0; }; }
25987     then
25988         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25989    # and warns about it, but still exits successfully.  So check for
25990    # this.
25991    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25992   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25993   (eval $ac_try) 2>&5
25994   ac_status=$?
25995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25996   test $ac_status = 0; }; }
25997    then :
25998    else gcc_cv_as_gstabs_flag=yes
25999    fi
26000     else
26001       echo "configure: failed program was" >&5
26002       cat conftest.s >&5
26003     fi
26004     rm -f conftest.o conftest.s
26005   fi
26006 fi
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26008 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26009 if test $gcc_cv_as_gstabs_flag = yes; then
26010
26011 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26012
26013 fi
26014
26015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26016 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26017 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26018   $as_echo_n "(cached) " >&6
26019 else
26020   gcc_cv_as_debug_prefix_map_flag=no
26021     if test $in_tree_gas = yes; then
26022     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26023   then gcc_cv_as_debug_prefix_map_flag=yes
26024 fi
26025   elif test x$gcc_cv_as != x; then
26026     $as_echo "$insn" > conftest.s
26027     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26028   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26029   (eval $ac_try) 2>&5
26030   ac_status=$?
26031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26032   test $ac_status = 0; }; }
26033     then
26034         gcc_cv_as_debug_prefix_map_flag=yes
26035     else
26036       echo "configure: failed program was" >&5
26037       cat conftest.s >&5
26038     fi
26039     rm -f conftest.o conftest.s
26040   fi
26041 fi
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26043 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26044 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26045
26046 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26047
26048 fi
26049 fi
26050
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26052 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26053 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26054   $as_echo_n "(cached) " >&6
26055 else
26056   gcc_cv_as_lcomm_with_alignment=no
26057   if test x$gcc_cv_as != x; then
26058     $as_echo '.lcomm bar,4,16' > conftest.s
26059     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26060   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061   (eval $ac_try) 2>&5
26062   ac_status=$?
26063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064   test $ac_status = 0; }; }
26065     then
26066         gcc_cv_as_lcomm_with_alignment=yes
26067     else
26068       echo "configure: failed program was" >&5
26069       cat conftest.s >&5
26070     fi
26071     rm -f conftest.o conftest.s
26072   fi
26073 fi
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26075 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26076 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26077
26078 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26079
26080 fi
26081
26082 # Check whether --enable-gnu-unique-object was given.
26083 if test "${enable_gnu_unique_object+set}" = set; then :
26084   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26085     yes | no) ;;
26086     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26087 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26088   esac
26089 else
26090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26091 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26092 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26093   $as_echo_n "(cached) " >&6
26094 else
26095   gcc_cv_as_gnu_unique_object=no
26096     if test $in_tree_gas = yes; then
26097     if test $in_tree_gas_is_elf = yes \
26098   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26099   then gcc_cv_as_gnu_unique_object=yes
26100 fi
26101   elif test x$gcc_cv_as != x; then
26102     $as_echo '.type foo, @gnu_unique_object' > conftest.s
26103     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26104   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105   (eval $ac_try) 2>&5
26106   ac_status=$?
26107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108   test $ac_status = 0; }; }
26109     then
26110         gcc_cv_as_gnu_unique_object=yes
26111     else
26112       echo "configure: failed program was" >&5
26113       cat conftest.s >&5
26114     fi
26115     rm -f conftest.o conftest.s
26116   fi
26117 fi
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26119 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26120 if test $gcc_cv_as_gnu_unique_object = yes; then
26121   # Also check for ld.so support, i.e. glibc 2.11 or higher.
26122    if test x$host = x$build -a x$host = x$target &&
26123        ldd --version 2>/dev/null &&
26124        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26125       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26126       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26127       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26128       if test "$glibcnum" -ge 2011 ; then
26129         enable_gnu_unique_object=yes
26130       fi
26131     fi
26132 fi
26133 fi
26134
26135 if test x$enable_gnu_unique_object = xyes; then
26136
26137 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26138
26139 fi
26140
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26142 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26143 if test "${gcc_cv_as_line_zero+set}" = set; then :
26144   $as_echo_n "(cached) " >&6
26145 else
26146   gcc_cv_as_line_zero=no
26147   if test $in_tree_gas = yes; then
26148     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26149   then gcc_cv_as_line_zero=yes
26150 fi
26151   elif test "x$gcc_cv_as" != x; then
26152     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26153     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
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        test "x`cat conftest.out`" = x
26160     then
26161       gcc_cv_as_line_zero=yes
26162     else
26163       echo "configure: failed program was" >&5
26164       cat conftest.s >&5
26165       echo "configure: error output was" >&5
26166       cat conftest.out >&5
26167     fi
26168     rm -f conftest.o conftest.s conftest.out
26169   fi
26170 fi
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26172 $as_echo "$gcc_cv_as_line_zero" >&6; }
26173 if test "x$gcc_cv_as_line_zero" = xyes; then
26174
26175 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26176
26177 fi
26178
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26180 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26181 gcc_cv_ld_eh_frame_hdr=no
26182 if test $in_tree_ld = yes ; then
26183   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 \
26184      && test $in_tree_ld_is_elf = yes; then
26185     gcc_cv_ld_eh_frame_hdr=yes
26186   fi
26187 elif test x$gcc_cv_ld != x; then
26188   if echo "$ld_ver" | grep GNU > /dev/null; then
26189     # Check if linker supports --eh-frame-hdr option
26190     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26191       gcc_cv_ld_eh_frame_hdr=yes
26192     fi
26193   else
26194     case "$target" in
26195       *-*-solaris2*)
26196         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26197         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26198           gcc_cv_ld_eh_frame_hdr=yes
26199         fi
26200         ;;
26201     esac
26202   fi
26203 fi
26204
26205 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26206
26207 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26208
26209 fi
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26211 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26212
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26214 $as_echo_n "checking linker position independent executable support... " >&6; }
26215 gcc_cv_ld_pie=no
26216 if test $in_tree_ld = yes ; then
26217   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 \
26218      && test $in_tree_ld_is_elf = yes; then
26219     gcc_cv_ld_pie=yes
26220   fi
26221 elif test x$gcc_cv_ld != x; then
26222         # Check if linker supports -pie option
26223         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26224                 gcc_cv_ld_pie=yes
26225         fi
26226 fi
26227 if test x"$gcc_cv_ld_pie" = xyes; then
26228
26229 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26230
26231 fi
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26233 $as_echo "$gcc_cv_ld_pie" >&6; }
26234
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26236 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26237 gcc_cv_ld_eh_gc_sections=no
26238 if test $in_tree_ld = yes ; then
26239   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 \
26240      && test $in_tree_ld_is_elf = yes; then
26241     gcc_cv_ld_eh_gc_sections=yes
26242   fi
26243 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26244   cat > conftest.s <<EOF
26245         .section        .text
26246 .globl _start
26247         .type _start, @function
26248 _start:
26249         .long foo
26250         .size _start, .-_start
26251         .section        .text.foo,"ax",@progbits
26252         .type foo, @function
26253 foo:
26254         .long 0
26255         .size foo, .-foo
26256         .section        .gcc_except_table.foo,"a",@progbits
26257 .L0:
26258         .long 0
26259         .section        .eh_frame,"a",@progbits
26260         .long .L0
26261 EOF
26262   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26263     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26264          | grep "gc-sections option ignored" > /dev/null; then
26265       gcc_cv_ld_eh_gc_sections=no
26266     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26267          | grep gcc_except_table > /dev/null; then
26268       gcc_cv_ld_eh_gc_sections=yes
26269       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26270       if test x$gcc_cv_as_comdat_group != xyes; then
26271         gcc_cv_ld_eh_gc_sections=no
26272         cat > conftest.s <<EOF
26273         .section        .text
26274 .globl _start
26275         .type _start, @function
26276 _start:
26277         .long foo
26278         .size _start, .-_start
26279         .section        .gnu.linkonce.t.foo,"ax",@progbits
26280         .type foo, @function
26281 foo:
26282         .long 0
26283         .size foo, .-foo
26284         .section        .gcc_except_table.foo,"a",@progbits
26285 .L0:
26286         .long 0
26287         .section        .eh_frame,"a",@progbits
26288         .long .L0
26289 EOF
26290         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26291           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26292                | grep "gc-sections option ignored" > /dev/null; then
26293             gcc_cv_ld_eh_gc_sections=no
26294           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26295                | grep gcc_except_table > /dev/null; then
26296             gcc_cv_ld_eh_gc_sections=yes
26297           fi
26298         fi
26299       fi
26300     fi
26301   fi
26302   rm -f conftest.s conftest.o conftest
26303 fi
26304 case "$target" in
26305   hppa*-*-linux*)
26306     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26307     gcc_cv_ld_eh_gc_sections=no
26308     ;;
26309 esac
26310 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26311
26312 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26313
26314 fi
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26316 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26317
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26319 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26320 gcc_cv_ld_eh_gc_sections_bug=no
26321 if test $in_tree_ld = yes ; then
26322   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 \
26323      && test $in_tree_ld_is_elf = yes; then
26324     gcc_cv_ld_eh_gc_sections_bug=yes
26325   fi
26326 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
26327   gcc_cv_ld_eh_gc_sections_bug=yes
26328   cat > conftest.s <<EOF
26329         .section        .text
26330 .globl _start
26331         .type _start, @function
26332 _start:
26333         .long foo
26334         .size _start, .-_start
26335         .section        .text.startup.foo,"ax",@progbits
26336         .type foo, @function
26337 foo:
26338         .long 0
26339         .size foo, .-foo
26340         .section        .gcc_except_table.foo,"a",@progbits
26341 .L0:
26342         .long 0
26343         .section        .eh_frame,"a",@progbits
26344         .long .L0
26345 EOF
26346   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26347     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26348          | grep "gc-sections option ignored" > /dev/null; then
26349       :
26350     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26351          | grep gcc_except_table > /dev/null; then
26352       gcc_cv_ld_eh_gc_sections_bug=no
26353     fi
26354   fi
26355   rm -f conftest.s conftest.o conftest
26356 fi
26357 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26358
26359 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26360
26361 fi
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26363 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26364
26365 # --------
26366 # UNSORTED
26367 # --------
26368
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26370 $as_echo_n "checking linker --as-needed support... " >&6; }
26371 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26372   $as_echo_n "(cached) " >&6
26373 else
26374   gcc_cv_ld_as_needed=no
26375 if test $in_tree_ld = yes ; then
26376   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 \
26377      && test $in_tree_ld_is_elf = yes; then
26378     gcc_cv_ld_as_needed=yes
26379   fi
26380 elif test x$gcc_cv_ld != x; then
26381         # Check if linker supports --as-needed and --no-as-needed options
26382         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26383                 gcc_cv_ld_as_needed=yes
26384         fi
26385 fi
26386
26387 fi
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26389 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26390 if test x"$gcc_cv_ld_as_needed" = xyes; then
26391
26392 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26393
26394 fi
26395
26396 case "$target:$tm_file" in
26397   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26399 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26400 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26401   $as_echo_n "(cached) " >&6
26402 else
26403   gcc_cv_ld_no_dot_syms=no
26404     if test $in_tree_ld = yes ; then
26405       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
26406         gcc_cv_ld_no_dot_syms=yes
26407       fi
26408     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26409       cat > conftest1.s <<EOF
26410         .text
26411         bl .foo
26412 EOF
26413       cat > conftest2.s <<EOF
26414         .section ".opd","aw"
26415         .align 3
26416         .globl foo
26417         .type foo,@function
26418 foo:
26419         .quad .LEfoo,.TOC.@tocbase,0
26420         .text
26421 .LEfoo:
26422         blr
26423         .size foo,.-.LEfoo
26424 EOF
26425       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26426          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26427          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26428         gcc_cv_ld_no_dot_syms=yes
26429       fi
26430       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26431     fi
26432
26433 fi
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26435 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26436     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26437
26438 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26439
26440     fi
26441
26442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26443 $as_echo_n "checking linker large toc support... " >&6; }
26444 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26445   $as_echo_n "(cached) " >&6
26446 else
26447   gcc_cv_ld_large_toc=no
26448     if test $in_tree_ld = yes ; then
26449       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
26450         gcc_cv_ld_large_toc=yes
26451       fi
26452     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26453       cat > conftest.s <<EOF
26454         .section ".tbss","awT",@nobits
26455         .align 3
26456 ie0:    .space 8
26457         .global _start
26458         .text
26459 _start:
26460         addis 9,13,ie0@got@tprel@ha
26461         ld 9,ie0@got@tprel@l(9)
26462 EOF
26463       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26464          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26465         gcc_cv_ld_large_toc=yes
26466       fi
26467       rm -f conftest conftest.o conftest.s
26468     fi
26469
26470 fi
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26472 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26473     if test x"$gcc_cv_ld_large_toc" = xyes; then
26474
26475 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26476
26477     fi
26478     ;;
26479 esac
26480
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26482 $as_echo_n "checking linker --build-id support... " >&6; }
26483 if test "${gcc_cv_ld_buildid+set}" = set; then :
26484   $as_echo_n "(cached) " >&6
26485 else
26486   gcc_cv_ld_buildid=no
26487   if test $in_tree_ld = yes ; then
26488     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26489        "$gcc_cv_gld_minor_version" -ge 18 -o \
26490        "$gcc_cv_gld_major_version" -gt 2 \
26491        && test $in_tree_ld_is_elf = yes; then
26492       gcc_cv_ld_buildid=yes
26493     fi
26494   elif test x$gcc_cv_ld != x; then
26495     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26496       gcc_cv_ld_buildid=yes
26497     fi
26498   fi
26499 fi
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26501 $as_echo "$gcc_cv_ld_buildid" >&6; }
26502 if test x"$gcc_cv_ld_buildid" = xyes; then
26503
26504 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26505
26506 fi
26507
26508 # Check whether --enable-linker-build-id was given.
26509 if test "${enable_linker_build_id+set}" = set; then :
26510   enableval=$enable_linker_build_id;
26511 else
26512   enable_linker_build_id=no
26513 fi
26514
26515
26516 if test x"$enable_linker_build_id" = xyes; then
26517   if test x"$gcc_cv_ld_buildid" = xyes; then
26518
26519 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26520
26521   else
26522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26523 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26524   fi
26525 fi
26526
26527 # In binutils 2.21, GNU ld gained support for new emulations fully
26528 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26530 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26531 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26532   $as_echo_n "(cached) " >&6
26533 else
26534   gcc_cv_ld_sol2_emulation=no
26535   if test $in_tree_ld = yes ; then
26536     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26537        "$gcc_cv_gld_minor_version" -ge 21 -o \
26538        "$gcc_cv_gld_major_version" -gt 2 \
26539        && test $in_tree_ld_is_elf = yes; then
26540       gcc_cv_ld_sol2_emulation=yes
26541     fi
26542   elif test x$gcc_cv_ld != x; then
26543     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26544        grep _sol2 > /dev/null; then
26545       gcc_cv_ld_sol2_emulation=yes
26546     fi
26547   fi
26548 fi
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26550 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26551 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26552
26553 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26554
26555 fi
26556
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26558 $as_echo_n "checking linker --sysroot support... " >&6; }
26559 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26560   $as_echo_n "(cached) " >&6
26561 else
26562   gcc_cv_ld_sysroot=no
26563   if test $in_tree_ld = yes ; then
26564       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
26565         gcc_cv_ld_sysroot=yes
26566       fi
26567   elif test x$gcc_cv_ld != x; then
26568     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26569       gcc_cv_ld_sysroot=yes
26570     fi
26571   fi
26572 fi
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26574 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26575 if test x"$gcc_cv_ld_sysroot" = xyes; then
26576
26577 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26578
26579 fi
26580
26581 if test x$with_sysroot = x && test x$host = x$target \
26582    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26583    && test "$prefix" != "NONE"; then
26584
26585 cat >>confdefs.h <<_ACEOF
26586 #define PREFIX_INCLUDE_DIR "$prefix/include"
26587 _ACEOF
26588
26589 fi
26590
26591 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26592   if test "x$with_headers" != x; then
26593     target_header_dir=$with_headers
26594   elif test "x$with_sysroot" = x; then
26595     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26596   elif test "x$with_build_sysroot" != "x"; then
26597     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26598   elif test "x$with_sysroot" = xyes; then
26599     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26600   else
26601     target_header_dir="${with_sysroot}${native_system_header_dir}"
26602   fi
26603 else
26604   target_header_dir=${native_system_header_dir}
26605 fi
26606
26607 # Test for stack protector support in target C library.
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26609 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26610 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26611   $as_echo_n "(cached) " >&6
26612 else
26613   gcc_cv_libc_provides_ssp=no
26614     case "$target" in
26615        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26616       # glibc 2.4 and later provides __stack_chk_fail and
26617       # either __stack_chk_guard, or TLS access to stack guard canary.
26618       if test -f $target_header_dir/features.h \
26619          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26620             $target_header_dir/features.h > /dev/null; then
26621         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26622            $target_header_dir/features.h > /dev/null; then
26623           gcc_cv_libc_provides_ssp=yes
26624         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26625              $target_header_dir/features.h > /dev/null \
26626              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26627              $target_header_dir/features.h > /dev/null; then
26628           gcc_cv_libc_provides_ssp=yes
26629         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26630              $target_header_dir/features.h > /dev/null && \
26631              test -f $target_header_dir/bits/uClibc_config.h && \
26632              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26633              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26634           gcc_cv_libc_provides_ssp=yes
26635         fi
26636       fi
26637         ;;
26638        *-*-gnu*)
26639          # Avoid complicated tests (see
26640          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26641          # simply assert that glibc does provide this, which is true for all
26642          # realistically usable GNU/Hurd configurations.
26643          gcc_cv_libc_provides_ssp=yes;;
26644        *-*-darwin* | *-*-freebsd*)
26645          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26646 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26647   gcc_cv_libc_provides_ssp=yes
26648 else
26649   echo "no __stack_chk_fail on this target"
26650 fi
26651
26652         ;;
26653   *) gcc_cv_libc_provides_ssp=no ;;
26654     esac
26655 fi
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26657 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26658
26659 if test x$gcc_cv_libc_provides_ssp = xyes; then
26660
26661 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26662
26663 fi
26664
26665 # Test for <sys/sdt.h> on the target.
26666
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26668 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26669 have_sys_sdt_h=no
26670 if test -f $target_header_dir/sys/sdt.h; then
26671   have_sys_sdt_h=yes
26672
26673 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26674
26675 fi
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26677 $as_echo "$have_sys_sdt_h" >&6; }
26678
26679 # Check if TFmode long double should be used by default or not.
26680 # Some glibc targets used DFmode long double, but with glibc 2.4
26681 # and later they can use TFmode.
26682 case "$target" in
26683   powerpc*-*-linux* | \
26684   sparc*-*-linux* | \
26685   s390*-*-linux* | \
26686   alpha*-*-linux*)
26687
26688 # Check whether --with-long-double-128 was given.
26689 if test "${with_long_double_128+set}" = set; then :
26690   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26691 else
26692   gcc_cv_target_ldbl128=no
26693       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26694         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26695       && gcc_cv_target_ldbl128=yes
26696
26697 fi
26698
26699     ;;
26700 esac
26701 if test x$gcc_cv_target_ldbl128 = xyes; then
26702
26703 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26704
26705 fi
26706
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26708 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26709 gcc_cv_target_dl_iterate_phdr=unknown
26710 case "$target" in
26711   *-*-solaris2*)
26712     # <link.h> needs both a dl_iterate_phdr declaration and support for
26713     # compilation with largefile support.
26714     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26715       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26716       gcc_cv_target_dl_iterate_phdr=yes
26717     else
26718       gcc_cv_target_dl_iterate_phdr=no
26719     fi
26720     ;;
26721 esac
26722
26723 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26724
26725 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26726
26727 fi
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26729 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26730
26731 # Find out what GC implementation we want, or may, use.
26732
26733 # Check whether --with-gc was given.
26734 if test "${with_gc+set}" = set; then :
26735   withval=$with_gc; case "$withval" in
26736   page)
26737     GGC=ggc-$withval
26738     ;;
26739   zone)
26740     GGC=ggc-$withval
26741
26742 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26743
26744     ;;
26745   *)
26746     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26747     ;;
26748 esac
26749 else
26750   GGC=ggc-page
26751 fi
26752
26753
26754 echo "Using $GGC for garbage collection."
26755
26756 # Libraries to use on the host.  This will normally be set by the top
26757 # level Makefile.  Here we simply capture the value for our Makefile.
26758 if test -z "${HOST_LIBS+set}"; then
26759   HOST_LIBS=
26760 fi
26761
26762
26763 # Use the system's zlib library.
26764 zlibdir=-L../zlib
26765 zlibinc="-I\$(srcdir)/../zlib"
26766
26767 # Check whether --with-system-zlib was given.
26768 if test "${with_system_zlib+set}" = set; then :
26769   withval=$with_system_zlib; zlibdir=
26770 zlibinc=
26771
26772 fi
26773
26774
26775
26776
26777
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26779 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26780     # Check whether --enable-maintainer-mode was given.
26781 if test "${enable_maintainer_mode+set}" = set; then :
26782   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26783 else
26784   maintainer_mode=no
26785 fi
26786
26787
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26789 $as_echo "$maintainer_mode" >&6; }
26790
26791 if test "$maintainer_mode" = "yes"; then
26792   MAINT=''
26793 else
26794   MAINT='#'
26795 fi
26796
26797 # --------------
26798 # Language hooks
26799 # --------------
26800
26801 # Make empty files to contain the specs and options for each language.
26802 # Then add #include lines to for a compiler that has specs and/or options.
26803
26804 subdirs=
26805 lang_opt_files=
26806 lang_specs_files=
26807 lang_tree_files=
26808 # These (without "all_") are set in each config-lang.in.
26809 # `language' must be a single word so is spelled singularly.
26810 all_languages=
26811 all_compilers=
26812 all_outputs='Makefile'
26813 # List of language makefile fragments.
26814 all_lang_makefrags=
26815 # Additional files for gengtype
26816 all_gtfiles="$target_gtfiles"
26817
26818 # These are the languages that are set in --enable-languages,
26819 # and are available in the GCC tree.
26820 all_selected_languages=
26821
26822 # Add the language fragments.
26823 # Languages are added via two mechanisms.  Some information must be
26824 # recorded in makefile variables, these are defined in config-lang.in.
26825 # We accumulate them and plug them into the main Makefile.
26826 # The other mechanism is a set of hooks for each of the main targets
26827 # like `clean', `install', etc.
26828
26829 language_hooks="Make-hooks"
26830
26831 for lang in ${srcdir}/*/config-lang.in
26832 do
26833         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26834
26835         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26836         if test "x$lang_alias" = x
26837         then
26838               echo "$lang doesn't set \$language." 1>&2
26839               exit 1
26840         fi
26841         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26842         subdirs="$subdirs $subdir"
26843
26844         # $gcc_subdir is where the gcc integration files are to be found
26845         # for a language, both for internal compiler purposes (compiler
26846         # sources implementing front-end to GCC tree converters), and for
26847         # build infrastructure purposes (Make-lang.in, etc.)
26848         #
26849         # This will be <subdir> (relative to $srcdir) if a line like
26850         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26851         # is found in <langdir>/config-lang.in, and will remain <langdir>
26852         # otherwise.
26853         #
26854         # Except for the language alias (fetched above), the regular
26855         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26856         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26857         # only this and the language alias.
26858
26859         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26860         if [ "$gcc_subdir" = "" ]; then
26861            gcc_subdir="$subdir"
26862         fi
26863
26864         case ",$enable_languages," in
26865         *,$lang_alias,*)
26866             all_selected_languages="$all_selected_languages $lang_alias"
26867             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26868                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26869             fi
26870             ;;
26871         esac
26872
26873         language=
26874         boot_language=
26875         compilers=
26876         outputs=
26877         gtfiles=
26878         subdir_requires=
26879         . ${srcdir}/$gcc_subdir/config-lang.in
26880         if test "x$language" = x
26881         then
26882                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26883                 exit 1
26884         fi
26885
26886         ok=:
26887         case ",$enable_languages," in
26888                 *,$lang_alias,*) ;;
26889                 *)
26890                         for i in $subdir_requires; do
26891                                 test -f "${srcdir}/$i/config-lang.in" && continue
26892                                 ok=false
26893                                 break
26894                         done
26895                 ;;
26896         esac
26897         $ok || continue
26898
26899         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26900         if test -f $srcdir/$gcc_subdir/lang.opt; then
26901             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26902             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26903         fi
26904         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26905             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26906         fi
26907         all_languages="$all_languages $language"
26908         all_compilers="$all_compilers $compilers"
26909         all_outputs="$all_outputs $outputs"
26910         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26911         case ",$enable_languages," in
26912                 *,lto,*)
26913
26914 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26915
26916                     enable_lto=yes
26917
26918                     ;;
26919                 *) ;;
26920         esac
26921 done
26922
26923 # Pick up gtfiles for c
26924 gtfiles=
26925 . ${srcdir}/c-config-lang.in
26926 all_gtfiles="$all_gtfiles [c] $gtfiles"
26927
26928 check_languages=
26929 for language in $all_selected_languages
26930 do
26931         check_languages="$check_languages check-$language"
26932 done
26933
26934 # We link each language in with a set of hooks, reached indirectly via
26935 # lang.${target}.  Only do so for selected languages.
26936
26937 rm -f Make-hooks
26938 touch Make-hooks
26939 target_list="all.cross start.encap rest.encap tags \
26940         install-common install-man install-info install-pdf install-html dvi \
26941         pdf html uninstall info man srcextra srcman srcinfo \
26942         mostlyclean clean distclean maintainer-clean install-plugin"
26943
26944 for t in $target_list
26945 do
26946         x=
26947         for lang in $all_selected_languages
26948         do
26949                 x="$x $lang.$t"
26950         done
26951         echo "lang.$t: $x" >> Make-hooks
26952 done
26953
26954 # --------
26955 # Option include files
26956 # --------
26957
26958 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26959 option_includes="option-includes.mk"
26960
26961
26962 # --------
26963 # UNSORTED
26964 # --------
26965
26966 # Create .gdbinit.
26967
26968 echo "dir ." > .gdbinit
26969 echo "dir ${srcdir}" >> .gdbinit
26970 if test x$gdb_needs_out_file_path = xyes
26971 then
26972         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26973 fi
26974 if test "x$subdirs" != x; then
26975         for s in $subdirs
26976         do
26977                 echo "dir ${srcdir}/$s" >> .gdbinit
26978         done
26979 fi
26980 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26981
26982 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26983
26984
26985
26986 # Find a directory in which to install a shared libgcc.
26987
26988 # Check whether --enable-version-specific-runtime-libs was given.
26989 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26990   enableval=$enable_version_specific_runtime_libs;
26991 fi
26992
26993
26994 # Substitute configuration variables
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057 # Echo link setup.
27058 if test x${build} = x${host} ; then
27059   if test x${host} = x${target} ; then
27060     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27061   else
27062     echo "Links are now set up to build a cross-compiler" 1>&2
27063     echo " from ${host} to ${target}." 1>&2
27064   fi
27065 else
27066   if test x${host} = x${target} ; then
27067     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27068     echo " for ${target}." 1>&2
27069   else
27070     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27071     echo " from ${host} to ${target}." 1>&2
27072   fi
27073 fi
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083 if test "x${CLOOGLIBS}" != "x" ; then
27084
27085 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27086
27087 fi
27088
27089 # Check for plugin support
27090 # Check whether --enable-plugin was given.
27091 if test "${enable_plugin+set}" = set; then :
27092   enableval=$enable_plugin; enable_plugin=$enableval
27093 else
27094   enable_plugin=yes; default_plugin=yes
27095 fi
27096
27097
27098 pluginlibs=
27099
27100 case "${host}" in
27101   *-*-darwin*)
27102     if test x$build = x$host; then
27103       export_sym_check="nm${exeext} -g"
27104     elif test x$host = x$target; then
27105       export_sym_check="$gcc_cv_nm -g"
27106     else
27107       export_sym_check=
27108     fi
27109   ;;
27110   *)
27111     if test x$build = x$host; then
27112       export_sym_check="objdump${exeext} -T"
27113     elif test x$host = x$target; then
27114       export_sym_check="$gcc_cv_objdump -T"
27115     else
27116       export_sym_check=
27117     fi
27118   ;;
27119 esac
27120
27121 if test x"$enable_plugin" = x"yes"; then
27122
27123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27124 $as_echo_n "checking for exported symbols... " >&6; }
27125   if test "x$export_sym_check" != x; then
27126     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27127     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27128     if $export_sym_check conftest | grep foobar > /dev/null; then
27129       : # No need to use a flag
27130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27131 $as_echo "yes" >&6; }
27132     else
27133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27134 $as_echo "yes" >&6; }
27135       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27136 $as_echo_n "checking for -rdynamic... " >&6; }
27137       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27138       if $export_sym_check conftest | grep foobar > /dev/null; then
27139         plugin_rdynamic=yes
27140         pluginlibs="-rdynamic"
27141       else
27142         plugin_rdynamic=no
27143         enable_plugin=no
27144       fi
27145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27146 $as_echo "$plugin_rdynamic" >&6; }
27147     fi
27148   else
27149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27150 $as_echo "unable to check" >&6; }
27151   fi
27152
27153   # Check -ldl
27154   saved_LIBS="$LIBS"
27155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27156 $as_echo_n "checking for library containing dlopen... " >&6; }
27157 if test "${ac_cv_search_dlopen+set}" = set; then :
27158   $as_echo_n "(cached) " >&6
27159 else
27160   ac_func_search_save_LIBS=$LIBS
27161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27162 /* end confdefs.h.  */
27163
27164 /* Override any GCC internal prototype to avoid an error.
27165    Use char because int might match the return type of a GCC
27166    builtin and then its argument prototype would still apply.  */
27167 #ifdef __cplusplus
27168 extern "C"
27169 #endif
27170 char dlopen ();
27171 int
27172 main ()
27173 {
27174 return dlopen ();
27175   ;
27176   return 0;
27177 }
27178 _ACEOF
27179 for ac_lib in '' dl; do
27180   if test -z "$ac_lib"; then
27181     ac_res="none required"
27182   else
27183     ac_res=-l$ac_lib
27184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27185   fi
27186   if ac_fn_c_try_link "$LINENO"; then :
27187   ac_cv_search_dlopen=$ac_res
27188 fi
27189 rm -f core conftest.err conftest.$ac_objext \
27190     conftest$ac_exeext
27191   if test "${ac_cv_search_dlopen+set}" = set; then :
27192   break
27193 fi
27194 done
27195 if test "${ac_cv_search_dlopen+set}" = set; then :
27196
27197 else
27198   ac_cv_search_dlopen=no
27199 fi
27200 rm conftest.$ac_ext
27201 LIBS=$ac_func_search_save_LIBS
27202 fi
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27204 $as_echo "$ac_cv_search_dlopen" >&6; }
27205 ac_res=$ac_cv_search_dlopen
27206 if test "$ac_res" != no; then :
27207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27208
27209 fi
27210
27211   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27212     pluginlibs="$pluginlibs -ldl"
27213   fi
27214   LIBS="$saved_LIBS"
27215
27216   # Check that we can build shared objects with -fPIC -shared
27217   saved_LDFLAGS="$LDFLAGS"
27218   saved_CFLAGS="$CFLAGS"
27219   case "${host}" in
27220     *-*-darwin*)
27221       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27222       CFLAGS="$CFLAGS -fPIC"
27223       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27224     ;;
27225     *)
27226       CFLAGS="$CFLAGS -fPIC"
27227       LDFLAGS="$LDFLAGS -fPIC -shared"
27228     ;;
27229   esac
27230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27231 $as_echo_n "checking for -fPIC -shared... " >&6; }
27232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27233 /* end confdefs.h.  */
27234 extern int X;
27235 int
27236 main ()
27237 {
27238 return X == 0;
27239   ;
27240   return 0;
27241 }
27242 _ACEOF
27243 if ac_fn_c_try_link "$LINENO"; then :
27244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27245 $as_echo "yes" >&6; }; have_pic_shared=yes
27246 else
27247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27248 $as_echo "no" >&6; }; have_pic_shared=no
27249 fi
27250 rm -f core conftest.err conftest.$ac_objext \
27251     conftest$ac_exeext conftest.$ac_ext
27252   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27253     pluginlibs=
27254     enable_plugin=no
27255   fi
27256   LDFLAGS="$saved_LDFLAGS"
27257   CFLAGS="$saved_CFLAGS"
27258
27259   # If plugin support had been requested but not available, fail.
27260   if test x"$enable_plugin" = x"no" ; then
27261     if test x"$default_plugin" != x"yes"; then
27262       as_fn_error "
27263 Building GCC with plugin support requires a host that supports
27264 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27265     fi
27266   fi
27267 fi
27268
27269
27270
27271 if test x"$enable_plugin" = x"yes"; then
27272
27273 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27274
27275 fi
27276
27277
27278 # Check whether --enable-libquadmath-support was given.
27279 if test "${enable_libquadmath_support+set}" = set; then :
27280   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27281 else
27282   ENABLE_LIBQUADMATH_SUPPORT=yes
27283 fi
27284
27285 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27286
27287 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27288
27289 fi
27290
27291
27292 # Specify what hash style to use by default.
27293
27294 # Check whether --with-linker-hash-style was given.
27295 if test "${with_linker_hash_style+set}" = set; then :
27296   withval=$with_linker_hash_style; case x"$withval" in
27297    xsysv)
27298      LINKER_HASH_STYLE=sysv
27299      ;;
27300    xgnu)
27301      LINKER_HASH_STYLE=gnu
27302      ;;
27303    xboth)
27304      LINKER_HASH_STYLE=both
27305      ;;
27306    *)
27307      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27308      ;;
27309  esac
27310 else
27311   LINKER_HASH_STYLE=''
27312 fi
27313
27314 if test x"${LINKER_HASH_STYLE}" != x; then
27315
27316 cat >>confdefs.h <<_ACEOF
27317 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27318 _ACEOF
27319
27320 fi
27321
27322 # Configure the subdirectories
27323 # AC_CONFIG_SUBDIRS($subdirs)
27324
27325 # Create the Makefile
27326 # and configure language subdirectories
27327 ac_config_files="$ac_config_files $all_outputs"
27328
27329
27330 ac_config_commands="$ac_config_commands default"
27331
27332 cat >confcache <<\_ACEOF
27333 # This file is a shell script that caches the results of configure
27334 # tests run on this system so they can be shared between configure
27335 # scripts and configure runs, see configure's option --config-cache.
27336 # It is not useful on other systems.  If it contains results you don't
27337 # want to keep, you may remove or edit it.
27338 #
27339 # config.status only pays attention to the cache file if you give it
27340 # the --recheck option to rerun configure.
27341 #
27342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27344 # following values.
27345
27346 _ACEOF
27347
27348 # The following way of writing the cache mishandles newlines in values,
27349 # but we know of no workaround that is simple, portable, and efficient.
27350 # So, we kill variables containing newlines.
27351 # Ultrix sh set writes to stderr and can't be redirected directly,
27352 # and sets the high bit in the cache file unless we assign to the vars.
27353 (
27354   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27355     eval ac_val=\$$ac_var
27356     case $ac_val in #(
27357     *${as_nl}*)
27358       case $ac_var in #(
27359       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27360 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27361       esac
27362       case $ac_var in #(
27363       _ | IFS | as_nl) ;; #(
27364       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27365       *) { eval $ac_var=; unset $ac_var;} ;;
27366       esac ;;
27367     esac
27368   done
27369
27370   (set) 2>&1 |
27371     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27372     *${as_nl}ac_space=\ *)
27373       # `set' does not quote correctly, so add quotes: double-quote
27374       # substitution turns \\\\ into \\, and sed turns \\ into \.
27375       sed -n \
27376         "s/'/'\\\\''/g;
27377           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27378       ;; #(
27379     *)
27380       # `set' quotes correctly as required by POSIX, so do not add quotes.
27381       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27382       ;;
27383     esac |
27384     sort
27385 ) |
27386   sed '
27387      /^ac_cv_env_/b end
27388      t clear
27389      :clear
27390      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27391      t end
27392      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27393      :end' >>confcache
27394 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27395   if test -w "$cache_file"; then
27396     test "x$cache_file" != "x/dev/null" &&
27397       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27398 $as_echo "$as_me: updating cache $cache_file" >&6;}
27399     cat confcache >$cache_file
27400   else
27401     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27402 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27403   fi
27404 fi
27405 rm -f confcache
27406
27407 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27408 # Let make expand exec_prefix.
27409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27410
27411 DEFS=-DHAVE_CONFIG_H
27412
27413 ac_libobjs=
27414 ac_ltlibobjs=
27415 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27416   # 1. Remove the extension, and $U if already installed.
27417   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27418   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27419   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27420   #    will be set to the directory where LIBOBJS objects are built.
27421   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27422   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27423 done
27424 LIBOBJS=$ac_libobjs
27425
27426 LTLIBOBJS=$ac_ltlibobjs
27427
27428
27429
27430
27431 : ${CONFIG_STATUS=./config.status}
27432 ac_write_fail=0
27433 ac_clean_files_save=$ac_clean_files
27434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27436 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27437 as_write_fail=0
27438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27439 #! $SHELL
27440 # Generated by $as_me.
27441 # Run this file to recreate the current configuration.
27442 # Compiler output produced by configure, useful for debugging
27443 # configure, is in config.log if it exists.
27444
27445 debug=false
27446 ac_cs_recheck=false
27447 ac_cs_silent=false
27448
27449 SHELL=\${CONFIG_SHELL-$SHELL}
27450 export SHELL
27451 _ASEOF
27452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27453 ## -------------------- ##
27454 ## M4sh Initialization. ##
27455 ## -------------------- ##
27456
27457 # Be more Bourne compatible
27458 DUALCASE=1; export DUALCASE # for MKS sh
27459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27460   emulate sh
27461   NULLCMD=:
27462   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27463   # is contrary to our usage.  Disable this feature.
27464   alias -g '${1+"$@"}'='"$@"'
27465   setopt NO_GLOB_SUBST
27466 else
27467   case `(set -o) 2>/dev/null` in #(
27468   *posix*) :
27469     set -o posix ;; #(
27470   *) :
27471      ;;
27472 esac
27473 fi
27474
27475
27476 as_nl='
27477 '
27478 export as_nl
27479 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27480 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27483 # Prefer a ksh shell builtin over an external printf program on Solaris,
27484 # but without wasting forks for bash or zsh.
27485 if test -z "$BASH_VERSION$ZSH_VERSION" \
27486     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27487   as_echo='print -r --'
27488   as_echo_n='print -rn --'
27489 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27490   as_echo='printf %s\n'
27491   as_echo_n='printf %s'
27492 else
27493   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27494     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27495     as_echo_n='/usr/ucb/echo -n'
27496   else
27497     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27498     as_echo_n_body='eval
27499       arg=$1;
27500       case $arg in #(
27501       *"$as_nl"*)
27502         expr "X$arg" : "X\\(.*\\)$as_nl";
27503         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27504       esac;
27505       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27506     '
27507     export as_echo_n_body
27508     as_echo_n='sh -c $as_echo_n_body as_echo'
27509   fi
27510   export as_echo_body
27511   as_echo='sh -c $as_echo_body as_echo'
27512 fi
27513
27514 # The user is always right.
27515 if test "${PATH_SEPARATOR+set}" != set; then
27516   PATH_SEPARATOR=:
27517   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27518     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27519       PATH_SEPARATOR=';'
27520   }
27521 fi
27522
27523
27524 # IFS
27525 # We need space, tab and new line, in precisely that order.  Quoting is
27526 # there to prevent editors from complaining about space-tab.
27527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27528 # splitting by setting IFS to empty value.)
27529 IFS=" ""        $as_nl"
27530
27531 # Find who we are.  Look in the path if we contain no directory separator.
27532 case $0 in #((
27533   *[\\/]* ) as_myself=$0 ;;
27534   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27535 for as_dir in $PATH
27536 do
27537   IFS=$as_save_IFS
27538   test -z "$as_dir" && as_dir=.
27539     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27540   done
27541 IFS=$as_save_IFS
27542
27543      ;;
27544 esac
27545 # We did not find ourselves, most probably we were run as `sh COMMAND'
27546 # in which case we are not to be found in the path.
27547 if test "x$as_myself" = x; then
27548   as_myself=$0
27549 fi
27550 if test ! -f "$as_myself"; then
27551   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27552   exit 1
27553 fi
27554
27555 # Unset variables that we do not need and which cause bugs (e.g. in
27556 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27557 # suppresses any "Segmentation fault" message there.  '((' could
27558 # trigger a bug in pdksh 5.2.14.
27559 for as_var in BASH_ENV ENV MAIL MAILPATH
27560 do eval test x\${$as_var+set} = xset \
27561   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27562 done
27563 PS1='$ '
27564 PS2='> '
27565 PS4='+ '
27566
27567 # NLS nuisances.
27568 LC_ALL=C
27569 export LC_ALL
27570 LANGUAGE=C
27571 export LANGUAGE
27572
27573 # CDPATH.
27574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27575
27576
27577 # as_fn_error ERROR [LINENO LOG_FD]
27578 # ---------------------------------
27579 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27580 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27581 # script with status $?, using 1 if that was 0.
27582 as_fn_error ()
27583 {
27584   as_status=$?; test $as_status -eq 0 && as_status=1
27585   if test "$3"; then
27586     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27587     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27588   fi
27589   $as_echo "$as_me: error: $1" >&2
27590   as_fn_exit $as_status
27591 } # as_fn_error
27592
27593
27594 # as_fn_set_status STATUS
27595 # -----------------------
27596 # Set $? to STATUS, without forking.
27597 as_fn_set_status ()
27598 {
27599   return $1
27600 } # as_fn_set_status
27601
27602 # as_fn_exit STATUS
27603 # -----------------
27604 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27605 as_fn_exit ()
27606 {
27607   set +e
27608   as_fn_set_status $1
27609   exit $1
27610 } # as_fn_exit
27611
27612 # as_fn_unset VAR
27613 # ---------------
27614 # Portably unset VAR.
27615 as_fn_unset ()
27616 {
27617   { eval $1=; unset $1;}
27618 }
27619 as_unset=as_fn_unset
27620 # as_fn_append VAR VALUE
27621 # ----------------------
27622 # Append the text in VALUE to the end of the definition contained in VAR. Take
27623 # advantage of any shell optimizations that allow amortized linear growth over
27624 # repeated appends, instead of the typical quadratic growth present in naive
27625 # implementations.
27626 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27627   eval 'as_fn_append ()
27628   {
27629     eval $1+=\$2
27630   }'
27631 else
27632   as_fn_append ()
27633   {
27634     eval $1=\$$1\$2
27635   }
27636 fi # as_fn_append
27637
27638 # as_fn_arith ARG...
27639 # ------------------
27640 # Perform arithmetic evaluation on the ARGs, and store the result in the
27641 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27642 # must be portable across $(()) and expr.
27643 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27644   eval 'as_fn_arith ()
27645   {
27646     as_val=$(( $* ))
27647   }'
27648 else
27649   as_fn_arith ()
27650   {
27651     as_val=`expr "$@" || test $? -eq 1`
27652   }
27653 fi # as_fn_arith
27654
27655
27656 if expr a : '\(a\)' >/dev/null 2>&1 &&
27657    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27658   as_expr=expr
27659 else
27660   as_expr=false
27661 fi
27662
27663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27664   as_basename=basename
27665 else
27666   as_basename=false
27667 fi
27668
27669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27670   as_dirname=dirname
27671 else
27672   as_dirname=false
27673 fi
27674
27675 as_me=`$as_basename -- "$0" ||
27676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27677          X"$0" : 'X\(//\)$' \| \
27678          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27679 $as_echo X/"$0" |
27680     sed '/^.*\/\([^/][^/]*\)\/*$/{
27681             s//\1/
27682             q
27683           }
27684           /^X\/\(\/\/\)$/{
27685             s//\1/
27686             q
27687           }
27688           /^X\/\(\/\).*/{
27689             s//\1/
27690             q
27691           }
27692           s/.*/./; q'`
27693
27694 # Avoid depending upon Character Ranges.
27695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27698 as_cr_digits='0123456789'
27699 as_cr_alnum=$as_cr_Letters$as_cr_digits
27700
27701 ECHO_C= ECHO_N= ECHO_T=
27702 case `echo -n x` in #(((((
27703 -n*)
27704   case `echo 'xy\c'` in
27705   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27706   xy)  ECHO_C='\c';;
27707   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27708        ECHO_T=' ';;
27709   esac;;
27710 *)
27711   ECHO_N='-n';;
27712 esac
27713
27714 rm -f conf$$ conf$$.exe conf$$.file
27715 if test -d conf$$.dir; then
27716   rm -f conf$$.dir/conf$$.file
27717 else
27718   rm -f conf$$.dir
27719   mkdir conf$$.dir 2>/dev/null
27720 fi
27721 if (echo >conf$$.file) 2>/dev/null; then
27722   if ln -s conf$$.file conf$$ 2>/dev/null; then
27723     as_ln_s='ln -s'
27724     # ... but there are two gotchas:
27725     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27726     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27727     # In both cases, we have to default to `cp -p'.
27728     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27729       as_ln_s='cp -p'
27730   elif ln conf$$.file conf$$ 2>/dev/null; then
27731     as_ln_s=ln
27732   else
27733     as_ln_s='cp -p'
27734   fi
27735 else
27736   as_ln_s='cp -p'
27737 fi
27738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27739 rmdir conf$$.dir 2>/dev/null
27740
27741
27742 # as_fn_mkdir_p
27743 # -------------
27744 # Create "$as_dir" as a directory, including parents if necessary.
27745 as_fn_mkdir_p ()
27746 {
27747
27748   case $as_dir in #(
27749   -*) as_dir=./$as_dir;;
27750   esac
27751   test -d "$as_dir" || eval $as_mkdir_p || {
27752     as_dirs=
27753     while :; do
27754       case $as_dir in #(
27755       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27756       *) as_qdir=$as_dir;;
27757       esac
27758       as_dirs="'$as_qdir' $as_dirs"
27759       as_dir=`$as_dirname -- "$as_dir" ||
27760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27761          X"$as_dir" : 'X\(//\)[^/]' \| \
27762          X"$as_dir" : 'X\(//\)$' \| \
27763          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27764 $as_echo X"$as_dir" |
27765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27766             s//\1/
27767             q
27768           }
27769           /^X\(\/\/\)[^/].*/{
27770             s//\1/
27771             q
27772           }
27773           /^X\(\/\/\)$/{
27774             s//\1/
27775             q
27776           }
27777           /^X\(\/\).*/{
27778             s//\1/
27779             q
27780           }
27781           s/.*/./; q'`
27782       test -d "$as_dir" && break
27783     done
27784     test -z "$as_dirs" || eval "mkdir $as_dirs"
27785   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27786
27787
27788 } # as_fn_mkdir_p
27789 if mkdir -p . 2>/dev/null; then
27790   as_mkdir_p='mkdir -p "$as_dir"'
27791 else
27792   test -d ./-p && rmdir ./-p
27793   as_mkdir_p=false
27794 fi
27795
27796 if test -x / >/dev/null 2>&1; then
27797   as_test_x='test -x'
27798 else
27799   if ls -dL / >/dev/null 2>&1; then
27800     as_ls_L_option=L
27801   else
27802     as_ls_L_option=
27803   fi
27804   as_test_x='
27805     eval sh -c '\''
27806       if test -d "$1"; then
27807         test -d "$1/.";
27808       else
27809         case $1 in #(
27810         -*)set "./$1";;
27811         esac;
27812         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27813         ???[sx]*):;;*)false;;esac;fi
27814     '\'' sh
27815   '
27816 fi
27817 as_executable_p=$as_test_x
27818
27819 # Sed expression to map a string onto a valid CPP name.
27820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27821
27822 # Sed expression to map a string onto a valid variable name.
27823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27824
27825
27826 exec 6>&1
27827 ## ----------------------------------- ##
27828 ## Main body of $CONFIG_STATUS script. ##
27829 ## ----------------------------------- ##
27830 _ASEOF
27831 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27832
27833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27834 # Save the log message, to keep $0 and so on meaningful, and to
27835 # report actual input values of CONFIG_FILES etc. instead of their
27836 # values after options handling.
27837 ac_log="
27838 This file was extended by $as_me, which was
27839 generated by GNU Autoconf 2.64.  Invocation command line was
27840
27841   CONFIG_FILES    = $CONFIG_FILES
27842   CONFIG_HEADERS  = $CONFIG_HEADERS
27843   CONFIG_LINKS    = $CONFIG_LINKS
27844   CONFIG_COMMANDS = $CONFIG_COMMANDS
27845   $ $0 $@
27846
27847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27848 "
27849
27850 _ACEOF
27851
27852 case $ac_config_files in *"
27853 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27854 esac
27855
27856 case $ac_config_headers in *"
27857 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27858 esac
27859
27860
27861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27862 # Files that config.status was made for.
27863 config_files="$ac_config_files"
27864 config_headers="$ac_config_headers"
27865 config_commands="$ac_config_commands"
27866
27867 _ACEOF
27868
27869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27870 ac_cs_usage="\
27871 \`$as_me' instantiates files and other configuration actions
27872 from templates according to the current configuration.  Unless the files
27873 and actions are specified as TAGs, all are instantiated by default.
27874
27875 Usage: $0 [OPTION]... [TAG]...
27876
27877   -h, --help       print this help, then exit
27878   -V, --version    print version number and configuration settings, then exit
27879   -q, --quiet, --silent
27880                    do not print progress messages
27881   -d, --debug      don't remove temporary files
27882       --recheck    update $as_me by reconfiguring in the same conditions
27883       --file=FILE[:TEMPLATE]
27884                    instantiate the configuration file FILE
27885       --header=FILE[:TEMPLATE]
27886                    instantiate the configuration header FILE
27887
27888 Configuration files:
27889 $config_files
27890
27891 Configuration headers:
27892 $config_headers
27893
27894 Configuration commands:
27895 $config_commands
27896
27897 Report bugs to the package provider."
27898
27899 _ACEOF
27900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27901 ac_cs_version="\\
27902 config.status
27903 configured by $0, generated by GNU Autoconf 2.64,
27904   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27905
27906 Copyright (C) 2009 Free Software Foundation, Inc.
27907 This config.status script is free software; the Free Software Foundation
27908 gives unlimited permission to copy, distribute and modify it."
27909
27910 ac_pwd='$ac_pwd'
27911 srcdir='$srcdir'
27912 AWK='$AWK'
27913 test -n "\$AWK" || AWK=awk
27914 _ACEOF
27915
27916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27917 # The default lists apply if the user does not specify any file.
27918 ac_need_defaults=:
27919 while test $# != 0
27920 do
27921   case $1 in
27922   --*=*)
27923     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27924     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27925     ac_shift=:
27926     ;;
27927   *)
27928     ac_option=$1
27929     ac_optarg=$2
27930     ac_shift=shift
27931     ;;
27932   esac
27933
27934   case $ac_option in
27935   # Handling of the options.
27936   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27937     ac_cs_recheck=: ;;
27938   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27939     $as_echo "$ac_cs_version"; exit ;;
27940   --debug | --debu | --deb | --de | --d | -d )
27941     debug=: ;;
27942   --file | --fil | --fi | --f )
27943     $ac_shift
27944     case $ac_optarg in
27945     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27946     esac
27947     as_fn_append CONFIG_FILES " '$ac_optarg'"
27948     ac_need_defaults=false;;
27949   --header | --heade | --head | --hea )
27950     $ac_shift
27951     case $ac_optarg in
27952     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27953     esac
27954     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27955     ac_need_defaults=false;;
27956   --he | --h)
27957     # Conflict between --help and --header
27958     as_fn_error "ambiguous option: \`$1'
27959 Try \`$0 --help' for more information.";;
27960   --help | --hel | -h )
27961     $as_echo "$ac_cs_usage"; exit ;;
27962   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27963   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27964     ac_cs_silent=: ;;
27965
27966   # This is an error.
27967   -*) as_fn_error "unrecognized option: \`$1'
27968 Try \`$0 --help' for more information." ;;
27969
27970   *) as_fn_append ac_config_targets " $1"
27971      ac_need_defaults=false ;;
27972
27973   esac
27974   shift
27975 done
27976
27977 ac_configure_extra_args=
27978
27979 if $ac_cs_silent; then
27980   exec 6>/dev/null
27981   ac_configure_extra_args="$ac_configure_extra_args --silent"
27982 fi
27983
27984 _ACEOF
27985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27986 if \$ac_cs_recheck; then
27987   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27988   shift
27989   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27990   CONFIG_SHELL='$SHELL'
27991   export CONFIG_SHELL
27992   exec "\$@"
27993 fi
27994
27995 _ACEOF
27996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27997 exec 5>>config.log
27998 {
27999   echo
28000   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28001 ## Running $as_me. ##
28002 _ASBOX
28003   $as_echo "$ac_log"
28004 } >&5
28005
28006 _ACEOF
28007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28008 #
28009 # INIT-COMMANDS
28010 #
28011 subdirs='$subdirs'
28012
28013 _ACEOF
28014
28015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28016
28017 # Handling of arguments.
28018 for ac_config_target in $ac_config_targets
28019 do
28020   case $ac_config_target in
28021     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28022     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28023     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28024     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28025     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28026     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28027
28028   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28029   esac
28030 done
28031
28032
28033 # If the user did not use the arguments to specify the items to instantiate,
28034 # then the envvar interface is used.  Set only those that are not.
28035 # We use the long form for the default assignment because of an extremely
28036 # bizarre bug on SunOS 4.1.3.
28037 if $ac_need_defaults; then
28038   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28039   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28040   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28041 fi
28042
28043 # Have a temporary directory for convenience.  Make it in the build tree
28044 # simply because there is no reason against having it here, and in addition,
28045 # creating and moving files from /tmp can sometimes cause problems.
28046 # Hook for its removal unless debugging.
28047 # Note that there is a small window in which the directory will not be cleaned:
28048 # after its creation but before its name has been assigned to `$tmp'.
28049 $debug ||
28050 {
28051   tmp=
28052   trap 'exit_status=$?
28053   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28054 ' 0
28055   trap 'as_fn_exit 1' 1 2 13 15
28056 }
28057 # Create a (secure) tmp directory for tmp files.
28058
28059 {
28060   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28061   test -n "$tmp" && test -d "$tmp"
28062 }  ||
28063 {
28064   tmp=./conf$$-$RANDOM
28065   (umask 077 && mkdir "$tmp")
28066 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28067
28068 # Set up the scripts for CONFIG_FILES section.
28069 # No need to generate them if there are no CONFIG_FILES.
28070 # This happens for instance with `./config.status config.h'.
28071 if test -n "$CONFIG_FILES"; then
28072
28073 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28074   ac_cs_awk_getline=:
28075   ac_cs_awk_pipe_init=
28076   ac_cs_awk_read_file='
28077       while ((getline aline < (F[key])) > 0)
28078         print(aline)
28079       close(F[key])'
28080   ac_cs_awk_pipe_fini=
28081 else
28082   ac_cs_awk_getline=false
28083   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28084   ac_cs_awk_read_file='
28085       print "|#_!!_#|"
28086       print "cat " F[key] " &&"
28087       '$ac_cs_awk_pipe_init
28088   # The final `:' finishes the AND list.
28089   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28090 fi
28091 ac_cr=`echo X | tr X '\015'`
28092 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28093 # But we know of no other shell where ac_cr would be empty at this
28094 # point, so we can use a bashism as a fallback.
28095 if test "x$ac_cr" = x; then
28096   eval ac_cr=\$\'\\r\'
28097 fi
28098 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28099 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28100   ac_cs_awk_cr='\r'
28101 else
28102   ac_cs_awk_cr=$ac_cr
28103 fi
28104
28105 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28106 _ACEOF
28107
28108 # Create commands to substitute file output variables.
28109 {
28110   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28111   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28112   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28113   echo "_ACAWK" &&
28114   echo "_ACEOF"
28115 } >conf$$files.sh &&
28116 . ./conf$$files.sh ||
28117   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28118 rm -f conf$$files.sh
28119
28120 {
28121   echo "cat >conf$$subs.awk <<_ACEOF" &&
28122   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28123   echo "_ACEOF"
28124 } >conf$$subs.sh ||
28125   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28126 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28127 ac_delim='%!_!# '
28128 for ac_last_try in false false false false false :; do
28129   . ./conf$$subs.sh ||
28130     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28131
28132   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28133   if test $ac_delim_n = $ac_delim_num; then
28134     break
28135   elif $ac_last_try; then
28136     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28137   else
28138     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28139   fi
28140 done
28141 rm -f conf$$subs.sh
28142
28143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28144 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28145 _ACEOF
28146 sed -n '
28147 h
28148 s/^/S["/; s/!.*/"]=/
28149 p
28150 g
28151 s/^[^!]*!//
28152 :repl
28153 t repl
28154 s/'"$ac_delim"'$//
28155 t delim
28156 :nl
28157 h
28158 s/\(.\{148\}\).*/\1/
28159 t more1
28160 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28161 p
28162 n
28163 b repl
28164 :more1
28165 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28166 p
28167 g
28168 s/.\{148\}//
28169 t nl
28170 :delim
28171 h
28172 s/\(.\{148\}\).*/\1/
28173 t more2
28174 s/["\\]/\\&/g; s/^/"/; s/$/"/
28175 p
28176 b
28177 :more2
28178 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28179 p
28180 g
28181 s/.\{148\}//
28182 t delim
28183 ' <conf$$subs.awk | sed '
28184 /^[^""]/{
28185   N
28186   s/\n//
28187 }
28188 ' >>$CONFIG_STATUS || ac_write_fail=1
28189 rm -f conf$$subs.awk
28190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28191 _ACAWK
28192 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28193   for (key in S) S_is_set[key] = 1
28194   FS = "\a"
28195   \$ac_cs_awk_pipe_init
28196 }
28197 {
28198   line = $ 0
28199   nfields = split(line, field, "@")
28200   substed = 0
28201   len = length(field[1])
28202   for (i = 2; i < nfields; i++) {
28203     key = field[i]
28204     keylen = length(key)
28205     if (S_is_set[key]) {
28206       value = S[key]
28207       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28208       len += length(value) + length(field[++i])
28209       substed = 1
28210     } else
28211       len += 1 + keylen
28212   }
28213   if (nfields == 3 && !substed) {
28214     key = field[2]
28215     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28216       \$ac_cs_awk_read_file
28217       next
28218     }
28219   }
28220   print line
28221 }
28222 \$ac_cs_awk_pipe_fini
28223 _ACAWK
28224 _ACEOF
28225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28226 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28227   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28228 else
28229   cat
28230 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28231   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28232 _ACEOF
28233
28234 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28235 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28236 # trailing colons and then remove the whole line if VPATH becomes empty
28237 # (actually we leave an empty line to preserve line numbers).
28238 if test "x$srcdir" = x.; then
28239   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28240 s/:*\$(srcdir):*/:/
28241 s/:*\${srcdir}:*/:/
28242 s/:*@srcdir@:*/:/
28243 s/^\([^=]*=[     ]*\):*/\1/
28244 s/:*$//
28245 s/^[^=]*=[       ]*$//
28246 }'
28247 fi
28248
28249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28250 fi # test -n "$CONFIG_FILES"
28251
28252 # Set up the scripts for CONFIG_HEADERS section.
28253 # No need to generate them if there are no CONFIG_HEADERS.
28254 # This happens for instance with `./config.status Makefile'.
28255 if test -n "$CONFIG_HEADERS"; then
28256 cat >"$tmp/defines.awk" <<\_ACAWK ||
28257 BEGIN {
28258 _ACEOF
28259
28260 # Transform confdefs.h into an awk script `defines.awk', embedded as
28261 # here-document in config.status, that substitutes the proper values into
28262 # config.h.in to produce config.h.
28263
28264 # Create a delimiter string that does not exist in confdefs.h, to ease
28265 # handling of long lines.
28266 ac_delim='%!_!# '
28267 for ac_last_try in false false :; do
28268   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28269   if test -z "$ac_t"; then
28270     break
28271   elif $ac_last_try; then
28272     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28273   else
28274     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28275   fi
28276 done
28277
28278 # For the awk script, D is an array of macro values keyed by name,
28279 # likewise P contains macro parameters if any.  Preserve backslash
28280 # newline sequences.
28281
28282 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28283 sed -n '
28284 s/.\{148\}/&'"$ac_delim"'/g
28285 t rset
28286 :rset
28287 s/^[     ]*#[    ]*define[       ][      ]*/ /
28288 t def
28289 d
28290 :def
28291 s/\\$//
28292 t bsnl
28293 s/["\\]/\\&/g
28294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28295 D["\1"]=" \3"/p
28296 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28297 d
28298 :bsnl
28299 s/["\\]/\\&/g
28300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28301 D["\1"]=" \3\\\\\\n"\\/p
28302 t cont
28303 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28304 t cont
28305 d
28306 :cont
28307 n
28308 s/.\{148\}/&'"$ac_delim"'/g
28309 t clear
28310 :clear
28311 s/\\$//
28312 t bsnlc
28313 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28314 d
28315 :bsnlc
28316 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28317 b cont
28318 ' <confdefs.h | sed '
28319 s/'"$ac_delim"'/"\\\
28320 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28321
28322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28323   for (key in D) D_is_set[key] = 1
28324   FS = "\a"
28325 }
28326 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28327   line = \$ 0
28328   split(line, arg, " ")
28329   if (arg[1] == "#") {
28330     defundef = arg[2]
28331     mac1 = arg[3]
28332   } else {
28333     defundef = substr(arg[1], 2)
28334     mac1 = arg[2]
28335   }
28336   split(mac1, mac2, "(") #)
28337   macro = mac2[1]
28338   prefix = substr(line, 1, index(line, defundef) - 1)
28339   if (D_is_set[macro]) {
28340     # Preserve the white space surrounding the "#".
28341     print prefix "define", macro P[macro] D[macro]
28342     next
28343   } else {
28344     # Replace #undef with comments.  This is necessary, for example,
28345     # in the case of _POSIX_SOURCE, which is predefined and required
28346     # on some systems where configure will not decide to define it.
28347     if (defundef == "undef") {
28348       print "/*", prefix defundef, macro, "*/"
28349       next
28350     }
28351   }
28352 }
28353 { print }
28354 _ACAWK
28355 _ACEOF
28356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28357   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28358 fi # test -n "$CONFIG_HEADERS"
28359
28360
28361 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28362 shift
28363 for ac_tag
28364 do
28365   case $ac_tag in
28366   :[FHLC]) ac_mode=$ac_tag; continue;;
28367   esac
28368   case $ac_mode$ac_tag in
28369   :[FHL]*:*);;
28370   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28371   :[FH]-) ac_tag=-:-;;
28372   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28373   esac
28374   ac_save_IFS=$IFS
28375   IFS=:
28376   set x $ac_tag
28377   IFS=$ac_save_IFS
28378   shift
28379   ac_file=$1
28380   shift
28381
28382   case $ac_mode in
28383   :L) ac_source=$1;;
28384   :[FH])
28385     ac_file_inputs=
28386     for ac_f
28387     do
28388       case $ac_f in
28389       -) ac_f="$tmp/stdin";;
28390       *) # Look for the file first in the build tree, then in the source tree
28391          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28392          # because $ac_f cannot contain `:'.
28393          test -f "$ac_f" ||
28394            case $ac_f in
28395            [\\/$]*) false;;
28396            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28397            esac ||
28398            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28399       esac
28400       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28401       as_fn_append ac_file_inputs " '$ac_f'"
28402     done
28403
28404     # Let's still pretend it is `configure' which instantiates (i.e., don't
28405     # use $as_me), people would be surprised to read:
28406     #    /* config.h.  Generated by config.status.  */
28407     configure_input='Generated from '`
28408           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28409         `' by configure.'
28410     if test x"$ac_file" != x-; then
28411       configure_input="$ac_file.  $configure_input"
28412       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28413 $as_echo "$as_me: creating $ac_file" >&6;}
28414     fi
28415     # Neutralize special characters interpreted by sed in replacement strings.
28416     case $configure_input in #(
28417     *\&* | *\|* | *\\* )
28418        ac_sed_conf_input=`$as_echo "$configure_input" |
28419        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28420     *) ac_sed_conf_input=$configure_input;;
28421     esac
28422
28423     case $ac_tag in
28424     *:-:* | *:-) cat >"$tmp/stdin" \
28425       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28426     esac
28427     ;;
28428   esac
28429
28430   ac_dir=`$as_dirname -- "$ac_file" ||
28431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28432          X"$ac_file" : 'X\(//\)[^/]' \| \
28433          X"$ac_file" : 'X\(//\)$' \| \
28434          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28435 $as_echo X"$ac_file" |
28436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28437             s//\1/
28438             q
28439           }
28440           /^X\(\/\/\)[^/].*/{
28441             s//\1/
28442             q
28443           }
28444           /^X\(\/\/\)$/{
28445             s//\1/
28446             q
28447           }
28448           /^X\(\/\).*/{
28449             s//\1/
28450             q
28451           }
28452           s/.*/./; q'`
28453   as_dir="$ac_dir"; as_fn_mkdir_p
28454   ac_builddir=.
28455
28456 case "$ac_dir" in
28457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28458 *)
28459   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28460   # A ".." for each directory in $ac_dir_suffix.
28461   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28462   case $ac_top_builddir_sub in
28463   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28464   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28465   esac ;;
28466 esac
28467 ac_abs_top_builddir=$ac_pwd
28468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28469 # for backward compatibility:
28470 ac_top_builddir=$ac_top_build_prefix
28471
28472 case $srcdir in
28473   .)  # We are building in place.
28474     ac_srcdir=.
28475     ac_top_srcdir=$ac_top_builddir_sub
28476     ac_abs_top_srcdir=$ac_pwd ;;
28477   [\\/]* | ?:[\\/]* )  # Absolute name.
28478     ac_srcdir=$srcdir$ac_dir_suffix;
28479     ac_top_srcdir=$srcdir
28480     ac_abs_top_srcdir=$srcdir ;;
28481   *) # Relative name.
28482     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28483     ac_top_srcdir=$ac_top_build_prefix$srcdir
28484     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28485 esac
28486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28487
28488
28489   case $ac_mode in
28490   :F)
28491   #
28492   # CONFIG_FILE
28493   #
28494
28495 _ACEOF
28496
28497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28498 # If the template does not know about datarootdir, expand it.
28499 # FIXME: This hack should be removed a few years after 2.60.
28500 ac_datarootdir_hack=; ac_datarootdir_seen=
28501 ac_sed_dataroot='
28502 /datarootdir/ {
28503   p
28504   q
28505 }
28506 /@datadir@/p
28507 /@docdir@/p
28508 /@infodir@/p
28509 /@localedir@/p
28510 /@mandir@/p'
28511 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28512 *datarootdir*) ac_datarootdir_seen=yes;;
28513 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28514   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28515 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28516 _ACEOF
28517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28518   ac_datarootdir_hack='
28519   s&@datadir@&$datadir&g
28520   s&@docdir@&$docdir&g
28521   s&@infodir@&$infodir&g
28522   s&@localedir@&$localedir&g
28523   s&@mandir@&$mandir&g
28524   s&\\\${datarootdir}&$datarootdir&g' ;;
28525 esac
28526 _ACEOF
28527
28528 # Neutralize VPATH when `$srcdir' = `.'.
28529 # Shell code in configure.ac might set extrasub.
28530 # FIXME: do we really want to maintain this feature?
28531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28532 ac_sed_extra="$ac_vpsub
28533 $extrasub
28534 _ACEOF
28535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28536 :t
28537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28538 s|@configure_input@|$ac_sed_conf_input|;t t
28539 s&@top_builddir@&$ac_top_builddir_sub&;t t
28540 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28541 s&@srcdir@&$ac_srcdir&;t t
28542 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28543 s&@top_srcdir@&$ac_top_srcdir&;t t
28544 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28545 s&@builddir@&$ac_builddir&;t t
28546 s&@abs_builddir@&$ac_abs_builddir&;t t
28547 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28548 $ac_datarootdir_hack
28549 "
28550 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28551 if $ac_cs_awk_getline; then
28552   $AWK -f "$tmp/subs.awk"
28553 else
28554   $AWK -f "$tmp/subs.awk" | $SHELL
28555 fi >$tmp/out \
28556   || as_fn_error "could not create $ac_file" "$LINENO" 5
28557
28558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28559   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28560   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28561   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28562 which seems to be undefined.  Please make sure it is defined." >&5
28563 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28564 which seems to be undefined.  Please make sure it is defined." >&2;}
28565
28566   rm -f "$tmp/stdin"
28567   case $ac_file in
28568   -) cat "$tmp/out" && rm -f "$tmp/out";;
28569   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28570   esac \
28571   || as_fn_error "could not create $ac_file" "$LINENO" 5
28572  ;;
28573   :H)
28574   #
28575   # CONFIG_HEADER
28576   #
28577   if test x"$ac_file" != x-; then
28578     {
28579       $as_echo "/* $configure_input  */" \
28580       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28581     } >"$tmp/config.h" \
28582       || as_fn_error "could not create $ac_file" "$LINENO" 5
28583     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28584       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28585 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28586     else
28587       rm -f "$ac_file"
28588       mv "$tmp/config.h" "$ac_file" \
28589         || as_fn_error "could not create $ac_file" "$LINENO" 5
28590     fi
28591   else
28592     $as_echo "/* $configure_input  */" \
28593       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28594       || as_fn_error "could not create -" "$LINENO" 5
28595   fi
28596  ;;
28597
28598   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28599 $as_echo "$as_me: executing $ac_file commands" >&6;}
28600  ;;
28601   esac
28602
28603
28604   case $ac_file$ac_mode in
28605     "as":F) chmod +x as ;;
28606     "collect-ld":F) chmod +x collect-ld ;;
28607     "nm":F) chmod +x nm ;;
28608     "default":C)
28609 case ${CONFIG_HEADERS} in
28610   *auto-host.h:config.in*)
28611   echo > cstamp-h ;;
28612 esac
28613 # Make sure all the subdirs exist.
28614 for d in $subdirs doc build common c-family
28615 do
28616     test -d $d || mkdir $d
28617 done
28618  ;;
28619
28620   esac
28621 done # for ac_tag
28622
28623
28624 as_fn_exit 0
28625 _ACEOF
28626 ac_clean_files=$ac_clean_files_save
28627
28628 test $ac_write_fail = 0 ||
28629   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28630
28631
28632 # configure is writing to config.log, and then calls config.status.
28633 # config.status does its own redirection, appending to config.log.
28634 # Unfortunately, on DOS this fails, as config.log is still kept open
28635 # by configure, so config.status won't be able to write to it; its
28636 # output is simply discarded.  So we exec the FD to /dev/null,
28637 # effectively closing config.log, so it can be properly (re)opened and
28638 # appended to by config.status.  When coming back to configure, we
28639 # need to make the FD available again.
28640 if test "$no_create" != yes; then
28641   ac_cs_success=:
28642   ac_config_status_args=
28643   test "$silent" = yes &&
28644     ac_config_status_args="$ac_config_status_args --quiet"
28645   exec 5>/dev/null
28646   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28647   exec 5>>config.log
28648   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28649   # would make configure fail if this is the last instruction.
28650   $ac_cs_success || as_fn_exit $?
28651 fi
28652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28653   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28655 fi
28656
28657